Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode 11.4 beta2: _bit_scan_forward redefinition #247

Closed
Axel-Naumann opened this issue Feb 26, 2020 · 0 comments · Fixed by #248
Closed

Xcode 11.4 beta2: _bit_scan_forward redefinition #247

Axel-Naumann opened this issue Feb 26, 2020 · 0 comments · Fixed by #248
Milestone

Comments

@Axel-Naumann
Copy link
Member

Vc version / revision Operating System Compiler & Version Compiler Flags Assembler & Version CPU
       1.4.1           |         Mac         |          Xcode 11.4 beta 2 (11N123k)         |    ROOT's            |                     |

Testcase

clang++ -std=c++11 -fsyntax-only -x c++-header -I /Users/sftnight/build/jenkins/night/LABEL/mac10beta/SPEC/cxx17/V/6-20/build/include/ /Users/sftnight/build/jenkins/night/LABEL/mac10beta/SPEC/cxx17/V/6-20/build/include/Vc/Vc

Actual Results

In file included from /Users/sftnight/build/jenkins/night/LABEL/mac10beta/SPEC/cxx17/V/6-20/build/include/Vc/Vc:30:
In file included from /Users/sftnight/build/jenkins/night/LABEL/mac10beta/SPEC/cxx17/V/6-20/build/include/Vc/vector.h:35:
In file included from /Users/sftnight/build/jenkins/night/LABEL/mac10beta/SPEC/cxx17/V/6-20/build/include/Vc/sse/vector.h:496:
In file included from /Users/sftnight/build/jenkins/night/LABEL/mac10beta/SPEC/cxx17/V/6-20/build/include/Vc/scalar/../common/../sse/vector.tcc:30:
/Users/sftnight/build/jenkins/night/LABEL/mac10beta/SPEC/cxx17/V/6-20/build/include/Vc/scalar/../common/../sse/../common/bitscanintrinsics.h:37:13: warning: '_bit_scan_forward' macro redefined [-Wmacro-redefined]
#    define _bit_scan_forward(x) __builtin_ctz(x)
            ^
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.3/include/ia32intrin.h:72:9: note: previous definition is here
#define _bit_scan_forward(A) __bsfd((A))
        ^

Same for _bit_scan_reverse

Expected Results

No warning!

amadio added a commit to amadio/vc that referenced this issue Mar 6, 2020
amadio added a commit to amadio/vc that referenced this issue Mar 9, 2020
amadio added a commit to amadio/root that referenced this issue Mar 17, 2020
oshadura pushed a commit to root-project/root that referenced this issue Mar 18, 2020
oshadura pushed a commit to oshadura/root that referenced this issue Mar 26, 2020
oshadura pushed a commit to oshadura/root that referenced this issue Mar 26, 2020
oshadura pushed a commit to root-project/root that referenced this issue Mar 27, 2020
oshadura pushed a commit to root-project/root that referenced this issue Mar 27, 2020
linev pushed a commit to linev/Vc that referenced this issue Jun 9, 2020
osschar pushed a commit to osschar/root that referenced this issue Dec 21, 2020
@bernhardmgruber bernhardmgruber added this to the Vc 1.4.2 milestone Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants