This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Feature request PR14331: add -W(no-)eof-newline


"Andrew Pinski" <pinskia@gmail.com> writes:

> On 4/10/07, Dave Korn <dave.korn@artimi.com> wrote:
> >   Emacs is not the only editor, and all the world is not a Gnu, and this patch
> > helps in those /other/ situations.  There's a lot of demand for this feature
> > and the fact that it can be worked around at source in some cases doesn't
> > really detract from the fact that in many others it can't, or can't easily be.
> 
> And vi does the correct thing :).
> So newer editors are all broken, again this is undefined compile time
> behavior and not undefined runtime behavior which is a different
> matter.

It's really not undefined at all.  gcc would be still be standard
conformant if we defined all input to end with a newline, whether or
not the actual physical Unix input file did so.

Ian


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