This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFC: sim: don't use -Wuninitialized without -O
- From: Jim Blandy <jimb at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: 15 Mar 2005 18:24:09 -0500
- Subject: Re: RFC: sim: don't use -Wuninitialized without -O
- References: <vt2fyywr576.fsf@zenia.home>
Frank approved this off-list, so I've committed it.
Jim Blandy <jimb@redhat.com> writes:
> I committed a similar patch for GDB a few days ago; this one is for
> the simulators. I think I've avoided using '==' in this one. :)
> Diffs to generated files omitted.
>
> sim/common/ChangeLog:
> 2005-02-28 Jim Blandy <jimb@redhat.com>
>
> * aclocal.m4 (SIM_AC_OPTION_WARNINGS): Don't include
> -Wuninitialized in the default list of build warnings if CFLAGS is
> set, and doesn't include -O. (Using -Wuninitialized without
> optimization produces a warning, which interferes with compilation
> with -Werror.)
>
> sim/ChangeLog:
> 2005-02-28 Jim Blandy <jimb@redhat.com>
>
> * d10v/configure.ac, igen/configure.ac, m68hc11/configure.ac,
> mips/configure.ac, mn10300/configure.ac, v850/configure.ac:
> Regenerated, after change to common/aclocal.m4.