Re: [PATCH v2] typeof: Remove type qualifiers for atomic types

2014-07-04 Thread Sebastian Huber
On 2014-06-30 15:03, Marek Polacek wrote: On Fri, Jun 27, 2014 at 08:49:24AM +0200, Marek Polacek wrote: On Fri, Jun 27, 2014 at 08:36:38AM +0200, Sebastian Huber wrote: Thanks for your patience. It would be nice if this can be applied to GCC 4.9 as well. Can someone please commit this for me

Re: [PATCH v2] typeof: Remove type qualifiers for atomic types

2014-06-30 Thread Marek Polacek
On Fri, Jun 27, 2014 at 08:49:24AM +0200, Marek Polacek wrote: > On Fri, Jun 27, 2014 at 08:36:38AM +0200, Sebastian Huber wrote: > > Thanks for your patience. It would be nice if this can be applied to GCC > > 4.9 as well. > > > > Can someone please commit this for me, since I don't have write a

Re: [PATCH v2] typeof: Remove type qualifiers for atomic types

2014-06-26 Thread Marek Polacek
On Fri, Jun 27, 2014 at 08:36:38AM +0200, Sebastian Huber wrote: > Thanks for your patience. It would be nice if this can be applied to GCC > 4.9 as well. > > Can someone please commit this for me, since I don't have write access. I will commit it for you. Marek

Re: [PATCH v2] typeof: Remove type qualifiers for atomic types

2014-06-26 Thread Sebastian Huber
On 2014-06-26 17:51, Joseph S. Myers wrote: On Thu, 26 Jun 2014, Sebastian Huber wrote: >gcc/c/ChangeLog >2014-06-26 Sebastian Huber > >* c-parser.c (c_parser_declaration_or_fndef): Discard all type >qualifiers in __auto_type for atomic types. >(c_parser_typeof_specifier): Discard

Re: [PATCH v2] typeof: Remove type qualifiers for atomic types

2014-06-26 Thread Joseph S. Myers
On Thu, 26 Jun 2014, Sebastian Huber wrote: > gcc/c/ChangeLog > 2014-06-26 Sebastian Huber > > * 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 > __

[PATCH v2] typeof: Remove type qualifiers for atomic types

2014-06-26 Thread Sebastian Huber
GCC provides its own version of stdatomic.h since GCC 4.9. Here we have: #define atomic_load_explicit(PTR, MO)\ __extension__\ ({\ __auto_type __atomic_load_ptr = (PTR);\