diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2021-11-09 10:14:25 +0100 |
---|---|---|
committer | Aldy Hernandez <aldyh@redhat.com> | 2021-11-09 14:29:22 +0100 |
commit | 47c2cf3ac684fab21ec31c72462b7b21845a41f2 (patch) | |
tree | f50d0bc73091d02c016be7e0f50534a4afcbeac2 /gcc/dumpfile.h | |
parent | c71cb26a9e841888f52e4bfcaad94c8f8ecb4fdb (diff) | |
download | gcc-47c2cf3ac684fab21ec31c72462b7b21845a41f2.zip gcc-47c2cf3ac684fab21ec31c72462b7b21845a41f2.tar.gz gcc-47c2cf3ac684fab21ec31c72462b7b21845a41f2.tar.bz2 |
Remove TDF_THREADING flag in favor of param.
I am returning a TDF_* flag to the queue of available entries as I am
unconvinced that we need to burn an entire flag for internal debugging
constructs, especially since we seem to be running out of them.
I've added a --param=threader-debug entry similar to the one we use for
ranger debugging. Currently this only affects the backward threader,
but since the DOM threader is an outlier and on the chopping block, I
avoided using the "backward" name.
Tested on x86-64 Linux.
gcc/ChangeLog:
* dumpfile.c (dump_options): Remove TDF_THREADING entry.
* dumpfile.h (enum dump_flag): Remove TDF_THREADING and adjust
remaining entries.
* flag-types.h (enum threader_debug): New.
* gimple-range-path.cc (DEBUG_SOLVER): Use param_threader_debug.
* params.opt: Add entry for --param=threader-debug=.
Diffstat (limited to 'gcc/dumpfile.h')
-rw-r--r-- | gcc/dumpfile.h | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/gcc/dumpfile.h b/gcc/dumpfile.h index 7622675..2487ae2 100644 --- a/gcc/dumpfile.h +++ b/gcc/dumpfile.h @@ -146,20 +146,17 @@ enum dump_flag : uint32_t /* Dump folding details. */ TDF_FOLDING = (1 << 21), - /* Dumping for range path solver. */ - TDF_THREADING = (1 << 22), - /* MSG_* flags for expressing the kinds of message to be emitted by -fopt-info. */ /* -fopt-info optimized sources. */ - MSG_OPTIMIZED_LOCATIONS = (1 << 23), + MSG_OPTIMIZED_LOCATIONS = (1 << 22), /* Missed opportunities. */ - MSG_MISSED_OPTIMIZATION = (1 << 24), + MSG_MISSED_OPTIMIZATION = (1 << 23), /* General optimization info. */ - MSG_NOTE = (1 << 25), + MSG_NOTE = (1 << 24), /* Mask for selecting MSG_-kind flags. */ MSG_ALL_KINDS = (MSG_OPTIMIZED_LOCATIONS @@ -178,16 +175,16 @@ enum dump_flag : uint32_t sub-option of -fopt-info to show the internal messages. */ /* Implicitly supplied for messages at the top-level dump scope. */ - MSG_PRIORITY_USER_FACING = (1 << 26), + MSG_PRIORITY_USER_FACING = (1 << 25), /* Implicitly supplied for messages within nested dump scopes. */ - MSG_PRIORITY_INTERNALS = (1 << 27), + MSG_PRIORITY_INTERNALS = (1 << 26), /* Supplied when an opt_problem generated in a nested scope is re-emitted at the top-level. We want to default to showing these in -fopt-info output, but to *not* show them in dump files, as the message would be shown twice, messing up "scan-tree-dump-times" in DejaGnu tests. */ - MSG_PRIORITY_REEMITTED = (1 << 28), + MSG_PRIORITY_REEMITTED = (1 << 27), /* Mask for selecting MSG_PRIORITY_* flags. */ MSG_ALL_PRIORITIES = (MSG_PRIORITY_USER_FACING @@ -195,16 +192,16 @@ enum dump_flag : uint32_t | MSG_PRIORITY_REEMITTED), /* All -fdump- flags. */ - TDF_ALL_VALUES = (1 << 29) - 1, + TDF_ALL_VALUES = (1 << 28) - 1, /* Dumping for -fcompare-debug. */ - TDF_COMPARE_DEBUG = (1 << 29), + TDF_COMPARE_DEBUG = (1 << 28), /* Dump a GIMPLE value which means wrapping certain things with _Literal. */ - TDF_GIMPLE_VAL = (1 << 30), + TDF_GIMPLE_VAL = (1 << 29), /* For error. */ - TDF_ERROR = ((uint32_t)1 << 31), + TDF_ERROR = ((uint32_t)1 << 30), }; /* Dump flags type. */ |