public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/27898] New: Compile failure with --combine and anonymous structures
@ 2006-06-05 10:13 dwmw2 at infradead dot org
2006-07-05 6:03 ` [Bug c/27898] " aoliva at gcc dot gnu dot org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: dwmw2 at infradead dot org @ 2006-06-05 10:13 UTC (permalink / raw)
To: gcc-bugs
$ cat foobar.c
union u {
struct {
int i;
};
};
extern int somefunc(union u *);
$ gcc --combine -c foobar.c foobar.c
foobar.c:8: error: conflicting types for 'somefunc'
foobar.c:8: error: previous declaration of 'somefunc' was here
gcc version 4.1.0 20060304 (Red Hat 4.1.0-3)
Happens on both PowerPC and i386. If the internal structure is made
non-anonymous, it compiles.
--
Summary: Compile failure with --combine and anonymous structures
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dwmw2 at infradead dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27898
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/27898] Compile failure with --combine and anonymous structures
2006-06-05 10:13 [Bug c/27898] New: Compile failure with --combine and anonymous structures dwmw2 at infradead dot org
@ 2006-07-05 6:03 ` aoliva at gcc dot gnu dot org
2006-07-05 6:04 ` aoliva at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: aoliva at gcc dot gnu dot org @ 2006-07-05 6:03 UTC (permalink / raw)
To: gcc-bugs
--
aoliva at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |aoliva at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-07-05 06:02:55
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27898
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/27898] Compile failure with --combine and anonymous structures
2006-06-05 10:13 [Bug c/27898] New: Compile failure with --combine and anonymous structures dwmw2 at infradead dot org
2006-07-05 6:03 ` [Bug c/27898] " aoliva at gcc dot gnu dot org
@ 2006-07-05 6:04 ` aoliva at gcc dot gnu dot org
2006-07-06 3:45 ` patchapp at dberlin dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: aoliva at gcc dot gnu dot org @ 2006-07-05 6:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from aoliva at gcc dot gnu dot org 2006-07-05 06:04 -------
Created an attachment (id=11822)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11822&action=view)
Patch that fixes the bug
This patch fixes the problem for me.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27898
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/27898] Compile failure with --combine and anonymous structures
2006-06-05 10:13 [Bug c/27898] New: Compile failure with --combine and anonymous structures dwmw2 at infradead dot org
2006-07-05 6:03 ` [Bug c/27898] " aoliva at gcc dot gnu dot org
2006-07-05 6:04 ` aoliva at gcc dot gnu dot org
@ 2006-07-06 3:45 ` patchapp at dberlin dot org
2006-08-13 10:30 ` dwmw2 at infradead dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: patchapp at dberlin dot org @ 2006-07-06 3:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from patchapp at dberlin dot org 2006-07-06 03:45 -------
Subject: Bug number PR27898
A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-07/msg00187.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27898
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/27898] Compile failure with --combine and anonymous structures
2006-06-05 10:13 [Bug c/27898] New: Compile failure with --combine and anonymous structures dwmw2 at infradead dot org
` (2 preceding siblings ...)
2006-07-06 3:45 ` patchapp at dberlin dot org
@ 2006-08-13 10:30 ` dwmw2 at infradead dot org
2007-11-26 6:26 ` aoliva at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: dwmw2 at infradead dot org @ 2006-08-13 10:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from dwmw2 at infradead dot org 2006-08-13 10:30 -------
That simple test case seems to have been fixed with your patch -- thanks.
Next failure reported as PR28706.
Full test cases in Red Hat bug #194327 at
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=194327
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27898
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/27898] Compile failure with --combine and anonymous structures
2006-06-05 10:13 [Bug c/27898] New: Compile failure with --combine and anonymous structures dwmw2 at infradead dot org
` (3 preceding siblings ...)
2006-08-13 10:30 ` dwmw2 at infradead dot org
@ 2007-11-26 6:26 ` aoliva at gcc dot gnu dot org
2007-11-26 16:24 ` aoliva at gcc dot gnu dot org
2009-03-25 7:59 ` uros at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: aoliva at gcc dot gnu dot org @ 2007-11-26 6:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from aoliva at gcc dot gnu dot org 2007-11-26 06:26 -------
Subject: Bug 27898
Author: aoliva
Date: Mon Nov 26 06:26:18 2007
New Revision: 130425
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130425
Log:
PR c/27898
* c-typeck.c (tagged_types_tu_compatible_p): Enable exact
matches between anonymous union fields.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-typeck.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27898
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/27898] Compile failure with --combine and anonymous structures
2006-06-05 10:13 [Bug c/27898] New: Compile failure with --combine and anonymous structures dwmw2 at infradead dot org
` (4 preceding siblings ...)
2007-11-26 6:26 ` aoliva at gcc dot gnu dot org
@ 2007-11-26 16:24 ` aoliva at gcc dot gnu dot org
2009-03-25 7:59 ` uros at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: aoliva at gcc dot gnu dot org @ 2007-11-26 16:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from aoliva at gcc dot gnu dot org 2007-11-26 16:24 -------
Fixed.
--
aoliva at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27898
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/27898] Compile failure with --combine and anonymous structures
2006-06-05 10:13 [Bug c/27898] New: Compile failure with --combine and anonymous structures dwmw2 at infradead dot org
` (5 preceding siblings ...)
2007-11-26 16:24 ` aoliva at gcc dot gnu dot org
@ 2009-03-25 7:59 ` uros at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: uros at gcc dot gnu dot org @ 2009-03-25 7:59 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from uros at gcc dot gnu dot org 2009-03-25 07:59 -------
Subject: Bug 27898
Author: uros
Date: Wed Mar 25 07:58:55 2009
New Revision: 145052
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=145052
Log:
PR c/27898
* gcc.dg/pr27898.c: New test.
PR tree-optimization/32139
* gcc.c-torture/compile/pr32139.c: New test.
Added:
trunk/gcc/testsuite/gcc.c-torture/compile/pr32139.c
trunk/gcc/testsuite/gcc.dg/pr27898.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27898
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2009-03-25 7:59 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-05 10:13 [Bug c/27898] New: Compile failure with --combine and anonymous structures dwmw2 at infradead dot org
2006-07-05 6:03 ` [Bug c/27898] " aoliva at gcc dot gnu dot org
2006-07-05 6:04 ` aoliva at gcc dot gnu dot org
2006-07-06 3:45 ` patchapp at dberlin dot org
2006-08-13 10:30 ` dwmw2 at infradead dot org
2007-11-26 6:26 ` aoliva at gcc dot gnu dot org
2007-11-26 16:24 ` aoliva at gcc dot gnu dot org
2009-03-25 7:59 ` uros 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).