generalize build_case_label to the rest of the compiler
authorNathan Froyd <froydnj@codesourcery.com>
Fri, 6 May 2011 03:47:57 +0000 (03:47 +0000)
committerNathan Froyd <froydnj@gcc.gnu.org>
Fri, 6 May 2011 03:47:57 +0000 (03:47 +0000)
commit3d528853ba1106b3cbd6eca4316ab2825416b9a6
tree039393d181bb08f19b86318385c11bae2f698e2d
parentd7d058c58a02241c63e6c3cc0099bc5d7f68a153
generalize build_case_label to the rest of the compiler

generalize build_case_label to the rest of the compiler
gcc/ada/
* gcc-interface/trans.c (Case_Statement_to_gnu): Call
build_case_label.

gcc/
* except.c (sjlj_emit_dispatch_table): Call build_case_label.
* gimplify.c (gimplify_switch_expr): Likewise.
* omp-low.c (expand_omp_sections): Likewise.
* tree-eh.c (lower_try_finally_switch): Likewise.
(lower_eh_dispatch): Likewise.
* tree.h (build_case_label): Declare.
* tree.c (build_case_label): Define.

gcc/c-family/
* c-common.c (c_add_case_label): Omit the loc argument to
build_case_label.
* c-common.h (build_case_label): Remove.
* c-semantics.c (build_case_label): Remove.

gcc/cp/
* decl.c (finish_case_label): Omit the loc argument to
build_case_label.

gcc/fortran/
* trans-decl.c (gfc_trans_entry_master_switch): Call build_case_label.
* trans-io.c (add_case): Likewise.
* trans-stmt.c (gfc_trans_integer_select): Likewise.
(gfc_trans_character_select): Likewise.

gcc/go/
* go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.

gcc/java/
* expr.c (expand_java_switch): Call build_case_label.
(expand_java_add_case): Likewise.

From-SVN: r173467
23 files changed:
gcc/ChangeLog
gcc/ada/ChangeLog
gcc/ada/gcc-interface/trans.c
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/c-family/c-common.h
gcc/c-family/c-semantics.c
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/except.c
gcc/fortran/ChangeLog
gcc/fortran/trans-decl.c
gcc/fortran/trans-io.c
gcc/fortran/trans-stmt.c
gcc/gimplify.c
gcc/go/ChangeLog
gcc/go/go-gcc.cc
gcc/java/ChangeLog
gcc/java/expr.c
gcc/omp-low.c
gcc/tree-eh.c
gcc/tree.c
gcc/tree.h