This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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: libc git tst-array checks fail


On Sat, Nov 3, 2012 at 11:38 AM, Klaus Dittrich <kladit@arcor.de> wrote:
> Am 11/03/12 17:57, schrieb Ryan S. Arnold:
>
>> On Sat, Nov 3, 2012 at 11:54 AM, Ryan S. Arnold <ryan.arnold@gmail.com>
>> wrote:
>>>
>>> Hi Klaus,
>>>
>>> I believe this is due to a bug in GCC which has been fixed upstream in
>>> 4.8.  I believe it will be back ported to 4.7 in the next few days.
>>
>>
>> For reference:
>>
>> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53708
>>
>> We encountered this on PowerPC as well.
>>
>> Ryan S. Arnold
>>
>
> Ryan, thank you for this hint.
>
> I compiled with -O3 and gcc version 4.6.4 20121102.
>
> So I hope it will be fixed in gcc-4.6 as well.
>
> I just verified it, with -02 the bug also shows up.
>
> Is except for this bug gcc-4.7 recommended/required for libc?
>

Both results are correct.  Before GCC 4.7, we use.ctors/.dtors.
Starting from GCC 4.7, we only use .init_array/.fini_array
sections.  Without priority, the order between .ctors and init_array
sections are undefined.

-- 
H.J.


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