gcc/
2012-02-10 Uros Bizjak <ubizjak@gmail.com>
PR target/52146
* config/i386/i386.c (ix86_legitimate_address_p): Disallow
negative constant address for x32.
gcc/testsuite/
2012-02-10 H.J. Lu <hongjiu.lu@intel.com>
PR target/52146
* gcc.target/i386/pr52146.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184111
138bc75d-0d04-0410-961f-
82ee72b054a4
+2012-02-10 Uros Bizjak <ubizjak@gmail.com>
+
+ PR target/52146
+ * config/i386/i386.c (ix86_legitimate_address_p): Disallow
+ negative constant address for x32.
+
2012-02-10 Richard Henderson <rth@redhat.com>
* tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
rtx base, index, disp;
HOST_WIDE_INT scale;
+ /* Since constant address in x32 is signed extended to 64bit,
+ we have to prevent addresses from 0x80000000 to 0xffffffff. */
+ if (TARGET_X32
+ && CONST_INT_P (addr)
+ && INTVAL (addr) < 0)
+ return false;
+
if (ix86_decompose_address (addr, &parts) <= 0)
/* Decomposition failed. */
return false;
+2012-02-10 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR target/52146
+ * gcc.target/i386/pr52146.c: New.
+
2012-02-10 Jakub Jelinek <jakub@redhat.com>
PR middle-end/52177