Commit Graph

194 Commits

Author SHA1 Message Date
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