Date: Sat, 14 Mar 2009 19:36:13 +0000 (UTC) From: David Schultz <das@FreeBSD.org> To: cvs-src-old@freebsd.org 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 Message-ID: <200903141936.n2EJaSlW059881@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903141936.n2EJaSlW059881>
