C: Do not drop qualifiers in typeof for _Atomic types. [PR65455,PR92935]
authorMartin Uecker <muecker@gwdg.de>
Thu, 26 Nov 2020 07:12:12 +0000 (08:12 +0100)
committerMartin Uecker <muecker@gwdg.de>
Thu, 26 Nov 2020 07:22:38 +0000 (08:22 +0100)
commit768ce4f0ceb030e38427e85e483ed44330cd5da7
tree62d7ca90f39ead505ccca0416451442db50b3c0e
parent8f81f43f606cd915e96c857c007a4635fc0ea601
C: Do not drop qualifiers in typeof for _Atomic types. [PR65455,PR92935]

2020-11-25  Martin Uecker  <muecker@gwdg.de>

gcc/c/
PR c/65455
PR c/92935
* c-parser.c (c_parser_declaration_or_fndef): Remove
redundant code to drop qualifiers of _Atomic types for __auto_type.
(c_parser_typeof_specifier): Do not drop qualifiers of _Atomic
types for __typeof__.

gcc/
PR c/65455
PR c/92935
* ginclude/stdatomic.h: Use comma operator to drop qualifiers.

gcc/testsuite/
PR c/65455
PR c/92935
* gcc.dg/typeof-2.c: Adapt test.
gcc/c/c-parser.c
gcc/ginclude/stdatomic.h
gcc/testsuite/gcc.dg/typeof-2.c