@@ -1,5 +1,11 @@
2011-01-25 H.J. Lu <hongjiu.lu@intel.com>
+ PR target/47446
+ * config/i386/i386.c (ix86_output_addr_diff_elt): Put back the
+ last TARGET_64BIT check.
+
+2011-01-25 H.J. Lu <hongjiu.lu@intel.com>
+
PR middle-end/47449
* fwprop.c (forward_propagate_subreg): Don't propagate hard
register.
@@ -15217,7 +15217,7 @@ ix86_output_addr_diff_elt (FILE *file, int value, int rel)
gcc_assert (!TARGET_64BIT);
#endif
/* We can't use @GOTOFF for text labels on VxWorks; see gotoff_operand. */
- if (TARGET_LP64 || TARGET_VXWORKS_RTP)
+ if (TARGET_64BIT || TARGET_VXWORKS_RTP)
fprintf (file, "%s%s%d-%s%d\n",
directive, LPREFIX, value, LPREFIX, rel);
else if (HAVE_AS_GOTOFF_IN_DATA)
@@ -1,3 +1,8 @@
+2011-01-25 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR target/47446
+ * gcc.target/i386/pr47446-2.c: New.
+
2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
PR middle-end/47449
new file mode 100644
@@ -0,0 +1,41 @@
+/* { dg-do assemble } */
+/* { dg-require-effective-target fpic } */
+/* { dg-options "-O2 -fpic" } */
+
+extern void abort (void);
+enum
+{
+ __GCONV_OK = 0,
+ __GCONV_NOCONV,
+ __GCONV_NODB,
+ __GCONV_NOMEM,
+ __GCONV_EMPTY_INPUT,
+ __GCONV_FULL_OUTPUT,
+ __GCONV_ILLEGAL_INPUT,
+ __GCONV_INCOMPLETE_INPUT,
+ __GCONV_ILLEGAL_DESCRIPTOR,
+ __GCONV_INTERNAL_ERROR
+};
+int
+foo (int result)
+{
+ int irreversible = 0;
+ switch (result)
+ {
+ case __GCONV_ILLEGAL_INPUT:
+ irreversible = -1L;
+ break;
+ case __GCONV_FULL_OUTPUT:
+ irreversible = -2L;
+ break;
+ case __GCONV_INCOMPLETE_INPUT:
+ irreversible = -3L;
+ break;
+ case __GCONV_EMPTY_INPUT:
+ case __GCONV_OK:
+ break;
+ default:
+ abort ();
+ }
+ return irreversible;
+}