333 Commits

Author SHA1 Message Date
Joseph R. Prostko
e2c280b8f7 Lower optimization level for building jam
* This changes the optimization level from -O3 to -O
* This will prevent segfaults when creating jam via the Makefile on FreeBSD
* Benchmarking was done, and there seems to be no negative performance impact
* Another option would be -O3 -fno-strict-aliasing, but this has no noticeable benefit over -O
btrev43037
2012-10-12 20:40:25 -04:00
Joseph R. Prostko
9b386978f4 Update from GCC 4.6.2 to 4.6.3 for R1A4
* This update resolves the segfault/ICE in gcc/c-parser.c while building natively
* gcc/gengtype.c was already updated to GCC 4.6.3 version previously in btrev43031, so no change there
* gcc/libiberty/make-relative-prefix is the stock 4.6.3 version now, as the workaround for Haiku is no longer needed
* This update is otherwise the GCC patches for upgrading 4.6.2 to 4.6.3 core/g++ applied to our sources
btrev43036
2012-10-12 20:14:32 -04:00
Joseph R. Prostko
0208757700 Bump date versioning for GCC 2.95.3 for R1A4 release btrev43035 2012-10-12 19:51:37 -04:00
Joseph R. Prostko
6e2e3b1e92 Make build-gcc4-optional-package-Haiku.sh executable btrev43034 2012-10-11 20:15:50 -04:00
Alex Smith
abe2582c05 Corrected x86_64 target in build-gcc4-optional-package-Haiku.sh. btrev43033 2012-08-11 18:23:23 +01:00
Alex Smith
8fe25aaeb4 Fixed x86_64 GCC configuration issue resulting in an incorrect crtend.o.
Some necessary CFLAGS were not being used when compiling crtbegin.o and
crtend.o, resulting in warnings when linking shared objects.
btrev43032
2012-07-18 15:06:45 +01:00
Alexander von Gluck IV
2dc19755cc gcc: Avoid out-of-scope access of newv.
* Cherry-picked regression fix from gcc 4.6 mainline
* Simple 2 line change.
* GCC 4.7+ compiling gcc 4.6 would fail
* GCC bug 51969
* Fix was added to gcc 4.6-mainline via rev 184239
* Resolves #8470
btrev43031
2012-04-14 12:14:37 -05:00
Alex Smith
cc75156e51 Updated the x86_64 toolchain to fix build failures and to be more correct.
* A build failure occurs as TARGET_64BIT is no longer a compile-time
  constant in GCC.
* Made some changes so that generated code matches the i386 Haiku target when
  generating 32-bit code, and follows the x86_64 ABI for 64-bit code.
* Added a comment stating that DEFAULT_PCC_STRUCT_RETURN needs to be defined
  to follow the ABI for 32-bit code, it is ignored for 64-bit.
* Remove definition of __x86_64__, already defined by GCC's i386-c.c.
* Remove -z max-page-size from LINK_SPEC as it shouldn't be necessary: the
  default page size is 2MB but this won't result in large binaries, it just
  changes the alignment of the sections and would make it easier to map
  binaries using large pages in the future.

Signed-off-by: Ingo Weinhold <ingo_weinhold@gmx.de>
btrev43030
2012-04-05 12:49:49 +02:00
Jerome Duval
5bdd342ffa gcc: ASM_COMMENT_START shouldn't be defined at the OS level.
* arm: ASM_COMMENT_START is defined in arm/aout.h.
* i386 and x86_64: define ASM_COMMENT_START.
* others: ASM_COMMENT_START is defined in ${arch}/${arch}.h.
btrev43029
2012-03-31 17:43:19 +02:00
Jérôme Duval
e9b8ca373a updated optional package build script for gcc4 to make a cross compiler.
* --arch sets the target arch, defaults to x86
* --source-dir sets the Haiku root directory for headers.
* tested with ppc.
btrev43028
2012-03-18 15:31:41 +01:00
Jérôme Duval
a2012848e3 Fix arm regression since 4.6
* a part of arm/bpabi.h was moved to ../../libgcc/config/arm/bpabi-lib.h
* reference this new header.
btrev43027
2012-01-22 11:55:38 +01:00
Jerome Duval
4c871ab97b updated gcc4 optional package build script
* add --enable-frame-pointer as this isn't default for x86 any more
* use install-strip instead of install
* updated optional package description
btrev43026
2012-01-22 02:26:38 +00:00
Jérôme Duval
8bfdd26cf9 Get rid of svr4 for powerpc too, it's now deprecated. btrev43025 2012-01-19 21:52:27 +01:00
Jérôme Duval
17b69b54d1 Merge commit '4.6.2'
Conflicts:
	gcc/gcc/configure
btrev43024
2012-01-07 16:59:47 +01:00
Jérôme Duval
0a01235971 import of gcc 4.6.2 (core and g++ only). 2012-01-07 16:48:31 +01:00
Jérôme Duval
5cceb123aa Merge commit '4.5.3' 2012-01-07 16:45:05 +01:00
Jérôme Duval
9507ae2782 import of gcc 4.5.3 (core and g++ only). 2012-01-07 16:44:13 +01:00
Jérôme Duval
d534b97c8b binutils: fix out of tree building with syslex regens
If you take a release tarball (which has pregenerated syslex and sysinfo files
	in it), apply some patches which touch syslex.l, and then build the result out
	of tree, it will fail.  This is because syslex.l uses sysinfo.h, but the
	sysinfo.y file wasn't updated and so it wasn't regenerated (the files are found
	in the $srcdir), and the build rule for syslex.c does not use -I$(srcdir) when
	it finds a local file.  Simple fix below.

	Signed-off-by: Mike Frysinger <vapier@gentoo.org>
btrev43023
2012-01-06 21:29:10 +01:00
Jérôme Duval
371dda4618 Fix merge of binutils 2.22. Sorry for the noise. 2012-01-06 21:08:28 +01:00
Jérôme Duval
e80b1623ba Missing files for binutils 2.22 2012-01-06 20:25:50 +01:00
Jérôme Duval
192c9480a6 Fix the merge of binutils 2.22, sorry for the noise. 2012-01-06 20:21:47 +01:00
Jérôme Duval
1e198b669a Merge binutils 2.22 btrev43022 2012-01-06 00:20:08 +01:00
Jérôme Duval
54b66b3b47 import binutils 2.19 2012-01-06 00:11:05 +01:00
Jérôme Duval
6f0effcf54 import binutils 2.22 2012-01-05 22:46:40 +01:00
Jérôme Duval
4cc942491d import binutils 2.19 2012-01-05 22:33:17 +01:00
Jérôme Duval
30bb6f454f Get rid of svr4, it will be deprecated in 4.6 btrev43021 2012-01-02 22:11:40 +01:00
Matt Madia
18f073d8bf Bumped up the VERSION and made JAMVERSYM identical to it. btrev43020 2011-12-22 21:55:54 +00:00
Matt Madia
9ceedecc39 Created new jam variable JAMJOBS, which is set by the -jx flag. 2011-12-22 21:54:22 +00:00
Matt Madia
ed5b974772 Automatic whitespace cleanup. No functional change. 2011-12-22 21:51:29 +00:00
Oliver Tappe
d6fd401aa3 Fix use of non-existent variable (GCCDATE instead of gccDate). btrev43019 2011-12-15 11:41:15 +01:00
Fredrik Holmqvist
e310d205fb Add Haiku to list of elf-target so that is_elf is true.
This enables --enable-gold flag to be used (doesn't compile yet though).
The gold linker promises up to five times faster linking than ld, it is also possible to use link-time optimizations.
btrev43018
2011-12-03 10:14:13 +01:00
Oliver Tappe
68d377c247 Improve build-gcc2-optional-package.sh:
* automatically build the compiler if it doesn't exist yet
* protect against unneeded cruft breaking the build
btrev43017
2011-11-23 16:49:35 +00:00
Oliver Tappe
5abab92edf Bump legacy compiler version. 2011-11-22 18:59:35 +01:00
Oliver Tappe
073cb9127c Define __STDC_ISO_10646__ in our gccs.
* define __STDC_ISO_10646__ to '201103' in order to indicate that
  Haiku's wchar_t supports the Universal Character Set (UCS) defined
  by the ISO 10646 standard published in March 2011.
btrev43016
2011-11-19 16:45:49 +01:00
Matt Madia
ef37057d92 Prevent fixing the includes.
Forcibly prevent fixinclude from executing. This prevents the spawning of a
shell process, which would be abandoned due to fixinc crashing.

Submitted By: BLFS Book <blfs-book@linuxfromscratch.org>
Date: 2003-10-05
Initial Package Version: 2.95.3
Origin: BLFS Book
http://www.linuxfromscratch.org/blfs/view/5.1/general/gcc2.html
btrev43015
2011-11-16 18:01:03 -05:00
Oliver Tappe
41126db379 Add more generated files of legacy gcc to .gitignore btrev43014 2011-11-12 21:08:15 +01:00
Oliver Tappe
7f3fb010ff Add autom4te.cache to .gitignore btrev43013 2011-11-12 20:32:54 +01:00
Oliver Tappe
af2683a443 Drop another .info target that triggers invocation of makeinfo. btrev43012 2011-11-12 20:08:56 +01:00
Oliver Tappe
5a389649c8 Drop obsolete documentation on building as cross compiler for BeOS btrev43011 2011-11-12 19:15:07 +01:00
Oliver Tappe
17e8ac5852 Cleanup gcc4 buildtools a bit:
* replace gmp.info-? in gcc/gmp/doc by gmp.info, since the latter
  is the makeinfo target that will otherwise have to be generated
  each time gcc4 is built
* add autom4te.cache to svn:ignore

git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@43010 a95241bf-73f2-0310-859d-f6bbb57e9c96
btrev43010
2011-10-30 19:29:14 +00:00
Oliver Tappe
32fb726909 Trying to fix #8063 (failure to build gcc2 when updating info files):
* remove all *.info targets so the gcc2 build system doesn't
  try to update them, as that doesn't always work because of
  apparent incompatibilities with newer makeinfo versions


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@42999 a95241bf-73f2-0310-859d-f6bbb57e9c96
btrev42999
2011-10-30 14:10:55 +00:00
Scott McCreary
94b8b639d8 Update gcc4 install instructions to reflect change to 4.5
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@42529 a95241bf-73f2-0310-859d-f6bbb57e9c96
btrev42529
2011-08-01 01:39:39 +00:00
Jérôme Duval
44943b14a0 Merging GCC 4.5.3 in trunk. Patch in #6840 is required to build Haiku.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@42247 a95241bf-73f2-0310-859d-f6bbb57e9c96
btrev42247
2011-06-19 17:36:26 +00:00
Jérôme Duval
3c24538123 Adding inline mpc directory so the MPC library is built as part of GCC 4.5
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@42242 a95241bf-73f2-0310-859d-f6bbb57e9c96
btrev42242
2011-06-19 13:22:38 +00:00
Fredrik Holmqvist
96ef6353b0 Make the ..patience.. count comparison postinc so it shows one at the start and use every 10k target instead.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@41296 a95241bf-73f2-0310-859d-f6bbb57e9c96
btrev41296
2011-05-01 12:18:17 +00:00
Fredrik Holmqvist
7982f87b1e Only write "...patience..." every 5000th target instead of 1000th.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@41295 a95241bf-73f2-0310-859d-f6bbb57e9c96
btrev41295
2011-05-01 12:09:05 +00:00
Fredrik Holmqvist
7a4d04f795 Disabled the "..skipped x for lack of y..." message as it is not very useful information and hides the interesting info in noise (why it failed).
It should probably be a command line option as it might be interesting in some cases.
Also added a "Build Failure" at the end if there were failed targets.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@41294 a95241bf-73f2-0310-859d-f6bbb57e9c96
btrev41294
2011-05-01 11:34:52 +00:00
Oliver Tappe
e62f027fec circumvent strange problems during build of gprof ('no objective-c compiler found') caused by our current make version (3.82)
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@40648 a95241bf-73f2-0310-859d-f6bbb57e9c96
btrev40648
2011-02-23 22:31:44 +00:00
Jérôme Duval
a348441958 changes to match what got used by upstream in 4.5
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@40618 a95241bf-73f2-0310-859d-f6bbb57e9c96
btrev40618
2011-02-22 18:20:36 +00:00
Ingo Weinhold
8116a5d9ff Merged gcc4-weak-symbols branch.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@39570 a95241bf-73f2-0310-859d-f6bbb57e9c96
btrev39570
2010-11-22 13:03:49 +00:00