Commit Graph

476 Commits

Author SHA1 Message Date
Jessica Hamilton
c2607d0bbd jam: add internal dependencies for multi-file generating actions
* Based on https://svn.boost.org/trac/boost/changeset/39341
2014-10-21 20:57:59 +13:00
Adrien Destugues
d86116d57a Forgot to fix LDBL_MIN... 2014-10-15 11:45:49 +02:00
Adrien Destugues
e7b6630b6b gcc2: rewrite LDBL_MIN/MAX/EPSILON without hex-floats.
* Values are taken from http://www.opengroup.org/csq/repository/appendix/oracle/iscl_appendix.html
* Confirmed to give the same results as the constants used in gcc4
* Should work in C++, where gcc2 doesn't support hex-floats
2014-10-15 08:29:00 +02:00
Adrien Destugues
4319c0ca13 gcc2: fix LDBL_MIN, LDBL_MAX, and LDBL_EPSILON
While the union trick used there gave the correct results, it made the
defines non-constants so they couldn't be used properly in some cases.

In particular, this makes the testsuite for gettext and some other GNU
packages fail as they explicitly test for these being constants.
2014-10-14 17:58:00 +02: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
Paweł Dziepak
862b5480a9 jam: do not set OPTIM by default
If setting OPTIM by jam basically makes it impossible for the project that
is using jam to set its own optimization level while still allowing user
to override that in command line. For example in Haiku jam files there is
line like this: "OPTIM ?= -O2", which obviously is meant to set optimization
level to O2 unless user overwrites it. Unfortunately, because Jam have already
set OPTIM to -O this line never had an intended effect.

After this Jam no longer thinks it knows best what is good for projects
that are using it and Haiku is by default compiled with -O2.

Signed-off-by: Paweł Dziepak <pdziepak@quarnos.org>
2014-08-25 22:58:39 +02: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
bc712e7525 Fix format-related warnings during build of jam. 2014-08-10 17:16:21 +02:00
Oliver Tappe
e5a1aa929a Bump version of legacy compiler. 2014-07-28 11:12:44 +02:00
Oliver Tappe
937988f044 Add crtbeginS.o and crtendS.o to configure.in, too. 2014-07-27 19:51:42 +02:00
Oliver Tappe
4947d64591 Fix build failure on m68k and powerpc. 2014-07-26 19:50:18 +02:00
Oliver Tappe
54883b1bb5 Let gcc2 use crtbeginS.o and crtendS.o, too.
* I doubt that this makes much of a difference, but it avoids yet
  another indirection in Haiku's build system.
2014-07-23 09:18:51 +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
Oliver Tappe
43f1e2dba3 * Add .gitignore. 2014-07-21 11:18:25 +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
Oliver Tappe
6c03949644 Fix warnings when building jam.
Sorry for the included whitespace cleanup.
2014-05-12 23:18:24 +02:00
Jérôme Duval
c20a732df8 Merge binutils 2.24
Conflicts:
	binutils/configure
	binutils/configure.ac
	binutils/gas/doc/c-arc.texi
	binutils/gas/doc/c-arm.texi
	binutils/gas/doc/c-tic54x.texi
2014-03-19 17:30:31 +01:00
Jérôme Duval
3615e2401a import binutils 2.24 2014-03-19 17:25:32 +01:00
Arvind S Raj
fe93c5d4d3 Fixed errors in documentation that caused configure script to fail when bootstrapping for ARM build
texinfo 5 has changed syntax for certain commands which led to failure when
building binutils because the documentation could not be built.
Upstream report: https://sourceware.org/bugzilla/show_bug.cgi?id=15212.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2014-03-19 10:43:54 +01:00
Alexander von Gluck IV
f131d0c316 binutils: fix missing stdint in binutils bdf
* Fixes issue compiling PPC binutils
* Upstream commit 3c865fca8 by Alan Modra
* Missing a stdint.h in coff header for intptr_t usage
* PPC fix is upstream via:
  https://sourceware.org/bugzilla/show_bug.cgi?id=16686
2014-03-11 21:00:01 -05:00
Alexander von Gluck IV
8b43097655 Revert "binutils: Fix PPC bootstrap build."
This reverts commit bf1b5855ab.

* mmu_man pointed out that the fix in bug #16686 is more
  correct. (and on closer inspection I agree)
* sorry for the spam
2014-03-11 20:52:08 -05:00
Alexander von Gluck IV
bf1b5855ab binutils: Fix PPC bootstrap build.
* Missing a stdint.h in coff header for intptr_t usage
* Pushed this fix to binutils via:
  https://sourceware.org/bugzilla/show_bug.cgi?id=16686
2014-03-11 20:05:44 -05: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
66becd8fe7 Merge btrev43068 instead of rebasing and resolving conflicts. 2014-01-28 18:43:05 +01:00
Jérôme Duval
b8e7021a67 cloog: removed included isl 2014-01-27 21:52:03 +01:00
Jérôme Duval
d36da59d2c imported isl-0.12.2 2014-01-27 21:38:34 +01:00
Jérôme Duval
cb99363636 ppl: removed. 2014-01-27 21:37:16 +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
Adrien Destugues
9bfca2f40f Fix prototype for atomic_add
bastring declares the prototype for atomic_add, as it can't rely on
haiku-specific headers. Have this declaration match the modified
prototype from Scheduler branch merge.

Matches commit 73ad2473e7874b3702cf5b0fdf4c81b747812ed9 on Haiku side.
2014-01-17 10:02:13 +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
François Revol
abc7211782 jam: Bump MAXLINE to 120000
It was still too low for another case.
Now it seems to work fine here, including for jam clean.
2013-09-30 04:00:50 +02:00
François Revol
a87e28a706 jam: Lower MAXLINE down to 100k
even 140k was too large here for jam clean to work.
2013-09-30 03:27:33 +02:00
François Revol
d9e13d3607 jam: update MAXLINE to fix build issues for ARM
Looks like it wasn't enough yet after the PM merge.

However we still have an issue with a silently failed Link action
which actually is smaller than the max line size...
2013-09-29 22:37:07 +02:00