From eaf00f5717c138e8e75fc3265b79295208ab5b94 Mon Sep 17 00:00:00 2001 From: bje <bje@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Tue, 24 Jan 2006 22:56:55 +0000 Subject: [PATCH] * dfp.c (dfp_byte_swap): Use uint32_t and not unsigned long. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110184 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 12 ++++++++---- gcc/dfp.c | 8 ++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2132888d522c..f9df376720a9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2006-01-25 Ben Elliston <bje@au.ibm.com> + + * dfp.c (dfp_byte_swap): Use uint32_t and not unsigned long. + 2006-01-24 Andrew Pinski <pinskia@physics.uc.edu> PR tree-opt/25860 @@ -1634,10 +1638,10 @@ 2006-01-16 Rafael Ãvila de EspÃndola <rafael.espindola@gmail.com> - * cppspec.c (lang_specific_spec_functions): remove - * gcc.c (lookup_spec_function): use static_spec_functions directelly - * gcc.h (lang_specific_spec_functions): remove - * gccspec.c (lang_specific_spec_functions): remove + * cppspec.c (lang_specific_spec_functions): Remove. + * gcc.c (lookup_spec_function): Use static_spec_functions directly. + * gcc.h (lang_specific_spec_functions): Remove. + * gccspec.c (lang_specific_spec_functions): Remove. 2005-01-16 Paolo Bonzini <bonzini@gnu.org> diff --git a/gcc/dfp.c b/gcc/dfp.c index 55c6f2de4f59..804f2031ca18 100644 --- a/gcc/dfp.c +++ b/gcc/dfp.c @@ -36,13 +36,13 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA #include "decimal32.h" #include "decNumber.h" -static unsigned long -dfp_byte_swap (unsigned long in) +static uint32_t +dfp_byte_swap (uint32_t in) { - unsigned long out; + uint32_t out = 0; unsigned char *p = (unsigned char *) &out; union { - unsigned long i; + uint32_t i; unsigned char b[4]; } u; -- GitLab