This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
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;
}