]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
expr.c (expand_expr_real): Don't look at EXPR_HAS_LOCATION unless ib_boundaries_block...
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>
Fri, 18 Nov 2005 13:22:55 +0000 (13:22 +0000)
committerRichard Kenner <kenner@gcc.gnu.org>
Fri, 18 Nov 2005 13:22:55 +0000 (08:22 -0500)
* expr.c (expand_expr_real): Don't look at EXPR_HAS_LOCATION unless
ib_boundaries_block is non-null

From-SVN: r107180

gcc/ChangeLog
gcc/expr.c

index 6132e3623d2857383fa6d2dc61ff63b67f0a4769..6e63793ee7b95dfc26871903515286bacfe06d6f 100644 (file)
@@ -1,4 +1,7 @@
-2005-11-18  Richard Kenner  <kenner@don.gnat.com>
+2005-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
+
+       * 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.
 
index 125e37071d91022c4dd4a4197d8022936469d642..13dd782588ef922680e9bb998972e8cb228b5499 100644 (file)
@@ -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);