aboutsummaryrefslogtreecommitdiff
path: root/lang/gcc5
Commit message (Collapse)AuthorAgeFilesLines
* Run "/usr/sbin/service ldconfig restart" for USE_LDCONFIG instead ofTijl Coosemans2018-05-141-1/+1
| | | | | | | | | | | | | | | | | "ldconfig -m <path>" so the order of ldconfig search directories after package installation is the same as after a reboot. The original command simply appends the path to the list of directories while the ldconfig rc.d script uses "sort -u". Bump lang/gcc* which are known to install libraries with exactly the same name so the library loaded at runtime depends on the order of the search directories. PR: 228046 Approved by: portmgr (antoine) Notes: svn path=/head/; revision=469956
* Simplify MASTER_SITES in all GCC-ports related to end-of-lifed releasesGerald Pfeifer2018-05-131-1/+1
| | | | | | | | | | (gcc47, gcc48, gcc49, and gcc5), taking advantage of the default for GCC releases provided by MASTER_SITES_ABBREVS. Reported by: portlint Notes: svn path=/head/; revision=469815
* Update mpfr to 4.0.1 release and bump PORTVERSION of dependent ports.Alex Dupre2018-04-191-1/+1
| | | | Notes: svn path=/head/; revision=467751
* Allow gcc compilers to be built on new arch 'powerpcspe'.Mark Linimon2018-03-312-1/+19
| | | | | | | | | | | Tested for no-harm on amd64. Submitted by: jhibbits Approved by: portmgr (tier-2 blanket) Differential Revision: D13126 Notes: svn path=/head/; revision=466045
* Bump PORTREVISIONs of all users of math/mpc that we just updated toGerald Pfeifer2018-03-101-1/+1
| | | | | | | version 1.1.0 (via revision 464079). Notes: svn path=/head/; revision=464084
* GCC 5 reached end-of-life last year, so add a deprecation note likeGerald Pfeifer2018-02-021-0/+1
| | | | | | | | | | lang/gcc49 and earlier already carry and recommend GCC 6 or later instead of GCC 5. PR: 225629 Notes: svn path=/head/; revision=460758
* Fix builds of lang/gcc{48,49,5} with clang 6.0.0Dimitry Andric2018-01-092-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | Since clang++ 6.0.0 now defaults to -std=gnu++14 (similar to g++ 6 and higher), building gcc48, gcc49 or gcc5 produce quite a number of "invalid suffix on literal; C++11 requires a space between literal and identifier" errors. This is because in many places, double quotes are directly followed by printf helper macros like HOST_WIDE_INT_PRINT. In gcc 6 and later, spaces were added between the double quotes and the macros, to fix this issue, but for earlier versions, use a combination of find, grep and sed to add them mechanically throughout the respective source trees. In addition, gcc5 needs a regular patch to fix an incorrect call to error(), which should have been error_at(). (This was a mismerge by upstream.) Approved by: gerald (maintainer) PR: 224927 MFH: 2018Q1 Notes: svn path=/head/; revision=458581
* Add support for armv7. [1]Gerald Pfeifer2017-11-252-6/+32
| | | | | | | | | | Rework the architecture-specific special settings, sorting snippets and using .elif instead of distinct .if sequences. Tested by: andreast [1] Notes: svn path=/head/; revision=454891
* Remove second instance of install-strip patch that was applied twice.Gerald Pfeifer2017-11-231-4/+0
| | | | | | | | | No functional change. Pointy hat to: self Notes: svn path=/head/; revision=454744
* Backport two fixes from lang/gcc6:Gerald Pfeifer2017-11-192-0/+95
| | | | | | | | | | | | | | | | | | | | | [1] Make sure what we install is stripped (i.e., debug info is removed). (For more background see revisions 454177 and 454422.) [2] Add a patch that we pulled into gcc6-devel via upstream a week ago that addresses a real-world issue around threading and unwinding as files/patch-freebsd-unwind.h . Bump PORTREVISION since [2] is a functional change and [1] changes the package. Reported by: Ports QA Framework, miwi, sobomax [1] Discussed with: tijl, miwi [1] Tested by: sobomax [1] Differential Revision: https://reviews.freebsd.org/D10357 [1] Notes: svn path=/head/; revision=454504
* Remove conflict with lang/gcc5-devel which does not exist any moreGerald Pfeifer2017-11-171-1/+0
| | | | | | | since revision 452563. Notes: svn path=/head/; revision=454382
* Backport revision 454177 from lang/gcc7:Gerald Pfeifer2017-11-161-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make sure what we install is stripped (i.e., debug info is removed). The straightforward way is setting INSTALL_TARGET to install-strip, which is supported by the upstream GCC build machinery. Unfortunately this fails when running as regular user (non-root) since strip requires write permission to the files in question, and we install binaries as r-xr-xr-x by default. To work around that we need to set BINMODE to allow for write access by the user, something that's common on GNU/Linux (which is why this probably has not been noticed there). This is not necessary when running as root. (A different approach suggested was to set STRIP=true, alas that leads to many files actually not being stripped. This is due to GCC using its own script install-sh that in turn uses cp, chmod, strip,... instead of our own install-* tools in many cases.) According to tests by sobomax@ and me installs of lang/gcc6 went down by about a fourth. Do not bump PORTREVISION since this only changes builds by non-root users, is not a functional change, and the previous state of using a bit more storage had been there "forever". Reported by: Ports QA Framework, miwi, sobomax Discussed with: tijl, miwi Tested by: sobomax Differential Revision: https://reviews.freebsd.org/D10357 Notes: svn path=/head/; revision=454346
* Merge revisions 437281Gerald Pfeifer2017-10-111-0/+3
| | | | | | | | | | | | | | | | This adds a man page for gcov-dump5 (introduced recently) and also one for gcov-tool5 (which we have had for a while). and 436904 This brings a new little utility program gcov-dump6 to dump code coverage data (unfortunately without a man page or documentation). from lang/gcc5-devel into pkg-plist which I had missed in the update to GCC 5.5 a few minutes ago. Notes: svn path=/head/; revision=451755
* Update to the GCC 5.5 release. This brings more than 250 final bugGerald Pfeifer2017-10-117-324/+5
| | | | | | | | | | | | | | | | | fixes compared to GCC 5.4 and is the last release planned on the GCC 5 branch which is now closed. files/patch-aarch64-support, files/patch-disable-armvhf-config.gcc, files/patch-libgcc-config-arm-unwind-arm, and files/patch-x86-64-fix-m16 all have been merged upstream in between GCC 5.4 and 5.5 and can thus be removed; the same is the case for most of files/patch-libc++. Finally, the tarball is now compressed using xz instead of bzip2. PR: 216266 Notes: svn path=/head/; revision=451753
* Graphite loop optimizations are an experimental feature of GCC, disabledGerald Pfeifer2017-09-231-7/+1
| | | | | | | | | | | | by default (and guarded by the GRAPHITE option). Now that we have both GCC 6 and GCC 7 in the tree and GCC 5 is going end of live upstream soon, remove Graphite support from the GCC 5-related ports. Anyone using Graphite is better served by the newer versions of GCC. Notes: svn path=/head/; revision=450474
* Now that the default version of GCC in the tree is GCC 6 (the lang/gcc6Gerald Pfeifer2017-09-214-95/+10
| | | | | | | | | port), remove Java support (incl. the JAVA option) from lang/gcc5. Only one other port actually relies on this and this change speeds up the build and reduces the size of this port/package quite a bit. Notes: svn path=/head/; revision=450304
* Do not quote constant strings compared with ${ARCH}. [1] RemoveGerald Pfeifer2017-09-171-4/+2
| | | | | | | | | | | | | some commented (and thus disabled) logic around this on the way. This brings the active lang/gcc* release-based ports in sync with their respective lang/gcc*-devel twins. PR: 221905 [1] Submitted by: linimon [1] Notes: svn path=/head/; revision=450008
* Move ONLY_FOR_ARCHS and BROKEN_sparc64 together and up into a blockGerald Pfeifer2017-09-061-2/+3
| | | | | | | of their own (per guidance from portlint and the manual). Notes: svn path=/head/; revision=449346
* Remove workaround for PR 219274 that bapt@ had put in place in 2014Gerald Pfeifer2017-08-061-1/+0
| | | | | | | | | | from pkg-plist for lang/gcc5 and lang/gcc6 (which won't be updated too soon otherwise). PR: 219274 Notes: svn path=/head/; revision=447444
* Remove headers being created by GCC's fixincludes machinery from theGerald Pfeifer2017-07-021-1/+2
| | | | | | | | | installation / packaging to avoid breakage when FreeBSD's headers are changing afterwards. Several fellow committers have strongly indicated that our headers do not need the kind of adjustments that GCC performs. Notes: svn path=/head/; revision=444860
* Alphabetize ARCH definitions.Mark Linimon2017-06-261-2/+2
| | | | | | | | | | No need to bump PORTREVISION because package does not change. Reviewed by: gerald Approved by: portmgr (tier-2 blanket) Notes: svn path=/head/; revision=444424
* Adjust WWW URL to refer to https and avoid a trailing slash.Gerald Pfeifer2017-06-171-1/+1
| | | | Notes: svn path=/head/; revision=443791
* Remove CONFLICT with lang/gcc (which now pulls in lang/gcc5 by default).Gerald Pfeifer2017-05-281-1/+1
| | | | | | | | Instead add mutual CONFLICTS between lang/gcc5 and lang/gcc5-devel which we actually missed. Notes: svn path=/head/; revision=441905
* Make _Unwind_GetIP, _Unwind_GetIPInfo and _Unwind_SetIP available as functionsAndreas Tobler2017-05-211-0/+51
| | | | | | | | | | | | | for arm*-*-freebsd*. This patch is already pushed upstream to all active gcc branches. GCC-5, GCC-6, GCC-7 and trunk. The gcc?-devel ports will catch up these bits with the next update. Once a new release for gcc6 or gcc5 is done, this patch will be obsolete. Approved by: gerald@ (maintainer) Notes: svn path=/head/; revision=441426
* - Fix shebangMartin Wilke2017-04-141-1/+4
| | | | | | | Approved by: gerald (maintainer via mail) Notes: svn path=/head/; revision=438545
* Define WCHAR_T for aarch64 on all active gcc (gcc/gcc5 and gcc6) releases.Andreas Tobler2017-04-081-1/+6
| | | | | | | | | | | This define is already in upstream. The gcc*-devel ports will pickup the commit from upstream. Submitted by: kan@ Approved by: gerald@ (maintainer) Notes: svn path=/head/; revision=438061
* Fix armv6 bootstrap. This piece of config is already in the upstream tree andAndreas Tobler2017-04-051-0/+18
| | | | | | | | | will go away once gcc-5.5 is released. Approved by: gerald (maintainer) Notes: svn path=/head/; revision=437798
* Sync files/java-patch-hier with the lang/gcc port (the only differenceGerald Pfeifer2017-04-031-0/+1
| | | | | | | being a marker to avoid a portlint warning re patch format). Notes: svn path=/head/; revision=437660
* Pet portlint wrt. patch file format.Gerald Pfeifer2017-04-011-1/+1
| | | | Notes: svn path=/head/; revision=437458
* Add files/patch-x86-64-fix-m16 which already has been accepted inGerald Pfeifer2017-04-012-0/+26
| | | | | | | | | | the upstream GCC 5 branch (and hence is in lang/gcc5-devel) and which we carry in lang/gcc. It should become obsolete when/if GCC 5.5 releases. Notes: svn path=/head/; revision=437455
* Provide the JAVA option also for powerpc64, in alignment with theGerald Pfeifer2017-04-011-0/+1
| | | | | | | lang/gcc5-devel and lang/gcc ports. Notes: svn path=/head/; revision=437442
* Update lang/gcc and hence the default version of GCC in the PortsGerald Pfeifer2017-04-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Collection (requested by USE_GCC=yes and various USES=compiler invocations) from GCC 4.9.4 to GCC 5.4. files/patch-arm-support and files/patch-gcc_system.h have become obsolete. New patches files/patch-arm-unwind-cxx-support and files/patch-libc++ help support arm targets and new libc++ in base. ONLY_FOR_ARCHS now also includes arm. A new option GRAPHITE_DESC, off by default for now, adds support for Graphite loop optimizations. Finally, conflicts with other lang/gcc* ports are adjusted suitably. In terms of changes for users, this upgrade brings the following: The default mode for C is now -std=gnu11 instead of -std=gnu89. New warning options -Wc90-c99-compat and -Wc99-c11-compat may prove useful on that front. The C++ front end now has full C++14 language support including C++14 variable templates, C++14 aggregates with non-static data member initializers, C++14 extended constexpr, and more. The Standard C++ Library (libstdc++) has full C++11 support and experimental full C++14 support. It uses a new ABI by default. There have been significant improvements to inter-procedural optimizations and link-time optimization such as One Definition Rule based merging of C++ types as well as register allocation. OpenMP 4.0 specification offloading features are now supported by the C, C++, and Fortran compilers. Cilk Plus, an extension to the C and C++ languages to support data and task parallelism, has been added as well. New warning options -Wswitch-bool, -Wlogical-not-parentheses, -Wbool-compare and -Wsizeof-array-argument may prove useful as may new preprocessor directives __has_include, __has_include_next, and __has_attribute. GCC can now be built as a shared library for embedding in other processes (such as interpreters), suitable for Just-In-Time compilation to machine code. This provides a C API and a C++ wrapper API. Many code generation improvements for AArch64, ARM, support for AVX-512{BW,DQ,VL,IFMA,VBMI} and Intel MPX on x86-64, and generally improvements on many targets. The Local Register Allocator (LRA) now contains a rematerialization subpass and is able to reuse the PIC hard register on x86/x86-64 to improve performance of position independent code. https://gcc.gnu.org/gcc-5/changes.html has a more extensive set of changes and https://gcc.gnu.org/gcc-5/porting_to.html has a solid overview of issue you may encountering porting to this new version. PR: 216707, 218125 Tested by: antoine (-exp runs) Supported by: jbeich, tcberner, and others Notes: svn path=/head/; revision=437437
* Backport the bits needed for aarch64-*-freebsd* support from the gcc5-develAndreas Tobler2017-02-162-2/+188
| | | | | | | | | | port. These bits will go away once GCC releases the next gcc5. Approved by: gerald (maintainer) Notes: svn path=/head/; revision=434237
* Remove traces of armv6hf which no longer exists as an arch. [1]Gerald Pfeifer2017-02-093-41/+2
| | | | | | | | | | | | | Remove files/patch-unwind-ia64.h: we have not been supporting ia64 with this release series, i.e., ONLY_FOR_ARCHS does not include ia64. No PORTREVISION bump since nothing should actually change for existing/supported platforms. Reported by: andreast [1] Notes: svn path=/head/; revision=433720
* No longer define CPE_VERSION for ports tracking releases of GCC sinceGerald Pfeifer2017-02-031-1/+0
| | | | | | | there the default of PORTREVISION is just fine. Notes: svn path=/head/; revision=433247
* Sort ONLY_FOR_ARCHS.Gerald Pfeifer2017-02-011-1/+1
| | | | Notes: svn path=/head/; revision=433114
* Similar to bug 212465, lang/gcc5 doesn't compile with recent versions ofDimitry Andric2017-01-311-0/+43
| | | | | | | | | | | | | | | | | | | | | | | libc++, because it attempts to redefine abort(): In file included from /wrkdirs/usr/ports/lang/gcc5/work/gcc-5.4.0/gcc/auto-profile.c:25: In file included from /usr/include/c++/v1/map:446: /usr/include/c++/v1/functional:1398:2: error: no member named 'fancy_abort' in namespace 'std::__1'; did you mean simply 'fancy_abort'? _VSTD::abort(); ^~~~~~~ /usr/include/c++/v1/__config:383:15: note: expanded from macro '_VSTD' #define _VSTD std::_LIBCPP_NAMESPACE ^ Patch this in the same way as the other gcc ports, by including <new> in gcc/system.h, and moving a few includes to before "system.h". Approved by: gerald (maintainer) PR: 216266 MFH: 2017Q1 Notes: svn path=/head/; revision=432958
* The output of tools like awk, date, sort, tr,... depends on the currentTijl Coosemans2017-01-181-4/+1
| | | | | | | | | | | | | | | | | | | | | locale set by the user. Add LANG=C and LC_ALL=C at the beginning of bsd.port.mk and export them so all commands are executed with the C locale. LC_ALL=C overrides all other LC_* variables. LANG is used by setlocale(3) as default value for LC_* variables, so normally it isn't used when LC_ALL is set, but there's code out there that looks at LANG directly so it's safer to set it as well. The only commands not captured by this are != assignments before any inclusion of bsd.port.*mk. Introduce USE_LOCALE=<locale> that adds LANG=<locale> and LC_ALL=<locale> to CONFIGURE_ENV and MAKE_ENV so upstream build systems can be executed with a different locale (e.g. USE_LOCALE=en_US.UTF-8). PR: 215882 Exp-run by: antoine Approved by: portmgr (antoine) Notes: svn path=/head/; revision=431796
* Omit the definition of DISTVERSION which is only necessary for portsGerald Pfeifer2017-01-151-6/+1
| | | | | | | | tracking snapshots of GCC and simplify the definition of GCC_VERSION (but keep the latter as a variable to align the gcc5-devel and gcc5 ports). Notes: svn path=/head/; revision=431591
* ${RM} already has -f.Mathieu Arnold2016-10-211-4/+4
| | | | | | | | | | PR: 213570 Submitted by: mat Exp-run by: antoine Sponsored by: Absolight Notes: svn path=/head/; revision=424411
* Mark as broken on sparc64.Mark Linimon2016-09-181-0/+1
| | | | | | | Approved by: portmgr (tier-2 blanket) Notes: svn path=/head/; revision=422367
* Default powerpc64 to bootstrapping (option BOOTSTRAP) since otherwiseGerald Pfeifer2016-08-241-2/+2
| | | | | | | | | | | | | | | GCC can be mis-built, leading to an internal compiler error building libgcc/libgcov.c, at least on FreeBSD 11. Adjust OPTIONS_DEFINE_powerpc64 and OPTIONS_DEFAULT_powerpc64 incrementally (with +=) to avoid overwriting settings defined at the top of the Makefile (or child ports). [1] Submitted by: swills [1] Reported by: swills Notes: svn path=/head/; revision=420820
* Backport the following from lang/gcc5-devel:Gerald Pfeifer2016-08-221-2/+0
| | | | | | | | | Only override CONFIGURE_TARGET for amd64 which is x86-64/x86_64 for the rest of the world including GNU and GCC. For all other architectures it already defaults to the value we were setting. Notes: svn path=/head/; revision=420597
* Backport the following from lang/gcc5-devel:Gerald Pfeifer2016-08-171-1/+4
| | | | | | | | | | | | | | | | | | GCC uses an AWK script to generate source code that helps process command-line options. According to POSIX, string comparisons (and hence sorting) are to be performed based on the locale's collating order. Alas GNU AWK only does so in POSIX mode, whereas starting with FreeBSD 11 we do so by default, running into a bug (or false assumption) with that script used by GCC. Setting MAKE_ARGS such that AWK is always invoked in the C locale works around this bug. PR: 210122, 211742 Submitted by: jkim Notes: svn path=/head/; revision=420359
* Update to the GCC 5.4 release.Gerald Pfeifer2016-06-064-107/+4
| | | | | | | | | | | files/patch-build-without-bootstrap and files/patch-gcc-freebsd-powerpc64 (ELFv2 support for FreeBSD PowerPC64) are now upstream, so drop them. Due to timeing of the release freeze files/patch-armv6-hf-support has not been integrated in this upstream release yet. Notes: svn path=/head/; revision=416463
* Skip armv6hf support and move it into armv6.Andreas Tobler2016-06-031-0/+18
| | | | | | | Discussed with: gerald@ Notes: svn path=/head/; revision=416337
* lang/gcc*: convert to CONFIGURE_OUTSOURCEJan Beich2016-04-131-10/+5
| | | | | | | | | | PR: 208294, 208309 Exp-run by: antoine Approved by: gerald (maintainer) Differential Revision: https://reviews.freebsd.org/D4157 Notes: svn path=/head/; revision=413188
* Remove ${PORTSDIR}/ from dependencies, categories h, i, j, k, and l.Mathieu Arnold2016-04-011-10/+10
| | | | | | | | With hat: portmgr Sponsored by: Absolight Notes: svn path=/head/; revision=412347
* Bring the fixes mentioned below from upstream to our gcc-5.3 release port.Andreas Tobler2016-01-091-2/+52
| | | | | | | | | | | [1]: https://gcc.gnu.org/ml/gcc-patches/2015-12/msg02057.html [2]: https://gcc.gnu.org/ml/gcc-patches/2015-12/msg00685.html PR: 205394, 205440 Approved by: gerald (maintainer) Notes: svn path=/head/; revision=405619
* Add two fixes which have missed the gcc-5.3 release date:Andreas Tobler2015-12-062-0/+54
| | | | | | | | | | - Fix --disable-bootstrap build. - Add ELFv2 support for FreeBSD PowerPC64. Approved by: gerald (maintainer) Notes: svn path=/head/; revision=403150