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: [patch] Fix build error for tst-printf-bz18872 on arm/aarch64 and s390


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


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