diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-10-23 12:12:09 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-10-23 12:12:09 +0000 |
commit | cc5bf44923387bd79ed1834707b6462ad3d9b022 (patch) | |
tree | 57bcca6fb68e7c0a7b2adddcdc4cfc3e5b6cb1c6 /gcc/alias.c | |
parent | 5b2cae25833ee97389f5271a777b44f0cafea204 (diff) | |
download | gcc-cc5bf44923387bd79ed1834707b6462ad3d9b022.tar.gz |
Always treat trees as having their native precision by default.
Add wi::extend() and wi::address() to convert them to max_wide_int
and addr_wide_int.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/wide-int@203961 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/alias.c')
-rw-r--r-- | gcc/alias.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/alias.c b/gcc/alias.c index ee24a575509..fff8da4ae25 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -2352,9 +2352,9 @@ adjust_offset_for_component_ref (tree x, bool *known_p, return; } - woffset = xoffset; - woffset += wi::udiv_trunc (addr_wide_int (DECL_FIELD_BIT_OFFSET (field)), - BITS_PER_UNIT); + woffset = (wi::address (xoffset) + + wi::udiv_trunc (wi::address (DECL_FIELD_BIT_OFFSET (field)), + BITS_PER_UNIT)); if (!wi::fits_uhwi_p (woffset)) { |