Commit Graph

261 Commits

Author SHA1 Message Date
pascal
002cee8638 Enable gcc 4.7 for release.
ok espie@
2012-07-15 08:56:55 +00:00
pascal
f2e4c82f69 Disable -java until I get around to fixing it.
ok espie@
2012-07-15 08:56:26 +00:00
pascal
3c23183a62 Update to gcc 4.7.1.
- add some fixes for hppa, though it still isn't ready for prime time yet.
  Chances are it will only work with -O1, pending testing.  Many optimisations
  lead to broken code and segfaults on hppa.  Joint work with jsg@.
- fix libstdc++ upgrade path
- bring in recent fixes for execinfo/magic.h from 4.6

ok espie@
2012-07-01 18:56:45 +00:00
pascal
c648bb387c Deal with hidden dependencies libmagic and libexecinfo, found by Mikolaj
Kucharski:
- disable detection of magic.h
- record build dependency on devel/libexecinfo.  Note that this affects only
  profiling features of libstdc++, enabled by defining _GLIBCXX_PROFILE.

ok espie@
2012-07-01 18:28:40 +00:00
sthen
49a55c3e0f bump for plist changes 5.1 -> 5.2 2012-06-21 13:56:57 +00:00
pascal
a51e30b3c9 Fix build with Brad's sysconf(3) diff, found by naddy@ in his bulk build. 2012-05-14 23:39:39 +00:00
pascal
21fda32a64 Don't hardcode GC_nprocs to 1 in boehm-gc, but get it from sysconf instead,
following a similar change in devel/boehm-gc.
From Brad.

ok kurt@
2012-05-07 10:34:33 +00:00
pascal
46702013ca Do not let different versions of libstdc++ conflict with each other. At the
same time, make sure that g++ is never installed alongside a higher version
of libstdc++, so that stuff will always link to the correct library.

feedback espie@ and kurt@, ok kurt@
2012-05-04 08:47:55 +00:00
espie
5189f3d2f9 g++ 4.7 doesn't really work with gcc 3.3.6, since it won't find -lgcc 2012-05-03 11:49:14 +00:00
espie
863d932489 give C++ a chance to work... 2012-05-03 11:22:29 +00:00
sthen
977a5cf9a6 missing bump -estdc 2012-04-24 09:47:31 +00:00
pascal
90cf7ab585 s/_POSIX_THREADS/_REENTRANT/, noticed by Brad. 2012-04-24 07:05:34 +00:00
pascal
1f2db171c7 sync WANTLIB version 2012-04-23 21:32:29 +00:00
espie
a046747283 well, void distfile names are a bad idea. 2012-04-23 21:22:09 +00:00
pascal
6382574149 aja is mirroring adastrap; thanks! 2012-04-23 16:30:48 +00:00
pascal
f2b393605c Import gcc 4.7.
ok espie@
2012-04-23 15:56:40 +00:00
pascal
ffe09c8f33 tedu old versions of gcc
ok kurt@ espie@ sthen@
2012-04-23 15:17:56 +00:00
pascal
b15c7fe082 - define _REENTRANT, not _POSIX_THREADS for -pthread
- sync kprintf formats with base

looks ok to kurt@
2012-04-23 14:16:34 +00:00
pascal
7db97b1c58 Define _REENTRANT, not _POSIX_THREADS for -pthread; ok kurt@ 2012-04-23 14:12:18 +00:00
pascal
83058afc05 - define _REENTRANT, not _POSIX_THREADS for -pthread
- enable thread model posix; bump estdc++ major
- fix manpages: install cpp.1 and gcov.1 with an 'e' prefix, and install
  another copy of gcc.1 as eg++.1 instead of an effectively empty page.

feedback and ok kurt@
2012-04-23 14:06:42 +00:00
pascal
3f726ecffb Enhance this module to provide ${MODGCC4_CPPLIBDEP} and ${MODGCC4_CPPWANTLIB}.
ok robert@
2012-04-18 18:41:22 +00:00
pascal
0e321f98b8 Defaulting to march=i486 in the compiler doesn't help much if the driver
overrides that setting.  Sync both to use i486.  Fixes libreoffice and chromium
on i386, tested by both me and naddy@.
2012-04-09 11:55:53 +00:00
pascal
589e02ed65 Fix previous to work when building java, but not go. Noticed and patch by
Andre Zepezauer on ports@ (thanks).

ok sthen@
2012-04-08 12:40:51 +00:00
pascal
52678a89c6 Also build libffi on arches where java isn't supported, it's needed for libgo.
tested on powerpc and ok aja@
2012-04-06 07:50:32 +00:00
pascal
826b4aa211 Apply the same fix as to base gcc wrt -fident.
ok espie@
2012-04-02 15:28:04 +00:00
pascal
c263e2ec14 Previous commit actually fixed gcc 4.6 on sparc64; just fix one stupid typo.
Tested on one of weerd@'s machines (thanks).

Also, update TODO.

ok espie@
2012-04-02 08:51:30 +00:00
pascal
7b9d7a0837 forgot to cvs rm 2012-03-31 20:06:40 +00:00
pascal
e7f261aa15 Update to gcc 4.6.3.
Also, sync a bit with base gcc:
- disable unsafe builtins
- disable -Wpointer-sign in -Wall
- move -fstrict-aliasing to -O3, disable -fstrict-overflow and
  -fdelete-null-pointer-checks
- enable -Wsystem-headers
- default to march=i486 on i386
- fix crtsavres on powerpc
- sync sparc64 config
- implement -Wvariable-decl, -Wstack-larger-than-N (alpha, amd64, i386, sparc,
  sparc64), -Wtrampolines, -ftrampolines
- default to -fno-ident
- fix -rdynamic by passing -export-dynamic to ld(1)

some bits from Brad, others from me.

tested by myself and jsg@, adastrap now hosted by sthen@ (thanks).

ok jsg@ sthen@
2012-03-31 20:02:03 +00:00
sthen
88ea72915d Change SEPARATE_BUILD=(concurrent|simple) to Yes; bsd.port.mk doesn't
make a distinction between these.  ok aja@ dcoppa@
2012-03-29 13:38:12 +00:00
kurt
d4c1807932 enable __cxa_atexit. okay pascal@ 2012-03-07 20:39:37 +00:00
pascal
bdd5b86d65 fix boehm-gc with rthreads for gcc 4.6. based on kurt@'s work.
ok espie@
2012-02-28 20:00:16 +00:00
pascal
fe79b79bb5 Fix build of libgo on powerpc by:
- backporting a fix for the ppc backend from upstream
- telling libgo configure not to try to link to libffi_convenience on ppc

issue brought up and fix tested by ajacoutot@, "go ahead" kettenis@
2012-02-26 22:32:36 +00:00
kurt
1805bc8d2b Port boehm-gc rthread support from boehm-gc port. Tested in bulk by espie@ 2012-02-22 12:40:04 +00:00
ajacoutot
546de5306a Now that the system headers provide a proper definition of NULL we
can remove all these NULL patches.

from Brad
ok espie@
2012-02-22 07:48:10 +00:00
pascal
378165bc9a Fix -ada build by providing a dummy fname_as_string() in gnat, missed in the
previous commit when enabling ssp.

Reported and fix tested by naddy@.
2012-02-21 08:09:30 +00:00
pascal
72bbe18ad2 - modify stack protection to work with our native libc routines, passing the
function name to __stack_smash_handler.  Only supported for "c-family"
  languages at the moment.
- enable it per default on archs where FRAME_GROWS_DOWNWARD
- remove obsolete comment about adastrap needing a specific libc
- -java actually needs a runtime dep on -main for -lgcc

ok espie@
2012-02-16 21:30:15 +00:00
landry
878a92f4a1 Mark gcc 4.6 as BROKEN-sparc64, gengtype loops infinitely.
ok espie@ sthen@
2012-02-03 17:01:17 +00:00
pascal
f5169e7dcb Enable gcc 4.6
ok espie@.
2012-01-26 13:18:16 +00:00
pascal
be59426cab - bump libestdc++ following the bump in gcc 4.2
- deal with ldconfig shitz being run at fake install everywhere
- fix sprintf/strcpy usage in libestdc++ so we don't get a warning every time
  we compile a C++ program

Everything brought up by espie@.
2012-01-26 13:17:22 +00:00
espie
7ac6808f15 fix for !i386, sorry 2012-01-24 19:19:27 +00:00
espie
022f1ce588 same dance as for 4.6: stop at stage2, oh and use CONFIG_SITE everywhere 2012-01-23 22:20:34 +00:00
espie
64971ac124 as discussed with pascal, make build more reproducible, by enforcing
CONFIG_SITE even if the FSF says no.

Also, finally get rid of the stage3 build/comparison, since apart from
taking build time, it's not really THAT useful unless you're specifically
debugging gcc.
2012-01-23 17:04:10 +00:00
espie
b7fe4f0430 like for 4.2, bundle a libc with adastrap.
cheat a bit: bundle the libc from 5.0, and pretend it's the one we built
with... (to be cleaned next time someone bootstraps ada)
2012-01-23 15:34:01 +00:00
espie
da7ac90093 switch to a new way of bundling bootstrap: this bundles the official
libc.so from OpenBSD 5.0, and tweaks the ada scripts to LD_LIBRARY_PATH
the bundled library.

That way, we should be able to get away by providing a new bootstrap ways
less often (preferably every release, but things won't break if we do it
even LESS often).
2012-01-23 14:59:57 +00:00
espie
280d2bc38a tweak infra to be able to bundle libc in adastrap 2012-01-23 14:47:37 +00:00
naddy
6ad7a26783 bump revision for plist changes 5.0 -> 5.1 2012-01-13 00:55:14 +00:00
pascal
1e01a1282f This patch is no longer needed, noticed by Brad. 2012-01-10 17:18:18 +00:00
sthen
5370b8f32d - update adastrap to a newer version built by kili@ against libc.so.60.1
(from OpenBSD 5.0-release), thanks ajacoutot@ for hosting the distfile.

- check that the bootstrap egcc can actually run; the reason for failure
due to missing libs is now clear (previously it was a cryptic "C compiler
cannot create executables" type message during configure).
2012-01-04 12:29:01 +00:00
robert
9d3dc83a2a missing endif 2011-12-14 18:16:51 +00:00
pascal
3afb4d8443 Fix configure test for wstring support, reported by robert@. 2011-12-13 13:46:45 +00:00