diff mbox

[C++11,4.9] Add missing REDUC_PLUS_EXPR case to potential_constant_expression_1.

Message ID 20130423085846.417703BE1A@mailhost.lps.ens.fr
State New
Headers show

Commit Message

Dominique d'Humières April 23, 2013, 8:58 a.m. UTC
Revision 198142 breaks bootstrapping with Ada:

...
../../xgcc -B../../ -c -DIN_GCC  -g -O2 -W -Wall  \
		-iquote /opt/gcc/work/gcc \
		 -iquote . -iquote .. -iquote ../.. -iquote /opt/gcc/work/gcc/ada -iquote /opt/gcc/work/gcc -I/opt/gcc/work/gcc/../include -I/opt/mp/include  \
		../rts/targext.c -o targext.o
In file included from ../rts/targext.c:45:0:
/opt/gcc/work/gcc/coretypes.h:66:1: error: unknown type name 'gimple_stmt_iterator_d'
 typedef gimple_stmt_iterator_d gimple_stmt_iterator;
...

Following the David Malcolm's advice pn IRC, the patch


allowed me to bootstrap revision 198157.

TIA

Dominique
diff mbox

Patch

--- ../_clean/gcc/coretypes.h	2013-04-22 18:03:40.000000000 +0200
+++ gcc/coretypes.h	2013-04-22 22:44:33.000000000 +0200
@@ -63,7 +63,7 @@  typedef union gimple_statement_d *gimple
 typedef const union gimple_statement_d *const_gimple;
 typedef gimple gimple_seq;
 struct gimple_stmt_iterator_d;
-typedef gimple_stmt_iterator_d gimple_stmt_iterator;
+typedef struct gimple_stmt_iterator_d gimple_stmt_iterator;
 union section;
 typedef union section section;
 struct gcc_options;