public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/97471] New: ICE on using function-like macro as a non function-like macro
@ 2020-10-17 16:21 gabravier at gmail dot com
2020-10-19 7:26 ` [Bug preprocessor/97471] [11 Regression] ICE on using function-like macro as a non function-like macro since r11-338-g2a0225e47868fbfc marxin at gcc dot gnu.org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: gabravier at gmail dot com @ 2020-10-17 16:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97471
Bug ID: 97471
Summary: ICE on using function-like macro as a non
function-like macro
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: preprocessor
Assignee: unassigned at gcc dot gnu.org
Reporter: gabravier at gmail dot com
Target Milestone: ---
#define a() b
a
This crashes GCC's preprocessor on current trunk (as of the 16th), with this
message :
<source>:2:1: internal compiler error: Segmentation fault
2 | a
| ^
0x19720a9 internal_error(char const*, ...)
???:0
0x19b406f _cpp_lex_direct
???:0
0x19b5ab5 _cpp_lex_token
???:0
0x77c4c0 c_lex_with_flags(tree_node**, unsigned int*, unsigned char*, int)
???:0
0x6eb1ae c_parser_peek_2nd_token(c_parser*)
???:0
0x721b39 c_parse_file()
???:0
0x78bdf2 c_common_parse_file()
???:0
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Compiler returned: 1
GCC -v output :
Using built-in specs.
COLLECT_GCC=/opt/compiler-explorer/gcc-snapshot/bin/gcc
Target: x86_64-linux-gnu
Configured with: ../gcc-trunk-20201017/configure
--prefix=/opt/compiler-explorer/gcc-build/staging --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu --disable-bootstrap
--enable-multiarch --with-abi=m64 --with-multilib-list=m32,m64,mx32
--enable-multilib --enable-clocale=gnu --enable-languages=c,c++,fortran,ada,d
--enable-ld=yes --enable-gold=yes --enable-libstdcxx-debug
--enable-libstdcxx-time=yes --enable-linker-build-id --enable-lto
--enable-plugins --enable-threads=posix
--with-pkgversion=Compiler-Explorer-Build
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.0.0 20201016 (experimental) (Compiler-Explorer-Build)
COLLECT_GCC_OPTIONS='-fdiagnostics-color=always' '-g' '-o' './output.s'
'-masm=intel' '-S' '-v' '-mtune=generic' '-march=x86-64' '-dumpdir' './'
/opt/compiler-explorer/gcc-trunk-20201017/bin/../libexec/gcc/x86_64-linux-gnu/11.0.0/cc1
-quiet -v -imultiarch x86_64-linux-gnu -iprefix
/opt/compiler-explorer/gcc-trunk-20201017/bin/../lib/gcc/x86_64-linux-gnu/11.0.0/
<source> -quiet -dumpdir ./ -dumpbase output.c -dumpbase-ext .c -masm=intel
-mtune=generic -march=x86-64 -g -version -fdiagnostics-color=always -o
./output.s
GNU C17 (Compiler-Explorer-Build) version 11.0.0 20201016 (experimental)
(x86_64-linux-gnu)
compiled by GNU C version 7.5.0, GMP version 6.1.0, MPFR version 3.1.4,
MPC version 1.0.3, isl version isl-0.18-GMP
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
ignoring nonexistent directory
"/opt/compiler-explorer/gcc-trunk-20201017/bin/../lib/gcc/x86_64-linux-gnu/11.0.0/../../../../x86_64-linux-gnu/include"
ignoring duplicate directory
"/opt/compiler-explorer/gcc-trunk-20201017/bin/../lib/gcc/../../lib/gcc/x86_64-linux-gnu/11.0.0/include"
ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"
ignoring duplicate directory
"/opt/compiler-explorer/gcc-trunk-20201017/bin/../lib/gcc/../../lib/gcc/x86_64-linux-gnu/11.0.0/include-fixed"
ignoring nonexistent directory
"/opt/compiler-explorer/gcc-trunk-20201017/bin/../lib/gcc/../../lib/gcc/x86_64-linux-gnu/11.0.0/../../../../x86_64-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/opt/compiler-explorer/gcc-trunk-20201017/bin/../lib/gcc/x86_64-linux-gnu/11.0.0/include
/opt/compiler-explorer/gcc-trunk-20201017/bin/../lib/gcc/x86_64-linux-gnu/11.0.0/include-fixed
/usr/local/include
/opt/compiler-explorer/gcc-trunk-20201017/bin/../lib/gcc/../../include
/usr/include/x86_64-linux-gnu
/usr/include
End of search list.
GNU C17 (Compiler-Explorer-Build) version 11.0.0 20201016 (experimental)
(x86_64-linux-gnu)
compiled by GNU C version 7.5.0, GMP version 6.1.0, MPFR version 3.1.4,
MPC version 1.0.3, isl version isl-0.18-GMP
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 129d0909b5f5d2346755498e10395559
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug preprocessor/97471] [11 Regression] ICE on using function-like macro as a non function-like macro since r11-338-g2a0225e47868fbfc
2020-10-17 16:21 [Bug preprocessor/97471] New: ICE on using function-like macro as a non function-like macro gabravier at gmail dot com
@ 2020-10-19 7:26 ` marxin at gcc dot gnu.org
2020-10-19 7:28 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-10-19 7:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97471
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Known to work| |10.2.0
Ever confirmed|0 |1
Last reconfirmed| |2020-10-19
CC| |marxin at gcc dot gnu.org,
| |nathan at gcc dot gnu.org
Known to fail| |11.0
Keywords| |ice-on-invalid-code
Summary|ICE on using function-like |[11 Regression] ICE on
|macro as a non |using function-like macro
|function-like macro |as a non function-like
| |macro since
| |r11-338-g2a0225e47868fbfc
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started with r11-338-g2a0225e47868fbfc.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug preprocessor/97471] [11 Regression] ICE on using function-like macro as a non function-like macro since r11-338-g2a0225e47868fbfc
2020-10-17 16:21 [Bug preprocessor/97471] New: ICE on using function-like macro as a non function-like macro gabravier at gmail dot com
2020-10-19 7:26 ` [Bug preprocessor/97471] [11 Regression] ICE on using function-like macro as a non function-like macro since r11-338-g2a0225e47868fbfc marxin at gcc dot gnu.org
@ 2020-10-19 7:28 ` rguenth at gcc dot gnu.org
2020-10-19 11:59 ` nathan at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-10-19 7:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97471
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |11.0
Priority|P3 |P1
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug preprocessor/97471] [11 Regression] ICE on using function-like macro as a non function-like macro since r11-338-g2a0225e47868fbfc
2020-10-17 16:21 [Bug preprocessor/97471] New: ICE on using function-like macro as a non function-like macro gabravier at gmail dot com
2020-10-19 7:26 ` [Bug preprocessor/97471] [11 Regression] ICE on using function-like macro as a non function-like macro since r11-338-g2a0225e47868fbfc marxin at gcc dot gnu.org
2020-10-19 7:28 ` rguenth at gcc dot gnu.org
@ 2020-10-19 11:59 ` nathan at gcc dot gnu.org
2020-10-19 15:01 ` nathan at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: nathan at gcc dot gnu.org @ 2020-10-19 11:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97471
Nathan Sidwell <nathan at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |nathan at gcc dot gnu.org
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug preprocessor/97471] [11 Regression] ICE on using function-like macro as a non function-like macro since r11-338-g2a0225e47868fbfc
2020-10-17 16:21 [Bug preprocessor/97471] New: ICE on using function-like macro as a non function-like macro gabravier at gmail dot com
` (2 preceding siblings ...)
2020-10-19 11:59 ` nathan at gcc dot gnu.org
@ 2020-10-19 15:01 ` nathan at gcc dot gnu.org
2020-10-19 21:35 ` nathan at gcc dot gnu.org
2020-10-20 15:02 ` nathan at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: nathan at gcc dot gnu.org @ 2020-10-19 15:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97471
Nathan Sidwell <nathan at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #2 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Fixed 5abe05b4331 2020-10-19 | preprocessor: Fix non-fn fn-like macro at EOF
[PR97471]
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug preprocessor/97471] [11 Regression] ICE on using function-like macro as a non function-like macro since r11-338-g2a0225e47868fbfc
2020-10-17 16:21 [Bug preprocessor/97471] New: ICE on using function-like macro as a non function-like macro gabravier at gmail dot com
` (3 preceding siblings ...)
2020-10-19 15:01 ` nathan at gcc dot gnu.org
@ 2020-10-19 21:35 ` nathan at gcc dot gnu.org
2020-10-20 15:02 ` nathan at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: nathan at gcc dot gnu.org @ 2020-10-19 21:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97471
Nathan Sidwell <nathan at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|FIXED |---
Status|RESOLVED |REOPENED
--- Comment #3 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
he shoots, he misses :(
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug preprocessor/97471] [11 Regression] ICE on using function-like macro as a non function-like macro since r11-338-g2a0225e47868fbfc
2020-10-17 16:21 [Bug preprocessor/97471] New: ICE on using function-like macro as a non function-like macro gabravier at gmail dot com
` (4 preceding siblings ...)
2020-10-19 21:35 ` nathan at gcc dot gnu.org
@ 2020-10-20 15:02 ` nathan at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: nathan at gcc dot gnu.org @ 2020-10-20 15:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97471
Nathan Sidwell <nathan at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
dbcc6b1577b 2020-10-20 | preprocessor: Further fix for EOF in macro args
[PR97471]
score?
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2020-10-20 15:02 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-17 16:21 [Bug preprocessor/97471] New: ICE on using function-like macro as a non function-like macro gabravier at gmail dot com
2020-10-19 7:26 ` [Bug preprocessor/97471] [11 Regression] ICE on using function-like macro as a non function-like macro since r11-338-g2a0225e47868fbfc marxin at gcc dot gnu.org
2020-10-19 7:28 ` rguenth at gcc dot gnu.org
2020-10-19 11:59 ` nathan at gcc dot gnu.org
2020-10-19 15:01 ` nathan at gcc dot gnu.org
2020-10-19 21:35 ` nathan at gcc dot gnu.org
2020-10-20 15:02 ` nathan 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).