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: unassig...@gcc.gnu.org
        ReportedBy: amyl...@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

Reply via email to