This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [PATCH] pa-RISC correct conversion (long double -> unsigned int)


Jeffrey A Law wrote:
> 
>   In message <3A887555.7E95FC3C@redhat.com>you write:
>   > This is a multi-part message in MIME format.
>    > > The PA port of GCC does not handle the conversion of TFmode (16-byte
>   > > double) to unsigned SImode. This presents a problem with some code in
>   > > GDB because the code in GDB attempt to ensure that the FP number is
>   > > between 2^31 and 2^32 in value.  This is too large to fit in a signed
>   > > 32-bit quantity, but will fit in an unsigned 32-bit quantity. The
>   > > attached program x3.c demonstrates the problem.  When executed the x3.c
>   > > program will get an error in the library. The HP library doesn't have a
>   > > 16-byte double to unsigned 32-bit quantity conversion, and a function
>   > > had to be written to handle this correctly in gcc.
>   > >
>   > > The patch is attached to this mail and below is the change log.  The
>   > > patch was tested with the current version of fsf and corrected the
>   > > problem.  Is it okay to apply this patch?
>   > >
>   > > 2001-02-11  Will Cohen  <wcohen@redhat.com>
>   > >
>   > >         * config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_usgl): New function.
>   > >         * config/pa/long_double.h (FIXUNS_TRUNCTFSI2_LIBCALL): Added.
>   > >         (INIT_TARGET_OPTABS): Use FIXUNS_TRUNCTFSI2_LIBCALL for
>   > >         fixunstfsi_libfunc.
> This is fine.  I'm going to go ahead and install it into the source
> tree.  Thanks!
> 
> It would also be good to convert your testcase into something we can
> add to the dejagnu regression testsuite.
> jeff

I have an regression test where is the preferred place to install it,
gcc/gcc/testsuite/gcc.c-torture/execute? -Will


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]