This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: output unreferenced static variable if an alias to it isreferenced
On Oct 20, 2005, Alexandre Oliva <aoliva@redhat.com> wrote:
> Anyhow, here's the patch I'm checking in.
> PR middle-end/24295
> * g++.old-deja/g++.abi/vtable2.C: Do not introduce external
> declarations with the same names as thunks' alias targets, use
> aliases instead.
And this obviously broke platforms that don't support aliases. I've
got a fix that does away with the requirement for aliases, but it
requires weakref support, so I'm checking in this stopgap for now.
Sorry about the breakage.
Index: gcc/testsuite/ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
PR middle-end/24295, PR testsuite/24477
* g++.old-deja/g++.abi/vtable2.C: Require alias for now. Will be
removed when weakref hits the tree.
Index: gcc/testsuite/g++.old-deja/g++.abi/vtable2.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.old-deja/g++.abi/vtable2.C,v
retrieving revision 1.8
diff -u -p -r1.8 vtable2.C
--- gcc/testsuite/g++.old-deja/g++.abi/vtable2.C 20 Oct 2005 19:30:23 -0000 1.8
+++ gcc/testsuite/g++.old-deja/g++.abi/vtable2.C 25 Oct 2005 18:55:21 -0000
@@ -1,4 +1,5 @@
// { dg-do run }
+// { dg-require-alias "" }
// { dg-options "-fno-strict-aliasing" }
// Origin: Mark Mitchell <mark@codesourcery.com>
--
Alexandre Oliva http://www.lsd.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}