summaryrefslogtreecommitdiff
path: root/gcc/explow.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-05-04 13:51:01 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-05-04 13:51:01 +0000
commit49130e9a33f879aa9e20ec851022948203610add (patch)
treed33a960604ef99372f73fd90d77262b82896cf0a /gcc/explow.c
parent5edc3af9f92eeff0e93d496f287003124f4d4df0 (diff)
downloadgcc-49130e9a33f879aa9e20ec851022948203610add.tar.gz
2011-05-04 Richard Guenther <rguenther@suse.de>
* explow.c (promote_mode): Move variable declarations before code. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173376 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/explow.c')
-rw-r--r--gcc/explow.c9
1 files changed, 7 insertions, 2 deletions
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)
{