oliver.kell...@t-online.de (Oliver Kellogg) writes:

> Anybody else seeing this?
>
> ‘lower_try_finally_switch’:
> ../../../SOURCES/gcc/gcc/tree-eh.c:1350:5: error: ‘tf_loc’ may be used
> uninitialized in this function

Funny, this was never picked up in any of my bootstraps, but it is
indeed a bug.

This is an obvious fix I will be committing as soon as tests are done.

        * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.

Index: tree-eh.c
===================================================================
--- tree-eh.c   (revision 148490)
+++ tree-eh.c   (working copy)
@@ -1333,7 +1333,7 @@ lower_try_finally_switch (struct leh_sta
   gimple_seq finally;
   struct pointer_map_t *cont_map = NULL;
   /* The location of the TRY_FINALLY stmt.  */
-  location_t tf_loc;
+  location_t tf_loc = gimple_location (tf->try_finally_expr);
   /* The location of the finally block.  */
   location_t finally_loc;
 

Reply via email to