History log of /freebsd-10-stable/contrib/gcclibs/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
305693 11-Sep-2016 dim

MFC r305430:

Define libcpp's HAVE_DESIGNATED_INITIALIZERS in a defined and portable
way.

301976 17-Jun-2016 pfg

MFC r301291:
libiberty: prevent integer overflow.

Take care of very old bug leading to heap-buffer overflow by
processing certain file headers via bfd binary.

PR: 200888
Obtained from: OpenBSD

288133 22-Sep-2015 dim

MFC r286699:

In gcc's libcpp, stop using the INTTYPE_MAXIMUM() macro, which relies on
undefined behavior. The code used this macro to avoid problems on some
broken systems which define SSIZE_MAX incorrectly, but this is not
needed on FreeBSD, obviously.

283010 16-May-2015 pfg

MFC r282115, r282152, r282201
MFV r282150
libgomp: Update to version 4.3.5.
bring initial BSD support from upstream.

This was not meant to be MFC'd at first but the original OMP support
for FreeBSD was in very poor shape. The effect of this change should
be minimal as all ports are already using the version of libgomp that
comes with the gcc ports. The local libgomp is planned to be disabled
for platforms that are not using older gcc by default so this version
of libgomp will not be shipped in tier-1 platform releases.

Discussed with: emaste

264032 02-Apr-2014 dim

MFC r263775:

Avoid "cc1: warning: is shorter than expected" when using GNU cpp in
combination with dtrace scripts, which have "#!/usr/sbin/dtrace -Cs"
shebang lines. This is because dtrace positions the file pointer after
the shebang line, before passing the file to GNU cpp.

To fix the warning, adjust the size downwards by the current position,
after a bit of sanity checking.

Suggested by: avg

261188 26-Jan-2014 pfg

MFC r260311, r260831:

gcc: Add support for Apple's Block extension

Block objects [1] are a C-level syntactic and runtime feature. They
are similar to standard C functions, but in addition to executable
code they may also contain variable bindings to automatic (stack)
or managed (heap) memory. A block can therefore maintain a set of
state (data) that it can use to impact behavior when executed.

This port is based on Apple's GCC 5646 with some bugfixes from
Apple GCC 5666.3. It has some small differences with the support
in clang, which remains the recommended compiler.

Perhaps the most notable difference is that in GCC __block is not
actually a keyword, but a macro. There may be workaround for this
issue in the future. Other issues can be consulted in the clang
documentation [2]

For better compatiblity with Apple's GCC and llvm-gcc, some related
fixes and features from Apple have been included. Support for the
non-standard nested functions in GCC is now off by default.

No effort was made to update the ObjC support since FreeBSD doesn't
carry ObjC in the base system but some of the code crept in and
was more difficult to remove than to adjust.

References:
[1]
https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/Blocks/Articles/00_Introduction.html
[2]
http://clang.llvm.org/compatibility.html#block-variable-initialization

Obtained from: Apple GCC 4.2


/freebsd-10-stable/contrib/gcc/ChangeLog.apple
/freebsd-10-stable/contrib/gcc/attribs.c
/freebsd-10-stable/contrib/gcc/c-common.c
/freebsd-10-stable/contrib/gcc/c-common.h
/freebsd-10-stable/contrib/gcc/c-convert.c
/freebsd-10-stable/contrib/gcc/c-cppbuiltin.c
/freebsd-10-stable/contrib/gcc/c-decl.c
/freebsd-10-stable/contrib/gcc/c-objc-common.h
/freebsd-10-stable/contrib/gcc/c-opts.c
/freebsd-10-stable/contrib/gcc/c-parser.c
/freebsd-10-stable/contrib/gcc/c-pretty-print.c
/freebsd-10-stable/contrib/gcc/c-pretty-print.h
/freebsd-10-stable/contrib/gcc/c-tree.h
/freebsd-10-stable/contrib/gcc/c-typeck.c
/freebsd-10-stable/contrib/gcc/c.opt
/freebsd-10-stable/contrib/gcc/calls.c
/freebsd-10-stable/contrib/gcc/cgraph.h
/freebsd-10-stable/contrib/gcc/cgraphunit.c
/freebsd-10-stable/contrib/gcc/convert.c
/freebsd-10-stable/contrib/gcc/convert.h
/freebsd-10-stable/contrib/gcc/cp/ChangeLog.apple
/freebsd-10-stable/contrib/gcc/cp/call.c
/freebsd-10-stable/contrib/gcc/cp/class.c
/freebsd-10-stable/contrib/gcc/cp/cp-gimplify.c
/freebsd-10-stable/contrib/gcc/cp/cp-objcp-common.c
/freebsd-10-stable/contrib/gcc/cp/cp-objcp-common.h
/freebsd-10-stable/contrib/gcc/cp/cp-tree.h
/freebsd-10-stable/contrib/gcc/cp/decl.c
/freebsd-10-stable/contrib/gcc/cp/decl.h
/freebsd-10-stable/contrib/gcc/cp/decl2.c
/freebsd-10-stable/contrib/gcc/cp/error.c
/freebsd-10-stable/contrib/gcc/cp/init.c
/freebsd-10-stable/contrib/gcc/cp/mangle.c
/freebsd-10-stable/contrib/gcc/cp/name-lookup.c
/freebsd-10-stable/contrib/gcc/cp/name-lookup.h
/freebsd-10-stable/contrib/gcc/cp/parser.c
/freebsd-10-stable/contrib/gcc/cp/pt.c
/freebsd-10-stable/contrib/gcc/cp/semantics.c
/freebsd-10-stable/contrib/gcc/cp/tree.c
/freebsd-10-stable/contrib/gcc/cp/typeck.c
/freebsd-10-stable/contrib/gcc/dbxout.c
/freebsd-10-stable/contrib/gcc/doc/extend.texi
/freebsd-10-stable/contrib/gcc/doc/invoke.texi
/freebsd-10-stable/contrib/gcc/dwarf2.h
/freebsd-10-stable/contrib/gcc/dwarf2out.c
/freebsd-10-stable/contrib/gcc/expmed.c
/freebsd-10-stable/contrib/gcc/expr.c
/freebsd-10-stable/contrib/gcc/fold-const.c
/freebsd-10-stable/contrib/gcc/function.c
/freebsd-10-stable/contrib/gcc/function.h
/freebsd-10-stable/contrib/gcc/ggc-common.c
/freebsd-10-stable/contrib/gcc/ggc.h
/freebsd-10-stable/contrib/gcc/langhooks-def.h
/freebsd-10-stable/contrib/gcc/langhooks.c
/freebsd-10-stable/contrib/gcc/langhooks.h
/freebsd-10-stable/contrib/gcc/stor-layout.c
/freebsd-10-stable/contrib/gcc/stub-objc.c
/freebsd-10-stable/contrib/gcc/targhooks.c
/freebsd-10-stable/contrib/gcc/toplev.c
/freebsd-10-stable/contrib/gcc/tree-gimple.h
/freebsd-10-stable/contrib/gcc/tree-nested.c
/freebsd-10-stable/contrib/gcc/tree.c
/freebsd-10-stable/contrib/gcc/tree.def
/freebsd-10-stable/contrib/gcc/tree.h
/freebsd-10-stable/contrib/gcc/varasm.c
include/libiberty.h
libiberty/physmem.c
260573 12-Jan-2014 pfg

MFC r260310:

libcpp: misc fixes from Apple's GCC.

Fixes some bugs detected by Apple:
#error with unmatched quotes
pragma mark

Obtained from: Apple GCC 4.2 - 5553

259890 25-Dec-2013 pfg

MFC r258826, r259555, r 259558:

libcpp: Merge fixes from upstream
Fixes:
GCC preprocessor/29966:
GCC preprocessor/28709:
GCC c/31924
GCC preprocessor/14331

gcc: add Apple-compatible -Wnewline-eof

Obtained from: gcc per-4.3 (rev. 121340, 124356, 124358, 124730,
125212, 125255 ; GPLv2)
Apple Inc. (Apple GCC 4.2 - 5531)

259694 21-Dec-2013 pfg

MFC r258017, r258429, r258748, r258817:

Merge updates from FSF pre4.3 GCC inspired on Apple's gcc:

Updates to libiberty and mangling.
New align attribute.
Merge Apple updates to libstdc++.


/freebsd-10-stable/contrib/binutils/binutils/cxxfilt.c
/freebsd-10-stable/contrib/gcc/ChangeLog.gcc43
/freebsd-10-stable/contrib/gcc/builtins.c
/freebsd-10-stable/contrib/gcc/c-common.c
/freebsd-10-stable/contrib/gcc/c-decl.c
/freebsd-10-stable/contrib/gcc/cp/ChangeLog.gcc43
/freebsd-10-stable/contrib/gcc/cp/decl.c
/freebsd-10-stable/contrib/gcc/cp/mangle.c
/freebsd-10-stable/contrib/gcc/cp/typeck.c
/freebsd-10-stable/contrib/gcc/doc/extend.texi
/freebsd-10-stable/contrib/gcc/flags.h
/freebsd-10-stable/contrib/gcc/print-tree.c
/freebsd-10-stable/contrib/gcc/toplev.c
/freebsd-10-stable/contrib/gcc/tree.c
/freebsd-10-stable/contrib/gcc/tree.h
/freebsd-10-stable/contrib/gcc/varasm.c
libiberty/ChangeLog.gcc43
libiberty/choose-temp.c
libiberty/cp-demangle.c
libiberty/cp-demangle.h
libiberty/floatformat.c
libiberty/functions.texi
libiberty/pex-unix.c
libiberty/strsignal.c
libiberty/testsuite/demangle-expected
libiberty/testsuite/test-demangle.c
/freebsd-10-stable/contrib/libstdc++/include/bits/basic_string.h
/freebsd-10-stable/contrib/libstdc++/include/bits/basic_string.tcc
/freebsd-10-stable/contrib/libstdc++/include/bits/stl_algobase.h
/freebsd-10-stable/contrib/libstdc++/include/bits/stl_tree.h
/freebsd-10-stable/contrib/libstdc++/include/bits/stl_vector.h
/freebsd-10-stable/contrib/libstdc++/include/ext/mt_allocator.h
/freebsd-10-stable/contrib/libstdc++/include/ext/throw_allocator.h
/freebsd-10-stable/contrib/libstdc++/libsupc++/eh_alloc.cc
/freebsd-10-stable/contrib/libstdc++/src/mt_allocator.cc
259408 15-Dec-2013 pfg

MFC r258530;

libcpp: Keep a record of changes from upstream GCC (pre-43).

259405 15-Dec-2013 pfg

MFC rr258501, r258507;
gcc: Bring updates from Google's enhanced gcc-4.2.1.

Google released and enhanced version of gcc-4.2.1 plus their local
patches for Android[1].

The patches are owned by Google and the license hasn't been changed
from the original GPLv2. We are only bringing a subset of the
available patches that may be helpful in FreeBSD, in other words,
changes specific to android are not included.

From the README.google file[1].

Patches applied to google_vendor_src_branch/gcc/gcc-4.2.1:

gcc/Makefile.in
gcc/c-common.c
gcc/c-common.h
gcc/c-opts.c
gcc/c-typeck.c
gcc/cp/typeck.c
gcc/doc/invoke.texi
gcc/flags.h
gcc/opts.c
gcc/tree-flow.h
gcc/tree-ssa-alias-warnings.c
gcc/tree-ssa-alias.c

Backport of -Wstrict-aliasing from mainline.
Silvius Rus <rus@google.com>

gcc/coverage.c:
Patch coverage_checksum_string for PR 25351.
Seongbae Park <spark@google.com>
Not yet submitted to FSF.

gcc/c-opts.c
gcc/c-ppoutput.c
gcc/c.opt
gcc/doc/cppopts.texi
libcpp/Makefile.in
libcpp/directives-only.c
libcpp/directives.c
libcpp/files.c
libcpp/include/cpplib.h
libcpp/init.c
libcpp/internal.h
libcpp/macro.c
Support for -fdirectives-only.
Ollie Wild <aaw@google.com>.
Submitted to FSF but not yet approved.

libstdc++-v3/include/ext/hashtable.h
http://b/742065
http://b/629994
Reduce min size of hashtable for hash_map, hash_set from 53 to 5

libstdc++-v3/include/ext/hashtable.h
http://b/629994
Do not iterate over buckets if hashtable is empty.

gcc/common.opt
gcc/doc/invoke.texi
gcc/flags.h
gcc/gimplify.c
gcc/opts.c
Add Saito's patch for -finstrument-functions-exclude-* options.

gcc/common.opt
gcc/doc/invoke.texi
gcc/final.c
gcc/flags.h
gcc/opts.c
gcc/testsuite/gcc.dg/Wframe-larger-than.c
Add a new flag -Wframe-larger-than- which enables a new warning
when a frame size of a function is larger than specified.
This patch hasn't been integrated into gcc mainline yet.

gcc/tree-vrp.c
Add a hack to avoid using ivopts information for pointers starting
at constant values.

Reference:

[1]
https://android.googlesource.com/toolchain/gcc/+/master/gcc-4.2.1/

Obtained from: Google Inc.

259271 12-Dec-2013 pfg

MFC r258712;

libcpp: fix an underflow.

Similar fix seen in Apple's gcc42.

Obtained from: OpenBSD (Rev 1.2)
MFC after: 2 weeks

259268 12-Dec-2013 pfg

MFC r258081, r258138, r258143, r258179, r258157, r258204, 258205,
r258206, r258207, r258321

This is a series of commits inspired on Google's gcc-4.2.1 for
Android that were taken from the gcc pre-4.3 under the GPLv2.

gcc: Backport fixes for -W parentheses in C++
This fixes GCC 19564.
gcc: merge rs6000 change from FSF pre-gcc43
Don't set MASK_PPC_GFXOPT for 8540 or 8548.
Merge vrp-tree fix from gcc-4.3
Fix missed conversion from / to >> (GCC PR32521)
Merge in GCCr120505 to include definition of TREE_OVERFLOW_P
gcc: warn about integer overflow in constant expressions in the C++ frontend.
gcc: Add a new option -Wvla to warn variable length array.
libcpp: preprocessor speedup patches from upstream gcc.
gcc: add femit-struct-debug support to reduce Reduce dwarf debug size
gcc: Fix postreload-gcse treatment of call-clobbered registers.
gcc: Record some previous commits in the ChangeLog.gcc43 file.

259242 12-Dec-2013 mdf

MFC r258658:

Fix a segfault / internal compiler error.

Among other causes, when gcc throws a warning before parsing any tokens,
the cur_token pointer is at the beginning of malloc'd memory.
Dereferencing cur_token[-1] can cause a segfault.

Code taken from OpenBSD
http://www.openbsd.org/cgi-bin/cvsweb/src/gnu/gcc/libcpp/errors.c
which was a more complete fix than the one I originally coded.

256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


255107 31-Aug-2013 pfg

Add support for the GCC binary integer constants extension.

This is required to build the i965 backend with newer versions of mesa.

Original patch from Joerg Wunsch in GCC Bug 23479, under the GPLv2;
also taken from there in OpenBSD.

Obtained from: gcc 4.3 (rev. 125346; GPLv2)
MFC after: 5 days


250566 12-May-2013 pfg

Add support for "d" floating-point suffix, as defined by draft N1312
of TR 24732. Emit pedantic warning if the feature is being used.

Should solve GCC bug 39027.

Obtained from: OpenBSD
MFC after: 2 weeks


243933 06-Dec-2012 eadler

Clean up hardcoded ar(1) flags in the tree to use the global ARFLAGS in
share/mk/sys.mk instead.

This is part of a medium term project to permit deterministic builds of
FreeBSD.

Submitted by: Erik Cederstrand <erik@cederstrand.dk>
Reviewed by: imp, toolchain@
Approved by: cperciva
MFC after: 2 weeks


228474 13-Dec-2011 ed

Add support for __COUNTER__.

__COUNTER__ allows one to obtain incrementing (read: unique) numbers
from the C preprocesor. This is useful when implementing things like a
robust implementation of CTASSERT(), which currently fails when using
it more than once on a single line of code. Probably not likely to cause
any breakage, but still.

__COUNTER__ was also added to GCC 4.3, but since that implementation is
GPLv3 licensed, I took the liberty of implementing it without looking at
any upstream sources. Therefore, this version is licensed under the same
license as the rest of the code; GPLv2.


222203 22-May-2011 benl

Fix clang compile warnings.

Approved by: philip (mentor)


171832 14-Aug-2007 kan

This commit was generated by cvs2svn to compensate for changes in r171831,
which included commits to RCS files with non-trunk default branches.


169712 19-May-2007 kan

Re-add local FreeBSD change: prefer /tmp to /var/tmp and /usr/tmp
for temporary files.


169696 19-May-2007 kan

This commit was generated by cvs2svn to compensate for changes in r169695,
which included commits to RCS files with non-trunk default branches.