This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug pch/63429] [Regression 5] Cannot build compiler with --enable-gather-detailed-mem-stats
- From: "tbsaunde at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 04 Oct 2014 13:29:58 +0000
- Subject: [Bug pch/63429] [Regression 5] Cannot build compiler with --enable-gather-detailed-mem-stats
- Auto-submitted: auto-generated
- References: <bug-63429-4 at http dot gcc dot gnu dot org/bugzilla/>
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