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

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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

Handle PGI/Intel Compilers



This patch adds some support for PGI and Intel compilers, both
compilers support long long.

Ok to commit?

Andreas

2001-11-14  Andreas Jaeger  <aj@suse.de>

	* sysdeps/unix/sysv/linux/bits/types.h: Handle PGI and Intel compilers.
	* posix/sys/types.h: Likewise.

Index: sysdeps/unix/sysv/linux/bits/types.h
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/bits/types.h,v
retrieving revision 1.27
diff -u -p -u -r1.27 types.h
--- types.h	2001/07/06 04:56:14	1.27
+++ types.h	2001/11/14 08:57:36
@@ -33,7 +33,7 @@ typedef unsigned char __u_char;
 typedef unsigned short __u_short;
 typedef unsigned int __u_int;
 typedef unsigned long __u_long;
-#ifdef __GNUC__
+#if defined __GNUC__ || defined __PGI || defined __INTEL_COMPILER
 __extension__ typedef unsigned long long int __u_quad_t;
 __extension__ typedef long long int __quad_t;
 #else
@@ -52,7 +52,7 @@ typedef signed short int __int16_t;
 typedef unsigned short int __uint16_t;
 typedef signed int __int32_t;
 typedef unsigned int __uint32_t;
-#ifdef __GNUC__
+#if defined __GNUC__ || defined __PGI || defined __INTEL_COMPILER
 __extension__ typedef signed long long int __int64_t;
 __extension__ typedef unsigned long long int __uint64_t;
 #endif
Index: posix/sys/types.h
===================================================================
RCS file: /cvs/glibc/libc/posix/sys/types.h,v
retrieving revision 1.43
diff -u -p -u -r1.43 types.h
--- types.h	2001/07/06 04:55:38	1.43
+++ types.h	2001/11/14 08:57:36
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991,92,94,95,96,97,98,99,2000 Free Software Foundation, Inc.
+/* Copyright (C) 1991,92,94,95,96,97,98,99,2000,2001 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
@@ -162,7 +162,7 @@ typedef unsigned int uint;
 typedef	char int8_t;
 typedef	short int int16_t;
 typedef	int int32_t;
-#  ifdef __GNUC__
+#  if defined __GNUC__ || defined __PGI || defined __INTEL_COMPILER
 __extension__ typedef long long int int64_t;
 #  endif
 # endif
@@ -171,7 +171,7 @@ __extension__ typedef long long int int6
 typedef	unsigned char u_int8_t;
 typedef	unsigned short int u_int16_t;
 typedef	unsigned int u_int32_t;
-# ifdef __GNUC__
+# if defined __GNUC__ || defined __PGI || defined __INTEL_COMPILER
 __extension__ typedef unsigned long long int u_int64_t;
 # endif
 

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