Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jul 2014 12:24:38 +0000 (UTC)
From:      Pietro Cerutti <gahr@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r268619 - head/usr.bin/users
Message-ID:  <201407141224.s6ECOcKP041940@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gahr (ports committer)
Date: Mon Jul 14 12:24:38 2014
New Revision: 268619
URL: http://svnweb.freebsd.org/changeset/base/268619

Log:
  Unbreak the build by re-enabling exceptions.
  
  Disabling them breaks build on archs using GCC. The problem is at line 156 of
  bits/basic_ios.h:
  
  	if (this->exceptions() & __state)
  		__throw_exception_again;
  
  With exceptions disabled __throw_exception_again is defined as
  
  #define __throw_exception_again
  
  at line 45 of exception_defines.h and the code results in an empty loop body,
  which fails because of -Werror.
  
  Approved by:	cognet

Modified:
  head/usr.bin/users/Makefile

Modified: head/usr.bin/users/Makefile
==============================================================================
--- head/usr.bin/users/Makefile	Mon Jul 14 11:07:43 2014	(r268618)
+++ head/usr.bin/users/Makefile	Mon Jul 14 12:24:38 2014	(r268619)
@@ -3,6 +3,6 @@
 
 WARNS=		3
 PROG_CXX=	users
-CXXFLAGS+=	-fno-rtti -fno-exceptions
+CXXFLAGS+=	-fno-rtti
 
 .include <bsd.prog.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407141224.s6ECOcKP041940>