Commit graph

16 commits

Author SHA1 Message Date
Gerald Pfeifer
0d4f348227 Remove files/patch-unwind-ia64.h; this has become obsolete since
ONLY_FOR_ARCHS has not been including ia64 for a while.
2017-05-05 22:15:36 +00:00
Gerald Pfeifer
0ddd0551fd Remove Java support (both in terms of the JAVA option and everything
associated with it as well as java from CATEGORIES).

In addition to changes to Makefile, pkg-plist, and pkg-descr, this also
removes files/java-patch-hier.

GCC 4.9 was first released in summer 2014 and went end-of-life upstream
a year ago, but GCC 5 is very well established by now and also provides
support for Java (GCJ/libgcj), and so does GCC 6, and this simplifies
this port significantly and also speeds up the build.

While we are here, streamline the setting of INFO.
2017-05-01 08:15:32 +00:00
Gerald Pfeifer
8184c6aabc Copy over files/patch-x86-64-fix-m16 from lang/gcc since both ports are
about the same version of GCC (except lang/gcc will move on to GCC 5).
2016-12-11 16:20:21 +00:00
Dimitry Andric
3768536082 Fix build of lang/gcc49 with libc++ 3.9.0
While testing the clang390-import branch, I ran into the following
errors building lang/gcc49:

In file included from /wrkdirs/usr/ports/lang/gcc49/work/gcc-4.9.4/gcc/c/c-objc-common.c:33:
In file included from /usr/include/c++/v1/new:70:
/usr/include/c++/v1/exception:267:5: error: no member named 'fancy_abort' in namespace 'std::__1'; did you mean simply 'fancy_abort'?
    _VSTD::abort();
    ^~~~~~~
/usr/include/c++/v1/__config:451:15: note: expanded from macro '_VSTD'
#define _VSTD std::_LIBCPP_NAMESPACE
              ^
/wrkdirs/usr/ports/lang/gcc49/work/gcc-4.9.4/gcc/system.h:685:13: note: 'fancy_abort' declared here
extern void fancy_abort (const char *, int, const char *) ATTRIBUTE_NORETURN;
            ^
1 error generated.

What is happening here, is that the source file includes gcc/system.h,
which defines abort to fancy_abort, and then the source file includes
<new>, which attempts to call _VSTD::abort() (the _VSTD is a libc++
alias for std::).  The macro definition then causes the above breakage.

Newer gcc ports, such as gcc5 and gcc6 don't show this issue, because
upstream gcc first added an include of <algorithm> (which indirectly
includes <new>) in r217348 [1], and later even add a direct include of
<new> in r232736 [2].

Fix it for this version, by adding the direct include of <new> to
gcc/system.h.  This makes the 'second' includes of <new> in some .c
files superfluous, but at least they won't result in errors.

[1] https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=217348
[2] https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=232736

Approved by:	gerald (maintainer)
PR:		212465
MFH:		2016Q3
2016-09-09 18:48:24 +00:00
Andreas Tobler
fdbf4ee15e Skip armv6hf support and move it into armv6.
Discussed with: gerald@
2016-06-03 21:24:41 +00:00
Gerald Pfeifer
e025d390c2 Update to the 20151202 snapshot of GCC 4.9.4.
Pet overeager portlint.
2015-12-03 00:28:41 +00:00
Gerald Pfeifer
a93611c0ca Update to the 20151111 snapshot of GCC 4.9.4.
Thanks to andreast@ the patch for PIE support is now upstream,
so drop files/patch-pie-support.
2015-11-12 11:50:15 +00:00
Gerald Pfeifer
7901fb50aa Update to the 20150624 snapshot of GCC 4.9.3.
files/patch-pr63740-arm is no longer necessary, this has been
addressed upstream now (thanks to andreast@).
2015-06-26 09:00:57 +00:00
Andreas Tobler
0280fdf671 Backport PIE support for FreeBSD from GCC trunk.
Approved by:	gerald
2015-06-09 19:59:56 +00:00
Andreas Tobler
520645def8 Add support for armv6*-*-freebsd*.
The large patch is the same as the one from r376266.
The second patch is a temporary fix for the bootstrap failure on all
ARM targets. This fix will be hopefully soon applied to gcc-4.9.x upstream.

Thanks again to Sean Bruno for testing and Gerald for approving.

Approved by:	gerald (maintainer)
2015-01-05 19:28:19 +00:00
Gerald Pfeifer
d58cc946c8 Add USES=fortran as another case where the run-time library path is
set transparently.

Reported by:	Dmitry Sivachenko <trtrmitya@gmail.com>
2014-04-13 13:22:44 +00:00
Gerald Pfeifer
cbb716d97e Update to the 20140406 snapshot of GCC 4.9.0.
Add pkg-message that references the need to use -Wl,-rpath=... . [1]

No longer install rebuild-gcj-db49 (which requires bash among others)
and its man page.

PR:		185902 [1]
2014-04-12 23:36:24 +00:00
Gerald Pfeifer
67d5961915 Update to the 20130609 snapshot of GCC 4.9.0.
This addresses the libitm/ build issue via an upstream of mine,
so we can remove the local patch.
2013-06-10 19:44:48 +00:00
Gerald Pfeifer
f5322ed876 Update to the 20130526 snapshot of GCC 4.9.0. (This requires a small
adjustment to our Java hierarchy patch, no functional change though.)
2013-05-31 22:52:02 +00:00
Gerald Pfeifer
25ff624523 Update to the 20130414 snapshot of GCC 4.9.0. This requires a fix
for libitm which didn't expect the OS to define __always_inline by
itself (and differently).

Also, this no longer installs libffi and its info and man pages which
was always meant to remain for internal use only.

Feature safe:	yes
2013-04-21 14:00:08 +00:00
Gerald Pfeifer
b4a430c47e Now that GCC 4.8.0 has been released, welcome GCC 4.9 in its very,
very early development stages.

Business as usual with the C, C++, Fortran, Java compilers and tools
invoked as gcc49, g++49, gfortran49, gcj49 and so forth. Initially
this may be relatively stable due to the GCC 4.8.0 stabilization
efforts, but be prepared for a rough ride the coming months as this
goes through active development.
2013-03-24 23:03:38 +00:00