This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Generator programs can only be built with optimization enabled?
Paolo Bonzini wrote:
> This was caused by:
> 2006-01-22 Zack Weinberg <zackw@panix.com>
>
> * genautomata.c: Include vec.h, not varray.h.
>
>
> The problem that Mark reported happens because (since always) the CFLAGS
> of the gcc directory are just "-g", not "-O2 -g". Optimized builds have
> (since always) been done only because the toplevel overrides the "-g"
> CFLAGS. So, when you type "make" in the gcc directory, it triggers a
> non-optimized build of everything (generator programs, compiler,
> driver), which in turn triggers PR18058.
I think that, after Zack's change, the generator programs that include
rtl.h should be linked with build/vec.o. That may not be necessary when
optimizing, but it would avoid this problem. Do you agree?
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713