[Bug c/24137] New: __uint128_t missing for ppc32

2005-09-29 Thread BKStrelioff at Hotmail dot com
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


[Bug c/24137] __uint128_t missing for ppc32

2005-09-29 Thread BKStrelioff at Hotmail dot com

--- Additional Comments From BKStrelioff at Hotmail dot com  2005-09-30 
02:13 ---
Thanks for the quick response, but I think this support should be in ppc32 
compilers also. The altivec memory operations deal with 128-bit, 16-byte 
aligned values, and hence this support should be in ppc32.

The bug originally showed up in glibc 
sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (line 57 for version 2.3.5), 
which includes a comment that __uint128_t has been around since gcc 3.1.

-- 
   What|Removed |Added

 Status|RESOLVED|UNCONFIRMED
 Resolution|INVALID |


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


[Bug c/24137] __uint128_t missing for ppc32

2005-09-29 Thread BKStrelioff at Hotmail dot com

--- Additional Comments From BKStrelioff at Hotmail dot com  2005-09-30 
02:19 ---
I still am not sure I agree, but I have read your post ( 
http://gcc.gnu.org/ml/gcc/2005-01/msg00514.html ) and since this appears to be 
an old issue I will go ahead and patch glibc for now.

Again thanks for the quick response, even if we disagree!

-- 


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