diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-12-24 05:06:57 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-12-24 05:09:28 -0500 |
commit | 9e6855c7cb28424e09e95daae707b04d87847bb4 (patch) | |
tree | b2c1016a9b1957acb01b02d8983707b8fec5ceae /sim/common | |
parent | aea0b94653b6a5dff6f12ec14fd344db73b3a9f8 (diff) | |
download | gdb-9e6855c7cb28424e09e95daae707b04d87847bb4.zip gdb-9e6855c7cb28424e09e95daae707b04d87847bb4.tar.gz gdb-9e6855c7cb28424e09e95daae707b04d87847bb4.tar.bz2 |
sim: cgen: mark cgen_rtx_error noreturn
Since this function never returns, mark it as such to fix some unused
variable warnings in error code paths.
For example, cris triggers:
sim/cris/semcrisv10f-switch.c:3558:11: error:
variable 'tmp_newval' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
Even though it has an "else" path that calls this error function.
Diffstat (limited to 'sim/common')
-rw-r--r-- | sim/common/cgen-ops.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/common/cgen-ops.h b/sim/common/cgen-ops.h index 8c880fe..552ff59 100644 --- a/sim/common/cgen-ops.h +++ b/sim/common/cgen-ops.h @@ -705,6 +705,6 @@ SUBOFDI (DI a, DI b, BI c) #endif -extern void cgen_rtx_error (SIM_CPU *, const char *); +extern void cgen_rtx_error (SIM_CPU *, const char *) ATTRIBUTE_NORETURN; #endif /* CGEN_SEM_OPS_H */ |