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] typeof: Remove type qualifiers for atomic types


On Wed, 25 Jun 2014, Sebastian Huber wrote:

> 2014-06-25  Sebastian Huber  <sebastian.huber@embedded-brains.de>
> 
> 	* c-parser.c (c_parser_declaration_or_fndef): Discard all type
> 	qualifiers in __auto_type for atomic types.
> 	(c_parser_typeof_specifier): Discard all type qualifiers in
> 	__typeof__ for atomic types.

This patch should include a testcase that typeof is discarding volatile 
(you can e.g. declare an extern variable twice, once as int and once as 
typeof (*p) where p is volatile _Atomic int *, so the type compatibility 
check fails unless volatile is discarded).

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