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



--- Comment #20 from Markus Trippelsdorf <markus at trippelsdorf dot de> 
2012-11-24 19:47:37 UTC ---

With:

diff --git a/gcc/lto-opts.c b/gcc/lto-opts.c

index a235f41..1c05534 100644

--- a/gcc/lto-opts.c

+++ b/gcc/lto-opts.c

@@ -93,6 +93,8 @@ lto_write_options (void)

     {

       struct cl_decoded_option *option = &save_decoded_options[i];



+      gcc_assert (option->opt_index < cl_options_count);

+

       /* Skip frontend and driver specific options here.  */

       if (!(cl_options[option->opt_index].flags &

(CL_COMMON|CL_TARGET|CL_LTO)))

        continue;



I get:

markus@x4 gcc_build_dir % ./gcc/xgcc -B/var/tmp/gcc_build_dir/./gcc/ -c -flto

/home/markus/t.c

/home/markus/t.c:1:1: internal compiler error: in lto_write_options, at

lto-opts.c:96

Reply via email to