This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 3.4/3.5 PATCH: Switch to DWARF-2 debugging on Solaris/x86 >= 7


> I've bootstrapped the following patch without regressions on
> sparc-sun-solaris2.8 with the native as.  Unfortunately, a bootstrap with
> gas (either 2.14 or 2.14.91 20040419) fails linking the 32-bit
> libgcc_s.so.1:
> [...]
> This is certainly not related to my patch, but this way I couldn't verify
> the ASM_DEBUG_SPEC part, so I'm somewhat relucatant to check this in.

Weird.  I couldn't reproduce the failure this morning with gas 2.14 and Sun 
ld on Solaris 7 and 8, neither before nor after the patch.  Are you sure you 
passed --with-gnu-as and not --with-gnu-ld?

> Index: gcc/config.gcc
> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/config.gcc,v
> retrieving revision 1.449
> diff -u -p -r1.449 config.gcc
> --- gcc/config.gcc	17 Apr 2004 02:32:23 -0000	1.449
> +++ gcc/config.gcc	20 Apr 2004 11:34:06 -0000
> @@ -1823,6 +1823,11 @@ sparc64-*-solaris2* | sparcv9-*-solaris2
>  	if test x$gas = xyes; then
>  		tm_file="${tm_file} sparc/sol2-gas-bi.h"
>  	fi
> +	case ${target} in
> +	*-*-solaris2.[789] | *-*-solaris2.1[0-9])
> +		tm_file="$tm_file tm-dwarf2.h"
> +		;;
> +	esac
>  	tmake_file="sparc/t-sol2 sparc/t-sol2-64 sparc/t-crtfm"
>  	if test x$gnu_ld = xyes; then
>  		tmake_file="$tmake_file t-slibgcc-elf-ver"
> @@ -1862,6 +1867,7 @@ sparc-*-solaris2*)
>  		if test x$gas = xyes; then
>  			tm_file="${tm_file} sparc/sol2-gas-bi.h"
>  		fi
> +		tm_file="$tm_file tm-dwarf2.h"
>  		tmake_file="$tmake_file sparc/t-sol2-64"
>  		need_64bit_hwint=yes
>  		;;

Any particular reason not to use the following simpler idiom?

Index: config.gcc
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config.gcc,v
retrieving revision 1.449
diff -u -r1.449 config.gcc
--- config.gcc  17 Apr 2004 02:32:23 -0000      1.449
+++ config.gcc  21 Apr 2004 20:44:08 -0000
@@ -1816,7 +1816,7 @@
        extra_parts="crti.o crtn.o crtbegin.o crtend.o"
        ;;
 sparc64-*-solaris2* | sparcv9-*-solaris2*)
-       tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h 
sparc/sysv4.h sol2.h sparc/sol2.h sparc/sol2-64.h sparc/sol2-bi.h"
+       tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h 
sparc/sysv4.h sol2.h sparc/sol2.h sparc/sol2-64.h sparc/sol2-bi.h 
tm-dwarf2.h"
        if test x$gnu_ld = xyes; then
                tm_file="${tm_file} sparc/sol2-gld.h sparc/sol2-gld-bi.h"
        fi
@@ -1855,7 +1855,7 @@
                fi
                ;;
        *-*-solaris2.[789] | *-*-solaris2.1[0-9])
-               tm_file="sparc/biarch64.h ${tm_file} sparc/sol2-bi.h"
+               tm_file="sparc/biarch64.h ${tm_file} sparc/sol2-bi.h 
tm-dwarf2.h"
                if test x$gnu_ld = xyes; then
                        tm_file="${tm_file} sparc/sol2-gld-bi.h"
                fi

-- 
Eric Botcazou


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]