[PATCH] libcsupport: Workaround for GCC 5.1 and later
Chris Johns
chrisj at rtems.org
Wed Jul 15 07:48:34 UTC 2015
On 15/07/2015 4:50 pm, Sebastian Huber wrote:
>
> I didn't file a PR, only asked on the mailing list. My impression is
> that this is not a bug, but a feature that must be disabled by C library
> developers.
A compiler that optimises to a infinite recursive loop for code that is
ok and not pushing any standards limit would seems like a bug to me.
>
>>
>> If the code being optimized is the function 'calloc', which it should
>> know, then maybe this is not such a good idea to call itself.
>
> Yes, maybe this would complicate the compiler too much for a rare use
> case, e.g. C library.
>
I feel there is more pain with this issue to come for embedded users.
Chris
More information about the devel
mailing list