[Bug objc/45878] [4.6 Regression] Can't compile even a trivial ObjC program with -fexceptions -O2

2010-10-13 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45878 --- Comment #16 from Richard Guenther 2010-10-13 20:30:17 UTC --- Author: rguenth Date: Wed Oct 13 20:30:10 2010 New Revision: 165435 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=165435 Log: 2010-10-13 Richard Guenther PR objc/4

[Bug objc/45878] [4.6 Regression] Can't compile even a trivial ObjC program with -fexceptions -O2

2010-10-13 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45878 Richard Guenther changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|

[Bug objc/45878] [4.6 Regression] Can't compile even a trivial ObjC program with -fexceptions -O2

2010-10-13 Thread nicola at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45878 --- Comment #15 from Nicola Pero 2010-10-13 18:47:52 UTC --- Try the following testcase, which requires no includes: == typedef struct objc_object { Class class_pointer; } *id; typedef unsigned char BOOL; @interface Object { Cla

[Bug objc/45878] [4.6 Regression] Can't compile even a trivial ObjC program with -fexceptions -O2

2010-10-13 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45878 --- Comment #14 from Richard Guenther 2010-10-13 18:37:55 UTC --- Hm, where are objc headers in a build tree? I can't seem to compile the original testcase: /obj/trunk-g/gcc$ ./xgcc -B. -S gimple_call.m gimple_call.m:1:22: fatal error: objc/obj

[Bug objc/45878] [4.6 Regression] Can't compile even a trivial ObjC program with -fexceptions -O2

2010-10-13 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45878 --- Comment #13 from Richard Guenther 2010-10-13 18:25:12 UTC --- Author: rguenth Date: Wed Oct 13 18:25:08 2010 New Revision: 165430 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=165430 Log: 2010-10-13 Richard Guenther PR objc/4

[Bug objc/45878] [4.6 Regression] Can't compile even a trivial ObjC program with -fexceptions -O2

2010-10-13 Thread nicola at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45878 --- Comment #12 from Nicola Pero 2010-10-13 16:58:34 UTC --- Yes, the testcase still fails for me after applying the patch. By the way, Richard, thanks a lot for looking into this. I really appreciate it :-) Thanks

[Bug objc/45878] [4.6 Regression] Can't compile even a trivial ObjC program with -fexceptions -O2

2010-10-13 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45878 Richard Guenther changed: What|Removed |Added Status|NEW |ASSIGNED AssignedTo|unassigned

[Bug objc/45878] [4.6 Regression] Can't compile even a trivial ObjC program with -fexceptions -O2

2010-10-13 Thread iains at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45878 --- Comment #10 from Iain Sandoe 2010-10-13 15:27:09 UTC --- (In reply to comment #8) > Yes, I have already extracted a testcase from GNUstep - it's in the first > comment in the issue. :-) > > On my Linux i386, that (valid) piece of code fails

[Bug objc/45878] [4.6 Regression] Can't compile even a trivial ObjC program with -fexceptions -O2

2010-10-13 Thread dominiq at lps dot ens.fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45878 --- Comment #9 from Dominique d'Humieres 2010-10-13 15:16:39 UTC --- With the patch in comment #6 and revision 164908, I get the same results as with revision 164908 reverted on powerpc-apple-darwin9: === objc Summary for unix/-m

[Bug objc/45878] [4.6 Regression] Can't compile even a trivial ObjC program with -fexceptions -O2

2010-10-13 Thread nicola at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45878 --- Comment #8 from Nicola Pero 2010-10-13 15:05:13 UTC --- Yes, I have already extracted a testcase from GNUstep - it's in the first comment in the issue. :-) On my Linux i386, that (valid) piece of code fails to compile with 'internal compiler

[Bug objc/45878] [4.6 Regression] Can't compile even a trivial ObjC program with -fexceptions -O2

2010-10-13 Thread iains at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45878 --- Comment #7 from Iain Sandoe 2010-10-13 14:25:57 UTC --- (In reply to comment #6) > (In reply to comment #5) thanks for the patch ... > It is likely a miscommunication (or lack of definition) on what the middle-end > expects from an OBJ_TYP

[Bug objc/45878] [4.6 Regression] Can't compile even a trivial ObjC program with -fexceptions -O2

2010-10-13 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45878 --- Comment #6 from Richard Guenther 2010-10-13 13:54:54 UTC --- (In reply to comment #5) > I think the patch that broke this should be backed out until the semantics are > sorted out. I think the middle-end people should decide on which part of

[Bug objc/45878] [4.6 Regression] Can't compile even a trivial ObjC program with -fexceptions -O2

2010-10-12 Thread mrs at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45878 m...@gcc.gnu.org changed: What|Removed |Added Priority|P3 |P1

[Bug objc/45878] [4.6 Regression] Can't compile even a trivial ObjC program with -fexceptions -O2

2010-10-12 Thread mrs at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45878 --- Comment #5 from mrs at gcc dot gnu.org 2010-10-12 16:38:16 UTC --- I think the patch that broke this should be backed out until the semantics are sorted out. I think the middle-end people should decide on which part of the compiler is wrong,

[Bug objc/45878] [4.6 Regression] Can't compile even a trivial ObjC program with -fexceptions -O2

2010-10-12 Thread iains at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45878 Iain Sandoe changed: What|Removed |Added CC||mrs at gcc dot gnu.org --- Comment #4 from

[Bug objc/45878] [4.6 Regression] Can't compile even a trivial ObjC program with -fexceptions -O2

2010-10-04 Thread iains at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45878 --- Comment #2 from Iain Sandoe 2010-10-04 09:25:18 UTC --- hm, I made a very simple root object like this [omitting the cruft to declare the types & routines for both NeXT and GNU runtimes]. @interface myRootObject { @public Class isa;

[Bug objc/45878] [4.6 Regression] Can't compile even a trivial ObjC program with -fexceptions -O2

2010-10-04 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45878 --- Comment #3 from Richard Guenther 2010-10-04 10:12:17 UTC --- Well, what happens is that ObjC (not necessarily incorrectly) assumes that an OBJ_TYPE_REF acts as a function type conversion. Folding OTOH simply replaces the called function with

[Bug objc/45878] [4.6 Regression] Can't compile even a trivial ObjC program with -fexceptions -O2

2010-10-04 Thread iains at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45878 Iain Sandoe changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|