diff options
author | Nathan Froyd <froydnj@codesourcery.com> | 2007-12-29 20:14:09 +0000 |
---|---|---|
committer | Nathan Froyd <froydnj@codesourcery.com> | 2007-12-29 20:14:09 +0000 |
commit | 623685e677019796e8213021963b655eef240e03 (patch) | |
tree | 06aa3596511c022a46ae252b719c1e95cba00105 | |
parent | cc496eefa50fd570602bb5f2ff314799be68fd5c (diff) |
* lto-read.c (input_integer): Use the correct shift amount.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@131223 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/lto/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/lto/lto-read.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index 09eb05d32af..6c38483cf34 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,5 +1,9 @@ 2007-12-29 Nathan Froyd <froydnj@codesourcery.com> + * lto-read.c (input_integer): Use the correct shift amount. + +2007-12-29 Nathan Froyd <froydnj@codesourcery.com> + * lto-lang.c (lto_pushdecl): Do nothing instead of aborting. (LANG_HOOKS_NAME): Define. diff --git a/gcc/lto/lto-read.c b/gcc/lto/lto-read.c index 727446a101d..2ab8d5c99a3 100644 --- a/gcc/lto/lto-read.c +++ b/gcc/lto/lto-read.c @@ -318,7 +318,7 @@ input_integer (struct input_block *ib, tree type) high = -1; } else if (shift < (2 * HOST_BITS_PER_WIDE_INT)) - high |= - ((HOST_WIDE_INT)1 << shift); + high |= - ((HOST_WIDE_INT)1 << (shift - HOST_BITS_PER_WIDE_INT)); } #ifdef LTO_STREAM_DEBUGGING |