[LLVMbugs] [Bug 14894] c++-analyzer does not define __SSE3__

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jan 10 10:33:12 PST 2013


Giulio Eulisse <giulio.eulisse at cern.ch> changed:

           What    |Removed                     |Added
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |

--- Comment #2 from Giulio Eulisse <giulio.eulisse at cern.ch> 2013-01-10 12:33:12 CST ---
What you did works fine for me as well, but it's not what I proposed to
reproduce my issue.

The following:

cat << \EOF > foo.cc
#ifdef __SSE3__                                                                 
void bar();

c++-analyzer -msse3 -c foo.cc 

can be cut & pasted to reproduce the issue 100% of the times for me. Notice I
do provide the -msse3 option.

Notice that neither of:

clang++ -msse3 -c foo.cc 

does not reproduce the issue.

Notice that: `c++-analyzer -E -dM -msse3 -c foo.cc | grep SSE` gives:

#define __SSE2_MATH__ 1
#define __SSE2__ 1
#define __SSE__ 1
#define __SSE_MATH__ 1
#define __SSE3__ 1
foo.cc:8:3: error: use of undeclared identifier 'bar'
1 error generated.

so __SSE3__ is defined, but still the ifdef fails.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list