Bug#433539: GCC Spec File for Profiling

2007-08-02 Thread Samuel Thibault
Hi,

Thomas Schwinge, le Sun 29 Jul 2007 17:24:34 +0200, a écrit :
> > *startfile: %{!shared: %{!static: %{pg:gcrt0.o%s} %{!pg:%{p:gcrt0.o%s} 
> > %{!p:crt1.o%s}}} %{static: %{pg:gcrt0.o%s} %{!pg:{%p:gcrt0}} 
> 
>   Here is a typo, I suppose: ^

Yes. Here is an fixed patch.

Samuel
#! /bin/sh -e

# DP: Fix profiling on hurd-i386.

dir=
if [ $# -eq 3 -a "$2" = '-d' ]; then
pdir="-d $3"
dir="$3/"
elif [ $# -ne 1 ]; then
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
exit 1
fi
case "$1" in
-patch)
patch $pdir -f --no-backup-if-mismatch -p0 < $0
;;
-unpatch)
patch $pdir -f --no-backup-if-mismatch -R -p0 < $0
;;
*)
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
exit 1
esac
exit 0

--- gcc/config/i386/gnu.h.orig  2007-07-18 21:51:25.0 +0200
+++ gcc/config/i386/gnu.h   2007-07-18 21:52:18.0 +0200
@@ -34,8 +34,8 @@
 #define STARTFILE_SPEC \
   "%{!shared: \
  %{!static: \
-   %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}} \
- %{static:crt0.o%s}} \
+   %{pg:gcrt0.o%s} %{!pg:%{p:gcrt0.o%s} %{!p:crt1.o%s}}} \
+ %{static: %{pg:gcrt0.o%s} %{!pg:%{p:gcrt0.o%s}} %{!p:crt0.o%s}}} \
crti.o%s %{static:crtbeginT.o%s}\
%{!static:%{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}}"
 


Results for 3.4.6 (Debian 3.4.6-6) testsuite on sparc-linux-gnu

2007-08-02 Thread Matthias Klose
LAST_UPDATED: Obtained from SVN: tags/gcc_3_4_6_release revision 111785

Native configuration is sparc-linux-gnu (sunny)

=== gpc tests ===


Running target any
FAIL: awindte2.pas
FAIL: awindtes.pas
FAIL: fjf980a.pas
FAIL: fjf980b.pas
FAIL: fjf998r.pas

=== gpc Summary ===

# of tests5057
# of expected passes  5049
# of unexpected failures  5
# of unsupported tests3
/home/packages/gcc/3.4/gcc-3.4-3.4.6ds1/build/gcc/xgpc version 20060325, based 
on gcc-3.4.6 (Debian 3.4.6-6)

=== g++ tests ===


Running target unix
UNRESOLVED: g++.dg/eh/simd-1.C compilation failed to produce executable
UNRESOLVED: g++.dg/eh/simd-2.C compilation failed to produce executable
XPASS: g++.old-deja/g++.other/init5.C execution test

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

# of expected passes9951
# of unexpected successes   1
# of expected failures  67
# of unresolved testcases   2
# of unsupported tests  80

Running target unix/-m64
UNRESOLVED: g++.dg/eh/simd-1.C compilation failed to produce executable
UNRESOLVED: g++.dg/eh/simd-2.C compilation failed to produce executable
XPASS: g++.old-deja/g++.other/init5.C execution test

=== g++ Summary for unix/-m64 ===

# of expected passes9951
# of unexpected successes   1
# of expected failures  67
# of unresolved testcases   2
# of unsupported tests  80

=== g++ Summary ===

# of expected passes19902
# of unexpected successes   2
# of expected failures  134
# of unresolved testcases   4
# of unsupported tests  160
/home/packages/gcc/3.4/gcc-3.4-3.4.6ds1/build/gcc/testsuite/../g++  version 
3.4.6 (Debian 3.4.6-6)

=== g77 tests ===


Running target unix

=== g77 Summary for unix ===

# of expected passes1812
# of unsupported tests  6

Running target unix/-m64

=== g77 Summary for unix/-m64 ===

# of expected passes1812
# of unsupported tests  6

=== g77 Summary ===

# of expected passes3624
# of unsupported tests  12
/home/packages/gcc/3.4/gcc-3.4-3.4.6ds1/build/gcc/testsuite/../g77  version 
3.4.6 (Debian 3.4.6-6)

=== gcc tests ===


Running target unix
UNRESOLVED: gcc.c-torture/execute/simd-4.c execution,  -O0 
UNRESOLVED: gcc.dg/compat/vector-1 c_compat_x_tst.o-c_compat_y_tst.o link 
UNRESOLVED: gcc.dg/compat/vector-1 c_compat_x_tst.o-c_compat_y_tst.o execute 
UNRESOLVED: gcc.dg/compat/vector-2 c_compat_x_tst.o-c_compat_y_tst.o link 
UNRESOLVED: gcc.dg/compat/vector-2 c_compat_x_tst.o-c_compat_y_tst.o execute 
FAIL: gcc.dg/cleanup-10.c execution test
FAIL: gcc.dg/cleanup-11.c execution test
FAIL: gcc.dg/cleanup-8.c execution test
FAIL: gcc.dg/cleanup-9.c execution test
XPASS: gcc.dg/uninit-4.c uninitialized variable warning (test for bogus 
messages, line 26)

=== gcc Summary for unix ===

# of expected passes24966
# of unexpected failures4
# of unexpected successes   1
# of expected failures  79
# of unresolved testcases   5
# of untested testcases 7
# of unsupported tests  351

Running target unix/-m64
FAIL: gcc.c-torture/execute/conversion.c execution,  -O0 
FAIL: gcc.c-torture/execute/conversion.c execution,  -O3 -fomit-frame-pointer 
FAIL: gcc.c-torture/execute/conversion.c execution,  -O3 -g 
UNRESOLVED: gcc.c-torture/execute/simd-4.c execution,  -O0 
UNRESOLVED: gcc.c-torture/execute/va-arg-25.c execution,  -O0 
UNRESOLVED: gcc.c-torture/execute/va-arg-25.c execution,  -O1 
UNRESOLVED: gcc.c-torture/execute/va-arg-25.c execution,  -O2 
UNRESOLVED: gcc.c-torture/execute/va-arg-25.c execution,  -O3 
-fomit-frame-pointer 
UNRESOLVED: gcc.c-torture/execute/va-arg-25.c execution,  -O3 -g 
UNRESOLVED: gcc.c-torture/execute/va-arg-25.c execution,  -Os 
UNRESOLVED: gcc.dg/compat/vector-1 c_compat_x_tst.o-c_compat_y_tst.o link 
UNRESOLVED: gcc.dg/compat/vector-1 c_compat_x_tst.o-c_compat_y_tst.o execute 
UNRESOLVED: gcc.dg/compat/vector-2 c_compat_x_tst.o-c_compat_y_tst.o link 
UNRESOLVED: gcc.dg/compat/vector-2 c_compat_x_tst.o-c_compat_y_tst.o execute 
FAIL: gcc.dg/builtins-18.c (test for excess errors)
FAIL: gcc.dg/cleanup-10.c execution test
FAIL: gcc.dg/cleanup-11.c execution test
FAIL: gcc.dg/cleanup-8.c execution test
FAIL: gcc.dg/cleanup-9.c execution test
XPASS: gcc.dg/uninit-4.c uninitialized variable warning (test for bogus 
messages, line 26)
FAIL: linkage.c

=== gcc Summary for unix/-m64 ===

# of expected passes24941
# of unexpected failures9
# of unexpected successes   1
# of expected failures  91
# of unresolved testcases   11
# of untested testcases 7
# of unsupported tests  351

=== gcc Summary ===

# of expected passes49907
# of unexpected failures