libstdc++/5198: 3.0.3 linux x m68k build fail: invalid opcodes in c++locale.cc
Craig Rodrigues
rodrigc@mediaone.net
Fri Jan 4 12:50:00 GMT 2002
On Fri, Jan 04, 2002 at 12:15:48PM -0800, Don Lindsay wrote:
> > - send me your specs file which is created in the gcc directory
> > during the building of gcc
>
> Attached, along with the config.h you asked for in another email.
OK, according to your specs file, everything should be defaulting
to 68020, so I don't know why the assembler is being called
with the 68000 flag. There is one place in your specs file that
looks suspicious though:
*predefines:
-Dmc68000 -D__embedded__ -Asystem=embedded -Amachine=mc68000
Can you do the following for me?
(1) Edit your specs file so that you change the predefines section to:
-Dmc68020 -D__embedded__ -Asystem=embedded -Amachine=mc68020
(2) Try to recompile the offending C++ file, and see if the assembler
is invoked with the 68020 flag.
If that works, then the following patch might be required:
Index: m68kemb.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/m68k/m68kemb.h,v
retrieving revision 1.7
diff -u -r1.7 m68kemb.h
--- m68kemb.h 2001/12/11 18:21:03 1.7
+++ m68kemb.h 2002/01/04 20:49:26
@@ -42,8 +42,8 @@
#define NEEDS_UNTYPED_CALL 1
#undef CPP_PREDEFINES
-#define CPP_PREDEFINES "-Dmc68000 -D__embedded__ -Asystem=embedded \
- -Amachine=mc68000"
+#define CPP_PREDEFINES "-Dmc68020 -D__embedded__ -Asystem=embedded \
+ -Amachine=mc68020"
/* Override the default LIB_SPEC from gcc.c. We don't currently support
profiling, or libg.a. */
--
Craig Rodrigues
http://www.gis.net/~craigr
rodrigc@mediaone.net
More information about the Gcc-bugs
mailing list