This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gcc 3.1 has uint128_t for ppc



With GCC 3.1 CVS I get when compiling glibc:

In file included from ../linuxthreads_db/proc_service.h:20,
                 from ../linuxthreads_db/thread_dbP.h:6,
                 from internals.h:36,
                 from attr.c:23:
../sysdeps/unix/sysv/linux/powerpc/sys/procfs.h:51: conflicting types for `__uint128_t'
<built-in>:0: previous declaration of `__uint128_t'

Ok to commit for both branches?
Andreas

2002-01-17  Andreas Jaeger  <aj@suse.de>

	* sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
	__uint128_t build-in.

============================================================
Index: sysdeps/unix/sysv/linux/powerpc/sys/procfs.h
--- sysdeps/unix/sysv/linux/powerpc/sys/procfs.h	2001/07/06 04:56:19	1.8
+++ sysdeps/unix/sysv/linux/powerpc/sys/procfs.h	2002/01/17 16:32:50
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1999, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -42,10 +42,8 @@ typedef elf_greg_t elf_gregset_t[ELF_NGR
 typedef double elf_fpreg_t;
 typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
 
-/* gcc doesn't support __TI__ yet */
-#if 0
-typedef unsigned __uint128_t __attribute__ (( __mode__ (__TI__)));
-#else
+/* gcc 3.1 and newer support __uint128_t.  */
+#if !__GNUC_PREREQ(3,1)
 typedef struct {
   unsigned long u[4];
 } __attribute((aligned(16))) __uint128_t;

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]