diff options
author | Jan Hubicka <jh@suse.cz> | 2013-09-10 15:04:36 +0200 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2013-09-10 13:04:36 +0000 |
commit | 4f90d3e08cd1b7696fc29a88056e14388d78fdf6 (patch) | |
tree | 1ba16c2374c0a1fd2be1a0ca9f6816084b6f05ac /gcc/cgraphunit.c | |
parent | 39e87bafc6df5d2405e7d2bedbe44018a5cd0269 (diff) | |
download | gcc-4f90d3e08cd1b7696fc29a88056e14388d78fdf6.tar.gz |
cgraphunit.c (analyze_functions): Save input_location, set it to UNKNOWN_LOCATION and restore it at the end.
2013-09-10 Jan Hubicka <jh@suse.cz>
Paolo Carlini <paolo.carlini@oracle.com>
* cgraphunit.c (analyze_functions): Save input_location, set it
to UNKNOWN_LOCATION and restore it at the end.
/cp
2013-09-10 Jan Hubicka <jh@suse.cz>
Paolo Carlini <paolo.carlini@oracle.com>
* error.c (print_instantiation_partial_context_line): If
loc == UNKNOWN_LOCATION return immediately.
/testsuite
2013-09-10 Jan Hubicka <jh@suse.cz>
Paolo Carlini <paolo.carlini@oracle.com>
* g++.dg/template/cond2.C: Tweak, do not expect a "required from".
Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com>
From-SVN: r202445
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r-- | gcc/cgraphunit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 9681df518cd..092c74a7184 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -916,9 +916,11 @@ analyze_functions (void) int i; struct ipa_ref *ref; bool changed = true; + location_t saved_loc = input_location; bitmap_obstack_initialize (NULL); cgraph_state = CGRAPH_STATE_CONSTRUCTION; + input_location = UNKNOWN_LOCATION; /* Ugly, but the fixup can not happen at a time same body alias is created; C++ FE is confused about the COMDAT groups being right. */ @@ -1099,6 +1101,8 @@ analyze_functions (void) used by it. */ if (!seen_error ()) symtab_initialize_asm_name_hash (); + + input_location = saved_loc; } /* Translate the ugly representation of aliases as alias pairs into nice |