This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
bootstrap/8276: Compile fixes for gcc 3.2 on AIX
- From: pere at hungry dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 18 Oct 2002 12:29:14 -0000
- Subject: bootstrap/8276: Compile fixes for gcc 3.2 on AIX
- Reply-to: pere at hungry dot com
>Number: 8276
>Category: bootstrap
>Synopsis: Compile fixes for gcc 3.2 on AIX
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Oct 18 05:36:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: pere@hungry.com
>Release: gcc-3.2
>Organization:
>Environment:
>Description:
I had to apply the following patches to get GCC 3.2 compiling on AIX
5. With this patch the source compiled out of the box. Please apply
in the next version of GCC.
diff -ur src-3.2/gcc/dependence.c src-3.2-local/gcc/dependence.c
--- src-3.2/gcc/dependence.c 2002-01-22 22:57:22.000000000 +0100
+++ src-3.2-local/gcc/dependence.c 2002-10-14 19:17:15.000000000 +0200
@@ -1143,7 +1143,9 @@
return 0;
}
+#ifndef abs /* It is defined in <stdlib.h> on AIX */
#define abs(N) ((N) < 0 ? -(N) : (N))
+#endif /* not abs */
/* Determine the DIRECTION and DISTANCE dependency for subscript SUB of
inputs ICOEFFICIENTS and outputs OCOEFFICIENTS of loop LOOP_PTR using
diff -ur src-3.2/gcc/config.in src-3.2-local/gcc/config.in
--- src-3.2/gcc/config.in 2002-08-14 11:31:10.000000000 +0200
+++ src-3.2-local/gcc/config.in 2002-10-14 15:35:00.000000000 +0200
@@ -33,7 +33,9 @@
#undef HAVE_VFORK_H
/* Define as __inline if that's what the C compiler calls it. */
+#ifndef inline /* avoid conflict with include/ansidecl.h */
#undef inline
+#endif /* not inline */
/* Define if your C compiler doesn't accept -c and -o together. */
#undef NO_MINUS_C_MINUS_O
diff -ur src-3.2/libiberty/config.in src-3.2-local/libiberty/config.in
--- src-3.2/libiberty/config.in 2001-11-28 02:37:24.000000000 +0100
+++ src-3.2-local/libiberty/config.in 2002-10-14 17:46:50.000000000 +0200
@@ -13,7 +13,9 @@
#undef HAVE_VFORK_H
/* Define as __inline if that's what the C compiler calls it. */
+#ifndef inline /* avoid conflict with include/ansidecl.h */
#undef inline
+#endif /* not inline */
/* Define to `int' if <sys/types.h> doesn't define. */
#undef pid_t
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: