public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/38237]  New: [4.4 regression] multiple weak directives
@ 2008-11-23 14:04 ebotcazou at gcc dot gnu dot org
  2008-11-23 14:35 ` [Bug middle-end/38237] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2008-11-23 14:04 UTC (permalink / raw)
  To: gcc-bugs

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

This is a fallout of

2008-08-19  Rafael Espíndola  <espindola@google.com>

        * varasm.c (weak_decls): Move earlier in the file.
        (assemble_external): Add weak decls to the weak_decls list.
        (declare_weak): Don't add decls to the weak_decls list.


eric@atlantis:~/build/gcc/native32> cat t.c
extern int i __attribute__((weak));

void foo(void)
{
  int a = i + i + i + i;
}
eric@atlantis:~/build/gcc/native32> cat t.s
        .file   "t.c"
        .text
.globl foo
        .type   foo, @function
foo:
        pushl   %ebp
        movl    %esp, %ebp
        subl    $16, %esp
        movl    i, %edx
        movl    i, %eax
        addl    %eax, %edx
        movl    i, %eax
        addl    %eax, %edx
        movl    i, %eax
        leal    (%edx,%eax), %eax
        movl    %eax, -4(%ebp)
        leave
        ret
        .size   foo, .-foo
        .weak   i
        .weak   i
        .weak   i
        .weak   i
        .ident  "GCC: (GNU) 4.4.0 20081122 (experimental) [trunk revision
142117]"
        .section        .note.GNU-stack,"",@progbits


-- 
           Summary: [4.4 regression] multiple weak directives
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ebotcazou at gcc dot gnu dot org


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


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

end of thread, other threads:[~2009-03-30 16:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-23 14:04 [Bug middle-end/38237] New: [4.4 regression] multiple weak directives ebotcazou at gcc dot gnu dot org
2008-11-23 14:35 ` [Bug middle-end/38237] " pinskia at gcc dot gnu dot org
2008-11-23 16:16 ` rguenth at gcc dot gnu dot org
2008-11-27 17:38 ` jsm28 at gcc dot gnu dot org
2009-03-30 16:44 ` [Bug middle-end/38237] [4.4/4.5 " sje at gcc dot gnu dot org
2009-03-30 16:46 ` sje at cup dot hp dot com

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