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

[PR/14107] Enable -Wreturn-type at no optimization


Now that CFG-transparent expansion is available, this simple patch moves the return type out of the pass_all_optimizations group.

Bootstrapped/regtested i686-pc-linux-gnu, ok for mainline?

Paolo

2004-06-22 Paolo Bonzini <bonzini@gnu.org>

PR tree-optimization/14107

	* tree-optimize.c (init_tree_optimization_passes): Run
	pass_warn_function_return at all optimization levels.
Index: tree-optimize.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-optimize.c,v
retrieving revision 2.20
diff -u -p -r2.20 tree-optimize.c
--- tree-optimize.c	19 Jun 2004 15:33:06 -0000	2.20
+++ tree-optimize.c	22 Jun 2004 08:00:58 -0000
@@ -254,6 +254,7 @@ init_tree_optimization_passes (void)
   NEXT_PASS (pass_build_cfg);
   NEXT_PASS (pass_tree_profile);
   NEXT_PASS (pass_all_optimizations);
+  NEXT_PASS (pass_warn_function_return);
   NEXT_PASS (pass_mudflap_2);
   NEXT_PASS (pass_free_datastructures);
   NEXT_PASS (pass_expand);
@@ -299,7 +300,6 @@ init_tree_optimization_passes (void)
   NEXT_PASS (DUP_PASS (pass_phiopt));
   NEXT_PASS (pass_tail_calls);
   NEXT_PASS (pass_late_warn_uninitialized);
-  NEXT_PASS (pass_warn_function_return);
   NEXT_PASS (pass_del_ssa);
   NEXT_PASS (pass_nrv);
   NEXT_PASS (pass_remove_useless_vars);

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