mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-24 10:35:12 +08:00
9c0fb73485
I noticed many spots checking whether a dynamic property's kind is PROP_CONST. Some spots, I think, are doing a slightly incorrect check -- checking for != PROP_UNDEFINED where == PROP_CONST is actually required, the key thing being that const_val may only be called for PROP_CONST properties. This patch adds dynamic::is_constant and then updates these checks to use it. Regression tested on x86-64 Fedora 36. |
||
---|---|---|
.. | ||
compile-c-support.c | ||
compile-c-symbols.c | ||
compile-c-types.c | ||
compile-c.h | ||
compile-cplus-symbols.c | ||
compile-cplus-types.c | ||
compile-cplus.h | ||
compile-internal.h | ||
compile-loc2c.c | ||
compile-object-load.c | ||
compile-object-load.h | ||
compile-object-run.c | ||
compile-object-run.h | ||
compile.c | ||
compile.h | ||
gcc-c-plugin.h | ||
gcc-cp-plugin.h |