OSDN Git Service

* varasm.c (default_assemble_integer): Return false for values wider
authorpbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Sep 2004 23:40:21 +0000 (23:40 +0000)
committerpbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Sep 2004 23:40:21 +0000 (23:40 +0000)
than the target word size.  Works around GAS bug.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87827 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/varasm.c

index fd4e652..fd9c3e7 100644 (file)
@@ -1,3 +1,8 @@
+2004-09-21  Paul Brook  <paul@codesourcery.com>
+
+       * varasm.c (default_assemble_integer): Return false for values wider
+       than the target word size.  Works around GAS bug.
+
 2004-09-21  Zack Weinberg  <zack@codesourcery.com>
 
        * reg-notes.def (REG_DEP_TRUE): New entry, place first so it
index 5bb96c6..8a607f5 100644 (file)
@@ -2008,6 +2008,9 @@ default_assemble_integer (rtx x ATTRIBUTE_UNUSED,
                          int aligned_p ATTRIBUTE_UNUSED)
 {
   const char *op = integer_asm_op (size, aligned_p);
+  /* Avoid GAS bugs for values > word size.  */
+  if (size > UNITS_PER_WORD)
+    return false;
   return op && (assemble_integer_with_op (op, x), true);
 }