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]
Other format: [Raw text]

Re: Enhance testsuite c-torture test


In message <20020510.154104.46189496.davem@redhat.com>, "David S. Miller" 
writes:
 >    From: "John David Anglin" <dave@hiauly1.hia.nrc.ca>
> /* HP only has signed conversion in library, so need to synthesize an
 >    unsigned version */
 > unsigned int
 > _U_Qfcnvfxt_quad_to_usgl(long double a)
 > {
 >   extern long long _U_Qfcnvfxt_quad_to_dbl (long double a);
 >   return (unsigned int) _U_Qfcnvfxt_quad_to_dbl (a);
 > }
 > 
 > I'm assuming that the call to the HP library got converted into
 > a sibling call.
 > 
 > Anyways, we're calling it with (long double)(1 << 63) as the argument.
 > 
 > Any ideas Jeff?  Looks like an HP library bug to me.  But also it also
 > looks like the "long long" return from the HP library shouldn't be
 > chopped off to an unsigned int here, why is that done?
I don't recall.

jeff


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