Commit Graph

78 Commits

Author SHA1 Message Date
pascal
c77b1f0cae sync hppa LINK_SPEC; ok brad@
no bumps for 4.7 as it doesn't build there
2013-02-04 11:37:09 +00:00
naddy
cbeb31112b bump for plist changes 5.2 -> 5.3 2013-02-01 16:34:36 +00:00
pascal
5d1e11d3f5 Don't hide error messages from gnatmake to give us a chance to debug this when
it fails.

ok tobiasu@
2013-01-28 11:42:33 +00:00
tobiasu
7bf586c62e Remove sparc, m68k, and vax from the list of working architectures.
Their respective gcc backend ports are unfinished and broken.

ok pascal@
2013-01-28 01:03:05 +00:00
pascal
3f1c4aa554 rm TODO, now obsolete. 2013-01-23 18:28:03 +00:00
pascal
f5b212fcc5 Add alpha support (without -go). Takes 14h to build.
tested by and ok naddy@
2013-01-23 18:26:55 +00:00
tobiasu
5610f716f0 "Fix" parallel make install by forcing gmake to only run 1 job. It's not
pretty and we would like to have a better fix, but for now it should suffice.

ok naddy@, sthen@
2013-01-20 02:23:40 +00:00
bcallah
6e2fc64bd9 More mips64el check-in. Add mips64el to NOT_FOR_ARCHS-go. ld fails: Bad final value
ok jasper@ pascal@
2013-01-18 19:09:58 +00:00
pascal
b368cf7d60 Add hppa support. Still a bit rough around the edges: Some optimisations
(-foptimize-sibling-calls and -freorder-blocks) cause segfaults during build,
so don't include them in -O2 on hppa.  Also, -go is not supported.

requested by and ok brad@ and tested on one of his machines
2013-01-16 19:28:48 +00:00
pascal
05fd655191 Bring in some WIP mips64 work; fails atm due to a binutils bug when linking
liblto_plugin.so:

/usr/bin/ld: not enough GOT space for local GOT entries
/usr/bin/ld: BFD 2.15 internal error, aborting at
/usr/src/gnu/usr.bin/binutils/bfd/elfxx-mips.c line 6483 in _bfd_mips_elf_relocate_section

with/tested by jasper@
2013-01-10 15:00:55 +00:00
espie
298824094f a little overkill on autoconf override magic... 2012-12-28 14:32:00 +00:00
naddy
814177890f do not run parallel fake until the race condition there has been fixed 2012-12-26 16:15:19 +00:00
tobiasu
18e9b90a33 Add Ada support on amd64 and sparc64
Also unbreak and improve adastrap generation
Cleanup bootstrap libc handling

ok pascal@
2012-11-06 00:57:43 +00:00
kurt
e6d0f75aab Fix boehm-gc and increase gcj default thread stack size. Makes gjc work
well enough to bootstrap devel/jdk/1.6. okay pascal@ jasper@
2012-10-17 19:58:21 +00:00
landry
5b823cb084 Sync the config/openbsd.h and config/sparc/openbsd64.h patches with
respectively r1.9 and r1.6 of base gcc ones adding #define
NO_IMPLICIT_EXTERN_C. While here add the missing #define
NO_UNSAFE_BUILTINS to gfortran/gcc 4.2, Bump all REVISIONs.
ok sthen@
2012-10-07 20:09:44 +00:00
pascal
a2552ed7a7 Unify MASTER_SITES for adastrap; they're now all hosted by Tobias Ulmer on
tmux.org.  Makes gnat bootstrapping work a little easier for him.
2012-09-28 15:02:28 +00:00
naddy
b59373b722 Add DPB_PROPERTIES=parallel for some big ports.
Required to make full use of the amd64 package building cluster.
2012-09-26 17:36:46 +00:00
pascal
f080554be1 Make gcc 4.[67] use __guard_local instead of __guard. From Brad.
ok matthew@
2012-09-03 13:24:58 +00:00
pascal
13f6a15732 Patch GCC and derived ports to use PIE by default on the same architectures it
is enabled on in base; except for gcc 3.3, which does not have PIE support and
therefore needs to pass -nopie to the linker.

Also, sync powerpc pthread specs with base.  From Brad.

ok naddy@
2012-09-01 00:00:32 +00:00
sthen
757b73bc31 missing bump, pointed out by nigel@ 2012-08-29 20:53:32 +00:00
sthen
c8cbedb21c sync OBSD_LIB_SPEC in the ports tree compilers with the updated one
in base; from Brad
2012-08-28 23:39:12 +00:00
pascal
081a373d7b Set PKGSPEC-main to be more strict about versions (>=4.6,<4.7) of the -main
package.  g++ et alii should always depend on a matching gcc.  Same solution as
for 4.7 by espie@.

found by and ok aja@
2012-08-25 18:22:54 +00:00
sthen
701ea4d98f sync wantlib 2012-08-23 19:19:16 +00:00
pascal
e27ffe7e0c Sync -pthread semantics with base gcc. From Brad.
ok matthew@
2012-08-20 12:35:41 +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
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
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
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
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
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
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
pascal
1e01a1282f This patch is no longer needed, noticed by Brad. 2012-01-10 17:18:18 +00:00
robert
9d3dc83a2a missing endif 2011-12-14 18:16:51 +00:00