On 10/02/14 19:53, tsaund...@mozilla.com wrote:
From: Trevor Saunders <trev.saund...@gmail.com>

Hi,

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.

bootstrapped + regtested x86_64-unknown-linux-gnu, and bootstrapped with
--enable-gather-detailed-mem-stats, ok?

Trev

gcc/ChangeLog:

2014-10-02  Trevor Saunders  <tsaund...@mozilla.com>

        * genconditions.c: Directly include ggc.h before rtl.h.
OK.
jeff

Reply via email to