This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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] assert.h causing problems with older GCC and XLC


On Thursday 17 July 2008 15:22, Ken Werner wrote:
> Hi,
>
> the assert function is using __func__ whenever __GNUC__ is defined,
> regardless of the language level provided by the compiler. This causes
> Problem with the XLC and probably older GCC versions. This patch first
> checks the __GNUC__ level then the __STDC_VERSION__. Ok to Apply?
>
> Ken
>
> newlib/ChangeLog:
>
> 2008-07-17  Ken Werner  <ken.werner@de.ibm.com>
>
>         * libc/include/assert.h: Provide .type and .size directives
>
The changelog entry is misleading and should be something like this:
        * libc/include/assert.h: use __func__ only if 
        __STDC_VERSION__ >= 199901L

sorry.
Ken


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