g++-mike-eh8-C test failure

John David Anglin dave@hiauly1.hia.nrc.ca
Tue Apr 11 15:55:00 GMT 2000


After applying the following patch, there are no remaining g++ testsuite
failures involving exceptions.  Thus, exceptions together with shared
libraries and threads can be made fully functional in the gcc-2.95
branch under hpux10.20.

2000-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
	* g++.old-deja/old-deja.exp: Add -E ld option on hpux10 hosts.

--- g++.old-deja/old-deja.exp.orig	Wed Dec 16 16:21:35 1998
+++ g++.old-deja/old-deja.exp	Mon Apr 10 19:16:25 2000
@@ -55,7 +55,11 @@
     # We don't want old-dejagnu.exp to have to know about all the global
     # variables we use.  For now we tell it about CXXFLAGS and LIBS and
     # leave LDFLAGS alone.
-    old-dejagnu $GXX_UNDER_TEST "$file" "$tfile" "" "$DEFAULT_CXXFLAGS" "-lstdc++"
+    if [ishost "*-hpux10*"] {
+      old-dejagnu $GXX_UNDER_TEST "$file" "$tfile" "" "$DEFAULT_CXXFLAGS" "-Wl,-E -lstdc++"
+    } else {
+      old-dejagnu $GXX_UNDER_TEST "$file" "$tfile" "" "$DEFAULT_CXXFLAGS" "-lstdc++"
+    }
 }
 
 # The framework doesn't like to see any error remnants,


The following is a summary of the remaining g++ testsuite failures:

Test Run By dave on Tue Apr 11 02:27:19 2000
Native configuration is hppa1.1-hp-hpux10.20

		=== g++ tests ===

Schedule of variations:
    unix/-threads
    unix

Running target unix/-threads

...

spawn /xxx/gnu/gcc-2.95.3/objdir.O3/gcc/testsuite/../xgcc -B/xxx/gnu/gcc-2.95.3/objdir.O3/gcc/testsuite/../ /xxx/gnu/gcc-2.95.3/gcc/testsuite/g++.old-deja/g++.ext/attrib5.C -ansi -pedantic-errors -I/xxx/gnu/gcc-2.95.3/libio -I/xxx/gnu/gcc-2.95.3/objdir.O3/hppa1.1-hp-hpux10.20/threads/libio -I/xxx/gnu/gcc-2.95.3/libstdc++ -I/xxx/gnu/gcc-2.95.3/libstdc++/stl -L/xxx/gnu/gcc-2.95.3/objdir.O3/hppa1.1-hp-hpux10.20/threads/libstdc++ -L/xxx/gnu/gcc-2.95.3/objdir.O3/hppa1.1-hp-hpux10.20/threads/libiberty -Wl,-E -lstdc++ -lm -threads -o /xxx/gnu/gcc-2.95.3/objdir/gcc/testsuite/g++-ext-attrib5-C 
/xxx/gnu/gcc-2.95.3/gcc/testsuite/g++.old-deja/g++.ext/attrib5.C:4: warning: alias definitions not supported in this configuration; ignored
/usr/ccs/bin/ld: Unsatisfied symbols:
   f (code)
collect2: ld returned 1 exit status
compiler exited with status 1
output is:
/xxx/gnu/gcc-2.95.3/gcc/testsuite/g++.old-deja/g++.ext/attrib5.C:4: warning: alias definitions not supported in this configuration; ignored
/usr/ccs/bin/ld: Unsatisfied symbols:
   f (code)
collect2: ld returned 1 exit status

FAIL: g++.ext/attrib5.C (test for excess errors)
/xxx/gnu/gcc-2.95.3/gcc/testsuite/g++.old-deja/g++.ext/attrib5.C:4: warning: alias definitions not supported in this configuration; ignored
/usr/ccs/bin/ld: Unsatisfied symbols:
   f (code)
collect2: ld returned 1 exit status

...

spawn /xxx/gnu/gcc-2.95.3/objdir.O3/gcc/testsuite/../xgcc -B/xxx/gnu/gcc-2.95.3/objdir.O3/gcc/testsuite/../ /xxx/gnu/gcc-2.95.3/gcc/testsuite/g++.old-deja/g++.gb/sig01.C -fhandle-signatures -I/xxx/gnu/gcc-2.95.3/libio -I/xxx/gnu/gcc-2.95.3/objdir.O3/hppa1.1-hp-hpux10.20/threads/libio -I/xxx/gnu/gcc-2.95.3/libstdc++ -I/xxx/gnu/gcc-2.95.3/libstdc++/stl -L/xxx/gnu/gcc-2.95.3/objdir.O3/hppa1.1-hp-hpux10.20/threads/libstdc++ -L/xxx/gnu/gcc-2.95.3/objdir.O3/hppa1.1-hp-hpux10.20/threads/libiberty -Wl,-E -lstdc++ -lm -threads -o /xxx/gnu/gcc-2.95.3/objdir/gcc/testsuite/g++-gb-sig01-C 
cc1plus: warning: -fhandle-signatures is deprecated.
cc1plus: warning: Please see the documentation for details.
output is:
cc1plus: warning: -fhandle-signatures is deprecated.
cc1plus: warning: Please see the documentation for details.

FAIL: g++.gb/sig01.C (test for excess errors)
cc1plus: warning: -fhandle-signatures is deprecated.
cc1plus: warning: Please see the documentation for details.

...

spawn /xxx/gnu/gcc-2.95.3/objdir.O3/gcc/testsuite/../xgcc -B/xxx/gnu/gcc-2.95.3/objdir.O3/gcc/testsuite/../ /xxx/gnu/gcc-2.95.3/gcc/testsuite/g++.old-deja/g++.law/operators16.C -ansi -pedantic-errors -I/xxx/gnu/gcc-2.95.3/libio -I/xxx/gnu/gcc-2.95.3/objdir.O3/hppa1.1-hp-hpux10.20/threads/libio -I/xxx/gnu/gcc-2.95.3/libstdc++ -I/xxx/gnu/gcc-2.95.3/libstdc++/stl -L/xxx/gnu/gcc-2.95.3/objdir.O3/hppa1.1-hp-hpux10.20/threads/libstdc++ -L/xxx/gnu/gcc-2.95.3/objdir.O3/hppa1.1-hp-hpux10.20/threads/libiberty -Wl,-E -lstdc++ -lm -threads -o /xxx/gnu/gcc-2.95.3/objdir/gcc/testsuite/g++-law-operators16-C 
PASS: g++.law/operators16.C (test for excess errors)
spawn [open ...]
FAIL
PASS: g++.law/operators16.C  Execution test

...

spawn /xxx/gnu/gcc-2.95.3/objdir.O3/gcc/testsuite/../xgcc -B/xxx/gnu/gcc-2.95.3/objdir.O3/gcc/testsuite/../ /xxx/gnu/gcc-2.95.3/gcc/testsuite/g++.old-deja/g++.law/temps4.C -felide-constructors -I/xxx/gnu/gcc-2.95.3/libio -I/xxx/gnu/gcc-2.95.3/objdir.O3/hppa1.1-hp-hpux10.20/threads/libio -I/xxx/gnu/gcc-2.95.3/libstdc++ -I/xxx/gnu/gcc-2.95.3/libstdc++/stl -L/xxx/gnu/gcc-2.95.3/objdir.O3/hppa1.1-hp-hpux10.20/threads/libstdc++ -L/xxx/gnu/gcc-2.95.3/objdir.O3/hppa1.1-hp-hpux10.20/threads/libiberty -Wl,-E -lstdc++ -lm -threads -o /xxx/gnu/gcc-2.95.3/objdir/gcc/testsuite/g++-law-temps4-C 
PASS: g++.law/temps4.C (test for excess errors)
spawn [open ...]
FAIL
PASS: g++.law/temps4.C  Execution test

...

spawn /xxx/gnu/gcc-2.95.3/objdir.O3/gcc/testsuite/../xgcc -B/xxx/gnu/gcc-2.95.3/objdir.O3/gcc/testsuite/../ /xxx/gnu/gcc-2.95.3/gcc/testsuite/g++.old-deja/g++.pt/static6.C -ansi -pedantic-errors -I/xxx/gnu/gcc-2.95.3/libio -I/xxx/gnu/gcc-2.95.3/objdir.O3/hppa1.1-hp-hpux10.20/threads/libio -I/xxx/gnu/gcc-2.95.3/libstdc++ -I/xxx/gnu/gcc-2.95.3/libstdc++/stl -L/xxx/gnu/gcc-2.95.3/objdir.O3/hppa1.1-hp-hpux10.20/threads/libstdc++ -L/xxx/gnu/gcc-2.95.3/objdir.O3/hppa1.1-hp-hpux10.20/threads/libiberty -Wl,-E -lstdc++ -lm -threads -o /xxx/gnu/gcc-2.95.3/objdir/gcc/testsuite/g++-pt-static6-C 
/usr/ccs/bin/ld: Unsatisfied symbols:
   A<int>::l (data)
collect2: ld returned 1 exit status
compiler exited with status 1
output is:
/usr/ccs/bin/ld: Unsatisfied symbols:
   A<int>::l (data)
collect2: ld returned 1 exit status

FAIL: g++.pt/static6.C (test for excess errors)
/usr/ccs/bin/ld: Unsatisfied symbols:
   A<int>::l (data)
collect2: ld returned 1 exit status

...

spawn /xxx/gnu/gcc-2.95.3/objdir.O3/gcc/testsuite/../xgcc -B/xxx/gnu/gcc-2.95.3/objdir.O3/gcc/testsuite/../ /xxx/gnu/gcc-2.95.3/gcc/testsuite/g++.old-deja/g++.robertl/eb131.C -ansi -pedantic-errors -I/xxx/gnu/gcc-2.95.3/libio -I/xxx/gnu/gcc-2.95.3/objdir.O3/hppa1.1-hp-hpux10.20/threads/libio -I/xxx/gnu/gcc-2.95.3/libstdc++ -I/xxx/gnu/gcc-2.95.3/libstdc++/stl -c -threads -o /xxx/gnu/gcc-2.95.3/objdir/gcc/testsuite/eb131.o 
/xxx/gnu/gcc-2.95.3/gcc/testsuite/g++.old-deja/g++.robertl/eb131.C: In method `a::a()':
/xxx/gnu/gcc-2.95.3/gcc/testsuite/g++.old-deja/g++.robertl/eb131.C:18: object-dependent reference `junk' can only be used in a call
/xxx/gnu/gcc-2.95.3/gcc/testsuite/g++.old-deja/g++.robertl/eb131.C:18:   to form a pointer to member function, say `&a::junk'
/xxx/gnu/gcc-2.95.3/gcc/testsuite/g++.old-deja/g++.robertl/eb131.C:19: object-dependent reference `bar' can only be used in a call
/xxx/gnu/gcc-2.95.3/gcc/testsuite/g++.old-deja/g++.robertl/eb131.C:19:   to form a pointer to member function, say `&a::bar'
compiler exited with status 1
output is:
/xxx/gnu/gcc-2.95.3/gcc/testsuite/g++.old-deja/g++.robertl/eb131.C: In method `a::a()':
/xxx/gnu/gcc-2.95.3/gcc/testsuite/g++.old-deja/g++.robertl/eb131.C:18: object-dependent reference `junk' can only be used in a call
/xxx/gnu/gcc-2.95.3/gcc/testsuite/g++.old-deja/g++.robertl/eb131.C:18:   to form a pointer to member function, say `&a::junk'
/xxx/gnu/gcc-2.95.3/gcc/testsuite/g++.old-deja/g++.robertl/eb131.C:19: object-dependent reference `bar' can only be used in a call
/xxx/gnu/gcc-2.95.3/gcc/testsuite/g++.old-deja/g++.robertl/eb131.C:19:   to form a pointer to member function, say `&a::bar'

FAIL: g++.robertl/eb131.C candidate (test for errors, line 13)

...

testcase /xxx/gnu/gcc-2.95.3/gcc/testsuite/g++.old-deja/old-deja.exp completed in 6244 seconds

		=== g++ Summary for unix ===

# of expected passes		5111
# of unexpected failures	34
# of unexpected successes	5
# of expected failures		80
# of untested testcases		11

		=== g++ Summary ===

# of expected passes		10222
# of unexpected failures	68
# of unexpected successes	10
# of expected failures		160
# of untested testcases		22
Executing on host: /xxx/gnu/gcc-2.95.3/objdir.O3/gcc/testsuite/../xgcc -v    (timeout = 300)
spawn /xxx/gnu/gcc-2.95.3/objdir.O3/gcc/testsuite/../xgcc -v 
Using builtin specs.
gcc version 2.95.3 19991030 (prerelease)
/xxx/gnu/gcc-2.95.3/objdir.O3/gcc/testsuite/../xgcc version 2.95.3 19991030 (prerelease)

In summary,

attrib5.C: it looks like the test should be expected to fail on hpux targets.

sigNN.C: all 31 signature tests fail because of warning.  The tests have
	been removed from main branch.

operators16.C: FAIL-PASS on execution?

temps4.C: FAIL-PASS on execution?

static6.C: failure looks like a compiler problem.

eb131.C: failure looks like a testsuite problem.

-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)


More information about the Gcc-bugs mailing list