2011-03-11 Richard Guenther <rguenther@suse.de>
PR tree-optimization/47278
* gcc.dg/torture/pr47278-1.c: New testcase.
* gcc.dg/torture/pr47278-2.c: Likewise.
From-SVN: r170869
+2011-03-11 Richard Guenther <rguenther@suse.de>
+
+ PR tree-optimization/47278
+ * gcc.dg/torture/pr47278-1.c: New testcase.
+ * gcc.dg/torture/pr47278-2.c: Likewise.
+
2011-03-11 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/48063
--- /dev/null
+/* { dg-do run } */
+/* { dg-require-visibility "" } */
+/* { dg-additional-sources "pr47278-2.c" } */
+
+int foo (void) { return 1; }
--- /dev/null
+/* { dg-require-visibility "" } */
+
+extern void abort (void);
+
+int __attribute__((weak,visibility("hidden"))) foo (void)
+{
+ return 0;
+}
+
+int main()
+{
+ if (foo() != 1)
+ abort ();
+ return 0;
+}