aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.4.0/gcc/cfgexpand.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.4.0/gcc/cfgexpand.c')
-rw-r--r--gcc-4.4.0/gcc/cfgexpand.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc-4.4.0/gcc/cfgexpand.c b/gcc-4.4.0/gcc/cfgexpand.c
index 3eaebd44b..f48ab403a 100644
--- a/gcc-4.4.0/gcc/cfgexpand.c
+++ b/gcc-4.4.0/gcc/cfgexpand.c
@@ -69,6 +69,9 @@ gimple_assign_rhs_to_tree (gimple stmt)
else
gcc_unreachable ();
+ if (gimple_has_location (stmt) && CAN_HAVE_LOCATION_P (t))
+ SET_EXPR_LOCATION (t, gimple_location (stmt));
+
return t;
}