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/37878] New: PPC64 ldu command generated with invalid offset


With this compiler:

[descartes:gcc/objdirs/gambc-v4_1_2] lucier% /pkgs/gcc-4.4.0-64/bin/gcc -v
Using built-in specs.
Target: powerpc64-apple-darwin9.5.0
Configured with: ../../mainline/configure CC='/usr/bin/gcc-4.0 -mcpu=970 -m64'
--disable-werror --build=powerpc64-apple-darwin9.5.0
--host=powerpc64-apple-darwin9.5.0 --target=powerpc64-apple-darwin9.5.0
--with-gmp-include=/sw/include/ --with-gmp-lib=/sw/lib/ppc64
--with-mpfr-include=/sw/include/ --with-mpfr-lib=/sw/lib/ppc64
--prefix=/pkgs/gcc-4.4.0-64 --with-libiconv-prefix=/usr --with-system-zlib
Thread model: posix
gcc version 4.4.0 20081020 (experimental) [trunk revision 141240] (GCC) 

I get this error:

[descartes:gcc/objdirs/gambc-v4_1_2] lucier% /pkgs/gcc-4.4.0-64/bin/gcc
-save-temps -mcpu=970 -m64 -I../include -I. -no-cpp-precomp -Wall -W
-Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math
-fno-strict-aliasing -fwrapv -fomit-frame-pointer -fPIC -fno-common
-DHAVE_CONFIG_H -D___PRIMAL -D___LIBRARY -c assemtest.i
gcc: unrecognized option '-no-cpp-precomp'
assemtest.s:69:Parameter error: expression must be a multiple of 4 (parameter
2)

The offending assembler command is

        ldu r0,7(r9)

I'll include assemtest.i; the code itself is about 50 lines of
machine-generated C code, plus a lot of declarations so I could get it to
compile separately.


-- 
           Summary: PPC64 ldu command generated with invalid offset
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: lucier at math dot purdue dot edu
 GCC build triplet: powerpc64-apple-darwin9.5.0
  GCC host triplet: powerpc64-apple-darwin9.5.0
GCC target triplet: powerpc64-apple-darwin9.5.0


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


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