This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Preprocessing oddity breaks binutils


mark@codesourcery.com writes:

|> >>>>> "Andreas" == Andreas Schwab <schwab@issan.cs.uni-dortmund.de> writes:
|> 
|>     Andreas> mark@codesourcery.com writes:
|> 
|>     Andreas> |> >>>>> "Andreas" == Andreas Schwab
|>     Andreas> <schwab@issan.cs.uni-dortmund.de> writes: |> |> Andreas>
|>     Andreas> Thus the current behaviour of cpp is more in the spirit
|>     Andreas> |> Andreas> of the standard, and IMHO cpplib is wrong.
|>     Andreas> |> |> I disagree, but clearly the standard does not
|>     Andreas> really specify behavior |> here.
|> 
|>     Andreas> Yes, it's implementation defined, and gcc documents the
|>     Andreas> current behaviour.
|> 
|> That's the best possible argument against my point of view.  If we
|> really documented this oddity, then it should probably stay.  And
|> cpplib should be changed.  Just for my own satisfaction, would you
|> mind pointing me at the place in the manual where we documented this?

See my first mail, I have already quoted the relevant parts.

This behaviour is not odd at all.  The *source* is the bison input, not
the intermediate C file.  The behaviour of the preprocessor should not
depend on where you put the intermediate file.  All you look at is the
bison source, where you see the #include directive, and it would be quite
odd if the included file came from an unrelated directory, just because
there is an intermediate file somewhere.  All messages will also point to
the real source, just as if the intermediate file wasn't there.

Andreas.

-- 
Andreas Schwab                                      "And now for something
schwab@issan.cs.uni-dortmund.de                      completely different"
schwab@gnu.org

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]