GNU bug report logs - #12754
factor.c selects 64 bit code from longlong.h on 32-bit hppa systems

Previous Next

Package: coreutils;

Reported by: John David Anglin <dave.anglin <at> nrc-cnrc.gc.ca>

Date: Sun, 28 Oct 2012 19:50:01 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #35 received at 12754 <at> debbugs.gnu.org (full text, mbox):

From: John David Anglin <dave.anglin <at> bell.net>
To: Pádraig Brady <P <at> draigBrady.com>
Cc: 12754 <at> debbugs.gnu.org, John David Anglin <dave <at> hiauly1.hia.nrc.ca>,
	Torbjorn Granlund <tg <at> gmplib.org>
Subject: Re: bug#12754: factor.c selects 64 bit code from longlong.h on 32-bit
	hppa systems
Date: Tue, 30 Oct 2012 09:37:19 -0400
On 10/30/2012 6:21 AM, Pádraig Brady wrote:
> -#if defined (__hppa) && W_TYPE_SIZE == 64 && ! defined (_LONG_LONG_LIMB)
> +#if defined (__hppa) && W_TYPE_SIZE == 64 && ! defined 
> (_LONG_LONG_LIMB) \
> +  && defined (_PA_RISC2_0) && (ULONGMAX_MAX == UINT64_MAX)
> +/* Note the _PA_RISC2_0 above is to exclude this code from GCC with
> +   default -march options which doesn't support these instructions.
> +   Also the width check for 'long' is to avoid ilp32 runtimes where
> +   GNU/Linux and narrow HP-UX kernels are known to have issues with
> +   clobbering of context between the add and add,dc instructions.  */
This #if looks good to me.

Note HP compilers also define _PA_RISC2_0 when generating PA 2.0
assembly code.

Thanks,
Dave

-- 
John David Anglin    dave.anglin <at> bell.net





This bug report was last modified 12 years and 205 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.