summaryrefslogtreecommitdiff
path: root/gcc/dbxout.c
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2013-09-07 09:23:32 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2013-09-07 09:23:32 +0000
commit796b6678b7a5be26e44d64a3b299ac5a8f0877e2 (patch)
tree4e81b82b3b3a04b8f3a48aa7c3dc3d336f8a185c /gcc/dbxout.c
parente02d19d4264184dbf4aec0a7f1a31db9a6471ff4 (diff)
downloadgcc-796b6678b7a5be26e44d64a3b299ac5a8f0877e2.tar.gz
Reorganise wide-int classes so that they are all instantiations of a
generic_wide_int class, parameterised by storage. Move all real work outside the main wide_int classes into separate functions. Add a wi:: namespace. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/wide-int@202354 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r--gcc/dbxout.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index 2c6a59fbed8..b311e8dcd3d 100644
--- a/gcc/dbxout.c
+++ b/gcc/dbxout.c
@@ -701,7 +701,7 @@ stabstr_O (tree cst)
/* If the value is zero, the base indicator will serve as the value
all by itself. */
- if (wcst.zero_p ())
+ if (wcst == 0)
return;
/* GDB wants constants with no extra leading "1" bits, so
@@ -709,19 +709,19 @@ stabstr_O (tree cst)
present. */
if (res_pres == 1)
{
- digit = wcst.extract_to_hwi (prec - 1, 1) & 0x1;
+ digit = wi::extract_uhwi (wcst, prec - 1, 1);
stabstr_C ('0' + digit);
}
else if (res_pres == 2)
{
- digit = wcst.extract_to_hwi (prec - 2, 2) & 0x3;
+ digit = wi::extract_uhwi (wcst, prec - 2, 2);
stabstr_C ('0' + digit);
}
prec -= res_pres;
for (i = prec - 3; i <= 0; i = i - 3)
{
- digit = wcst.extract_to_hwi (i, 3) & 0x7;
+ digit = wi::extract_uhwi (wcst, i, 3);
stabstr_C ('0' + digit);
}
}