public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: d.mueller@elsoft.ch
To: gcc-gnats@gcc.gnu.org
Subject: other/7085: Wrong assembler cpu selection entries for PPC 4xx in spec file
Date: Thu, 20 Jun 2002 04:56:00 -0000	[thread overview]
Message-ID: <20020620115211.12685.qmail@sources.redhat.com> (raw)


>Number:         7085
>Category:       other
>Synopsis:       Wrong assembler cpu selection entries for PPC 4xx in spec file
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 20 04:56:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     d.mueller@elsoft.ch
>Release:        gcc-3.1
>Organization:
>Environment:
ix86-linux -> powerpc-linux cross compiler, powerpc-linux native compiler
>Description:
The "*asm_cpu" clause of the spec file defines wrong assembler cpu seletion options for (at least) PPC403 and PPC405 (-mppc instead of -m403 / -m405). This results in an error message from the assembler while compiling files containing PPC4xx specific opcodes. 
>How-To-Repeat:
$> powerpc-linux-gcc -v -mcpu=405 -c ct.S
Reading specs from /usr/local/lib/gcc-lib/powerpc-linux/3.1/specs
Configured with: ../gcc-3.1/configure -v --target=powerpc-linux --prefix=/usr/local --enable-shared --disable-static --enable-languages=c,c++ --with-cpu=405 --enable-threads --with-gnu-as --with-as=/usr/local/bin/powerpc-linux-as --with-gnu-ld --with-ld=/usr/local/bin/powerpc-linux-ld
Thread model: posix
gcc version 3.1
 /usr/local/lib/gcc-lib/powerpc-linux/3.1/cpp0 -lang-asm -v -D__GNUC__=3 -D__GNUC_MINOR__=1 -D__GNUC_PATCHLEVEL__=0 -DPPC -D__ELF__ -Dpowerpc -D__PPC__ -D__ELF__ -D__powerpc__ -D__PPC -D__powerpc -Acpu=powerpc -Amachine=powerpc -D__NO_INLINE__ -D__STDC_HOSTED__=1 -D_CALL_SYSV -D_SOFT_FLOAT -D_BIG_ENDIAN -D__BIG_ENDIAN__ -Amachine=bigendian -D_ARCH_PPC -D__unix__ -D__gnu_linux__ -D__linux__ -Dunix -D__unix -Dlinux -D__linux -Asystem=unix -Asystem=posix ct.S -o /tmp/ccUbGAkx.s
GNU CPP version 3.1 (cpplib) (PowerPC GNU/Linux)
ignoring nonexistent directory "/usr/local/powerpc-linux/sys-include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/lib/gcc-lib/powerpc-linux/3.1/include
 /usr/local/powerpc-linux/include
End of search list.
 /usr/local/bin/powerpc-linux-as -mppc -V -Qy -o ct.o /tmp/ccUbGAkx.s
GNU assembler version 2.12.1 (powerpc-linux) using BFD version 2.12.1
ct.S: Assembler messages:
ct.S:1: Error: Unrecognized opcode: `mttcr'
ct.S:2: Error: Unrecognized opcode: `mtdbsr'
ct.S:3: Error: Unrecognized opcode: `mtexisr'
ct.S:4: Error: Unrecognized opcode: `mtiocr'
ct.S:5: Error: Unrecognized opcode: `iccci'
ct.S:6: Error: Unrecognized opcode: `dccci'
ct.S:7: Error: Unrecognized opcode: `mticcr'
ct.S:8: Error: Unrecognized opcode: `mtdccr'

$> powerpc-linux-gcc -v -mcpu=405 -c -Wa,-m405 ct.S
Reading specs from /usr/local/lib/gcc-lib/powerpc-linux/3.1/specs
Configured with: ../gcc-3.1/configure -v --target=powerpc-linux --prefix=/usr/local --enable-shared --disable-static --enable-languages=c,c++ --with-cpu=405 --enable-threads --with-gnu-as --with-as=/usr/local/bin/powerpc-linux-as --with-gnu-ld --with-ld=/usr/local/bin/powerpc-linux-ld
Thread model: posix
gcc version 3.1
 /usr/local/lib/gcc-lib/powerpc-linux/3.1/cpp0 -lang-asm -v -D__GNUC__=3 -D__GNUC_MINOR__=1 -D__GNUC_PATCHLEVEL__=0 -DPPC -D__ELF__ -Dpowerpc -D__PPC__ -D__ELF__ -D__powerpc__ -D__PPC -D__powerpc -Acpu=powerpc -Amachine=powerpc -D__NO_INLINE__ -D__STDC_HOSTED__=1 -D_CALL_SYSV -D_SOFT_FLOAT -D_BIG_ENDIAN -D__BIG_ENDIAN__ -Amachine=bigendian -D_ARCH_PPC -D__unix__ -D__gnu_linux__ -D__linux__ -Dunix -D__unix -Dlinux -D__linux -Asystem=unix -Asystem=posix ct.S -o /tmp/cctywKsd.s
GNU CPP version 3.1 (cpplib) (PowerPC GNU/Linux)
ignoring nonexistent directory "/usr/local/powerpc-linux/sys-include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/lib/gcc-lib/powerpc-linux/3.1/include
 /usr/local/powerpc-linux/include
End of search list.
 /usr/local/bin/powerpc-linux-as -mppc -V -Qy -m405 -o ct.o /tmp/cctywKsd.s
GNU assembler version 2.12.1 (powerpc-linux) using BFD version 2.12.1
>Fix:
Temporary work around: Specify assembler cpu selection option directly using "-Wa" option of GCC.

Final fix: Adjust entries in the "*asm_cpu" clause of the spec file to correctly honor the user specify cpu type.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="ct.S"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="ct.S"

CW10dGNyCTMNCgltdGRic3IJMw0KCW10ZXhpc3IgMw0KCW10aW9jcgkzDQoJaWNjY2kJNCwzDQoJ
ZGNjY2kJNCwzDQoJbXRpY2NyCTMNCgltdGRjY3IJMw0KCQ0KCQ0KDQoNCg==


             reply	other threads:[~2002-06-20 11:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-20  4:56 d.mueller [this message]
2002-07-07 21:53 dje

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=20020620115211.12685.qmail@sources.redhat.com \
    --to=d.mueller@elsoft.ch \
    --cc=gcc-gnats@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).