Port-amiga archive

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

Re: Toolchain issue?




On Thu, 31 Dec 2009, John Klos wrote:

> Not sure if this is a toolchain issue or what, but I figured I'd post it

  It would be a toolchain issue and a PR should be reported (nothing may
happen with it, but at least the problem will be on record).

> /usr/tools/bin/m68k--netbsdelf-gcc -Werror -m68060 -O2 -Wno-stack-protector 
> -I/usr/src/gnu/usr.bin/gdb6/libgdb 
> -I/usr/src/gnu/usr.bin/gdb6/libgdb/../arch/m68k -I/usr/src/gnu/dist/gdb6/gdb 
> -I/usr/src/gnu/dist/gdb6/gdb/config -I/usr/src/gnu/dist/gdb6/include/opcode 
> -I/usr/src/gnu/dist/gdb6 -I/usr/src/gnu/usr.bin/gdb6/libgdb/../bfd/arch/m68k 
> -I/usr/src/gnu/dist/gdb6/bfd -I/usr/src/gnu/dist/gdb6/include 
> -DLOCALEDIR="/usr/share/locale" -DHAVE_CONFIG_H -DMI_OUT=1 -DTUI=1 -nostdinc 
> -isystem /usr/dest-amiga/usr/include -c 
> /usr/src/gnu/dist/gdb6/gdb/dwarf2-frame.c -o dwarf2-frame.o
>
> /usr/src/gnu/dist/gdb6/gdb/dwarf2-frame.c: In function 'execute_cfa_program':
> /usr/src/gnu/dist/gdb6/gdb/dwarf2-frame.c:529: internal compiler error: in 
> replace_pseudos_in, at reload1.c:597
> Please submit a full bug report,
> with preprocessed source if appropriate.
>
>
> If I change the -O2 to -O or remove the -m68060, this compiles fine.
>
> Any ideas?

  I believe this has been reported before.

  I've gotten around it with this patch [I wasn't sure how to detect that
the -m68060 option was given, so just checked MACHINE against amiga]:

Index: gnu/usr.bin/gdb6/libgdb/Makefile
===================================================================
RCS file: /cvsroot/src/gnu/usr.bin/gdb6/libgdb/Makefile,v
retrieving revision 1.8
diff -u -p -r1.8 Makefile
--- gnu/usr.bin/gdb6/libgdb/Makefile    3 May 2008 14:48:31 -0000
1.8
+++ gnu/usr.bin/gdb6/libgdb/Makefile    8 Jan 2010 23:32:59 -0000
@@ -39,3 +39,7 @@ COPTS+=       -Wno-stack-protector

 # Don't run yacc/bison or lex
 .y.c .y.h .l.c:
+
+.if ${MACHINE} == "amiga"
+COPTS.dwarf2-frame.c+=-O1
+.endif



Home | Main Index | Thread Index | Old Index