From 8d940f1c3f1b1594cdea679b8ae0475dbdc80ea4 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Wed, 15 Jun 2016 09:55:10 -0400 Subject: [PATCH] Enable -Wa,--divide for GCC/GAS on Solaris (Binutil PR 4572) --- GNUmakefile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 17c76990..a657936c 100755 --- a/GNUmakefile +++ b/GNUmakefile @@ -166,12 +166,13 @@ endif endif endif -# Allow use of "/" operator for GNU Assembler -# ifeq ($(findstring -DCRYPTOPP_DISABLE_ASM,$(CXXFLAGS)),) -# ifeq ($(IS_GAS),1) -# CXXFLAGS += -Wa,--divide -# endif -# endif +# Allow use of "/" operator for GNU Assembler. +# http://sourceware.org/bugzilla/show_bug.cgi?id=4572 +ifeq ($(findstring -DCRYPTOPP_DISABLE_ASM,$(CXXFLAGS)),) +ifeq ($(IS_SUN)$(GCC_COMPILER),11) +CXXFLAGS += -Wa,--divide +endif +endif ifeq ($(UNAME),) # for DJGPP, where uname doesn't exist CXXFLAGS += -mbnu210