This is the mail archive of the gcc@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: stdatomic.h and atomic_load_explicit()


On Wed, 25 Jun 2014, Sebastian Huber wrote:

> I think the inheritance of the volatile qualifier via __typeof__
> (*__atomic_load_ptr) is an implementation flaw.

See the comment in c_parser_typeof_specifier:

      /* For use in macros such as those in <stdatomic.h>, remove
         _Atomic and const qualifiers from atomic types.  (Possibly
         all qualifiers should be removed; const can be an issue for
         more macros using typeof than just the <stdatomic.h>
         ones.)  */

(If changing this, remember to change the __auto_type handling as well.)

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