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/33730] New: [4.2 regression] Illegal instruction with build/genmddeps with PPC405 build on powerpc


I'm seeing the following bootstrap error with 4.2:

build/genmddeps ../gcc-4.2/gcc/config/rs6000/rs6000.md > tmp-mddeps
/bin/sh: line 1:  3635 Illegal instruction     build/genmddeps
../gcc-4.2/gcc/config/rs6000/rs6000.md >tmp-mddeps
make[3]: *** [s-mddeps] Error 132

I'm trying to build a GCC that will generate code for PPC405 but I'm doing
this on a powerpc box that doesn't have a PPC405 CPU.  From my understanding
of the docs, --with-cpu creates a compiler for a specific CPU but you can
generate this GCC on a machine with a different CPU.  This also works with
4.1 and 4.3, but gives the "Illegal instruction" error above with 4.2.

I configured with:

../gcc-4.2/configure -v \
         --enable-languages=c \
         --disable-multilib \
         --disable-werror \
         --with-cpu=405 \
         --build=powerpc-linux-gnu \
         --host=powerpc-linux-gnu \
         --target=powerpc-linux-gnu

When I drop the --with-cpu=405 option it works, but from my reading of the
docs this should work.


-- 
           Summary: [4.2 regression] Illegal instruction with
                    build/genmddeps with PPC405 build on powerpc
           Product: gcc
           Version: 4.2.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tbm at cyrius dot com
GCC target triplet: powerpc-linux-gnu


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


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