aboutsummaryrefslogtreecommitdiff
path: root/gcc/langhooks.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2002-08-22 00:42:40 +0000
committerTom Tromey <tromey@gcc.gnu.org>2002-08-22 00:42:40 +0000
commit57ce46bb22f5d56069e3648022a1d43dc858a790 (patch)
treeab953fd73d6634557761e02e3e308f4b315d6dc6 /gcc/langhooks.c
parent0d811e1a74221354e24d7d1d4f74df1c39c35994 (diff)
downloadgcc-57ce46bb22f5d56069e3648022a1d43dc858a790.zip
gcc-57ce46bb22f5d56069e3648022a1d43dc858a790.tar.gz
gcc-57ce46bb22f5d56069e3648022a1d43dc858a790.tar.bz2
For PR java/6005 and PR java/7611:
* fold-const.c (fold_truthop): Use can_use_bit_fields_p. (fold): Likewise. * langhooks.c (lhd_can_use_bit_fields_p): New function. * langhooks-def.h (lhd_can_use_bit_fields_p): Declare. (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): New define. (LANG_HOOKS_INITIALIZER): Use it. * langhooks.h (struct lang_hooks) [can_use_bit_fields_p]: New field. From-SVN: r56498
Diffstat (limited to 'gcc/langhooks.c')
-rw-r--r--gcc/langhooks.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/langhooks.c b/gcc/langhooks.c
index e2feb06..54332b8 100644
--- a/gcc/langhooks.c
+++ b/gcc/langhooks.c
@@ -175,6 +175,13 @@ lhd_set_decl_assembler_name (decl)
abort ();
}
+/* By default we always allow bit-field based optimizations. */
+bool
+lhd_can_use_bit_fields_p ()
+{
+ return true;
+}
+
/* Provide a default routine to clear the binding stack. This is used
by languages that don't need to do anything special. */
void