With following file (x.c):

main()
{
        __uint128_t     x;
        printf("%d %p\n", sizeof(x), &x);
}

the compiler produces

Using built-in specs.
Target: powerpc-unknown-linux-gnu
Configured with: /root/LFS/source/gcc/gcc-4.0.2/configure --prefix=/tools --
disable-nls --with-local-prefix=/tools --enable-languages=c --enable-shared
Thread model: posix
gcc version 4.0.2
 /tools/libexec/gcc/powerpc-unknown-linux-gnu/4.0.2/cc1 -E -quiet -v -
D__unix__ -D__gnu_linux__ -D__linux__ -Dunix -D__unix -Dlinux -D__linux -
Asystem=linux -Asystem=unix -Asystem=posix x.c -fpch-preprocess -o x.i
ignoring nonexistent directory "/tools/lib/gcc/powerpc-unknown-linux-
gnu/4.0.2/../../../../powerpc-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /tools/include
 /tools/lib/gcc/powerpc-unknown-linux-gnu/4.0.2/include
 /usr/include
End of search list.
 /tools/libexec/gcc/powerpc-unknown-linux-gnu/4.0.2/cc1 -fpreprocessed x.i -
quiet -dumpbase x.c -auxbase x -version -o x.s
GNU C version 4.0.2 (powerpc-unknown-linux-gnu)
        compiled by GNU C version 4.0.2.
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
x.c: In function 'main':
x.c:3: error: '__uint128_t' undeclared (first use in this function)
x.c:3: error: (Each undeclared identifier is reported only once
x.c:3: error: for each function it appears in.)
x.c:3: error: syntax error before 'x'
x.c:4: warning: incompatible implicit declaration of built-in function 'printf'
x.c:4: error: 'x' undeclared (first use in this function)

-- 
           Summary: __uint128_t missing for ppc32
           Product: gcc
           Version: 4.0.2
            Status: UNCONFIRMED
          Severity: critical
          Priority: P1
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: BKStrelioff at Hotmail dot com
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24137

Reply via email to