diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1995-12-30 06:36:58 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-12-30 06:36:58 -0500 |
commit | 638141a689dc8be1d5685200f578ee5a106119aa (patch) | |
tree | 617fd14695432b5cdeddbdc36603bf58925fcea6 /gcc/function.c | |
parent | 4627dc07056968b73deac81b78931c6bc612746f (diff) | |
download | gcc-638141a689dc8be1d5685200f578ee5a106119aa.zip gcc-638141a689dc8be1d5685200f578ee5a106119aa.tar.gz gcc-638141a689dc8be1d5685200f578ee5a106119aa.tar.bz2 |
(assign_temp): Fix formatting.
From-SVN: r10905
Diffstat (limited to 'gcc/function.c')
-rw-r--r-- | gcc/function.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/gcc/function.c b/gcc/function.c index 4131a2f..0c3aa7e 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -918,7 +918,7 @@ assign_stack_temp (mode, size, keep) } return p->slot; } - + /* Assign a temporary of given TYPE. KEEP is as for assign_stack_temp. MEMORY_REQUIRED is 1 if the result must be addressable stack memory; @@ -931,6 +931,8 @@ assign_temp (type, keep, memory_required) int memory_required; { enum machine_mode mode = TYPE_MODE (type); + int unsignedp = TREE_UNSIGNED (type); + if (mode == BLKmode || memory_required) { int size = int_size_in_bytes (type); @@ -949,16 +951,17 @@ assign_temp (type, keep, memory_required) MEM_IN_STRUCT_P (tmp) = AGGREGATE_TYPE_P (type); return tmp; } + if (mode == VOIDmode) return const0_rtx; + #ifndef PROMOTE_FOR_CALL_ONLY - { int unsignedp = TREE_UNSIGNED (type); - mode = promote_mode (type, mode, &unsignedp, 0); - } + mode = promote_mode (type, mode, &unsignedp, 0); #endif + return gen_reg_rtx (mode); } - + /* Combine temporary stack slots which are adjacent on the stack. This allows for better use of already allocated stack space. This is only |