diff options
author | Andrew Pinski <andrew.pinski@oss.qualcomm.com> | 2025-09-15 22:37:44 -0700 |
---|---|---|
committer | Andrew Pinski <andrew.pinski@oss.qualcomm.com> | 2025-09-16 15:28:48 -0700 |
commit | df5088e9a231159c8035debda18b997bc0eeeefb (patch) | |
tree | 06344d552bfd2efa7b48de792cbb7b10da481f92 /gcc/vmsdbg.h | |
parent | 5eb86c29d29fa25f8ad81d75730a993bb03fb558 (diff) | |
download | gcc-master.zip gcc-master.tar.gz gcc-master.tar.bz2 |
These two don't make sense as nested functions as they both don't handle
the unnesting and/or have support for the static chain.
So let's reject them.
Bootstrapped and tested on x86_64-linux-gnu.
PR c/121421
gcc/c/ChangeLog:
* c-parser.cc (c_parser_declaration_or_fndef): Error out for gimple
and rtl functions as nested functions.
gcc/testsuite/ChangeLog:
* gcc.dg/gimplefe-error-16.c: New test.
Signed-off-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
Diffstat (limited to 'gcc/vmsdbg.h')
0 files changed, 0 insertions, 0 deletions