[Bug target/38952] [4.4 Regression] EH does not work.

2009-01-31 Thread hjl dot tools at gmail dot com
--- Comment #26 from hjl dot tools at gmail dot com 2009-01-31 17:34 --- Fixed. -- hjl dot tools at gmail dot com changed: What|Removed |Added Status|NEW

[Bug target/38952] [4.4 Regression] EH does not work.

2009-01-31 Thread hjl at gcc dot gnu dot org
--- Comment #25 from hjl at gcc dot gnu dot org 2009-01-31 17:34 --- Subject: Bug 38952 Author: hjl Date: Sat Jan 31 17:34:03 2009 New Revision: 143823 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143823 Log: 2009-01-31 Dave Korn PR target/38952 * config/i3

[Bug target/38952] [4.4 Regression] EH does not work.

2009-01-31 Thread ktietz at gcc dot gnu dot org
--- Comment #24 from ktietz at gcc dot gnu dot org 2009-01-31 17:21 --- (In reply to comment #21) > Hi Joey, thanks for helping look at this bug. > > If you catch up with all the comments, you'll see that it's not just Cygwin, > SjLj was broken on Linux too; the mechanism works the

[Bug target/38952] [4.4 Regression] EH does not work.

2009-01-26 Thread hjl at gcc dot gnu dot org
--- Comment #23 from hjl at gcc dot gnu dot org 2009-01-26 23:39 --- Subject: Bug 38952 Author: hjl Date: Mon Jan 26 23:39:02 2009 New Revision: 143689 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143689 Log: 2009-01-26 H.J. Lu PR target/38952 * g++.dg/tort

[Bug target/38952] [4.4 Regression] EH does not work.

2009-01-26 Thread hjl dot tools at gmail dot com
--- Comment #22 from hjl dot tools at gmail dot com 2009-01-26 22:29 --- (In reply to comment #18) > Created an attachment (id=17183) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17183&action=view) [edit] > Implement TARGET_BUILTIN_SETJMP_FRAME_VALUE. > > Now testing this patch

[Bug target/38952] [4.4 Regression] EH does not work.

2009-01-26 Thread dave dot korn dot cygwin at gmail dot com
--- Comment #21 from dave dot korn dot cygwin at gmail dot com 2009-01-26 19:03 --- Hi Joey, thanks for helping look at this bug. If you catch up with all the comments, you'll see that it's not just Cygwin, SjLj was broken on Linux too; the mechanism works the same way on both, but

[Bug target/38952] [4.4 Regression] EH does not work.

2009-01-26 Thread Joey dot ye at intel dot com
--- Comment #20 from Joey dot ye at intel dot com 2009-01-26 11:49 --- (In reply to comment #10) > This is caused by stack alignment change, revision 138335. Joey and > Xuepeng will look into it after holiday, Feb. 1. This must be stack alignment change. Looks we didn't handle stack unwi

[Bug target/38952] [4.4 Regression] EH does not work.

2009-01-25 Thread dave dot korn dot cygwin at gmail dot com
--- Comment #19 from dave dot korn dot cygwin at gmail dot com 2009-01-25 23:07 --- Created an attachment (id=17184) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17184&action=view) Implement TARGET_BUILTIN_SETJMP_FRAME_VALUE *correctly*. Dur. Corrected patch for return type thi

[Bug target/38952] [4.4 Regression] EH does not work.

2009-01-25 Thread dave dot korn dot cygwin at gmail dot com
--- Comment #18 from dave dot korn dot cygwin at gmail dot com 2009-01-25 21:36 --- Created an attachment (id=17183) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17183&action=view) Implement TARGET_BUILTIN_SETJMP_FRAME_VALUE. Now testing this patch which should fix setjmp calcul

[Bug target/38952] [4.4 Regression] EH does not work.

2009-01-24 Thread dave dot korn dot cygwin at gmail dot com
--- Comment #17 from dave dot korn dot cygwin at gmail dot com 2009-01-25 07:47 --- And this is what I'll try: -- Target Hook: bool TARGET_BUILTIN_SETJMP_FRAME_VALUE () This target hook should return an rtx that is used to store the address of the current frame into the buil

[Bug target/38952] [4.4 Regression] EH does not work.

2009-01-24 Thread dave dot korn dot cygwin at gmail dot com
--- Comment #16 from dave dot korn dot cygwin at gmail dot com 2009-01-25 06:40 --- ./eh.C: In function 'int main()': ./eh.C:11: internal compiler error: in print_reg, at config/i386/i386.c:10466 Please submit a full bug report, with preprocessed source if appropriate. See

[Bug target/38952] [4.4 Regression] EH does not work.

2009-01-24 Thread dave dot korn dot cygwin at gmail dot com
--- Comment #15 from dave dot korn dot cygwin at gmail dot com 2009-01-25 06:33 --- (In reply to comment #14) > And that is presumably the intention of this if clause in ix86_can_eliminate: > > if (stack_realign_fp) > return ((from == ARG_POINTER_REGNUM > && to == HA

[Bug target/38952] [4.4 Regression] EH does not work.

2009-01-24 Thread dave dot korn dot cygwin at gmail dot com
--- Comment #14 from dave dot korn dot cygwin at gmail dot com 2009-01-25 06:05 --- Adding "-mpreferred-stack-boundary=2" to the command line generates correct code. Here are the diffs between code generated by that setting and the default (-mpreferred-stack-boundary=4) for the start o

[Bug target/38952] [4.4 Regression] EH does not work.

2009-01-24 Thread dave dot korn dot cygwin at gmail dot com
--- Comment #13 from dave dot korn dot cygwin at gmail dot com 2009-01-25 05:58 --- Created an attachment (id=17178) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17178&action=view) Diffs between good and bad versions This shows a diff between the testcase compiled with -mpreferr

[Bug target/38952] [4.4 Regression] EH does not work.

2009-01-24 Thread dave dot korn dot cygwin at gmail dot com
--- Comment #12 from dave dot korn dot cygwin at gmail dot com 2009-01-25 05:56 --- Created an attachment (id=17177) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17177&action=view) Correct code compiled with -mpreferred-stack-boundary=2 Adding "-mpreferred-stack-boundary=2" to t

[Bug target/38952] [4.4 Regression] EH does not work.

2009-01-24 Thread dave dot korn dot cygwin at gmail dot com
--- Comment #11 from dave dot korn dot cygwin at gmail dot com 2009-01-25 05:33 --- Thanks for your help HJ. I'll do some more debugging and add notes while you're away. Happy New Year! -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38952

[Bug target/38952] [4.4 Regression] EH does not work.

2009-01-24 Thread hjl dot tools at gmail dot com
--- Comment #10 from hjl dot tools at gmail dot com 2009-01-24 21:41 --- This is caused by stack alignment change, revision 138335. Joey and Xuepeng will look into it after holiday, Feb. 1. -- hjl dot tools at gmail dot com changed: What|Removed |

[Bug target/38952] [4.4 Regression] EH does not work.

2009-01-24 Thread dave dot korn dot cygwin at gmail dot com
--- Comment #9 from dave dot korn dot cygwin at gmail dot com 2009-01-24 18:12 --- Thanks for the test results and confirmation, Uros. It looks like more or less exactly the same list of FAILs as I see on Cygwin, so I think this confirms a generic issue with frame pointer elimination i

[Bug target/38952] [4.4 Regression] EH does not work.

2009-01-24 Thread ubizjak at gmail dot com
--- Comment #8 from ubizjak at gmail dot com 2009-01-24 17:06 --- There are numerous g++ EH failures even for x86-pc-linux-gnu, when gcc is configured with --enable-sjlj-exceptions, so something is serious FUBAR w.r.t to SJLJ exceptions. === g++ tests === Running targe

[Bug target/38952] [4.4 Regression] EH does not work.

2009-01-24 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Keywords||wrong-code Target Milestone|--- |4.4.0 ht

[Bug target/38952] [4.4 Regression] EH does not work.

2009-01-23 Thread dave dot korn dot cygwin at gmail dot com
--- Comment #7 from dave dot korn dot cygwin at gmail dot com 2009-01-24 06:23 --- Not IRA-related, it seems, but reload-backend interaction. -fno-ira doesn't make any difference to the generated code to calculate the frame pointer for the jmp_buf. In a non-IRA build, pass 172r.lreg h

[Bug target/38952] [4.4 Regression] EH does not work.

2009-01-23 Thread dave dot korn dot cygwin at gmail dot com
--- Comment #6 from dave dot korn dot cygwin at gmail dot com 2009-01-24 01:08 --- Here is the RTL that is created by the .130r.eh pass: everything between note 2 and call_insn 3, was added after expand. try_optimize_cfg iteration 2 (note 1 0 4 NOTE_INSN_DELETED) (note 4 1 2 2 [bb 2]

[Bug target/38952] [4.4 Regression] EH does not work.

2009-01-23 Thread dave dot korn dot cygwin at gmail dot com
--- Comment #5 from dave dot korn dot cygwin at gmail dot com 2009-01-24 00:10 --- Here is a disassembly of the start of the main function: (gdb) disass main Dump of assembler code for function main: 0x00401070 :push %ebp 0x00401071 :mov%esp,%ebp 0x00401073 :and

[Bug target/38952] [4.4 Regression] EH does not work.

2009-01-23 Thread dave dot korn dot cygwin at gmail dot com
--- Comment #4 from dave dot korn dot cygwin at gmail dot com 2009-01-23 23:44 --- The bug manifests itself as a crash on exit from main(); $eip is set to zero and we get a SEGV. On entry to main(), the registers show: esp0x22cc40 0x22cc40 ebp0x22cca8 0x22c

[Bug target/38952] [4.4 Regression] EH does not work.

2009-01-23 Thread dave dot korn dot cygwin at gmail dot com
--- Comment #3 from dave dot korn dot cygwin at gmail dot com 2009-01-23 23:32 --- Created an attachment (id=17171) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17171&action=view) Generated assembler for testcase -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38952

[Bug target/38952] [4.4 Regression] EH does not work.

2009-01-23 Thread dave dot korn dot cygwin at gmail dot com
--- Comment #2 from dave dot korn dot cygwin at gmail dot com 2009-01-23 23:31 --- Created an attachment (id=17170) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17170&action=view) Pre-processed source of testcase. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38952

[Bug target/38952] [4.4 Regression] EH does not work.

2009-01-23 Thread dave dot korn dot cygwin at gmail dot com
--- Comment #1 from dave dot korn dot cygwin at gmail dot com 2009-01-23 23:31 --- Created an attachment (id=17169) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17169&action=view) Simple throw-catch testcase Test cases don't come much simpler than this. -- http://gcc.gnu.or