Commit 1e3287d0 by Richard Guenther Committed by Richard Biener

explow.c (promote_mode): Move variable declarations before code.

2011-05-04  Richard Guenther  <rguenther@suse.de>

        * explow.c (promote_mode): Move variable declarations before code.

From-SVN: r173376
parent 6c32445b
2011-05-04 Richard Guenther <rguenther@suse.de>
* explow.c (promote_mode): Move variable declarations before code.
2011-05-04 Nathan Froyd <froydnj@codesourcery.com> 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
* tree.h (build_function_type_array): Declare. * tree.h (build_function_type_array): Declare.
......
...@@ -802,6 +802,11 @@ enum machine_mode ...@@ -802,6 +802,11 @@ enum machine_mode
promote_mode (const_tree type ATTRIBUTE_UNUSED, enum machine_mode mode, promote_mode (const_tree type ATTRIBUTE_UNUSED, enum machine_mode mode,
int *punsignedp ATTRIBUTE_UNUSED) int *punsignedp ATTRIBUTE_UNUSED)
{ {
#ifdef PROMOTE_MODE
enum tree_code code;
int unsignedp;
#endif
/* For libcalls this is invoked without TYPE from the backends /* For libcalls this is invoked without TYPE from the backends
TARGET_PROMOTE_FUNCTION_MODE hooks. Don't do anything in that TARGET_PROMOTE_FUNCTION_MODE hooks. Don't do anything in that
case. */ case. */
...@@ -812,8 +817,8 @@ promote_mode (const_tree type ATTRIBUTE_UNUSED, enum machine_mode mode, ...@@ -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 probably want to test POINTERS_EXTEND_UNSIGNED even if PROMOTE_MODE
is not defined. The affected targets are M32C, S390, SPARC. */ is not defined. The affected targets are M32C, S390, SPARC. */
#ifdef PROMOTE_MODE #ifdef PROMOTE_MODE
const enum tree_code code = TREE_CODE (type); code = TREE_CODE (type);
int unsignedp = *punsignedp; unsignedp = *punsignedp;
switch (code) switch (code)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment