summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfroydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4>2011-03-23 01:34:55 +0000
committerfroydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4>2011-03-23 01:34:55 +0000
commit8761b9a16152e2a316ce8f06fe688281f38bfdf2 (patch)
tree993a3cca33dac86ae2ccf68ce7e3482d980b151b
parent60f4d9d2ec4190c7bc7ff8d5acb58c6b4c0e47c0 (diff)
downloadgcc-8761b9a16152e2a316ce8f06fe688281f38bfdf2.tar.gz
* libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
(__ffsDI2): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171338 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog20
-rw-r--r--gcc/libgcc2.c10
2 files changed, 25 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 430f2932c04..7790596163b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
+
+ * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
+ (__ffsDI2): Likewise.
+
2011-03-22 Richard Henderson <rth@redhat.com>
* config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
@@ -541,6 +546,21 @@
2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
+ * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
+ (FUNCTION_ARG_ADVANCE): Likewise.
+ * tm.texi.in: Change references to them to hook references.
+ * tm.texi: Regenerate.
+ * targhooks.c (default_function_arg): Eliminate check for target
+ macro.
+ (default_function_incoming_arg): Likewise.
+ (default_function_arg_advance): Likewise.
+ * target.def (function_arg, function_incoming_arg): Change to
+ DEFHOOK.
+ (function_arg_advance): Likewise.
+ * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
+
+2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
+
* tree.c (build_call_1): New function.
(build_call_valist, build_call_array_loc, build_call_vec): Call it.
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c
index 78d53f02aee..5312a10b110 100644
--- a/gcc/libgcc2.c
+++ b/gcc/libgcc2.c
@@ -407,7 +407,7 @@ __lshrdi3 (DWtype u, shift_count_type b)
return u;
const DWunion uu = {.ll = u};
- const shift_count_type bm = (sizeof (Wtype) * BITS_PER_UNIT) - b;
+ const shift_count_type bm = W_TYPE_SIZE - b;
DWunion w;
if (bm <= 0)
@@ -435,7 +435,7 @@ __ashldi3 (DWtype u, shift_count_type b)
return u;
const DWunion uu = {.ll = u};
- const shift_count_type bm = (sizeof (Wtype) * BITS_PER_UNIT) - b;
+ const shift_count_type bm = W_TYPE_SIZE - b;
DWunion w;
if (bm <= 0)
@@ -463,13 +463,13 @@ __ashrdi3 (DWtype u, shift_count_type b)
return u;
const DWunion uu = {.ll = u};
- const shift_count_type bm = (sizeof (Wtype) * BITS_PER_UNIT) - b;
+ const shift_count_type bm = W_TYPE_SIZE - b;
DWunion w;
if (bm <= 0)
{
/* w.s.high = 1..1 or 0..0 */
- w.s.high = uu.s.high >> (sizeof (Wtype) * BITS_PER_UNIT - 1);
+ w.s.high = uu.s.high >> (W_TYPE_SIZE - 1);
w.s.low = uu.s.high >> -bm;
}
else
@@ -534,7 +534,7 @@ __ffsDI2 (DWtype u)
if (uu.s.low != 0)
word = uu.s.low, add = 0;
else if (uu.s.high != 0)
- word = uu.s.high, add = BITS_PER_UNIT * sizeof (Wtype);
+ word = uu.s.high, add = W_TYPE_SIZE;
else
return 0;