593 Commits

Author SHA1 Message Date
Jérôme Duval
e2963a55e6 Merge binutils 2.25.1
Conflicts:
	binutils/gas/configure.tgt
btrev43104
2015-07-24 21:31:12 +02:00
Augustin Cavalier
148cc99040 jam: Fix build/run on Windows.
Only works when compiled in 32-bit mode, as there's a whole bunch
of pointer arithmetic that depends on "int" being 32bit, not 64bit.
btrev43103
2015-07-23 16:45:11 -04:00
Jérôme Duval
597b3bdc8b import binutils 2.25.1 2015-07-23 20:15:18 +02:00
Jérôme Duval
52fa22bd84 gcc: sync configure.ac with configure and regen. btrev43102 2015-07-22 19:32:23 +02:00
Jérôme Duval
3801b878c2 Merge gcc 4.8.5 btrev43101 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.
btrev43100
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.
btrev43099
2015-04-20 03:06:37 +02:00
François Revol
0dfb79fe88 binutils: fix PPC GOT issue
Simplify haiku-specific ppc emulation script, and reuse
common code, which seems to fix the linker issue mentioned
in #10240:
_GLOBAL_OFFSET_TABLE_ not defined in linker created .got
2015-04-20 03:06:24 +02:00
François Revol
c5588ee1b4 gcc: update ppc linker emulation name 2015-04-20 00:11:14 +02:00
François Revol
ab21027f8a binutils: rename elf_ppc_haiku emulation to elf32ppchaiku
For coherence with other targets.
2015-04-19 17:21:46 +02:00
François Revol
b2f43673a6 binutils: reorder ppc dependency 2015-04-18 19:17:02 +02:00
Jérôme Duval
a05bd9155a Merge binutils 2.25
Conflicts:
	binutils/bfd/config.bfd
	binutils/ld/Makefile.am
	binutils/ld/Makefile.in
btrev43098
2014-12-26 12:16:05 +01:00
Jérôme Duval
36fac57968 import binutils 2.25 2014-12-26 11:26:52 +01:00
Jérôme Duval
1a00a76b58 Merge gcc 4.8.4 btrev43097 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
mshlyn
ff47abe8d7 Fix x86 configure option for crosscompile on Linux
Signed-off-by: Adrien Destugues <pulkomandy@gmail.com>

Fixes #11150.
btrev43096
2014-11-07 21:38:45 +01:00
Jessica Hamilton
c2607d0bbd jam: add internal dependencies for multi-file generating actions
* Based on https://svn.boost.org/trac/boost/changeset/39341
btrev43095
2014-10-21 20:57:59 +13:00
Adrien Destugues
d86116d57a Forgot to fix LDBL_MIN... btrev43094 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
btrev43093
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.
btrev43092
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.
btrev43091
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>
btrev43090
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>
btrev43089
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.
btrev43088
2014-08-21 16:41:43 +02:00
Oliver Tappe
bc712e7525 Fix format-related warnings during build of jam. btrev43087 2014-08-10 17:16:21 +02:00
Oliver Tappe
e5a1aa929a Bump version of legacy compiler. btrev43086 2014-07-28 11:12:44 +02:00
Oliver Tappe
937988f044 Add crtbeginS.o and crtendS.o to configure.in, too. btrev43085 2014-07-27 19:51:42 +02:00
Oliver Tappe
4947d64591 Fix build failure on m68k and powerpc. btrev43084 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.
btrev43083
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 btrev43082 2014-07-19 23:04:37 +02:00
John Scipione
9d26d59ebc Remove trailing space in comment btrev43081 2014-07-11 12:04:57 -04:00
Pawel Dziepak
3ad9ac2317 gcc: define [u]int*_t types btrev43080 2014-05-28 02:02:01 +02:00
Jérôme Duval
c7a34f3d45 Merge gcc 4.8.3 btrev43079 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.
btrev43078
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
btrev43077
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>
btrev43076
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
btrev43075
2014-03-11 21:00:01 -05:00
Alexander von Gluck IV
8b43097655 Revert "binutils: Fix PPC bootstrap build."
This reverts commit bf1b5855abed60bd6361e696121fa71c89d21469.

* 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
btrev43074
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).
btrev43073
2014-02-17 14:12:52 +01:00