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 middle-end/47727] [x32] Many passes can't handle const symbol when Pmode != ptr_mode Date: Mon, 14 Feb 2011 17:31:00 -0000 [thread overview] Message-ID: <bug-47727-4-ZMBGo30ygN@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-47727-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47727 --- Comment #8 from H.J. Lu <hjl.tools at gmail dot com> 2011-02-14 17:24:56 UTC --- The problem may be in convert_memory_address_addr_space: case PLUS: case MULT: /* For addition we can safely permute the conversion and addition operation if one operand is a constant and converting the constant does not change it or if one operand is a constant and we are using a ptr_extend instruction (POINTERS_EXTEND_UNSIGNED < 0). We can always safely permute them if we are making the address narrower. */ if (GET_MODE_SIZE (to_mode) < GET_MODE_SIZE (from_mode) || (GET_CODE (x) == PLUS && CONST_INT_P (XEXP (x, 1)) && (XEXP (x, 1) == convert_memory_address_addr_space (to_mode, XEXP (x, 1), as) || POINTERS_EXTEND_UNSIGNED < 0))) return gen_rtx_fmt_ee (GET_CODE (x), to_mode, convert_memory_address_addr_space (to_mode, XEXP (x, 0), as), XEXP (x, 1)); It will generate new instructions for (plus:SI (symbol_ref:SI ("__CTOR_END__") [flags 0x2] <var_decl 0x7ffff0cf0000 __CTOR_END__>) (const_int -4 [0xfffffffffffffffc])) since (const_int -4 [0xfffffffffffffffc]) is converted to (const_int 4294967292 [0xfffffffc])
next prev parent reply other threads:[~2011-02-14 17:25 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-02-14 3:37 [Bug target/47727] New: [x32] internal compiler error: Segmentation fault hjl.tools at gmail dot com 2011-02-14 3:54 ` [Bug target/47727] " hjl.tools at gmail dot com 2011-02-14 4:19 ` hjl.tools at gmail dot com 2011-02-14 6:16 ` hjl.tools at gmail dot com 2011-02-14 6:38 ` [Bug middle-end/47727] [x32] Many passes can't handle const symbol when Pmode != ptr_mode hjl.tools at gmail dot com 2011-02-14 13:58 ` hjl.tools at gmail dot com 2011-02-14 14:28 ` rguenther at suse dot de 2011-02-14 14:52 ` hjl.tools at gmail dot com 2011-02-14 17:31 ` hjl.tools at gmail dot com [this message] 2011-02-14 19:02 ` hjl at gcc dot gnu.org 2011-07-14 22:51 ` hjl at gcc dot gnu.org 2011-07-28 9:23 ` ubizjak at gmail dot com 2011-08-06 14:52 ` hjl at gcc dot gnu.org 2011-08-08 15:57 ` 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-47727-4-ZMBGo30ygN@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: linkBe 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).