Commit Graph

42140 Commits

Author SHA1 Message Date
Adam Megacz
9df224790b exception.cc (abort): added static modifier
2002-04-05  Adam Megacz <adam@xwt.org>

        * exception.cc (abort): added static modifier

From-SVN: r51938
2002-04-06 04:20:02 +00:00
Adam Megacz
c950ddc382 exception.cc (abort): added static modifier
2002-04-05  Adam Megacz <adam@xwt.org>

    * exception.cc (abort): added static modifier

From-SVN: r51937
2002-04-06 04:19:10 +00:00
Richard Henderson
5f9fb0e305 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
From-SVN: r51936
2002-04-05 17:14:42 -08:00
Jonathan Wakely
39b945d23b stl_algo.h (unique_copy, [...]): Doxygenate.
2002-04-05  Jonathan Wakely <jw@kayari.org>

	* include/bits/stl_algo.h (unique_copy, __gcd, rotate, rotate_copy,
	random_shuffle, partition, stable_partition, sort, stable_sort,
	partial_sort, partial_sort_copy, nth_element):  Doxygenate.

From-SVN: r51927
2002-04-05 17:58:41 +00:00
David S. Miller
03381059f7 2002-04-05 David S. Miller <davem@redhat.com>
* config/os/gnu-linux/bits/os_defines.h
	(__glibcpp_long_double_bits): Set to 64 on 32-bit Sparc.

From-SVN: r51921
2002-04-05 05:46:50 -08:00
Jakub Jelinek
49f37a0d72 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
From-SVN: r51918
2002-04-05 13:43:40 +02:00
Alexandre Oliva
974a31010f mips.h (ISA_HAS_BRANCHLIKELY, [...]): Disable if TARGET_MIPS16.
* config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.

From-SVN: r51917
2002-04-05 09:26:38 +00:00
Andreas Schwab
a40179bd4f Fix last change: c-common.h instead of c-convert.h.
From-SVN: r51916
2002-04-05 09:06:04 +00:00
Andreas Schwab
2e04a69495 c-convert.c: Include c-convert.h.
* c-convert.c: Include c-convert.h.
	* Makefile.in (c-convert.o): Updated.

From-SVN: r51915
2002-04-05 08:52:58 +00:00
Jakub Jelinek
1f785b7c76 mklibgcc.in: Use separate libgcc.map for each multilib.
* mklibgcc.in: Use separate libgcc.map for each multilib.
	* Makefile.in (distclean): Don't remove libgcc.map here.

From-SVN: r51914
2002-04-05 10:23:36 +02:00
Jakub Jelinek
4d2fb38b47 Makefile.in (s-mlib): Handle --disable-multilib by separate genmultilib invocation.
* Makefile.in (s-mlib): Handle --disable-multilib by separate
	genmultilib invocation.

From-SVN: r51912
2002-04-05 10:20:02 +02:00
GCC Administrator
23dbaedae9 Daily bump.
From-SVN: r51910
2002-04-05 08:17:03 +00:00
Richard Sandiford
bb63e5a07f mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs to avoid clash with Irix header file sys/ucontext.h.
* config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
	to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
	to num_gprs for symmetry.
	* config/mips/mips.c: Adjust accordingly.

From-SVN: r51906
2002-04-05 08:00:32 +00:00
Neil Booth
8ab80eaa69 * ChangeLog: Forgotten commit.
From-SVN: r51903
2002-04-05 06:17:16 +00:00
Alan Modra
a2e9374ac3 t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o Add rules to make null object file.
* config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
	Add rules to make null object file.

From-SVN: r51901
2002-04-05 14:12:17 +09:30
Adam Megacz
c77567790f win32.h (_Jv_platform_close_on_exec): added inline modifier.
2002-04-04  Adam Megacz <adam@xwt.org>

    * include/win32.h (_Jv_platform_close_on_exec): added inline
    modifier.

From-SVN: r51899
2002-04-05 04:22:28 +00:00
Loren J. Rittle
ef3d3c968e Fix cut-n-paste typo.
From-SVN: r51897
2002-04-05 04:18:25 +00:00
Loren J. Rittle
c090488760 configure.host: Add case statement to support generic port properties.
* configure.host: Add case statement to support generic port
	properties.  Add *-*-freebsd* section.

From-SVN: r51896
2002-04-05 04:17:11 +00:00
Mark Wielaard
f74761cd7e mauve-libgcj: Add JLS1.0 and JLS1.1 tags, ignore Character.unicode test.
* mauve-libgcj: Add JLS1.0 and JLS1.1 tags, ignore Character.unicode
        test.
        * testsuite/libjava.mauve/xfails: Remove working tests DoubleTest,
        FloatTest and ObjectStreamClass. Add FAIL for Introspector.jdk11 tests
        that depend on awt code and BufferedByteOutputStream.interrupt.

From-SVN: r51893
2002-04-05 00:47:34 +00:00
Jim Blandy
64d082630e cppmacro.c (cpp_macro_definition): Do not emit spaces after macro formal parameter names.
* cppmacro.c (cpp_macro_definition): Do not emit spaces after
macro formal parameter names.

From-SVN: r51890
2002-04-05 00:12:40 +00:00
David S. Miller
3ca5f4443d 20020404-1.c: New test.
2002-04-04  David S. Miller  <davem@redhat.com>

	* gcc.c-torture/execute/20020404-1.c: New test.

From-SVN: r51889
2002-04-04 15:54:01 -08:00
David S. Miller
aa7634ddf7 calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
2002-04-04  David S. Miller  <davem@redhat.com>

	* calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.

From-SVN: r51886
2002-04-04 15:30:18 -08:00
Richard Henderson
ecc114f755 re PR inline-asm/5099 (m68k-aout/3.0.2/cc1 aborts on asm("movw sr,%0":"=hd"(a));)
PR middle-end/5099
        * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
        Support copies into and out of memory.  Don't accept allows_reg
        and allows_mem as gospel.

From-SVN: r51884
2002-04-04 15:13:36 -08:00
Richard Henderson
c4484b8fe0 re PR rtl-optimization/6165 ([i686] stack frame freed too early)
PR opt/6165
        * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
        (write_dependence_p): Likewise.

From-SVN: r51882
2002-04-04 14:48:16 -08:00
Neil Booth
78ef5b895f c-common.c (truthvalue_conversion): Rename, update.
* c-common.c (truthvalue_conversion): Rename, update.
	* c-common.h (c_common_truthvalue_conversion): New.
	* c-convert.c (convert): Update.
	* c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
	* c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
	* c-typeck.c (build_binary_op, build_unary_op,
	build_conditional_expr): Update.
	* fold-const.c (constant_boolean_node, fold): Use langhook.
	* langhooks-def.h (LANGHOOK_INITIALIZER): Update.
	* langhooks.h (struct lang_hooks): New hook.
	* stmt.c (expand_decl_cleanup): Use langhook.
	* tree.h (truthvalue_conversion): Remove.
ada:
	* gigi.h (truthvalue_conversion): Rename.
	* misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
	* trans.c (tree_transform): Update.
	* utils2.c (truthvalue_conversion): Rename, update.
	(build_binary_op, build_unary_op): Update.
cp:
	* cp-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
	* cvt.c: Update comment.
	* init.c (expand_cleanup_for_base): Update.
	* semantics.c (finish_parenthesized_expr): Update.
	* typeck.c (cp_truthvalue_conversion): Update.
f:
	* com.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
	(truthvalue_conversion): Rename.  Update.  Make static.
	(ffecom_truth_value): Update.
java:
	* expr.c (truthvalue_conversion): Rename.  Update.
	(expand_compare): Update.
	* java-tree.h (java_truthvalue_conversion): New.
	* lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
objc:
	* objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.

From-SVN: r51880
2002-04-04 22:19:58 +00:00
Richard Henderson
3900216066 predict.c (estimate_bb_frequencies): Do frequency calculation with a volatile temporary.
* predict.c (estimate_bb_frequencies): Do frequency calculation
        with a volatile temporary.

From-SVN: r51879
2002-04-04 13:38:40 -08:00
Benjamin Kosnik
677b3ae39a via gawrilow@math.tu-berlin.de
2002-04-04  Benjamin Kosnik  <bkoz@redhat.com>

	libstdc++/3457
	via gawrilow@math.tu-berlin.de
	* acinclude.m4 (version_specific_libs): Fix combo usage with
	--with-gxx-include-dir.
	* aclocal.m4: Regenerate.
	* configure: Same.

From-SVN: r51875
2002-04-04 21:33:33 +00:00
Ulrich Weigand
f53ebe71d2 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
From-SVN: r51874
2002-04-04 21:33:25 +00:00
Jeff Sturm
0c0b87addd v8.S: Add unwind info.
* src/sparc/v8.S: Add unwind info.
	* src/sparc/v9.S: Likewise.

From-SVN: r51873
2002-04-04 21:19:13 +00:00
Jakub Jelinek
15e0ecab0b re PR c++/6119 (sparc-sun-solaris2.7 gcc-3.1 extra g++ testsuite failure w/-fpic|-fPIC)
PR c++/6119
	* final.c (final_start_function): Don't bump profile_label_no here...
	(final_end_function): ...but here.

From-SVN: r51872
2002-04-04 23:04:09 +02:00
Jakub Jelinek
ffd386b033 sparc.md (pic): New attribute.
* config/sparc/sparc.md (pic): New attribute.
	(do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
	into stack slots.
	(split after do_builtin_setjmp_setup): New.

From-SVN: r51870
2002-04-04 22:57:53 +02:00
Loren J. Rittle
3c55704ebb gcconfig.h: Add support for an unmapped memory hole between the end of the initialized data...
* include/private/gcconfig.h: Add support for an unmapped
	memory hole between the end of the initialized data segment
	and the start of the BSS on FreeBSD/i386.

From-SVN: r51867
2002-04-04 20:49:38 +00:00
Laurent Guerby
a71742a8e7 make.adb: Implement -margs, remove restriction about file name placement.
2002-04-04  Laurent Guerby  <guerby@acm.org>

	* make.adb: Implement -margs, remove restriction about file name placement.
	* makeusg.adb: Documentation update.
	* Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
	* Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.

From-SVN: r51866
2002-04-04 20:19:36 +00:00
Jakub Jelinek
a4fa73f359 re PR target/6123 (__pic__/__PIC__ not defined when -fpic/-fPIC is specified)
PR c/6123
	* gcc.dg/20020312-2.c: Do not declare global register variable
	if __PIC__ or __pic__ is defined.

From-SVN: r51859
2002-04-04 14:47:41 +02:00
Jakub Jelinek
8b156b3e87 re PR fortran/6106 (sparc-sun-solaris2.7 gcc-3.1 extra g77 testsuite failures w/-m64)
PR fortran/6106
	* config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
	change.

From-SVN: r51857
2002-04-04 14:27:27 +02:00
Bryce McKinlay
1d8f2fd8f2 Arrays.java (qsort): Fix off-by-one errors and use of incorrect "hi" value when count > 40.
* java/util/Arrays.java (qsort): Fix off-by-one errors and use of
	incorrect "hi" value when count > 40.

From-SVN: r51854
2002-04-04 12:58:38 +01:00
Jakub Jelinek
014c0998cb sparc.c (sparc_va_arg): Adjust va_list by UNITS_PER_WORD for zero sized aggregates.
* config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
	UNITS_PER_WORD for zero sized aggregates.

From-SVN: r51853
2002-04-04 13:37:32 +02:00
Richard Earnshaw
31956228bd arm-asm.c: Run this test on ARM chips, not SPARC.
* gcc.dg/arm-asm.c: Run this test on ARM chips, not SPARC.  Use
__asm__ so that it works correctly even if -ansi -pedantic-errors.

From-SVN: r51851
2002-04-04 09:35:01 +00:00
Mark Wielaard
2801df0ed6 Modifier.java (toString(int,StringBuffer)): Fix ordering.
* java/lang/reflect/Modifier.java (toString(int,StringBuffer)): Fix
        ordering.

From-SVN: r51848
2002-04-04 08:32:28 +00:00
GCC Administrator
257b325b51 Daily bump.
From-SVN: r51847
2002-04-04 08:18:08 +00:00
Neil Booth
82a4b02502 utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>

	* utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
	(builtin_function): Similarly.

From-SVN: r51843
2002-04-04 09:48:44 +02:00
David S. Miller
4d8611d970 gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new one-character spec for this, just use %(link_gcc_c_sequence).
2002-04-03  David S. Miller  <davem@redhat.com>

	* gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
	one-character spec for this, just use %(link_gcc_c_sequence).

From-SVN: r51842
2002-04-03 23:21:00 -08:00
David S. Miller
b03ad99df1 crtfastmath.c (FPRS_NS): Delete bogus little-endian handling.
2002-04-03  David S. Miller  <davem@redhat.com>

	* config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
	handling.

From-SVN: r51840
2002-04-03 23:13:38 -08:00
Benjamin Kosnik
a9bb75a7e0 As per DR 184, libstdc++/3139
2002-04-03  Benjamin Kosnik  <bkoz@redhat.com>

        As per DR 184, libstdc++/3139
        * include/std/std_limits.h (__glibcpp_bool_digits): Change to 1.
        (numeric_limits<bool>::is_iec559): False.
        (numeric_limits<bool>::is_modulo): False.

	* testsuite/27_io/ios_init.cc: Add instantiations.

From-SVN: r51838
2002-04-04 05:32:59 +00:00
John David Anglin
823fbbce5c pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
* pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
	(DWARF_FRAME_RETURN_COLUMN): Move.
	(ASM_PREFERRED_EH_DATA_FORMAT): Define.
	(ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
	* pa.c (except.h, predict.h): Include.
	(FRP): Delete.
	(store_reg_modify, set_reg_plus_d): Revise prototypes.
	(output_ascii): Add cast.
	(store_reg_modify): Revise to add frame notes.
	(set_reg_plus_d): Likewise.
	(compute_frame_size): Include space for eh data registers in frame if
	the current function calls eh_return.
	(hppa_expand_prologue):  Ensure register %r2 is saved if the current
	function calls eh_return.  Save eh data registers if the current
	function calls eh_return.  Fix code to add frame notes.  Emit
	blockage to prevent insns with frame notes being scheduled in the
	delay slot of calls.
	(hppa_expand_epilogue): Restore eh data registers and do final stack
	adjustment if the current function calls eh_return.  Don't add frame
	notes.
	(output_call): Revise for change in length of call insn.  Don't do
	return pointer adjustment for an unconditional jump in the delay slot
	of a call when using frame notes.
	* pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
	(EH_RETURN_HANDLER_RTX): Use saved value on stack.
	(ARG_POINTER_CFA_OFFSET): Define.
	* pa.md (return_external_pic): New pattern.
	(prologue): Correct formatting.  Use return_external_pic if current
	function calls eh_return.
	(call_internal_symref, call_value_internal_symref,
	sibcall_internal_symref, sibcall_value_internal_symref): Change default
	lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
	respectively.
	(exception_receiver): Use hppa_pic_save_rtx () to restore pic register.

	* configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
	list of targets to check using "nop" insn.
	* configure: Rebuilt.

From-SVN: r51836
2002-04-04 02:48:18 +00:00
Alan Modra
4078e2240c * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
From-SVN: r51835
2002-04-04 12:08:46 +09:30
David S. Miller
bbd7687d3e gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c library sequence passed to the linker.
2002-04-03  David S. Miller  <davem@redhat.com>

	* gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
	library sequence passed to the linker.
	(LINK_COMMAND_SPEC): Use it.
	* doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
	a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
	* config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.

From-SVN: r51834
2002-04-03 17:15:40 -08:00
Jason Merrill
eb81f6ff28 re PR c++/5118 (c4x-g++ Fails on Templates)
PR c++/5118
        * class.c (get_vfield_name): Use the constructor_name.

From-SVN: r51830
2002-04-03 19:39:22 -05:00
Kaveh R. Ghazi
71fad6149e linkage.exp: Update last change to handle sparc*-, not just sparc-.
* gcc.misc-tests/linkage.exp: Update last change to handle
	sparc*-, not just sparc-.

From-SVN: r51828
2002-04-04 00:18:02 +00:00
Jason Merrill
659e5a7aa9 re PR c++/5636 (gcc-3.0.3, memory leakage: function that take a string as parameter will not call local variable destructors if exception is thrown.)
PR c++/5636
        * tree.h (CLEANUP_EH_ONLY): New macro.
        * stmt.c (expand_decl_cleanup_eh): New fn.
        (expand_cleanups): Check CLEANUP_EH_ONLY.
        * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
        Use expand_decl_cleanup_eh.
        (expand_stmt): Adjust.
        * c-common.h: Adjust prototype.
        * cp/semantics.c (nullify_returns_r): Just set CLEANUP_EH_ONLY on
        cleanup for nrv.

        * except.c (struct eh_status): Remove protect_list.
        (begin_protect_partials, end_protect_partials): Remove.
        (add_partial_entry): Remove.
        * except.h: Remove prototypes.

        * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
        expand_decl_cleanup_eh.

cp/:
        * semantics.c (finish_eh_cleanup): New fn.
        * cp-tree.h: Add prototype.
        * init.c (perform_member_init, expand_cleanup_for_base): Use
        finish_eh_cleanup.
        * cp-tree.def (SUBOBJECT, CTOR_STMT): Remove.
        * cp-tree.h: Remove references.
        * decl.c (begin_constructor_body, end_constructor_body): Likewise.
        * dump.c (cp_dump_tree): Likewise.
        * pt.c (tsubst_expr): Likewise.
        * semantics.c (genrtl_ctor_stmt, genrtl_subobject): Remove.
        (cp_expand_stmt): Remove handling of CTOR_STMT and SUBOBJECT.
        * tree.c (cp_statement_code_p): Likewise.

        * init.c (build_new_1): Set CLEANUP_EH_ONLY on deleting cleanup.

From-SVN: r51827
2002-04-03 19:11:00 -05:00