This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Problem with assembly generated by egcs 1.0 on mips-sgi-irix6.2
- To: egcs-bugs at cygnus dot com
- Subject: Problem with assembly generated by egcs 1.0 on mips-sgi-irix6.2
- From: "Blake A. Jones" <foo at hedono dot ugcs dot caltech dot edu>
- Date: Sat, 20 Dec 1997 14:09:41 -0800
I'm having trouble getting egcs 1.0 to work on my mips-sgi-irix6.2
machine. I configured it with
CC="gcc" ./configure \
--prefix=/usr/ug/share/egcs-1.0 --exec-prefix=/usr/ug/irix6/egcs-1.0 \
--disable-shared --without-gnu-as
and did a "make". (My problem showed up before the end of stage 1, but
trying a "make bootstrap" showed that they kept showing up in later
stages too.) It built fine. But when it started using the new xgcc to
compile anything, I would get a warning on each file assembled. The
error was:
as: Warning: hello.s, line 91: label should be inside .ent/.end block: .Letext0
.Letext0:
It was always the same, up to filename and line number. I tried running
"xgcc -v" manually, and it was indeed using the SGI n32 assembler.
Running gdb (4.15.1) on a binary that egcs compiled with debugging gave
the message "No debugging symbols found." Using CC="cc -n32" to build
stage 1 didn't solve the problem.
I assembled (with "./xgcc -B. -g -S hello.c") a file with contents
"main(){}", and it still gave the warning. I'll put the generated
assembly file at the end of this message. If you need more information,
please let me know.
Any advice would be appreciated. Thanks.
Blake Jones
########################################################################
#.file 1 "hello.c"
.option pic2
.section .text
# -G value = 0, Cpu = 4000, ISA = 3
# GNU C version egcs-2.90.21 971202 (egcs-1.00 release) (mips-sgi-irix6.2) compiled by GNU C version 2.7.2.2.
# options passed: -g
# options enabled: -fpeephole -ffunction-cse -fkeep-static-consts
# -freg-struct-return -fpic -fcommon -fverbose-asm -fgnu-linker
# -fargument-alias -mgas -mfp64 -mgp64 -mabicalls -meb -mcpu=4000
.text
.align 2
.globl main
.ent main
main:
.LFB1:
.LM1:
.frame $fp,32,$31 # vars= 0, regs= 2/0, args= 0, extra= 16
.mask 0x50000000,-8
.fmask 0x00000000,0
subu $sp,$sp,32
.LCFI0:
sd $fp,24($sp)
.LCFI1:
sd $28,16($sp)
.LCFI2:
move $fp,$sp
.LCFI3:
.set noat
lui $1,%hi(%neg(%gp_rel(main)))
addiu $1,$1,%lo(%neg(%gp_rel(main)))
daddu $gp,$1,$25
.set at
.LM2:
.L1:
move $sp,$fp
ld $fp,24($sp)
ld $28,16($sp)
addu $sp,$sp,32
j $31
.LFE1:
.end main
.section .debug_frame,0x7000001e,0x08000000,0,1
.4byte .LECIE0-.LSCIE0
.LSCIE0:
.4byte 0xffffffff
.byte 0x1
.byte 0x0
.byte 0x1
.byte 0x78
.byte 0x40
.byte 0xc
.byte 0x1d
.byte 0x0
.byte 0x9
.byte 0x40
.byte 0x1f
.align 2
.LECIE0:
.4byte .LEFDE0-.LSFDE0
.LSFDE0:
.4byte .debug_frame
.4byte .LFB1
.4byte .LFE1-.LFB1
.byte 0x4
.4byte .LCFI0-.LFB1
.byte 0xe
.byte 0x20
.byte 0x4
.4byte .LCFI1-.LCFI0
.byte 0x9e
.byte 0x1
.byte 0x4
.4byte .LCFI2-.LCFI1
.byte 0x9c
.byte 0x2
.byte 0x4
.4byte .LCFI3-.LCFI2
.byte 0xc
.byte 0x1e
.byte 0x20
.align 2
.LEFDE0:
.align 0
.section .text
.Letext0:
.section .debug_line,0x7000001e,0,0,1
.4byte 0x40
.2byte 0x2
.4byte 0x1b
.byte 0x4
.byte 0x1
.byte -10
.byte 245
.byte 10
.byte 0x0
.byte 0x1
.byte 0x1
.byte 0x1
.byte 0x1
.byte 0x0
.byte 0x0
.byte 0x0
.byte 0x1
.byte 0x0
.byte 0x68,0x65,0x6c,0x6c,0x6f,0x2e,0x63,0x0
.byte 0x0
.byte 0x0
.byte 0x0
.byte 0x0
.byte 0x0
.byte 0x5
.byte 0x2
.4byte .text
.byte 0x0
.byte 0x5
.byte 0x2
.4byte .LM1
.byte 0x14
.byte 0x0
.byte 0x5
.byte 0x2
.4byte .LM2
.byte 0x14
.byte 0x0
.byte 0x5
.byte 0x2
.4byte .Letext0
.byte 0x0
.byte 0x1
.byte 0x1
.section .debug_abbrev,0x7000001e,0,0,1
.byte 0x1
.byte 0x11
.byte 0x1
.byte 0x3
.byte 0x8
.byte 0x1b
.byte 0x8
.byte 0x25
.byte 0x8
.byte 0x13
.byte 0xb
.byte 0x11
.byte 0x1
.byte 0x12
.byte 0x1
.byte 0x10
.byte 0x6
.byte 0,0
.byte 0x2
.byte 0x2e
.byte 0x0
.byte 0x3f
.byte 0xc
.byte 0x3
.byte 0x8
.byte 0x3a
.byte 0xb
.byte 0x3b
.byte 0xb
.byte 0x49
.byte 0x13
.byte 0x11
.byte 0x1
.byte 0x12
.byte 0x1
.byte 0x81,0x40
.byte 0x6
.byte 0x40
.byte 0xa
.byte 0,0
.byte 0x3
.byte 0x24
.byte 0x0
.byte 0x3
.byte 0x8
.byte 0xb
.byte 0xb
.byte 0x3e
.byte 0xb
.byte 0,0
.section .debug_info,0x7000001e,0,0,1
.4byte 0x8d
.2byte 0x2
.4byte .debug_abbrev
.byte 0x4
.byte 0x1
.byte 0x68,0x65,0x6c,0x6c,0x6f,0x2e,0x63,0x0
.byte 0x2f,0x6d,0x6e,0x74,0x2f,0x61,0x73,0x6d
.byte 0x6f,0x64,0x65,0x75,0x73,0x2f,0x65,0x67
.byte 0x63,0x73,0x2d,0x69,0x72,0x69,0x78,0x2f
.byte 0x67,0x63,0x63,0x0
.byte 0x47,0x4e,0x55,0x20,0x43,0x20,0x65,0x67
.byte 0x63,0x73,0x2d,0x32,0x2e,0x39,0x30,0x2e
.byte 0x32,0x31,0x20,0x39,0x37,0x31,0x32,0x30
.byte 0x32,0x20,0x28,0x65,0x67,0x63,0x73,0x2d
.byte 0x31,0x2e,0x30,0x30,0x20,0x72,0x65,0x6c
.byte 0x65,0x61,0x73,0x65,0x29,0x20,0x2d,0x67
.byte 0x0
.byte 0x1
.4byte .text
.4byte .Letext0
.4byte .debug_line
.byte 0x2
.byte 0x1
.byte 0x6d,0x61,0x69,0x6e,0x0
.byte 0x1
.byte 0x1
.4byte 0x89
.4byte .LFB1
.4byte .LFE1
.4byte .LSFDE0 - 4
.byte 0x1
.byte 0x6e
.byte 0x3
.byte 0x69,0x6e,0x74,0x0
.byte 0x4
.byte 0x5
.byte 0x0
.section .debug_pubnames,0x7000001e,0,0,1
.4byte 0x17
.2byte 0x2
.4byte .debug_info
.4byte 0x91
.4byte 0x6e
.byte 0x6d,0x61,0x69,0x6e,0x0
.4byte 0x0
.section .debug_aranges,0x7000001e,0,0,1
.4byte 0x1c
.2byte 0x2
.4byte .debug_info
.byte 0x4
.byte 0x0
.4byte 0x4
.4byte .text
.4byte .Letext0-.text
.4byte 0x0
.4byte 0x0