155 Commits

Author SHA1 Message Date
Jérôme Duval
514f593381 import gcc 4.8.4 2014-12-21 12:08:20 +01:00
Jérôme Duval
3b2e5a8b24 import gcc 4.8.3 2014-05-27 22:33:21 +02:00
Jérôme Duval
ec21a8f0b8 import gcc 4.8.2 2014-01-21 21:04:08 +01:00
Jérôme Duval
3793707eda import gcc 4.8.1 2013-06-05 18:35:38 +02:00
Jérôme Duval
e9f3433e73 import gcc 4.7.3 2013-04-23 18:39:47 +02:00
Jerome Duval
8e92ab0deb import gcc 4.6.4 2013-04-19 21:13:03 +02:00
Jerome Duval
86fff94921 import gcc 4.6.3 2013-04-19 20:57:06 +02:00
Alexander von Gluck IV
7b651beab7 gcc: Fix build breakage with latest texinfo
* Texinfo 5.0 and later have issues building
  gcc due to a behaviour change.
* Resolves #9483
2013-02-25 21:50:39 -06:00
Ithamar R. Adema
85c4a8cee1 ARM/gcc4: fixup ARM configuration to more closely match x86
Turned out that our ARM gcc4 build used short-enum's, which made
our build fail (specifically, src/kits/tracker/ViewState.cpp:122).

Thanks to Landon Fuller and Oliver Tappe for helping me figure
the fix out!
2012-11-22 20:06:49 +01:00
Joseph R. Prostko
6be228270a Add gnu directory back to INCLUDE_DEFAULTS
* Done for both GCC2 and GCC4 buildtools
* Due to this change, hrev44719 will be reverted once new optional packages are built
2012-10-31 23:43:01 -04:00
Joseph R. Prostko
a17bb71c16 Replace outdated paths in buildtools
* Replace /boot/beos/system/lib with /boot/system/lib
* Performed on configure and libtool.m4 files, as well as patches
2012-10-31 10:33:57 -04:00
Joseph R. Prostko
1272855227 Remove outdated fix for O_BINARY / O_TEXT in Haiku
* O_BINARY and O_TEXT were removed from Haiku way back in hrev38962
* This patch removes the fix that used to unset those flags
* Now gcc/intl/loadmsgcat.c is back to the GCC 4.6.3 stock file
Thanks diger for noticing the previously needed fix was still in place unintentionally
2012-10-19 17:13:07 -04:00
Joseph R. Prostko
9ff1e151e8 Address issue with building code that relies on SSP
* -lssp_nonshared being passed at link time was resulting in multiple definition errors
* Apps such as Perl and CUPS would fail to build due to this
* This should alleviate the problem when -fstack-protector or -fstack-protector-all are used
Thanks to diger for letting me know of this issue and making me aware of a fix
2012-10-17 08:02:30 -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
2012-10-12 20:14:32 -04: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.
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
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>
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.
2012-03-31 17:43:19 +02: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.
2012-01-22 11:55:38 +01:00
Jérôme Duval
8bfdd26cf9 Get rid of svr4 for powerpc too, it's now deprecated. 2012-01-19 21:52:27 +01:00
Jérôme Duval
17b69b54d1 Merge commit '4.6.2'
Conflicts:
	gcc/gcc/configure
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
9507ae2782 import of gcc 4.5.3 (core and g++ only). 2012-01-07 16:44:13 +01:00
Jérôme Duval
30bb6f454f Get rid of svr4, it will be deprecated in 4.6 2012-01-02 22:11:40 +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.
2011-11-19 16:45:49 +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
2011-10-30 19:29:14 +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
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
2011-06-19 13:22:38 +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
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
2010-11-22 13:03:49 +00:00
Oliver Tappe
215ca35bee * revert 37775, as the define has a wrong value and it's probably better to do
stuff like this somewhere in our libc headers.

git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@37779 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-27 21:38:26 +00:00
Oliver Tappe
735af2d623 * added standard define __STDC_ISO_10646__ to all compiler configurations,
indicating that haiku uses ISO_10646 in wchar_t (in our case: UTF-32)


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@37775 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-27 19:20:25 +00:00
Ingo Weinhold
b363ec1bd9 Patch by Nathan Mentley: Fixed multilib generation for x86-64.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@37521 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-14 22:59:18 +00:00
Jérôme Duval
8fa2cab40f * gmp-impl.h and longlong.h headers are needed at each stage of the mpfr build.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@37382 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-03 23:44:21 +00:00
Jérôme Duval
72633b4c27 Don't define ssize_t for Haiku in GCC4, the next commit will define it in Haiku headers (see also #5719).
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@37379 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-03 16:37:44 +00:00
Jérôme Duval
b58ddff026 * modified gcc Makefile.in to copy gmp-impl.h and longlong.h headers to build gmp directory (see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44455 ).
* merged mpfr 3.0.0 and gmp 5.0.1 in buildtools trunk


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@37378 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-03 15:21:01 +00:00
Jérôme Duval
5904152eeb Merging GCC 4.4.4 in trunk.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@37371 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-03 11:11:20 +00:00
Ingo Weinhold
3df1e72ed0 Patch by Nathan Mentley: Added initial support for Haiku x86_64.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@36793 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-11 19:33:44 +00:00
Ingo Weinhold
5998536b29 The "cpp" header directory should only be included in C++ mode. Should fix
#5630 once the gcc optional packages have been rebuilt.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@36354 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-19 15:35:39 +00:00
Matt Madia
f96860a35e Changes the setting of M4 to =m4. Allows Python on linux to successfully
compile the buildtools. Fixes #5561


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@35831 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-12 22:06:19 +00:00
François Revol
89726009be Patch by Johannes Wischert: Force a check for the need for long long for arm target. This should fix building the crosstools for arm on 32bit hosts.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@34916 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-06 13:37:08 +00:00
Oliver Tappe
a1532d3621 * added workaround to gcc4 configuration that makes the comparison
of stage2 and stage3 compilers work on haiku (using objdump instead
  of cmp, as suggested by Michael)


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@32475 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-17 18:20:12 +00:00
François Revol
09a4a7d36c [ARM] [GSoC] François Revol + Johannes Wischert:
- add missing bits needed to use EABI by default (which should be == AAPCS == BPABI if I understood it right),
	- include t-bpabi and bpabi.h,
	- added an arm/t-haiku and arm/haiku.h to correct back some stuff after them as is done for linux,
- add multilib variants for softfloat (for xscale) and softfp (AAPCS),
- undo the LIBGCC_SPEC override for arm, it might have been the cause of multilib not working, not sure,
- make armv6 default target.
This allows building for both overo and verdex boards with some mods, though it emits calls to exception unwinding stuff that requires some more symbols (like abort), and should probably be fixed some other way.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@32237 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-11 02:07:15 +00:00
Oliver Tappe
03890535ff * merged 32bit-wchar_t branches of buildtools and haiku back into
the respective trunk

git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@31443 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-07 10:30:09 +00:00
François Revol
40ef888cfd Remove USE_GAS as for other platforms since it's deprecated, as suggested by umccullough, please shout if it breaks anything.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@30931 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-30 19:27:42 +00:00
Jérôme Duval
093b4f688a Applied patch for arm haiku target from Johannes Wischert (bug #3633)
The cross tools build still needs the arm specific headers in Haiku to complete (bug #3763)


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@30652 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-06 20:34:18 +00:00
Jonas Sundström
257de42932 Tweaks. Removing superflous config. Cleaner and closer to defaults, hopefully.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@30580 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-02 18:20:14 +00:00
Jonas Sundström
fe3d3406e8 The define __BEOS__ is not relevant to Haiku.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@30536 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-01 15:23:48 +00:00
Jonas Sundström
4df3ecf7d0 Adding mipsel-unknown-haiku. Work in progress. Correctness uncertain. Especially gcc/gcc/config/mips/haiku.h. Inspired by the other Haiku targets x86/ppc/arm.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@30534 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-01 14:42:51 +00:00
Michael Lotz
5d242e9e05 Add the -no-undefined flag only for non-shared objects as before, i.e. shared
libraries are allowed to use undefined symbols.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29490 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-13 15:42:32 +00:00