Commit graph

37 commits

Author SHA1 Message Date
rillig
8c6aee8563 lang: align variable assignments
pkglint -Wall -F --only aligned --only indent -r

No manual corrections.
2019-11-03 19:03:56 +00:00
maya
3659de2832 gcc{48,49,5,6,7,8}: In the case of a "system GCC", detect if the system
libgcc is newer than the one about to be installed. If so, don't install
the libgcc.

Having an older libgcc appear in the lookup may result in binaries not
running, as they need symbols from the newer libgcc.
Such a case is PR pkg/54506.

Leaves SunOS unchanged, by request from jperkin.
2019-09-08 14:47:52 +00:00
jperkin
529dd3072c gcc7: Revert zlib change, it causes bootstrap issues.
It doesn't appear to be related to the failure that prompted it.  Bump
gcc7-libs twice as it had fallen behind gcc7.
2019-08-27 06:42:30 +00:00
wiz
84e123ddd2 Bump PKGREVISIONs for perl 5.30.0 2019-08-11 13:17:48 +00:00
maya
73c067e121 gcc7: use system zlib, and declare a dependency on it.
this might be the cause of weird missing -lz on the latest SmartOS bulk
build, which appears to use this package (e.g. graphics/glitz).

Bump PKGREVISION.
2019-08-06 14:05:05 +00:00
maya
dbb92af837 gcc{48,49,5,6}: add patch to avoid fragile include guard logic
for ansi.h on netbsd.
gcc{7,8}: document same patch that already existed was upstreamed.

This patch is necessary to build GCC on NetBSD >= 9.0, since changes
to ansi.h resulted in not using the same include guards.

Fixes PR toolchain/54362
2019-08-06 06:16:14 +00:00
adam
6342aa7cfc gcc7: Fix building on Darwin 2019-06-14 09:42:35 +00:00
adam
c8e5fe5184 gcc7[-libs]: updated to 7.4.0
7.4.0:
Bug-fix release.
This [https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED&resolution=FIXED&target_milestone=7.4] is the list of problem reports (PRs) from GCC's bug tracking system that are known to be fixed in the 7.4 release. This list might not be complete (that is, it is possible that some PRs that have been fixed are not listed here).
2019-01-05 00:39:13 +00:00
mrg
1a5afd4d7d be sure to call the netbsd_patch_builtins() on arm64. now gfortran
works and cabs*() handling is correct.

also:
- extract using bsdtar.  saves about 4 minutes during extract for me.
- remove duplicated part of gcc/config/netbsd.h -- it's already
  upstream by this version.
2018-11-10 04:24:00 +00:00
mrg
05ba3228ea port our gcc arm64 patches over to gcc 7. only real change is to add
'md_unwind_header=aarch64/aarch64-unwind.h' to the new netbsd/arm64
section of libgcc/config.host.
2018-11-09 11:22:13 +00:00
wiz
93b46879c7 Recursive bump for perl5-5.28.0 2018-08-22 09:43:40 +00:00
maya
9259a8b0b6 gcc{6,7,8}: passthru the gcc directories.
helps using gfortran.
2018-07-23 01:07:08 +00:00
maya
ec2787f6ad gcc7: don't try to make references to stack_chk_fail_local on netbsd/sun
sun was added as joyent is patching for the same.

this code is only reached if compiling for i386 (or some variation of ppc)
netbsd's stack_chk_fail_local won't work for this.

PR pkg/53436.
2018-07-18 22:55:07 +00:00
maya
37e41c8801 gcc7: fix many netbsd targets.
add netbsd/arm EABI target. recognise dwarf2 unwinding in the common arm code.

switch convoluted stddef.h logic from relying on include guards having certain
names to only applying for netbsd, which should be the sole remaining user.
(necessary for netbsd/arm, which uses different include guards for ansi.h)

move linux/alpha code out of shared alpha+ELF header.

make all netbsd targets include netbsd-stdint.h.

Fixes PR pkg/52951.

Bump PKGREVISION. bump gcc7-libs PKGREVISION above this one.
2018-06-17 19:50:52 +00:00
jperkin
4fb813d82e gcc7: Fix LINK_LIBGCC_SPEC patch. 2018-05-23 08:11:16 +00:00
minskim
f81efc8555 lang/gcc7: Refine the condition to enable multilib 2018-05-02 18:38:30 +00:00
wiz
58a2a977a7 recursive bump after mpfr shlib major bump 2018-01-28 16:24:10 +00:00
maya
b61e82ce7f gcc7: update to 7.3.0
Local changes:
Remove patch hunks merged upstream (non-c99 compatibility cabs workaround,
linking to libc by default on netbsd).

GCC changes:
Added code generation options to mitigate Spectre variant 2 (CVE-2017-5715)
for the powerpc and x86 targets.

RTEMS: Support has been added for Epiphany target.

List of bugs fixed:
https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED&list_id=199567&resolution=FIXED&target_milestone=7.3
2018-01-25 23:27:30 +00:00
jperkin
c1e44a0735 gcc{5,6,7}: Disable fixincludes on SmartOS like gcc49. 2017-12-13 10:54:53 +00:00
maya
063d2481d3 reset maintainer 2017-11-13 19:36:26 +00:00
maya
0ffb16f69d gcc7: update to 7.2.0
SPARC
    Support for the SPARC M8 processor has been added.
    The switches -mfix-ut700 and -mfix-gr712rc have been added to work around an erratum in LEON3FT processors.
    Use of the Floating-point Multiply Single to Double (FsMULd) instruction can now be controlled by the -mfsmuld and -fno-fsmuld options.

RTEMS
    The Ada run-time support uses now thread-local storage (TLS).
    Support for RISC-V has been added.
    Support for 64-bit PowerPC using the ELFv2 ABI with 64-bit long double has been added.

Bug fixes: https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED&resolution=FIXED&target_milestone=7.2
2017-09-26 06:10:27 +00:00
wiz
37e92bf6f7 Pass relro linker flags.
Fixes RELRO for most binaries, except for libgcc_s.so.
2017-07-25 13:19:00 +00:00
brook
35efa550c8 Fix a typo (an extra S) in the make variable GCC7_DIST_VERSION. This makes
it consistent with all other analogous variables, which are used in the
process of selecting an appropriate version of gcc.
2017-07-18 18:19:35 +00:00
maya
d722e2e4d8 gcc{48,49,5,7}: on netbsd only, bump libstdc++ major to 7.
bump pkgrevision.

while here, synchronize libssp comment to a clearer one.

bump gcc*-lib revision to be one higher.
2017-07-09 05:30:41 +00:00
jperkin
073328b36f Explicitly disable mkostemp on SunOS. It was shipped as part of libc for
a while without the corresponding entry in stdlib.h, thus falling foul of
-Werror=implicit-function-declaration checks.
2017-07-07 14:52:30 +00:00
adam
7f89b18574 On Darwin you must not have duplicate symbols 2017-07-05 10:17:01 +00:00
adam
b276d4deda Added CONFIGURE_ARGS.Darwin 2017-07-04 12:46:52 +00:00
maya
5c0a1ab0b6 Restrict gcc gsed usage to NetBSD
(NetBSD/mips64 progress further with gsed)

Adding gsed as a tool creates circular dependencies if pkgsrc gcc is used
as the bootstrap compiler.

Pointed out by jperkin, sorry.
2017-06-22 21:44:49 +00:00
maya
482e3d0bc7 Use gsed when building GCC.
This is a somewhat blind commit. I've long had issues on various platforms
with libgcc getting misconfigured (on netbsd/mips,arm,powerpc), for example
build failures see:
http://mail-index.netbsd.org/port-mips/2017/06/21/msg000832.html

testing GCC 7.1 with netbsd/mips64el I got a lot further using it, but
still didn't complete the build. It took hours to reach this failure,
so I'd rather blindly commit the same change in the hopes it might help
other architectures.
2017-06-21 21:16:35 +00:00
maya
d76ec1bb61 Take maintainership of all (recent-ish) GCC packages
I have gone into the depths of GCC and came back alive, so feel free
to ask me about it.
2017-06-08 09:52:47 +00:00
maya
f6431d6701 gcc7: correct typo in patch, from Kai-Uwe Eckhardt
Reportedly fixes a bunch of tests.
make our cpuinfo patch possibly less harmful to glibc by using
the same macro as the symver logic

bump pkgrevision
2017-05-14 02:38:02 +00:00
jperkin
c8eb23ce73 Restrict patch to specific circumstances on SunOS. 2017-05-12 18:10:56 +00:00
jperkin
c25c333248 Remove leftovers from the gcc-java option which were bringing in more
dependencies than required and causing the build to fail due to being
unable to find zlib.

Bump PKGREVISION.
2017-05-10 15:02:29 +00:00
jperkin
1c08c8b60b Ensure we can find std::aligned_alloc if using it. 2017-05-10 15:00:09 +00:00
maya
1ce23f1f4e gcc7: unbreak non-linux after GCC r243219.
GCC target/80600. Thanks joerg.
Fix wip package reference, thanks Kai-Uwe Eckhardt.

Bump PKGREVISION
2017-05-04 17:38:23 +00:00
maya
eb4508f6c6 gcc7: cleanup some accidential wip package and gcc-java leftovers 2017-05-03 00:54:59 +00:00
maya
15a894d9f2 Add GCC 7.1.0
GCC Java removed, package now uses ISL 0.16.1

Release notes:

We are proud to announce the next, major release of the
GNU Compiler Collection, 7.1.  This year we celebrated the 30th
anniversary of the first GCC beta release and this month
we will celebrate 30 years since the GCC 1.0 release.

GCC 7.1 is a major release containing substantial new
functionality not available in GCC 6.x or previous GCC releases.

The C++ frontend now has experimental support for all of the current C++17
draft, with the -std=c++1z and -std=gnu++1z options, and the libstdc++
library has most of the C++17 draft library features implemented too.

This releases features various improvements in the emitted diagnostics,
including improved locations, location ranges, suggestions for misspelled
identifiers, option names, fix-it hints and various new warnings
have been added.

The optimizers have been improved, with improvements appearing in all of
intra- and inter-procedural optimizations, link time optimizations and
various target backends, including, but not limited to, additions of store
merging pass, code hoisting optimization, loop splitting, and
shrink wrapping improvements.

The Address Sanitizer can now report uses of variables after leaving their
scope.  GCC now can be configured for OpenMP 4.5 offloading to NVidia PTX
GPGPUs.

Some code that compiled successfully with older GCC versions might require
some code adjustments, see http://gcc.gnu.org/gcc-7/porting_to.html for
details.

See

  https://gcc.gnu.org/gcc-7/changes.html

for more information about changes in GCC 7.1.
2017-05-03 00:21:03 +00:00