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 AArch64] gprof support for AArch64


OK, except

On Tue, May 21, 2013 at 07:52:58PM +0530, Venkataramanan Kumar wrote:
> +      if (((insn & 0xfc000000) == BRANCHANDLINK)
> +	  ||((insn & 0xfc000000) == BRANCH))

Remove excess parentheses, add space after ||.

> +	{
> +	  DBG (CALLDEBUG,
> +	       printf ("[find_call] 0x%lx: bl", (unsigned long) pc));
> +
> +	  /* Regular pc relative addressing check that this is the
> +	      address of a function.  */
> +	  offset = ((insn & 0x3ffffff) << 2)  & ((1U << 28) - 1);

No need to mask with "& ((1U << 28) - 1)".

-- 
Alan Modra
Australia Development Lab, IBM


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