aboutsummaryrefslogtreecommitdiff
path: root/contrib/gcc/doc
Commit message (Collapse)AuthorAgeFilesLines
* Remove contrib/gcc and contrib/gcclibsEd Maste2020-02-2949-91103/+0
| | | | | | | | | GCC 4.2.1 was disconnected from FreeBSD in r358454. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=358459
* libcpp: Complete the __COUNTER__ support with upstream implementation.Pedro F. Giffuni2016-08-301-0/+7
| | | | | | | | | | | | | We brought an original __COUNTER__ implementation in r228474, however, it was missing documentation and it had a different behaviour for precompiled headers with respect to the upstream version. Since the upstream version is under the same license as GCC4.2, bring the missing pieces to reduce differences against upstream. Optained from: GCC pre-4.3 (rev. 125041 ; GPLv2) Notes: svn path=/head/; revision=305083
* GCC: Add a new option "-fstack-protector-strong"Pedro F. Giffuni2015-07-303-2/+16
| | | | | | | | | | | | | This includes additional functions to be protected: those that have local array definitions, or have references to local frame addresses. This is a new option in GCC-4.9 that was relicensed by Han Shen from Google under GPLv2 for OpenBSD. Obtained from: OpenBSD (2014-01-14) MFC after: 2 weeks Notes: svn path=/head/; revision=286074
* gcc: Add support for -Wmissing-prototypes in C++Pedro F. Giffuni2014-01-261-2/+6
| | | | | | | | | | | | 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 after: 5 days Notes: svn path=/head/; revision=261178
* gcc: Add support for Apple's Block extensionPedro F. Giffuni2014-01-052-4/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 that __block is not actually a keyword, but a macro. There will be workaround for this issue in a near 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. Reference: [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 after: 3 weeks Notes: svn path=/head/; revision=260311
* gcc: Add support for label attributes and "unavailable" attribute.Pedro F. Giffuni2013-12-281-22/+96
| | | | | | | | | | | | | | | | | | 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++. Apparently at least the label attributes might have found their way to upstream GCC but the code doesn't seem available on the GPLv2 tree so we are taking the code directly from Apple. To make this clearer we are preserving the annoying "APPLE LOCAL" tags and the ChangeLogs when they are available. Obtained from: Apple GCC 4.2 - 5531 MFC after: 3 weeks Notes: svn path=/head/; revision=260014
* gcc: Implement -Wmost for compatibility with clang.Pedro F. Giffuni2013-12-261-0/+7
| | | | | | | | | | This is equivalent to -Wall -Wno-parentheses. Obtained from: Apple GCC 4.2 - 5531 MFC after: 1 week Notes: svn path=/head/; revision=259920
* Revert r259619:Pedro F. Giffuni2013-12-201-8/+0
| | | | | | | | | | | | Fixes GCC libstdc++/29286 The fix seems to work for amd64 but causes segfaults on powerpc. At this time gcc is much more important on powerpc than on amd64. Reported by: andreast Notes: svn path=/head/; revision=259661
* gcc: more diff reductions against Apple GCC.Pedro F. Giffuni2013-12-201-0/+6
| | | | | | | | | | Mostly cosmetical changes to aid further merges. Obtained from: gcc 4.3 (rev. 120611, 124839; GPLv2) MFC after: 1 week Notes: svn path=/head/; revision=259649
* gcc: backport upstream fix for issue with C++'s placement newPedro F. Giffuni2013-12-191-0/+8
| | | | | | | | | | Fixes GCC libstdc++/29286 Obtained from: gcc 4.3 (rev. 125603, 125653; GPLv2) MFC after: 2 weeks Notes: svn path=/head/; revision=259619
* gcc: add Apple compatible -Wnewline-eofPedro F. Giffuni2013-12-181-1/+1
| | | | | | | | | Fix document: "Apple compatible" suits better the origin. MFC after: 1 week Notes: svn path=/head/; revision=259558
* gcc: add Apple compatible -Wnewline-eofPedro F. Giffuni2013-12-181-0/+8
| | | | | | | | | | | | | | | | | GCC 4.2 and previous have always warned about "No newline at end of file". Upstream GCC removed the warning completely but Apple made it an optional warning. Adopt it for compatibility with older GCC and clang. While here, add comment to complement r258712. Obtained from: Apple Inc. (Apple GCC 4.2 - 5531) MFC after: 1 week Notes: svn path=/head/; revision=259555
* gcc: small merges from upstreamPedro F. Giffuni2013-12-172-2/+8
| | | | | | | | | | | | | | | Solves GCC issues: PR middle-end/32602 PR middle-end/32603 Updates the to documentation and processing improvement. Obtained from: gcc 4.3 (rev. 119427, 126278, 126422; GPLv2) MFC after: 2 weeks Notes: svn path=/head/; revision=259529
* gcc: new fvisibility-ms-compat optionPedro F. Giffuni2013-12-081-0/+35
| | | | | | | | Obtained from: gcc 4.3 (rev. 126088; GPLv2) MFC after: 3 weeks Notes: svn path=/head/; revision=259092
* gcc: Add -flax-vector-conversionsPedro F. Giffuni2013-12-051-1/+7
| | | | | | | Obtained from: gcc 4.3 (rev. 120572, 120688; GPLv2) Notes: svn path=/head/; revision=259005
* gcc: upstream alignment cleanups.Pedro F. Giffuni2013-11-291-0/+25
| | | | | | | | | | | | | This solves GCC/32617 and contributes to reduce differences with Apple's gcc42. Complete some references in the ChangeLog while here. Obtained from: gcc 4.3 (rev. 126529, 126588; GPLv2) MFC after: 3 weeks Notes: svn path=/head/; revision=258748
* gcc: Bring updates from Google's enhanced gcc-4.2.1.Pedro F. Giffuni2013-11-232-6/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. 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 after: 3 weeks Notes: svn path=/head/; revision=258501
* gcc: another round of merges from the gcc pre-43 branch.Pedro F. Giffuni2013-11-213-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | | 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) Reference: [1] http://gcc.gnu.org/viewcvs/gcc/trunk/?pathrev=126700 Obtained from: gcc pre4.3 (GPLv2) branch MFC after: 3 weeks Notes: svn path=/head/; revision=258428
* gcc: add femit-struct-debug support to reduce Reduce dwarf debug sizePedro F. Giffuni2013-11-161-0/+74
| | | | | | | | Obtained from: gcc 4.3 (rev. 123909; GPLv2) MFC after: 3 weeks Notes: svn path=/head/; revision=258206
* gcc: Add a new option -Wvla to warn variable length array.Pedro F. Giffuni2013-11-161-1/+9
| | | | | | | | Obtained from: gcc 4.3 (rev. 122851; GPLv2) MFC after: 3 weeks Notes: svn path=/head/; revision=258204
* gcc: Backport fixes for -W parentheses in C++Pedro F. Giffuni2013-11-131-11/+10
| | | | | | | | | | | | | | | | This fixes GCC 19564: http://gcc.gnu.org/ml/gcc-patches/2006-12/msg00868.html http://gcc.gnu.org/ml/gcc-patches/2006-12/msg01772.html http://gcc.gnu.org/ml/gcc-patches/2007-01/msg00545.html The patch and its fixes are used by Google in their enhanced gcc-4.2.1 port and predates the license switch in GCC so they are still under GPLv2. MFC after: 3 weeks Notes: svn path=/head/; revision=258081
* add support to gcc for AES and PCLMUL intrinsics... This addes theJohn-Mark Gurney2013-09-031-5/+7
| | | | | | | | | | | -maes option, but not the -mpclmul option as I ran out of bits in the 32 bit flags field... You can -D__PCLMUL__ to get this, but it won't be compatible w/ clang and modern gcc... Reviewed by: -current, -toolchain Notes: svn path=/head/; revision=255185
* Add support for the GCC binary integer constants extension.Pedro F. Giffuni2013-08-311-0/+23
| | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=255107
* GCC: bring back experimental support for amdfam10/barcelona CPUs.Pedro F. Giffuni2013-06-012-2/+29
| | | | | | | | | | | | | | | | Initial support for the AMD amdfam10 chipsets has been available in the gcc43 branch under GPLv2. AMD and some linux distributions (OpenSUSE) did a backport of the amdfam10 support and made it available. This is a revised subset of the support initially brought in in r236962 and later reverted. The collateral efects seem to have disappeared but it is still recommended to set the CPUTYPE with caution. Reviewed by: jkim (ages ago) MFC after: 3 weeks Notes: svn path=/head/; revision=251212
* Revert r236962 - Experimental amdfam10/barcelona support.Pedro F. Giffuni2012-06-132-29/+2
| | | | | | | | | | | The patches are unexpectedly causing gcc to fail while building ports/graphics/ImageMagick even when the cpu flags are not used. Reported by: Andreas Tobler Notes: svn path=/head/; revision=237021
* Add experimental support for amdfam10/barcelona from the GCC 4.3 branch.Pedro F. Giffuni2012-06-122-2/+29
| | | | | | | | | | | | | | | | | | | | | | Initial support for the AMD barcelona chipsets has been available in the gcc43 branch under GPLv2 but was not included when the Core 2 support was brought to the system gcc. AMD and some linux distributions (OpenSUSE) did a backport of the amdfam10 support and made them available. Unfortunately this is still experimental and while it can improve performance, enabling the CPUTYPE may break some C++ ports (like clang). Special care was taken to make sure that the patches predate the GPLv3 switch upstream. Tested by: Vladimir Kushnir Reviewed by: mm Approved by: jhb (mentor) MFC after: 2 weeks Notes: svn path=/head/; revision=236962
* Remove libobjc and other Objective-C related components, as these areDimitry Andric2011-04-1714-1348/+105
| | | | | | | | | extremely outdated, and not used by anything in the base system. Silence from: current@ Notes: svn path=/head/; revision=220755
* Upgrade of base gcc and libstdc++ to the last GPLv2-licensed revisionMartin Matuska2011-03-291-0/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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 Notes: svn path=/head/; revision=220150
| * Reorganize the gcc vendor import work area. This flattens out a bunchPeter Wemm2008-06-0150-91799/+0
| | | | | | | | | | | | | | | | | | of unnecessary path components that are relics of cvs2svn. (These are directory moves) Notes: svn path=/vendor/gcc/dist/; revision=179468
* | Backport SSSE3 instruction set support to base gcc.Martin Matuska2011-03-143-9/+63
| | | | | | | | | | | | | | | | | | | | Enabled by default for -march=core2 Obtained from: gcc 4.3 (rev. 117958, 121687, 121726, 123639; GPLv2) MFC after: 2 weeks Notes: svn path=/head/; revision=219639
* | Backport Intel Core 2 and AMD Geode CPU types from gcc-4.3 (GPLv2)Martin Matuska2011-03-072-1/+13
| | | | | | | | | | | | | | | | | | | | | | These options are supported in this shape in all newer GCC versions. PR: gnu/155308 Obtained from: gcc 4.3 (rev. 118090, 118973, 120846; GPLv2) MFC after: 2 weeks Notes: svn path=/head/; revision=219374
* | Backport svn r124339 from gcc 4.3 and add opteron-sse3, athlon64-sse3Martin Matuska2011-02-202-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and k8-sse3 cpu-types for -march=/-mtune= gcc options. These new cpu-types include the SSE3 instruction set that is supported by all newer AMD Athlon 64 and Opteron processors. All three cpu-types are supported by clang and all gcc versions starting with 4.3 SVN rev 124339 (at that time GPLv2 licensed). PR: gnu/154906 Discussed with: kib, kan, dim Obtained from: gcc 4.3 (r124339, GPLv2 licensed) MFC after: 2 weeks Notes: svn path=/head/; revision=218895
* | Make gcc use C99 inline semantics in c99 and gnu99 mode. This was theDavid Schultz2009-03-141-62/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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@ Notes: svn path=/head/; revision=189824
* | Doc updates for changes in the default values ofDavid Schultz2008-08-101-2/+3
|/ | | | | | | -ffancy-math-387 and -mmath-errno. Notes: svn path=/head/; revision=181540
* GCC 4.2.1 release.Alexander Kabaev2007-08-143-4267/+6696
| | | | Notes: svn path=/vendor/gcc/dist/; revision=171825
* GCC 4.2.0 release.Alexander Kabaev2007-05-1937-9340/+21917
| | | | Notes: svn path=/vendor/gcc/dist/; revision=169689
* Updated manpages for 3.4.6 release.Ruslan Ermilov2006-09-213-3989/+5506
| | | | | | | | OK'ed by: kan Obtained from: gcc-3.4.6.tar.bz2 Notes: svn path=/vendor/gcc/dist/; revision=162509
* Gcc 3.4.6 as of 2006/08/25 #116475.Alexander Kabaev2006-08-264-34/+36
| | | | Notes: svn path=/vendor/gcc/dist/; revision=161651
* Gcc 3.4.4 release.Alexander Kabaev2005-06-036-654/+1570
| | | | Notes: svn path=/vendor/gcc/dist/; revision=146895
* Remove files that are not part of GCC 3.4.x from the vendor branch.Alexander Kabaev2004-08-123-4684/+0
| | | | Notes: svn path=/vendor/gcc/dist/; revision=133582
* Gcc 3.4.2 20040728.Alexander Kabaev2004-07-2834-7656/+10235
| | | | Notes: svn path=/vendor/gcc/dist/; revision=132718
* Remove files not part of GCC 3.3.x.Alexander Kabaev2004-01-051-331/+0
| | | | Notes: svn path=/vendor/gcc/dist/; revision=124151
* Gcc 3.3.3 20031106.Alexander Kabaev2003-11-075-7/+69
| | | | Notes: svn path=/vendor/gcc/dist/; revision=122180
* Gcc 3.3.1-release.Alexander Kabaev2003-08-2214-970/+1342
| | | | Notes: svn path=/vendor/gcc/dist/; revision=119256
* Gcc 3.3.1-pre as of 2003-07-11.Alexander Kabaev2003-07-1131-3446/+6934
| | | | Notes: svn path=/vendor/gcc/dist/; revision=117395
* Gcc 3.2.2-release.Alexander Kabaev2003-02-109-48/+24
| | | | Notes: svn path=/vendor/gcc/dist/; revision=110611
* Gcc 3.2.1 release virgin vendor import. (19-Nov-2002)David E. O'Brien2002-12-048-372/+11602
| | | | Notes: svn path=/vendor/gcc/dist/; revision=107590
* Gcc 3.2.1-prerelease from the FSF anoncvs repo gcc-3_2-branch on October 9th ↵Alexander Kabaev2002-10-103-61/+72
| | | | | | | 2002 20:15 EST. Notes: svn path=/vendor/gcc/dist/; revision=104752
* Gcc 3.2.1-prerelease from the FSF anoncvs repo gcc-3_2-branch on 16-Sep-2002 ↵Alexander Kabaev2002-09-1711-51/+211
| | | | | | | 13:23:11 EDT. Notes: svn path=/vendor/gcc/dist/; revision=103445
* Gcc 3.2.1-prerelease from the FSF anoncvs repo gcc-3_2-branch on 1-Sep-2002 ↵Alexander Kabaev2002-09-017-13/+111
| | | | | | | 00:00:01 EDT. Notes: svn path=/vendor/gcc/dist/; revision=102780