Commit Graph

34275 Commits

Author SHA1 Message Date
Richard Henderson
7426e9a218 ia64.h (ASM_OUTPUT_DWARF_OFFSET): New.
* config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): New.
        (ASM_OUTPUT_DWARF_PCREL): New.
        * config/ia64/hpux.h (ASM_OUTPUT_DWARF_OFFSET): Remove.

From-SVN: r40537
2001-03-15 21:21:42 -08:00
Alexandre Oliva
11bca3093b * cppfiles.c (stack_include_file): Use MAX of sysp.
From-SVN: r40536
2001-03-16 05:19:46 +00:00
Per Bothner
69ca5554fd class.c (make_class_data): The class_dtable_decl (i.e.
* class.c (make_class_data):  The class_dtable_decl (i.e. the
	vtable for Class) should be external, except when compiling Class.

From-SVN: r40534
2001-03-15 20:44:09 -08:00
Steve Ellcey
7e5b99080a Steve Ellcey's ia64-hpux port.
* config.gcc (ia64*-*-hpux*): New case.
        * config/ia64/hpux.h: New file for HP-UX support.
        * config/ia64/t-hpux: New file for HP-UX support.

From-SVN: r40531
2001-03-15 20:39:20 -08:00
Per Bothner
7d32abcdd2 jvspec.c (lang_specific_driver): Fix -C handling.
* jvspec.c (lang_specific_driver):  Fix -C handling.
	Check -save-temps to see if temp @FILE should be deleted.
	Follow-up to/fix for February 16 patch.

From-SVN: r40530
2001-03-15 20:32:05 -08:00
Per Bothner
19f8e04bff verify.c (verify_jvm_instructions): Better error msgs for dup.
* verify.c (verify_jvm_instructions):  Better error msgs for dup.
	(type_stack_dup):  Remove no-longer neded error check.

From-SVN: r40529
2001-03-15 20:16:54 -08:00
Bruce Korb
3b3a1054d9 inclhack.def (irix_stdio_va_list): New.
* fixinc/inclhack.def (irix_stdio_va_list): New.
* fixinc/fixincl.x: Rebuilt.

From-SVN: r40527
2001-03-16 03:28:28 +00:00
Richard Henderson
b923ac06c3 Fix patch merge error.
From-SVN: r40525
2001-03-15 17:25:35 -08:00
Richard Henderson
8e7fa2c825 dwarf2asm.c (dw2_asm_output_offset): Use ASM_OUTPUT_DWARF_OFFSET if provided by the target.
* dwarf2asm.c (dw2_asm_output_offset): Use ASM_OUTPUT_DWARF_OFFSET
        if provided by the target.
        (dw2_asm_output_pcrel): Likewise with ASM_OUTPUT_DWARF_PCREL.
        (dw2_asm_output_addr): New.
        * dwarf2asm.h (dw2_asm_output_addr): Declare.
        * dwarf2out.c (output_cfi): Use it for program addresses.
        (output_call_frame_info, output_die): Likewise.
        (output_aranges, output_line_info): Likewise.

From-SVN: r40524
2001-03-15 17:14:47 -08:00
Bruce Korb
798bdf70ee more rigorous SIGCHLD guarding
From-SVN: r40522
2001-03-16 00:58:40 +00:00
Benjamin Kosnik
243baa2871 tests_flags.in (CXXFLAGS): Link libstdc++ before libsupc++.
2001-03-15  Benjamin Kosnik  <bkoz@redhat.com>

	* tests_flags.in (CXXFLAGS): Link libstdc++ before libsupc++.

From-SVN: r40520
2001-03-15 22:49:46 +00:00
Bryce McKinlay
551bf03cd7 mangle.c (mangle_record_type): Rename 'from_pointer' argument to 'for_pointer'.
* mangle.c (mangle_record_type): Rename 'from_pointer' argument
	to 'for_pointer'. If this type is for a pointer (argument) mangling,
	don't surround the element with 'N..E' if the type name is
	unqualified.

From-SVN: r40519
2001-03-15 22:06:12 +00:00
Michael Meissner
6e8afa9980 fix typo
From-SVN: r40517
2001-03-15 21:41:13 +00:00
Geoffrey Keating
92784908c1 memcheck.exp: Don't try to run these tests on AIX.
2001-03-15  Geoff Keating  <geoff@redhat.com>

	* gcc.c-torture/execute/memcheck/memcheck.exp: Don't try to run these
	tests on AIX.

From-SVN: r40515
2001-03-15 15:55:32 -05:00
Mark Mitchell
d975d8c3d5 sdbout.c (sdbout_symbol): Use DECL_RTL_SET_P, SET_DECL_RTL.
* sdbout.c (sdbout_symbol): Use DECL_RTL_SET_P, SET_DECL_RTL.
	(sdbout_parms): Likewise.

From-SVN: r40514
2001-03-15 20:48:48 +00:00
Michael Meissner
f8a0ba8c2f Silence warning
From-SVN: r40512
2001-03-15 20:24:59 +00:00
Michael Meissner
8860ddab5d Silence warning
From-SVN: r40511
2001-03-15 20:14:33 +00:00
Jeffrey A Law
b216e516b8 reload1.c (reload_cse_simplify_set): For LOAD_EXTEND_OP, do not "widen" a destination that is already wider than a word.
* reload1.c (reload_cse_simplify_set): For LOAD_EXTEND_OP, do not
        "widen" a destination that is already wider than a word.  Also do
        not widen if LOAD_EXTEND_OP is NIL for the given mode.

From-SVN: r40510
2001-03-15 12:55:43 -07:00
Bernd Schmidt
bb2cf916da Use only nonvarying rtxs as known values
From-SVN: r40505
2001-03-15 17:36:43 +00:00
Bernd Schmidt
e06736f44e Remove debugging aids
From-SVN: r40504
2001-03-15 17:02:42 +00:00
John Wehle
42edbfa125 * i960.h (ROUND_TYPE_SIZE_UNIT): Fix typo.
From-SVN: r40503
2001-03-15 16:33:02 +00:00
John Wehle
43fabf7d74 i960.h (i960_maxbitalignment, [...]): Declare.
* i960.h (i960_maxbitalignment,
	i960_last_maxbitalignment): Declare.
	* i960.c (i960_maxbitalignment,
	i960_last_maxbitalignment): Make global.
	(process_pragma): Delete.
	(i960_pr_align, i960_pr_noalign): Move from here ...
	* i960-c.c: ... to this new file.
	* t-960bare (i960-c.o): New rule.
	* t-vxworks960 (i960-c.o): Likewise.
	* config.gcc (i960-*-*): Define c_target_objs and
	cxx_target_objs.

From-SVN: r40502
2001-03-15 16:29:10 +00:00
Bernd Schmidt
a4f4333ade Fix hashing of REG/MEM values.
From-SVN: r40499
2001-03-15 12:59:26 +00:00
Bernd Schmidt
e4027dab42 Fix scheduling abort; stop bits must have selector in range 1..3.
From-SVN: r40497
2001-03-15 11:02:20 +00:00
Mark Mitchell
d1d617880c * varasm.c (assemble_variable): Use DECL_RTL_SET_P.
From-SVN: r40495
2001-03-15 09:58:59 +00:00
Gabriel Dos Reis
15f13f01ed * include/bits/basic_string.tcc (operator+): Fix thinko.
From-SVN: r40493
2001-03-15 08:46:23 +00:00
Joseph Myers
285b923177 update_web_docs: Use /usr/local/bin/texi2html rather than gccadmin's local copy.
* update_web_docs: Use /usr/local/bin/texi2html rather than
	gccadmin's local copy.

From-SVN: r40489
2001-03-15 08:16:32 +00:00
GCC Administrator
6940319403 Daily bump.
From-SVN: r40488
2001-03-15 08:16:09 +00:00
Gabriel Dos Reis
d064d75a33 Correct semantics restrictions checking in throw-expression.
cp/
	Correct semantics restrictions checking in throw-expression.
	* except.c (is_admissible_throw_operand): New function.
	(build_throw): Use it.

testsuite/
	* g++.old-deja/g++.other/eh4.C: New test.

From-SVN: r40487
2001-03-15 07:59:53 +00:00
Neil Booth
ba133c968c cpp.texi: Update documentation for -include and -imacros.
* cpp.texi: Update documentation for -include and -imacros.
	* cppfiles.c (struct include_file): Remove "defined" memeber.
	(find_or_create_entry): Make a copy of the file name, and
	simplify it.
	(open_file): Update to ensure we use the simplified filename.
	(stack_include_file): Don't set search_from.
	(cpp_included): Don't simplify the path name here.
	(find_include_file): New prototype.  Call search_from to
	get the start of the "" include chain.  Don't simplify the
	filenames here.
	(_cpp_execute_include): New prototype.  Move diagnostics to
	do_include_common.  Update.
	(_cpp_pop_file_buffer): Don't set defined.
	(search_from): New prototype.  Use the preprocessor's cwd
	for files included from the command line.
	(read_name_map): Don't simplify the pathname here.
	* cpphash.h (enum include_type): New.
	(struct buffer): Delete search from.  New search_cached.
	(_cpp_execute_include): Update prototype.
	* cppinit.c (do_includes): Use _cpp_execute_include.
	* cpplib.c (do_include_common): New function.
	(do_include, do_include_next, do_import): Use it.

From-SVN: r40486
2001-03-15 07:57:13 +00:00
Mark Mitchell
a3eab6194f decl.c (cp_make_fnname_decl): Set DECL_IGNORED_P on __FUNCTION__ and its ilk.
* decl.c (cp_make_fnname_decl): Set DECL_IGNORED_P on __FUNCTION__
	and its ilk.

From-SVN: r40485
2001-03-15 03:37:14 +00:00
Mark Mitchell
19e7881c81 varasm.c (assemble_alias): Use DECL_ASSEMBLER_NAME...
* varasm.c (assemble_alias): Use DECL_ASSEMBLER_NAME, not the
	contents of the RTL, to determine the name of the object.

	* tree.h (DECL_RTL): Allocate RTL lazily.
	(SET_DECL_RTL): New macro.
	(DECL_RTL_SET_P): Likewise.
	(COPY_DECL_RTL): Likewise.
	(DECL_RTL_IF_SET): Likewise.
	* varasm.c (make_decl_rtl): Add assertions about the kind of
	declaration we are processing.
	* c-decl.c (duplicate_decls): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc.
	(start_decl): Likewise.
	(finish_decl): Likewise.
	* c-semantics.c (emit_local_var): Likewise.
	* calls.c (expand_call): Likewise.
	* dbxout.c (dbxout_symbol): Likewise.
	* emit-rtl.c (unshare_all_rtl): Likewise.
	(unshare_all_decls): Likewise.
	(reset_used_decls): Likewise.
	* expr.c (store_constructor): Likewise.
	(safe_from_p): Likewise.
	(expand_expr): Likewise.
	* function.c (put_var_into_stack): Likewise.
	(instantiate_decls_1): Likewise.
	(assign_parms): Likewise.
	(expand_function_start): Likewise.
	(expand_function_end): Likewise.
	* ggc-common.c (gcc_mark_trees): Likewise.
	* integrate.c (function_cannot_inline_p): Likewise.
	(copy_decl_for_inlining): Likewise.
	(expand_inline_function): Likewise.
	(integrate_parm_decls): Likewise.
	(integrate_decl_tree): Likewise.
	* print-tree.c (print_node): Likewise.
	* reg-stack.c (stack_result): Likewise.
	* stmt.c (label_rtx): Likewise.
	(expand_return): Likewise.
	(expand_decl): Likewise.
	(expand_decl_cleanup): Likewise.
	(expand_anon_union_decl): Likewise.
	* toplev.c (check_global_declarations): Likewise.
	(rest_of_decl_compilation): Likewise.
	* tree.c (simple_cst_equal): Likewise.
	* objc/objc-act.c (generate_static_references): Likewise.

	* class.c (build_clone): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc.
	* cp-tree.h (DECL_IN_MEMORY_P): Likewise.
	* decl.c (duplicate_decls): Likewise.
	(builtin_function): Likewise.
	(build_library_fn): Likewise.
	(build_cp_library_fn): Likewise.
	(check_initializer): Likewise.
	(cp_finish_decl): Likewise.
	* decl2.c (grokfield): Likewise.
	(grok_function_init): Remove #if 0'd code.
	(finish_anon_union): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc.
	* friend.c (do_friend): Likewise.
	* init.c (get_temp_regvar): Likewise.
	* method.c (make_thunk): Likewise.
	* pt.c (tsubst_friend_function): Likewise.
	(tsubst_decl): Likewise.
	(regenerate_decl_from_template): Likewise.
	* semantics.c (genrtl_named_return_value): Likewise.
	(expand_body): Likewise.
	(genrtl_finish_function): Likewise.
	* tree.c (cp_tree_equal): Likewise.

	* com.c (ffecom_member_phase_2): Use COPY_DECL_RTL,
	DECL_RTL_SET_P, etc.
	(duplicate_decls): Likewise.
	(start_decl): Likewise.

	* class.c (build_static_field_ref): Likewise.
	(make_method_value): Likewise.
	(get_dispatch_table): Likewise.

	* decl.c (push_jvm_slot): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc.

From-SVN: r40482
2001-03-15 02:51:03 +00:00
Nicola Pero
b894530e6d thr.c (objc_thread_add): New function.
2001-03-14  Nicola Pero  <n.pero@mi.flashnet.it>

        * thr.c (objc_thread_add): New function.
        (objc_thread_remove): Ditto.
        * objc/thr.h: Declare them.
        * libobjc.def: Mention them.

From-SVN: r40479
2001-03-15 02:18:09 +00:00
Zack Weinberg
84c041a1ff aclocal.m4 (gcc_AC_C_CHARSET, [...]): New macros.
* aclocal.m4 (gcc_AC_C_CHARSET, gcc_AC_C_COMPILE_BIGENDIAN,
	gcc_AC_C_FLOAT_FORMAT): New macros.
	* configure.in: Add AC_PROG_CPP after CC tests;
	gcc_AC_C_CHARSET and gcc_AC_C_FLOAT_FORMAT after the sizeof
	tests; and gcc_AC_C_COMPILE_BIGENDIAN after gcc_AC_C_CHAR_BIT.
	* configure, config.in: Regenerate.

	* config/a29k/xm-a29k.h, config/arc/xm-arc.h,
	config/arm/xm-arm.h, config/c4x/xm-c4x.h,
	config/convex/xm-convex.h, config/d30v/xm-d30v.h,
	config/i370/xm-linux.h, config/i370/xm-oe.h,
	config/ia64/xm-ia64.h, config/m32r/xm-m32r.h,
	config/m68k/xm-m68k.h, config/mips/xm-mips.h,
	config/pa/xm-linux.h, config/pa/xm-pa.h,
	config/rs6000/xm-lynx.h, config/rs6000/xm-mach.h,
	config/rs6000/xm-rs6000.h, config/rs6000/xm-sysv4.h,
	config/sparc/xm-sparc.h, config/vax/xm-vax.h,
	config/we32k/xm-we32k.h: Delete.

	* config/i370/xm-mvs.h, config/m88k/m88k.h,
	config/romp/xm-romp.h, config/rs6000/xm-beos.h,
	config/vax/xm-vms.h: Don't define any of:
	HOST_FLOAT_FORMAT, HOST_EBCDIC, HOST_WORDS_BIG_ENDIAN

	* config/rs6000/aix.h: Define COLLECT_EXPORT_LIST here.

	* config.gcc: Remove references to deleted files.
	(i370-*-opened*): Use i370/xm-mvs.h (which now defines only
	FATAL_EXIT_CODE, which is the same between oe and mvs).

From-SVN: r40478
2001-03-15 00:13:37 +00:00
DJ Delorie
fca097e763 i960.c (i960_function_prologue): Compute size of frame according to number of registers actually saved there.
* config/i960/i960.c (i960_function_prologue): Compute size of
frame according to number of registers actually saved there.

Co-Authored-By: Vladimir Makarov <vmakarov@redhat.com>

From-SVN: r40477
2001-03-14 18:14:10 -05:00
Richard Henderson
e9c0bd54ae * expr.c (emit_move_insn_1): Fix else if around #endif.
From-SVN: r40476
2001-03-14 14:21:55 -08:00
Jan Hubicka
0c56474ec6 md.texi (machine constraints): Document 'Q', 'R', 'e' and 'Z' constraints.
* md.texi (machine constraints): Document 'Q', 'R', 'e' and 'Z'
	constraints.

From-SVN: r40475
2001-03-14 21:40:22 +00:00
Jan Hubicka
6189a57298 i386.c (ix86_cmodel_string, [...]): Define.
* i386.c (ix86_cmodel_string, ix86_cmodel): Define.
	(override_options): Parse cmodel string.
	(x86_64_sign_extended_value, x86_64_zero_extended_value): New.
	* i386.h (TARGET_OPTIONS): Add "cmodel".
	(EXTRA_CONSTRAINT): Recognize 'e' and 'Z'.
	(enum cmodel): New.
	(ix86_cmodel_string, ix86_cmodel): Declare.


	Spot by Matt Kraai:
	* i386.h (GENERAL_REG_P): Add missing REG_P.

From-SVN: r40474
2001-03-14 21:35:58 +00:00
DJ Delorie
4cf6b384ac Fix pathname.
From-SVN: r40473
2001-03-14 16:34:39 -05:00
Benjamin Kosnik
69302d8b5e std_streambuf.h: Remove cached locale facets.
2001-03-14  Benjamin Kosnik  <bkoz@redhat.com>

	libstdc++/2020
	* include/bits/std_streambuf.h: Remove cached locale facets.
	(basic_streambuf::_M_buf_fctype): Remove.
	(basic_streambuf::~basic_streambuf): Remove here.
	(basic_streambuf::basic_streambuf): Same.
	(basic_streambuf::imbue): Same.
	* include/bits/fstream.tcc (filebuf::imbue): Remove _M_buf_fctype.
	* include/bits/std_fstream.h (basic_filebuf::_M_fcvt): Remove.
	(basic_filebuf::~basic_filebuf()): Remove here.
	* include/bits/fstream.tcc (basic_filebuf::basic_filebuf): Same.
	(basic_filebuf::imbue): Same.
	* include/bits/localefwd.h (_Count_ones): Remove.
	(locale::_S_num_categories): Just use 6, since this doesn't
	actually change, ever.
	* include/bits/locale_facets.tcc (has_facet): Simplify.
	(use_facet): Same.
	* testsuite/27_io/filebuf.cc (test06): Add tests.

From-SVN: r40472
2001-03-14 20:46:34 +00:00
Laurynas Biveinis
16a0fe5059 configure.in: Use $gcc_cv_as instead of $as.
* configure.in: Use $gcc_cv_as instead of $as.
       * configure: Regenerated.

From-SVN: r40470
2001-03-14 20:12:50 +00:00
Nick Clifton
01f537aba0 Fix copyright dates
From-SVN: r40469
2001-03-14 19:44:38 +00:00
Neil Booth
7f63897e8f * gcc.dg/cpp/mi1.c: Update.
From-SVN: r40468
2001-03-14 19:36:15 +00:00
Neil Booth
e7182666e6 cppfiles.c (stack_include_file): Only increase the include count if we actually process the file properly...
* cppfiles.c (stack_include_file): Only increase the include
	count if we actually process the file properly, as opposed
	to treating it as length zero.  Only call read_include_file
	if not DO_NOT_REREAD.  Handle the -H include file output
	here.
	(read_include_file): Remove now redundant DO_NOT_REREAD check.
	(cpp_included, find_include_file): Simplify pathnames after
	remapping them.  If remapping, don't use the remapped file
	name's buffer as our scratch buffer.
	(cpp_pop_file_buffer): Replace the multiple include macro
	only if it isn't yet set.
	(read_name_map): Simplify remapped names when reading in.
	(remap_filename): Move code to code path that uses it.
	(_cpp_simplify_pathname): Return the input pointer.
	* cpphash.h (_cpp_simplify_pathname): Update prototype.

From-SVN: r40467
2001-03-14 19:35:08 +00:00
Mark Mitchell
f80022ff3d * expr.c (expand_expr): Revove bogus conditional.
From-SVN: r40464
2001-03-14 18:33:42 +00:00
Tom Tromey
d2dda7177b assignment.xfail: Removed.
* libjava.compile/assignment.xfail: Removed.
	* libjava.compile/assignment_2.xfail: Removed.

From-SVN: r40463
2001-03-14 18:32:51 +00:00
Jan Hubicka
79ce92d772 * expr.c (emit_move_insn_1): Guard PUSH_ROUNDING use by ifdef.
From-SVN: r40462
2001-03-14 18:31:48 +00:00
Jakub Jelinek
9cf218a30f reg-stack.c (stack_result): Unconditionally use FUNCTION_OUTGOING_VALUE resp.
* reg-stack.c (stack_result): Unconditionally use
	FUNCTION_OUTGOING_VALUE resp. FUNCTION_VALUE.

	* g++.old-deja/g++.other/regstack.C: New test.

From-SVN: r40457
2001-03-14 18:59:03 +01:00
Andrew Haley
a58dc194c8 natThrowable.cc (printRawStackTrace): Copy the stackTrace buffer to a correctly aligned pointer array.
2001-03-01  Andrew Haley  <aph@redhat.com>

        * java/lang/natThrowable.cc (printRawStackTrace): Copy the
        stackTrace buffer to a correctly aligned pointer array.

From-SVN: r40456
2001-03-14 15:49:06 +00:00
Jan Hubicka
1a06f5fe3f expr.c (emit_move_insn_1): Split push of complex value when no suitable push instruction exist.
* expr.c (emit_move_insn_1):  Split push of complex value when
	no suitable push instruction exist.

	* i386.md (QImode move/add/shift patterns): Use ANY_QI_REG_P
	instead of QI_REG_P.

From-SVN: r40454
2001-03-14 15:38:55 +00:00