Skip to content

Fix iree_atomic_load define - #1268

Closed
marbre wants to merge 2 commits into
iree-org:masterfrom
iml130:cmake-gcc
Closed

marbre wants to merge 2 commits into
iree-org:masterfrom
iml130:cmake-gcc

Conversation

@marbre

@marbre marbre commented Mar 26, 2020

Copy link
Copy Markdown
Member

No description provided.

@marbre

marbre commented Mar 26, 2020

Copy link
Copy Markdown
Member Author

The CMake build with GCC otherwise fails with

In file included from /home/mbrehler/repos/iree/iree/vm/module.h:21,
                 from /home/mbrehler/repos/iree/iree/vm/module.c:15:
/home/mbrehler/repos/iree/iree/base/atomics.h:75:15: error: expected identifier or ‘(’ before ‘{’ token
   75 | __extension__({
      |               ^

@benvanik

Copy link
Copy Markdown
Collaborator

🤦‍♂ thank you for catching this!

@benvanik

Copy link
Copy Markdown
Collaborator

(looks like there's a minor clang format issue)

Comment thread iree/base/atomics.h Outdated
__atomic_load(__atomic_load_ptr, &__atomic_load_tmp, (__ATOMIC_SEQ_CST));
__atomic_load_tmp;
})
#define iree_atomic_load(object) __atomic_load_ptr(object, __ATOMIC_SEQ_CST) \

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

run clang-format to appease the github action gods :)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed :)

@benvanik benvanik added bug 🐞 Something isn't working runtime Relating to the IREE runtime library labels Mar 26, 2020
@marbre
marbre deleted the cmake-gcc branch March 26, 2020 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug 🐞 Something isn't working runtime Relating to the IREE runtime library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants