Commit Graph

433 Commits

Author SHA1 Message Date
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
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
Ingo Weinhold
6d82b40597 Merge branch 'package-management' 2013-09-27 01:54:26 +02:00
Ithamar R. Adema
a1d1cf45a5 jam: update MAXLINE to fix build issues for ARM
Jam is reporting "Link actions too long" so increase it.
2013-09-15 05:05:51 +02:00
Ingo Weinhold
6ff546f23b Bump legacy gcc version 2013-08-15 11:36:04 +02:00
Ingo Weinhold
86fe91bce2 legacy gcc: add --with-hybrid-secondary configure option 2013-08-15 11:34:28 +02:00
Ingo Weinhold
d36fc8e97b legacy gcc: declare some more include dirs C++ aware 2013-08-15 11:34:26 +02:00
Ingo Weinhold
2d0a2c6404 Bump legacy compiler version 2013-08-12 13:11:03 +02:00
Ingo Weinhold
e369b8e0bb gcc 2: Remove obsolete library and include search paths
Also clean up a few comments.
2013-08-12 13:06:01 +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
Ingo Weinhold
531916daa2 jam: jcache: read_file(): fail when encountering too long lines
For its input files jam uses a buffer of 512 chars for fgets(). Lines
would therefore be split silently after that length, which could lead to
"interesting" issues. Now we fail to prevent the situation from going
unnoticed.
2013-07-25 23:00:31 +02:00
Ingo Weinhold
502f1ff979 jam: get_jcache(): clean up when reading the cache failed
When reading the cache file failed we have to assume it is corrupt and
we should use any entries read from it. So now we remove the ones we
read again.
2013-07-25 22:55:11 +02:00
Ingo Weinhold
bbab887c2f jam: delete_jamfile_cache(): don't free cache_file
The value is initialized from a static variable returned by
jcache_name().
2013-07-25 22:52:30 +02:00
Ingo Weinhold
a9f1022a2a jam: jcache: typo in comment 2013-07-25 22:50:34 +02:00
Ingo Weinhold
b1ef802cdc gcc2 x86_64 build support: pretend we're i386
That's even simpler than the previous approach, which resulted in
assembler errors in certain situations.
2013-07-21 20:57:56 +02:00
Ingo Weinhold
dd0e14964f Support building a cross gcc2 on x86_64
At least building the compiler seems to work on Linux (openSUSE 12.3).
Haven't tested whether the resulting Haiku works as well.
2013-07-21 19:48:12 +02:00
Oliver Tappe
ab0f66e995 Drop libio and libstdc++ from buildsystem of legacy gcc.
* libio can't be built without exposing glibc-internal stuff and
  we don't need either because Haiku provides its own version 
  of the legacy libstdc++
2013-07-17 19:11:17 +02:00
Ingo Weinhold
ce0819bf46 t-haiku: work-around the broken limits.h check
Checking for $(SYSTEM_HEADER_DIR)/limits.h doesn't work when
cross-compiling a native compiler, since that refers to the location of
the header on the target platform.
2013-07-17 00:43:19 +02:00
Oliver Tappe
bb9d1326db Bump version of legacy compiler. 2013-07-15 17:28:51 +02:00
Oliver Tappe
98d26c516f Reap more remains of fixinc.
* without these changes, gcc2 wouldn't build when using a cross-compiler
  on Haiku (complaining about missing '../specs' required by machname.h)
2013-07-15 16:06:18 +02: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
Oliver Tappe
ca289f92b0 remove duplicate header from configuration 2013-05-28 18:10:33 +02:00
Oliver Tappe
d0613f2026 Change format of version strings to full date, separated by underscore 2013-05-19 14:38:52 +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
Ingo Weinhold
6210a715b1 Merge branch 'master' into package-management
Conflicts:
	INSTALL-gcc2-from-source-Haiku
	build-gcc2-optional-package-Haiku.sh
	gcc/gcc/config/i386/haiku64.h
	legacy/gcc/gcc/config/i386/haiku.h
	legacy/gcc/gcc/version.c
2013-05-04 14:45:58 +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
Ingo Weinhold
a57415355d Bump version to 130425 2013-04-25 17:09:52 +02:00
Ingo Weinhold
1f1e659bdb gcc2: Add missing library and header search paths
* For /boot/common[/non-packaged] the standard include paths should be
  develop/headers/ as well instead of include/.
* Build the standard library search paths (the system and common ones)
  into the compiler as well. This makes setting the BELIBRARIES
  environment variable superfluous.
* The obsolete search paths (/boot/common[/non-packaged]/include/ and
  /boot/common/lib/ respectively) are still built in as well. They will
  be removed after a grace period, when all packages have been adjusted
  accordingly.
2013-04-25 17:09:50 +02:00