public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/82469] ICE in _cpp_process_line_notes, at libcpp/lex.c:1066
       [not found] <bug-82469-4@http.gcc.gnu.org/bugzilla/>
@ 2021-09-20 21:39 ` pinskia at gcc dot gnu.org
  2021-09-22 11:00 ` heiko at hexco dot de
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-20 21:39 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82469

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I cannot even reproduce this on the FSF released GCC 6.3.0 code ...

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug preprocessor/82469] ICE in _cpp_process_line_notes, at libcpp/lex.c:1066
       [not found] <bug-82469-4@http.gcc.gnu.org/bugzilla/>
  2021-09-20 21:39 ` [Bug preprocessor/82469] ICE in _cpp_process_line_notes, at libcpp/lex.c:1066 pinskia at gcc dot gnu.org
@ 2021-09-22 11:00 ` heiko at hexco dot de
  2021-10-26  9:26 ` pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: heiko at hexco dot de @ 2021-09-22 11:00 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82469

--- Comment #2 from Heiko Eißfeldt <heiko at hexco dot de> ---
I took me a while to find a platform of mine where I got this error.

Right now it happens here as well:

Message:
cpp --traditional -ffreestanding -P gcc_82469.c 
<built-in>: internal compiler error: in _cpp_process_line_notes, at
libcpp/lex.c:1163

OS:
Raspberry Pi, 32-Bit, Linux

uname -a
Linux raspberrypi 5.10.17-v7l+ #1421 SMP Thu May 27 14:00:13 BST 2021 armv7l
GNU/Linux

file /usr/bin/arm-linux-gnueabihf-cpp-8:
/usr/bin/arm-linux-gnueabihf-cpp-8: ELF 32-bit LSB executable, ARM, EABI5
version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for
GNU/Linux 3.2.0, BuildID[sha1]=f4424fc857eedcaef7da81cf953c3ae2788523e7,
stripped

gcc --version
gcc (Raspbian 8.3.0-6+rpi1) 8.3.0

cpp --version
cpp (Raspbian 8.3.0-6+rpi1) 8.3.0

Hardware is a Raspberry Pi Model 4 with 4GB.

Thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug preprocessor/82469] ICE in _cpp_process_line_notes, at libcpp/lex.c:1066
       [not found] <bug-82469-4@http.gcc.gnu.org/bugzilla/>
  2021-09-20 21:39 ` [Bug preprocessor/82469] ICE in _cpp_process_line_notes, at libcpp/lex.c:1066 pinskia at gcc dot gnu.org
  2021-09-22 11:00 ` heiko at hexco dot de
@ 2021-10-26  9:26 ` pinskia at gcc dot gnu.org
  2021-10-27 17:44 ` acoplan at gcc dot gnu.org
  2021-10-28  8:46 ` acoplan at gcc dot gnu.org
  4 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-10-26  9:26 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82469

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Let me see if I can reproduce it on aarch64.  It might be some bug in the hand
vectorized code.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug preprocessor/82469] ICE in _cpp_process_line_notes, at libcpp/lex.c:1066
       [not found] <bug-82469-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2021-10-26  9:26 ` pinskia at gcc dot gnu.org
@ 2021-10-27 17:44 ` acoplan at gcc dot gnu.org
  2021-10-28  8:46 ` acoplan at gcc dot gnu.org
  4 siblings, 0 replies; 5+ messages in thread
From: acoplan at gcc dot gnu.org @ 2021-10-27 17:44 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82469

Alex Coplan <acoplan at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |acoplan at gcc dot gnu.org

--- Comment #4 from Alex Coplan <acoplan at gcc dot gnu.org> ---
I can reproduce this with the system compiler (GCC 7) on an arm-linux-gnueabihf
host FWIW. Trying with a trunk build now

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug preprocessor/82469] ICE in _cpp_process_line_notes, at libcpp/lex.c:1066
       [not found] <bug-82469-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2021-10-27 17:44 ` acoplan at gcc dot gnu.org
@ 2021-10-28  8:46 ` acoplan at gcc dot gnu.org
  4 siblings, 0 replies; 5+ messages in thread
From: acoplan at gcc dot gnu.org @ 2021-10-28  8:46 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82469

Alex Coplan <acoplan at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |12.0
   Last reconfirmed|                            |2021-10-28
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

--- Comment #5 from Alex Coplan <acoplan at gcc dot gnu.org> ---
Confirmed on trunk with an x86_64-linux-gnu -> aarch64-linux-gnu cross. Here is
a backtrace:

(gdb) bt
#0  fancy_abort (file=0x2e0a270
"/home/alecop01/toolchain/src/gcc/libcpp/lex.c", line=1163, function=0x2e0ad60
<_cpp_process_line_notes::__FUNCTION__> "_cpp_process_line_notes") at
/home/alecop01/toolchain/src/gcc/gcc/diagnostic.c:1972
#1  0x00000000027cb2a3 in _cpp_process_line_notes (pfile=0x35b1840,
in_comment=1) at /home/alecop01/toolchain/src/gcc/libcpp/lex.c:1163
#2  0x00000000027cb3da in _cpp_skip_block_comment (pfile=0x35b1840) at
/home/alecop01/toolchain/src/gcc/libcpp/lex.c:1211
#3  0x00000000027cfad3 in _cpp_lex_direct (pfile=0x35b1840) at
/home/alecop01/toolchain/src/gcc/libcpp/lex.c:3111
#4  0x00000000027cf18a in _cpp_lex_token (pfile=0x35b1840) at
/home/alecop01/toolchain/src/gcc/libcpp/lex.c:2810
#5  0x00000000027dd468 in cpp_get_token_1 (pfile=0x35b1840,
location=0x7fffffffad00) at
/home/alecop01/toolchain/src/gcc/libcpp/macro.c:2898
#6  0x00000000027ddc76 in cpp_get_token_with_location (pfile=0x35b1840,
loc=0x7fffffffad00) at /home/alecop01/toolchain/src/gcc/libcpp/macro.c:3167
#7  0x00000000027c1b9a in _cpp_parse_expr (pfile=0x35b1840, is_if=true) at
/home/alecop01/toolchain/src/gcc/libcpp/expr.c:1334
#8  0x00000000027bc836 in do_if (pfile=0x35b1840) at
/home/alecop01/toolchain/src/gcc/libcpp/directives.c:2059
#9  0x00000000027b9356 in _cpp_handle_directive (pfile=0x35b1840,
indented=false) at /home/alecop01/toolchain/src/gcc/libcpp/directives.c:557
#10 0x00000000027e62b6 in _cpp_scan_out_logical_line (pfile=0x35b1840,
macro=0x0, builtin_macro_arg=false) at
/home/alecop01/toolchain/src/gcc/libcpp/traditional.c:776
#11 0x00000000027e4f6a in _cpp_read_logical_line_trad (pfile=0x35b1840) at
/home/alecop01/toolchain/src/gcc/libcpp/traditional.c:321
#12 0x0000000000c181ce in scan_translation_unit_trad (pfile=0x35b1840) at
/home/alecop01/toolchain/src/gcc/gcc/c-family/c-ppoutput.c:420
#13 0x0000000000c175c0 in preprocess_file (pfile=0x35b1840) at
/home/alecop01/toolchain/src/gcc/gcc/c-family/c-ppoutput.c:97
#14 0x0000000000c15473 in c_common_init () at
/home/alecop01/toolchain/src/gcc/gcc/c-family/c-opts.c:1214
#15 0x0000000000b39284 in c_objc_common_init () at
/home/alecop01/toolchain/src/gcc/gcc/c/c-objc-common.c:64
#16 0x0000000001421e81 in lang_dependent_init (name=0x3615d10 "pr.c") at
/home/alecop01/toolchain/src/gcc/gcc/toplev.c:1844
#17 0x000000000142270b in do_compile (no_backend=true) at
/home/alecop01/toolchain/src/gcc/gcc/toplev.c:2139
#18 0x0000000001422b70 in toplev::main (this=0x7fffffffb1e2, argc=19,
argv=0x7fffffffb2e8) at /home/alecop01/toolchain/src/gcc/gcc/toplev.c:2306
#19 0x000000000274293c in main (argc=19, argv=0x7fffffffb2e8) at
/home/alecop01/toolchain/src/gcc/gcc/main.c:39
(gdb) p *note
$6 = {pos = 0x3616170 "A 1\n#endif\n\n", type = 10}

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-10-28  8:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-82469-4@http.gcc.gnu.org/bugzilla/>
2021-09-20 21:39 ` [Bug preprocessor/82469] ICE in _cpp_process_line_notes, at libcpp/lex.c:1066 pinskia at gcc dot gnu.org
2021-09-22 11:00 ` heiko at hexco dot de
2021-10-26  9:26 ` pinskia at gcc dot gnu.org
2021-10-27 17:44 ` acoplan at gcc dot gnu.org
2021-10-28  8:46 ` acoplan at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).