Commit Graph

312 Commits

Author SHA1 Message Date
Jérôme Duval
7c3622a5de gcc: rest clean up after 15ab9ca51d. 2015-07-30 18:57:17 +02:00
Jérôme Duval
03e3047c8a gcc: don't define JCR_SECTION_NAME when TARGET_NO_JCR_SECTION_NAME.
We define TARGET_NO_JCR_SECTION_NAME in haiku.h and remove the hack in
defaults.h. Depending on __HAIKU__ at this place isn't correct.
2015-07-25 23:32:16 +02:00
Jérôme Duval
cd374ba049 gcc: clean up after 15ab9ca51d. 2015-07-25 21:06:48 +02:00
haiqu
15ab9ca51d MIPS: Fix cross-tools build.
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2015-07-25 10:40:49 -04:00
Jérôme Duval
52fa22bd84 gcc: sync configure.ac with configure and regen. 2015-07-22 19:32:23 +02:00
Jérôme Duval
3801b878c2 Merge gcc 4.8.5 2015-07-11 09:17:00 +02:00
Jérôme Duval
a1af220a6f import gcc 4.8.5 2015-07-11 09:14:42 +02:00
François Revol
5ba2e24764 gcc: fix PPC LINK_SPEC so bootstrapping gcc works again
Same fix as btrev43088: turn off -no-undefined for -shared and -nostart.
2015-04-20 16:57:25 +02:00
François Revol
519355391e gcc: force -fPIC instead of -fpic by default on ppc
Works around "relocation truncated to fit: R_PPC_GOT16 against symbol" issue
mentioned in #10240. PIC uses a larger GOT which doesn't overflow, unlike pic.
2015-04-20 03:06:37 +02:00
François Revol
c5588ee1b4 gcc: update ppc linker emulation name 2015-04-20 00:11:14 +02:00
Jérôme Duval
1a00a76b58 Merge gcc 4.8.4 2014-12-21 12:11:47 +01:00
Jérôme Duval
514f593381 import gcc 4.8.4 2014-12-21 12:08:20 +01:00
Jessica Hamilton
c700a4fe64 Don't switch on -shared if the user specifies -r.
* Follow up to btrev43090, to include platforms missed in
  original commit.
2014-10-13 04:15:32 +00:00
Nick Smallbone
aeb1fcf62f Don't switch on -shared if the user specifies -r
Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
2014-10-04 14:41:05 +13:00
Ithamar R. Adema
6f9a8fa02b ARM/gcc: make LINK_SPEC match our other platforms.
It looks like shared/nostart was not properly handled. These changes
were copied from the x86_64 specs.
2014-08-21 16:41:43 +02:00
Oliver Tappe
4947d64591 Fix build failure on m68k and powerpc. 2014-07-26 19:50:18 +02:00
Oliver Tappe
ec31cc6bfc Explicitly link libgcc and cleanup search paths.
* Adjust the libgcc spec to actually link against libgcc explicitly
  (it is no longer included in libroot.so on anything except x86_gcc2).
* Apply --as-needed when linking against libgcc_s.so
* Drop search paths that no longer exist (/boot/common/...).
2014-07-23 09:18:18 +02:00
Oliver Tappe
affbe90c4c Apply shared-library-related fixes to libtool.m4, too. 2014-07-22 17:07:52 +02:00
Oliver Tappe
9f6654f4a8 Use crtbeginS.o and crtendS.o for everything.
* The glue code files crtbegin.o and crtend.o don't cleanup globals
  properly, only the variants with the S suffix do. As executables are
  shared on Haiku, we use crtbeginS.o and crtendS.o for those, too.

This fixes crashes on shutdown of Haiku servers that load add-ons (e.g.
Print Server and Media Add-On Server).
2014-07-22 17:07:45 +02:00
Oliver Tappe
cece7c2f4b Fix configuration of libstdc++.
* The configure script for libstdc++ contained a couple of duplicate
  'haiku*' case entries, where the first would shadow the second.
* Correct several incorrect libtool definitions and paths.
2014-07-21 13:08:15 +02:00
Oliver Tappe
7579cd6798 Set missing executable flag on libgcc/configure. 2014-07-21 12:04:06 +02:00
Oliver Tappe
cb83cf1ca3 Adjust configuration for gcc/libgcc.
* Gcc will now build libgcc.a, libgcc_eh.a and libgcc_s.so.
* Activate thread support for libgcc.
* Let libgcc use ELF dwarf2 unwinding on Haiku.
* Activate ELF symbol versioning on Haiku.
* Activate use of __cxa_atexit
* Drop fragments of Haiku support for mipsel
2014-07-21 12:03:51 +02:00
Jonathan Schleifer
17ba980278 Fix libstdc++ not using TLS when cross compiling 2014-07-19 23:04:37 +02:00
John Scipione
9d26d59ebc Remove trailing space in comment 2014-07-11 12:04:57 -04:00
Pawel Dziepak
3ad9ac2317 gcc: define [u]int*_t types 2014-05-28 02:02:01 +02:00
Jérôme Duval
c7a34f3d45 Merge gcc 4.8.3 2014-05-27 22:35:02 +02:00
Jérôme Duval
3b2e5a8b24 import gcc 4.8.3 2014-05-27 22:33:21 +02:00
Ithamar R. Adema
02dff6efa8 gcc/arm: include driver-arm.c for Haiku/ARM too
This was only done for Linux/ARM builds, but we need it to (otherwise
we'll get linker errors for several functions).
2014-02-17 14:12:52 +01:00
Jérôme Duval
78fb24b8ff gcc:libstdc++-v3: added a config os directory for Haiku.
* copied the generic config and added os_defines to enable time support
without link tests when cross compiling.
* os_defines definitions are disabled for _KERNEL_MODE and _LOADER_MODE.
2014-02-05 23:34:52 +01:00
Jérôme Duval
37f5f1b71f gcc: define GOMP_SELF_SPECS for Haiku.
* avoids -lpthread when using -fopenmp.
2014-02-01 14:09:38 +01:00
Jérôme Duval
6121739fdd gcc: fixed m68k build. 2014-01-28 22:01:22 +01:00
Jérôme Duval
a283dac41e libgcc: revision 200390 from trunk by Chung-Ju Wu.
* Makefile.in (clean, distclean): Remove auto-target.h and stamp-h
correctly.
2014-01-26 18:57:43 +01:00
Jérôme Duval
f34aded965 libgcc: Maintain the same visibility as older GCC for now. Needed
because the static library is included in libroot.so.
2014-01-26 17:46:36 +01:00
Jérôme Duval
19d03df1eb Merge gcc 4.8.2
Conflicts:
	gcc/ChangeLog
	gcc/configure
	gcc/configure.ac
	gcc/gcc/config.gcc
	gcc/gcc/configure
	gcc/gcc/configure.ac
	gcc/libcpp/configure
	gcc/libcpp/configure.ac
	gcc/libgcc/Makefile.in
	gcc/libgcc/config.host
2014-01-22 17:53:50 +01:00
Jérôme Duval
ec21a8f0b8 import gcc 4.8.2 2014-01-21 21:04:08 +01:00
Alexander von Gluck IV
6126596774 gcc: Reduce header search paths to only required
* As per the mailing list discussions.
* Only include the kit header paths that are
  currently external
2014-01-16 09:38:48 -06:00
Alexander von Gluck IV
fd576c8d8a gcc: Adjust gcc header search paths
* Drop /boot/common header paths
  I don't think pre-pm haiku will build anyway
  without using an older buildtools.
* Add secondary arch os header directories.
  Anything secondary arch that provides os
  headers will break without the proper search
  paths in gcc.
* Fixes secondary packages that depend on the
  OpenGL kit
2014-01-14 17:52:48 -06:00
Ingo Weinhold
6d82b40597 Merge branch 'package-management' 2013-09-27 01:54:26 +02:00
Ingo Weinhold
b98135ed3a gcc 4: Fix the library search paths
Due to the use of STARTFILE_PREFIX_SPEC the path containing the
libraries gcc provides (libstdc++ and friends) was missing. So
revert to the previously used STANDARD_STARTFILE_PREFIX_{1,2},
MD_STARTFILE_PREFIX method.
2013-08-12 13:00:44 +02:00
Ingo Weinhold
7a87db2a17 gcc 4 configure: extend --enable-hybrid-secondary
* Rename to --with-hybrid-secondary and require as parameter the name of
  the secondary packaging architecture. The value is used for
  constructing the respective default header and library search paths.
* Add /boot/system/develop/headers/<arch> to header search paths.
2013-08-07 02:08:04 +02:00
Ingo Weinhold
1025a2a1a1 gcc 4: configure.ac: Add missing AC_SUBST for build_math_library 2013-08-07 01:40:06 +02:00
Ingo Weinhold
eddee0bfd6 gcc 4: fix math library fix for genautomata
* The build host's math library is needed, not the host's. Makes a
  difference when build host != host, e.g. when cross-compiling a native
  Haiku compiler on Linux.
* Rename the variable math_library -> build_math_library for clarity.
2013-08-04 03:00:54 +02:00
Ingo Weinhold
dee1a38d2c gcc 4: all Haiku os headers are C++ aware 2013-08-03 03:58:37 +02:00
Ingo Weinhold
b2de4f033b gcc 4: also prepend the sysroot to the common include dirs 2013-08-03 03:54:06 +02:00
Alex Smith
6e7ceb81be gcc: Don't default to -fomit-frame-pointer on x86_64.
This is already done on x86 using the --enable-frame-pointer option
to GCC's configure script, but that option only works for 32-bit x86.
Added an option to haiku64.h that forces it off by default for 64-bit.
2013-07-27 16:06:05 +01:00
Oliver Tappe
e754012299 Avoid warning about c++ comments in header. 2013-07-08 00:15:23 +02:00
Oliver Tappe
db2a6d28f6 Merge branch 'master' into package-management
Conflicts:
	gcc/gcc/Makefile.in
	gcc/gcc/configure
2013-07-07 20:04:38 +02:00
Oliver Tappe
bf6a88ff3a Allow gcc4 to be built as the secondary compiler on a gcc2-hybrid
* add new configure-option '--enable-hybrid-secondary'
* pick alternative include- and library-paths, if in hybrid-secondary
  mode
* switch to 'STARTFILE_PREFIX_SPEC', as that allows more obvious 
  specification of the search order
2013-07-07 18:12:57 +02:00
Alex Smith
0b4c64c23c Undefine HAVE_CASE_INSENSITIVE_FILE_SYSTEM on OS X to work around #9844.
Haiku should always be built using a case-sensitive FS on OS X, so it's fine
to just disable this assumption to work around the problem.
2013-07-04 11:39:59 +01:00
Jérôme Duval
3793707eda import gcc 4.8.1 2013-06-05 18:35:38 +02:00
Oliver Tappe
db57f3c887 Adjust NATIVE_SYSTEM_HEADER_DIR to PM-Haiku 2013-05-30 00:17:52 +02:00
Oliver Tappe
c88bf695a8 Improve INCLUDE_DEFAULTS for gcc4
* unify INCLUDE_DEFAULTS for native and cross compiler, as we now
  configure a sysroot and gcc will prepend the sysroot folder when
  needed
* update flags in INCLUDE_DEFAULTS according to "documentation" in
  cppdefaults.h
2013-05-30 00:17:10 +02:00
Oliver Tappe
4d56c28bc4 Adjust standard library and header paths of gcc4 to follow PM-layout 2013-05-28 18:14:09 +02:00
Jerome Duval
39ab4d9df2 GCC4: ppc and m68k don't provide crtbegin.o and crtend.o anymore. 2013-05-12 18:39:51 +02:00
nickc
89a807a126 PR bootstrap/50461
* configure.ac (mpfr-dir): When using in-tree MPFR sources
allow for the fact that from release v3.1.0 of MPFR the source
files were moved into a src sub-directory.
* configure: Regenerate.
2013-05-12 17:57:46 +02:00
Jérôme Duval
593e726f68 buildtools: update gmp, mpfr, mpc libs
* gmp to 5.0.5, mpfr to 3.1.2, mpc to 1.0.1
2013-05-12 17:49:33 +02:00
Jérôme Duval
9504a69542 gcc with graphite: libppl.a needs libm
* workaround tested on ubuntu 13.04 x86_64 as a cross build.
2013-05-12 15:58:10 +02:00
Jérôme Duval
a5171ea346 gcc 4.7.3: fix remaining Haiku issues. 2013-05-10 18:26:12 +02:00
Jérôme Duval
e474c2012e Merge tag 'gcc_4.7.3', based on the patch from jprostko.
Tested builds with x86,x86_64,arm,ppc,mipsel

Conflicts:
	gcc/Makefile.in
	gcc/configure
	gcc/gcc/configure
	gcc/gcc/configure.ac
	gcc/gcc/crtstuff.c
	gcc/libgcc/config.host
2013-05-02 22:28:00 +02:00
Jérôme Duval
e9f3433e73 import gcc 4.7.3 2013-04-23 18:39:47 +02:00
Jerome Duval
9cd896944f Merge gcc 4.6.4
Conflicts:
	gcc/libcpp/configure
	gcc/libcpp/configure.ac
2013-04-19 21:20:28 +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
Jerome Duval
df9ffb3a0f gcc: cherry picked patch for support of current CLooG
* cloog now uses CLOOG_LANGUAGE_C instead of LANGUAGE_C.
* graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
        (set_cloog_options): Use it.
2013-04-06 14:43:25 +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
Michael Lotz
7219b3c58f * Change gnu include path to 3rdparty and also add /boot/common/include to the
include list as in r28324. I really thought I updated this based on this patch.
* Added /boot/home/config/include to the include list as well, not sure why this
  wasn't present before. If there's a specific reason against it please tell.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29489 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-13 15:37:22 +00:00
Michael Lotz
beaf9299fc * Amend link and startfile specs for the -shared option.
* Remove the part of the link specs that automatically names the output after
  the last source file. Therefore we'll produce a.out for now. Sadly the %b
  variable does also evaluate to libraries in GCC4 which makes it unusable for
  this case. A "gcc file.cpp -lstdc++" would for example produce an output
  named libstdc++...


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29297 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-23 20:51:17 +00:00
Michael Lotz
21658f885f Add missing default CPU setting for m68k.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29144 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-06 23:46:58 +00:00
Michael Lotz
0e5d48202a Make the arm target valid as well.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29143 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-06 23:10:34 +00:00
Michael Lotz
2a214e38d2 Add missing support for ppc and m68k targets.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29141 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-06 22:05:19 +00:00
Michael Lotz
db596da671 Remove the extra /posix from the NATIVE_SYSTEM_HEADER_DIR since we override the limits test adding it again. Should fix native GCC4 compilation.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29081 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-28 21:23:05 +00:00
Michael Lotz
33c77afbe9 Updating config.guess and config.sub so the inline GMP and MPFR libs can be built under Haiku.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29080 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-28 20:15:42 +00:00
Michael Lotz
04f456db0e Broke finding limits.h for the cross-compiler by removing that. For the native
compile it's enough the set the NATIVE_SYSTEM_HEADER_DIR, but for cross
compiling this is needed. Sorry for that, should've be more cautious when
updating.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29078 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-28 17:35:08 +00:00
Michael Lotz
850146e02b Move t-haiku where it should be. It's shared for all platforms of course.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29077 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-28 17:31:12 +00:00
Michael Lotz
71707d824a Put the changes to the generated build files into their .ac/.am source.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29075 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-28 16:09:58 +00:00
Michael Lotz
87cbf3a69a This should fix running the get_patches script. I don't really know how this could previously have worked. I can just guess that on the platform it worked, the MPFR lib wasn't built because it was preinstalled.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29073 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-28 13:05:13 +00:00
Michael Lotz
36de11649f Don't blindly assume -lm presence. Add a check for the host and remove the -lm
on Haiku so building should work natively.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29071 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-28 03:07:50 +00:00
Michael Lotz
3fce03fd27 Remove the __BEOS__ builtin define. Also add an uppercase __ARM__ for the ARM config.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29068 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-28 01:49:45 +00:00
Michael Lotz
ff5be04c3b Add some more default include dirs for native compiler.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29067 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-28 01:48:49 +00:00
Michael Lotz
6245f2f512 Adding autoconf generated haiku config. Taken from the patch produced by Aljen in ticket #2982.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29059 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-27 00:40:00 +00:00
Michael Lotz
78b95a8ab5 Add missing dlopen results to libstdc++ configure. Some combining.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29058 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-27 00:16:28 +00:00
Michael Lotz
3f95bbcc30 Adding back m68k and ppc support. Adding stub arm support as well.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29056 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-26 23:55:25 +00:00
Michael Lotz
ac2b422ece Fix some missing definitions that apply to Haiku.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29054 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-26 23:27:38 +00:00
Michael Lotz
53580dbb23 Sorry, seriously not enough sleep.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29052 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-26 22:57:59 +00:00
Michael Lotz
53e303ec61 Oops.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29050 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-26 22:51:15 +00:00
Michael Lotz
3a5adbe651 Specify add_sysroot for cross compiler search dirs. Add fixed include dir.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29049 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-26 22:47:03 +00:00
Michael Lotz
8c7e3ca14b Attempt at fixing the cross-compiler config. Some cleanup in the default includes as well.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29048 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-26 20:53:59 +00:00
Michael Lotz
0bf091a9aa Don't override the SYSTEM_HEADER_DIR generally but only for native builds.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29045 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-26 07:28:33 +00:00
Michael Lotz
d9a3c7bdde That was only for native compilation actually. Should un-break cross-compiler creation.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29044 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-26 06:53:18 +00:00
Michael Lotz
c171ec6b9c This file seems to be missing. It can't be generated on some platforms.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29043 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-26 06:43:27 +00:00
Michael Lotz
99d8158635 Adding inline mpfr directory so the MPFR library is built as part of GCC 4.3.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29042 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-26 05:56:19 +00:00
Michael Lotz
dae34d9ee2 Adding inline gmp directory so the GMP library is built as part of GCC 4.3.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29041 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-26 05:55:46 +00:00
Michael Lotz
9d51e40ad3 Applying Haiku compatibility.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29034 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-26 05:09:46 +00:00
Michael Lotz
a84f174425 Bring GCC 4.3.3 to trunk.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29033 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-26 05:03:14 +00:00
Michael Lotz
c5e4f0dd64 Removing previous GCC4 to have a clean base.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29032 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-26 05:02:39 +00:00
François Revol
78cb788e26 Remove redundant cpu= and machine= asserts
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@22689 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-23 22:06:30 +00:00
François Revol
333bfd6196 Preliminary gcc port to m68k-unknown-haiku.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@22685 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-23 18:58:57 +00:00
Ingo Weinhold
6fb0ada26b Fixed PPC compiler build.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@20325 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-03-04 19:53:35 +00:00
Ingo Weinhold
18ca835d6d Merged in the changes to version 4.1.2.
* Solved conflicts with the libtool related files by simply using the
  vendor versions. IIRC the haiku related changes to libtool and
  autoconf were relevant only for the binutils.
* Solved {libstdc++-v3,libmudflap}/configure conflicts by re-running
  autoconf for these directories.

I'm already working on fixing the Haiku build, so please don't do the
same.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@20318 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-03-04 04:07:35 +00:00
François Revol
1227028b2b No reason to keep those 2 in, they are automatically generated.
This fixes one fo the problems of building gcc4 under Zeta.
See http://gcc.gnu.org/ml/gcc/2003-10/msg01501.html
If you want to try you'll have to also remove the -lm in gcc/gcc/Makefile.in or symlink it to libroot.so.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@20115 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-02-08 19:04:45 +00:00
Ingo Weinhold
aa62780422 Patches for building a cross compiler under FreeBSD. Proposed by
Alexander Deynichenko, changed a bit though.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@16178 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-02-01 00:28:59 +00:00
Ingo Weinhold
5f492e427e Also define "__powerpc__".
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15440 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-09 14:05:29 +00:00
Ingo Weinhold
8c840510db Added support for machine powerpc-*-haiku. Reorganized things a bit:
The i386-pc-haiku no longer uses the BeOS BFD target emulation, but
its own. A few things are shared for both *-*-haiku machines now.
The PowerPC Haiku binutils and gcc build, but I wouldn't expect them
to really produce usable output yet. We'll see...


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15381 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-06 22:39:47 +00:00
Ingo Weinhold
59eda489cd Added support for target i586-pc-haiku. Mostly by cloning the *-beos
stuff, partially omitting cruft.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15343 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-05 14:17:09 +00:00
Ingo Weinhold
e6c8d025f2 Renamed gcc4 to gcc.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15082 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-22 22:43:43 +00:00
Ingo Weinhold
9ea2a99edb Moved the old gcc to its new home.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15071 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-22 15:53:32 +00:00
Nathan Whitehorn
2ac1cb254f Fixed libiberty to build on FreeBSD. A few more problems to go.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@14978 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-17 00:47:53 +00:00
Ingo Weinhold
f04816505f When bash 3 is run POSIX compatible (e.g. as /bin/sh), invoking "trap"
without command argument is not allowed anymore.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@14562 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-29 00:56:06 +00:00