[Bug middle-end/64242] Longjmp expansion incorrect

2020-08-25 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 --- Comment #41 from CVS Commits --- The master branch has been updated by Chenghua Xu : https://gcc.gnu.org/g:68e605c93d57c17f07edd50f7e1c80f9216befd2 commit r11-2835-g68e605c93d57c17f07edd50f7e1c80f9216befd2 Author: Andrew Pinski Date:

[Bug middle-end/64242] Longjmp expansion incorrect

2020-06-23 Thread paul.hua.gm at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 Paul Hua changed: What|Removed |Added CC||paul.hua.gm at gmail dot com --- Comment #40

[Bug middle-end/64242] Longjmp expansion incorrect

2020-02-12 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 --- Comment #39 from Andrew Pinski --- Created attachment 47830 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47830=edit MIPS patch This is the MIPS patch, I will post it by the end of next week.

[Bug middle-end/64242] Longjmp expansion incorrect

2020-02-11 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 --- Comment #38 from Andrew Pinski --- (In reply to Wilco from comment #37) > (In reply to Andrew Pinski from comment #36) > > MIPS is still broken. I might look into MIPS brokenness next week. > > Yes it seems builtin_longjmp has the exact

[Bug middle-end/64242] Longjmp expansion incorrect

2020-01-27 Thread wilco at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 --- Comment #37 from Wilco --- (In reply to Andrew Pinski from comment #36) > MIPS is still broken. I might look into MIPS brokenness next week. Yes it seems builtin_longjmp has the exact same fp corruption issue: move$fp,$17

[Bug middle-end/64242] Longjmp expansion incorrect

2020-01-26 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 --- Comment #36 from Andrew Pinski --- MIPS is still broken. I might look into MIPS brokenness next week.

[Bug middle-end/64242] Longjmp expansion incorrect

2019-07-01 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 --- Comment #35 from Eric Botcazou --- Author: ebotcazou Date: Mon Jul 1 16:27:06 2019 New Revision: 272890 URL: https://gcc.gnu.org/viewcvs?rev=272890=gcc=rev Log: PR middle-end/64242 * config/sparc/sparc.md (nonlocal_goto):

[Bug middle-end/64242] Longjmp expansion incorrect

2019-07-01 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 --- Comment #34 from Eric Botcazou --- Author: ebotcazou Date: Mon Jul 1 16:26:38 2019 New Revision: 272889 URL: https://gcc.gnu.org/viewcvs?rev=272889=gcc=rev Log: PR middle-end/64242 * config/sparc/sparc.md (nonlocal_goto):

[Bug middle-end/64242] Longjmp expansion incorrect

2019-06-17 Thread wilco at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 --- Comment #33 from Wilco --- Author: wilco Date: Mon Jun 17 11:25:12 2019 New Revision: 272382 URL: https://gcc.gnu.org/viewcvs?rev=272382=gcc=rev Log: Improve PR64242 testcase Clear the input array to avoid the testcase accidentally passing

[Bug middle-end/64242] Longjmp expansion incorrect

2019-06-16 Thread danglin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 --- Comment #32 from John David Anglin --- Author: danglin Date: Sun Jun 16 21:49:19 2019 New Revision: 272364 URL: https://gcc.gnu.org/viewcvs?rev=272364=gcc=rev Log: PR middle-end/64242 * config/pa/pa.md (nonlocal_goto):

[Bug middle-end/64242] Longjmp expansion incorrect

2019-06-16 Thread danglin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 --- Comment #31 from John David Anglin --- Author: danglin Date: Sun Jun 16 21:46:47 2019 New Revision: 272363 URL: https://gcc.gnu.org/viewcvs?rev=272363=gcc=rev Log: PR middle-end/64242 * config/pa/pa.md (nonlocal_goto):

[Bug middle-end/64242] Longjmp expansion incorrect

2019-06-16 Thread danglin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 --- Comment #30 from John David Anglin --- Author: danglin Date: Sun Jun 16 21:44:08 2019 New Revision: 272362 URL: https://gcc.gnu.org/viewcvs?rev=272362=gcc=rev Log: PR middle-end/64242 * config/pa/pa.md (nonlocal_goto):

[Bug middle-end/64242] Longjmp expansion incorrect

2019-06-16 Thread danglin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 --- Comment #29 from John David Anglin --- Author: danglin Date: Sun Jun 16 21:27:14 2019 New Revision: 272361 URL: https://gcc.gnu.org/viewcvs?rev=272361=gcc=rev Log: PR middle-end/64242 * config/pa/pa.md (nonlocal_goto):

[Bug middle-end/64242] Longjmp expansion incorrect

2019-06-15 Thread dave.anglin at bell dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 --- Comment #28 from dave.anglin at bell dot net --- On 2019-06-14 10:13 a.m., wilco at gcc dot gnu.org wrote: > Given there are many possible stack layouts, the easiest option would be to > clear the input buffer so it will jump to a null

[Bug middle-end/64242] Longjmp expansion incorrect

2019-06-14 Thread wilco at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 --- Comment #27 from Wilco --- (In reply to dave.anglin from comment #26) > On 2019-06-10 9:51 a.m., wilco at gcc dot gnu.org wrote: > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 > > > > --- Comment #25 from Wilco --- > > I believe

[Bug middle-end/64242] Longjmp expansion incorrect

2019-06-10 Thread dave.anglin at bell dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 --- Comment #26 from dave.anglin at bell dot net --- On 2019-06-10 9:51 a.m., wilco at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 > > --- Comment #25 from Wilco --- > I believe this is now fixed for generic code

[Bug middle-end/64242] Longjmp expansion incorrect

2019-06-10 Thread wilco at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 --- Comment #25 from Wilco --- I believe this is now fixed for generic code - however targets which implement the nonlocal_goto expander (eg. pa, sparc, vax) need similar fixes in their backends.

[Bug middle-end/64242] Longjmp expansion incorrect

2019-06-03 Thread wilco at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 --- Comment #24 from Wilco --- Author: wilco Date: Mon Jun 3 13:55:15 2019 New Revision: 271870 URL: https://gcc.gnu.org/viewcvs?rev=271870=gcc=rev Log: Fix PR64242 - Longjmp expansion incorrect Improve the fix for PR64242. Various

[Bug middle-end/64242] Longjmp expansion incorrect

2019-03-28 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 Eric Botcazou changed: What|Removed |Added CC||wilson at gcc dot gnu.org --- Comment

[Bug middle-end/64242] Longjmp expansion incorrect

2019-02-12 Thread danglin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 John David Anglin changed: What|Removed |Added CC||danglin at gcc dot gnu.org ---

[Bug middle-end/64242] Longjmp expansion incorrect

2018-12-07 Thread wilco at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 --- Comment #21 from Wilco --- (In reply to Rainer Orth from comment #20) > The new testcase also FAILs on sparc-sun-solaris2.11 (both 32 and 64-bit): > > +FAIL: gcc.c-torture/execute/pr64242.c -O2 execution test > +FAIL:

[Bug middle-end/64242] Longjmp expansion incorrect

2018-12-05 Thread ro at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 Rainer Orth changed: What|Removed |Added CC||ebotcazou at gcc dot gnu.org,

[Bug middle-end/64242] Longjmp expansion incorrect

2018-12-05 Thread paul.hua.gm at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 Paul Hua changed: What|Removed |Added CC||paul.hua.gm at gmail dot com --- Comment #19

[Bug middle-end/64242] Longjmp expansion incorrect

2018-12-03 Thread wilco at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 --- Comment #18 from Wilco --- (In reply to Jeffrey A. Law from comment #17) > Or just emit a blockage insn to avoid the undesirable code motion. I tried that already, it doesn't affect the forward substitution - I guess it simply assumes it is

[Bug middle-end/64242] Longjmp expansion incorrect

2018-12-03 Thread law at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 --- Comment #17 from Jeffrey A. Law --- Or just emit a blockage insn to avoid the undesirable code motion.

[Bug middle-end/64242] Longjmp expansion incorrect

2018-12-03 Thread wilco at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 --- Comment #16 from Wilco --- (In reply to Christophe Lyon from comment #9) > Created attachment 45138 [details] > QEMU traces for --with-cpu=cortex-m3 / QEMU --cpu cortex-m3 Thanks, I can reproduce this now. It fails due to sched1 scheduling

[Bug middle-end/64242] Longjmp expansion incorrect

2018-12-03 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 --- Comment #15 from Jakub Jelinek --- Author: jakub Date: Mon Dec 3 20:57:14 2018 New Revision: 266766 URL: https://gcc.gnu.org/viewcvs?rev=266766=gcc=rev Log: PR middle-end/64242 * gcc.c-torture/execute/pr64242.c (foo, bar):

[Bug middle-end/64242] Longjmp expansion incorrect

2018-12-03 Thread wilco at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 --- Comment #14 from Wilco --- (In reply to Jakub Jelinek from comment #13) > I wonder about following, on i686-linux it FAILs with older trunk and > succeeds with current trunk. Without the (useless) stack realignment the > right value of

[Bug middle-end/64242] Longjmp expansion incorrect

2018-12-03 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 --- Comment #13 from Jakub Jelinek --- I wonder about following, on i686-linux it FAILs with older trunk and succeeds with current trunk. Without the (useless) stack realignment the right value of stack pointer happened to be in exactly that

[Bug middle-end/64242] Longjmp expansion incorrect

2018-12-03 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 H.J. Lu changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

[Bug middle-end/64242] Longjmp expansion incorrect

2018-12-03 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 --- Comment #11 from H.J. Lu --- The testcase failed on many targets.

[Bug middle-end/64242] Longjmp expansion incorrect

2018-12-03 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment

[Bug middle-end/64242] Longjmp expansion incorrect

2018-12-03 Thread clyon at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 --- Comment #9 from Christophe Lyon --- Created attachment 45138 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45138=edit QEMU traces for --with-cpu=cortex-m3 / QEMU --cpu cortex-m3

[Bug middle-end/64242] Longjmp expansion incorrect

2018-12-03 Thread clyon at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 --- Comment #8 from Christophe Lyon --- Created attachment 45137 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45137=edit QEMU traces for --with-cpu=default / QEMU --cpu arm926

[Bug middle-end/64242] Longjmp expansion incorrect

2018-12-03 Thread clyon at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 Christophe Lyon changed: What|Removed |Added CC||clyon at gcc dot gnu.org --- Comment

[Bug middle-end/64242] Longjmp expansion incorrect

2018-11-30 Thread law at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 Jeffrey A. Law changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Bug middle-end/64242] Longjmp expansion incorrect

2018-11-30 Thread law at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 --- Comment #5 from Jeffrey A. Law --- Author: law Date: Fri Nov 30 23:06:51 2018 New Revision: 266697 URL: https://gcc.gnu.org/viewcvs?rev=266697=gcc=rev Log: PR middle-end/64242 * builtins.c (expand_builtin_longjmp): Use a

[Bug middle-end/64242] Longjmp expansion incorrect

2018-11-29 Thread wilco at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 Wilco changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |wilco at gcc dot gnu.org --- Comment #4

[Bug middle-end/64242] Longjmp expansion incorrect

2018-11-29 Thread wilco at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242 Wilco changed: What|Removed |Added Target|i386| Status|UNCONFIRMED