merge from gcc

This commit is contained in:
DJ Delorie 2013-02-07 04:43:49 +00:00
parent 1965d5f2d0
commit 0f5f799a26
43 changed files with 50 additions and 48 deletions

View File

@ -1,3 +1,7 @@
2013-02-06 Richard Sandiford <rdsandiford@googlemail.com>
Update copyright years.
2012-11-04 Thomas Schwinge <thomas@codesourcery.com> 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
* configure: Regenerate. * configure: Regenerate.

View File

@ -1,8 +1,7 @@
# @configure_input@ # @configure_input@
# Makefile for libdecnumber. Run 'configure' to generate Makefile from Makefile.in # Makefile for libdecnumber. Run 'configure' to generate Makefile from Makefile.in
# Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 # Copyright (C) 2005-2013 Free Software Foundation, Inc.
# Free Software Foundation, Inc.
#This file is part of GCC. #This file is part of GCC.

View File

@ -1,5 +1,4 @@
/* Copyright (C) 2007, 2009 /* Copyright (C) 2007-2013 Free Software Foundation, Inc.
Free Software Foundation, Inc.
This file is part of GCC. This file is part of GCC.

View File

@ -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. This file is part of GCC.

View File

@ -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. This file is part of GCC.

View File

@ -1,5 +1,4 @@
/* Copyright (C) 2007, 2009 /* Copyright (C) 2007-2013 Free Software Foundation, Inc.
Free Software Foundation, Inc.
This file is part of GCC. This file is part of GCC.

View File

@ -1,5 +1,4 @@
/* Copyright (C) 2007, 2009 /* Copyright (C) 2007-2013 Free Software Foundation, Inc.
Free Software Foundation, Inc.
This file is part of GCC. This file is part of GCC.

View File

@ -1,5 +1,4 @@
/* Copyright (C) 2007, 2009 /* Copyright (C) 2007-2013 Free Software Foundation, Inc.
Free Software Foundation, Inc.
This file is part of GCC. This file is part of GCC.

View File

@ -1,5 +1,5 @@
/* This is a software decimal floating point library. /* 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. This file is part of GCC.

View File

@ -1,5 +1,5 @@
/* This is a software decimal floating point library. /* 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. This file is part of GCC.

View File

@ -1,5 +1,5 @@
/* This is a software decimal floating point library. /* 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. This file is part of GCC.

View File

@ -1,7 +1,7 @@
# configure.ac for libdecnumber -*- Autoconf -*- # configure.ac for libdecnumber -*- Autoconf -*-
# Process this file with autoconf to generate a configuration script. # 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. # This file is part of GCC.

View File

@ -1,5 +1,5 @@
/* Configure decNumber for either host or target. /* 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. This file is part of GCC.

View File

@ -1,5 +1,5 @@
/* Common base code for the decNumber C Library. /* 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. Contributed by IBM Corporation. Author Mike Cowlishaw.
This file is part of GCC. This file is part of GCC.

View File

@ -1,5 +1,5 @@
/* Common code for fixed-size types in the decNumber C Library. /* 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. Contributed by IBM Corporation. Author Mike Cowlishaw.
This file is part of GCC. This file is part of GCC.

View File

@ -1,5 +1,5 @@
/* Decimal context module for the decNumber C Library. /* 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. Contributed by IBM Corporation. Author Mike Cowlishaw.
This file is part of GCC. This file is part of GCC.

View File

@ -1,5 +1,5 @@
/* Decimal context header module for the decNumber C Library. /* 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. Contributed by IBM Corporation. Author Mike Cowlishaw.
This file is part of GCC. This file is part of GCC.

View File

@ -1,5 +1,5 @@
/* Conversion lookup tables for the decNumber C Library. /* 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. Contributed by IBM Corporation. Author Mike Cowlishaw.
This file is part of GCC. This file is part of GCC.

View File

@ -1,5 +1,5 @@
/* decDouble module for the decNumber C Library. /* 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. Contributed by IBM Corporation. Author Mike Cowlishaw.
This file is part of GCC. This file is part of GCC.

View File

@ -1,5 +1,5 @@
/* decDouble module header for the decNumber C Library. /* 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. Contributed by IBM Corporation. Author Mike Cowlishaw.
This file is part of GCC. This file is part of GCC.

View File

@ -1,5 +1,5 @@
/* Temporary library support for decimal floating point. /* 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. This file is part of GCC.

View File

@ -1,5 +1,5 @@
/* Temporary library support for decimal floating point. /* 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. This file is part of GCC.

View File

@ -1,5 +1,5 @@
/* Temporary library support for decimal floating point. /* 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. This file is part of GCC.

View File

@ -1,5 +1,5 @@
/* Decimal number arithmetic module for the decNumber C Library. /* 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. Contributed by IBM Corporation. Author Mike Cowlishaw.
This file is part of GCC. This file is part of GCC.

View File

@ -1,5 +1,5 @@
/* Decimal number arithmetic module header for the decNumber C Library. /* 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. Contributed by IBM Corporation. Author Mike Cowlishaw.
This file is part of GCC. This file is part of GCC.

View File

@ -1,5 +1,5 @@
/* Local definitions for the decNumber C Library. /* 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. Contributed by IBM Corporation. Author Mike Cowlishaw.
This file is part of GCC. This file is part of GCC.

View File

@ -1,5 +1,5 @@
/* Packed decimal conversion module for the decNumber C Library. /* 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. Contributed by IBM Corporation. Author Mike Cowlishaw.
This file is part of GCC. This file is part of GCC.

View File

@ -1,5 +1,5 @@
/* Packed decimal conversion module header for the decNumber C Library. /* 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. Contributed by IBM Corporation. Author Mike Cowlishaw.
This file is part of GCC. This file is part of GCC.

View File

@ -1,5 +1,5 @@
/* decQuad module for the decNumber C Library. /* 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. Contributed by IBM Corporation. Author Mike Cowlishaw.
This file is part of GCC. This file is part of GCC.

View File

@ -1,5 +1,5 @@
/* decQuad module header for the decNumber C Library. /* 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. Contributed by IBM Corporation. Author Mike Cowlishaw.
This file is part of GCC. This file is part of GCC.

View File

@ -1,6 +1,6 @@
/* Internal testing support for rounding for decimal float. /* 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. This file is part of GCC.

View File

@ -1,6 +1,6 @@
/* Internal testing support for rounding for decimal float. /* 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. This file is part of GCC.

View File

@ -1,5 +1,5 @@
/* decSingle module for the decNumber C Library. /* 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. Contributed by IBM Corporation. Author Mike Cowlishaw.
This file is part of GCC. This file is part of GCC.

View File

@ -1,5 +1,5 @@
/* decSingle module header for the decNumber C Library. /* 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. Contributed by IBM Corporation. Author Mike Cowlishaw.
This file is part of GCC. This file is part of GCC.

View File

@ -1,5 +1,5 @@
/* Decimal 128-bit format module for the decNumber C Library. /* 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. Contributed by IBM Corporation. Author Mike Cowlishaw.
This file is part of GCC. This file is part of GCC.

View File

@ -1,5 +1,5 @@
/* Decimal 128-bit format module header for the decNumber C Library. /* 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. Contributed by IBM Corporation. Author Mike Cowlishaw.
This file is part of GCC. This file is part of GCC.

View File

@ -1,5 +1,5 @@
/* Local definitions for use with the decNumber C Library. /* 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. This file is part of GCC.

View File

@ -1,5 +1,5 @@
/* Decimal 32-bit format module for the decNumber C Library. /* 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. Contributed by IBM Corporation. Author Mike Cowlishaw.
This file is part of GCC. This file is part of GCC.

View File

@ -1,5 +1,5 @@
/* Decimal 32-bit format module header for the decNumber C Library. /* 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. Contributed by IBM Corporation. Author Mike Cowlishaw.
This file is part of GCC. This file is part of GCC.

View File

@ -1,5 +1,5 @@
/* Decimal 64-bit format module for the decNumber C Library. /* 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. Contributed by IBM Corporation. Author Mike Cowlishaw.
This file is part of GCC. This file is part of GCC.

View File

@ -1,5 +1,5 @@
/* Decimal 64-bit format module header for the decNumber C Library. /* 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. Contributed by IBM Corporation. Author Mike Cowlishaw.
This file is part of GCC. This file is part of GCC.

View File

@ -1,6 +1,10 @@
2013-01-31 Kai Tietz <ktietz@redhat.com> 2013-01-31 Kai Tietz <ktietz@redhat.com>
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 * md5.c (md5_process_block): Handle case that size_t is
a wider-integer-scalar a 32-bit unsigned integer. a wider-integer-scalar a 32-bit unsigned integer.

View File

@ -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 length of the file up to 2^64 bits. Here we only compute the
number of bytes. Do a double word increment. */ number of bytes. Do a double word increment. */
ctx->total[0] += len; ctx->total[0] += len;
if (ctx->total[0] < len) ctx->total[1] += ((len >> 31) >> 1) + (ctx->total[0] < len);
++ctx->total[1];
#define rol(x, n) (((x) << (n)) | ((sha1_uint32) (x) >> (32 - (n)))) #define rol(x, n) (((x) << (n)) | ((sha1_uint32) (x) >> (32 - (n))))