Commit Graph

668 Commits

Author SHA1 Message Date
Oliver Tappe
4616c25941 - we no longer hard-patch ld to not use relocation combination (combreloc),
as the default (using it) seems to generate slightly smaller results and
  not break anything.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@10421 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-13 17:30:14 +00:00
Oliver Tappe
8f27e7c7a5 - we no longer need to hard-patch ld to not allow undefined symbols in
objects, as we now do this via gcc-specs.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@10420 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-13 17:28:20 +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
2bb8527ef7 - updated version for next release
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@10345 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-02 15:50:53 +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
6c343ef4f7 - corrected some minor errors
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9915 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-11 10:20:23 +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
1fd444a297 - fixed buglet with wrong include-folder being used during generation of
html-docs.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9653 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-29 18:44:53 +00:00
Oliver Tappe
acd66be8cd - added build-instructions, readme and distribution support files for gcc.
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9624 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 20:58:17 +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