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, VECTOR ABI] Add __attribute__((__simd__)) to GCC.


On Fri, 23 Oct 2015, Kirill Yukhin wrote:

> > You need to update this patch to take account of Marek's fix for bug 67964 
> > (it was because I was suspicious of the "continue;" in this patch 
> > accepting invalid syntax that I found that bug), retest and resubmit.
> I've rebased the patch on top of current trunk.

This isn't taking proper account of Marek's fix.

> @@ -3993,6 +4001,12 @@ c_parser_attributes (c_parser *parser)
>  		break;
>  	      continue;
>  	    }
> +	  if (is_attribute_p ("simd", attr_name))
> +	    {
> +	      parser->simd_attr_present = 1;
> +	      c_parser_consume_token (parser);
> +	      continue;
> +	    }

Any such continue needs first to break if the next token isn't a comma; 
otherwise you accept bad syntax with no comma between successive 
attributes.

-- 
Joseph S. Myers
joseph@codesourcery.com


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