public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc-4.4 objc internal compiler error
@ 2009-03-30  9:43 Vincent R.
  2009-03-30  9:48 ` Vincent R.
  0 siblings, 1 reply; 2+ messages in thread
From: Vincent R. @ 2009-03-30  9:43 UTC (permalink / raw)
  To: gcc-help

Hi,

When trying the following example with an arm_wince gcc-4.4 cross-compiler,
I get an internal
compiler error :

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

int main( int argc, const char *argv[] ) 
{
  int result = 0;

  @try {
    printf("in @try\n");
    if (argc > 1) {
      @throw @"Throw !";
      //[NSException exceptionWithName:@"Trwoing a test exception"
reason:@"Testing the @throw directive." userInfo:nil];

    }
  } 
  @catch (id except) {
    result = 1;
    printf("in @catch\n");
  }
    @finally {
    result += 2;
    }
  return result;
}

objc_try_catch.m: In function 'main':
objc_try_catch.m:25: internal compiler error: in gen_eh_region, at
except.c:425
Please submit a full bug report,
with preprocessed source if appropriate.

The problem seems to be caused by an assert checking doing-seh 

static struct eh_region *
gen_eh_region (enum eh_region_type type, struct eh_region *outer)
{
  struct eh_region *new_eh;

#ifdef ENABLE_CHECKING
  gcc_assert (doing_eh (0));
#endif

 DO I need to pass special arguments when building objc cross compiler ?

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

* Re: gcc-4.4 objc internal compiler error
  2009-03-30  9:43 gcc-4.4 objc internal compiler error Vincent R.
@ 2009-03-30  9:48 ` Vincent R.
  0 siblings, 0 replies; 2+ messages in thread
From: Vincent R. @ 2009-03-30  9:48 UTC (permalink / raw)
  To: gcc-help

On Mon, 30 Mar 2009 11:43:12 +0200, "Vincent R." <forumer@smartmobili.com>
wrote:
> Hi,
> 
> When trying the following example with an arm_wince gcc-4.4
cross-compiler,
> I get an internal
> compiler error :
> 
> #import <stdio.h>
> #import <objc/Object.h>
> #import <objc/NXConstStr.h>
> 
> int main( int argc, const char *argv[] ) 
> {
>   int result = 0;
> 
>   @try {
>     printf("in @try\n");
>     if (argc > 1) {
>       @throw @"Throw !";
>       //[NSException exceptionWithName:@"Trwoing a test exception"
> reason:@"Testing the @throw directive." userInfo:nil];
> 
>     }
>   } 
>   @catch (id except) {
>     result = 1;
>     printf("in @catch\n");
>   }
>     @finally {
>     result += 2;
>     }
>   return result;
> }
> 
> objc_try_catch.m: In function 'main':
> objc_try_catch.m:25: internal compiler error: in gen_eh_region, at
> except.c:425
> Please submit a full bug report,
> with preprocessed source if appropriate.
> 
> The problem seems to be caused by an assert checking doing-seh 
> 
> static struct eh_region *
> gen_eh_region (enum eh_region_type type, struct eh_region *outer)
> {
>   struct eh_region *new_eh;
> 
> #ifdef ENABLE_CHECKING
>   gcc_assert (doing_eh (0));
> #endif
> 
>  DO I need to pass special arguments when building objc cross compiler ?

Ok I found -fexceptions.

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

end of thread, other threads:[~2009-03-30  9:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-30  9:43 gcc-4.4 objc internal compiler error Vincent R.
2009-03-30  9:48 ` Vincent R.

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).