public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "lucier at math dot purdue dot edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/37878]  New: PPC64 ldu command generated with invalid offset
Date: Tue, 21 Oct 2008 00:32:00 -0000	[thread overview]
Message-ID: <bug-37878-271@http.gcc.gnu.org/bugzilla/> (raw)

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


             reply	other threads:[~2008-10-21  0:32 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-21  0:32 lucier at math dot purdue dot edu [this message]
2008-10-21  0:33 ` [Bug target/37878] " lucier at math dot purdue dot edu
2008-10-21  0:34 ` lucier at math dot purdue dot edu
2008-10-21  8:37 ` schwab at suse dot de
2008-10-21  8:40 ` [Bug target/37878] [4.4 regression] " schwab at suse dot de
2008-10-21  9:56 ` jakub at gcc dot gnu dot org
2008-10-21 14:54 ` dje at gcc dot gnu dot org
2008-10-21 15:12 ` jakub at gcc dot gnu dot org
2008-10-21 15:16 ` dje at gcc dot gnu dot org
2008-10-22  3:33 ` mmitchel at gcc dot gnu dot org
2008-10-22 11:35 ` jakub at gcc dot gnu dot org
2008-10-23 19:22 ` lucier at math dot purdue dot edu
2008-10-23 21:26 ` lucier at math dot purdue dot edu
2008-10-28 22:37 ` dje at gcc dot gnu dot org
2008-10-28 23:15 ` dje at gcc dot gnu dot org
2008-10-29  8:33 ` jakub at gcc dot gnu dot org
2008-10-29 23:33 ` dje at gcc dot gnu dot org
2008-10-30  0:02 ` lucier at math dot purdue dot edu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-37878-271@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).