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: Warning flags for compatibility with clang.


On Wed, May 21, 2014 at 7:58 PM, Andrew Pinski <pinskia@gmail.com> wrote:
> On Wed, May 21, 2014 at 7:50 PM, Pedro Giffuni <giffunip@tutopia.com> wrote:
>> Hello;
>>
>> FWIW, I have been looking at some changes from Apple's GCC and these two
>> small changes should be interesting to have in the official gcc.
>>
>> Implement -Wmost for compatibility with clang.
>> http://svnweb.freebsd.org/base?view=revision&revision=259920
>>
>> Add Apple compatible -Wnewline-eof
>> http://svnweb.freebsd.org/base?view=revision&revision=259555
>
> There is an older patch for this:
> https://gcc.gnu.org/ml/gcc-patches/2007-04/msg00457.html
>
> I really don't like it and hate editors which don't add a newline at
> the end of the file.


Oh we no longer warn about the newline missing at eof which is why the
patch was needed in the first place.

Thanks,
Andrew

>
> Thanks,
> Andrew Pinski
>
>
>>
>> I don't own them but I doubt any of them is copyrightable. Perhaps they are
>> available in the old Apple branches that the FSF has control of.
>>
>> Regards,
>>
>> Pedro.


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