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



--- Comment #14 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2013-02-16 
13:45:48 UTC ---

> I just tried out to bootstrap r196092 on mingw32. There is still one more cast

> patch missing to make it work for that target.

> 

> diff -uart gcc-4.8.0-r196092/gcc/ada/seh_init.c gcc-4.8.0/gcc/ada/seh_init.c

> --- gcc-4.8.0-r196092/gcc/ada/seh_init.c    2013-02-16 08:26:53 +0000

> +++ gcc-4.8.0/gcc/ada/seh_init.c    2013-02-06 12:01:20 +0000

> @@ -198,7 +198,7 @@

>  #endif

> 

>    Raise_From_Signal_Handler (exception, msg);

> -  return 0; /* This is never reached, avoid compiler warning  */

> +  return (EXCEPTION_DISPOSITION)0; /* This is never reached, avoid compiler

> warning  */

>  }

>  #endif /* !(defined (_WIN64) && defined (__SEH__)) */



That's ugly, please use ATTRIBUTE_NORETURN instead.

Reply via email to