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 3/5] Named address spaces: C front-end support


On Wed, 26 Aug 2009, Ulrich Weigand wrote:

> +  /* Warn about address space used for things other that static memory or

"other that" should be "other than".

> +      else if (decl_context == PARM && TREE_CODE (type) != ARRAY_TYPE)
> +	error ("%qs specified for parameter %qE",
> +	       c_addr_space_name (address_space), name);
> +      else if (decl_context == FIELD)
> +	error ("%qs specified for structure field %qE",
> +	       c_addr_space_name (address_space), name);

What happens with unnamed parameters or bit-fields (so name is NULL) 
declared with an address space qualifier?  If they can reach here then you 
need to allow for that case with a different diagnostic text, and you 
should make sure there are testcases for this in the testsuite.

I don't see any other issues with this patch version.

-- 
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]