aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Froyd <froydnj@codesourcery.com>2010-11-17 03:18:19 +0000
committerNathan Froyd <froydnj@gcc.gnu.org>2010-11-17 03:18:19 +0000
commit84ec98d2ebc1183c06b1bcc5b80f050fa6342a00 (patch)
treee2afaee5a2889c4a1ff3fcd763b7d929e7918511
parentbe5e69085cb3f29164e018e674cf0eb075989f0c (diff)
downloadgcc-84ec98d2ebc1183c06b1bcc5b80f050fa6342a00.zip
gcc-84ec98d2ebc1183c06b1bcc5b80f050fa6342a00.tar.gz
gcc-84ec98d2ebc1183c06b1bcc5b80f050fa6342a00.tar.bz2
xtensa.c (function_arg_boundary): Really rename to...
* config/xtensa/xtensa.c (function_arg_boundary): Really rename to... (xtensa_function_arg_boundary): ...this. * config/picochip/pichochip.c (picochip_function_arg_boundary): Fix thinko in declaration. (picochip_function_arg, picochip_arg_partial_bytes): Pass proper number of parameters to picochip_function_arg_boundary. (picochip_arg_advance): Likewise. From-SVN: r166853
-rw-r--r--gcc/ChangeLog10
-rw-r--r--gcc/config/picochip/picochip.c10
-rw-r--r--gcc/config/xtensa/xtensa.c2
3 files changed, 16 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4b8c9a1..af48a1c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,15 @@
2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
+ * config/xtensa/xtensa.c (function_arg_boundary): Really rename to...
+ (xtensa_function_arg_boundary): ...this.
+ * config/picochip/pichochip.c (picochip_function_arg_boundary): Fix
+ thinko in declaration.
+ (picochip_function_arg, picochip_arg_partial_bytes): Pass proper
+ number of parameters to picochip_function_arg_boundary.
+ (picochip_arg_advance): Likewise.
+
+2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
+
PR target/46512
* config/pa/pa.c (pa_function_arg_boundary): Move TYPE_SIZE accesses
under check for type.
diff --git a/gcc/config/picochip/picochip.c b/gcc/config/picochip/picochip.c
index f7c5baf..8550285 100644
--- a/gcc/config/picochip/picochip.c
+++ b/gcc/config/picochip/picochip.c
@@ -89,8 +89,8 @@ rtx picochip_incoming_function_arg (CUMULATIVE_ARGS * p_cum,
const_tree type, bool named);
void picochip_arg_advance (CUMULATIVE_ARGS * p_cum, enum machine_mode mode,
const_tree type, bool named);
-unsigned int picochip_function_boundary (enum machine_mode mode,
- const_tree type);
+unsigned int picochip_function_arg_boundary (enum machine_mode mode,
+ const_tree type);
int picochip_sched_lookahead (void);
int picochip_sched_issue_rate (void);
@@ -856,7 +856,7 @@ picochip_function_arg (CUMULATIVE_ARGS *cum, enum machine_mode mode,
/* Compute the alignment and size of the parameter. */
type_align_in_units =
- picochip_function_arg_boundary (mode) / BITS_PER_UNIT;
+ picochip_function_arg_boundary (mode, type) / BITS_PER_UNIT;
type_size_in_units = picochip_compute_arg_size (type, mode);
/* Compute the correct offset (i.e., ensure that the offset meets
@@ -989,7 +989,7 @@ picochip_arg_partial_bytes (CUMULATIVE_ARGS * p_cum, enum machine_mode mode,
/* Compute the alignment and size of the parameter. */
type_align_in_units =
- picochip_function_arg_boundary (mode) / BITS_PER_UNIT;
+ picochip_function_arg_boundary (mode, type) / BITS_PER_UNIT;
type_size_in_units = picochip_compute_arg_size (type, mode);
/* Compute the correct offset (i.e., ensure that the offset meets
@@ -1043,7 +1043,7 @@ picochip_arg_advance (CUMULATIVE_ARGS *cum, enum machine_mode mode,
/* Compute the alignment and size of the parameter. */
type_align_in_units =
- picochip_function_arg_boundary (mode) / BITS_PER_UNIT;
+ picochip_function_arg_boundary (mode, type) / BITS_PER_UNIT;
type_size_in_units = picochip_compute_arg_size (type, mode);
/* Compute the correct offset (i.e., ensure that the offset meets
diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c
index 9e7c612..67d367c 100644
--- a/gcc/config/xtensa/xtensa.c
+++ b/gcc/config/xtensa/xtensa.c
@@ -2098,7 +2098,7 @@ xtensa_function_incoming_arg (CUMULATIVE_ARGS *cum, enum machine_mode mode,
}
static unsigned int
-function_arg_boundary (enum machine_mode mode, const_tree type)
+xtensa_function_arg_boundary (enum machine_mode mode, const_tree type)
{
unsigned int alignment;