This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++/5198: 3.0.3 linux x m68k build fail: invalid opcodes in c++locale.cc
- From: Craig Rodrigues <rodrigc at mediaone dot net>
- To: Don Lindsay <lindsayd at cisco dot com>
- Cc: rodrigc at gcc dot gnu dot org, aaron at frye dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
- Date: Fri, 4 Jan 2002 15:50:23 -0500
- Subject: Re: libstdc++/5198: 3.0.3 linux x m68k build fail: invalid opcodes in c++locale.cc
- References: <20020103234514.A9689@mediaone.net> <Pine.LNX.4.33.0201041213050.21746-201000@localhost.localdomain>
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