From mboxrd@z Thu Jan 1 00:00:00 1970 From: Teemu Torma To: egcs@cygnus.com Subject: A patch for hppa1.1-hp-hpux10.20 w/ --enable-shared Date: Wed, 03 Dec 1997 04:08:00 -0000 Message-id: <199712031208.NAA19982@lev.labs.trema.com> X-SW-Source: 1997-12/msg00169.html I seems that libgcc should not be linked into shared libraries on hpux10.20, or almost all eh-tests will fail. I guess the same is true for the other hpux versions. With this patch, there are no unexpected failures in check-g++. XPASS: g++.jason/destruct3.C - (test for bogus messages, line 38) XPASS: g++.mike/dyncast1.C Execution test XPASS: g++.mike/dyncast2.C Execution test XPASS: g++.mike/eh33.C (test for excess errors) XPASS: g++.mike/eh33.C Execution test XPASS: g++.mike/eh50.C (test for excess errors) XPASS: g++.mike/eh50.C Execution testg === g++ Summary === # of expected passes 3397 # of unexpected successes 7 # of expected failures 80 # of untested testcases 6 Teemu 1997-12-03 Teemu Torma * config/pa/pa-hpux.h (LIBGCC_SPEC): If -shared, do not link against libgcc. Index: config/pa/pa-hpux.h =================================================================== RCS file: /trema/cvs/gnu/egcs/gcc/config/pa/pa-hpux.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -c -r1.1.1.1 -r1.2 /usr/gnu/bin/diff: conflicting specifications of output style *** pa-hpux.h 1997/09/26 09:58:01 1.1.1.1 --- pa-hpux.h 1997/12/03 11:06:57 1.2 *************** *** 32,37 **** --- 32,41 ---- #undef LIB_SPEC #define LIB_SPEC "%{!shared:%{!p:%{!pg:-lc}}%{p: -L/lib/libp/ -lc}%{pg: -L/lib/libp/ -lc}}" + #undef LIBGCC_SPEC + #define LIBGCC_SPEC \ + "%{!shared:-lgcc}" + #undef CPP_PREDEFINES #define CPP_PREDEFINES "-Dhppa -Dhp9000s800 -D__hp9000s800 -Dhp9k8 -DPWB -Dhpux -Dunix -Asystem(unix) -Asystem(hpux) -Acpu(hppa) -Amachine(hppa)"