From 6a1a8f42cf971f75dbf9f5f5fa9035624ef03a68 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Sun, 18 Nov 2012 22:48:33 +0100 Subject: [PATCH] testsuite/systemtap.base/partial-class-type.exp: Explictly use g++ compiler. partial-class-type.cxx is a C++ program, compiling with plain gcc might result in undefined reference to `__gxx_personality_v0'. --- testsuite/systemtap.base/partial-class-type.exp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testsuite/systemtap.base/partial-class-type.exp b/testsuite/systemtap.base/partial-class-type.exp index 034a3f379..8c814d2fd 100644 --- a/testsuite/systemtap.base/partial-class-type.exp +++ b/testsuite/systemtap.base/partial-class-type.exp @@ -15,13 +15,13 @@ proc error_handler { res message } { } set srcpath "$srcdir/$subdir" -set res [target_compile $srcpath/partial-class-type-heap.cxx "partial-class-type-heap.o" object "additional_flags=-g additional_flags=-O2"] +set res [target_compile $srcpath/partial-class-type-heap.cxx "partial-class-type-heap.o" object "compiler=g++ additional_flags=-g additional_flags=-O2"] if { [error_handler [expr {$res==""}] "partial-class-type-heap.cxx"] } { return } -set res [target_compile $srcpath/partial-class-type-main.cxx "partial-class-type-main.o" object "additional_flags=-g additional_flags=-O2"] +set res [target_compile $srcpath/partial-class-type-main.cxx "partial-class-type-main.o" object "compiler=g++ additional_flags=-g additional_flags=-O2"] if { [error_handler [expr {$res==""}] "partial-class-type-main.cxx"] } { return } -set res [target_compile "partial-class-type-main.o partial-class-type-heap.o" "partial-class-type" executable "additional_flags=-g additional_flags=-O2"] +set res [target_compile "partial-class-type-main.o partial-class-type-heap.o" "partial-class-type" executable "compiler=g++ additional_flags=-g additional_flags=-O2"] if { [error_handler [expr {$res==""}] "partial-class-type"] } { return } set script {"probe process(\"./partial-class-type\").function(\"main\") { printf(\"_size member offset: %d\\n\", &@cast(0, \"Heap\")->_size); }"} -- 2.43.5