This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
fix java build problem on AIX
- To: gcc-patches at gcc dot gnu dot org
- Subject: fix java build problem on AIX
- From: Geoff Keating <geoffk at cygnus dot com>
- Date: Sat, 9 Sep 2000 11:33:23 -0700
A copy-and-paste bug, I think.
Tested by bootstrap on AIX.
--
- Geoffrey Keating <geoffk@cygnus.com>
===File ~/patches/cygnus/java-adjfieldalign.patch===========
Index: egcs/gcc/java/ChangeLog
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/ChangeLog,v
retrieving revision 1.521
diff -u -p -r1.521 ChangeLog
--- ChangeLog 2000/09/07 18:24:41 1.521
+++ ChangeLog 2000/09/09 18:31:10
@@ -1,3 +1,8 @@
+2000-09-09 Geoffrey Keating <geoffk@cygnus.com>
+
+ * typeck.c (build_java_array_type): Correct first parameter
+ in ADJUST_FIELD_ALIGN invocation.
+
2000-09-06 Tom Tromey <tromey@cygnus.com>
* lang-specs.h: Also recognize `-femit-class-files'.
Index: egcs/gcc/java/typeck.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/typeck.c,v
retrieving revision 1.29
diff -u -p -r1.29 typeck.c
--- typeck.c 2000/08/29 22:15:21 1.29
+++ typeck.c 2000/09/09 18:31:10
@@ -433,7 +433,7 @@ build_java_array_type (element_type, len
(unsigned) BIGGEST_FIELD_ALIGNMENT);
#endif
#ifdef ADJUST_FIELD_ALIGN
- desired_align = ADJUST_FIELD_ALIGN (field, desired_align);
+ desired_align = ADJUST_FIELD_ALIGN (fld, desired_align);
#endif
DECL_ALIGN (arfld) = desired_align;
}
============================================================