Re: svn commit: r335887 - head/share/mk

2018-07-03 Thread Ruslan Bukin
On Tue, Jul 03, 2018 at 10:56:48AM +, Mark Linimon wrote:
> On Tue, Jul 03, 2018 at 10:51:59AM +, Ruslan Bukin wrote:
> >   Add GCC 8.1.0 compiler warning flags.
> 
> I'm sorry, but that is a "what" not a "why".
> 
> As someone who tries to fix ports on tier-2, I really need to
> understand the "why".
> 

There are plenty of issues (see warning flags for earlier versions of GCC 
listed in the same file which are required for GCC 8.1 as well). I think 
enumeration of all the issues may take some time. You just comment some warning 
flags and try build world.

Ruslan
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r335887 - head/share/mk

2018-07-03 Thread Mark Linimon
On Tue, Jul 03, 2018 at 10:51:59AM +, Ruslan Bukin wrote:
>   Add GCC 8.1.0 compiler warning flags.

I'm sorry, but that is a "what" not a "why".

As someone who tries to fix ports on tier-2, I really need to
understand the "why".

mcl
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r335887 - head/share/mk

2018-07-03 Thread Ruslan Bukin
Author: br
Date: Tue Jul  3 10:51:59 2018
New Revision: 335887
URL: https://svnweb.freebsd.org/changeset/base/335887

Log:
  Add GCC 8.1.0 compiler warning flags.
  
  Sponsored by: DARPA, AFRL

Modified:
  head/share/mk/bsd.sys.mk

Modified: head/share/mk/bsd.sys.mk
==
--- head/share/mk/bsd.sys.mkTue Jul  3 08:50:49 2018(r335886)
+++ head/share/mk/bsd.sys.mkTue Jul  3 10:51:59 2018(r335887)
@@ -154,6 +154,16 @@ CWARNFLAGS+=   -Wno-error=bool-operation   
\
-Wno-error=stringop-overflow
 .endif
 
+# GCC 8.1.0
+.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 80100
+CWARNFLAGS+=   -Wno-error=aggressive-loop-optimizations\
+   -Wno-error=cast-function-type   \
+   -Wno-error=multistatement-macros\
+   -Wno-error=restrict \
+   -Wno-error=sizeof-pointer-memaccess \
+   -Wno-error=stringop-truncation
+.endif
+
 # How to handle FreeBSD custom printf format specifiers.
 .if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 30600
 FORMAT_EXTENSIONS= -D__printf__=__freebsd_kprintf__
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"