public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "hjl dot tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/45213] "suffix or operands invalid for `push'" triggered by optimisations on x86_64
Date: Fri, 06 Aug 2010 22:10:00 -0000	[thread overview]
Message-ID: <20100806221016.32362.qmail@sourceware.org> (raw)
In-Reply-To: <bug-45213-17046@http.gcc.gnu.org/bugzilla/>



------- Comment #6 from hjl dot tools at gmail dot com  2010-08-06 22:10 -------
This patch:

diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 204211a..3dfbede 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -12921,7 +12921,7 @@ ix86_print_operand (FILE *file, rtx x, int code)

       if (ASSEMBLER_DIALECT == ASM_ATT)
   putc ('$', file);
-      fprintf (file, "0x%08lx", (long unsigned int) l);
+      fprintf (file, "0x%08lx", (long) (int) l);
     }

   /* These float cases don't actually occur as immediate operands.  */

works for me.


-- 


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


  parent reply	other threads:[~2010-08-06 22:10 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-06 20:36 [Bug target/45213] New: " philip dot taylor at cl dot cam dot ac dot uk
2010-08-06 20:37 ` [Bug target/45213] " philip dot taylor at cl dot cam dot ac dot uk
2010-08-06 20:44 ` pinskia at gcc dot gnu dot org
2010-08-06 20:53 ` ubizjak at gmail dot com
2010-08-06 21:02 ` hjl dot tools at gmail dot com
2010-08-06 21:51 ` hjl dot tools at gmail dot com
2010-08-06 22:10 ` hjl dot tools at gmail dot com [this message]
2010-08-06 22:39 ` hjl dot tools at gmail dot com
2010-08-07 20:32 ` uros at gcc dot gnu dot org
     [not found] <bug-45213-4@http.gcc.gnu.org/bugzilla/>
2012-03-15  8:58 ` pinskia at gcc dot gnu.org

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=20100806221016.32362.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).