Commit graph

36 commits

Author SHA1 Message Date
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
59873625d0 gcc48: restore distinfo for file grabbed only when building gcc-java
pointed out by jperkin, thanks

fix netbsd gcc-java option build
netbsd has gethostbyname_r in libc, but not in any headers.
configure test succeeds, but compilation fails.
workaround with passing ac_cv_func_gethostbyname_r=no to autoconf
thanks joerg for the suggestion.
2016-09-15 17:56:23 +00:00
maya
65f3f42a3d gcc48: update to 4.8.5
Reset PKGREVISION, set gcc48-libs PKGREVISION to 1 (+1 of gcc48)

The following list of 74 PRs have been resolved in the 4.8.5 release
(non-exhaustive list):

64557 get_addr in true_dependence_1 cannot handle VALUE inside an expr
66215 [4.8/4.9/5/6 Regression] Wrong after label NOP emission for -mhotpatch
66233 [4.8/4.9 Regression] internal compiler error: in expand_fix
65550 [4.8/4.9 Regression] ICE (segfault) with pch
62642 [4.8/4.9 Regression] x86 rdtsc is moved through barrier
63608 [4.8/4.9 Regression] error: type mismatch in binary expression
59626 [4.8 Regression] /usr/include/bits/unistd.h:173:1: error: inlining failed in call to always_inline 'readlinkat': recursive inlining
65549 [4.9 Regression] crash in htab_hash_string with -flto -g
59990 [4.8 regression] incorrect memcpy optimization
60656 [4.8 regression] x86 vectorization produces wrong code
66470 [4.8/4.9/5/6 Regression] TLS ICE due to ix86_split_long_move
66481 Implicit lambda capture of variable named ""closure"" causes crash
66275 __attribute__((sysv_abi)) with x86_64-w64-mingw32-gcc generates incorrect code
65680 [4.8/4.9 Regression] ICE at -O1 and above on x86_64-linux-gnu in expand_assignment
65368 [4.8/4.9 Regression]_bzhi_u32 intrinsic generates incorrect code when -O1 or above is specified and index is an immediate
64634 [4.8/4.9 Regression] gcov reports catch(...) as not executed
66123 [4.8 Regression] Array of labels as values + ternary operator + pointer arithmetic = internal compiler error
65518 [4.8 Regression] gcc consumes all memory with -O3
66140 ICE at extract_insn
65721 [4.8/4.9/5/6 Regression] Internal compiler error segmentation fault
65727 [4.8/4.9/5/6 Regression] Segfault With Decltype In Lambda Expression Used To Initialize Static Class Member
59016 f951: internal compiler error: Segmentation fault
65693 [4.8/4.9 Regression] ICE in assign_by_spills
61977 [4.8/4.9/5 Regression] powerpc preprocessor breaks on lines that end with ""vector
59513 [4.8/4.9/5 Regression] Fortran runtime error: Sequential READ or WRITE not allowed after EOF marker
65279 [4.8/4.9 Regression] std::scoped_allocator_adaptor is not assignable
65543 rvalue stream insertion and extraction operators incorrectly implemented
61138 [4.8/4.9/5 Regression] Wrong code with pointer-bounds remapping
65072 Segfault when parsing dectlype in trailing return type
65327 GCC rejects ""constexpr volatile int i = 5;
65409 [4.8/4.9/5 Regression] ICE in store_field
52579 [4.8/4.9/5 regression] i386_w32_fallback_frame_state should care ffi raw-closure stub function
60898 [4.8/4.9/5 Regression] model compile error with gfortran 4.7 and gcc 4.9
57059 [4.8/4.9/5 Regression] Host configuration of loose_warn breaks for build components for Canadian crosses
52664 [4.8 Regression]: gcc.dg/tree-ssa/pr31261.c fails
65220 [4.8/4.9/5 Regression] integer division in stack alignment for VLA allocation
43701 [4.8/4.9/5 Regression] ICE: SIGSEGV (too deep recursion) with -mno-sse and __float128
35330 [4.8/4.9/5 regression] ICE with invalid pragma weak
46102 [4.8/4.9/5 Regression] ICE: SIGSEGV in dwarf2out_finish (dwarf2out.c:8490) with -feliminate-dwarf2-dups when using precompiled headers
61634 [4.8 Regression] ICE in in vect_get_vec_def_for_operand
65063 [4.8 Regression] gcc.dg/vect/vect-double-reduc-6.c FAILs with -O3 -fno-tree-loop-ivcanon -fno-tree-vectorize
63593 ICE: verify_gimple failed: incompatible types in PHI argument 0 with -O3 -fno-tree-vectorize
63844 [4.8 Regression] open mp parallelization prevents vectorization
64493 [4.8 Regression] ICE at -O3 on x86_64-linux-gnu
64495 [4.8 Regression] ICE at -O3 for trunk and wrong code for 4.8/4.9 on x86_64-linux-gnu
64199 [4.8 Regression] ICE: tree check: expected class 'constant'
56273 [4.8 regression] Bogus -Warray-bounds warning
58123 [4.8/4.9/5 Regression] debug line not tracked for last autovariable dtor
45402 [4.8/4.9/5 Regression]  ICE in extract_insn
64768 [4.8/4.9/5 Regression] internal compiler error: tree check: expected tree that contains ‘decl with RTL’ structure
63744 [4.8/4.9/5 Regression] Duplicate use-statement causes error
64979 [4.8 Regression] stdarg optimization not able to find escape sites in phi nodes
57653 [4.8/4.9 Regression] filename information discarded when using -imacros
60718 [4.8/4.9 regression] Test case gfortran.dg/select_type_4.f90 fails on ARM
64479 [4.8 Regression][SH] wrong optimization delayed-branch
39722 [4.8/4.9 Regression][cond-optab] worse code with bitfields on v850
64882 ICE on valid code at -O3 with -g enabled in simplify_subreg
61058 [4.8/4.9 Regression] ICE: RTL check: expected elt 3 type 'B'
64513 [4.8/4.9 Regression] ICE: in maybe_record_trace_start
64766 [4.8/4.9 Regression] internal compiler error: tree check: expected block
64487 [4.8/4.9 Regression] internal compiler error: in fold_offsetof_1
62044 [4.8/4.9 Regression] ICE in USE statement with RENAME for extended derived type
57748 [4.8 Regression] ICE when expanding assignment to unaligned zero-sized array
57023 [4.8 Regression] Not packing arrays with changing variable used for size
52306 [4.8 regression] ICE in cselib_record_set
52714 [4.8 regression] ICE in fixup_reorder_chain
58369 [4.8 regression] ICE in subreg_get_info when compiling boost for m68k-linux
63733 [4.8/4.9/5 Regression] [OOP]  wrong resolution for OPERATOR generic
2016-09-12 18:42:04 +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
agc
54622f28e2 Add SHA512 digests for distfiles for lang category
Problems found with existing digests:
	Package nhc98 distfile nhc98src-1.22.tar.gz
	a8adc8f22371998ee0657bc0e01058a57d876abc [recorded]
	81975fcb5f1dda5efeaabc30ce8c6dceae55e591 [calculated]

Problems found locating distfiles:
	Package gcc-aux: missing distfile ada-bootstrap.i386.dragonfly.36A.tar.bz2
	Package gcc-aux: missing distfile ada-bootstrap.i386.freebsd.84.tar.bz2
	Package gcc-aux: missing distfile ada-bootstrap.x86_64.dragonfly.36A.tar.bz2
	Package gcc-aux: missing distfile ada-bootstrap.x86_64.freebsd.84.tar.bz2
	Package gcc-aux: missing distfile ada-bootstrap.x86_64.solaris.511.tar.bz2
	Package gcc5-aux: missing distfile ada-bootstrap.i386.dragonfly.36A.tar.bz2
	Package gcc5-aux: missing distfile ada-bootstrap.i386.freebsd.84.tar.bz2
	Package gcc5-aux: missing distfile ada-bootstrap.x86_64.dragonfly.36A.tar.bz2
	Package gcc5-aux: missing distfile ada-bootstrap.x86_64.freebsd.84.tar.bz2
	Package gcc5-aux: missing distfile ada-bootstrap.x86_64.solaris.511.tar.bz2
	Package ghc7: missing distfile ghc-7.6.3-boot-i386-unknown-freebsd.tar.xz
	Package icc11: missing distfile l_cproc_p_11.1.080.tgz
	Package jini: missing distfile jini-1_2_1_001-src.zip
	Package oo2c: missing distfile oo2c_32-2.0.11.tar.bz2
	Package openjdk7: missing distfile openjdk7/bootstrap-jdk-1.7.76-freebsd-10-amd64-20150301.tar.xz
	Package openjdk7: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-5-i386-20150301.tar.xz
	Package openjdk7: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-6-i386-20150301.tar.xz
	Package openjdk7: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-7-earmv6hf-20150306.tar.xz
	Package openjdk7: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-7-sparc64-20150301.tar.xz
	Package openjdk7: missing distfile openjdk7/bootstrap-jdk7u60-bin-dragonfly-3.8-amd64-20140719.tar.bz2
	Package openjdk8: missing distfile openjdk7/bootstrap-jdk-1.7.76-freebsd-10-amd64-20150301.tar.xz
	Package openjdk8: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-5-i386-20150301.tar.xz
	Package openjdk8: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-6-i386-20150301.tar.xz
	Package openjdk8: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-7-earmv6hf-20150306.tar.xz
	Package openjdk8: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-7-sparc64-20150301.tar.xz
	Package openjdk8: missing distfile openjdk7/bootstrap-jdk7u60-bin-dragonfly-3.8-amd64-20140719.tar.bz2
	Package oracle-jdk8: missing distfile jdk-8u60-linux-i586.tar.gz
	Package oracle-jdk8: missing distfile jdk-8u60-solaris-x64.tar.gz
	Package oracle-jre8: missing distfile jre-8u60-linux-i586.tar.gz
	Package oracle-jre8: missing distfile jre-8u60-solaris-x64.tar.gz
	Package sun-jdk6: missing distfile jdk-6u45-linux-i586.bin
	Package sun-jdk6: missing distfile jdk-6u45-solaris-i586.sh
	Package sun-jdk7: missing distfile jdk-7u72-linux-i586.tar.gz
	Package sun-jdk7: missing distfile jdk-7u72-solaris-i586.tar.gz
	Package sun-jre6: missing distfile jce_policy-6.zip
	Package sun-jre6: missing distfile jre-6u45-linux-x64.bin
	Package sun-jre6: missing distfile jre-6u45-solaris-x64.sh
	Package sun-jre7: missing distfile jre-7u72-linux-i586.tar.gz
	Package sun-jre7: missing distfile jre-7u72-solaris-i586.tar.gz

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
2015-11-03 22:50:31 +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
wiedi
da4f3802b7 bring back ecj-4.5.jar checksums 2015-08-25 19:57:00 +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
ryoon
05d8254902 Update to 4.8.4
* Reset gcc48-libs' PKGREVISION to 1

Changelog:
* Bugfixes.
2015-03-12 14:56:13 +00:00
dbj
d75e16317e Fix build issues on Darwin 2015-01-27 04:46:06 +00:00
jperkin
74d67c539b Add back missing ecj-4.5.jar 2015-01-14 10:36:17 +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
e470b7e219 Restore monolithic gcc48 and gcc48-libs.
* No objection on tech-pkg@ mailing list.
2014-10-31 14:22:20 +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
deb97f76be Re-add ecj-4.5.jar checksum. Noted by Kai-Uwe Eckhardt <kuehro@gmx.de> in private mail. 2014-02-25 21:22:31 +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
adam
7f550b141d Changes 4.8.2:
This release is a bug-fix release, containing fixes for regressions in GCC 4.8.1 relative to previous releases of GCC.
2013-10-21 20:26:19 +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
wiz
bce37575a9 readded ecj checksum 2013-06-12 19:46:01 +00:00
adam
c68f40e9ce Changes 4.8.1:
This release is a bug-fix release, containing fixes for regressions in GCC 4.8.0 relative to previous releases of GCC.
2013-06-02 18:12:22 +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