From ca9b1cd87255144e5b7a063e5571f0e698dd9702 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 16 Aug 2012 10:41:44 +0000 Subject: [PATCH] i386elf.h (ASM_OUTPUT_ASCII): Cast _ascii_bytes before passing it to ASM_OUTPUT_LIMITED_STRING. * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Cast _ascii_bytes before passing it to ASM_OUTPUT_LIMITED_STRING. From-SVN: r190441 --- gcc/ChangeLog | 3 +++ gcc/config/i386/i386elf.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 671c98789a8..b6484b11424 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2012-08-16 Nick Clifton + * 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). diff --git a/gcc/config/i386/i386elf.h b/gcc/config/i386/i386elf.h index 1bf3feb7479..78920a9f479 100644 --- a/gcc/config/i386/i386elf.h +++ b/gcc/config/i386/i386elf.h @@ -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 \ -- 2.30.2