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

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).