Commit Graph

312 Commits

Author SHA1 Message Date
Oliver Tappe
03890535ff * merged 32bit-wchar_t branches of buildtools and haiku back into
the respective trunk

git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@31443 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-07 10:30:09 +00:00
François Revol
40ef888cfd Remove USE_GAS as for other platforms since it's deprecated, as suggested by umccullough, please shout if it breaks anything.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@30931 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-30 19:27:42 +00:00
Jérôme Duval
093b4f688a Applied patch for arm haiku target from Johannes Wischert (bug #3633)
The cross tools build still needs the arm specific headers in Haiku to complete (bug #3763)


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@30652 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-06 20:34:18 +00:00
Jonas Sundström
257de42932 Tweaks. Removing superflous config. Cleaner and closer to defaults, hopefully.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@30580 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-02 18:20:14 +00:00
Jonas Sundström
fe3d3406e8 The define __BEOS__ is not relevant to Haiku.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@30536 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-01 15:23:48 +00:00
Jonas Sundström
4df3ecf7d0 Adding mipsel-unknown-haiku. Work in progress. Correctness uncertain. Especially gcc/gcc/config/mips/haiku.h. Inspired by the other Haiku targets x86/ppc/arm.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@30534 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-01 14:42:51 +00:00
Michael Lotz
5d242e9e05 Add the -no-undefined flag only for non-shared objects as before, i.e. shared
libraries are allowed to use undefined symbols.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29490 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-13 15:42:32 +00:00
Michael Lotz
7219b3c58f * Change gnu include path to 3rdparty and also add /boot/common/include to the
include list as in r28324. I really thought I updated this based on this patch.
* Added /boot/home/config/include to the include list as well, not sure why this
  wasn't present before. If there's a specific reason against it please tell.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29489 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-13 15:37:22 +00:00
Michael Lotz
beaf9299fc * Amend link and startfile specs for the -shared option.
* Remove the part of the link specs that automatically names the output after
  the last source file. Therefore we'll produce a.out for now. Sadly the %b
  variable does also evaluate to libraries in GCC4 which makes it unusable for
  this case. A "gcc file.cpp -lstdc++" would for example produce an output
  named libstdc++...


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29297 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-23 20:51:17 +00:00
Michael Lotz
21658f885f Add missing default CPU setting for m68k.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29144 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-06 23:46:58 +00:00
Michael Lotz
0e5d48202a Make the arm target valid as well.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29143 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-06 23:10:34 +00:00
Michael Lotz
2a214e38d2 Add missing support for ppc and m68k targets.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29141 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-06 22:05:19 +00:00
Michael Lotz
db596da671 Remove the extra /posix from the NATIVE_SYSTEM_HEADER_DIR since we override the limits test adding it again. Should fix native GCC4 compilation.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29081 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-28 21:23:05 +00:00
Michael Lotz
33c77afbe9 Updating config.guess and config.sub so the inline GMP and MPFR libs can be built under Haiku.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29080 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-28 20:15:42 +00:00
Michael Lotz
04f456db0e Broke finding limits.h for the cross-compiler by removing that. For the native
compile it's enough the set the NATIVE_SYSTEM_HEADER_DIR, but for cross
compiling this is needed. Sorry for that, should've be more cautious when
updating.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29078 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-28 17:35:08 +00:00
Michael Lotz
850146e02b Move t-haiku where it should be. It's shared for all platforms of course.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29077 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-28 17:31:12 +00:00
Michael Lotz
71707d824a Put the changes to the generated build files into their .ac/.am source.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29075 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-28 16:09:58 +00:00
Michael Lotz
87cbf3a69a This should fix running the get_patches script. I don't really know how this could previously have worked. I can just guess that on the platform it worked, the MPFR lib wasn't built because it was preinstalled.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29073 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-28 13:05:13 +00:00
Michael Lotz
36de11649f Don't blindly assume -lm presence. Add a check for the host and remove the -lm
on Haiku so building should work natively.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29071 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-28 03:07:50 +00:00
Michael Lotz
3fce03fd27 Remove the __BEOS__ builtin define. Also add an uppercase __ARM__ for the ARM config.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29068 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-28 01:49:45 +00:00
Michael Lotz
ff5be04c3b Add some more default include dirs for native compiler.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29067 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-28 01:48:49 +00:00
Michael Lotz
6245f2f512 Adding autoconf generated haiku config. Taken from the patch produced by Aljen in ticket #2982.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29059 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-27 00:40:00 +00:00
Michael Lotz
78b95a8ab5 Add missing dlopen results to libstdc++ configure. Some combining.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29058 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-27 00:16:28 +00:00
Michael Lotz
3f95bbcc30 Adding back m68k and ppc support. Adding stub arm support as well.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29056 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-26 23:55:25 +00:00
Michael Lotz
ac2b422ece Fix some missing definitions that apply to Haiku.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29054 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-26 23:27:38 +00:00
Michael Lotz
53580dbb23 Sorry, seriously not enough sleep.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29052 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-26 22:57:59 +00:00
Michael Lotz
53e303ec61 Oops.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29050 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-26 22:51:15 +00:00
Michael Lotz
3a5adbe651 Specify add_sysroot for cross compiler search dirs. Add fixed include dir.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29049 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-26 22:47:03 +00:00
Michael Lotz
8c7e3ca14b Attempt at fixing the cross-compiler config. Some cleanup in the default includes as well.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29048 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-26 20:53:59 +00:00
Michael Lotz
0bf091a9aa Don't override the SYSTEM_HEADER_DIR generally but only for native builds.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29045 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-26 07:28:33 +00:00
Michael Lotz
d9a3c7bdde That was only for native compilation actually. Should un-break cross-compiler creation.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29044 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-26 06:53:18 +00:00
Michael Lotz
c171ec6b9c This file seems to be missing. It can't be generated on some platforms.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29043 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-26 06:43:27 +00:00
Michael Lotz
99d8158635 Adding inline mpfr directory so the MPFR library is built as part of GCC 4.3.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29042 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-26 05:56:19 +00:00
Michael Lotz
dae34d9ee2 Adding inline gmp directory so the GMP library is built as part of GCC 4.3.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29041 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-26 05:55:46 +00:00
Michael Lotz
9d51e40ad3 Applying Haiku compatibility.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29034 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-26 05:09:46 +00:00
Michael Lotz
a84f174425 Bring GCC 4.3.3 to trunk.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29033 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-26 05:03:14 +00:00
Michael Lotz
c5e4f0dd64 Removing previous GCC4 to have a clean base.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29032 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-26 05:02:39 +00:00
François Revol
78cb788e26 Remove redundant cpu= and machine= asserts
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@22689 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-23 22:06:30 +00:00
François Revol
333bfd6196 Preliminary gcc port to m68k-unknown-haiku.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@22685 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-23 18:58:57 +00:00
Ingo Weinhold
6fb0ada26b Fixed PPC compiler build.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@20325 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-03-04 19:53:35 +00:00
Ingo Weinhold
18ca835d6d Merged in the changes to version 4.1.2.
* Solved conflicts with the libtool related files by simply using the
  vendor versions. IIRC the haiku related changes to libtool and
  autoconf were relevant only for the binutils.
* Solved {libstdc++-v3,libmudflap}/configure conflicts by re-running
  autoconf for these directories.

I'm already working on fixing the Haiku build, so please don't do the
same.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@20318 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-03-04 04:07:35 +00:00
François Revol
1227028b2b No reason to keep those 2 in, they are automatically generated.
This fixes one fo the problems of building gcc4 under Zeta.
See http://gcc.gnu.org/ml/gcc/2003-10/msg01501.html
If you want to try you'll have to also remove the -lm in gcc/gcc/Makefile.in or symlink it to libroot.so.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@20115 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-02-08 19:04:45 +00:00
Ingo Weinhold
aa62780422 Patches for building a cross compiler under FreeBSD. Proposed by
Alexander Deynichenko, changed a bit though.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@16178 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-02-01 00:28:59 +00:00
Ingo Weinhold
5f492e427e Also define "__powerpc__".
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15440 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-09 14:05:29 +00:00
Ingo Weinhold
8c840510db Added support for machine powerpc-*-haiku. Reorganized things a bit:
The i386-pc-haiku no longer uses the BeOS BFD target emulation, but
its own. A few things are shared for both *-*-haiku machines now.
The PowerPC Haiku binutils and gcc build, but I wouldn't expect them
to really produce usable output yet. We'll see...


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15381 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-06 22:39:47 +00:00
Ingo Weinhold
59eda489cd Added support for target i586-pc-haiku. Mostly by cloning the *-beos
stuff, partially omitting cruft.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15343 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-05 14:17:09 +00:00
Ingo Weinhold
e6c8d025f2 Renamed gcc4 to gcc.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15082 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-22 22:43:43 +00:00
Ingo Weinhold
9ea2a99edb Moved the old gcc to its new home.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15071 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-22 15:53:32 +00:00
Nathan Whitehorn
2ac1cb254f Fixed libiberty to build on FreeBSD. A few more problems to go.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@14978 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-17 00:47:53 +00:00
Ingo Weinhold
f04816505f When bash 3 is run POSIX compatible (e.g. as /bin/sh), invoking "trap"
without command argument is not allowed anymore.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@14562 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-29 00:56:06 +00:00
Ingo Weinhold
3e3080e506 Avoid a clash of two different RETURN enums. Happens under Linux; don't know why not under BeOS.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@14561 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-29 00:30:19 +00:00
Oliver Tappe
d01020874b - Applied several (old, external) patches that enable the support for anonymous
structs and unions in C as well as in C++ (application of this patch has
  been sugggested by execom through BeBits-talkback).

  This mail-thread explains the problem & solution:
      http://gcc.gnu.org/ml/gcc-bugs/1999-08n/msg00914.html

  These are the patches that have been applied:
      gcc-2.95-anon-struct-union.diff
      gcc-2.95-c++-tidy.diff
      gcc-2.95-c++-anon-struct.diff
      gcc-2.95-c++-anon-struct2.diff
  which can all be found here:
  		ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/cygwin/gcc-2.95/patches/


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@11421 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-19 13:01:14 +00:00
Oliver Tappe
8f01cb10fd - switched some compile-time dependencies to target dependencies, such that
cross-compiling with BeOS target works.
- tweaked build-procedure to allow for proper generation of a i586-pc-beos
  cross-compiler on LINUX.
- added documentation for creation of cross-compiler.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@11255 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-04 23:37:16 +00:00
shatty
67a3c23c86 fixed scientific(ios& i) - thanks to John [Beta] Drinkwater
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@10545 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-29 23:38:46 +00:00
shatty
5f2a11b032 provide convenience fixed(ios&) and scientific(ios&) inline functions
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@10475 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-16 03:46:43 +00:00
Oliver Tappe
bd6811b11a - added --no-undefined to the specs so that we can drop a patch that changed
ld to use this as default.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@10419 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-13 16:17:00 +00:00
Oliver Tappe
b1f7854b8a - added missing documentation for --relative-path-errors option.
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@10418 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-13 16:14:42 +00:00
Oliver Tappe
e5b1c1d2a4 - added support for manual selection of multiple/single symbol space via
-fmultiple-symbol-spaces or -fno-multiple-symbol-spaces.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@10352 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-02 16:25:51 +00:00
Oliver Tappe
ad7c100bf6 - add frame pointer to fixed_regs unless -fomit-frame-pointer has been
given.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@10351 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-02 16:22:42 +00:00
Oliver Tappe
bb1c955323 - instead of linking fix_bdirectwin_typeinfo.o only when generating apps,
we now link it always (against shared libraries, too). This fixes a
  problem when building libSDL.so (and probably other libs that contain
  code to start/stop BApplications).


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@10350 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-02 16:21:04 +00:00
Oliver Tappe
f5a979fb14 - fixed problem with "fixed or forbidden register" bx or bp being spilled
for inline assembly that requires a lot of register operands. Now these
  registers are only spilled if it is safe to do so (if -fno-pic or
  -fomit-frame-pointer has been given).


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@10349 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-02 16:18:25 +00:00
Oliver Tappe
d9894d5b5c - added info about -no-beos-fixes and -fmultiple-symbol-spaces
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@10348 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-02 16:16:05 +00:00
Oliver Tappe
58c9fe6e74 - added new switch -no-beos-fixes that deactivates the automatic linking
of fix_bdirectwin_typeinfo.o.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@10347 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-02 16:14:56 +00:00
Oliver Tappe
16b7d295d1 - updated version for new release
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@10346 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-02 16:13:46 +00:00
Oliver Tappe
336d81404a - added clear()-method that was missing from basic_string.
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@10129 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-21 19:03:36 +00:00
Oliver Tappe
f99d3bcdd9 - rebuilt dependent files
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9918 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-11 10:39:48 +00:00
Oliver Tappe
76e7a04213 - upgraded release date to 041111, for BeBits-release.
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9917 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-11 10:27:47 +00:00
Oliver Tappe
714df9738a - added a missing patch that keeps warning state along with __extension
pragmas.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9911 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-11 08:43:09 +00:00
Oliver Tappe
b16647ffb4 - fixed problem with bdb-compatibility when compiling libstdc++ without
inlining (compatibility functions were missing from libstdc++.r4.so in that
  case).


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9835 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-07 19:16:03 +00:00
Oliver Tappe
7ee596e436 - added files that didn't make it in during the patch-session.
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9623 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 19:26:41 +00:00
Oliver Tappe
78abf7bba0 avoid ICEing when encountering a (template-related) problem during
generation of debug-info.
	This is highly experimental and has a good chance of being removed
	at a later stage.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9621 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:36:41 +00:00
Oliver Tappe
552d1c2e8d avoid overoptimizing implicitly generated functions of local classes
in order to fix linking errors.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9620 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:36:18 +00:00
Oliver Tappe
cb1ff25317 fix position of source-line labels when generating debug info.
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9619 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:35:59 +00:00
Oliver Tappe
cd8c180f96 add a fix in order to avoid using the broken BDirectWindow-typeinfo function
that is contained inside the BE-libs.
  We generate a new one and use this instead


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9618 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:35:04 +00:00
Oliver Tappe
5c130f4191 activate MULTIPLE_SYMBOL_SPACES only if not optimizing (using a single
symbol space generates smaller object-files).


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9617 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:34:28 +00:00
Oliver Tappe
c21fc23a27 wrestle name-mangling into a state that is compatible with the
BeOS-libraries.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9616 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:34:03 +00:00
Oliver Tappe
41475e74b5 add new option -priority=<prio>, default is now 5 (B_LOW_PRIORITY).
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9615 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:33:42 +00:00
Oliver Tappe
d2046ed9e3 [taken from the Zeta-headers]
Fix a race condition in std::string allocation/deallocation code.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9614 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:33:16 +00:00
Oliver Tappe
98cc8eab03 replace fixincl with a newer version (which works on BeOS).
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9613 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:32:35 +00:00
Oliver Tappe
aa1b5648d0 add support for BeOS target
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9612 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:31:25 +00:00
Oliver Tappe
ac90974173 [backported from gcc-3.4]
give proper error messages for invalid asm instead of ICEing (at least in
   non-optimizing mode).


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9611 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:29:45 +00:00
Oliver Tappe
1e55f532cb [taken from gcc-2.96]
Mon Jul 31 22:19:24 2000  Jeffrey A Law  (law@cygnus.com)
   * loop.c (check_dbra_loop): Make change from July 17, 2000 work
   on targets which need more than one insn for a compare/cbranch
   operation.
	* gcc-c-torture/execute/20000731-2.c: New test.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9610 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:29:22 +00:00
Oliver Tappe
3428817f1c [taken from gcc-2.96]
2001-08-07  Jakub Jelinek  <jakub@redhat.com>
	* iostream.cc (do_scan): New.
	(istream::operator>>(long double &)): Use it.
	(istream::operator>>(double &)): Likewise.
	(istream::operator>>(float &)): Likewise.
	* g++.old-deja/g++.other/failbit1.C: New test.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9609 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:29:05 +00:00
Oliver Tappe
dee09b4ab3 [taken from gcc-2.96]
2001-03-29  Jakub Jelinek  <jakub@redhat.com>
	* fold-const.c (fold): Before optimizing unsigned comparison with
	0x7fffffffU, make sure arg0 is integral type.
	* gcc.c-torture/execute/20010329-1.c: New test.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9608 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:28:48 +00:00
Oliver Tappe
f3bec763ba [taken from gcc-2.96]
Tue Aug 29 22:09:59 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
	* expr.c (expand_expr): Don't blow up if type is ERROR_MARK.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9607 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:28:30 +00:00
Oliver Tappe
3516ced06b [taken from gcc-2.96]
2001-02-07  Alexandre Oliva <aoliva@redhat.com>
	* dwarf2out.c (gen_subprogram_die): Don't call
	add_abstract_origin_attribute if lookup_decl_die is NULL.
	2001-02-07  Jakub Jelinek  <jakub@redhat.com>
	* gcc.dg/20010207-1.c: New test.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9606 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:28:10 +00:00
Oliver Tappe
49d0b42456 [taken from gcc-2.96]
2000-06-12  Jakub Jelinek  <jakub@redhat.com>
	* decl.c (pushdecl): Set DECL_ORIGINAL_TYPE of a duplicate TYPE_DECL
	again after calling duplicate_decls.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9605 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:27:53 +00:00
Oliver Tappe
fe1648bb37 [taken from gcc-2.96]
2000-11-23  Nathan Sidwell  <nathan@codesourcery.com>
	* pt.c (lookup_template_class): Simplify loop exit constructs.
	Cope when there is no partial instantiation of a template
	template member.
	* g++.old-deja/g++.pt/instantiate9.C: New test.
	2001-06-06  Jakub Jelinek  <jakub@redhat.com>
	* g++.old-deja/g++.pt/instantiate9a.C: New test.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9604 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:27:27 +00:00
Oliver Tappe
dc46dacc20 [taken from gcc-2.96]
2001-05-07  Jakub Jelinek  <jakub@redhat.com>
	* decl2.c (import_export_decl): Emit referenced inline methods even
	in the unit which just imports the class.
	* g++.old-deja/g++.other/inline21.C: New test.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9603 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:27:10 +00:00
Oliver Tappe
823a7d17d5 [taken from gcc-2.96]
2001-01-11  Nathan Sidwell  <nathan@codesourcery.com>
	* typeck.c (build_c_cast): Do template processing earlier.
	2001-08-09  Jakub Jelinek  <jakub@redhat.com>
	* g++.old-deja/g++.other/array3.C: New test.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9602 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:26:46 +00:00
Oliver Tappe
c4c981ccea [taken from gcc-2.96]
2000-08-11  Nathan Sidwell  <nathan@codesourcery.com>
	* decl.c (check_tag_decl): Diagnose typename's which don't
	declare anything.
	2001-07-25  Jakub Jelinek  <jakub@redhat.com>
	* g++.old-deja/g++.other/typename2.C: New test.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9601 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:26:28 +00:00
Oliver Tappe
245fa99d36 [taken from gcc-2.96]
2002-02-17  Jakub Jelinek  <jakub@redhat.com>
	PR c/3444:
	* c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
	shortening.
	* typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
	shortening.
	* gcc.c-torture/execute/20020216-1.c: New test.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9600 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:25:54 +00:00
Oliver Tappe
bc1fe87958 [taken from gcc-2.95.3-latest-cvs]
fix several warnings


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9599 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:25:06 +00:00
Oliver Tappe
c3a190026c [taken from gcc-2.95.3-latest-cvs]
fix incorrect type of sz


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9598 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:24:48 +00:00
Oliver Tappe
71a05640d7 [taken from gcc-2.95.3-latest-cvs]
2001-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
	* memchr.c (memchr): Adjust condition to avoid infinite loop.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9597 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:24:20 +00:00
Oliver Tappe
e8b05382a1 [taken from gcc-2.95.3-latest-cvs]
Fri Mar  3 12:49:28 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
   * reload1.c (reload_combine_note_use): Handle return register USEs.
     REG case: Handle multi-hard-register hard regs.
	* reload1.c (delete_output_reload): Call eliminate_regs on substed.
	  (reload_as_needed): Call update_eliminable_offsets a bit later.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9596 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:23:57 +00:00
Oliver Tappe
0e9863ca9a [taken from gcc-2.95.3-latest-cvs]
2001-03-16  Jakub Jelinek  <jakub@redhat.com>
	* loop.c (combine_movables): Restrict combinations of constants with
	different modes so that we don't introduce SUBREGs into memory
	addresses.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9595 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:23:35 +00:00
Oliver Tappe
da36187c7a [taken from gcc-2.95.3-latest-cvs]
2001-03-28  Bernd Schmidt  <bernds@redhat.com>
	* jump.c (jump_optimize_1): Move call to delete_barrier_successors to
	a point where JUMP_LABELS and LABEL_NUSES are set up properly.
	(delete_barrier_successors): If deleting a table jump, delete the case
	vector as well.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9594 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:23:18 +00:00
Oliver Tappe
48228ca39b [taken from gcc-2.95.3-latest-cvs]
fix bug with error-file not being noted in one case.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9593 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:22:55 +00:00
Oliver Tappe
d9bb2c14a8 [taken from gcc-2.95.3-latest-cvs]
2000-10-17  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
	* function.c (locate_and_pad_parm): Don't align stack unconditionally.
	Fri Nov  5 10:07:25 1999  Nick Clifton  <nickc@cygnus.com>
	* function.c (is_addressof): New function.  Returns true if


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9592 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:22:34 +00:00
Oliver Tappe
4837867f67 [taken from gcc-2.95.3-latest-cvs]
2001-03-28  Bernd Schmidt  <bernds@redhat.com>
	* flow.c (propagate_block): When trying to delete a case vector, cope
	if its label has LABEL_PRESERVE_P set.
	* varasm.c (force_const_mem): If we have a label, set LABEL_PRESERVE_P
	so it won't get deleted.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9591 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:22:17 +00:00
Oliver Tappe
a8e3cfa07e [taken from gcc-2.95.3-latest-cvs]
from 2000-07-12  Zack Weinberg  <zack@wolery.cumb.org>
	* final.c (profile_function): Do not emit profile counters in
	the data section, if NO_PROFILE_COUNTERS is defined.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9590 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:21:57 +00:00
Oliver Tappe
8d8ec347b1 [taken from gcc-2.95.3-latest-cvs]
Bring back the sjlj eh fixes.
	* expr.c (expand_builtin_setjmp_setup): New.
	(expand_builtin_setjmp_receiver): New.
	(expand_builtin_setjmp): Split out _setup and _receiver functions.
	Move argument parsing in from ...
	(expand_builtin): ... here.
	* except.c (receive_exception_label): Branch around receiver
	unless new-style exceptions.  Call expand_builtin_setjmp_receiver.
	(start_dynamic_handler): Call expand_builtin_setjmp_setup.
	* expr.h: Update builtin setjmp decls.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9589 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:21:33 +00:00
Oliver Tappe
cf64b0106b [taken from gcc-2.95.3-latest-cvs]
Wed Aug 25 15:27:22 1999  Gavin Romig-Koch  <gavin@cygnus.com>
	* combine.c (nonzero_bits) : Allow single-ly set registers to be
	anywere in the function only if they are pseudos and set before
	being used (not live at the start of the function).
	(num_sign_bit_copies) : Same.
	(get_last_value_validate) : Same.
	(get_last_value) : Same.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9588 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:21:13 +00:00
Oliver Tappe
ab0de848b4 [taken from gcc-2.95.3-latest-cvs]
1999-11-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
     * c-lex.c (yylex): With -Wtraditional, when the ANSI type of an
	    integer constant does not match the traditional type, limit the
	    warnings to cases where the base of the type is ten.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9587 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:20:55 +00:00
Oliver Tappe
0933b55616 [taken from gcc-2.95.3-latest-cvs]
fix bug with __extension__ in pedantic mode.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9586 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:20:37 +00:00
Oliver Tappe
c2c76c0b34 [taken from gcc-2.95.3-7-suse]
This patch fixes handling of weak symbols (see
	http://gcc.gnu.org/ml/gcc-bugs/2001-03/msg00406.html).
	2001-03-13  Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
    * rtl.h (SYMBOL_REF_WEAK): New macro.
    * varasm.c (make_decl_rtl): Set SYMBOL_REF_WEAK for weak symbols.
    * rtlanal.c (rtx_addr_can_trap_p): A weak SYMBOL_REF can trap.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9585 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:20:18 +00:00
Oliver Tappe
e31a22361a [taken from gcc-2.95.3-7-suse]
2001-06-19  Bernd Schmidt  <bernds@redhat.com>
	* regmove.c (optimize_reg_copy_3): Do nothing if previous insn
	carries a REG_EQUIV note.  If it carries REG_EQUAL, delete the
	note.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9584 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:20:00 +00:00
Oliver Tappe
288e868d9b [taken from gcc-2.95.3-7-suse]
save/restore warnings during the use of __extension__


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9583 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:19:43 +00:00
Oliver Tappe
a20bf576e7 [taken from gcc-2.95.3-7-suse]
fix a bug with double-colon not being accepted when it should be


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9582 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:19:24 +00:00
Oliver Tappe
a7498ab1d3 [taken from gcc-2.95.3-7-suse]
2001-08-23  Kurt Garloff  <kurt@garloff.de>
	* integrate.c (function_cannot_inline_p): Reduce max size for
	inlining from 10000 to 2000, double this value (i.e. 4000) for
	leaf functions. Fine tune INTEGRATE_THRESHOLD for -Os.
	* toplev.c (rest_of_compilation): Set current_function_is_leaf
	for function_cannot_inline_p


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9581 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:19:07 +00:00
Oliver Tappe
346d84c900 Initial revision
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9577 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 18:13:23 +00:00