This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[tuples][patch] C90 language conformance improvements and build options fixes
- From: "Bill Maddox" <maddox at google dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Cc: "Diego Novillo" <dnovillo at google dot com>
- Date: Mon, 25 Feb 2008 18:31:19 -0800
- Subject: [tuples][patch] C90 language conformance improvements and build options fixes
This patch fixes a number of issues that prevented the tuples branch from
compiling with the '-pedantic' option. Also, prevent some warnings that
cause compilations to fail with -Werror.
* tree-into-ssa.c (rewrite_initialize_block):
Avoid declaration following statement in block.
* tree-nrv.c (tree_nrv):
Avoid declaration following statement in block.
* tree-eh.c (collect_finally_tree): Fix typo in comment.
Avoid cast to union type.
(replace_goto_queue_cond_clause, replace_goto_queue_1,
maybe_record_in_goto_queue, verify_norecord_switch_expr,
lower_try_finally_fallthru_label): Avoid cast to union type.
* fortran/Make-lang.in: Add -Wno-missing-format-attribute
to fortran-warn options to avoid conflict with -Wno-format.
* gimplify.c (gimplify_switch_expr): Change assignment
to initialiation.
(gimplify_case_label_expr): Avoid declaration following
statement in block.
* tree-ssa-coalesce.c (create_outofssa_var_map): Avoid
declaration following statement in block.
* tree-ssa.c (ssa_redirect_edge, flush_pending_stmts):
Avoid declaration following statements in block.
* Makefile.in: Add -Wno-missing-format-attribute
to builtins.o-warn and expr.o-warn options to avoid conflict
with -Wno-format. Removed fortran/*-warn options, -Wno-format
and -Wno-uninitialized, which belong in fortran/Make-lang.in,
and are applied to all fortran files there.
Committed to gimple-tuples-branch. Approved by dnovillo.
--Bill