[PATCH][tuples][Ada] Disable gcc_asserts in gimple_has_side_effects

Richard Guenther rguenther@suse.de
Tue Jul 22 16:14:00 GMT 2008


On Tue, 22 Jul 2008, Olivier Hainque wrote:

> Olivier Hainque wrote:
> > > I would appreciate help in reducing the EH ICE
> > 
> >  Looking into it.
> 
> $ ../prev-gcc/gnat1 -gnatp -nostdinc -I- -I. -Iada
>    -I.../src/gcc/ada p.adb
> ...
> +===========================GNAT BUG DETECTED==============================+
> | 4.4.0 20080715 (experimental) (x86_64-unknown-linux-gnu) GCC error:      |
> | in find_goto_replacement, at tree-eh.c:460                               |
> | Error detected around p.adb:42                                           |
> 
>     procedure P (X : Boolean; Id : Integer) is
>     begin
>        case Id is
> 
> 	  when 1 =>
> 	     if X then return; end if;
> 	     if X then return; end if;
> 	     if X then return;
> 	     elsif X then return;
> 	     else return;
> 	     end if;
> 
> 	  when 2 =>
> 	     if X then return;
> 	     elsif X then return;
> 	     elsif X then return;
> 	     elsif X then return;
> 	     elsif X then return;
> 	     end if;
> 
> 	  when 3 =>
> 	     if X then return;
> 	     elsif X then return;
> 	     elsif X then return;
> 	     end if;
> 
> 	     if X then return;
> 	     elsif X then
> 		if X then return; end if;
> 		return;
> 	     elsif X then return;
> 	     else return;
> 	     end if;
> 
> 	  when others =>
> 	     null;
>        end case;
>     exception
>        when Program_Error => return;
>     end;

Thanks.  Interesting that I need to include the source dir, with
just -Iada/rts it "works".  Thus, the ICE is with just

./gnat1 -quiet -I/src/svn/gimple-tuples-branch/gcc/ada p.adb


Richard.



More information about the Gcc-patches mailing list