diff --git a/gcc.spec b/gcc.spec index 34ab6d62aafccaf2ce7f8558d9ecd07f3baee317..fa81693c3013a1848554a644288a682e22a27c47 100644 --- a/gcc.spec +++ b/gcc.spec @@ -37,7 +37,7 @@ Summary: Various compilers (C, C++, Objective-C, Java, ...) Name: gcc Version: 7.3.0 -Release: %{DATE}.36 +Release: %{DATE}.37 License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD Group: Development/Languages #Source0: hcc-aarch64-linux-release.tar.bz2 @@ -614,7 +614,7 @@ export GCJ_PROPERTIES=jdt.compiler.useSingleThread=true mkdir fastjar-%{fastjar_ver}/obj-%{gcc_target_platform} cd fastjar-%{fastjar_ver}/obj-%{gcc_target_platform} ../configure CFLAGS="%{optflags}" --prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir} -make -j100 +make -j16 export PATH=`pwd`${PATH:+:$PATH} cd ../../ %endif @@ -663,8 +663,8 @@ cd isl-build ../../isl-%{isl_version}/configure --disable-shared \ CC=/usr/bin/gcc CXX=/usr/bin/g++ \ CFLAGS="${CFLAGS:-%optflags} $ISL_FLAG_PIC" --prefix=`cd ..; pwd`/isl-install -make -j100 -make -j100 install +make -j16 +make -j16 install cd .. mkdir cloog-build cloog-install @@ -685,8 +685,8 @@ cd - --prefix=`cd ..; pwd`/cloog-install sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool -make -j100 -make -j100 install +make -j16 +make -j16 install cd ../cloog-install/lib ln -sf libcloog-isl.so.4 libcloog-isl.so ln -sf libcloog-isl.so.4 libcloog.so @@ -695,8 +695,7 @@ cd ../.. #test don't build %if 1 CC=gcc -OPT_FLAGS=`echo %{optflags}|sed -e 's/\(-Wp,\)\?-D_FORTIFY_SOURCE=[12]//g'` -OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-m64//g;s/-m32//g;s/-m31//g'` +OPT_FLAGS=`echo %{optflags}|sed -e 's/-m64//g;s/-m32//g;s/-m31//g'` OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-mfpmath=sse/-mfpmath=sse -msse2/g'` OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-Werror=format-security/ /g'` OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/ -pipe / /g'` @@ -742,7 +741,7 @@ enablelada=,ada %if %{build_go} enablelgo=,go %endif -OPT_FLAGS="$OPT_FLAGS -fPIE -Wl,-z,relro,-z,now" +OPT_FLAGS="$OPT_FLAGS -O2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -fPIE -Wl,-z,relro,-z,now" OPT_LDFLAGS="$OPT_LDFLAGS -Wl,-z,relro,-z,now" export extra_ldflags_libobjc="-Wl,-z,relro,-z,now" export FCFLAGS="$OPT_FLAGS" @@ -753,6 +752,7 @@ CC="$CC" CFLAGS="$OPT_FLAGS" \ CFLAGS_FOR_TARGET="$OPT_FLAGS" \ CXXFLAGS_FOR_TARGET="$OPT_FLAGS" \ XCFLAGS="$OPT_FLAGS" TCFLAGS="$OPT_FLAGS" GCJFLAGS="$OPT_FLAGS" \ + CFLAGS="$CFLAGS -param ggc-min-expand=0 -param ggc-min-heapsize=1024" ../configure --prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir} \ --enable-shared --enable-threads=posix --enable-checking=release \ --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions \ @@ -3285,6 +3285,12 @@ fi %changelog +* Wed Mar 17 2021 tianwei - 7.3.0-20210203.37 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:add SP and FS for x86 + * Wed Feb 03 2021 eastb233 - 7.3.0-20210203.36 - gcc.spec: Add libubsan, libubsan-static, liblsan, liblsan-static rpm packages