pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/mk/compiler



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Thu Jul  7 16:23:39 UTC 2022

Modified Files:
        pkgsrc/mk/compiler: gcc.mk

Log Message:
mk: Move GCC <= 4.4 override out of for loop.

Possible performance improvement, no funtional change.


To generate a diff of this commit:
cvs rdiff -u -r1.244 -r1.245 pkgsrc/mk/compiler/gcc.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/mk/compiler/gcc.mk
diff -u pkgsrc/mk/compiler/gcc.mk:1.244 pkgsrc/mk/compiler/gcc.mk:1.245
--- pkgsrc/mk/compiler/gcc.mk:1.244     Tue Jul  5 17:32:24 2022
+++ pkgsrc/mk/compiler/gcc.mk   Thu Jul  7 16:23:39 2022
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.244 2022/07/05 17:32:24 jperkin Exp $
+# $NetBSD: gcc.mk,v 1.245 2022/07/07 16:23:39 jperkin Exp $
 #
 # This is the compiler definition for the GNU Compiler Collection.
 #
@@ -232,11 +232,11 @@ _C_STD_FLAG.c99=  -std=gnu99
 
 .for _version_ in ${_CXX_STD_VERSIONS}
 _CXX_STD_FLAG.${_version_}?=   -std=${_version_}
-.  if !empty(_GCC_VERSION:M[34].[1234].*)
+.endfor
+.if !empty(_GCC_VERSION:M[34].[1234].*)
 _CXX_STD_FLAG.c++03=   -std=c++0x
 _CXX_STD_FLAG.gnu++03= -std=gnu++0x
-.  endif
-.endfor
+.endif
 
 .if !empty(_CC:M${LOCALBASE}/*)
 _IS_BUILTIN_GCC=       NO



Home | Main Index | Thread Index | Old Index