public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/52501] New: cr16-protos.h uses enum rtx_code outside #ifdef RTX_CODE guard
@ 2012-03-06  0:01 amylaar at gcc dot gnu.org
  2012-09-20 14:10 ` [Bug target/52501] " amylaar at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: amylaar at gcc dot gnu.org @ 2012-03-06  0:01 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/52501] cr16-protos.h uses enum rtx_code outside #ifdef RTX_CODE guard
  2012-03-06  0:01 [Bug target/52501] New: cr16-protos.h uses enum rtx_code outside #ifdef RTX_CODE guard amylaar at gcc dot gnu.org
@ 2012-09-20 14:10 ` amylaar at gcc dot gnu.org
  2013-02-26 14:31 ` amylaar at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: amylaar at gcc dot gnu.org @ 2012-09-20 14:10 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52501

Jorn Wolfgang Rennecke <amylaar at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jayants at gcc dot gnu.org
             Blocks|                            |47093

--- Comment #1 from Jorn Wolfgang Rennecke <amylaar at gcc dot gnu.org> 2012-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-attribute
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -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../../../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 ‘rtx_code’
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 ‘rtx_code’
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'


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/52501] cr16-protos.h uses enum rtx_code outside #ifdef RTX_CODE guard
  2012-03-06  0:01 [Bug target/52501] New: cr16-protos.h uses enum rtx_code outside #ifdef RTX_CODE guard amylaar at gcc dot gnu.org
  2012-09-20 14:10 ` [Bug target/52501] " amylaar at gcc dot gnu.org
@ 2013-02-26 14:31 ` amylaar at gcc dot gnu.org
  2013-02-28 10:06 ` amylaar at gcc dot gnu.org
  2013-02-28 10:13 ` amylaar at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: amylaar at gcc dot gnu.org @ 2013-02-26 14:31 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52501

--- Comment #2 from Jorn Wolfgang Rennecke <amylaar at gcc dot gnu.org> 2013-02-26 14:30:27 UTC ---
Author: amylaar
Date: Tue Feb 26 14:30:17 2013
New Revision: 196287

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=196287
Log:
        PR target/52501
        * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
        of prologue/epilogue functions.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/cr16/cr16-protos.h


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/52501] cr16-protos.h uses enum rtx_code outside #ifdef RTX_CODE guard
  2012-03-06  0:01 [Bug target/52501] New: cr16-protos.h uses enum rtx_code outside #ifdef RTX_CODE guard amylaar at gcc dot gnu.org
  2012-09-20 14:10 ` [Bug target/52501] " amylaar at gcc dot gnu.org
  2013-02-26 14:31 ` amylaar at gcc dot gnu.org
@ 2013-02-28 10:06 ` amylaar at gcc dot gnu.org
  2013-02-28 10:13 ` amylaar at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: amylaar at gcc dot gnu.org @ 2013-02-28 10:06 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52501

--- Comment #3 from Jorn Wolfgang Rennecke <amylaar at gcc dot gnu.org> 2013-02-28 10:05:54 UTC ---
cr16-elf builds OK now.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/52501] cr16-protos.h uses enum rtx_code outside #ifdef RTX_CODE guard
  2012-03-06  0:01 [Bug target/52501] New: cr16-protos.h uses enum rtx_code outside #ifdef RTX_CODE guard amylaar at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2013-02-28 10:06 ` amylaar at gcc dot gnu.org
@ 2013-02-28 10:13 ` amylaar at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: amylaar at gcc dot gnu.org @ 2013-02-28 10:13 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52501

Jorn Wolfgang Rennecke <amylaar at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from Jorn Wolfgang Rennecke <amylaar at gcc dot gnu.org> 2013-02-28 10:12:34 UTC ---
See above.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-02-28 10:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-06  0:01 [Bug target/52501] New: cr16-protos.h uses enum rtx_code outside #ifdef RTX_CODE guard amylaar at gcc dot gnu.org
2012-09-20 14:10 ` [Bug target/52501] " amylaar at gcc dot gnu.org
2013-02-26 14:31 ` amylaar at gcc dot gnu.org
2013-02-28 10:06 ` amylaar at gcc dot gnu.org
2013-02-28 10:13 ` amylaar at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).