This is the mail archive of the 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]

[tree-ssa] [PATCH] Fix PR c/13127

As I said in the previous patch which fixes PR 13863, the only thing for
this patch would be using what I added in that patch.  So this fixes the
PR by setting no warning bit on the decl.

Andrew Pinski



	* tree-inline.c (declare_return_variable): Set no warning bit
	on the variable created for the return value.

Index: tree-inline.c =================================================================== RCS file: /cvs/gcc/gcc/gcc/tree-inline.c,v retrieving revision diff -u -p -r1.26.2.80 tree-inline.c --- tree-inline.c 30 Jan 2004 13:14:17 -0000 +++ tree-inline.c 6 Feb 2004 15:33:12 -0000 @@ -886,6 +886,10 @@ declare_return_variable (inline_data *id var = ((*lang_hooks.tree_inlining.copy_res_decl_for_inlining) (result, fn, VARRAY_TREE (id->fns, 0), id->decl_map, &need_return_decl, return_slot_addr)); + + /* Do not have the rest of GCC warn about this variable as it should + not be visible to the user. */ + TREE_NO_WARNING (var) = 1;

   /* Register the VAR_DECL as the equivalent for the RESULT_DECL; that
      way, when the RESULT_DECL is encountered, it will be

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