[patch] assert.h causing problems with older GCC and XLC
Ken Werner
ken@linux.vnet.ibm.com
Thu Jul 17 15:11:00 GMT 2008
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
More information about the Newlib
mailing list