This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [patch] assert.h causing problems with older GCC and XLC
- From: Ken Werner <ken at linux dot vnet dot ibm dot com>
- To: newlib at sourceware dot org
- Date: Thu, 17 Jul 2008 15:30:57 +0200
- Subject: Re: [patch] assert.h causing problems with older GCC and XLC
- References: <200807171522.30940.ken@linux.vnet.ibm.com>
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