From: DJ Delorie Date: Thu, 7 Feb 2013 04:43:49 +0000 (+0000) Subject: merge from gcc X-Git-Url: https://git.efficios.com/?a=commitdiff_plain;h=0f5f799a26ee1ab0e591247bb54827a9010bd7b9;p=deliverable%2Fbinutils-gdb.git merge from gcc --- diff --git a/libdecnumber/ChangeLog b/libdecnumber/ChangeLog index 138aa6edc8..87e7e11bd5 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 c64f22c984..e67ff272f7 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 e100cc916a..3889bcafa1 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 7e55eb0151..661de88937 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 b501bdcc0c..af6c541c51 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 db30bd39d6..f958a534b1 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 1cd760759c..51bd49b631 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 fd637388a2..56f96a8c7c 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 9e2d005cdc..ba5092c3e6 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 1de6dc2ecc..650051eb11 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 825eb0ab13..ede5cd8406 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 87820bf220..a6f7f07118 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 975f9a1c89..de634b6ae2 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 75ce17bce1..6fbf48eb41 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 add1f2ed71..42b05b235e 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 aa8195928e..d0e2e2876d 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 ae0ca07b85..fed7a0e379 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 db4d3434d0..83359df7ae 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 9af8e15c6c..b88786974c 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 0aaf66ec62..fa66480740 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 99c20db431..945a7f244e 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 73eb9af14e..83a70c9607 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 323a0d6acf..3b860de581 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 cf2d32e40d..72cdbf2ac1 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 05ccb9fdf5..90087df437 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 dca79e51db..c8dbafc3f4 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 3e77bad13e..193af83402 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 539653b108..94b60fae11 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 dcd670b53f..e18e9dfcce 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 60cc632cbe..d05c945f37 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 811bea81d0..1f4054187b 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 c17b6d1202..44097ec49b 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 c79b7f1a9a..cd6f12b3df 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 3904d945a5..05b54ae673 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 cd2db938d9..92af60f2bd 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 3c83c81fca..42da6fccb5 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 1963678cdd..e27bcc531a 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 9084ac868b..6f034d0e67 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 94ddeb80f3..79f95eae20 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 d5153a2b11..0815ba2141 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 c501415381..8a0b617ac6 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 2a91c419dd..cbcd1e2594 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 6a25ab2399..617e743a15 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))))