This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
build regression w/ --enable-targets=all && gcc-4.8+ [Re: [committed] Add structures to describe MIPS operands]
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: binutils at sourceware dot org, rdsandiford at googlemail dot com
- Date: Wed, 17 Jul 2013 06:21:39 +0200
- Subject: build regression w/ --enable-targets=all && gcc-4.8+ [Re: [committed] Add structures to describe MIPS operands]
- References: <87oba5z2w2 dot fsf at talisman dot default>
On Sun, 14 Jul 2013 15:29:01 +0200, Richard Sandiford wrote:
> opcodes/
> * mips-formats.h: New file.
with gcc-4.8+
FAIL: gcc (GCC) 4.8.2 20130717 (prerelease)
FAIL: gcc (GCC) 4.9.0 20130717 (experimental)
FAIL: gcc-4.8.1-1.fc19.x86_64
I get with --enable-targets=all the warnings below, which break the build due
to default -Werror.
Thanks,
Jan
make[4]: Entering directory `/home/jkratoch/redhat/gdb-test-opcodes/opcodes'
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I../bfd -I./../include -I./../bfd -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -Wno-missing-field-initializers \
-MT micromips-opc.lo -MD -MP -MF .deps/micromips-opc.Tpo -c -o micromips-opc.lo -DARCH_all micromips-opc.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I. -I../bfd -I./../include -I./../bfd -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -Wno-missing-field-initializers -MT micromips-opc.lo -MD -MP -MF .deps/micromips-opc.Tpo -c -DARCH_all micromips-opc.c -o micromips-opc.o
In file included from micromips-opc.c:24:0:
micromips-opc.c: In function ‘decode_micromips_operand’:
mips-formats.h:73:18: error: typedef ‘static_assert’ locally defined but not used [-Werror=unused-local-typedefs]
typedef char static_assert[(1 << (SIZE)) == ARRAY_SIZE (MAP)]; \
^
micromips-opc.c:54:12: note: in expansion of macro ‘MAPPED_REG’
case 'a': MAPPED_REG (0, 0, GP, reg_28_map);
^
mips-formats.h:73:18: error: typedef ‘static_assert’ locally defined but not used [-Werror=unused-local-typedefs]
typedef char static_assert[(1 << (SIZE)) == ARRAY_SIZE (MAP)]; \
^
micromips-opc.c:55:12: note: in expansion of macro ‘MAPPED_REG’
case 'b': MAPPED_REG (3, 23, GP, reg_m16_map);
^
mips-formats.h:73:18: error: typedef ‘static_assert’ locally defined but not used [-Werror=unused-local-typedefs]
typedef char static_assert[(1 << (SIZE)) == ARRAY_SIZE (MAP)]; \
^
micromips-opc.c:56:12: note: in expansion of macro ‘MAPPED_REG’
case 'c': MAPPED_REG (3, 4, GP, reg_m16_map);
^
mips-formats.h:73:18: error: typedef ‘static_assert’ locally defined but not used [-Werror=unused-local-typedefs]
typedef char static_assert[(1 << (SIZE)) == ARRAY_SIZE (MAP)]; \
^
micromips-opc.c:57:12: note: in expansion of macro ‘MAPPED_REG’
case 'd': MAPPED_REG (3, 7, GP, reg_m16_map);
^
mips-formats.h:73:18: error: typedef ‘static_assert’ locally defined but not used [-Werror=unused-local-typedefs]
typedef char static_assert[(1 << (SIZE)) == ARRAY_SIZE (MAP)]; \
^
micromips-opc.c:58:12: note: in expansion of macro ‘MAPPED_REG’
case 'e': MAPPED_REG (3, 1, GP, reg_m16_map);
^
mips-formats.h:73:18: error: typedef ‘static_assert’ locally defined but not used [-Werror=unused-local-typedefs]
typedef char static_assert[(1 << (SIZE)) == ARRAY_SIZE (MAP)]; \
^
micromips-opc.c:59:12: note: in expansion of macro ‘MAPPED_REG’
case 'f': MAPPED_REG (3, 3, GP, reg_m16_map);
^
mips-formats.h:73:18: error: typedef ‘static_assert’ locally defined but not used [-Werror=unused-local-typedefs]
typedef char static_assert[(1 << (SIZE)) == ARRAY_SIZE (MAP)]; \
^
micromips-opc.c:60:12: note: in expansion of macro ‘MAPPED_REG’
case 'g': MAPPED_REG (3, 0, GP, reg_m16_map);
^
mips-formats.h:82:18: error: typedef ‘static_assert1’ locally defined but not used [-Werror=unused-local-typedefs]
typedef char static_assert1[(1 << (SIZE)) == ARRAY_SIZE (MAP##1)]; \
^
micromips-opc.c:61:12: note: in expansion of macro ‘REG_PAIR’
case 'h': REG_PAIR (3, 7, GP, reg_h_map);
^
mips-formats.h:83:18: error: typedef ‘static_assert2’ locally defined but not used [-Werror=unused-local-typedefs]
typedef char static_assert2[(1 << (SIZE)) == ARRAY_SIZE (MAP##2)]; \
^
micromips-opc.c:61:12: note: in expansion of macro ‘REG_PAIR’
case 'h': REG_PAIR (3, 7, GP, reg_h_map);
^
mips-formats.h:73:18: error: typedef ‘static_assert’ locally defined but not used [-Werror=unused-local-typedefs]
typedef char static_assert[(1 << (SIZE)) == ARRAY_SIZE (MAP)]; \
^
micromips-opc.c:63:12: note: in expansion of macro ‘MAPPED_REG’
case 'l': MAPPED_REG (3, 4, GP, reg_m16_map);
^
mips-formats.h:73:18: error: typedef ‘static_assert’ locally defined but not used [-Werror=unused-local-typedefs]
typedef char static_assert[(1 << (SIZE)) == ARRAY_SIZE (MAP)]; \
^
micromips-opc.c:64:12: note: in expansion of macro ‘MAPPED_REG’
case 'm': MAPPED_REG (3, 1, GP, reg_mn_map);
^
mips-formats.h:73:18: error: typedef ‘static_assert’ locally defined but not used [-Werror=unused-local-typedefs]
typedef char static_assert[(1 << (SIZE)) == ARRAY_SIZE (MAP)]; \
^
micromips-opc.c:65:12: note: in expansion of macro ‘MAPPED_REG’
case 'n': MAPPED_REG (3, 4, GP, reg_mn_map);
^
mips-formats.h:73:18: error: typedef ‘static_assert’ locally defined but not used [-Werror=unused-local-typedefs]
typedef char static_assert[(1 << (SIZE)) == ARRAY_SIZE (MAP)]; \
^
micromips-opc.c:67:12: note: in expansion of macro ‘MAPPED_REG’
case 'q': MAPPED_REG (3, 7, GP, reg_q_map);
^
mips-formats.h:73:18: error: typedef ‘static_assert’ locally defined but not used [-Werror=unused-local-typedefs]
typedef char static_assert[(1 << (SIZE)) == ARRAY_SIZE (MAP)]; \
^
micromips-opc.c:69:12: note: in expansion of macro ‘MAPPED_REG’
case 's': MAPPED_REG (0, 0, GP, reg_29_map);
^
mips-formats.h:73:18: error: typedef ‘static_assert’ locally defined but not used [-Werror=unused-local-typedefs]
typedef char static_assert[(1 << (SIZE)) == ARRAY_SIZE (MAP)]; \
^
micromips-opc.c:72:12: note: in expansion of macro ‘MAPPED_REG’
case 'y': MAPPED_REG (0, 0, GP, reg_31_map);
^
mips-formats.h:73:18: error: typedef ‘static_assert’ locally defined but not used [-Werror=unused-local-typedefs]
typedef char static_assert[(1 << (SIZE)) == ARRAY_SIZE (MAP)]; \
^
micromips-opc.c:73:12: note: in expansion of macro ‘MAPPED_REG’
case 'z': MAPPED_REG (0, 0, GP, reg_0_map);
^
mips-formats.h:48:18: error: typedef ‘static_assert’ locally defined but not used [-Werror=unused-local-typedefs]
typedef char static_assert[(1 << (SIZE)) == ARRAY_SIZE (MAP)]; \
^
micromips-opc.c:76:12: note: in expansion of macro ‘MAPPED_INT’
case 'B': MAPPED_INT (3, 1, int_b_map, FALSE);
^
mips-formats.h:48:18: error: typedef ‘static_assert’ locally defined but not used [-Werror=unused-local-typedefs]
typedef char static_assert[(1 << (SIZE)) == ARRAY_SIZE (MAP)]; \
^
micromips-opc.c:77:12: note: in expansion of macro ‘MAPPED_INT’
case 'C': MAPPED_INT (4, 0, int_c_map, TRUE);
^
mips-formats.h:73:18: error: typedef ‘static_assert’ locally defined but not used [-Werror=unused-local-typedefs]
typedef char static_assert[(1 << (SIZE)) == ARRAY_SIZE (MAP)]; \
^
micromips-opc.c:168:15: note: in expansion of macro ‘MAPPED_REG’
case 'z': MAPPED_REG (0, 0, GP, reg_0_map);
^
cc1: all warnings being treated as errors
make[4]: *** [micromips-opc.lo] Error 1