This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++11][4.9] Add missing REDUC_PLUS_EXPR case to potential_constant_expression_1.
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: James Greenhalgh <james dot greenhalgh at arm dot com>
- Cc: gcc-patches at gcc dot gnu dot org, richard dot guenther at gmail dot com, jason at redhat dot com, jakub at redhat dot com, gdr at integrable-solutions dot net, mark at codesourcery dot com, marcus dot shawcroft at arm dot com, tejas dot belagod at arm dot com
- Date: Tue, 23 Apr 2013 11:05:47 +0200
- Subject: Re: [C++11][4.9] Add missing REDUC_PLUS_EXPR case to potential_constant_expression_1.
- References: <CAFiYyc2+HhEUk6i_gmZtaBFhXJnS9UGJND=_SdQPFDm=JRQ=dA at mail dot gmail dot com> <1366391749-1765-1-git-send-email-james dot greenhalgh at arm dot com>
James Greenhalgh <james.greenhalgh@arm.com> writes:
> diff --git a/gcc/coretypes.h b/gcc/coretypes.h
> index 320b4dd..76fc4aa 100644
> --- a/gcc/coretypes.h
> +++ b/gcc/coretypes.h
> @@ -62,6 +62,8 @@ union gimple_statement_d;
> 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;
../../xgcc -B../../ -c -DIN_GCC -DUSE_LIBUNWIND_EXCEPTIONS -O2 -g -W -Wall \
-iquote /usr/local/gcc/gcc-20130423/gcc \
-iquote . -iquote .. -iquote ../.. -iquote /usr/local/gcc/gcc-20130423/gcc/ada -iquote /usr/local/gcc/gcc-20130423/gcc -I/usr/local/gcc/gcc-20130423/gcc/../include -I/usr/local/gcc/gcc-20130423/Build/./gmp -I/usr/local/gcc/gcc-20130423/gmp -I/usr/local/gcc/gcc-20130423/Build/./mpfr -I/usr/local/gcc/gcc-20130423/mpfr -I/usr/local/gcc/gcc-20130423/mpc/src \
../rts/targext.c -o targext.o
In file included from ../rts/targext.c:45:0:
/usr/local/gcc/gcc-20130423/gcc/coretypes.h:66:1: error: unknown type name 'gimple_stmt_iterator_d'
typedef gimple_stmt_iterator_d gimple_stmt_iterator;
^
make[3]: *** [targext.o] Error 1
make[3]: Leaving directory `/usr/local/gcc/gcc-20130423/Build/gcc/ada/tools'
make[2]: *** [gnattools-native] Error 2
Tested on x86_64-suse-linux and committed as obvious.
Andreas.
* coretypes.h (gimple_stmt_iterator): Add struct to make
compatible with C.
Index: coretypes.h
===================================================================
--- coretypes.h (revision 198175)
+++ coretypes.h (working copy)
@@ -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;
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."