[Bug preprocessor/78169] internal compiler error: in get_substring_ranges_for_loc, at input.c:1379
arnd at linaro dot org
gcc-bugzilla@gcc.gnu.org
Thu Nov 24 16:27:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78169
Arnd Bergmann <arnd at linaro dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |arnd at linaro dot org
--- Comment #4 from Arnd Bergmann <arnd at linaro dot org> ---
Created attachment 40142
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40142&action=edit
preprocessed drivers/tty/nozomi.c from linux-4.9-rc5+next
I get the internal compiler error when I first preprocess the source, but not
when I build the same file directly:
$ /home/arnd/cross-gcc/bin/x86_64-linux-gcc-7.0.0 -Wall -O -Wno-pointer-sign -s
nozomi.i
/git/arm-soc/drivers/tty/nozomi.c: In function 'interrupt_handler':
/git/arm-soc/drivers/tty/nozomi.c:1157:20: internal compiler error: in
get_substring_ranges_for_loc, at input.c:1388
static irqreturn_t interrupt_handler(int irq, void *dev_id)
^~~~~~~~~~~~~~~~~
0x110f22f get_substring_ranges_for_loc
/home/arnd/git/gcc/gcc/input.c:1388
0x110f22f get_source_location_for_substring(cpp_reader*, string_concat_db*,
unsigned int, cpp_ttype, int, int, int, unsigned int*)
/home/arnd/git/gcc/gcc/input.c:1458
0x67230e c_get_substring_location(substring_loc const&, unsigned int*)
/home/arnd/git/gcc/gcc/c-family/c-common.c:865
0xa5ce8f substring_loc::get_location(unsigned int*) const
/home/arnd/git/gcc/gcc/substring-locations.c:194
0xa5ce8f format_warning_va(substring_loc const&, source_range const*, char
const*, int, char const*, __va_list_tag (*) [1])
/home/arnd/git/gcc/gcc/substring-locations.c:112
0xa5d1f4 format_warning_at_substring(substring_loc const&, source_range const*,
char const*, int, char const*, ...)
/home/arnd/git/gcc/gcc/substring-locations.c:179
0x1038159 add_bytes
/home/arnd/git/gcc/gcc/gimple-ssa-sprintf.c:2083
0x1038159 compute_format_length
/home/arnd/git/gcc/gcc/gimple-ssa-sprintf.c:2208
0x1038159 handle_gimple_call
/home/arnd/git/gcc/gcc/gimple-ssa-sprintf.c:2772
0x1038159 execute
/home/arnd/git/gcc/gcc/gimple-ssa-sprintf.c:2799
$ /home/arnd/cross-gcc/bin/x86_64-linux-gcc-7.0.0 --version
x86_64-linux-gcc-7.0.0 (GCC) 7.0.0 20161124 (experimental)
More information about the Gcc-bugs
mailing list