[Bug libgcc/71951] libgcc_s built with -fomit-frame-pointer on aarch64 is broken

2016-07-20 Thread timo.teras at iki dot fi
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71951 --- Comment #7 from Timo Teräs --- (In reply to Andrew Pinski from comment #6) > (In reply to Timo Teräs from comment #5) > > Not easily. It's musl, and using iterate phdr. Same build script works on > > x86, x86_64 and armhf. It's only aarch64

[Bug libgcc/71951] libgcc_s built with -fomit-frame-pointer on aarch64 is broken

2016-07-20 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71951 --- Comment #6 from Andrew Pinski --- (In reply to Timo Teräs from comment #5) > Not easily. It's musl, and using iterate phdr. Same build script works on > x86, x86_64 and armhf. It's only aarch64 misbehaving like this with omit > frame

[Bug libgcc/71951] libgcc_s built with -fomit-frame-pointer on aarch64 is broken

2016-07-20 Thread timo.teras at iki dot fi
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71951 --- Comment #5 from Timo Teräs --- Not easily. It's musl, and using iterate phdr. Same build script works on x86, x86_64 and armhf. It's only aarch64 misbehaving like this with omit frame pointer. Any other suggestions what to try/how to debug

[Bug libgcc/71951] libgcc_s built with -fomit-frame-pointer on aarch64 is broken

2016-07-20 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71951 --- Comment #4 from Andrew Pinski --- Can you try this on a glibc instead musl?

[Bug libgcc/71951] libgcc_s built with -fomit-frame-pointer on aarch64 is broken

2016-07-20 Thread timo.teras at iki dot fi
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71951 --- Comment #3 from Timo Teräs --- $ cat a.cpp < int foo() { throw "Foo!"; } int main () { try { foo(); }catch (const char* msg) { std::cerr << msg << std::endl; } return 0; } EOF $ gdb a GNU gdb (GDB) 7.11.1

[Bug libgcc/71951] libgcc_s built with -fomit-frame-pointer on aarch64 is broken

2016-07-20 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71951 --- Comment #2 from Andrew Pinski --- Do you have an example? Because I ran with omit frame pointer all the time.

[Bug libgcc/71951] libgcc_s built with -fomit-frame-pointer on aarch64 is broken

2016-07-20 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71951 --- Comment #1 from Andrew Pinski --- Unwind code in lib gcc does uses the dwarf2 unwinding tables. So omit frame pointer should not change anything.