From c48dc958ed1fb8909c84d73177ed7962d356e087 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Fri, 18 Nov 2005 13:22:55 +0000 Subject: expr.c (expand_expr_real): Don't look at EXPR_HAS_LOCATION unless ib_boundaries_block is non-null * expr.c (expand_expr_real): Don't look at EXPR_HAS_LOCATION unless ib_boundaries_block is non-null From-SVN: r107180 --- gcc/ChangeLog | 5 ++++- gcc/expr.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6132e36..6e63793 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,4 +1,7 @@ -2005-11-18 Richard Kenner +2005-11-18 Richard Kenner + + * expr.c (expand_expr_real): Don't look at EXPR_HAS_LOCATION unless + ib_boundaries_block is non-null * postreload.c (reload_cse_move2add): Don't try to work with BImode. diff --git a/gcc/expr.c b/gcc/expr.c index 125e370..13dd782 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -6488,7 +6488,7 @@ expand_expr_real (tree exp, rtx target, enum machine_mode tmode, information. It would be better of the diagnostic routines used the file/line information embedded in the tree nodes rather than globals. */ - if (cfun && EXPR_HAS_LOCATION (exp)) + if (cfun && cfun->ib_boundaries_block && EXPR_HAS_LOCATION (exp)) { location_t saved_location = input_location; input_location = EXPR_LOCATION (exp); -- cgit v1.1