public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/49798] .quad instead of .long is used for address for x32
Date: Thu, 21 Jul 2011 17:24:00 -0000	[thread overview]
Message-ID: <bug-49798-4-jDDuSSW1h6@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-49798-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #15 from H.J. Lu <hjl.tools at gmail dot com> 2011-07-21 17:24:01 UTC ---
Another example:

[hjl@gnu-6 pr49798]$ cat y.i
union U
{
  int *m;
  long long d;
};
extern int xxxx;
long long
foo ()
{
  union U v = { &xxxx};
  return v.d;
}
[hjl@gnu-6 pr49798]$ /export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc/build-x86_64-linux/gcc/ -S -o y.s -mx32 -O -msse4   y.i
-da
[hjl@gnu-6 pr49798]$ cat y.s
    .file    "y.i"
    .text
    .globl    foo
    .type    foo, @function
foo:
.LFB0:
    .cfi_startproc
    movl    $xxxx, %eax
    ret
    .cfi_endproc
.LFE0:
    .size    foo, .-foo
    .ident    "GCC: (GNU) 4.7.0 20110720 (experimental)"
    .section    .note.GNU-stack,"",@progbits
[hjl@gnu-6 pr49798]$ cat y.i.223r.final

;; Function foo (foo, funcdef_no=0, decl_uid=1711, cgraph_uid=0)

(note 1 0 3 NOTE_INSN_DELETED)

(note 3 1 24 2 [bb 2] NOTE_INSN_BASIC_BLOCK)

(note 24 3 2 2 NOTE_INSN_PROLOGUE_END)

(note 2 24 17 2 NOTE_INSN_FUNCTION_BEG)

(insn 17 2 20 2 (set (reg/i:DI 0 ax)
        (symbol_ref:DI ("xxxx") [flags 0x40]  <var_decl 0x7ffdb52bb140 xxxx>))
y.i:12 62 {*movdi_internal_rex64}
     (nil))

(insn 20 17 25 2 (use (reg/i:DI 0 ax)) y.i:12 -1
     (nil))

(note 25 20 26 2 NOTE_INSN_EPILOGUE_BEG)

(jump_insn 26 25 27 2 (return) y.i:12 645 {return_internal}
     (nil))

(barrier 27 26 23)

(note 23 27 0 NOTE_INSN_DELETED)
[hjl@gnu-6 pr49798]$


  parent reply	other threads:[~2011-07-21 17:24 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-20 22:44 [Bug middle-end/49798] New: " hjl.tools at gmail dot com
2011-07-21  0:56 ` [Bug middle-end/49798] " hjl.tools at gmail dot com
2011-07-21  1:07 ` [Bug target/49798] " hjl.tools at gmail dot com
2011-07-21 10:26 ` ubizjak at gmail dot com
2011-07-21 13:10 ` hjl.tools at gmail dot com
2011-07-21 13:31 ` ubizjak at gmail dot com
2011-07-21 14:03 ` hjl.tools at gmail dot com
2011-07-21 15:54 ` hjl.tools at gmail dot com
2011-07-21 16:03 ` hjl.tools at gmail dot com
2011-07-21 16:26 ` ubizjak at gmail dot com
2011-07-21 16:33 ` hjl.tools at gmail dot com
2011-07-21 16:37 ` ubizjak at gmail dot com
2011-07-21 16:47 ` ubizjak at gmail dot com
2011-07-21 17:16 ` hjl.tools at gmail dot com
2011-07-21 17:19 ` hjl.tools at gmail dot com
2011-07-21 17:24 ` hjl.tools at gmail dot com [this message]
2011-07-21 20:00 ` hjl.tools at gmail dot com
2011-07-21 20:13 ` ubizjak at gmail dot com
2011-07-22 11:55 ` hjl.tools at gmail dot com

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-49798-4-jDDuSSW1h6@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).