This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: [PATCH 4/9] binutils,gas,bfd: support an extended set of SPARC hardware capabilities.


From: "Jose E. Marchesi" <jose.marchesi@oracle.com>
Date: Thu,  2 Oct 2014 18:19:37 +0200

> -static int hwcap_seen;
> +static unsigned long hwcap_seen;
 ...
> -static int hwcap_allowed;
> +static unsigned long hwcap_allowed;
...
> +	  unsigned long hwcaps
> +	    = (((unsigned long) insn->hwcaps2) << 32) | insn->hwcaps;

"unsigned long" is not necessarily 64-bits.

In fact I do all of my binutils builds with a 32-bit generating
toolset.

If you want to store all of the hw capability bits into a single
variable, you will need to explicitly use a 64-bit type such as
perhap bfd_uint64_t.


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