aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-08-21 12:18:56 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1995-08-21 12:18:56 -0400
commit32c5cac2a5b73cc2ad5e8017ffc21c1f4da00025 (patch)
treef6ccf778f407fa3b87f51afda116c727608649c4
parent46d81ffa4acfe8c6ae8a2701b1458d95a403dac8 (diff)
downloadgcc-32c5cac2a5b73cc2ad5e8017ffc21c1f4da00025.zip
gcc-32c5cac2a5b73cc2ad5e8017ffc21c1f4da00025.tar.gz
gcc-32c5cac2a5b73cc2ad5e8017ffc21c1f4da00025.tar.bz2
(PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN): Define.
From-SVN: r10260
-rw-r--r--gcc/config/sh/sh.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/config/sh/sh.h b/gcc/config/sh/sh.h
index 35acd14..6c37a99 100644
--- a/gcc/config/sh/sh.h
+++ b/gcc/config/sh/sh.h
@@ -1430,10 +1430,12 @@ extern int pragma_interrupt;
&& GET_MODE_SIZE (MODE) < UNITS_PER_WORD) \
MODE = SImode;
-/* PROMOTE_FUNCTION_ARGS and PROMOTE_FUNCTION_RETURN appear to have no
- effect, because all unprototyped char/shorts are already promoted to
- int, and because PROMOTE_PROTOTYPES causes all prototypes char/shorts
- to be promoted to it. */
+/* Defining PROMOTE_FUNCTION_ARGS eliminates some unnecessary zero/sign
+ extensions applied to char/short functions arguments. Defining
+ PROMOTE_FUNCTION_RETURN does the same for function returns. */
+
+#define PROMOTE_FUNCTION_ARGS
+#define PROMOTE_FUNCTION_RETURN
/* ??? Define ACCUMULATE_OUTGOING_ARGS? This is more efficient than pushing
and poping arguments. However, we do have push/pop instructions, and