https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80728
--- Comment #7 from rguenther at suse dot de <rguenther at suse dot de> --- On May 15, 2017 4:43:04 PM GMT+02:00, "amonakov at gcc dot gnu.org" <gcc-bugzi...@gcc.gnu.org> wrote: >https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80728 > >--- Comment #6 from Alexander Monakov <amonakov at gcc dot gnu.org> --- >I think a possible approach is to add a new cgraph_node flag (or a >multi-bit >field, if we want to track presence of acquire/release/seq-cst compiler >barriers separately), handle asms and atomics specially in >cgraphbuild.c to set >that flag, and finally use the new flag in ipa-reference.c? Yes. Something like that. Let's see if Honza has any comments.