public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/46674] New: Weak alias was mistakenly optimized away
@ 2010-11-26 12:28 jiez at gcc dot gnu.org
  2010-11-26 12:43 ` [Bug middle-end/46674] [4.6 Regression] Weak alias is " rguenth at gcc dot gnu.org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: jiez at gcc dot gnu.org @ 2010-11-26 12:28 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: Weak alias was mistakenly optimized away
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jiez@gcc.gnu.org


Created attachment 22537
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22537
The test case

This patch

http://gcc.gnu.org/ml/gcc-patches/2010-10/msg02275.html

causes a failure when building glibc for arm-none-linux-gnueabi target. The
reduced test case is attached.

Without this patch, memchr is defined in the assembly:

    .size    __memchr, .-__memchr
    .weak   __GI_memchr
    .hidden __GI_memchr
    .set    __GI_memchr,__memchr
    .global memchr
    .set    memchr,__GI_memchr
    .ident    "GCC: (GNU) 4.6.0 20101026 (experimental)"

but with this patch, memchr is not defined:

    .size    __memchr, .-__memchr
    .weak    __GI_memchr
    .hidden    __GI_memchr
    .set    __GI_memchr,__memchr
    .ident    "GCC: (GNU) 4.6.0 20101026 (experimental)"

When compiling the test case, -O is used on the command line.


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

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

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-26 12:28 [Bug middle-end/46674] New: Weak alias was mistakenly optimized away jiez at gcc dot gnu.org
2010-11-26 12:43 ` [Bug middle-end/46674] [4.6 Regression] Weak alias is " rguenth at gcc dot gnu.org
2010-11-27 18:34 ` pinskia at gcc dot gnu.org
2010-11-29  5:15 ` jiez at gcc dot gnu.org
2010-11-29 11:05 ` jiez at gcc dot gnu.org
2010-11-30 10:01 ` jiez at gcc dot gnu.org
2010-11-30 12:08 ` jiez at gcc dot gnu.org
2010-12-02  4:10 ` jiez at gcc dot gnu.org
2010-12-06 12:21 ` jakub at gcc dot gnu.org
2010-12-07  4:31 ` davek at gcc dot gnu.org
2010-12-10 14:29 ` davek at gcc dot gnu.org
2010-12-10 14:57 ` davek at gcc dot gnu.org
2010-12-15 16:18 ` davek at gcc dot gnu.org
2010-12-19 11:15 ` davek at gcc dot gnu.org
2010-12-19 11:18 ` davek at gcc dot gnu.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).