From: Ben Elliston Date: Tue, 24 Jan 2006 22:56:55 +0000 (+1100) Subject: * dfp.c (dfp_byte_swap): Use uint32_t and not unsigned long. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7af1a0358e3d67ede761e29927d006b5aa952abf;p=platform%2Fupstream%2Fgcc.git * dfp.c (dfp_byte_swap): Use uint32_t and not unsigned long. From-SVN: r110184 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2132888..f9df376 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2006-01-25 Ben Elliston + + * dfp.c (dfp_byte_swap): Use uint32_t and not unsigned long. + 2006-01-24 Andrew Pinski PR tree-opt/25860 @@ -1634,10 +1638,10 @@ 2006-01-16 Rafael Ãvila de Espíndola - * 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 diff --git a/gcc/dfp.c b/gcc/dfp.c index 55c6f2d..804f203 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;