From: Richard Guenther Date: Wed, 4 May 2011 13:51:01 +0000 (+0000) Subject: explow.c (promote_mode): Move variable declarations before code. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1e3287d0e91ae7f1c19ecc3031fbb548f06db652;p=gcc.git explow.c (promote_mode): Move variable declarations before code. 2011-05-04 Richard Guenther * explow.c (promote_mode): Move variable declarations before code. From-SVN: r173376 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1ea87106223..a66c1fa279e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2011-05-04 Richard Guenther + + * explow.c (promote_mode): Move variable declarations before code. + 2011-05-04 Nathan Froyd * tree.h (build_function_type_array): Declare. diff --git a/gcc/explow.c b/gcc/explow.c index da04505a7e8..812897163e2 100644 --- a/gcc/explow.c +++ b/gcc/explow.c @@ -802,6 +802,11 @@ enum machine_mode promote_mode (const_tree type ATTRIBUTE_UNUSED, enum machine_mode mode, int *punsignedp ATTRIBUTE_UNUSED) { +#ifdef PROMOTE_MODE + enum tree_code code; + int unsignedp; +#endif + /* For libcalls this is invoked without TYPE from the backends TARGET_PROMOTE_FUNCTION_MODE hooks. Don't do anything in that case. */ @@ -812,8 +817,8 @@ promote_mode (const_tree type ATTRIBUTE_UNUSED, enum machine_mode mode, probably want to test POINTERS_EXTEND_UNSIGNED even if PROMOTE_MODE is not defined. The affected targets are M32C, S390, SPARC. */ #ifdef PROMOTE_MODE - const enum tree_code code = TREE_CODE (type); - int unsignedp = *punsignedp; + code = TREE_CODE (type); + unsignedp = *punsignedp; switch (code) {