This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/52501] New: cr16-protos.h uses enum rtx_code outside #ifdef RTX_CODE guard
- From: "amylaar at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 06 Mar 2012 00:00:57 +0000
- Subject: [Bug target/52501] New: cr16-protos.h uses enum rtx_code outside #ifdef RTX_CODE guard
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52501
Bug #: 52501
Summary: cr16-protos.h uses enum rtx_code outside #ifdef
RTX_CODE guard
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: amylaar@gcc.gnu.org
Blocks: 44756
Host: x86_64-unknown-linux-gnu
Target: cr16-elf
gcc -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-format-attribute -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Werror -Wold-style-definition -Wc++-compat -fno-common
-DHAVE_CONFIG_H -I.. -I. -Iada -I../../../gcc/gcc -I../../../gcc/gcc/ada
-I../../../gcc/gcc/../include -I../../../gcc/gcc/../libcpp/include
-I/opt/cfarm/mpc/include -I../../../gcc/gcc/../libdecnumber
-I../../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber
../../../gcc/gcc/ada/gcc-interface/targtyps.c -o ada/targtyps.o
In file included from ./tm_p.h:4:0,
from ../../../gcc/gcc/ada/gcc-interface/targtyps.c:33:
../../../gcc/gcc/config/cr16/cr16-protos.h:94:54: error: âenum rtx_codeâ
declared inside parameter list [-Werror]
../../../gcc/gcc/config/cr16/cr16-protos.h:94:54: error: its scope is only this
definition or declaration, which is probably not what you want [-Werror]
../../../gcc/gcc/config/cr16/cr16-protos.h:95:54: error: âenum rtx_codeâ
declared inside parameter list [-Werror]
cc1: all warnings being treated as errors
make[2]: *** [ada/targtyps.o] Error 1