[LLVMbugs] [Bug 20720] New: __vector long long produces "deprecated" warning message on each "long" specifier

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Aug 21 06:47:14 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=20720

            Bug ID: 20720
           Summary: __vector long long produces "deprecated" warning
                    message on each "long" specifier
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: hstong at ca.ibm.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Using the AltiVec "vector long long" type produces a "deprecated" warning on
each instance of "long". As demonstrated by the error message, "vector long
long" is distinct from "vector long" (the latter of which is indeed
deprecated).

### SOURCE:
$ cat vll.c
extern vector long long vll;
extern void *vll;


### COMPILER INVOCATION AND OUTPUT:
$ clang -target powerpc64-unknown-linux-gnu -maltivec -x c vll.c
vll.c:1:15: warning: Use of 'long' with '__vector' is deprecated [-Wdeprecated]
extern vector long long vll;
              ^
vll.c:1:20: warning: Use of 'long' with '__vector' is deprecated [-Wdeprecated]
extern vector long long vll;
                   ^
vll.c:2:14: error: redefinition of 'vll' with a different type: 'void *' vs
'__vector long long' (vector of 2 'long long' values)
extern void *vll;
             ^
vll.c:1:25: note: previous definition is here
extern vector long long vll;
                        ^
2 warnings and 1 error generated.


### EXPECTED OUTPUT:
Just the error.


### COMPILER VERSION INFO:
$ clang -target powerpc64-unknown-linux-gnu -v
clang version 3.6.0 (trunk 215824)
Target: powerpc64-unknown-linux-gnu
Thread model: posix

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140821/ad04411b/attachment.html>


More information about the llvm-bugs mailing list