Executing on host: /home/dave/gcc-4.2/objdir/gcc/testsuite/obj-c++/../../g++ -B/ home/dave/gcc-4.2/objdir/gcc/testsuite/obj-c++/../../ /home/dave/gcc-4.2/gcc/gcc /testsuite/obj-c++.dg/encode-8.mm -nostdinc++ -I/home/dave/gcc-4.2/objdir/hppa- linux/libstdc++-v3/include/hppa-linux -I/home/dave/gcc-4.2/objdir/hppa-linux/lib stdc++-v3/include -I/home/dave/gcc-4.2/gcc/libstdc++-v3/libsupc++ -I/home/dave/g cc-4.2/gcc/libstdc++-v3/include/backward -I/home/dave/gcc-4.2/gcc/libstdc++-v3/t estsuite -fmessage-length=0 -lobjc -I/home/dave/gcc-4.2/gcc/gcc/testsuite/../.. /libobjc -L/home/dave/gcc-4.2/objdir/hppa-linux/./libstdc++-v3/src/.libs -L/ home/dave/gcc-4.2/objdir/hppa-linux/./libstdc++-v3/src/.libs -L/home/dave/gcc-4. 2/objdir/hppa-linux/./libiberty -L/home/dave/gcc-4.2/objdir/hppa-linux/./libobjc /.libs -lobjc -lm -o ./encode-8.exe (timeout = 300) PASS: obj-c++.dg/encode-8.mm (test for excess errors) Setting LD_LIBRARY_PATH to .:/home/dave/gcc-4.2/objdir/hppa-linux/./libstdc++-v3 /src/.libs:/home/dave/gcc-4.2/objdir/hppa-linux/./libstdc++-v3/src/.libs:/home/d ave/gcc-4.2/objdir/hppa-linux/./libobjc/.libs:/home/dave/gcc-4.2/objdir/gcc:.:/h ome/dave/gcc-4.2/objdir/hppa-linux/./libstdc++-v3/src/.libs:/home/dave/gcc-4.2/o bjdir/hppa-linux/./libstdc++-v3/src/.libs:/home/dave/gcc-4.2/objdir/hppa-linux/. /libobjc/.libs:/home/dave/gcc-4.2/objdir/gcc:/home/dave/gcc-4.2/objdir/hppa-linu x/libstdc++-v3/.libs:/home/dave/gcc-4.2/objdir/hppa-linux/libmudflap/.libs:/home /dave/gcc-4.2/objdir/hppa-linux/libssp/.libs:/home/dave/gcc-4.2/objdir/hppa-linu x/libgomp/.libs:/home/dave/gcc-4.2/objdir/./gcc:/home/dave/gcc-4.2/objdir/./prev -gcc:/home/dave/opt/gnu/gcc/gcc-4.1.0/lib FAIL: obj-c++.dg/encode-8.mm execution test
Also fails on hppa64.
Bug is not hppa-specific, removing target tags. I also see the failure on i686 and x86_64 on 4.1, 4.2, and trunk. http://gcc.gnu.org/ml/gcc-testresults/2008-02/msg00469.html http://gcc.gnu.org/ml/gcc-testresults/2008-02/msg00468.html http://gcc.gnu.org/ml/gcc-testresults/2008-02/msg00466.html
Below is the info from gdb with mainline on x86_64-linux-gnu. We're aborting because the encoding for BOOL* doesn't match the expected value. (gdb) run Starting program: /home/ghazi/gcc-testing/43/build/gcc/testsuite/obj-c++/encode-8.exe Program received signal SIGABRT, Aborted. 0x00002ad8f2f4107b in raise () from /lib/libc.so.6 (gdb) bt full #0 0x00002ad8f2f4107b in raise () from /lib/libc.so.6 No symbol table info available. #1 0x00002ad8f2f4284e in abort () from /lib/libc.so.6 No symbol table info available. #2 0x00000000004006db in main () at testsuite/obj-c++.dg/encode-8.mm:17 BOOL_ptr = 0x4007cc "*" char_ptr = 0x4007cc "*" (gdb) list 17 12 int main(void) { 13 const char *BOOL_ptr = @encode(BOOL *); 14 const char *char_ptr = @encode(char *); 15 16 if(strcmp(BOOL_ptr, "^c")) 17 abort(); 18 19 if(strcmp(char_ptr, "*")) 20 abort(); 21
shouldn't this be NeXT-specific - i.e. skipped for -fgnu-runtime, rather than XFAILED?
this has been fixed for some time in the test-suite by running only for *-*-darwin* and skipping for gnu-runtime.