diff options
author | Jakub Jelinek <jakub@redhat.com> | 2014-03-22 08:18:38 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2014-03-22 08:18:38 +0100 |
commit | b35e0fa0818e426f3de1ec900db2b969e8f212a6 (patch) | |
tree | d27174ed6e79ae0b0010eaf708bb6fbc53a18b8d /gcc/c-family/c-opts.c | |
parent | e10bd1cacc141e20f78ead2a0f07c009d95ba4c3 (diff) | |
download | gcc-b35e0fa0818e426f3de1ec900db2b969e8f212a6.zip gcc-b35e0fa0818e426f3de1ec900db2b969e8f212a6.tar.gz gcc-b35e0fa0818e426f3de1ec900db2b969e8f212a6.tar.bz2 |
re PR debug/60603 (.debug_macinfo/.debug_macro has wrong line numbers for built-in macros)
PR debug/60603
c-family/
* c-opts.c (c_finish_options): Restore cb_file_change call to
<built-in>.
fortran/
* cpp.c (gfc_cpp_init): Restore cb_change_file call to
<built-in>.
testsuite/
* gcc.dg/debug/dwarf2/dwarf2-macro2.c: New test.
From-SVN: r208763
Diffstat (limited to 'gcc/c-family/c-opts.c')
-rw-r--r-- | gcc/c-family/c-opts.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/gcc/c-family/c-opts.c b/gcc/c-family/c-opts.c index 92ba481..e162e49 100644 --- a/gcc/c-family/c-opts.c +++ b/gcc/c-family/c-opts.c @@ -1274,17 +1274,18 @@ c_finish_options (void) { size_t i; - { - /* Make sure all of the builtins about to be declared have - BUILTINS_LOCATION has their source_location. */ - source_location builtins_loc = BUILTINS_LOCATION; - cpp_force_token_locations (parse_in, &builtins_loc); + cb_file_change (parse_in, + linemap_add (line_table, LC_RENAME, 0, + _("<built-in>"), 0)); + /* Make sure all of the builtins about to be declared have + BUILTINS_LOCATION has their source_location. */ + source_location builtins_loc = BUILTINS_LOCATION; + cpp_force_token_locations (parse_in, &builtins_loc); - cpp_init_builtins (parse_in, flag_hosted); - c_cpp_builtins (parse_in); + cpp_init_builtins (parse_in, flag_hosted); + c_cpp_builtins (parse_in); - cpp_stop_forcing_token_locations (parse_in); - } + cpp_stop_forcing_token_locations (parse_in); /* We're about to send user input to cpplib, so make it warn for things that we previously (when we sent it internal definitions) |