Commit Graph

668 Commits

Author SHA1 Message Date
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
Jérôme Duval
e9f3433e73 import gcc 4.7.3 2013-04-23 18:39:47 +02:00
Oliver Tappe
278de7bc92 Bump versions of legacy compiler and binutils
* let's have a PM-specific version to lessen confusion
2013-04-21 23:21:14 +02:00
Adrien Destugues
24ebe81445 Add another standard C++ prototype for string::compare. 2013-04-21 23:04:33 +02:00
Joseph R. Prostko
a060af0916 Update GCC2 date versioning
* Due to recent changes by pulkomandy and myself, the date versioning must be updated
* A change to the configure script will follow this commit

Conflicts:
	legacy/gcc/gcc/version.c
2013-04-21 23:04:02 +02:00
Joseph R. Prostko
95f8bab5b6 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

Conflicts:
	legacy/gcc/gcc/config/i386/haiku.h
2013-04-21 23:03:18 +02:00
Adrien Destugues - PulkoMandy
99cc4338d7 Allow use of c_str() when <charT> != char
http://gcc.gnu.org/ml/libstdc++-prs/2000-q4/msg00004.html
This allows use on std::wstring, and others.
2013-04-21 23:02:20 +02:00
Adrien Destugues - PulkoMandy
855732f929 Add missing tan(), tanh() and log10() for std::complex.
These are part of the C++ standard, I don't know how they went missing
in our version.
http://www.cplusplus.com/reference/std/complex/

They are needed to build MathGL library, and likely other stuff.
2013-04-21 23:02:08 +02:00
Oliver Tappe
87efb055fb Bump legacy compiler version.
Conflicts:
	legacy/gcc/gcc/version.c
2013-04-21 22:59:52 +02:00
Oliver Tappe
64e25a9475 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.
(cherry picked from commit 073cb9127c)
2013-04-21 22:58:49 +02:00
Matt Madia
fdc4d2f79b Prevent fixing the includes.
Forcibly prevent fixinclude from executing. This prevents the spawning of a
shell process, which would be abandoned due to fixinc crashing.

Submitted By: BLFS Book <blfs-book@linuxfromscratch.org>
Date: 2003-10-05
Initial Package Version: 2.95.3
Origin: BLFS Book
http://www.linuxfromscratch.org/blfs/view/5.1/general/gcc2.html
(cherry picked from commit ef37057d92)
2013-04-21 22:53:36 +02:00
Oliver Tappe
1fea500c21 Add more generated files of legacy gcc to .gitignore
(cherry picked from commit 41126db379)
2013-04-21 22:53:34 +02:00
Oliver Tappe
c88591af88 Add autom4te.cache to .gitignore
(cherry picked from commit 7f3fb010ff)
2013-04-21 22:53:31 +02:00
Oliver Tappe
9f9e588ceb Drop another .info target that triggers invocation of makeinfo.(cherry picked from commit af2683a443) 2013-04-19 21:58:29 +02:00
Oliver Tappe
e925619d1f Trying to fix #8063 (failure to build gcc2 when updating info files):
* remove all *.info targets so the gcc2 build system doesn't
  try to update them, as that doesn't always work because of
  apparent incompatibilities with newer makeinfo versions

git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@42999 a95241bf-73f2-0310-859d-f6bbb57e9c96
(cherry picked from commit 32fb726909)
2013-04-19 21:58:21 +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