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 to shrink the size of df_refs.


Just a couple of coding standards nits:

> +    case DF_REF_REGULAR:
> +      return DF_REF_LOC (ref1) == DF_REF_LOC (ref2);
> +    }
> +  gcc_unreachable ();
> +  return false;

Either no return after gcc_unreachable, or place gcc_unreachable as a
"default" label in the previous switch statement.

> +  if ((DF_REF_CLASS (ref1) != DF_REF_ARTIFICIAL)
> +      && (DF_REF_LOC (ref1) != DF_REF_LOC (ref2)))

Redundant parentheses.

Otherwise ok.

Paolo


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