Commit Graph

35060 Commits

Author SHA1 Message Date
Mark Mitchell
b2a8b02619 regrename.c (regrename_optimize): Do not rename registers to leaf registers.
* regrename.c (regrename_optimize): Do not rename registers to
	leaf registers.

From-SVN: r42066
2001-05-14 07:56:57 +00:00
Mark Mitchell
ce29729adf * lib/objc.exp: Add -lposix4 on Solaris 2.6 and Solaris 2.7.
From-SVN: r42065
2001-05-14 07:49:11 +00:00
GCC Administrator
7f09a9dcbc Daily bump.
From-SVN: r42063
2001-05-14 07:16:39 +00:00
Alexandre Oliva
c78df6e155 rtl.texi (CALL_INSN_FUNCTION_USAGE): Note that (and when) it may contain MEMs.
* rtl.texi (CALL_INSN_FUNCTION_USAGE): Note that (and when) it may
contain MEMs.  Remove useless distinction about clobbering
registers.

From-SVN: r42060
2001-05-14 05:11:38 +00:00
Geoffrey Keating
e44713f730 rs6000.h (EXCEPTION_SECTION): Move to...
* config/rs6000/rs6000.h (EXCEPTION_SECTION): Move to...
	* config/rs6000/aix.h (EXCEPTION_SECTION): ... here.
	* config/rs6000/sysv4.h (CONST_SECTION_ASM_OP): Delete.
	(ASM_PREFERRED_EH_DATA_FORMAT): Define.
	(EXCEPTION_SECTION): Define.

From-SVN: r42058
2001-05-14 03:40:04 +00:00
Zack Weinberg
3fe68d0af3 libgcc2.c, libgcc2.h: Restore __eprintf.
* libgcc2.c, libgcc2.h: Restore __eprintf.  Label as used for
	binary backward compat only.
	* Makefile.in (LIB2FUNCS_ST): New.  Put _eprintf here, not
	in LIB2FUNCS.  Pass it to mklibgcc.
	* mklibgcc.in: Handle LIB2FUNCS_ST.

	* Makefile.in (installdirs): Don't create $(gcc_tooldir).

From-SVN: r42057
2001-05-14 02:46:22 +00:00
Benjamin Kosnik
8b9df536ae g++.exp: Use testsuite_flags.
2001-05-13  Benjamin Kosnik  <bkoz@redhat.com>

	* lib/g++.exp: Use testsuite_flags.

From-SVN: r42056
2001-05-14 01:27:23 +00:00
Benjamin Kosnik
c6192d882f Switch over to new harness.
2001-05-13   Benjamin Kosnik  <bkoz@redhat.com>

	Switch over to new harness.
	* testsuite_flags.in: Tweaks via Gaby.
	* testsuite/Makefile.am: Change tool to libstdc++-v3.
	(EXPECT): Quote directly.
	(RUNTEST): Same.
	* configure.in: Output testsuite_flags.
	* acinclude.m4: Substitute src, bld, and prefix dirs.
	Remove glibcpp_expect, glibcpp_runtestflags.
	* Makefile.am (RUNTESTFLAGS): Pass this down to subdirs.
	* mkcheck.in: Port to new interface.

	* aclocal.m4: Regerate.
	* configure: Regnerate.
	* Makefile.in: Regnerate.
	* */Makefile.in: Regenerate.

	* tests_flags.in: Remove.
	* testsuite/lib/libstdc++.exp: Remove.
	* testsuite/libstdc++.tests/tests.exp: Remove.

From-SVN: r42055
2001-05-14 01:15:36 +00:00
Benjamin Kosnik
602928d139 Switch over to new harness.
2001-05-13   Benjamin Kosnik  <bkoz@redhat.com>

	Switch over to new harness.
	* testsuite_flags.in: Tweaks via Gaby.
	* testsuite/Makefile.am: Change tool to libstdc++-v3.
	(EXPECT): Quote directly.
	(RUNTEST): Same.
	* configure.in: Output testsuite_flags.
	* acinclude.m4: Substitute src, bld, and prefix dirs.
	Remove glibcpp_expect, glibcpp_runtestflags.
	* Makefile.am (RUNTESTFLAGS): Pass this down to subdirs.
	* mkcheck.in: Port to new interface.

	* aclocal.m4: Regerate.
	* configure: Regnerate.
	* Makefile.in: Regnerate.
	* */Makefile.in: Regenerate.

	* tests_flags.in: Remove.
	* testsuite/lib/libstdc++.exp: Remove.

From-SVN: r42054
2001-05-14 01:07:38 +00:00
Alexandre Oliva
0fd91e0afb acinclude.m4: Use ../libtool.m4.
* acinclude.m4: Use ../libtool.m4.
* configure.in: Use ${zlib_basedir}/.. for AC_CONFIG_AUX_DIR.
* acinclude.m4, configure, Makefile.in: Rebuilt.

From-SVN: r42052
2001-05-13 22:31:24 +00:00
Alexandre Oliva
d048104204 configure.target: Remove detection of AIX pthread multilib, now obtained from `gcc -v'.
* configure.target: Remove detection of AIX pthread multilib, now
obtained from `gcc -v'.

From-SVN: r42049
2001-05-13 22:17:11 +00:00
Alexandre Oliva
008355a6ed tm.texi (THREAD_MODEL_SPEC): Document it.
* tm.texi (THREAD_MODEL_SPEC): Document it.
* gcc.c (main): Use it.
* config/rs6000/aix43.h (THREAD_MODEL_SPEC): Define it.
* config/rs6000/aix51.h (THREAD_MODEL_SPEC): Likewise.

From-SVN: r42048
2001-05-13 22:17:02 +00:00
Franz Sirl
ff0b6b9921 rtl.h (SYMBOL_REF_WEAK): New macro.
2001-05-13  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

        * rtl.h (SYMBOL_REF_WEAK): New macro.
        * rtlanal.h (rtx_addr_can_trap): Use it, a weak SYMBOL_REF can trap.
        * varasm.c (make_decl_rtl): Mark SYMBOL_REF weak if necessary.
        * rtl.texi (SYMBOL_REF_WEAK): Document it.
        * gcc.texi: Remove wrong description.

From-SVN: r42046
2001-05-13 21:16:58 +00:00
Mark Mitchell
6f22140248 * gcc.c-torture/execute/ieee/rbug.x: XFAIL FreeBSD 4.x.
From-SVN: r42044
2001-05-13 19:47:20 +00:00
Mark Mitchell
d9835ae8a3 Makefile.in (STAMP): New macro.
* Makefile.in (STAMP): New macro.
	Replace all uses of `touch' with $(STAMP).
	* fixinc/Makefile.in: Likewise.

	* Make-lang.in: Replace all uses of `touch' with $(STAMP).

	* Makefile.in.in (STAMP): New macro.
	Replace all uses of `touch' with $(STAMP).

From-SVN: r42041
2001-05-13 19:37:13 +00:00
Neil Booth
64f0ba0a3e * ChangeLog: Add omitted changelog.
From-SVN: r42039
2001-05-13 13:55:05 +00:00
Richard Kenner
7f2749d411 configure.in: ldopen is never in -lexc, so don't test for it.
* configure.in: ldopen is never in -lexc, so don't test for it.
	Add test for exc_resume in -lexc for Ada.
	* configure: Regenerated.

From-SVN: r42037
2001-05-13 07:25:55 -04:00
John David Anglin
fca8e37bb1 mkcheck.in (setup_size_command): Use Berkeley "-B" mode with GNU size.
2001-05-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>

	* mkcheck.in (setup_size_command): Use Berkeley "-B" mode with GNU
	size.  Add hpux case for HP size.

From-SVN: r42036
2001-05-13 11:08:57 +00:00
GCC Administrator
c7d9e0a6b4 Daily bump.
From-SVN: r42034
2001-05-13 07:16:37 +00:00
Richard Henderson
f17f18980b java-tree.def (JAVA_EXC_OBJ_EXPR): New.
* java-tree.def (JAVA_EXC_OBJ_EXPR): New.
        * expr.c (java_lang_expand_expr): Expand it.
        (process_jvm_instruction): Build JAVA_EXC_OBJ_EXPR instead of
        calling build_exception_object_ref.
        * parse.y (catch_clause_parameter): Likewise.
        (build_dot_class_method): Likewise.
        (try_reference_assignconv): Likewise.
        * check-init.c (check_init): Check JAVA_EXC_OBJ_EXPR not EXC_PTR_EXPR.
        * jcf-write.c (generate_bytecode_insns): Likewise.

From-SVN: r42030
2001-05-12 21:59:33 -07:00
Richard Henderson
d9c219593b Fix date last entry.
From-SVN: r42029
2001-05-12 21:34:20 -07:00
Richard Henderson
b627d6fe5d dwarf2asm.c (size_of_encoded_value): New function.
* dwarf2asm.c (size_of_encoded_value): New function.
        * dwarf2asm.h: Declare it.
        * except.c (output_function_exception_table): Align the TType
        array only as wide as the encoding.

From-SVN: r42028
2001-05-12 21:30:09 -07:00
Zack Weinberg
1f730ff7b6 except.c (choose_personality_routine): Export.
gcc/cp:
	* except.c (choose_personality_routine): Export.  Add
	explanatory comment.  Take an enum languages, not a boolean.
	(initialize_handler_parm): Adjust to match.
	* cp-tree.h: Prototype choose_personality_routine.
	* lex.c (handle_pragma_java_exceptions): New function.
	(init_cp_pragma): Register #pragma GCC java_exceptions.

gcc:
	* extend.texi: Document #pragma GCC java_exceptions.

libjava:
	* Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
	* Makefile.in: Regenerate (by hand).
	* include/jvm.h: Add #pragma GCC java_exceptions at top of file.
	* doc/cni.sgml: Document #pragma GCC java_exceptions.

From-SVN: r42027
2001-05-13 01:28:18 +00:00
Richard Henderson
c9ec8f321f Add per-function commentary.
From-SVN: r42003
2001-05-12 11:42:45 -07:00
Neil Booth
a3eaca15d9 c-parse.in (bison parser, [...]): Remove uses of doing_objc_thang.
* c-parse.in (bison parser, init_reswords): Remove uses of
	doing_objc_thang.
	* c-tree.h (doing_objc_thang): Remove.

From-SVN: r42000
2001-05-12 17:58:41 +00:00
Benjamin Kosnik
c66ce1f5b7 testsuite_flags.in: New, simplified interface.
2001-05-11   Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite_flags.in: New, simplified interface.
	* testsuite/lib/libstdc++-v3-dg.exp: New test harness.
	* testsuite/libstdc++-v3.dg: Add.
	* testsuite/libstdc++-v3.dg/dg.exp: Add.

From-SVN: r41999
2001-05-12 17:49:16 +00:00
Benjamin Kosnik
70769376db testsuite_flags.in: New, simplified interface.
2001-05-11   Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite_flags.in: New, simplified interface.
	* testsuite/lib/libstdc++-v3-dg.exp: New test harness.
	* testsuite/libstdc++-v3.dg: Add.
	* testsuite/libstdc++-v3.dg/dg.exp: Add.

	* testsuite/Makefile.am: Change tool to libstdc++-v3.
	* configure.in: Output testsuite_flags.
	* acinclude.m4: Substitute src, bld, and prefix dirs.

From-SVN: r41998
2001-05-12 17:45:46 +00:00
Benjamin Kosnik
04d930e6d4 *.cc: Remove spaces, make sure testcases return zero.
2001-05-11   Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/*/*.cc: Remove spaces, make sure testcases return zero.
	* testsuite/config/default.exp: Update bugs email address.

From-SVN: r41997
2001-05-12 16:53:08 +00:00
Neil Booth
90e0c41055 dwarfout.c (dwarfout_init): Add cast.
* dwarfout.c (dwarfout_init): Add cast.
	* sched-deps.c (sched_analyze_insn): Remove unused vars.
	* unwind-dw2-fde.c (_Unwind_Find_FDE): Flag unused parameter so.
cp:
	* method.c (build_mangled_C99_name): Remove unused prototype.

From-SVN: r41996
2001-05-12 16:16:23 +00:00
Neil Booth
800914c30a cpplex.c (_cpp_lex_token): Ensure we warn at most once about files not ending in newlines.
* cpplex.c (_cpp_lex_token): Ensure we warn at most once
	about files not ending in newlines.

From-SVN: r41995
2001-05-12 16:02:01 +00:00
Alexandre Oliva
92928d71f4 * config/arm/arm.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Use delta.
From-SVN: r41993
2001-05-12 14:58:47 +00:00
Alexandre Oliva
cb7fdde2d7 cp-tree.h (ptrmemfunc_vbit_where_t): Declare type.
* cp-tree.h (ptrmemfunc_vbit_where_t): Declare type.
* typeck.c (get_member_function_from_ptrfunc,
build_ptrmemfunc, expand_ptrmemfunc_cst): Take
TARGET_PTRMEMFUNC_VBIT_LOCATION into account.

From-SVN: r41990
2001-05-12 10:41:31 +00:00
Alexandre Oliva
f3c55c97be defaults.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
* defaults.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
* tm.texi (TARGET_PRTMEMFUNC_VBIT_LOCATION): Document.

From-SVN: r41989
2001-05-12 10:41:21 +00:00
Alexandre Oliva
18ae7f6399 Reverted Geoff Keating's 2001-05-03's patch.
From-SVN: r41988
2001-05-12 10:37:48 +00:00
GCC Administrator
a45b480e68 Daily bump.
From-SVN: r41986
2001-05-12 07:16:09 +00:00
Ira Ruben
401deb20e2 * cp-tree.h (C_EXP_ORIGINAL_CODE): Delete; declared in c-common.h.
From-SVN: r41985
2001-05-12 06:36:57 +00:00
Richard Henderson
5a0bf1eed1 configure.in (ia64-*): Don't set SYSDEP_SOURCES.
* configure.in (ia64-*): Don't set SYSDEP_SOURCES.
        * java/lang/natThrowable.cc: Don't use __ia64_backtrace.

From-SVN: r41984
2001-05-11 23:25:03 -07:00
Richard Henderson
5f2fa73083 exception.cc: Include unwind-pe.h.
* exception.cc: Include unwind-pe.h.  Remove all pointer
        encoding logic.

From-SVN: r41983
2001-05-11 23:17:31 -07:00
Richard Henderson
817e741108 eh_personality.cc: Include unwind-pe.h.
* libsupc++/eh_personality.cc: Include unwind-pe.h.  Remove
        all pointer encoding logic.
        (struct lsda_header_info): Add ttype_base.
        (get_ttype_entry): Use it instead of a context.
        (check_exception_spec): Likewise.
        (PERSONALITY_FUNCTION): Initialize ttype_base.  Store it in
        the c++ exception header for __cxa_call_unexpected.
        (__cxa_call_unexpected): Use it.

From-SVN: r41982
2001-05-11 23:16:21 -07:00
Richard Henderson
2a1ee410ce defaults.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
* defaults.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
	* dwarf2asm.c (dw2_force_const_mem, dw2_output_indirect_constant_1,
	dw2_output_indirect_constants, dw2_asm_output_encoded_addr_rtx): New.
	* dwarf2asm.h (dw2_asm_output_encoded_addr_rtx): Prototype.
	(dw2_output_indirect_constants): Prototype.
	* dwarf2out.c (dwarf2out_begin_prologue): Generate
	current_function_func_begin_label if we'll need it for EH.  Exit
	early for IA64_UNWIND_INFO.
	* except.c: Get DW_EH_PE_* defines from dwarf2.h.
	(eh_data_format_name): Update for indirect references.
	(output_function_exception_table): Care for IA64_UNWIND_INFO.
	Handle ASM_PREFERRED_EH_DATA_FORMAT.
	* except.h (MUST_USE_SJLJ_EXCEPTIONS): IA64_UNWIND_INFO needn't
	define HAVE_eh_return etc.
	* final.c (final_start_function): Always call dwarf2out_begin_prologue.
	(final_end_function): Don't call output_function_exception_table.
	* toplev.c (compile_file): Call dw2_output_indirect_constants.
	(rest_of_compilation): Invoke output_function_exception_table
	for ia64 before assemble_end_function.
	* tm.texi (ASM_PREFERRED_EH_DATA_FORMAT): Document.
	(ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Document.

	* unwind-dw2.c (_Unwind_GetTextRelBase, _Unwind_GetDataRelBase): New.
	* unwind.h: Declare them.
	* libgcc-std.ver: Export them.
	* unwind-pe.h: New file.

	* config/alpha/elf.h (ASM_PREFERRED_EH_DATA_FORMAT): New.

	* config/ia64/fde-glibc.c: Use "struct unw_table_entry"
	instead of "fde".
	(find_fde_for_dso): Extract DT_PLTGOT.
	(_Unwind_FindTableEntry): Rename from __ia64_find_fde; return
	the segment and gp as well.
	* config/ia64/frame-ia64.c: Remove file.
	* config/ia64/frame-ia64.h: Remove file.
	* config/ia64/unwind-ia64.c: New file.
	* config/ia64/unwind-ia64.h: New file.
	* config/ia64/ia64.h (ASM_OUTPUT_EH_CHAR): Remove.
	(ASM_OUTPUT_EH_SHORT, ASM_OUTPUT_EH_INT): Remove.
	(ASM_OUTPUT_EH_DOUBLE_INT): Remove.
	(ASM_PREFERRED_EH_DATA_FORMAT): New.
	(ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): New.
	(IA64_UNWIND_INFO): Re-enable.
	(HANDLER_SECTION): Remove.
	(EH_RETURN_DATA_REGNO): New.
	* config/ia64/ia64.md (exception_receiver): Remove.
	* config/ia64/t-glibc (LIB2ADDEH): Re-enable.
	* config/ia64/t-ia64 (LIB2ADDEH): Re-enable.

From-SVN: r41981
2001-05-11 23:03:20 -07:00
Richard Henderson
f12f25a7f6 ia64.c (group_barrier_needed_p): Don't allow calls and jumps to be bundled together.
* config/ia64/ia64.c (group_barrier_needed_p): Don't allow
        calls and jumps to be bundled together.
        (ia64_reorg): Emit a break after a noreturn call that ends
        a function.
        * config/ia64/ia64.md (break_f): New.

From-SVN: r41979
2001-05-11 22:21:09 -07:00
Neil Booth
c8a9607017 c-lex.c (lex_charconst): Convert into a simple wrapper around cpp_interpret_charconst...
* c-lex.c (lex_charconst): Convert into a simple wrapper
	around cpp_interpret_charconst, to which most of the code
	body is moved.
	* cppexp.c (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE,
	MAX_LONG_TYPE_SIZE, MAX_INT_TYPE_SIZE, MAX_CHAR_TYPE_MASK,
	MAX_WCHAR_TYPE_MASK, parse_escape, parse_charconst): Remove.
	(lex): Use cpp_interpret_charconst.
	* cpplex.c (parse_escape, read_ucs, cpp_interpret_charconst,
	hex_digit_value): New functions.
	(MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): New macros.
	* cpplib.h (cpp_interpret_charconst): New prototype.
	* Makefile.in: Update.

From-SVN: r41978
2001-05-11 23:48:21 +00:00
Dean Wakerley
f42974dc81 install.texi: New file.
* doc/install.texi: New file. Converted to texinfo from the HTML
	documentation in wwwdocs/htdocs/install.

From-SVN: r41977
2001-05-11 22:10:54 +00:00
Jeffrey A Law
8598a9a232 gcse.c (insert_insn_end_bb): Do not search for assignments to non-argumment registers that are mentioned in...
* gcse.c (insert_insn_end_bb): Do not search for assignments to
        non-argumment registers that are mentioned in CALL_INSN_FUNCTION_USAGE.

From-SVN: r41976
2001-05-11 16:07:58 -06:00
Jeffrey A Law
37ff4d286d toplev.c (compile_file): Move comment for opening output file to just before the code that opens the...
* toplev.c (compile_file): Move comment for opening output
        file to just before the code that opens the output file.

From-SVN: r41975
2001-05-11 16:00:23 -06:00
Jakub Jelinek
3721581af1 regmove.c (regmove_optimize): Suppress the optimization for unchanging destination register.
* regmove.c (regmove_optimize): Suppress the optimization for
	unchanging destination register.  Add comment above function.

From-SVN: r41974
2001-05-11 22:08:04 +02:00
Zack Weinberg
fecd6201e6 Makefile.in: Exterminate all references to assert.h.
* Makefile.in: Exterminate all references to assert.h.
	* cross-make: Likewise.
	* assert.h: Delete.
	* configure.in: Correct commentary.
	* configure: Regenerate.
	* po/POTFILES.in: Remove assert.h.

	* libgcc-std.ver, libgcc2.c, libgcc2.h, sys-protos.h:
	Remove __eprintf.

	* config/t-freebsd, config/t-linux, config/t-linux-aout,
	config/t-netbsd, config/t-rtems, config/x-linux,
	config/i386/t-beos, config/mcore/t-mcore, config/mcore/t-mcore-pe:
	No need to override INSTALL_ASSERT_H.

	* fixinc/fixinc.dgux, fixinc/fixinc.interix, fixinc/fixinc.ptx,
	fixinc/fixinc.svr4, fixinc/fixinc.winnt, fixinc/fixinc.wrap,
	fixinc/fixincl.sh: Don't install assert.h into objdir/include.

From-SVN: r41972
2001-05-11 17:03:02 +00:00
John David Anglin
e7288e1888 * gcc.c-torture/execute/ieee/ieee.exp: Don't run ieee tests on VAX.
From-SVN: r41971
2001-05-11 16:56:29 +00:00
Mark Mitchell
c873862c4f * lib/objc.exp: Add -lposix4 on Solaris 2.8.
From-SVN: r41968
2001-05-11 16:20:54 +00:00
Graham Stott
99dc53068f * combine.c (simplify_comparison): Fix typo.
From-SVN: r41967
2001-05-11 16:15:49 +00:00