This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[darwin] builtin-noret-1/2 fixes
- From: Andreas Tobler <toa at pop dot agri dot ch>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>, Geoff Keating <geoffk at geoffk dot org>
- Date: Thu, 22 May 2003 18:45:59 +0200
- Subject: [darwin] builtin-noret-1/2 fixes
Hi,
the attached patch fixes the failures on darwin. With this switch we
suppress the warning about multiple defined symbols.
Is this the right way?
If yes, I could apply a patch for builtin-noret-1.c and
builtin-noret-2.c in testsuite/gcc.dg/torture.
Ok?
Andreas
P.S, a similar one could be used for gcc.c-torture/execute/builtins/string*
diff -u -r1.1 builtin-noret-1.c
--- builtin-noret-1.c 11 May 2003 08:20:34 -0000 1.1
+++ builtin-noret-1.c 22 May 2003 16:40:45 -0000
@@ -1,5 +1,6 @@
/* Test for builtin noreturn attributes. */
/* Origin: Joseph Myers <jsm28@cam.ac.uk> */
+/* { dg-options "-multiply_defined suppress" { target powerpc-*-darwin*
} } */
/* { dg-do link } */
extern void abort (void);