This is the mail archive of the gcc-bugs@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]

[Bug target/13001] New: m68000 flag ins't passed to the assembler


	

When cross compiling to a motorola 68000 the flag -m68000 nor -mc68000
are propagated to the assambler, causing the generation of m68020 code instead.

Environment:
System: Linux SuSiTO 2.4.21 #4 lun jul 28 04:12:48 CEST 2003 i686 GNU/Linux
Architecture: i686

	
host: i386-pc-linux-gnu
build: i386-pc-linux-gnu
target: m68k-unknown-linux-gnu
configured with: ../src/configure -v --enable-languages=c --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --with-gxx-include-dir=/usr/m68k-linux/include/g++ --enable-shared --with-gnu-as --with-gnu-ld --with-system-zlib --enable-long-long --enable-nls --without-included-gettext --disable-checking --build=i386-linux --host=i386-linux --target=m68k-linux

How-To-Repeat:

$ m68k-linux-gcc --verbose -m68000 -c   test.c
Reading specs from /usr/lib/gcc-lib/m68k-linux/3.2.3/specs
Configured with: ../src/configure -v --enable-languages=c --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --with-gxx-include-dir=/usr/m68k-linux/include/g++ --enable-shared --with-gnu-as --with-gnu-ld --with-system-zlib --enable-long-long --enable-nls --without-included-gettext --disable-checking --build=i386-linux --host=i386-linux --target=m68k-linux
Thread model: posix
gcc version 3.2.3 20030221 (Debian prerelease)
 /usr/lib/gcc-lib/m68k-linux/3.2.3/cc1 -lang-c -v -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=3 -D__GXX_ABI_VERSION=102 -D__ELF__ -Dunix -Dmc68000 -Dmc68020 -D__gnu_linux__ -Dlinux -D__ELF__ -D__unix__ -D__mc68000__ -D__mc68020__ -D__gnu_linux__ -D__linux__ -D__unix -D__mc68000 -D__mc68020 -D__linux -Asystem=unix -Asystem=posix -Acpu=m68k -Amachine=m68k -D__NO_INLINE__ -D__STDC_HOSTED__=1 -D__HAVE_68881__ test.c -quiet -dumpbase test.c -m68000 -version -o /tmp/cc83F2pc.s
GNU CPP version 3.2.3 20030221 (Debian prerelease) (cpplib) (68k GNU/Linux with ELF)
GNU C version 3.2.3 20030221 (Debian prerelease) (m68k-linux)
        compiled by GNU C version 3.3.2 (Debian).
ignoring nonexistent directory "/usr/m68k-linux/sys-include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc-lib/m68k-linux/3.2.3/include
 /usr/m68k-linux/include
End of search list.
 /usr/lib/gcc-lib/m68k-linux/3.2.3/../../../../m68k-linux/bin/as -V -Qy -o test.o /tmp/cc83F2pc.s
GNU ensamblador versión 2.14.90.0.4 (m68k-linux) utilizando BFD versión 2.14.90.0.4 20030523

As you can see, theres no -m68000 flag passed to as
------- Additional Comments From alfonso_acosta_mail at yahoo dot es  2003-11-11 02:12 -------
Fix:
It could be easily solved by adding "%{m68000} %{mc68000:-m68000}" to the *asm 
line in the gcc spec file.

-- 
           Summary: m68000 flag ins't passed to the assembler
           Product: gcc
           Version: 3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: alfonso_acosta_mail at yahoo dot es
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i386-pc-linux-gnu
  GCC host triplet: i386-pc-linux-gnu
GCC target triplet: m68k-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13001


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