[Bug bootstrap/49415] [4.7 Regression] Revision 175071 fails to bootstrap on x86_64-apple-darwin10

joseph at codesourcery dot com gcc-bugzilla@gcc.gnu.org
Wed Jun 15 10:32:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49415

--- Comment #1 from joseph at codesourcery dot com <joseph at codesourcery dot com> 2011-06-15 10:31:50 UTC ---
On Wed, 15 Jun 2011, dominiq at lps dot ens.fr wrote:

> ../../work/gcc/config/darwin-protos.h:57:51: error: ISO C forbids forward
> references to 'enum' types [-Werror=edantic]
> ../../work/gcc/config/darwin-protos.h:58:11: error: 'enum machine_mode'
> declared inside parameter list [-Werror]
> ../../work/gcc/config/darwin-protos.h:58:11: error: its scope is only this
> definition or declaration, which is probably not what you want [-Werror]

Please try wrapping the problem prototype in #ifdef RTX_CODE, like some 
other prototypes in that header.  (Including machmode.h in i386-common.c 
might cause other problems, and certainly would be against modularity.  
Ideally tm.h and tm_p.h would be split into common parts and parts used 
only in the compiler proper, but that's a long way off.)



More information about the Gcc-bugs mailing list