This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [bug report] gcc-2.95.1 on Solaris x86 2.5 [patch for 2.95.2]
- To: law at cygnus dot com
- Subject: Re: [bug report] gcc-2.95.1 on Solaris x86 2.5 [patch for 2.95.2]
- From: Marc Dionne <dionne at cs dot wisc dot edu>
- Date: Mon, 20 Sep 1999 14:55:29 +0000
- CC: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>, I Lee Hetherington <ilh at sls dot lcs dot mit dot edu>, gcc-bugs at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Organization: University of Wisconsin
- References: <890.937828743@upchuck.cygnus.com>
Jeffrey A Law wrote:
>
> Not a safe assumption to make. And it's not *that* hard to test.
>
> Can someone with a x86-solaris system see what kind of debug symbols the
> system compilers produce?
>
> If you are unsure how to interpret debug symbols, compile a simple file with
> Sun's compilers using -g -S and send us the resulting .s file.
>
> jeff
Listed below is the result of compiling "main() {}" with Sun's 5.0
compiler on an x86 2.6 system. Looks like stabs it is.
Marc
=====
.section .text,"ax"
.align 4
.globl main
.type main,@function
.align 16
main:
pushl %ebp
movl %esp,%ebp
.L14:
.L15:
jmp .L13
.align 4
.L16:
.L17:
.L13:
movl %ebp,%esp
popl %ebp
ret
.size main,.-main
.file "t.c"
.xstabs ".stab.index","/tmp/",0x64,0,0,0
.xstabs ".stab.index","t.c",0x64,0,3,0
.stabs "/tmp/",0x64,0,0,0
.stabs "t.c",0x64,0,3,0
.xstabs ".stab.index","",0x38,0,0,0
.xstabs ".stab.index","",0x38,0,0,0
.stabs "",0x38,0,0,0
.stabs "",0x38,0,0,0
.xstabs ".stab.index","Xa ; g ; V=3.1 ; R=WorkShop Compilers 5.0
99/06/1
0 C 5.0 patch 107290-03 ; G=.XAAmmoMEnk53g68.",0x3c,0,0,937839044
.stabs "Xa ; g ; V=3.1 ; R=WorkShop Compilers 5.0 99/06/10 C
5.0 patch
107290-03 ; G=.XAAmmoMEnk53g68.",0x3c,0,0,937839044
.xstabs ".stab.index","/tmp; /opt/SUNWspro/bin/../SC5.0/bin/cc
-g -S t.
c -W0,-xp.XAAmmoMEnk53g68.",0x34,0,0,0
.stabs "char:t(0,1)=bsc1;0;8;",0x80,0,0,0
.stabs "short:t(0,2)=bs2;0;16;",0x80,0,0,0
.stabs "int:t(0,3)=bs4;0;32;",0x80,0,0,0
.stabs "long:t(0,4)=bs4;0;32;",0x80,0,0,0
.stabs "long long:t(0,5)=bs8;0;64;",0x80,0,0,0
.stabs "signed char:t(0,6)=bsc1;0;8;",0x80,0,0,0
.stabs "signed short:t(0,7)=bs2;0;16;",0x80,0,0,0
.stabs "signed int:t(0,8)=bs4;0;32;",0x80,0,0,0
.stabs "signed long:t(0,9)=bs4;0;32;",0x80,0,0,0
.stabs "signed long long:t(0,10)=bs8;0;64;",0x80,0,0,0
.stabs "unsigned char:t(0,11)=buc1;0;8;",0x80,0,0,0
.stabs "unsigned short:t(0,12)=bu2;0;16;",0x80,0,0,0
.stabs "unsigned:t(0,13)=bu4;0;32;",0x80,0,0,0
.stabs "unsigned int:t(0,14)=bu4;0;32;",0x80,0,0,0
.stabs "unsigned long:t(0,15)=bu4;0;32;",0x80,0,0,0
.stabs "unsigned long long:t(0,16)=bu8;0;64;",0x80,0,0,0
.stabs "float:t(0,17)=R1;4;",0x80,0,0,0
.stabs "double:t(0,18)=R2;8;",0x80,0,0,0
.stabs "long double:t(0,19)=R6;12;",0x80,0,0,0
.stabs "void:t(0,20)=bs0;0;0",0x80,0,0,0
.xstabs ".stab.index","main",0x2a,0,0,0
.xstabs ".stab.index","main",0x24,0,0,0
.stabs "main:F(0,3)",0x24,0,0,0
.stabs "main",0x2a,0,0,0
.stabn 0xc0,0,1,.L15-main
.stabn 0x44,0,2,.L16-main
.stabn 0xe0,0,1,.L17-main
.stabs "",0x62,0,0,0
.ident "acomp: WorkShop Compilers 5.0 99/06/10 C 5.0 patch
107290-03"
.globl __fsr_init_value
__fsr_init_value = 0x0