public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/24295]  New: [4.1 Regression] #pragma weak foo = bar  no longer causes bar to be referenced
@ 2005-10-10 10:47 rguenth at gcc dot gnu dot org
  2005-10-10 12:08 ` [Bug middle-end/24295] " pinskia at gcc dot gnu dot org
                   ` (24 more replies)
  0 siblings, 25 replies; 26+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2005-10-10 10:47 UTC (permalink / raw)
  To: gcc-bugs

Consider

static const double foo_local = 1.0;
#pragma weak foo = foo_local

with unit-at-a-time we get rid of the foo_local variable (because it is unused
apart form the weak decl).  This is a regression from 4.0 where we correctly
mark foo_local as referenced.

This breaks building Xorg.  rth fixed it for 4.0, somehow the bug came back.


-- 
           Summary: [4.1 Regression] #pragma weak foo = bar  no longer
                    causes bar to be referenced
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P2
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rguenth at gcc dot gnu dot org


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


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

end of thread, other threads:[~2005-10-25 18:59 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-10 10:47 [Bug middle-end/24295] New: [4.1 Regression] #pragma weak foo = bar no longer causes bar to be referenced rguenth at gcc dot gnu dot org
2005-10-10 12:08 ` [Bug middle-end/24295] " pinskia at gcc dot gnu dot org
2005-10-10 12:18 ` pinskia at gcc dot gnu dot org
2005-10-10 12:19 ` rguenth at gcc dot gnu dot org
2005-10-10 13:55 ` pinskia at gcc dot gnu dot org
2005-10-10 14:11 ` pinskia at gcc dot gnu dot org
2005-10-10 14:32 ` pinskia at gcc dot gnu dot org
2005-10-10 14:43 ` pinskia at gcc dot gnu dot org
2005-10-10 14:57 ` pinskia at gcc dot gnu dot org
2005-10-10 15:08 ` pinskia at gcc dot gnu dot org
2005-10-10 15:15 ` pinskia at gcc dot gnu dot org
2005-10-10 15:27 ` pinskia at gcc dot gnu dot org
2005-10-10 15:37 ` pinskia at gcc dot gnu dot org
2005-10-10 15:37 ` pinskia at gcc dot gnu dot org
2005-10-10 15:50 ` pinskia at gcc dot gnu dot org
2005-10-10 15:52 ` pinskia at gcc dot gnu dot org
2005-10-10 15:57 ` pinskia at gcc dot gnu dot org
2005-10-10 23:31 ` janis at gcc dot gnu dot org
2005-10-16 21:45 ` pinskia at gcc dot gnu dot org
2005-10-18 22:24 ` [Bug middle-end/24295] [4.1 Regression] Xorg broken, " steven at gcc dot gnu dot org
2005-10-19  9:31 ` rguenth at gcc dot gnu dot org
2005-10-19  9:32 ` rguenth at gcc dot gnu dot org
2005-10-20 18:35 ` aoliva at gcc dot gnu dot org
2005-10-20 19:30 ` cvs-commit at gcc dot gnu dot org
2005-10-20 19:32 ` aoliva at gcc dot gnu dot org
2005-10-25 18:59 ` cvs-commit 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).