This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: mainline breakage (r148442)


oliver.kellogg@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;
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]