This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] pa-RISC correct conversion (long double -> unsigned int)
- To: law at redhat dot com
- Subject: Re: [PATCH] pa-RISC correct conversion (long double -> unsigned int)
- From: Will Cohen <wcohen at redhat dot com>
- Date: Wed, 21 Feb 2001 09:18:28 -0500
- CC: gcc-patches at gcc dot gnu dot org
- Organization: Red Hat, Inc.
- References: <firstname.lastname@example.org>
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 <email@example.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.
I have an regression test where is the preferred place to install it,