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: Patch to fix irix6o32 explicit-reloc breakage


Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> writes:
> Richard Sandiford <rsandifo@redhat.com> writes:
> > Tested on mips-sgi-irix6o32 (and other mips targets).
> > The target now bootstraps with the native assembler,
> > although I needed a couple of changes to irix6-o32-as.h
> > to get things working.  OK to install?
> 
> Do you have details?  I didn't have any time to work on this configuration
> for almost a year, but hope to return soon.  I'm currently aware of at
> least three issues:
> 
> * passing -mdebug to non-gas assemblers

Yes, this was one of them.  I hacked around it by redefining
SUBTARGET_ASM_DEBUGGING_SPEC in iris6-o32-as.h, but I don't
think it was the proper fix.

Also, gas seems to add the name of the assembly file to the
mdebug info, leading to spurious bootstrap comparison failures.
Was this always a problem or is it new?

> * improperly (or not at all) passing --gstabs or --gdwarf2 to gas

Didn't hit this, but I didn't do much more than a bootstrap.

> * bootstrap error for mips-sgi-irix6.5o32 --with-gnu-as on mainline:
> 
> /vol/gnu/src/gcc/gcc-dist/gcc/dwarf2asm.c: In function `dw2_asm_output_nstring':
> /vol/gnu/src/gcc/gcc-dist/gcc/dwarf2asm.c:281: error: Attempt to delete prologue/epilogue insn:
> (insn 513 391 514 0 0 (set (mem:SI (plus:SI (reg/f:SI 29 sp)
>                 (const_int 80 [0x50])) [0 S4 A32])
>         (reg:SI 6 a2)) -1 (nil)
>     (nil))
> /vol/gnu/src/gcc/gcc-dist/gcc/dwarf2asm.c:281: internal compiler error: in ?, at flow.c:1653

I was using the native assembler so I didn't see this.  I've seen
something similar when trying to build gdb for mipsel-linux-gnu.

A patch I'm working on happens to (accidentally) paper over the
problem but again isn't a proper fix.  I'd like to rework the
code in mips_expand_prologue in a way that should fix the
underlying bug as well.  The patch I mentioned is a prerequisite
for that.

I also had problems building stdc++.h.gch:

cc1plus: warning: `-g': unknown or unsupported -g option
cc1plus: warning: `-g': unknown or unsupported -g option
/es/scratch/rsandifo/gcc/HEAD/gcc/libstdc++-v3/include/stdc++.h:86: fatal error:
 error
   writing to /var/tmp//ccVTF42c.s: Bad file number
compilation terminated.
cc1plus: warning: `-g': unknown or unsupported -g option
cc1plus: warning: `-g': unknown or unsupported -g option
/es/scratch/rsandifo/gcc/HEAD/gcc/libstdc++-v3/include/stdc++.h:86: fatal error:
 error
   writing to /var/tmp//ccSfli2b.s: Bad file number

Haven't really looked into it.

Richard


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