[Bug target/85492] riscv64: endless loop when throwing an exception from a constructor

2018-05-17 Thread andrew at sifive dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85492 --- Comment #10 from Andrew Waterman --- Thanks for the suggestion. Let's go with the CFI-directive approach. On Sat, Apr 28, 2018 at 5:45 AM, aurelien at aurel32 dot net wrote: >

[Bug target/85492] riscv64: endless loop when throwing an exception from a constructor

2018-04-28 Thread aurelien at aurel32 dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85492 Aurelien Jarno changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/85492] riscv64: endless loop when throwing an exception from a constructor

2018-04-28 Thread wilson at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85492 --- Comment #8 from Jim Wilson --- (In reply to Aurelien Jarno from comment #7) > Should I just close this bug and open a new one on the glibc side? That is fine if you want to do that. > + /* Mark ra as undefined in order to stop

[Bug target/85492] riscv64: endless loop when throwing an exception from a constructor

2018-04-28 Thread aurelien at aurel32 dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85492 --- Comment #7 from Aurelien Jarno --- (In reply to Jim Wilson from comment #3) Thanks a lot Jim for finding out the issue without using gdb, that was quite a challenge. (In reply to Jim Wilson from comment #6) > I suggest you handle the glibc

[Bug target/85492] riscv64: endless loop when throwing an exception from a constructor

2018-04-27 Thread wilson at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85492 --- Comment #6 from Jim Wilson --- I suggest you handle the glibc patch. Note that you can probably also fix this by adding unwind direcives to _start to say that the return address is in x0. This would avoid the minor code size increase, but

[Bug target/85492] riscv64: endless loop when throwing an exception from a constructor

2018-04-27 Thread palmer at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85492 --- Comment #5 from palmer at gcc dot gnu.org --- Thanks Jim. This looks good to me, are you comfortable submitting glibc patches? If so then I'll commit it, otherwise I can send it out myself.

[Bug target/85492] riscv64: endless loop when throwing an exception from a constructor

2018-04-27 Thread wilson at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85492 --- Comment #4 from Jim Wilson --- Created attachment 44032 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44032=edit proposed glibc patch to fix the problem

[Bug target/85492] riscv64: endless loop when throwing an exception from a constructor

2018-04-27 Thread wilson at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85492 --- Comment #3 from Jim Wilson --- I figured out that I wasn't fully rebuilding and relinking all libraries while trying to debug this with printf, and that sent me down the wrong path. Trying this again, correctly, I see that we have a loop in

[Bug target/85492] riscv64: endless loop when throwing an exception from a constructor

2018-04-26 Thread palmer at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85492 palmer at gcc dot gnu.org changed: What|Removed |Added CC||palmer at gcc dot gnu.org