It looks like GCC 4.8 inserts certain comments into files while
preprocessing. In this case the C preprocessor is used to put some files
together before passing it through NFOrenum/GRFcodec. These tools do not
support the /* */ style comments that the C preprocessor (-E) has added
to the file.
The interesting question is why GCC 4.8 decided to add these comments,
especially since they weren't in GCC 4.7.
We have to retain the comments from the original files into the merged
file since they contain a small bit of versioning information needed. As
a result, we cannot run the preprocessor without -C. This means that the
comments the preprocessor adds (for no apparent reason) breaks
compilation. It will not only break OpenTTD compilation, but any
external project that compiles a GRF in the same way OpenTTD does. Which
is a significant part of the community.
What are the reasons for adding these extra comments to preprocessed
files? Especially when they imply that the preprocessed file is part of
the GNU C library. Should this bug be reassigned to GCC because this is
a regression.
Regards,
Remko 'Rubidium' Bijker
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]