public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "amodra at bigpond dot net dot au" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/23704] gcc.dg/rs6000-fpint.c fails
Date: Wed, 07 Sep 2005 01:26:00 -0000	[thread overview]
Message-ID: <20050907012629.21967.qmail@sourceware.org> (raw)
In-Reply-To: <20050902224151.23704.rth@gcc.gnu.org>


------- Additional Comments From amodra at bigpond dot net dot au  2005-09-07 01:26 -------
Indeed, that is what is happening.  -m64 ought to normally imply
-mpowerpc-gfxopt, because all powerpc64 capable chips also support the insns
enabled by -mpowerpc-gfxopt as far as I know.  However, I guess there's not much
harm in preventing -m64 from overriding a prior -mno-powerpc-gfxopt.

Index: gcc/config/rs6000/rs6000.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000.c,v
retrieving revision 1.866
diff -u -p -r1.866 rs6000.c
--- gcc/config/rs6000/rs6000.c	6 Sep 2005 02:04:59 -0000	1.866
+++ gcc/config/rs6000/rs6000.c	7 Sep 2005 01:11:56 -0000
@@ -1620,9 +1620,9 @@ rs6000_handle_option (size_t code, const
 #else
     case OPT_m64:
 #endif
-      target_flags |= MASK_POWERPC64 | MASK_POWERPC | MASK_PPC_GFXOPT;
-      target_flags_explicit |= MASK_POWERPC64 | MASK_POWERPC
-	| MASK_PPC_GFXOPT;
+      target_flags |= MASK_POWERPC64 | MASK_POWERPC;
+      target_flags |= ~target_flags_explicit & MASK_PPC_GFXOPT;
+      target_flags_explicit |= MASK_POWERPC64 | MASK_POWERPC;
       break;
 
 #ifdef TARGET_USES_AIX64_OPT


-- 


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


  reply	other threads:[~2005-09-07  1:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-02 22:41 [Bug target/23704] New: " rth at gcc dot gnu dot org
2005-09-07  1:26 ` amodra at bigpond dot net dot au [this message]
2005-09-07  1:56 ` [Bug target/23704] " rth at gcc dot gnu dot org
2005-09-15 20:15 ` pinskia at gcc dot gnu dot org
     [not found] <bug-23704-119@http.gcc.gnu.org/bugzilla/>
2005-11-08  3:09 ` amodra at gcc dot gnu dot org
2005-11-08  3:15 ` amodra at bigpond dot net dot au
2005-11-08  3:17 ` amodra at bigpond dot net dot au

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=20050907012629.21967.qmail@sourceware.org \
    --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).