+2002-08-21 Tom Tromey <tromey@redhat.com>
+
+ For PR java/6005 and PR java/7611:
+ * lang.c (LANG_HOOKS_CAN_USE_BITFIELDS_P): New define.
+ (java_can_use_bit_fields_p): New function.
+
2002-08-16 Tom Tromey <tromey@redhat.com>
* gcj.texi (Class Initialization): Mention class initialization of
/* Java(TM) language-specific utility routines.
- Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
Free Software Foundation, Inc.
This file is part of GNU CC.
void *,
void *));
static int java_unsafe_for_reeval PARAMS ((tree));
+static bool java_can_use_bit_fields_p PARAMS ((void));
+
#ifndef TARGET_OBJECT_SUFFIX
# define TARGET_OBJECT_SUFFIX ".o"
#define LANG_HOOKS_DECL_PRINTABLE_NAME lang_printable_name
#undef LANG_HOOKS_PRINT_ERROR_FUNCTION
#define LANG_HOOKS_PRINT_ERROR_FUNCTION java_print_error_function
+#undef LANG_HOOKS_CAN_USE_BIT_FIELDS_P
+#define LANG_HOOKS_CAN_USE_BIT_FIELDS_P java_can_use_bit_fields_p
#undef LANG_HOOKS_TYPE_FOR_MODE
#define LANG_HOOKS_TYPE_FOR_MODE java_type_for_mode
flag_trapping_math = 0;
}
+static bool
+java_can_use_bit_fields_p ()
+{
+ /* The bit-field optimizations cause problems when generating class
+ files. */
+ return flag_emit_class_files ? false : true;
+}
+
/* Post-switch processing. */
static bool
java_post_options ()