This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch to execute/20010122-1.c, fix spurious link failures
- To: gcc-patches at gcc dot gnu dot org
- Subject: Patch to execute/20010122-1.c, fix spurious link failures
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Wed, 11 Apr 2001 11:43:54 -0400 (EDT)
I'm getting spurious link failures on testcase execute/20010122-1.c on
irix6 with -mabi=64.
> 20010122-1.c:4: warning: conflicting types for built-in function `alloca'
> ld64: ERROR 33: Unresolved text symbol "alloca" -- 1st referenced by
> /var/tmp/ccuI9gYa.o.
This patch allows it to compile, (though the test still aborts during
execution.)
I noticed this on the 3.0 branch but it affects the trunk as well.
OK to install it on both?
Thanks,
--Kaveh
2001-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* gcc.c-torture/execute/20010122-1.c: Fix declaration of alloca.
--- egcs-3.0-CVS20010410/gcc/testsuite/gcc.c-torture/execute/20010122-1.c~ Mon Jan 22 17:52:16 2001
+++ egcs-3.0-CVS20010410/gcc/testsuite/gcc.c-torture/execute/20010122-1.c Wed Apr 11 11:34:47 2001
@@ -1,7 +1,7 @@
extern void exit (int);
extern void abort (void);
-extern void *alloca (int);
+extern void *alloca (__SIZE_TYPE__);
char *dummy (void);
void *save_ret1[6];