https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79647

            Bug ID: 79647
           Summary: bogus warning when building openssl
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bernd.edlinger at hotmail dot de
  Target Milestone: ---

Created attachment 40786
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40786&action=edit
preprocessed source file

Latest gcc of today fails to build latest openssl of today,
when openssl is configured with --strict-warnings

gcc  -I. -Iinclude -DDSO_DLFCN -DHAVE_DLFCN_H -DNDEBUG -DOPENSSL_THREADS
-DOPENSSL_NO_STATIC_ENGINE -DOPENSSL_PIC -DOPENSSL_IA32_SSE2
-DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM
-DSHA256_ASM -DSHA512_ASM -DRC4_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM
-DGHASH_ASM -DECP_NISTZ256_ASM -DPADLOCK_ASM -DPOLY1305_ASM
-DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/usr/local/lib/engines-1.1\""
-Wall -O3 -pthread -m64 -DL_ENDIAN  -DDEBUG_UNUSED -Wswitch -DPEDANTIC
-pedantic -Wno-long-long -Wall -Wsign-compare -Wmissing-prototypes -Wshadow
-Wformat -Wtype-limits -Wno-parentheses-equality -Werror -Wa,--noexecstack 
-MMD -MF apps/speed.d.tmp -MT apps/speed.o -c -o apps/speed.o apps/speed.c
apps/speed.c: In function 'speed_main':
apps/speed.c:1516:5: error: 'memset': specified size between
18446742819579101184 and 18446744073709551032 exceeds maximum object size
9223372036854775807 [-Werror=stringop-overflow=]
     memset(loopargs, 0, loopargs_len * sizeof(loopargs_t));
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
apps/speed.c: At top level:
cc1: error: unrecognized command line option '-Wno-parentheses-equality'
[-Werror]
cc1: all warnings being treated as errors
make[1]: *** [apps/speed.o] Error 1


The second warning is also bogus, the -Wno-parentheses-equality was accepted
before.

Reply via email to