aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r--gcc/cp/decl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 9d91387c7f1..2f444656842 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -4133,7 +4133,7 @@ cxx_init_decl_processing (void)
current_lang_name = lang_name_cplusplus;
if (aligned_new_threshhold > 1
- && exact_log2 (aligned_new_threshhold) == -1)
+ && !pow2p_hwi (aligned_new_threshhold))
{
error ("-faligned-new=%d is not a power of two", aligned_new_threshhold);
aligned_new_threshhold = 1;