From owner-cvs-src-old@FreeBSD.ORG Sat Mar 14 19:36:29 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1680E1065670 for ; Sat, 14 Mar 2009 19:36:29 +0000 (UTC) (envelope-from das@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 026248FC17 for ; Sat, 14 Mar 2009 19:36:29 +0000 (UTC) (envelope-from das@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n2EJaSfP059882 for ; Sat, 14 Mar 2009 19:36:28 GMT (envelope-from das@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n2EJaSlW059881 for cvs-src-old@freebsd.org; Sat, 14 Mar 2009 19:36:28 GMT (envelope-from das@repoman.freebsd.org) Message-Id: <200903141936.n2EJaSlW059881@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to das@repoman.freebsd.org using -f From: David Schultz Date: Sat, 14 Mar 2009 19:36:13 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/contrib/gcc c-cppbuiltin.c c-decl.c c-opts.c c-tree.h c-typeck.c src/contrib/gcc/doc extend.texi X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Mar 2009 19:36:29 -0000 das 2009-03-14 19:36:13 UTC FreeBSD src repository Modified files: contrib/gcc c-cppbuiltin.c c-decl.c c-opts.c c-tree.h c-typeck.c contrib/gcc/doc extend.texi Log: SVN rev 189824 on 2009-03-14 19:36:13Z by das Make gcc use C99 inline semantics in c99 and gnu99 mode. This was the original intent, but the functionality wasn't implemented until after gcc 4.2 was released. However, if you compiled a program that would behave differently before and after this change, gcc 4.2 would have warned you; hence, everything currently in the base system is unaffected by this change. This patch also adds additional warnings about certain inline function-related bogosity, e.g., using a static non-const local variable in an inline function. These changes were merged from a snapshot of gcc mainline from March 2007, prior to the GPLv3 switch. I then ran the regression test suite from a more recent gcc snapshot and fixed the important bugs it found. I also squelched the following warning unless -pedantic is specified: foo is static but used in inline function bar which is not static This is consistent with LLVM's behavior, but not consistent with gcc 4.3. Reviewed by: arch@ Revision Changes Path 1.2 +202 -40 src/contrib/gcc/c-cppbuiltin.c 1.16 +134 -70 src/contrib/gcc/c-decl.c 1.5 +8 -6 src/contrib/gcc/c-opts.c 1.12 +0 -1 src/contrib/gcc/c-tree.h 1.2 +7280 -5069 src/contrib/gcc/c-typeck.c 1.2 +6717 -2256 src/contrib/gcc/doc/extend.texi