[Bug pch/63429] [Regression 5] Cannot build compiler with --enable-gather-detailed-mem-stats
tbsaunde at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Oct 4 13:30:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63429
--- Comment #1 from tbsaunde at gcc dot gnu.org ---
Author: tbsaunde
Date: Sat Oct 4 13:29:26 2014
New Revision: 215888
URL: https://gcc.gnu.org/viewcvs?rev=215888&root=gcc&view=rev
Log:
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.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/genconditions.c
More information about the Gcc-bugs
mailing list