[Bug preprocessor/66277] [regression] cpp-5: fatal error: too many input files

2015-05-25 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66277

Jakub Jelinek jakub at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 CC||jakub at gcc dot gnu.org
 Resolution|--- |INVALID

--- Comment #1 from Jakub Jelinek jakub at gcc dot gnu.org ---
Seems to be a user error.  Just read man page of cpp and gcc, the former
accepts (besides options) just two arguments, infile and outfile, while grub
clearly relies on $(CPP) being able to preprocess many source files at the same
time.
That is gcc -E, not cpp (and if you don't override it from the command line,
that is indeed what the configure will do correctly automatically).


[Bug preprocessor/66277] [regression] cpp-5: fatal error: too many input files

2015-05-25 Thread paulepanter at users dot sourceforge.net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66277

--- Comment #2 from Paul Menzel paulepanter at users dot sourceforge.net ---
(In reply to Jakub Jelinek from comment #1)
 Seems to be a user error.  Just read man page of cpp and gcc, the former
 accepts (besides options) just two arguments, infile and outfile, while grub
 clearly relies on $(CPP) being able to preprocess many source files at the
 same time.
 That is gcc -E, not cpp (and if you don't override it from the command line,
 that is indeed what the configure will do correctly automatically).

Indeed! Thank you very much. `CC=gcc-5 ./configure` does not use `cpp-4.9` for
`CPP` but `gcc-5 -E`. Quite confusing.

So it’s indeed not a bug and not a regression. I’ll remember to not set `CPP`
manually in the future. Sorry for the noise.