Fix dupplicate declaration of ggc_realloc in gencondmd

If vec.h is included before ggc.h it forward declares ggc_realloc with
defaulted arguments.  This means ggc.h can not be included later because
it would lead to a second declaration of ggc_realloc with defaulted
arguments.  In generator programs vec.h can not include ggc.h because it
may not exist yet.  So generator programs must make sure they include
ggc.h before anything that includes vec.h.

gcc/ChangeLog:

2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>

	PR pch/63429
	* genconditions.c: Directly include ggc.h before rtl.h.

From-SVN: r215888
This commit is contained in:
Trevor Saunders 2014-10-04 13:29:26 +00:00 committed by Trevor Saunders
parent 63a496dedb
commit bf55b4a0ef
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
PR pch/63429
* genconditions.c: Directly include ggc.h before rtl.h.
2014-10-03 Jan Hubicka <hubicka@ucw.cz>
* ipa-polymorphic-call.c

View File

@ -70,6 +70,7 @@ write_header (void)
#include \"coretypes.h\"\n\
#include \"tm.h\"\n\
#include \"insn-constants.h\"\n\
#include \"ggc.h\"\n\
#include \"rtl.h\"\n\
#include \"tm_p.h\"\n\
#include \"function.h\"\n\