[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#433539: gcc-4.1: Final patch for profiling



Package: gcc-4.1
Version: 4.1.2-13
Followup-For: Bug #433539

As a follow up to my last email, I've updated my patch more, and now it properly handles profiling with -static and without. I also used it to build and 
profile hurd translators as staticially built binaries without a problem. This patch also works for gcc-4.2 (although its off by five lines)
Michael

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: hurd-i386 (i686-AT386)

Kernel: GNU-Mach 1.3.99/Hurd-0.3
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages gcc-4.1 depends on:
ii  binutils               2.17cvs20070426-8 The GNU assembler, linker and bina
ii  cpp-4.1                4.1.2-13          The GNU C preprocessor
ii  gcc-4.1-base           4.1.2-13          The GNU Compiler Collection (base 
ii  libc0.3                2.5-11+hurd.1     GNU C Library: Shared libraries
ii  libgcc1                1:4.2.1-0         GCC support library

Versions of packages gcc-4.1 recommends:
ii  libmudflap0-dev               4.1.2-13   GCC mudflap support libraries (dev

-- no debconf information
--- src/gcc/config/i386/gnu.h	2007-07-14 17:02:14.210000000 -0400
+++ src/gcc/config/i386/gnu.h	2007-07-14 13:01:43.970000000 -0400
@@ -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}}"
 

Reply to: