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: [Test] Fix for PRPR53981


Thanks!

I've removed declarations. New patch attached.

testsuite/ChangeLog:
2012-07-20  Anna Tikhonova  <anna.m.tikhonova@gmail.com>

         * gcc.dg/20020201-1.c: Remove declarations for exit, abort,
rand, srand. Include <stdlib.h>.


2012/7/24 Janis Johnson <janis_johnson@mentor.com>:
> On 07/20/2012 05:23 AM, Anna Tikhonova wrote:
>> Hi all,
>>
>> I've fixed test which was failing on Android NDK
>>
>> testsuite/ChangeLog:
>> 2012-07-20  Anna Tikhonova  <anna.m.tikhonova@gmail.com>
>>
>>         * gcc.dg/20020201-1.c: Include <stdlib.h>.
>>
>>
>> Patch attached.
>>
>> Ok for trunk & 4.7?
>
> OK if you remove the declarations for abort, exit, rand, and srand;
> they're no longer needed.  Presumably an alternate fix would be to
> add "extern" before the declarations of rand and srand.
>
> Janis

Attachment: 20020201-1.p
Description: Binary data


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