]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/17828 (-O2 -fPIC doesn't work with switches in linkonce functions and...
authorJakub Jelinek <jakub@redhat.com>
Thu, 8 Dec 2005 21:47:10 +0000 (22:47 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 8 Dec 2005 21:47:10 +0000 (22:47 +0100)
PR target/17828
* g++.old-deja/g++.other/comdat5.C: New test.
* g++.old-deja/g++.other/comdat5-aux.cc: New file.

From-SVN: r108245

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.other/comdat5-aux.cc [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.other/comdat5.C [new file with mode: 0644]

index 147e7ca0e8be5eb2a725fea95d54578e8e18a809..4eeec97c524376d20c7b06aef279f3117d45c1eb 100644 (file)
@@ -1,5 +1,9 @@
 2005-12-08  Jakub Jelinek  <jakub@redhat.com>
 
+       PR target/17828
+       * g++.old-deja/g++.other/comdat5.C: New test.
+       * g++.old-deja/g++.other/comdat5-aux.cc: New file.
+
        * g++.dg/compat/struct-layout-1.exp: New file.
        * g++.dg/compat/struct-layout-1.h: New.
        * g++.dg/compat/struct-layout-1_generate.c: New.
diff --git a/gcc/testsuite/g++.old-deja/g++.other/comdat5-aux.cc b/gcc/testsuite/g++.old-deja/g++.other/comdat5-aux.cc
new file mode 100644 (file)
index 0000000..e6ee7c7
--- /dev/null
@@ -0,0 +1 @@
+#include "comdat4-aux.cc"
diff --git a/gcc/testsuite/g++.old-deja/g++.other/comdat5.C b/gcc/testsuite/g++.old-deja/g++.other/comdat5.C
new file mode 100644 (file)
index 0000000..7301e54
--- /dev/null
@@ -0,0 +1,6 @@
+// PR target/17828
+// { dg-do link }
+// { dg-additional-sources " comdat5-aux.cc" }
+// { dg-options "-O2 -fPIC" }
+
+#include "comdat4.C"