public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/24137] New: __uint128_t missing for ppc32
@ 2005-09-30  2:03 BKStrelioff at Hotmail dot com
  2005-09-30  2:07 ` [Bug c/24137] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: BKStrelioff at Hotmail dot com @ 2005-09-30  2:03 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c/24137] __uint128_t missing for ppc32
  2005-09-30  2:03 [Bug c/24137] New: __uint128_t missing for ppc32 BKStrelioff at Hotmail dot com
@ 2005-09-30  2:07 ` pinskia at gcc dot gnu dot org
  2005-09-30  2:14 ` BKStrelioff at Hotmail dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-30  2:07 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-30 02:06 -------
__uint128_t is only valid for 64bit targets.  Otherwise you will get an ICE trying to use the type.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c/24137] __uint128_t missing for ppc32
  2005-09-30  2:03 [Bug c/24137] New: __uint128_t missing for ppc32 BKStrelioff at Hotmail dot com
  2005-09-30  2:07 ` [Bug c/24137] " pinskia at gcc dot gnu dot org
@ 2005-09-30  2:14 ` BKStrelioff at Hotmail dot com
  2005-09-30  2:16 ` pinskia at gcc dot gnu dot org
  2005-09-30  2:20 ` BKStrelioff at Hotmail dot com
  3 siblings, 0 replies; 6+ messages in thread
From: BKStrelioff at Hotmail dot com @ 2005-09-30  2:14 UTC (permalink / raw)
  To: gcc-bugs


------- 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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c/24137] __uint128_t missing for ppc32
  2005-09-30  2:03 [Bug c/24137] New: __uint128_t missing for ppc32 BKStrelioff at Hotmail dot com
  2005-09-30  2:07 ` [Bug c/24137] " pinskia at gcc dot gnu dot org
  2005-09-30  2:14 ` BKStrelioff at Hotmail dot com
@ 2005-09-30  2:16 ` pinskia at gcc dot gnu dot org
  2005-09-30  2:20 ` BKStrelioff at Hotmail dot com
  3 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-30  2:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-30 02:16 -------
This is a bug in glibc.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c/24137] __uint128_t missing for ppc32
  2005-09-30  2:03 [Bug c/24137] New: __uint128_t missing for ppc32 BKStrelioff at Hotmail dot com
                   ` (2 preceding siblings ...)
  2005-09-30  2:16 ` pinskia at gcc dot gnu dot org
@ 2005-09-30  2:20 ` BKStrelioff at Hotmail dot com
  3 siblings, 0 replies; 6+ messages in thread
From: BKStrelioff at Hotmail dot com @ 2005-09-30  2:20 UTC (permalink / raw)
  To: gcc-bugs


------- 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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c/24137] __uint128_t missing for ppc32
       [not found] <bug-24137-11439@http.gcc.gnu.org/bugzilla/>
@ 2005-10-07 20:27 ` janis187 at us dot ibm dot com
  0 siblings, 0 replies; 6+ messages in thread
From: janis187 at us dot ibm dot com @ 2005-10-07 20:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from janis187 at us dot ibm dot com  2005-10-07 20:27 -------
I bumped into this PR by accident and happen to have looked into this recently.
__uint128_t is supported on a ppc64 system with a powerpc64-linux compiler
using "-m32 -mpowerpc64".


-- 


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-10-07 20:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-30  2:03 [Bug c/24137] New: __uint128_t missing for ppc32 BKStrelioff at Hotmail dot com
2005-09-30  2:07 ` [Bug c/24137] " pinskia at gcc dot gnu dot org
2005-09-30  2:14 ` BKStrelioff at Hotmail dot com
2005-09-30  2:16 ` pinskia at gcc dot gnu dot org
2005-09-30  2:20 ` BKStrelioff at Hotmail dot com
     [not found] <bug-24137-11439@http.gcc.gnu.org/bugzilla/>
2005-10-07 20:27 ` janis187 at us dot ibm dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).