https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85198
Bug ID: 85198 Summary: long long int vector mistaken as long int vector Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: kelvin at gcc dot gnu.org Target Milestone: --- With the current trunk, the following program: #include <stdio.h> vector long long int vulli; int main (int argc, char *argv[]) { printf ("vector element is %lld\n", vulli[0]); } produces a warning to stderr: $GCC_BUILD/gcc/xgcc -B$GCC_BUILD/gcc/ -maltivec -Wall -O2 -fstack-protector-strong -o problem problem.c problem.c: In function ‘main’: problem.c:8:33: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘long int’ [-Wformat=] printf ("vector element is %lld\n", vulli[0]); ~~~^ ~~~~~~~~ %ld