Commit graph

605 commits

Author SHA1 Message Date
Gerald Pfeifer
49eb054f5f Fix the build on FreeBSD 10 and later.
Tested by:	avg, kargl
2011-12-20 12:34:20 +00:00
Gerald Pfeifer
85686f2a84 Enable the Objective-C front end and accordingly also the run-time.
Feature safe:	yes
2011-12-13 10:53:44 +00:00
Gerald Pfeifer
05685771fd Update to the GCC 4.6.2 release with a fair amount of bug fixes all
across the board, cf.
http://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED&resolution=FIXED&target_milestone=4.6.
for details.

Feature safe:	yes
2011-11-12 13:39:15 +00:00
Gerald Pfeifer
b41b914946 Omit LATEST_LINK to disambiguate this port from the original lang/gcc46.
Discussed with:	erwin
2011-09-27 21:26:13 +00:00
Gerald Pfeifer
659ec95f4a Welcome the new lang/gcc port! This shall track our preferred version
of GCC (usually an upstream release).  It starts out as GCC 4.6.1 and
is thus in conflict with lang/gcc46 and will move towards later minor
versions of GCC 4.6 and then on to GCC 4.7.

lang/gcc will provide gcc46, g++46, gfortran46 etc. exactly like
lang/gcc46 with which it is interchangible.

This is also planned to be in sync with our existing USE_FORTRAN knob
so that users have the option of using this port, rarely updated, or
the corresponding lang/gcc46 which follows weekly upstream snapshots.

On the way rename %%GCC_VER%% in pkg-plist to %%GCC_VERSION%% and
make the Makefile machinery a bit more generic to minimize differences
between lang/gcc ports based on releases and those based on snapshots.

PR:		156857
2011-09-26 00:54:37 +00:00
Gerald Pfeifer
092a6c2af1 Update to the 20110916 snapshot of GCC 4.6.2. 2011-09-17 23:37:12 +00:00
Gerald Pfeifer
713f39149d Also update ccache links (when appropriate) in case of package
installation and deinstallation.

My code for handling the port installation case sneaked in via
the previous commit.

PR:		155568
Submitted by:	ehaupt
2011-09-10 13:36:48 +00:00
Gerald Pfeifer
65b7a79418 Update to the 20110909 snapshot of GCC 4.6.2. 2011-09-10 12:34:51 +00:00
Gerald Pfeifer
64edecf19f Update to the 20110902 snapshot of GCC 4.6.2. 2011-09-04 20:29:32 +00:00
Gerald Pfeifer
f320fe3dbd Update to the 20110826 snapshot of GCC 4.6.2. 2011-08-27 23:35:23 +00:00
Gerald Pfeifer
2d747e087d Update to the 20110812 snapshot of GCC 4.6.2. 2011-08-15 21:44:17 +00:00
Gerald Pfeifer
60c97e82f2 Update to the 20110729 snapshot of GCC 4.6.2. 2011-07-31 22:28:46 +00:00
Gerald Pfeifer
713553940f Update to the 20110722 snapshot of GCC 4.6.2. 2011-07-23 12:00:57 +00:00
Gerald Pfeifer
fda7ee926e Update to the 20110715 snapshot of GCC 4.6.2. 2011-07-19 21:11:27 +00:00
Gerald Pfeifer
01af4ce679 Update to the 20110708 snapshot of GCC 4.6.2. 2011-07-11 08:20:33 +00:00
Gerald Pfeifer
48d67602da Update to the 20110701 snapshot of GCC 4.6.2, which is practically
the GCC 4.6.1 release.
2011-07-04 10:56:11 +00:00
Gerald Pfeifer
b1bc7eea34 Update to the 20110610 snapshot of GCC 4.6.1. 2011-06-12 17:49:39 +00:00
Gerald Pfeifer
ea38501036 Oops, remove testing code (to force older version). 2011-06-04 11:06:27 +00:00
Gerald Pfeifer
17bb9a294d Oops, remove testing code (to force older version). 2011-06-04 10:05:31 +00:00
Gerald Pfeifer
264ddd020f Update to the 20110603 snapshot of GCC 4.6.1.
Enable c, c++, and fortran (and only these) explicitly by default, and
Java when/where available. [1]

Reported by:	Scott Allendorf <scott-allendorf@uiowa.edu> [1]
2011-06-04 10:00:41 +00:00
Gerald Pfeifer
c083471e66 Complete Java support by providing a pre-built copy of ecj.jar.
PR:		157115
Tested by:	joerg, mandree
2011-06-02 22:11:48 +00:00
Gerald Pfeifer
69f9107e9a Update to the 20110526 snapshot of GCC 4.6.1. Upstream now only provides
a single tarball, so this brings a number of changes around that.
2011-05-29 11:59:46 +00:00
Gerald Pfeifer
dfac060b47 Update to the 20110520 snapshot of GCC 4.6.1. 2011-05-21 12:09:23 +00:00
Gerald Pfeifer
c6abd83d17 Update to the 20110513 snapshot of GCC 4.6.1. 2011-05-14 02:01:47 +00:00
Gerald Pfeifer
45c7873b5e Update to the 20110506 snapshot of GCC 4.6.1. 2011-05-07 22:27:11 +00:00
Gerald Pfeifer
68e3769cbc Update to the 20110429 snapshot of GCC 4.6.1. 2011-04-30 18:38:51 +00:00
Gerald Pfeifer
27dd163872 Update to the 20110422 snapshot of GCC 4.6.1.
Replace the, now dysfunctional, post-patch target with a configure
option that marks this build of GCC as "FreeBSD Ports Collection". [1]

Reported by:	Bjoern Koenig <bkoenig@alpha-tierchen.de> [1]
2011-04-23 22:47:46 +00:00
Gerald Pfeifer
93f5415b7a Update to the 20110415 snapshot of GCC 4.6.1. 2011-04-17 00:46:15 +00:00
Gerald Pfeifer
915756b208 Update to the 20110408 snapshot of GCC 4.6.1. 2011-04-09 01:13:43 +00:00
Gerald Pfeifer
0cabdf9daa Update to the 20110401 snapshot of GCC 4.6.1. 2011-04-02 11:58:32 +00:00
Gerald Pfeifer
d55f0b8172 Update to the release of GCC 4.6.0 (basically). Really too many changes
to sensibly list here, but http://gcc.gnu.org/gcc-4.6/changes.html has a
nice overview.

Some highlights include

 - a new quad-precision library that's used by the Fortran frontend
   (on x86 and amd64);
 - new -Wunused-but-set-variable and -Wunused-but-set-parameter warnings
   for C family languages (enabled by -Wall and -Wall -Wextra, too);
 - new -Wdouble-promotion warning for implicit promotions to double;
 - a new general optimization level -Ofast combines -O3 with options that
   can affect standards compliance but result in better optimized code;
 - link-time optimizations (LTO) now scaling to large input sizes, using
   better heuristics, and optimizing more aggressively;
 - new command-line options -fstack-usage and -fstrict-volatile-bitfields
   (for precisely defining and accessing memory-mapped peripheral registers);
 - function attribute leaf that allows for more aggressive optimizations;
 - new data type __int128 for targets having wide enough machine-mode support;
 - support for selectively enabling and disabling warnings via
   #pragma GCC diagnostic has been added. For instance:

     #pragma GCC diagnostic error "-Wuninitialized"
       foo(a);			/* error is given for this one */
     #pragma GCC diagnostic push
     #pragma GCC diagnostic ignored "-Wuninitialized"
       foo(b);			/* no diagnostic for this one */
     #pragma GCC diagnostic pop
       foo(c);			/* error is given for this one */
     #pragma GCC diagnostic pop
      foo(d);			/* depends on command line options */

 - new command-line option-fmax-errors=N;
 - experimental support for some features from the upcoming ISO C1X;
 - similarly for ISO C++0x including constexpr, nullptr, noexcept,
   unrestricted unions, range-based for loops, opaque enums, implicitly
   deleted functions, and implicit move constructors;
 - default warning when integers are cast to larger pointer types,
   to disable via -Wno-int-to-pointer-cast;
 - signficiantly better diagnostics for C++ code;
 - loads and loads and loads of improvements to the Fortran frontend;
 - a new Go frontend and run-time library;
 - massive work on Objective-C and Objective-C++; notably extensive
   support for Objective-C 2.0  (not enabled by this port yet);
 - support for Intel Core 2 processors (-march=core2, -mtune=core2),
   Intel Core i3/i5/i7 processors /with AVS (-march=corei7, -mtune=corei7,
   -march=corei7-avx, -mtune=corei7-avx);
 - support for AMD Bobcat (fam 14) processors (-march=btver1, -mtune=btver1);

Caveat:

 - Most libstdc++ standard headers have been changed to no longer include
   the cstddef header as an implementation detail.
2011-03-26 01:33:11 +00:00
Gerald Pfeifer
2436065cf2 Add support for 32-bit powerpc.
Submitted by:	andreast
2011-03-20 23:01:09 +00:00
Gerald Pfeifer
d2ad6064f7 Update to the 20110318 snapshot of GCC 4.6.0.
Make the full-regression-test target conditional on MAINTAINER_MODE. [1]

Reported by:	andreast, marius [1]
2011-03-19 14:50:55 +00:00
Gerald Pfeifer
83bb53137b Update to the 20110312 snapshot of GCC 4.6.0. On the way, remove the
LTO option.  This is now the default, without any drawbacks or extra
dependencies.
2011-03-19 00:21:58 +00:00
Gerald Pfeifer
96b2c5d450 Update to the 20110305 snapshot of GCC 4.6.0. Remove the dependency
on libelf when building with link-time optimization (LTO) support which
is not needed any more.
2011-03-13 17:38:18 +00:00
Gerald Pfeifer
a74bb0926e Update to the 20110226 snapshot of GCC 4.6.0. The change for code
generation on i386 to default to i486 on FreeBSD 6 and above is now
upstream, too, so we can shed our specific patch.
2011-02-27 01:11:53 +00:00
Gerald Pfeifer
d5804fb6b8 Update to the 20110219 snapshot of GCC 4.6.0.
This addresses the pollution of common namespace by
share/python/aotcompile.py and share/python/classfile.py which are
now saved in version-specific directories.

By means of an extra patch default code generation on i386 now
defaults to i486 on FreeBSD 6 and above. [1]

Submitted by:	tijl [1]
Reported by:	Yuri Karaban <tech@askold.net> [1]
PR:		154364 [1]
2011-02-22 18:57:48 +00:00
Gerald Pfeifer
13f863d3af Update to the 20110219 snapshot of GCC 4.6.0.
This addresses the pollution of common namespace by
share/python/aotcompile.py and share/python/classfile.py which now
go into version-specific directories.

By means of an extra patch default code generation on i386 defaults
to i486 on FreeBSD 6 and above. [1]

Submitted by:	tijl [1]
Reported by:	Yuri Karaban <tech@askold.net> [1]
PR:		154364 [1]
2011-02-22 18:56:53 +00:00
Gerald Pfeifer
9fbc00da50 Update to the 20110212 snapshot of GCC 4.6.0. 2011-02-15 01:35:09 +00:00
Gerald Pfeifer
de933eed96 Omit the libquadmath info file on sparc64 and ia64.
Reported by:	Anton Shterenlikht <mexas@bristol.ac.uk>
2011-02-10 01:44:23 +00:00
Gerald Pfeifer
385d614ea2 Update to the 20110205 snapshot of GCC 4.6.0. This finally addresses
a long standing issue around libgcj that's been hitting us and allows
me to remove the stop gap I had put in place years ago. [1]

PR:		81788 [1]
Feature safe:	yes
2011-02-06 01:07:01 +00:00
Gerald Pfeifer
4fd8beccea Update to the 20110129 snapshot of GCC 4.6.0.
Feature safe:	yes
2011-01-30 00:22:02 +00:00
Gerald Pfeifer
5e7d7b7752 Update to the 20110122 snapshot of GCC 4.6.0. Among others, this
improves GOMP support on FreeBSD with a patch of mine to resolve
linking issues.

Feature safe:	yes
2011-01-23 19:49:18 +00:00
Gerald Pfeifer
dc33feb387 Update to the 20110115 snapshot of GCC 4.6.0.
Provide more background on the need to use --disable-rpath as a workaround.

Feature safe:	yes
2011-01-16 17:02:55 +00:00
Gerald Pfeifer
ce5b2a98e0 Update to the 20110108 snapshot of GCC 4.6.0.
Feature safe:	yes
2011-01-15 00:42:59 +00:00
Gerald Pfeifer
8e43937955 Update to the 20110101 snapshot of GCC 4.6.0. 2011-01-02 11:35:10 +00:00
Gerald Pfeifer
f3997da48a Update to the 20101225 snapshot of GCC 4.6.0. This addresses the
original pollution of include file namespace around libquadmath and
adds a GNU info file for libquadmath.
2010-12-26 20:55:59 +00:00
Gerald Pfeifer
8842b06c1f Update to the 20101127 snapshot of GCC 4.6.0. 2010-11-28 19:51:46 +00:00
Gerald Pfeifer
190aae9821 Update to the 20101120 snapshot of GCC 4.6.0. This brings libquadmath
(better support for 128 bit floating point types, which for now poisons
global include file namespace though this won't be an issue before GCC
4.7 and I have reported it upstream).
2010-11-22 05:45:17 +00:00
Gerald Pfeifer
92ee92f419 Update to the 20101113 snapshot of GCC 4.6.0. 2010-11-14 18:56:07 +00:00
Gerald Pfeifer
6941b9740b Update to the 20101106 snapshot of GCC 4.6.0. 2010-11-07 00:53:48 +00:00
Gerald Pfeifer
bb5b02aa03 Update to the 20101030 snapshot of GCC 4.6.0.
Look ma', no more MD5 distinfo.
2010-10-31 13:56:38 +00:00
Gerald Pfeifer
4e1ea4476d Update to the 20101023 snapshot of GCC 4.6.0. This removes the gccbug
script which had allowed submitting bugs like send-pr in FreeBSD.
2010-10-24 15:19:27 +00:00
Gerald Pfeifer
271c5d98b2 Update to the 20101016 snapshot of GCC 4.6.0. 2010-10-17 01:03:56 +00:00
Gerald Pfeifer
15578672e2 Update to the 20101009 snapshot of GCC 4.6.0. 2010-10-11 13:58:37 +00:00
Gerald Pfeifer
82991fc4a8 Replace the explicit build dependency on devel/binutils by USE_BINUTILS.
Submitted by:	bf
2010-09-27 21:45:10 +00:00
Gerald Pfeifer
048988212e Fix a small whitespace issue in OPTIONS. 2010-09-27 14:09:43 +00:00
Gerald Pfeifer
b6046188a5 Update to the 20100925 snapshot of GCC 4.6.0. 2010-09-26 14:36:29 +00:00
Gerald Pfeifer
35fcb2e31c Update to the 20100918 snapshot of GCC 4.6.0 which now defaults to i486
architecture support on i386 thanks to a patch by tijl.
2010-09-19 11:21:03 +00:00
Gerald Pfeifer
901b86a525 Update to the 20100911 snapshot of GCC 4.6.0. This brings one fix for
FreeBSD/ia64 that I made upstream and together with another, which is a
local patch for now, ia64 can become part of ONLY_FOR_ARCHS.
2010-09-12 01:18:02 +00:00
Gerald Pfeifer
e79703d16b Update to the 20100904 snapshot of GCC 4.6.0. This brings first support
for _float128 on i386 and proper symbol versioning for libgcc.
2010-09-05 18:21:17 +00:00
Gerald Pfeifer
7c4a6df8e8 Similar to lang/gcc45, add a new option LTO that enables GCC's new
link-time optimization framework and optimizations.  GCC 4.6 has been
seeing a lot of work since GCC 4.5, but we are still keeping this
disable by default for now

Using LTO adds libelf as a new dependency and in either case the
environment does not have an influence any more.  Bumping PORTREVISION
since someone who had libelf on his system previously to this change
would get LTO enabled automatically and then run into problems if libelf
was removed.
2010-09-04 23:57:26 +00:00
Gerald Pfeifer
7b52717ff1 Update to the 20100828 snapshot of GCC 4.6.0. 2010-08-29 17:32:45 +00:00
Gerald Pfeifer
31f3ee2fd6 Update to the 20100821 snapshot of GCC 4.6.0. This now really does not
work with the ancient version of GNU as that is part of FreeBSD 8.1 and
earlier (and likely later), so where the dependency this port has on
devel/binutils was a strong recommendation until now and necessary to
leverage new processor features and the -mtune=native option when running
on those newer processors, it is now strictly needed on x86-64 at least.
2010-08-22 22:05:00 +00:00
Gerald Pfeifer
ca9c52d95b Update to the 20100814 snapshot of GCC 4.6.0.
Replace NOT_FOR_ARCHS by ONLY_FOR_ARCHS. [1]

Suggested by:	linimon
2010-08-20 21:40:27 +00:00
Gerald Pfeifer
fa902a4cff Update to the 20100807 snapshot of GCC 4.6.0. 2010-08-08 09:38:08 +00:00
Gerald Pfeifer
1c01639dd2 Update to the 20100724 snapshot of GCC 4.6.0. 2010-07-25 07:17:02 +00:00
Gerald Pfeifer
8a410ee27a Update to the 20100717 snapshot of GCC 4.6.0.
Feature safe:	yes
2010-07-18 19:16:22 +00:00
Gerald Pfeifer
36315f2bad Update to the 20100710 snapshot of GCC 4.6.0.
Feature safe:	yes
2010-07-11 00:24:07 +00:00
Gerald Pfeifer
d33be83082 Update to the 20100703 snapshot of GCC 4.6.0.
Feature safe:	yes
2010-07-05 11:59:23 +00:00
Gerald Pfeifer
9969d02e7f Update to the 20100626 snapshot of GCC 4.6.0.
Make Java support an OPTION (JAVA) so it is easier to deselect. [1]

Suggested by:	doubg [1]
Feature safe:	yes
2010-06-27 14:24:03 +00:00
Gerald Pfeifer
4f20e044b8 Simplify full-regression-test.
Feature safe:	yes
2010-06-27 11:48:58 +00:00
Gerald Pfeifer
56afb17497 Update to the 20100619 snapshot of GCC 4.6.0.
Feature safe:	yes
2010-06-20 00:05:49 +00:00
Gerald Pfeifer
e6b01689af Update to the 20100612 snapshot of GCC 4.6.0. 2010-06-13 10:26:04 +00:00
Alex Dupre
8cbf48bd4b Chase mpfr library and bump PORTREVISION. 2010-06-11 15:09:45 +00:00
Gerald Pfeifer
ea892dd343 Update to the 20100605 snapshot of GCC 4.6.0. 2010-06-06 01:32:03 +00:00
Gerald Pfeifer
bdbd922d4c Update to the 20100529 snapshot of GCC 4.6.0. 2010-05-30 01:40:07 +00:00
Gerald Pfeifer
856fde3123 Update to the 20100515 snapshot of GCC 4.6.0. 2010-05-22 12:50:17 +00:00
Gerald Pfeifer
c6d8eefda3 Adjust references to the GCC version to refer to 4.6.
Reported by:	Eitan Adler <eitanadlerlist@gmail.com>
2010-05-07 18:30:06 +00:00
Gerald Pfeifer
c50386b36c Update to the 20100501 snapshot of GCC 4.6.0. 2010-05-02 14:00:34 +00:00
Gerald Pfeifer
52014a4f79 Complete the creation of this port by adjusting it from GCC 4.5 to the
20100424 snapshot of GCC 4.6.0, which is a very, very early version of
said release which likely won't happen before 2011.
2010-04-25 23:46:25 +00:00
Gerald Pfeifer
2e31813548 Update to the 20100422 snapshot of GCC 4.5.1. 2010-04-24 20:30:12 +00:00
Alex Dupre
bf330a57d4 Switch to use newer GMP version.
PR:		ports/144487
Submitted by:	ale
Approved by:	portmgr (-exp run by erwin)
2010-04-19 10:43:42 +00:00
Gerald Pfeifer
8c421f7736 Update to the 20100415 snapshot of GCC 4.5.1. This is basically the
official release of GCC 4.5.0, thought that one may still have some
kinks and I recommend staying with GCC 4.4 for production use.
2010-04-18 16:46:04 +00:00
Gerald Pfeifer
89f3bc2de9 Update to the 20100401 snapshot of GCC 4.5.0. 2010-04-02 09:15:48 +00:00
Gerald Pfeifer
ee595a0fca Update to the 20100318 snapshot of GCC 4.5.0. 2010-03-19 14:14:59 +00:00
Gerald Pfeifer
dbd9718352 Update to the 20100311 snapshot of GCC 4.5.0. 2010-03-12 22:32:31 +00:00
Gerald Pfeifer
447b296058 Update to the 20100304 snapshot of GCC 4.5.0. 2010-03-07 19:37:30 +00:00
Gerald Pfeifer
c62fce54e7 Update to the 20100225 snapshot of GCC 4.5.0.
Feature safe:	yes
2010-02-27 12:01:02 +00:00
Gerald Pfeifer
ef913d8c00 Update to the 20100218 snapshot of GCC 4.5.0.
Feature safe:	yes
2010-02-19 14:37:03 +00:00
Gerald Pfeifer
a106f1ad32 Update to the 20100211 snapshot of GCC 4.5.0. 2010-02-14 14:08:53 +00:00
Gerald Pfeifer
02e0c9b4e0 Update to the 20100204 snapshot of GCC 4.5.0. 2010-02-05 20:05:15 +00:00
Gerald Pfeifer
77a4067ded Update to the 20100128 snapshot of GCC 4.5.0. 2010-02-02 09:57:16 +00:00
Gerald Pfeifer
314eb0b207 Also build Java on amd64.
Submitted by:	Andreas Tobler <andreast@fgznet.ch>
2010-01-21 17:01:40 +00:00
Gerald Pfeifer
199bdcb0af Update to the 20100114 snapshot of GCC 4.5.0.
Since we already require devel/binutils for the assembler, also enforce
use of the linker from there.
2010-01-17 14:14:28 +00:00
Gerald Pfeifer
530cf0c9cb Update to the 20100107 snapshot of GCC 4.5.0. 2010-01-08 08:28:15 +00:00
Gerald Pfeifer
66f47d5717 Update to the 20091231 snapshot of GCC 4.5.0 which brings some key
improvements to libffi (Java), especially on amd64.

Remove the WITH_JAVA_AWT knob which really has not been used a lot,
if at all.
2010-01-02 10:05:49 +00:00
Gerald Pfeifer
81416ae21a Update to the 20091224 snapshot of GCC 4.5.0. On the way, sort pkg-plist
a bit differently.
2009-12-28 11:39:48 +00:00
Gerald Pfeifer
372497c64b Update to the 20091217 snapshot of GCC 4.5.0. 2009-12-19 06:58:45 +00:00
Gerald Pfeifer
61c6070cab Use current GNU binutils from ports (devel/binutils) instead of the
system tools.  The latter are half a decade old and fail to properly
support modern CPUs and their standard features such as SSE or AVX in
the case of AMD64/Intel64 which means that they even break when using
a simple -march=native.

On the way, sort CONFIGURE_ARGS.

PR:		140995, 136607
2009-12-01 11:36:59 +00:00