aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java')
-rw-r--r--gcc/java/class.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/gcc/java/class.c b/gcc/java/class.c
index 9e6b45c..8f1288f 100644
--- a/gcc/java/class.c
+++ b/gcc/java/class.c
@@ -779,13 +779,8 @@ add_method_1 (tree this_class, int access_flags, tree name, tree function_type)
DECL_CHAIN (fndecl) = TYPE_METHODS (this_class);
TYPE_METHODS (this_class) = fndecl;
- /* If pointers to member functions use the least significant bit to
- indicate whether a function is virtual, ensure a pointer
- to this function will have that bit clear. */
- if (TARGET_PTRMEMFUNC_VBIT_LOCATION == ptrmemfunc_vbit_in_pfn
- && !(access_flags & ACC_STATIC)
- && DECL_ALIGN (fndecl) < 2 * BITS_PER_UNIT)
- DECL_ALIGN (fndecl) = 2 * BITS_PER_UNIT;
+ if (!(access_flags & ACC_STATIC))
+ DECL_ALIGN (fndecl) = MINIMUM_METHOD_BOUNDARY;
/* Notice that this is a finalizer and update the class type
accordingly. This is used to optimize instance allocation. */