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 - h8300] function_vector attribute in H8300 targets


Hi Asgari,

> +  else if (TREE_INT_CST_LOW (TREE_VALUE (args)) > 255)
> +    {
> +      /* The argument must be within 0-255  */
> +      warning ("`%s' attribute argument must be in range between 0 and 255",
> +           IDENTIFIER_POINTER (name));
> +      *no_add_attrs = true;
> +    }

You probably want to check that TREE_INT_CST_HIGH (...) == 0 also.

Kazu Hirata


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