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] Compile elf/rtld.c with -fno-tree-loop-distribute-patterns.


On 11/25/19 1:08 AM, Florian Weimer wrote:

I had hoped we could write something like this at the start of
elf/rtld.c:

#ifndef PI_STATIC_AND_HIDDEN
# pragma GCC optimize ("no-tree-loop-distribute-patterns")
#endif

Then the optimization would still be applied on the targets where it
is safe to do so.

Well, I could certainly hack up and test a new patch to do that, if that is the recommended approach. But I see no other existing uses of "pragma GCC optimize" anywhere in glibc other than in a few test cases, while elf/Makefile already specifies -fno-tree-loop-distribute-patterns on dl-tunables.c in the same way I added it for rtld.c, so my original patch seems more consistent with current practice.

But I don't have a strong opinion about this and would appreciate
feedback from others.

Same here. I just want this bug fixed and will do it in whatever way the community agrees on. As I said, the dynamic linker is currently completely broken on nios2 when built with GCC 10.

-Sandra


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