summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/cp
Commit message (Collapse)AuthorAgeFilesLines
* MFC r275477:dim2014-12-112-27/+6
| | | | | | | | | | | | | | | | | Pull in r174303 from upstream gcc trunk (by Jason Merrill): PR c++/48211 * name-lookup.h (cp_class_binding): Make base a pointer. * name-lookup.c (new_class_binding): Adjust. (poplevel_class): Adjust. This fixes a potential segfault when compiling gold, a part of the devel/binutils port, with gcc. See also the upstream bug report: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48211 Thanks to Jason Merrill, Tom Callaway and Red Hat legal for approving the use of this patch under the GNU GPL, version 2 or later.
* MFC r261178:pfg2014-01-311-0/+4
| | | | | | | | | | gcc: Add support for -Wmissing-prototypes in C++ Support for warnings about missing prototypes in C++ was added by Apple GCC (Radar 6261539). Most of the code crept into r260311 so it felt natural to make use of it. Obtained from: Apple GCC - 5646
* MFC r260311, r260831:pfg2014-01-2620-153/+4361
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* MFC r260332;pfg2014-01-204-152/+196
| | | | | | | | | | | | | | | | | | | | | gcc: backport some fixes from llvm-gcc llvm-gcc backported some patches from gcc trunk: http://gcc.gnu.org/ml/gcc-cvs/2007-05/msg00662.html http://gcc.gnu.org/ml/gcc-cvs/2007-07/msg00019.html http://gcc.gnu.org/ml/gcc-cvs/2007-08/msg00240.html http://gcc.gnu.org/ml/gcc-cvs/2007-08/msg00493.html The first two were always GPL2. The last two were added after the GPL3 transition, but were written by aaw@google.com and Rafael EspĂ­ndola got permission to relicense them under the GPL2 for inclusion in llvm-gcc. This fixes GCC-PR c++/31749 Obtained from: llvm-gcc (rev. 75463; GPLv2)
* MFC r260014, r260099:pfg2014-01-2010-34/+214
| | | | | | | | | | gcc: Add support for label attributes and "unavailable" attribute. Apple GCC has extensions to support for both label attributes and an "unavailable" attribute. These are critical for objc but are also useful in regular C/C++. Obtained from: Apple GCC 4.2 - 5531
* MFC r259655 (partial), r259944:pfg2014-01-032-2/+8
| | | | | | | | | | | | | | gcc: merge small upstream changes. Fix for PR c++/29928 Backport from mainline: 2007-04-24 Hui-May Chang <hm.chang@apple.com> * reload1.c (merge_assigned_reloads) : Do not merge a RELOAD_OTHER instruction with a RELOAD_FOR_OPERAND_ADDRESS instruction. Obtained from: gcc 4.3 (rev. r124115, 124724: GPLv2)
* MFC r259525, r259526, r259529pfg2013-12-314-28/+75
| | | | | | | | | | | | | | | | gcc: small merges from upstream fix ICE in rs6000 when using -fno-trapping-math. Solves GCC-PR target/30485 Solve GCC issues: PR middle-end/32602 PR middle-end/32603 Updates the to documentation and processing improvement. Obtained from: gcc 4.3 (rev. 120902, 120902, 119427, 126278, 126422; GPLv2)
* MFC r259005, r259092:pfg2013-12-305-5/+37
| | | | | | | | | gcc: Add -flax-vector-conversions gcc: new fvisibility-ms-compat option These are useful for compatibility with newwer gcc and clang. Obtained from: gcc 4.3 (rev. 120572, 120688, 126088; GPLv2)
* MFC r259666, r259696:pfg2013-12-283-4/+4
| | | | | | gcc: warnings from -Wformat-security Obtained from: Apple GCC 4.2 - 5646 (Radar 5764921)
* gcc: Merge upstream changes.pfg2013-12-275-5/+17
| | | | | | | | Include types in error message for build_binary_op. Mostly cosmetic changes, to reduce differences with Apple's gcc. Obtained from: gcc 4.3 (rev. 120611, 124839, 125239; GPLv2)
* MFC r258017, r258429, r258748, r258817:pfg2013-12-214-9/+44
| | | | | | | | 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++.
* MFC r258731:pfg2013-12-192-1/+9
| | | | | | | | | | gcc: Make use of TREE_OVERFLOW_P. While it was brought in r258179 only to fix a build issue, bringing the rest of the change has the advantage of fixing GCC/19978. Obtained from: gcc 4.3 (rev. 120505; GPLv2)
* MFC r258428, r258445pfg2013-12-183-11/+54
| | | | | | | | | | | | | | | | | | | | | | | | | gcc: another round of merges from the gcc pre-43 branch. Bring The following revisions from the gcc43 branch[1]: 118360, 118361, 118363, 118576, 119820, 123906, 125246, and 125721. They all have in common that the were merged long ago into Apple's gcc and should help improve the general quality of the compiler and make it easier to bring new features from Apple's gcc42. For details please review the additions to the files: gcc/ChangeLog.gcc43 gcc/cp/ChangeLog.gcc43 (new, adds previous revisions) Fix crosscompilation (r258445 by andreast) Reference: [1] http://gcc.gnu.org/viewcvs/gcc/trunk/?pathrev=126700 Obtained from: gcc pre4.3 (GPLv2) branch MFC after: 3 weeks
* MFC rr258501, r258507;pfg2013-12-151-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* MFC r258081, r258138, r258143, r258179, r258157, r258204, 258205,pfg2013-12-128-35/+171
| | | | | | | | | | | | | | | | | | | | | 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.
* Fix accidential dos-style endings to unix-style line endingsmm2011-07-301-6/+6
| | | | | | from last commit (r224523) to match the version approved by re@ Approved by: re (implicit)
* Fix invalid assertion of C++ external static data member declarationsmm2011-07-302-1/+7
| | | | | | | | | | | as anonymous namespaces are local to the current translation. GCC PR: c++/33094 Reviewed by: uqs Approved by: re (kib) Obtained from: gcc (branches/redhat/gcc-4_1-branch, rev. 129554, GPLv2) MFC after: 1 week
* Upgrade of base gcc and libstdc++ to the last GPLv2-licensed revisionmm2011-03-2912-14/+190
| | | | | | | | | | | | | | | | | | | (rev. 127959 of gcc-4_2-branch). Resolved GCC bugs: c++: 17763, 29365, 30535, 30917, 31337, 31941, 32108, 32112, 32346, 32898, 32992 debug: 32610, 32914 libstdc++: 33084, 33128 middle-end: 32563 rtl-optimization: 33148 tree-optimization: 25413, 32723 target: 32218 Tested by: pointyhat (miwi) Obtained from: gcc (gcc-4_2-branch up to rev. 127959) PR: gnu/153298, gnu/153959, gnu/154385 MFC after: 1 month
* Merge files that are no longer carry FreeBSD local changes.kan2007-08-141-15/+71
| | | | Approved by: re (kensmith)
* This commit was generated by cvs2svn to compensate for changes in r171825,kan2007-08-1411-66/+218
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * GCC 4.2.1 release.kan2007-08-1412-81/+289
| |
| * Remove files that are no more part of GCC distribution from FSF branch.kan2007-05-195-52848/+0
| |
* | This commit was generated by cvs2svn to compensate for changes in r169708,kan2007-05-195-52848/+0
| | | | | | | | which included commits to RCS files with non-trunk default branches.
* | FreeBSD uses unchanged versions of this files.kan2007-05-193-4128/+4539
| |
* | This commit was generated by cvs2svn to compensate for changes in r169689,kan2007-05-1953-25714/+99523
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * GCC 4.2.0 release.kan2007-05-1956-29831/+104058
| |
* | Resolve conflicts after GCC 3.4.6 20060825 import.kan2006-08-261-67/+87
| |
* | This commit was generated by cvs2svn to compensate for changes in r161651,kan2006-08-2618-292/+912
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Gcc 3.4.6 as of 2006/08/25 #116475.kan2006-08-2619-359/+999
| |
* | Stock files.kan2005-06-032-81/+185
| |
* | This commit was generated by cvs2svn to compensate for changes in r146895,kan2005-06-0321-497/+1577
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Gcc 3.4.4 release.kan2005-06-0323-578/+1762
| |
| * Remove files that are not part of GCC 3.4.x from the vendor branch.kan2004-08-126-7755/+0
| |
* | This commit was generated by cvs2svn to compensate for changes in r133582,kan2004-08-123-5954/+0
| | | | | | | | which included commits to RCS files with non-trunk default branches.
* | Merge FreeBSD changes into GCC 3.4.2-prerelease:kan2004-07-281-55/+30
| | | | | | | | 1.2 Printf format errors fixes.
* | Use stock version of this file now.kan2004-07-281-5697/+1493
| |
* | Use stock GCC versions on these files.kan2004-07-281-183/+133
| |
* | This commit was generated by cvs2svn to compensate for changes in r132718,kan2004-07-2842-33268/+60169
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Gcc 3.4.2 20040728.kan2004-07-2845-39194/+61826
| |
| * Remove files not part of GCC 3.3.x.kan2004-01-052-123/+0
| |
* | This commit was generated by cvs2svn to compensate for changes in r124151,kan2004-01-052-123/+0
| | | | | | | | which included commits to RCS files with non-trunk default branches.
* | Merge r1.8 (printf format error fixes).kan2003-11-071-28/+53
| |
* | This commit was generated by cvs2svn to compensate for changes in r122180,kan2003-11-0712-221/+400
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Gcc 3.3.3 20031106.kan2003-11-0713-249/+453
| |
* | Merge FreeBSD modifications into gcc 3.3.1-release:kan2003-08-221-11/+23
| | | | | | | | 1.8 printf format error fixes.
* | This commit was generated by cvs2svn to compensate for changes in r119256,kan2003-08-229-74/+275
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Gcc 3.3.1-release.kan2003-08-2210-85/+298
| |
* | Merge FreeBSD modifications into gcc 3.3.1-prerelease:kan2003-07-111-1582/+2124
| | | | | | | | 1.8 printf format error fixes.
* | Merge FreeBSD changes into GCC 3.3.1-prerelease:kan2003-07-111-8/+10
| | | | | | | | 1.2 Printf format errors fixes.
* | FreeBSD uses stock versions of these GCC files.kan2003-07-111-46/+127
| |
OpenPOWER on IntegriCloud