This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

3.4/3.5 PATCH: Fix objc.dg/stret-1.m test failure on Solaris 2


The Objective-C testcase objc.dg/stret-1.m used to fail on Solaris 2 (both
SPARC and x86):

FAIL: objc.dg/stret-1.m (test for excess errors)
Excess errors:
ld: warning: symbol `glob' has differing types:
	(file /var/tmp//ccgPFE5F.o type=OBJT; file /usr/lib/libc.so type=FUNC);
	/var/tmp//ccgPFE5F.o definition taken
ld: warning: symbol `glob' has differing types:
	(file /var/tmp//ccgPFE5F.o type=OBJT; file /usr/lib/libc.so type=FUNC);

The following trivial patch avoids this conflict with glob(3C) and lets the
testcase pass on both architectures, both mainline and 3.4 branch?

Ok to install?

	Rainer

-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University


Tue Jan 20 12:03:22 2004  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>

	* objc.dg/stret-1.m (glob): Renamed to globa.

Index: gcc/testsuite/objc.dg/stret-1.m
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/objc.dg/stret-1.m,v
retrieving revision 1.1
diff -u -p -r1.1 stret-1.m
--- gcc/testsuite/objc.dg/stret-1.m	18 Jan 2004 01:15:30 -0000	1.1
+++ gcc/testsuite/objc.dg/stret-1.m	26 Jan 2004 22:00:58 -0000
@@ -9,7 +9,7 @@ extern void abort(void);
 
 struct astruct {
   float a, b;
-} glob = { 1.0, 2.0 };
+} globa = { 1.0, 2.0 };
 
 struct bstruct {
   float a, b, c, d, e, f;
@@ -21,7 +21,7 @@ struct bstruct {
 @end
 
 @implementation foo : Object
-- (struct astruct) stret { return glob; }
+- (struct astruct) stret { return globa; }
 - (struct bstruct) stretb { return globb; }
 @end
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]