public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/28706]  New: Compile failure with --combine and explicitly aligned structures
@ 2006-08-13 10:29 dwmw2 at infradead dot org
  2006-08-13 14:54 ` [Bug c/28706] " pinskia at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: dwmw2 at infradead dot org @ 2006-08-13 10:29 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 970 bytes --]

$ cat foo.c
struct rb_node
{
} __attribute__((aligned(sizeof(long))));

extern struct rb_node *rb_prev(struct rb_node *);
extern struct rb_node *rb_prev(struct rb_node *);
 $ gcc -c --combine foo.c foo.c
foo.c:6: error: conflicting types for ‘rb_prev’
foo.c:5: error: previous declaration of ‘rb_prev’ was here

gcc version 4.1.1 20060525 (Red Hat 4.1.1-1.pr27898)

Removing the explicit alignment fixes the problem.


-- 
           Summary: Compile failure with --combine and explicitly aligned
                    structures
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dwmw2 at infradead dot org
 GCC build triplet: powerpc-linux-gnu
  GCC host triplet: powerpc-linux-gnu
GCC target triplet: powerpc-linux-gnu, i386-linux-gnu


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


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

* [Bug c/28706] Compile failure with --combine and explicitly aligned structures
  2006-08-13 10:29 [Bug c/28706] New: Compile failure with --combine and explicitly aligned structures dwmw2 at infradead dot org
@ 2006-08-13 14:54 ` pinskia at gcc dot gnu dot org
  2006-08-13 15:19 ` pinskia at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-13 14:54 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
           Severity|normal                      |minor


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


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

* [Bug c/28706] Compile failure with --combine and explicitly aligned structures
  2006-08-13 10:29 [Bug c/28706] New: Compile failure with --combine and explicitly aligned structures dwmw2 at infradead dot org
  2006-08-13 14:54 ` [Bug c/28706] " pinskia at gcc dot gnu dot org
@ 2006-08-13 15:19 ` pinskia at gcc dot gnu dot org
  2006-08-13 15:23 ` [Bug c/28706] [4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-13 15:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-08-13 15:19 -------
This works in 3.4.0 and 4.0.0 so this is either a regression or a bug in
redhat's compiler or a bug in the patch.


-- 


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


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

* [Bug c/28706] [4.1/4.2 Regression] Compile failure with --combine and explicitly aligned structures
  2006-08-13 10:29 [Bug c/28706] New: Compile failure with --combine and explicitly aligned structures dwmw2 at infradead dot org
  2006-08-13 14:54 ` [Bug c/28706] " pinskia at gcc dot gnu dot org
  2006-08-13 15:19 ` pinskia at gcc dot gnu dot org
@ 2006-08-13 15:23 ` pinskia at gcc dot gnu dot org
  2006-08-14 13:42 ` jakub at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-13 15:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2006-08-13 15:23 -------
It is a regression.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|minor                       |normal
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
  GCC build triplet|powerpc-linux-gnu           |
   GCC host triplet|powerpc-linux-gnu           |
 GCC target triplet|powerpc-linux-gnu, i386-    |
                   |linux-gnu                   |
      Known to fail|                            |4.1.1 4.2.0
      Known to work|                            |4.0.0
   Last reconfirmed|0000-00-00 00:00:00         |2006-08-13 15:23:26
               date|                            |
            Summary|Compile failure with --     |[4.1/4.2 Regression] Compile
                   |combine and explicitly      |failure with --combine and
                   |aligned structures          |explicitly aligned
                   |                            |structures
   Target Milestone|---                         |4.1.2


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


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

* [Bug c/28706] [4.1/4.2 Regression] Compile failure with --combine and explicitly aligned structures
  2006-08-13 10:29 [Bug c/28706] New: Compile failure with --combine and explicitly aligned structures dwmw2 at infradead dot org
                   ` (2 preceding siblings ...)
  2006-08-13 15:23 ` [Bug c/28706] [4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
@ 2006-08-14 13:42 ` jakub at gcc dot gnu dot org
  2006-08-20 22:39 ` mmitchel at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-08-14 13:42 UTC (permalink / raw)
  To: gcc-bugs



-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2006-08-13 15:23:26         |2006-08-14 13:42:11
               date|                            |


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


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

* [Bug c/28706] [4.1/4.2 Regression] Compile failure with --combine and explicitly aligned structures
  2006-08-13 10:29 [Bug c/28706] New: Compile failure with --combine and explicitly aligned structures dwmw2 at infradead dot org
                   ` (3 preceding siblings ...)
  2006-08-14 13:42 ` jakub at gcc dot gnu dot org
@ 2006-08-20 22:39 ` mmitchel at gcc dot gnu dot org
  2006-09-23  7:16 ` jakub at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-08-20 22:39 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


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


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

* [Bug c/28706] [4.1/4.2 Regression] Compile failure with --combine and explicitly aligned structures
  2006-08-13 10:29 [Bug c/28706] New: Compile failure with --combine and explicitly aligned structures dwmw2 at infradead dot org
                   ` (4 preceding siblings ...)
  2006-08-20 22:39 ` mmitchel at gcc dot gnu dot org
@ 2006-09-23  7:16 ` jakub at gcc dot gnu dot org
  2007-02-14  9:18 ` [Bug c/28706] [4.1 " mmitchel at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-09-23  7:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2006-09-23 07:15 -------
Subject: Bug 28706

Author: jakub
Date: Sat Sep 23 07:15:37 2006
New Revision: 117167

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117167
Log:
        PR c/28706
        PR c/28712
        * tree.c (merge_attributes, attribute_list_contained): If both
        TREE_VALUEs are TREE_LISTs, use simple_cst_list_equal instead of
        simple_cst_equal.
        * c-typeck.c (comptypes_internal): Don't consider aggregates
        in different TUs as compatible if there one set of attributes is
        not a subset of the other type's attributes.
        (composite_type): Try harder not to create a new aggregate type.

        * gcc.dg/pr28706.c: New test.
        * gcc.dg/pr28712.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr28706.c
    trunk/gcc/testsuite/gcc.dg/pr28712.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-typeck.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree.c


-- 


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


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

* [Bug c/28706] [4.1 Regression] Compile failure with --combine and explicitly aligned structures
  2006-08-13 10:29 [Bug c/28706] New: Compile failure with --combine and explicitly aligned structures dwmw2 at infradead dot org
                   ` (5 preceding siblings ...)
  2006-09-23  7:16 ` jakub at gcc dot gnu dot org
@ 2007-02-14  9:18 ` mmitchel at gcc dot gnu dot org
  2007-02-21 19:51 ` ddrake at brontes3d dot com
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-02-14  9:18 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.1.2                       |4.1.3


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


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

* [Bug c/28706] [4.1 Regression] Compile failure with --combine and explicitly aligned structures
  2006-08-13 10:29 [Bug c/28706] New: Compile failure with --combine and explicitly aligned structures dwmw2 at infradead dot org
                   ` (6 preceding siblings ...)
  2007-02-14  9:18 ` [Bug c/28706] [4.1 " mmitchel at gcc dot gnu dot org
@ 2007-02-21 19:51 ` ddrake at brontes3d dot com
  2007-06-30 21:30 ` aoliva at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: ddrake at brontes3d dot com @ 2007-02-21 19:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from ddrake at brontes3d dot com  2007-02-21 19:50 -------
Created an attachment (id=13086)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13086&action=view)
backported to gcc 4.1.2

Is there any chance of this fix appearing in a release before 4.3.0? I have
backported it to 4.1.2 successfully. There was a trivial reject (indentation
changes only) and also I had to add { } around the contents of the 2nd hunk in
c-typeck.c

Let me know if I can help further.


-- 


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


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

* [Bug c/28706] [4.1 Regression] Compile failure with --combine and explicitly aligned structures
  2006-08-13 10:29 [Bug c/28706] New: Compile failure with --combine and explicitly aligned structures dwmw2 at infradead dot org
                   ` (7 preceding siblings ...)
  2007-02-21 19:51 ` ddrake at brontes3d dot com
@ 2007-06-30 21:30 ` aoliva at gcc dot gnu dot org
  2008-01-15 18:01 ` alexandre dot nunes at gmail dot com
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: aoliva at gcc dot gnu dot org @ 2007-06-30 21:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from aoliva at gcc dot gnu dot org  2007-06-30 21:29 -------
How about posting the backported-and-tested patch to gcc-patches, indicating on
which platform you've tested it?


-- 


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


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

* [Bug c/28706] [4.1 Regression] Compile failure with --combine and explicitly aligned structures
  2006-08-13 10:29 [Bug c/28706] New: Compile failure with --combine and explicitly aligned structures dwmw2 at infradead dot org
                   ` (8 preceding siblings ...)
  2007-06-30 21:30 ` aoliva at gcc dot gnu dot org
@ 2008-01-15 18:01 ` alexandre dot nunes at gmail dot com
  2008-01-15 18:04 ` alexandre dot nunes at gmail dot com
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: alexandre dot nunes at gmail dot com @ 2008-01-15 18:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from alexandre dot nunes at gmail dot com  2008-01-15 17:40 -------
This seems to work as of gcc 4.2.2 (vanilla), using the original commands to
reproduce. Anyone denies/confirms this?


-- 

alexandre dot nunes at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alexandre dot nunes at gmail
                   |                            |dot com


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


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

* [Bug c/28706] [4.1 Regression] Compile failure with --combine and explicitly aligned structures
  2006-08-13 10:29 [Bug c/28706] New: Compile failure with --combine and explicitly aligned structures dwmw2 at infradead dot org
                   ` (9 preceding siblings ...)
  2008-01-15 18:01 ` alexandre dot nunes at gmail dot com
@ 2008-01-15 18:04 ` alexandre dot nunes at gmail dot com
  2008-06-19 14:10 ` aldot at gcc dot gnu dot org
  2008-07-04 15:49 ` jsm28 at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: alexandre dot nunes at gmail dot com @ 2008-01-15 18:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from alexandre dot nunes at gmail dot com  2008-01-15 17:55 -------
(In reply to comment #6)
> This seems to work as of gcc 4.2.2 (vanilla), using the original commands to
> reproduce. Anyone denies/confirms this?
> 

... and please see bug 34800 .


-- 


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


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

* [Bug c/28706] [4.1 Regression] Compile failure with --combine and explicitly aligned structures
  2006-08-13 10:29 [Bug c/28706] New: Compile failure with --combine and explicitly aligned structures dwmw2 at infradead dot org
                   ` (10 preceding siblings ...)
  2008-01-15 18:04 ` alexandre dot nunes at gmail dot com
@ 2008-06-19 14:10 ` aldot at gcc dot gnu dot org
  2008-07-04 15:49 ` jsm28 at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: aldot at gcc dot gnu dot org @ 2008-06-19 14:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from aldot at gcc dot gnu dot org  2008-06-19 14:10 -------
works for me with 4.3.1 and current trunk


-- 

aldot at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|4.0.0                       |4.0.0 4.3.1 4.4.0


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


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

* [Bug c/28706] [4.1 Regression] Compile failure with --combine and explicitly aligned structures
  2006-08-13 10:29 [Bug c/28706] New: Compile failure with --combine and explicitly aligned structures dwmw2 at infradead dot org
                   ` (11 preceding siblings ...)
  2008-06-19 14:10 ` aldot at gcc dot gnu dot org
@ 2008-07-04 15:49 ` jsm28 at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-07-04 15:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from jsm28 at gcc dot gnu dot org  2008-07-04 15:48 -------
Closing 4.1 branch.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Known to fail|4.1.1 4.2.0                 |4.1.1 4.1.3
      Known to work|4.0.0 4.3.1 4.4.0           |4.0.0 4.2.0 4.3.1 4.4.0
         Resolution|                            |FIXED
   Target Milestone|4.1.3                       |4.2.0


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


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

end of thread, other threads:[~2008-07-04 15:49 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-13 10:29 [Bug c/28706] New: Compile failure with --combine and explicitly aligned structures dwmw2 at infradead dot org
2006-08-13 14:54 ` [Bug c/28706] " pinskia at gcc dot gnu dot org
2006-08-13 15:19 ` pinskia at gcc dot gnu dot org
2006-08-13 15:23 ` [Bug c/28706] [4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
2006-08-14 13:42 ` jakub at gcc dot gnu dot org
2006-08-20 22:39 ` mmitchel at gcc dot gnu dot org
2006-09-23  7:16 ` jakub at gcc dot gnu dot org
2007-02-14  9:18 ` [Bug c/28706] [4.1 " mmitchel at gcc dot gnu dot org
2007-02-21 19:51 ` ddrake at brontes3d dot com
2007-06-30 21:30 ` aoliva at gcc dot gnu dot org
2008-01-15 18:01 ` alexandre dot nunes at gmail dot com
2008-01-15 18:04 ` alexandre dot nunes at gmail dot com
2008-06-19 14:10 ` aldot at gcc dot gnu dot org
2008-07-04 15:49 ` jsm28 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).