public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/44752]  New: crx-elf insn-automata.c: empty translation unit
@ 2010-07-01 15:54 amylaar at gcc dot gnu dot org
  2010-07-01 15:59 ` [Bug rtl-optimization/44752] " amylaar at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: amylaar at gcc dot gnu dot org @ 2010-07-01 15:54 UTC (permalink / raw)
  To: gcc-bugs

gcc -c   -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror
-Wold-style-definition -Wc++-compat -fno-common  -DHAVE_CONFIG_H -I. -I.
-I../../../gcc/gcc -I../../../gcc/gcc/. -I../../../gcc/gcc/../include
-I../../../gcc/gcc/../libcpp/include  -I../../../gcc/gcc/../libdecnumber
-I../../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber  -DCLOOG_PPL_BACKEND 
-I/usr/include/libelf  insn-automata.c -o insn-automata.o
insn-automata.c:1:0: error: ISO C forbids an empty translation unit
[-Werror=edantic]
cc1: all warnings being treated as errors


-- 
           Summary: crx-elf insn-automata.c: empty translation unit
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Keywords: build
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: amylaar at gcc dot gnu dot org
GCC target triplet: crx-elf


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


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

* [Bug rtl-optimization/44752] insn-automata.c: empty translation unit
  2010-07-01 15:54 [Bug target/44752] New: crx-elf insn-automata.c: empty translation unit amylaar at gcc dot gnu dot org
@ 2010-07-01 15:59 ` amylaar at gcc dot gnu dot org
  2010-07-01 21:36 ` manu at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: amylaar at gcc dot gnu dot org @ 2010-07-01 15:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from amylaar at gcc dot gnu dot org  2010-07-01 15:59 -------
Actually, crx is not the only target with this problem:

avr-elf/make.out:insn-automata.c:1:0: error: ISO C forbids an empty translation
unit [-Werror=edantic]
cris-elf/make.out:insn-automata.c:1:0: error: ISO C forbids an empty
translation unit [-Werror=edantic]
crx-elf/make.out:insn-automata.c:1:0: error: ISO C forbids an empty translation
unit [-Werror=edantic]
fr30-elf/make.out:insn-automata.c:1:0: error: ISO C forbids an empty
translation unit [-Werror=edantic]
m68hc11-elf/make.out:insn-automata.c:1:0: error: ISO C forbids an empty
translation unit [-Werror=edantic]
mmix-knuth-mmixware/make.out:insn-automata.c:1:0: error: ISO C forbids an empty
translation unit [-Werror=edantic]
moxie-elf/make.out:insn-automata.c:1:0: error: ISO C forbids an empty
translation unit [-Werror=edantic]
vax-linux-gnu/make.out:insn-automata.c:1:0: error: ISO C forbids an empty
translation unit [-Werror=edantic]
xstormy16-elf/make.out:insn-automata.c:1:0: error: ISO C forbids an empty
translation unit [-Werror=edantic]


-- 

amylaar at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|target                      |rtl-optimization
            Summary|crx-elf insn-automata.c:    |insn-automata.c: empty
                   |empty translation unit      |translation unit


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


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

* [Bug rtl-optimization/44752] insn-automata.c: empty translation unit
  2010-07-01 15:54 [Bug target/44752] New: crx-elf insn-automata.c: empty translation unit amylaar at gcc dot gnu dot org
  2010-07-01 15:59 ` [Bug rtl-optimization/44752] " amylaar at gcc dot gnu dot org
@ 2010-07-01 21:36 ` manu at gcc dot gnu dot org
  2010-07-01 22:40 ` amylaar at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: manu at gcc dot gnu dot org @ 2010-07-01 21:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from manu at gcc dot gnu dot org  2010-07-01 21:36 -------
Is that really printing -Werror=edantic or a problem copy+pasting?


-- 

manu at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu dot org


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


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

* [Bug rtl-optimization/44752] insn-automata.c: empty translation unit
  2010-07-01 15:54 [Bug target/44752] New: crx-elf insn-automata.c: empty translation unit amylaar at gcc dot gnu dot org
  2010-07-01 15:59 ` [Bug rtl-optimization/44752] " amylaar at gcc dot gnu dot org
  2010-07-01 21:36 ` manu at gcc dot gnu dot org
@ 2010-07-01 22:40 ` amylaar at gcc dot gnu dot org
  2010-07-01 22:52 ` manu at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: amylaar at gcc dot gnu dot org @ 2010-07-01 22:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from amylaar at gcc dot gnu dot org  2010-07-01 22:39 -------
(In reply to comment #2)
> Is that really printing -Werror=edantic or a problem copy+pasting?

Yes, it's really printing that.
I think that that's because gcc thinks -pedantic starts with -W...

in opts.c:option_name we have:

      /* A warning classified as an error.  */
      if ((orig_diag_kind == DK_WARNING || orig_diag_kind == DK_PEDWARN)
          && diag_kind == DK_ERROR)
        return concat (cl_options[OPT_Werror_].opt_text,
                       /* Skip over "-W".  */
                       cl_options[option_index].opt_text + 2,
                       NULL);


-- 


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


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

* [Bug rtl-optimization/44752] insn-automata.c: empty translation unit
  2010-07-01 15:54 [Bug target/44752] New: crx-elf insn-automata.c: empty translation unit amylaar at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2010-07-01 22:40 ` amylaar at gcc dot gnu dot org
@ 2010-07-01 22:52 ` manu at gcc dot gnu dot org
  2010-07-05  1:33 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: manu at gcc dot gnu dot org @ 2010-07-01 22:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from manu at gcc dot gnu dot org  2010-07-01 22:52 -------
I know, I wrote that code but missed the -pedantic case. I opened PR 44774


-- 


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


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

* [Bug rtl-optimization/44752] insn-automata.c: empty translation unit
  2010-07-01 15:54 [Bug target/44752] New: crx-elf insn-automata.c: empty translation unit amylaar at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2010-07-01 22:52 ` manu at gcc dot gnu dot org
@ 2010-07-05  1:33 ` pinskia at gcc dot gnu dot org
  2010-07-05  1:35 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-07-05  1:33 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-07-05 01:33:44
               date|                            |


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


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

* [Bug rtl-optimization/44752] insn-automata.c: empty translation unit
  2010-07-01 15:54 [Bug target/44752] New: crx-elf insn-automata.c: empty translation unit amylaar at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2010-07-05  1:33 ` pinskia at gcc dot gnu dot org
@ 2010-07-05  1:35 ` pinskia at gcc dot gnu dot org
  2010-07-05 20:15 ` amylaar at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-07-05  1:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2010-07-05 01:35 -------
Created an attachment (id=21088)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21088&action=view)
patch which needs testing

I have not tested this fix but it should work and should remove the
warning/error for these targets.


-- 


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


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

* [Bug rtl-optimization/44752] insn-automata.c: empty translation unit
  2010-07-01 15:54 [Bug target/44752] New: crx-elf insn-automata.c: empty translation unit amylaar at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2010-07-05  1:35 ` pinskia at gcc dot gnu dot org
@ 2010-07-05 20:15 ` amylaar at gcc dot gnu dot org
  2010-07-12 17:17 ` amylaar at gcc dot gnu dot org
  2010-07-12 19:51 ` amylaar at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: amylaar at gcc dot gnu dot org @ 2010-07-05 20:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from amylaar at gcc dot gnu dot org  2010-07-05 20:14 -------
(In reply to comment #5)
> Created an attachment (id=21088)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21088&action=view) [edit]
> patch which needs testing
> 
> I have not tested this fix but it should work and should remove the
> warning/error for these targets.

No, the translation unit is still considered empty.

You have to put something syntactic into it, although it could be an
extern declaration, an static inline function, or a struct declaration, e.g.:
struct rtx_def;


-- 

amylaar at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2010-07-05 01:33:44         |2010-07-05 20:14:57
               date|                            |


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


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

* [Bug rtl-optimization/44752] insn-automata.c: empty translation unit
  2010-07-01 15:54 [Bug target/44752] New: crx-elf insn-automata.c: empty translation unit amylaar at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2010-07-05 20:15 ` amylaar at gcc dot gnu dot org
@ 2010-07-12 17:17 ` amylaar at gcc dot gnu dot org
  2010-07-12 19:51 ` amylaar at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: amylaar at gcc dot gnu dot org @ 2010-07-12 17:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from amylaar at gcc dot gnu dot org  2010-07-12 17:16 -------
Subject: Bug 44752

Author: amylaar
Date: Mon Jul 12 17:16:38 2010
New Revision: 162083

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=162083
Log:
        PR rtl-optimization/44752
        * genautomata.c (main): Don't emit an empty file even if there
        is no automaton.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/genautomata.c


-- 


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


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

* [Bug rtl-optimization/44752] insn-automata.c: empty translation unit
  2010-07-01 15:54 [Bug target/44752] New: crx-elf insn-automata.c: empty translation unit amylaar at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2010-07-12 17:17 ` amylaar at gcc dot gnu dot org
@ 2010-07-12 19:51 ` amylaar at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: amylaar at gcc dot gnu dot org @ 2010-07-12 19:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from amylaar at gcc dot gnu dot org  2010-07-12 19:51 -------
Fixed in trunk r162083.


-- 

amylaar at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2010-07-12 19:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-01 15:54 [Bug target/44752] New: crx-elf insn-automata.c: empty translation unit amylaar at gcc dot gnu dot org
2010-07-01 15:59 ` [Bug rtl-optimization/44752] " amylaar at gcc dot gnu dot org
2010-07-01 21:36 ` manu at gcc dot gnu dot org
2010-07-01 22:40 ` amylaar at gcc dot gnu dot org
2010-07-01 22:52 ` manu at gcc dot gnu dot org
2010-07-05  1:33 ` pinskia at gcc dot gnu dot org
2010-07-05  1:35 ` pinskia at gcc dot gnu dot org
2010-07-05 20:15 ` amylaar at gcc dot gnu dot org
2010-07-12 17:17 ` amylaar at gcc dot gnu dot org
2010-07-12 19:51 ` amylaar at gcc dot gnu dot 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).