https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57125

Andrew Oakley <andrew at ado dot is-a-geek.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrew at ado dot is-a-geek.net

--- Comment #5 from Andrew Oakley <andrew at ado dot is-a-geek.net> ---
Created attachment 33419
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33419&action=edit
Possible fix

Attached is a patch which appears to fix this issue for me (on gcc 4.8.3).

In gcc/Makefile.in there is a comment:
# The gengtype generator program is special: Two versions are built.
# One is for the build machine, and one is for the host to allow
# plugins to define their types and generate the supporting GGC
# datastructures and routines with GTY markers.
# The host object files depend on CONFIG_H, and the build objects
# on BCONFIG_H.  For the build objects, add -DGENERATOR_FILE manually,
# the build-%: rule doesn't apply to them.

The change I chose to make swaps the make dependencies around, alternatively
GENERATOR_FILE may defined in the wrong case.  I'm not sure what the right
behaviour is here, or which set of objects is which!

Reply via email to