aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfglayout.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2011-03-28 21:19:23 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2011-03-28 21:19:23 +0000
commitc82fee88dc9758441101e2d92d327f202504b120 (patch)
tree5546780c03b01934b934347daf34220cf6414108 /gcc/cfglayout.c
parente45425ecf8afa3ce7cbae97f267538c7d1e5650c (diff)
downloadgcc-c82fee88dc9758441101e2d92d327f202504b120.zip
gcc-c82fee88dc9758441101e2d92d327f202504b120.tar.gz
gcc-c82fee88dc9758441101e2d92d327f202504b120.tar.bz2
cfgexpand.c (expand_gimple_cond): Always set the source location and block before expanding the statement.
* 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. From-SVN: r171629
Diffstat (limited to 'gcc/cfglayout.c')
-rw-r--r--gcc/cfglayout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cfglayout.c b/gcc/cfglayout.c
index 05aed22..4646636 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)
{