This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug pch/63429] [Regression 5] Cannot build compiler with --enable-gather-detailed-mem-stats


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]