diff options
author | Richard Biener <rguenther@suse.de> | 2021-10-21 12:12:00 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2021-10-21 12:12:49 +0200 |
commit | d97fa0d44c22f6bd96140e4ee613b65fbd8f559a (patch) | |
tree | e45a0ba6a1a484ab2732fb990dbeb28fa97c2fa3 | |
parent | 8516963942b0a8f06fa8f5ebd7c37f9edea151ac (diff) | |
download | gcc-d97fa0d44c22f6bd96140e4ee613b65fbd8f559a.zip gcc-d97fa0d44c22f6bd96140e4ee613b65fbd8f559a.tar.gz gcc-d97fa0d44c22f6bd96140e4ee613b65fbd8f559a.tar.bz2 |
Move the initial debug_hooks setting
I just realized that when I moved the langhook call I failed to
move the initial debug_hooks setting whose comment mentions the
langhook as reason.
2021-10-21 Richard Biener <rguenther@suse.de>
* toplev.c (process_options): Move the initial debug_hooks
setting ...
(toplev::main): ... before the call of the post_options
langhook.
-rw-r--r-- | gcc/toplev.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index cb4f8c4..67fb716 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -1227,9 +1227,6 @@ static void process_options (bool no_backend) { const char *language_string = lang_hooks.name; - /* Just in case lang_hooks.post_options ends up calling a debug_hook. - This can happen with incorrect pre-processed input. */ - debug_hooks = &do_nothing_debug_hooks; maximum_field_alignment = initial_max_fld_align * BITS_PER_UNIT; @@ -2338,6 +2335,9 @@ toplev::main (int argc, char **argv) /* Exit early if we can (e.g. -help). */ if (!exit_after_options) { + /* Just in case lang_hooks.post_options ends up calling a debug_hook. + This can happen with incorrect pre-processed input. */ + debug_hooks = &do_nothing_debug_hooks; /* Allow the front end to perform consistency checks and do further initialization based on the command line options. This hook also sets the original filename if appropriate (e.g. foo.i -> foo.c) |