This is the mail archive of the glibc-bugs@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]

[Bug build/22581] glibc-2.26 fails to build for i486 with -Os


https://sourceware.org/bugzilla/show_bug.cgi?id=22581

--- Comment #3 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
I could reproduce it with a gcc7 without any change in my environment.  Since
3b33d6ed60, i386 configure checks if compiler issues an issue with the follow
snippet:

----
void foo (int i)
{
  register int reg asm ("ebp") = i;
  asm ("# %0" : : "r" (reg));
}
----

Which sets CAN_USE_REGISTER_ASM_EBP to either 1 or 0. This is defined on
config.h and used by i386 syscall mechanism in sysdep.h to select either an
optimized syscall mechanism or a fallback one.  You can check if
CAN_USE_REGISTER_ASM_EBP is set to 1 on your build to confirm if it is what is
happening.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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