* [wide-int] Restore SPARC build
@ 2013-11-03 10:23 Richard Sandiford
0 siblings, 0 replies; only message in thread
From: Richard Sandiford @ 2013-11-03 10:23 UTC (permalink / raw)
To: gcc-patches; +Cc: Kenneth Zadeck, mikestump
...since I'd forgotten to update it when doing the wi:: stuff.
Installed as obvious.
Richard
Index: gcc/config/sparc/sparc.c
===================================================================
--- gcc/config/sparc/sparc.c 2013-11-03 10:04:56.004019113 +0000
+++ gcc/config/sparc/sparc.c 2013-11-03 10:21:25.557126367 +0000
@@ -10621,26 +10621,26 @@ sparc_fold_builtin (tree fndecl, int n_a
&& TREE_CODE (arg2) == INTEGER_CST)
{
bool overflow, overall_overflow = false;
- wide_int result = wide_int::from_tree (arg2);
+ wide_int result = arg2;
wide_int tmp;
unsigned i;
for (i = 0; i < VECTOR_CST_NELTS (arg0); ++i)
{
- wide_int e0 = wide_int::from_tree (VECTOR_CST_ELT (arg0, i));
- wide_int e1 = wide_int::from_tree (VECTOR_CST_ELT (arg1, i));
+ tree e0 = VECTOR_CST_ELT (arg0, i);
+ tree e1 = VECTOR_CST_ELT (arg1, i);
- tmp = e1.neg (&overflow);
+ tmp = wi::neg (e1, &overflow);
overall_overflow |= overall_overflow;
- tmp = e0.add (tmp, SIGNED, &overflow);
+ tmp = wi::add (e0, tmp, SIGNED, &overflow);
overall_overflow |= overall_overflow;
- if (tmp.neg_p ())
+ if (wi::neg_p (tmp))
{
- tmp = tmp.neg (&overflow);
+ tmp = wi::neg (tmp, &overflow);
overall_overflow |= overall_overflow;
}
- result = result.add (tmp, SIGNED, &overflow);
+ result = wi::add (result, tmp, SIGNED, &overflow);
overall_overflow |= overall_overflow;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-11-03 10:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-03 10:23 [wide-int] Restore SPARC build Richard Sandiford
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).