From: DJ Delorie Date: Thu, 7 Feb 2013 04:43:49 +0000 (+0000) Subject: merge from gcc X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0f5f799a26ee1ab0e591247bb54827a9010bd7b9;p=binutils-gdb.git merge from gcc --- diff --git a/libdecnumber/ChangeLog b/libdecnumber/ChangeLog index 138aa6edc8f..87e7e11bd5b 100644 --- a/libdecnumber/ChangeLog +++ b/libdecnumber/ChangeLog @@ -1,3 +1,7 @@ +2013-02-06 Richard Sandiford + + Update copyright years. + 2012-11-04 Thomas Schwinge * configure: Regenerate. diff --git a/libdecnumber/Makefile.in b/libdecnumber/Makefile.in index c64f22c984e..e67ff272f72 100644 --- a/libdecnumber/Makefile.in +++ b/libdecnumber/Makefile.in @@ -1,8 +1,7 @@ # @configure_input@ # Makefile for libdecnumber. Run 'configure' to generate Makefile from Makefile.in -# Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 -# Free Software Foundation, Inc. +# Copyright (C) 2005-2013 Free Software Foundation, Inc. #This file is part of GCC. diff --git a/libdecnumber/bid/bid-dpd.h b/libdecnumber/bid/bid-dpd.h index e100cc916ac..3889bcafa15 100644 --- a/libdecnumber/bid/bid-dpd.h +++ b/libdecnumber/bid/bid-dpd.h @@ -1,5 +1,4 @@ -/* Copyright (C) 2007, 2009 - Free Software Foundation, Inc. +/* Copyright (C) 2007-2013 Free Software Foundation, Inc. This file is part of GCC. diff --git a/libdecnumber/bid/bid2dpd_dpd2bid.c b/libdecnumber/bid/bid2dpd_dpd2bid.c index 7e55eb01514..661de889372 100644 --- a/libdecnumber/bid/bid2dpd_dpd2bid.c +++ b/libdecnumber/bid/bid2dpd_dpd2bid.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2007, 2009 Free Software Foundation, Inc. +/* Copyright (C) 2007-2013 Free Software Foundation, Inc. This file is part of GCC. diff --git a/libdecnumber/bid/bid2dpd_dpd2bid.h b/libdecnumber/bid/bid2dpd_dpd2bid.h index b501bdcc0c3..af6c541c518 100644 --- a/libdecnumber/bid/bid2dpd_dpd2bid.h +++ b/libdecnumber/bid/bid2dpd_dpd2bid.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2007, 2009 Free Software Foundation, Inc. +/* Copyright (C) 2007-2013 Free Software Foundation, Inc. This file is part of GCC. diff --git a/libdecnumber/bid/decimal128.c b/libdecnumber/bid/decimal128.c index db30bd39d6d..f958a534b10 100644 --- a/libdecnumber/bid/decimal128.c +++ b/libdecnumber/bid/decimal128.c @@ -1,5 +1,4 @@ -/* Copyright (C) 2007, 2009 - Free Software Foundation, Inc. +/* Copyright (C) 2007-2013 Free Software Foundation, Inc. This file is part of GCC. diff --git a/libdecnumber/bid/decimal32.c b/libdecnumber/bid/decimal32.c index 1cd760759c2..51bd49b6310 100644 --- a/libdecnumber/bid/decimal32.c +++ b/libdecnumber/bid/decimal32.c @@ -1,5 +1,4 @@ -/* Copyright (C) 2007, 2009 - Free Software Foundation, Inc. +/* Copyright (C) 2007-2013 Free Software Foundation, Inc. This file is part of GCC. diff --git a/libdecnumber/bid/decimal64.c b/libdecnumber/bid/decimal64.c index fd637388a25..56f96a8c7c5 100644 --- a/libdecnumber/bid/decimal64.c +++ b/libdecnumber/bid/decimal64.c @@ -1,5 +1,4 @@ -/* Copyright (C) 2007, 2009 - Free Software Foundation, Inc. +/* Copyright (C) 2007-2013 Free Software Foundation, Inc. This file is part of GCC. diff --git a/libdecnumber/bid/host-ieee128.c b/libdecnumber/bid/host-ieee128.c index 9e2d005cdc7..ba5092c3e63 100644 --- a/libdecnumber/bid/host-ieee128.c +++ b/libdecnumber/bid/host-ieee128.c @@ -1,5 +1,5 @@ /* This is a software decimal floating point library. - Copyright (C) 2007, 2009 Free Software Foundation, Inc. + Copyright (C) 2007-2013 Free Software Foundation, Inc. This file is part of GCC. diff --git a/libdecnumber/bid/host-ieee32.c b/libdecnumber/bid/host-ieee32.c index 1de6dc2eccd..650051eb117 100644 --- a/libdecnumber/bid/host-ieee32.c +++ b/libdecnumber/bid/host-ieee32.c @@ -1,5 +1,5 @@ /* This is a software decimal floating point library. - Copyright (C) 2007, 2009 Free Software Foundation, Inc. + Copyright (C) 2007-2013 Free Software Foundation, Inc. This file is part of GCC. diff --git a/libdecnumber/bid/host-ieee64.c b/libdecnumber/bid/host-ieee64.c index 825eb0ab13c..ede5cd84069 100644 --- a/libdecnumber/bid/host-ieee64.c +++ b/libdecnumber/bid/host-ieee64.c @@ -1,5 +1,5 @@ /* This is a software decimal floating point library. - Copyright (C) 2007, 2009 Free Software Foundation, Inc. + Copyright (C) 2007-2013 Free Software Foundation, Inc. This file is part of GCC. diff --git a/libdecnumber/configure.ac b/libdecnumber/configure.ac index 87820bf2205..a6f7f07118c 100644 --- a/libdecnumber/configure.ac +++ b/libdecnumber/configure.ac @@ -1,7 +1,7 @@ # configure.ac for libdecnumber -*- Autoconf -*- # Process this file with autoconf to generate a configuration script. -# Copyright 2005, 2006, 2009 Free Software Foundation, Inc. +# Copyright (C) 2005-2013 Free Software Foundation, Inc. # This file is part of GCC. diff --git a/libdecnumber/dconfig.h b/libdecnumber/dconfig.h index 975f9a1c891..de634b6ae2b 100644 --- a/libdecnumber/dconfig.h +++ b/libdecnumber/dconfig.h @@ -1,5 +1,5 @@ /* Configure decNumber for either host or target. - Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. + Copyright (C) 2008-2013 Free Software Foundation, Inc. This file is part of GCC. diff --git a/libdecnumber/decBasic.c b/libdecnumber/decBasic.c index 75ce17bce17..6fbf48eb416 100644 --- a/libdecnumber/decBasic.c +++ b/libdecnumber/decBasic.c @@ -1,5 +1,5 @@ /* Common base code for the decNumber C Library. - Copyright (C) 2007, 2009 Free Software Foundation, Inc. + Copyright (C) 2007-2013 Free Software Foundation, Inc. Contributed by IBM Corporation. Author Mike Cowlishaw. This file is part of GCC. diff --git a/libdecnumber/decCommon.c b/libdecnumber/decCommon.c index add1f2ed716..42b05b235ed 100644 --- a/libdecnumber/decCommon.c +++ b/libdecnumber/decCommon.c @@ -1,5 +1,5 @@ /* Common code for fixed-size types in the decNumber C Library. - Copyright (C) 2007, 2009 Free Software Foundation, Inc. + Copyright (C) 2007-2013 Free Software Foundation, Inc. Contributed by IBM Corporation. Author Mike Cowlishaw. This file is part of GCC. diff --git a/libdecnumber/decContext.c b/libdecnumber/decContext.c index aa8195928e4..d0e2e2876d6 100644 --- a/libdecnumber/decContext.c +++ b/libdecnumber/decContext.c @@ -1,5 +1,5 @@ /* Decimal context module for the decNumber C Library. - Copyright (C) 2005, 2007, 2009 Free Software Foundation, Inc. + Copyright (C) 2005-2013 Free Software Foundation, Inc. Contributed by IBM Corporation. Author Mike Cowlishaw. This file is part of GCC. diff --git a/libdecnumber/decContext.h b/libdecnumber/decContext.h index ae0ca07b859..fed7a0e379c 100644 --- a/libdecnumber/decContext.h +++ b/libdecnumber/decContext.h @@ -1,5 +1,5 @@ /* Decimal context header module for the decNumber C Library. - Copyright (C) 2005, 2007, 2009 Free Software Foundation, Inc. + Copyright (C) 2005-2013 Free Software Foundation, Inc. Contributed by IBM Corporation. Author Mike Cowlishaw. This file is part of GCC. diff --git a/libdecnumber/decDPD.h b/libdecnumber/decDPD.h index db4d3434d03..83359df7aef 100644 --- a/libdecnumber/decDPD.h +++ b/libdecnumber/decDPD.h @@ -1,5 +1,5 @@ /* Conversion lookup tables for the decNumber C Library. - Copyright (C) 2007, 2009 Free Software Foundation, Inc. + Copyright (C) 2007-2013 Free Software Foundation, Inc. Contributed by IBM Corporation. Author Mike Cowlishaw. This file is part of GCC. diff --git a/libdecnumber/decDouble.c b/libdecnumber/decDouble.c index 9af8e15c6c5..b88786974c9 100644 --- a/libdecnumber/decDouble.c +++ b/libdecnumber/decDouble.c @@ -1,5 +1,5 @@ /* decDouble module for the decNumber C Library. - Copyright (C) 2007, 2009 Free Software Foundation, Inc. + Copyright (C) 2007-2013 Free Software Foundation, Inc. Contributed by IBM Corporation. Author Mike Cowlishaw. This file is part of GCC. diff --git a/libdecnumber/decDouble.h b/libdecnumber/decDouble.h index 0aaf66ec62c..fa664807408 100644 --- a/libdecnumber/decDouble.h +++ b/libdecnumber/decDouble.h @@ -1,5 +1,5 @@ /* decDouble module header for the decNumber C Library. - Copyright (C) 2007, 2009 Free Software Foundation, Inc. + Copyright (C) 2007-2013 Free Software Foundation, Inc. Contributed by IBM Corporation. Author Mike Cowlishaw. This file is part of GCC. diff --git a/libdecnumber/decExcept.c b/libdecnumber/decExcept.c index 99c20db4313..945a7f244ea 100644 --- a/libdecnumber/decExcept.c +++ b/libdecnumber/decExcept.c @@ -1,5 +1,5 @@ /* Temporary library support for decimal floating point. - Copyright (C) 2005, 2006, 2009 Free Software Foundation, Inc. + Copyright (C) 2005-2013 Free Software Foundation, Inc. This file is part of GCC. diff --git a/libdecnumber/decExcept.h b/libdecnumber/decExcept.h index 73eb9af14ef..83a70c96070 100644 --- a/libdecnumber/decExcept.h +++ b/libdecnumber/decExcept.h @@ -1,5 +1,5 @@ /* Temporary library support for decimal floating point. - Copyright (C) 2006, 2009 Free Software Foundation, Inc. + Copyright (C) 2006-2013 Free Software Foundation, Inc. This file is part of GCC. diff --git a/libdecnumber/decLibrary.c b/libdecnumber/decLibrary.c index 323a0d6acf4..3b860de5811 100644 --- a/libdecnumber/decLibrary.c +++ b/libdecnumber/decLibrary.c @@ -1,5 +1,5 @@ /* Temporary library support for decimal floating point. - Copyright (C) 2005, 2006, 2009 Free Software Foundation, Inc. + Copyright (C) 2005-2013 Free Software Foundation, Inc. This file is part of GCC. diff --git a/libdecnumber/decNumber.c b/libdecnumber/decNumber.c index cf2d32e40d4..72cdbf2ac1f 100644 --- a/libdecnumber/decNumber.c +++ b/libdecnumber/decNumber.c @@ -1,5 +1,5 @@ /* Decimal number arithmetic module for the decNumber C Library. - Copyright (C) 2005, 2007, 2009 Free Software Foundation, Inc. + Copyright (C) 2005-2013 Free Software Foundation, Inc. Contributed by IBM Corporation. Author Mike Cowlishaw. This file is part of GCC. diff --git a/libdecnumber/decNumber.h b/libdecnumber/decNumber.h index 05ccb9fdf56..90087df437c 100644 --- a/libdecnumber/decNumber.h +++ b/libdecnumber/decNumber.h @@ -1,5 +1,5 @@ /* Decimal number arithmetic module header for the decNumber C Library. - Copyright (C) 2005, 2007, 2009 Free Software Foundation, Inc. + Copyright (C) 2005-2013 Free Software Foundation, Inc. Contributed by IBM Corporation. Author Mike Cowlishaw. This file is part of GCC. diff --git a/libdecnumber/decNumberLocal.h b/libdecnumber/decNumberLocal.h index dca79e51db7..c8dbafc3f4b 100644 --- a/libdecnumber/decNumberLocal.h +++ b/libdecnumber/decNumberLocal.h @@ -1,5 +1,5 @@ /* Local definitions for the decNumber C Library. - Copyright (C) 2007, 2009 Free Software Foundation, Inc. + Copyright (C) 2007-2013 Free Software Foundation, Inc. Contributed by IBM Corporation. Author Mike Cowlishaw. This file is part of GCC. diff --git a/libdecnumber/decPacked.c b/libdecnumber/decPacked.c index 3e77bad13e8..193af834023 100644 --- a/libdecnumber/decPacked.c +++ b/libdecnumber/decPacked.c @@ -1,5 +1,5 @@ /* Packed decimal conversion module for the decNumber C Library. - Copyright (C) 2007, 2009 Free Software Foundation, Inc. + Copyright (C) 2007-2013 Free Software Foundation, Inc. Contributed by IBM Corporation. Author Mike Cowlishaw. This file is part of GCC. diff --git a/libdecnumber/decPacked.h b/libdecnumber/decPacked.h index 539653b1088..94b60fae114 100644 --- a/libdecnumber/decPacked.h +++ b/libdecnumber/decPacked.h @@ -1,5 +1,5 @@ /* Packed decimal conversion module header for the decNumber C Library. - Copyright (C) 2007, 2009 Free Software Foundation, Inc. + Copyright (C) 2007-2013 Free Software Foundation, Inc. Contributed by IBM Corporation. Author Mike Cowlishaw. This file is part of GCC. diff --git a/libdecnumber/decQuad.c b/libdecnumber/decQuad.c index dcd670b53fc..e18e9dfcce6 100644 --- a/libdecnumber/decQuad.c +++ b/libdecnumber/decQuad.c @@ -1,5 +1,5 @@ /* decQuad module for the decNumber C Library. - Copyright (C) 2007, 2009 Free Software Foundation, Inc. + Copyright (C) 2007-2013 Free Software Foundation, Inc. Contributed by IBM Corporation. Author Mike Cowlishaw. This file is part of GCC. diff --git a/libdecnumber/decQuad.h b/libdecnumber/decQuad.h index 60cc632cbe5..d05c945f373 100644 --- a/libdecnumber/decQuad.h +++ b/libdecnumber/decQuad.h @@ -1,5 +1,5 @@ /* decQuad module header for the decNumber C Library. - Copyright (C) 2007, 2009 Free Software Foundation, Inc. + Copyright (C) 2007-2013 Free Software Foundation, Inc. Contributed by IBM Corporation. Author Mike Cowlishaw. This file is part of GCC. diff --git a/libdecnumber/decRound.c b/libdecnumber/decRound.c index 811bea81d02..1f4054187b4 100644 --- a/libdecnumber/decRound.c +++ b/libdecnumber/decRound.c @@ -1,6 +1,6 @@ /* Internal testing support for rounding for decimal float. - Copyright (C) 2005, 2006, 2009 Free Software Foundation, Inc. + Copyright (C) 2005-2013 Free Software Foundation, Inc. This file is part of GCC. diff --git a/libdecnumber/decRound.h b/libdecnumber/decRound.h index c17b6d12026..44097ec49bc 100644 --- a/libdecnumber/decRound.h +++ b/libdecnumber/decRound.h @@ -1,6 +1,6 @@ /* Internal testing support for rounding for decimal float. - Copyright (C) 2006, 2009 Free Software Foundation, Inc. + Copyright (C) 2006-2013 Free Software Foundation, Inc. This file is part of GCC. diff --git a/libdecnumber/decSingle.c b/libdecnumber/decSingle.c index c79b7f1a9ad..cd6f12b3df6 100644 --- a/libdecnumber/decSingle.c +++ b/libdecnumber/decSingle.c @@ -1,5 +1,5 @@ /* decSingle module for the decNumber C Library. - Copyright (C) 2007, 2009 Free Software Foundation, Inc. + Copyright (C) 2007-2013 Free Software Foundation, Inc. Contributed by IBM Corporation. Author Mike Cowlishaw. This file is part of GCC. diff --git a/libdecnumber/decSingle.h b/libdecnumber/decSingle.h index 3904d945a55..05b54ae6732 100644 --- a/libdecnumber/decSingle.h +++ b/libdecnumber/decSingle.h @@ -1,5 +1,5 @@ /* decSingle module header for the decNumber C Library. - Copyright (C) 2005, 2009 Free Software Foundation, Inc. + Copyright (C) 2005-2013 Free Software Foundation, Inc. Contributed by IBM Corporation. Author Mike Cowlishaw. This file is part of GCC. diff --git a/libdecnumber/dpd/decimal128.c b/libdecnumber/dpd/decimal128.c index cd2db938d95..92af60f2bd5 100644 --- a/libdecnumber/dpd/decimal128.c +++ b/libdecnumber/dpd/decimal128.c @@ -1,5 +1,5 @@ /* Decimal 128-bit format module for the decNumber C Library. - Copyright (C) 2005, 2007, 2009 Free Software Foundation, Inc. + Copyright (C) 2005-2013 Free Software Foundation, Inc. Contributed by IBM Corporation. Author Mike Cowlishaw. This file is part of GCC. diff --git a/libdecnumber/dpd/decimal128.h b/libdecnumber/dpd/decimal128.h index 3c83c81fcaa..42da6fccb54 100644 --- a/libdecnumber/dpd/decimal128.h +++ b/libdecnumber/dpd/decimal128.h @@ -1,5 +1,5 @@ /* Decimal 128-bit format module header for the decNumber C Library. - Copyright (C) 2005, 2007, 2009 Free Software Foundation, Inc. + Copyright (C) 2005-2013 Free Software Foundation, Inc. Contributed by IBM Corporation. Author Mike Cowlishaw. This file is part of GCC. diff --git a/libdecnumber/dpd/decimal128Local.h b/libdecnumber/dpd/decimal128Local.h index 1963678cddb..e27bcc531ab 100644 --- a/libdecnumber/dpd/decimal128Local.h +++ b/libdecnumber/dpd/decimal128Local.h @@ -1,5 +1,5 @@ /* Local definitions for use with the decNumber C Library. - Copyright (C) 2007, 2009 Free Software Foundation, Inc. + Copyright (C) 2007-2013 Free Software Foundation, Inc. This file is part of GCC. diff --git a/libdecnumber/dpd/decimal32.c b/libdecnumber/dpd/decimal32.c index 9084ac868b8..6f034d0e673 100644 --- a/libdecnumber/dpd/decimal32.c +++ b/libdecnumber/dpd/decimal32.c @@ -1,5 +1,5 @@ /* Decimal 32-bit format module for the decNumber C Library. - Copyright (C) 2005, 2007, 2009 Free Software Foundation, Inc. + Copyright (C) 2005-2013 Free Software Foundation, Inc. Contributed by IBM Corporation. Author Mike Cowlishaw. This file is part of GCC. diff --git a/libdecnumber/dpd/decimal32.h b/libdecnumber/dpd/decimal32.h index 94ddeb80f3f..79f95eae20e 100644 --- a/libdecnumber/dpd/decimal32.h +++ b/libdecnumber/dpd/decimal32.h @@ -1,5 +1,5 @@ /* Decimal 32-bit format module header for the decNumber C Library. - Copyright (C) 2005, 2007, 2009 Free Software Foundation, Inc. + Copyright (C) 2005-2013 Free Software Foundation, Inc. Contributed by IBM Corporation. Author Mike Cowlishaw. This file is part of GCC. diff --git a/libdecnumber/dpd/decimal64.c b/libdecnumber/dpd/decimal64.c index d5153a2b114..0815ba21418 100644 --- a/libdecnumber/dpd/decimal64.c +++ b/libdecnumber/dpd/decimal64.c @@ -1,5 +1,5 @@ /* Decimal 64-bit format module for the decNumber C Library. - Copyright (C) 2005, 2007, 2009 Free Software Foundation, Inc. + Copyright (C) 2005-2013 Free Software Foundation, Inc. Contributed by IBM Corporation. Author Mike Cowlishaw. This file is part of GCC. diff --git a/libdecnumber/dpd/decimal64.h b/libdecnumber/dpd/decimal64.h index c501415381e..8a0b617ac63 100644 --- a/libdecnumber/dpd/decimal64.h +++ b/libdecnumber/dpd/decimal64.h @@ -1,5 +1,5 @@ /* Decimal 64-bit format module header for the decNumber C Library. - Copyright (C) 2005, 2007, 2009 Free Software Foundation, Inc. + Copyright (C) 2005-2013 Free Software Foundation, Inc. Contributed by IBM Corporation. Author Mike Cowlishaw. This file is part of GCC. diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 2a91c419dde..cbcd1e25948 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,6 +1,10 @@ 2013-01-31 Kai Tietz - PR other/543413 + PR other/54620 + * sha1.c (sha1_process_block): Handle case that size_t is + a wider-integer-scalar as a 32-bit unsigned integer. + + PR other/53413 * md5.c (md5_process_block): Handle case that size_t is a wider-integer-scalar a 32-bit unsigned integer. diff --git a/libiberty/sha1.c b/libiberty/sha1.c index 6a25ab23992..617e743a15e 100644 --- a/libiberty/sha1.c +++ b/libiberty/sha1.c @@ -300,8 +300,7 @@ sha1_process_block (const void *buffer, size_t len, struct sha1_ctx *ctx) length of the file up to 2^64 bits. Here we only compute the number of bytes. Do a double word increment. */ ctx->total[0] += len; - if (ctx->total[0] < len) - ++ctx->total[1]; + ctx->total[1] += ((len >> 31) >> 1) + (ctx->total[0] < len); #define rol(x, n) (((x) << (n)) | ((sha1_uint32) (x) >> (32 - (n))))