This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: Preprocessing oddity breaks binutils
mark@codesourcery.com writes:
|> >>>>> "Andreas" == Andreas Schwab <schwab@issan.cs.uni-dortmund.de> writes:
|>
|> Andreas> Thus the current behaviour of cpp is more in the spirit
|> Andreas> of the standard, and IMHO cpplib is wrong.
|>
|> I disagree, but clearly the standard does not really specify behavior
|> here.
Yes, it's implementation defined, and gcc documents the current behaviour.
|> My original example indicates how hard it is to forsee what might
|> happen, given the current behavior. In particular, in a package that
|> has srcdir/objdir builds, if you have built once in the srcdir (or if
|> the package distributes generated files in the srcdir), and you then
|> build in an objdir, all yacc-generated files get the wrong header.
If you have built in srcdir, then you must run make distclean before you
can build in a separate dir. Then you have no duplicate headers which is
a Bad Thing to start with.
Andreas.
--
Andreas Schwab "And now for something
schwab@issan.cs.uni-dortmund.de completely different"
schwab@gnu.org