diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-03-28 21:19:23 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-03-28 21:19:23 +0000 |
commit | 8c5937571cf96f92b9de715389b1143b06eb932f (patch) | |
tree | 5546780c03b01934b934347daf34220cf6414108 /gcc/cfglayout.c | |
parent | 07abdb661870a0f73f4c6bba629ca46b6519f8fd (diff) | |
download | gcc-8c5937571cf96f92b9de715389b1143b06eb932f.tar.gz |
* cfgexpand.c (expand_gimple_cond): Always set the source location and
block before expanding the statement.
(expand_gimple_stmt_1): Likewise. Set them here...
(expand_gimple_stmt): ...and not here. Tidy.
* cfglayout.c (curr_insn_locator): Return 0 if the current location is
unknown.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171629 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfglayout.c')
-rw-r--r-- | gcc/cfglayout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cfglayout.c b/gcc/cfglayout.c index 05aed221f0b..464663642c7 100644 --- a/gcc/cfglayout.c +++ b/gcc/cfglayout.c @@ -323,7 +323,7 @@ get_curr_insn_block (void) int curr_insn_locator (void) { - if (curr_rtl_loc == -1) + if (curr_rtl_loc == -1 || curr_location == UNKNOWN_LOCATION) return 0; if (last_block != curr_block) { |