Patch to execute/20010122-1.c, fix spurious link failures

Kaveh R. Ghazi ghazi@caip.rutgers.edu
Wed Apr 11 08:44:00 GMT 2001


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];



More information about the Gcc-patches mailing list