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: [PATCH RFA] mips "Branch Likely" handling behaviour, options.


cgd@broadcom.com writes:
> (there's no mask associated with target_flags_explicit to indicate
> which have been intentionally set and which have been cleared...)

Bit X of t_f_e is set if bit X of target_flags was explicitly set or
cleared.  Is that what you need?  

I thought you wanted something similar to the way MASK_FLOAT64 is
handled at the moment.

Richard

    /* A mask of target_flags that includes bit X if X was set or cleared
       on the command line.  */

    int target_flags_explicit;

[...]

    if (target_switches[j].value < 0)
      target_flags &= ~-target_switches[j].value;
    else
      target_flags |= target_switches[j].value;
    if (name[0] != 0)
      {
        if (target_switches[j].value < 0)
          target_flags_explicit |= -target_switches[j].value;
        else
          target_flags_explicit |= target_switches[j].value;
      }


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