Commit graph

28 commits

Author SHA1 Message Date
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
maya
646c408f70 gcc48: 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.

bump gcc48-libs PKGREVISION above gcc48

PR pkg/53436.
2018-07-18 23:15:42 +00:00
maya
0e1a375bd4 gcc48: fix build when building with newer GCC by backporting
an upstream commit.

PR pkg/53402, PR pkg/53403, PR pkg/53404, PR pkg/53231
2018-06-27 10:07:07 +00:00
maya
f33154bfc9 gcc48: backport upstream security fix
Incorrect codegen from rdseed intrinsic use (CVE-2017-11671)

We should not expand call arguments in between flags reg setting and
flags reg using instructions, as it may expand with flags reg
clobbering insn (ADD in this case).

Attached patch moves expansion out of the link. Also, change
zero-extension to non-flags reg clobbering sequence in case we perform
zero-extension with and.

2017-03-25  Uros Bizjak
2017-07-28 23:40:07 +00:00
maya
89633e9c48 gcc{48,49}: netbsd also provides libssp in libc, adjust LINK_SSP_SPEC accordingly.
already done for newer versions of gcc.

Now on netbsd all gcc packages can successfully build with -fstack-protector.

bump pkgrevision (sorry)
2017-07-10 15:55:40 +00:00
maya
62200a9e9f gcc48: always link libgcc on netbsd (GCC r248037,
applied to GCC 8 and above - thanks Krister Walfridsson)

libstdc++: if it thinks vswprintf is broken, don't block the
entire definition of to_string, just that of to_wstring. backport
of GCC r223830 already applied to GCC 4.9. this applies to netbsd-6-0.

Doesn't fix any build I wanted to fix, but it does get the build
of LLVM4.x further on netbsd-6-0. maybe there's an odd package that
could benefit from it.

bump PKGREVISION.
2017-05-28 01:00:20 +00:00
maya
568ec0972c gcc48: fix build with newer (e.g. pkgsrc version) gtexinfo.
should help failing CentOS builds.
2017-01-22 12:22:46 +00:00
maya
166f9b9792 gcc48: fix build error on netbsd/arm
configs for gcc on netbsd don't build -march=native support, but this
stray prototype was left, causing build errors:

gcc.o:(.rodata+0x58c4): undefined reference to
`host_detect_local_cpu(int, char const**)'
2016-09-25 23:09:34 +00:00
maya
e6f35aefcd lang/gcc48: disable libssp
netbsd only: link against libc when building shared.

libssp is broken as it has headers like ssp/stdio.h which include
<ssp.h>, when only ssp/ssp.h exists.
simply building hello world (including stdio.h) with -D_FORTIFY_SOURCE
will fail.

netbsd building of shared was broken as it did not link against libc when
making shared. adjust the spec file so it will do this.

bump PKGREVISION

XXX - all the other versions of GCC likely need the same

thanks joerg for the help
2016-09-04 18:29:39 +00:00
jperkin
533c94cd6d Various fixes to get this working on El Capitan / Xcode 7:
* Pull in patch from MacPorts to handle 10.11 SDK header issue
   with fixincludes.

 * Backport upstream bugfix for GCC bug 66523, fixing an issue
   with Xcode 7.

 * Pull in --with-build-config=bootstrap-debug change from FreeBSD
   ports to fix bootstrap compare issue seen with clang / Xcode 7.
2015-11-03 13:59:10 +00:00
martin
d95c4e7c53 Adjust the precompiled header changes to the latest version used in the
NetBSD tree
2015-08-05 18:14:27 +00:00
dsainty
a968e5a241 The ${PREFIX}/include/ansidecl.h installed by devel/binutils is not
necessarily compatible (E.g. binutils-2.25 does not define PARAMS).  Adjust
the include path priority so the internal ansidecl.h gets precedence, allowing
cp-demangle.c to use libiberty.h without compilation errors.
2015-06-19 00:44:46 +00:00
dsainty
463496f59a Fix build on Linux by removing erroneous patching.
The removed hunk is definitely wrong, but I can't figure out what it was
trying to do.  I think the patch hunk was accidentally reintroduced in r1.4
after being correctly removed in r1.3.

The reason it is wrong is because it breaks later tests by introducing code
into confdefs.h.  The following tests always break, because they have
duplicate main() definitions.

Build test on NetBSD works because the java support isn't in the suggested
options anyway.
2015-06-03 06:48:54 +00:00
dbj
d75e16317e Fix build issues on Darwin 2015-01-27 04:46:06 +00:00
obache
24efdc1fe4 Bump PKGREVISION.
* Fixes regressions, revive parts removed at "Fix build under OpenBSD/amd64 5.5"
* Drop default behaviour changes and local features from OpenBSD ports,
  it break other platforms, at least, NetBSD-6.0/i386.
* Remove needless patches after "Restore monolithic gcc48 and gcc48-libs".
2014-11-28 09:57:32 +00:00
ryoon
b730789521 Update to 4.8.3
* Convert gcc48 to simple meta-pkg
* Potentially fix non-NetBSD packaging
* Fix gcc48-libs/gcc48-cc++ build under OpenBSD/amd64 5.5
* Enable graphite option, from wip/gcc48snapshot via Xiyue Deng
* Tweak nls option

Changelog:
GCC 4.8.3

   This is the [35]list of problem reports (PRs) from GCC's bug tracking
   system that are known to be fixed in the 4.8.3 release. This list might
   not be complete (that is, it is possible that some PRs that have been
   fixed are not listed here).

   Support for the new powerpc64le-linux platform has been added. It
   defaults to generating code that conforms to the ELFV2
2014-05-31 13:06:25 +00:00
richard
1b2181da49 x86-64 sunos fix for g++ and -Wl,-Bdirect involving libtool
references:http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452
and http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788

backport to gcc47 and gcc48
2014-05-10 14:14:58 +00:00
ryoon
013de964d0 Split gcc48 to libraries and langusages packages
* All gcc48-* depend on gcc48-libs
* Add gcc48-cc++, gcc48-fortran, and gcc48-objc
* gcc48 is meta package now
2014-04-22 20:46:41 +00:00
asau
f096fd3a2b Fix syntax errror. This fixes the build on FreeBSD. 2014-04-08 06:20:42 +00:00
wiz
781a672f4e Use better gfortran patch, from Kai-Uwe Eckhardt in PR 48512.
Bump PKGREVISION.
2014-01-14 19:32:52 +00:00
martin
33ed66cfcc Ooops, stupid typo in previous 2013-10-24 19:25:43 +00:00
martin
9bd6ddf2ed Add a few VAX specific changes. 2013-10-24 18:31:12 +00:00
martin
eaf41f200c Make it buildable on NetBSD/sparc64 (by avoiding a SIGSEGV in a SIGSEGV
handler). Make precompiled headers work on NetBSD hosts (by choosing a
hopefully stable virtual address for precompiled header symbol tables).
Both reported upstream.
2013-09-11 19:05:19 +00:00
joerg
6af31a2ca7 Apply _CTYPE_BL fixes to gcc47 and gcc48. 2013-05-22 13:14:19 +00:00
joerg
edc49ce972 Do not define putc/getc macros on NetBSD, it can wreak havoc with
cstdio.
2013-04-29 21:34:11 +00:00
adam
a31a5cb6e8 Disable libsanitizer on Mac OS X 10.6 due to linking problem. 2013-04-21 16:10:28 +00:00
sbd
7765f10b66 In LINK_LIBGCC_SPEC remove the space between LINKER_RPATH_FLAG and its
argument.
2013-04-21 09:04:09 +00:00
wiz
77d67c535a Add gcc48 packages, provided by Kai-Uwe Eckhardt <kuehro@gmx.de>.
New major version of gcc, lots of changes.
For details, look here:
http://gcc.gnu.org/gcc-4.8/changes.html
2013-04-01 21:06:15 +00:00