i386elf.h (ASM_OUTPUT_ASCII): Cast _ascii_bytes before passing it to ASM_OUTPUT_LIMIT...
authorNick Clifton <nickc@redhat.com>
Thu, 16 Aug 2012 10:41:44 +0000 (10:41 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Thu, 16 Aug 2012 10:41:44 +0000 (10:41 +0000)
* config/i386/i386elf.h (ASM_OUTPUT_ASCII): Cast _ascii_bytes
before passing it to ASM_OUTPUT_LIMITED_STRING.

From-SVN: r190441

gcc/ChangeLog
gcc/config/i386/i386elf.h

index 671c987..b6484b1 100644 (file)
@@ -1,5 +1,8 @@
 2012-08-16  Nick Clifton  <nickc@redhat.com>
 
+       * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Cast _ascii_bytes
+       before passing it to ASM_OUTPUT_LIMITED_STRING.
+
        * config/bfin/bfin.c (hwloop_optimize): Fix use of VEC_last macro.
 
        * config/avr/t-avr: Replace occurrences of $(CC) with $(COMPILER).
index 1bf3feb..78920a9 100644 (file)
@@ -73,7 +73,7 @@ along with GCC; see the file COPYING3.  If not see
                  fputc ('\n', (FILE));                                 \
                  bytes_in_chunk = 0;                                   \
                }                                                       \
-             ASM_OUTPUT_LIMITED_STRING ((FILE), _ascii_bytes);         \
+             ASM_OUTPUT_LIMITED_STRING ((FILE), (const char *) _ascii_bytes); \
              _ascii_bytes = p;                                         \
            }                                                           \
          else                                                          \