public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug objc/45878] New: Can't compile even a trivial ObjC program with -fexceptions -O2
@ 2010-10-03 23:56 nicola at gcc dot gnu.org
  2010-10-04  7:32 ` [Bug objc/45878] [4.6 Regression] " iains at gcc dot gnu.org
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: nicola at gcc dot gnu.org @ 2010-10-03 23:56 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45878

           Summary: Can't compile even a trivial ObjC program with
                    -fexceptions -O2
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: objc
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: nicola@gcc.gnu.org


Created attachment 21953
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=21953
Test case that does not compile with -fexceptions -O2

The following testcase:

#import <objc/objc.h>
#import <objc/NXConstStr.h>

void function (void)
{
  if ([@"strings" isEqual: nil])
    {
      ;
    }
}

fails to compile if you compile it with -O2 -fexceptions.

gcc gimple_call.m -lobjc -c -O2 -fexceptions
gimple_call.m: In function ‘function’:
gimple_call.m:10:1: error: invalid conversion in gimple call
BOOL

struct objc_object *

# .MEM_7 = VDEF <.MEM_6>
D.3351_3 = D.3350_1 (&_OBJC_INSTANCE_0, &_OBJC_SELECTOR_TABLE, 0B);

gimple_call.m:10:1: internal compiler error: verify_stmts failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Thanks


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2010-10-13 20:31 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-03 23:56 [Bug objc/45878] New: Can't compile even a trivial ObjC program with -fexceptions -O2 nicola at gcc dot gnu.org
2010-10-04  7:32 ` [Bug objc/45878] [4.6 Regression] " iains at gcc dot gnu.org
2010-10-04  9:25 ` iains at gcc dot gnu.org
2010-10-04 10:12 ` rguenth at gcc dot gnu.org
2010-10-12 16:03 ` iains at gcc dot gnu.org
2010-10-12 16:38 ` mrs at gcc dot gnu.org
2010-10-12 16:40 ` mrs at gcc dot gnu.org
2010-10-13 13:55 ` rguenth at gcc dot gnu.org
2010-10-13 14:26 ` iains at gcc dot gnu.org
2010-10-13 15:05 ` nicola at gcc dot gnu.org
2010-10-13 15:16 ` dominiq at lps dot ens.fr
2010-10-13 15:27 ` iains at gcc dot gnu.org
2010-10-13 15:44 ` rguenth at gcc dot gnu.org
2010-10-13 16:59 ` nicola at gcc dot gnu.org
2010-10-13 18:25 ` rguenth at gcc dot gnu.org
2010-10-13 18:38 ` rguenth at gcc dot gnu.org
2010-10-13 18:48 ` nicola at gcc dot gnu.org
2010-10-13 20:31 ` rguenth at gcc dot gnu.org
2010-10-13 20:31 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).