From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29630 invoked by alias); 21 Jul 2011 17:24:35 -0000 Received: (qmail 29616 invoked by uid 22791); 21 Jul 2011 17:24:34 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_FD X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 21 Jul 2011 17:24:20 +0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/49798] .quad instead of .long is used for address for x32 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Thu, 21 Jul 2011 17:24:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-07/txt/msg01773.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49798 --- Comment #15 from H.J. Lu 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] )) 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]$