Hi

Using today's source via git and targeting i386-rtems4.11, the
build ends with this. I changed ASM_OUTPUT_ASCII in
gcc/config/i386/i386elf.h to use "const char *" instead of
"const unsigned char *" and the build continued.

Does that look to be the correct change? If so, I will
submit a patch for review

g++ -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -I. -I. -I/users/joel/test-gcc/gcc-git/gcc -I/users/joel/test-gcc/gcc-git/gcc/. -I/users/joel/test-gcc/gcc-git/gcc/../include -I/users/joel/test-gcc/gcc-git/gcc/../libcpp/include -I/users/joel/test-gcc/gcc-git/gcc/../libdecnumber -I/users/joel/test-gcc/gcc-git/gcc/../libdecnumber/dpd -I../libdecnumber /users/joel/test-gcc/gcc-git/gcc/dwarf2asm.c -o dwarf2asm.o
In file included from ./tm.h:20:0,
from /users/joel/test-gcc/gcc-git/gcc/dwarf2asm.c:25:
/users/joel/test-gcc/gcc-git/gcc/dwarf2asm.c: In function ‘void dw2_asm_output_nstring(const char*, size_t, const char*, ...)’: /users/joel/test-gcc/gcc-git/gcc/config/elfos.h:412:55: error: invalid conversion from ‘const unsigned char*’ to ‘const char*’ [-fpermissive]
default_elf_asm_output_limited_string ((FILE), (STR))
^
/users/joel/test-gcc/gcc-git/gcc/config/elfos.h:412:55: note: in expansion of macro 'ASM_OUTPUT_LIMITED_STRING'
default_elf_asm_output_limited_string ((FILE), (STR))
^
/users/joel/test-gcc/gcc-git/gcc/config/i386/i386elf.h:76:8: note: expanded from here
ASM_OUTPUT_LIMITED_STRING ((FILE), _ascii_bytes); \
^
/users/joel/test-gcc/gcc-git/gcc/config/i386/i386elf.h:76:8: note: in expansion of macro 'ASM_OUTPUT_ASCII'
ASM_OUTPUT_LIMITED_STRING ((FILE), _ascii_bytes); \
^
/users/joel/test-gcc/gcc-git/gcc/dwarf2asm.c:334:7: note: expanded from here
ASM_OUTPUT_ASCII (asm_out_file, str, len);
^

--
Joel Sherrill, Ph.D.             Director of Research&   Development
joel.sherr...@oarcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
    Support Available             (256) 722-9985


Reply via email to