This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [patch] Fix build error for tst-printf-bz18872 on arm/aarch64 and s390
- From: Paul Pluzhnikov <ppluzhnikov at google dot com>
- To: Florian Weimer <fweimer at redhat dot com>
- Cc: GLIBC Devel <libc-alpha at sourceware dot org>
- Date: Wed, 7 Oct 2015 20:11:50 -0700
- Subject: Re: [patch] Fix build error for tst-printf-bz18872 on arm/aarch64 and s390
- Authentication-results: sourceware.org; auth=none
- References: <CALoOobN6U4bEXMB3UdW7=6OuH0mJW+iA7+xE8+AiZtVGg3knAw at mail dot gmail dot com> <5614CEDB dot 5040709 at redhat dot com>
On Wed, Oct 7, 2015 at 12:50 AM, Florian Weimer <fweimer@redhat.com> wrote:
> At one point, we need to stop working around compiler bugs.
Putting -O0 into the Makefile is *still* working around the GCC bug.
> Another way would be to specify -O0, either as a function attribute
Thanks. I'll try that.
> (which GCC 4.6 already supports), or in Makefile.
As I explained here:
https://sourceware.org/ml/libc-alpha/2015-09/msg00029.html
glibc internal headers insist on having __OPTIMIZE__ on, even for
tests, so adding -O0 to the Makefile doesn't work.
>> 2015-10-06 Paul Pluzhnikov <ppluzhnikov@google.com>
>>
>> * stdio-common/tst-printf-bz18872.sh: Make disabling
>> optimization conditional on x86_64 or i386.
...
> Nothing in the patch or changelog says why this is conditional on
> __x86_64__ and __i386__.
I beg to differ: the ChangeLog clearly does :-)
--
Paul Pluzhnikov