From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11771 invoked by alias); 20 Sep 2012 14:10:44 -0000 Received: (qmail 11532 invoked by uid 48); 20 Sep 2012 14:10:12 -0000 From: "amylaar at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/52501] cr16-protos.h uses enum rtx_code outside #ifdef RTX_CODE guard Date: Thu, 20 Sep 2012 14:10:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: amylaar at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Blocks Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-09/txt/msg01578.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D52501 Jorn Wolfgang Rennecke changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jayants at gcc dot gnu.org Blocks| |47093 --- Comment #1 from Jorn Wolfgang Rennecke 201= 2-09-20 14:10:10 UTC --- Now that we use C++, this has become a hard error: g++ -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-= rtti -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attri= bute -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-co= mmon -DHAVE_CONFIG_H -I.. -I. -Iada -I../../../gcc/gcc -I../../../gcc/gcc/ada -I../../../gcc/gcc/../include -I../../../gcc/gcc/../libcpp/include=20 -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: use of enum =E2=80= =98rtx_code=E2=80=99 without previous declaration extern const char *cr16_emit_add_sub_di (rtx *, enum rtx_code); ^ ../../../gcc/gcc/config/cr16/cr16-protos.h:95:54: error: use of enum =E2=80= =98rtx_code=E2=80=99 without previous declaration extern const char *cr16_emit_logical_di (rtx *, enum rtx_code); ^ make[2]: *** [ada/targtyps.o] Error 1 rm gcov.pod cpp.pod fsf-funding.pod gccgo.pod gcc.pod gfortran.pod gfdl.pod make[2]: Leaving directory `/home/amylaar/fsf/multi/cr16-elf/gcc' make[1]: *** [all-gcc] Error 2 make[1]: Leaving directory `/home/amylaar/fsf/multi/cr16-elf'