aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/method.c
diff options
context:
space:
mode:
authorChristian Bruel <christian.bruel@st.com>2015-10-26 10:50:37 +0100
committerChristian Bruel <chrbr@gcc.gnu.org>2015-10-26 10:50:37 +0100
commitc1fffdf1fb2ebce24620195c4add32eb90daa598 (patch)
tree90a790213de81ca57c7114076a08cb59d61c9df3 /gcc/cp/method.c
parent5929c659186adc165b6cc32aab2890a1629d667a (diff)
downloadgcc-c1fffdf1fb2ebce24620195c4add32eb90daa598.zip
gcc-c1fffdf1fb2ebce24620195c4add32eb90daa598.tar.gz
gcc-c1fffdf1fb2ebce24620195c4add32eb90daa598.tar.bz2
function.h (MINIMUM_METHOD_BOUNDARY): New macro.
2015-10-26 Christian Bruel <christian.bruel@st.com> * function.h (MINIMUM_METHOD_BOUNDARY): New macro. * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY. * cp/method.c (implicitly_declare_fn): Likewise. * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting. * java/class.c (add_method_1): Likewise. From-SVN: r229313
Diffstat (limited to 'gcc/cp/method.c')
-rw-r--r--gcc/cp/method.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/gcc/cp/method.c b/gcc/cp/method.c
index b3e247c..21eb32a 100644
--- a/gcc/cp/method.c
+++ b/gcc/cp/method.c
@@ -1849,13 +1849,8 @@ implicitly_declare_fn (special_function_kind kind, tree type,
DECL_ASSIGNMENT_OPERATOR_P (fn) = 1;
SET_OVERLOADED_OPERATOR_CODE (fn, NOP_EXPR);
}
-
- /* 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
- && DECL_ALIGN (fn) < 2 * BITS_PER_UNIT)
- DECL_ALIGN (fn) = 2 * BITS_PER_UNIT;
+
+ DECL_ALIGN (fn) = MINIMUM_METHOD_BOUNDARY;
/* Create the explicit arguments. */
if (rhs_parm_type)