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: RFA: Fixing incorrect DWARF2 DW_AT_location values in targets that use LEAF_REG_REMAP


From: Nick Clifton <nickc@redhat.com>
Date: Wed, 26 Apr 2006 20:57:26 +0100

Thanks for finding this bug.  But about the patch:

>  #ifdef LEAF_REG_REMAP
> -  regno = LEAF_REG_REMAP (regno);
> +  {
> +    unsigned leaf_reg;
> +
> +    leaf_reg = LEAF_REG_REMAP (regno);
> +    if (leaf_reg != -1)
> +      regno = leaf_reg;
> +  }
>  #endif

Testing an "unsigned" against a negative quantity?

Any reason not to use plain "int" here?


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