Bug 16633 - C tests don't use the newly built libgcc.so.1
Summary: C tests don't use the newly built libgcc.so.1
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: other (show other bugs)
Version: 3.4.2
: P2 normal
Target Milestone: 4.0.0
Assignee: Not yet assigned to anyone
URL:
Keywords: patch
: 16510 (view as bug list)
Depends on:
Blocks: 17464
  Show dependency treegraph
 
Reported: 2004-07-19 19:07 UTC by H.J. Lu
Modified: 2004-09-13 19:40 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2004-07-20 14:34:55


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description H.J. Lu 2004-07-19 19:07:45 UTC
Some C tests are linked against libgcc.so.1 when the new binutils
is used:

+FAIL: gcc.dg/cleanup-10.c execution test
+FAIL: gcc.dg/cleanup-11.c execution test
+FAIL: gcc.dg/cleanup-5.c execution test
+FAIL: gcc.dg/cleanup-8.c execution test
+FAIL: gcc.dg/cleanup-9.c execution test

But nothing is done to ensure that the newly built libgcc.so.1 is used.
We need to do something similar to C++ tests to make sure the newly built
libgcc.so.1 is used.
Comment 1 Andrew Pinski 2004-07-19 20:52:05 UTC
*** Bug 16510 has been marked as a duplicate of this bug. ***
Comment 2 Andrew Pinski 2004-07-19 20:54:43 UTC
I have been wondering this as I see it on the mainline off and on but it might because other changes.
But I know that LD_LIBRARY_PATH is set though.
Comment 3 H.J. Lu 2004-07-19 21:29:06 UTC
I can tell you for sure that in my case LD_LIBRARY_PATH is not set,
at least, not correctly since the error is libunwind.so.7 can't be found,
which won't happen if LD_LIBRARY_PATH is correctly set to use the newly built
libgcc_s.so.1.
Comment 4 Andrew Pinski 2004-07-20 14:34:55 UTC
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-07/msg01881.html>
and for me.
Comment 5 GCC Commits 2004-09-06 23:36:19 UTC
Subject: Bug 16633

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	hjl@gcc.gnu.org	2004-09-06 23:36:12

Modified files:
	gcc/testsuite  : ChangeLog 
	gcc/testsuite/lib: gcc-dg.exp 

Log message:
	2004-09-06  H.J. Lu  <hongjiu.lu@intel.com>
	
	PR c/16633:
	* lib/gcc-dg.exp: Set up LD_LIBRARY_PATH, SHLIB_PATH,
	LD_LIBRARYN32_PATH, LD_LIBRARY64_PATH and DYLD_LIBRARY_PATH.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4247&r2=1.4248
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/lib/gcc-dg.exp.diff?cvsroot=gcc&r1=1.34&r2=1.35

Comment 6 Andrew Pinski 2004-09-07 08:27:02 UTC
Fixed for 3.5.0.