Commit Graph

32024 Commits

Author SHA1 Message Date
Nathan Sidwell
2c92b94d0f call.c (build_over_call): Use VOID_TYPE_P.
cp:
	* call.c (build_over_call): Use VOID_TYPE_P. Don't die on
	incomplete return type.
testsuite:
	* g++.old-deja/g++.other/crash38.C: New test.

From-SVN: r37872
2000-11-30 09:36:29 +00:00
Jeff Law
47f18b4f13 Daily bump.
From-SVN: r37871
2000-11-30 01:45:07 -07:00
Jeff Law
255b8a498d configure.in: Reorganize handling of *-*-gnu*, to share target specific make details with Linux.
* configure.in: Reorganize handling of *-*-gnu*, to share target
	specific make details with Linux.  Update comments to clarify
        the distinction between GNU/Linux and GNU/Hurd.
	* config/t-gnu (LIBGCC1, CROSS_LIBGCC1, CRTSTUFF_T_CFLAGS,
	TARGET_LIBGCC2_CFLAGS): Remove.  We now use the settings from
	config/t-linux for the Hurd.

From-SVN: r37870
2000-11-30 01:30:26 -07:00
Jeffrey A Law
e3e1101af0 POTFILES.in: Move divmod routines from config/mn10200 to config/ Add dominance.c
* POTFILES.in: Move divmod routines from config/mn10200 to config/
        Add dominance.c

From-SVN: r37869
2000-11-30 01:27:09 -07:00
Stephane Carrez
75273d0832 udivmod.c, [...]: Moved from here.
* config/mn10200/udivmod.c, config/mn10200/divmod.c,
	config/mn10200/udivmodsi4.c: Moved from here.
	* config/udivmod.c, config/divmod.c, config/udivmodsi4.c: To here.
	* config/mn10200/t-mn10200 (LIB2FUNCS_EXTRA): Use the generic
	C division functions.
	* config/m68hc11/t-m68hc11-gas (LIB2FUNCS_EXTRA): Likewise.

From-SVN: r37868
2000-11-30 01:25:59 -07:00
Jeffrey A Law
15c2086a04 pa.md (conditional moves): Avoid holes in operand list.
* pa.md (conditional moves): Avoid holes in operand list.
        (mod, umod patterns): Similarly.
        (variable extract/shift patterns): Similarly.

From-SVN: r37867
2000-11-30 01:15:41 -07:00
Neil Booth
9105f6718c objc-act.c (lang_init, [...]): Remove redundant code, assuming doing_objc_thang is true.
* objc/objc-act.c (lang_init, finish_file, maybe_objc_comptypes,
        maybe_objc_check_decl, build_objc_string_object,
        objc_declare_alias, objc_declare_class, build_message_expr,
        build_protocol_expr, build_selector_expr, build_encode_expr,
        get_class_ivars, start_class, start_protocol): Remove
        redundant code, assuming doing_objc_thang is true.

From-SVN: r37866
2000-11-30 08:11:41 +00:00
John David Anglin
1f80ea952d pa.c (restore_unscaled_index_insn_codes): Delete procedure.
* pa.c (restore_unscaled_index_insn_codes): Delete procedure.
	(record_unscaled_index_insn_codes): Likewise.
	(unscaled_index_insn_codes): Delete.
	(max_unscaled_index_insn_codes_uid): Delete.
	(output_function_prologue, output_function_epilogue, pa_reorg):
	Don't use the unscaled index insn hack.

From-SVN: r37865
2000-11-29 23:41:29 -07:00
John David Anglin
d16ca6a670 pa.md: Remove hack from all index insns to reverse the operand order of frame and...
* pa.md: Remove hack from all index insns to reverse the operand
        order of frame and stack pointer references incorrectly created
        in the reload pass.

From-SVN: r37864
2000-11-29 23:37:34 -07:00
John David Anglin
3502dc9cd3 function.h (emit_status): Delete member regno_pointer_flag and rename regno_pointer_flag_length to...
* function.h (emit_status): Delete member regno_pointer_flag and
	rename regno_pointer_flag_length to regno_pointer_align_length.
	Delete define for REGNO_POINTER_FLAG.
	* integrate.h (inline_remap): Delete member regno_pointer_flag.
	Add member x_regno_reg_rtx.
	* rtl.h (rtx_def): Use frame_related bit to indicate register is
	a pointer in REG expressions.  Define REG_POINTER macro.
	* alias.c (find_base_value, find_base_term): Use REG_POINTER
	instead of REGNO_POINTER_FLAG.
	* combine.c (nonzero_bits, num_sign_bit_copies): Likewise.
	* emit-rtl.c (gen_reg_rtx): Use regno_pointer_align_length instead
	of regno_pointer_flag_length.  Remove code which refers to
	regno_pointer_flag.
	(mark_reg_pointer): Use REG_POINTER.
	(free_emit_status): Remove code which refers to regno_pointer_flag.
	(init_emit, mark_emit_status): Likewise.
	* flow.c (dump_flow_info): Likewise.
	* function.c (preserve_temp_slots): Likewise.
	* integrate.c (expand_inline_function, copy_rtx_and_substitute):
	Use x_regno_reg_rtx instead of regno_pointer_flag for function
	pointer determination in map.
	* loop.c (strength_reduce, maybe_eliminate_biv_1): Use REG_POINTER.
	* predict.c (estimate_probability): Likewise.
	* regclass.c (record_address_regs, reg_scan_mark_refs): Likewise.
	* unroll.c (unroll_loop): Use x_regno_reg_rtx instead of
	regno_pointer_flag for function pointer determination in map.
	* convex.h (RTX_COSTS): Don't test regno_pointer_flag and use
	REG_POINTER.
	* pa.c (hppa_legitimize_address, emit_move_sequence, basereg_operand):
	Use REG_POINTER.
	(restore_unscaled_index_insn_codes): Revise comment.

From-SVN: r37863
2000-11-29 23:31:19 -07:00
John David Anglin
31a7659bfd * expr.c (do_compare_and_jump): Add missing TYPE_MODE in statement.
From-SVN: r37862
2000-11-29 22:49:49 -07:00
Joseph Myers
9f1bbeaa49 * extend.texi: Update documentation for attributes.
From-SVN: r37861
2000-11-30 01:24:39 +00:00
David O'Brien
74e5aa4b46 elf.h (IDENT_ASM_OP): Protect the #define.
2000-11-29  David O'Brien  <obrien@FreeBSD.org>
	* config/alpha/elf.h (IDENT_ASM_OP): Protect the #define.
	(ASM_DECLARE_OBJECT_NAME): Same.
	(ASM_FILE_END): Same.
	(ASM_FINISH_DECLARE_OBJECT): Same.
	(ASM_IDENTIFY_GCC): Same.
	(ASM_IDENTIFY_LANGUAGE): Same.
	(ASM_OUTPUT_CONSTRUCTOR): Same.
	(ASM_OUTPUT_DEF): Same.
	(ASM_OUTPUT_DESTRUCTOR): Same.
	(ASM_OUTPUT_EXTERNAL_LIBCALL): Same.
	(ASM_OUTPUT_SECTION_NAME): Same.
	(ASM_WEAKEN_LABEL): Same.
	(BSS_SECTION_ASM_OP): Same.
	(COMMON_ASM_OP): Same.
	(CONST_SECTION_ASM_OP): Same.
	(CONST_SECTION_FUNCTION): Same.
	(CTORS_SECTION_ASM_OP): Same.
	(DTORS_SECTION_ASM_OP): Same.
	(ESCAPES): Same.
	(FINI_SECTION_ASM_OP): Same.
	(IDENT_ASM_OP): Same.
	(IDENT_ASM_OP): Same.
	(INIT_SECTION_ASM_OP): Same.
	(INT_ASM_OP): Same.
	(MAX_OFILE_ALIGNMENT): Same.
	(SBSS_SECTION_ASM_OP): Same.
	(SDATA_SECTION_ASM_OP): Same.
	(SECTION_FUNCTION_TEMPLATE): Same.
	(SELECT_SECTION): Same.
	(SE_CONST_SECTION): Same.
	(SIZE_ASM_OP): Same.
	(SKIP_ASM_OP): Same.
	(STRING_ASM_OP): Same.
	(STRING_LIMIT): Same.
	(TYPE_ASM_OP): Same.
	(TYPE_OPERAND_FMT): Same.

Approved by:  Richard Henderson <rth@redhat.com>
              Message-ID: <20001128205112.C9793@redhat.com>

From-SVN: r37860
2000-11-30 00:19:47 +00:00
Neil Booth
0eaed3c665 c-decl.c (c_decode_option): Don't handle -lang-objc.
* c-decl.c (c_decode_option): Don't handle -lang-objc.
        * objc/lang-options.h: Remove -lang-objc.
        * objc/lang-specs.h: Don't pass -lang-objc to cc1obj.
        * objc/objc-act.c (lang_init_options): Set c_language.

From-SVN: r37859
2000-11-29 22:19:28 +00:00
Benjamin Kosnik
fc81ccd3e5 Fixes for build directories with colons, AIX build problems.
2000-11-29  Benjamin Kosnik  <bkoz@redhat.com>

	Fixes for build directories with colons, AIX build problems.
	* src/Makefile.am: Cleanups, add documentation.
	(libstdc++.INC): Simplify rule.
	(myinstallheaders): Consolidate install rules.
	(myinstalldirs): New, make directores.
	(base_headers): Subdivide based on install directory.
	(ext_headers): New.
	(backward_headers): New.
	(headers): Remove.
	(c_headers): Remove, unused.
	(c_shadow_headers): Split up, deal with conditional usage in a
	sane manner.
	* src/Makefile.in: Regenerate.

From-SVN: r37858
2000-11-29 21:30:30 +00:00
Jakub Jelinek
9816663912 expr.c (can_store_by_pieces): Reinitialize max_size for reverse tests.
* expr.c (can_store_by_pieces): Reinitialize max_size for reverse
	tests.

From-SVN: r37857
2000-11-29 22:03:33 +01:00
Toon Moene
b2d7dd203a 20001111.x: Test fixed - remove XFAIL.
2000-11-29  Toon Moene  <toon@moene.indiv.nluug.nl>

	* g77.f-torture/execute/20001111.x: Test fixed - remove XFAIL.

From-SVN: r37856
2000-11-29 20:57:55 +00:00
Phil Edwards
58884590a0 Sync with the documentation from wwwdocs.
2000-11-29  Phil Edwards  <pme@sources.redhat.com>

	Sync with the documentation from wwwdocs.
	* docs/Makefile:  New file (rebuilds FAQ text version).
	* docs/configopts.html:  Update.
	* docs/documentation.html:  Update.
	* docs/download.html:  Update.
	* docs/index.html:  Update.
	* docs/install.html:  Update.
	* docs/links.html:  Update.
	* docs/mail.html:  Update.
	* docs/status.html:  Update.
	* docs/thanks.html:  Update.
	* docs/27_io/howto.html:  Update.
	* docs/faq/index.html:  Update for 2.91.
	* docs/faq/index.txt:  Update for 2.91.
	* docs/footer.html:  Removed.
	* docs/footer.ihtml:  New file.
	* docs/gccrebuild.html:  Removed.
	* docs/header.html:  Removed.
	* docs/header.ihtml:  New file.

From-SVN: r37855
2000-11-29 20:37:02 +00:00
Jakub Jelinek
78cd99d0ab * gcc.dg/20001117-1.c: Add main.
From-SVN: r37854
2000-11-29 21:13:47 +01:00
Neil Booth
f3b55474b6 * c-pragma.c (init_pragma): Update for parse_in type change.
From-SVN: r37853
2000-11-29 19:30:04 +00:00
Laurynas Biveinis
b86ecfa96e * configure.in: recognize DOS-style absolute paths.
From-SVN: r37852
2000-11-29 14:07:29 -05:00
Jakub Jelinek
57814e5ea3 expr.h (store_by_pieces): Add prototype.
* expr.h (store_by_pieces): Add prototype.
	(can_store_by_pieces): Likewise.
	* expr.c (struct store_by_pieces): Renamed from clear_by_pieces.
	(can_store_by_pieces): New.
	(store_by_pieces): New.
	(clear_by_pieces): New.
	(clear_by_pieces_1): New.
	(store_by_pieces_1): Renamed from clear_by_pieces, handle storing
	arbitrary compiler generated constants into memory block.
	(store_by_pieces_2): Renamed from clear_by_pieces_1, likewise.
	* builtins.c (c_readstr): New.
	(builtin_memcpy_read_str): New.
	(expand_builtin_memcpy): If src is string constant and
	emit_block_move would move it by pieces, compute integer constants
	from the string and store it into memory block instead.
	(builtin_strncpy_read_str): New.
	(expand_builtin_strncpy): If N is not constant zero and c_strlen does
	not return INTEGER_CST, don't optimize.
	If N is larger than strlen(src) + 1, try to copy the string
	including padding with store_by_pieces.
	(expand_builtin_strcmp): If both arguments have side effects, don't
	optimize.
	(expand_builtin_fputs): If STR has side effects, don't optimize.

	* gcc.c-torture/execute/string-opt-5.c: Add some strcmp and strncpy
	tests.
	* gcc.c-torture/execute/string-opt-6.c: New test.

From-SVN: r37851
2000-11-29 19:24:50 +01:00
Mark Mitchell
3632e1eaba Fix copyright line
From-SVN: r37850
2000-11-29 17:53:18 +00:00
Jason Merrill
01933a513c tabify
From-SVN: r37849
2000-11-29 11:29:34 -05:00
Richard Earnshaw
76b7dad31c arm.md (sibcall, [...]): Add use of link register.
* arm.md (sibcall, sibcall_value, sibcall_insn, sibcall_value_insn):
Add use of link register.

From-SVN: r37848
2000-11-29 15:53:46 +00:00
Bryce McKinlay
db45aaa691 Check this.len, not len, when determining if there is no more input data.
From-SVN: r37847
2000-11-29 10:37:40 +00:00
Bryce McKinlay
d02bc1fb25 InflaterInputStream (read): Don't return -1 unless the infate() call didn't deliver any output.
* java/util/zip/InflaterInputStream (read): Don't return -1 unless
	the infate() call didn't deliver any output. Throw a ZipException if
	the needsDictionary() call returns true.
	* java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
	* java/io/InputStreamReader: Use the default buffer size for the
	contained BufferedInputStream.

From-SVN: r37846
2000-11-29 10:06:03 +00:00
Jeff Law
172c38bb69 Daily bump.
From-SVN: r37845
2000-11-29 01:45:16 -07:00
Joseph Myers
b722c82c7d * extend.texi: Update documentation for default format attributes.
From-SVN: r37844
2000-11-29 07:38:20 +00:00
Jeffrey A Law
01fa3508b6 pa-64.h (ASM_OUTPUT_SECTION_NAME): Use a hash table, not a list, to keep track of the sections.
* pa/pa-64.h (ASM_OUTPUT_SECTION_NAME): Use a hash table, not
	a list, to keep track of the sections.

From-SVN: r37843
2000-11-28 21:57:21 -07:00
Bryce McKinlay
5662d5333a natSystem.cc (init_properties): Set user.language and user.region.
2000-11-29  Bryce McKinlay  <bryce@albatross.co.nz>

	* java/lang/natSystem.cc (init_properties): Set user.language and
	user.region.
	* configure.in: Check for setlocale.
	* configure: Rebuilt.
	* include/config.h.in: Rebuilt.

From-SVN: r37842
2000-11-29 04:53:37 +00:00
Loren J. Rittle
56f8f4fb75 tests_flags.in: Correct typo.
2000-11-29  Loren J. Rittle  <ljrittle@acm.org>

        * tests_flags.in: Correct typo.

From-SVN: r37840
2000-11-29 03:57:35 +00:00
Gabriel Dos Reis
a45a172a36 tests_flags (SH_FLAGS, ST_FLAGS): Move them back to ...
* tests_flags (SH_FLAGS, ST_FLAGS): Move them back to ...
	* mkcheck.in (SH_FLAGS, ST_FLAGS): ...here

From-SVN: r37839
2000-11-29 03:54:39 +00:00
Nick Clifton
4bec9f7d6a Fix pic_l;oad_addr to work in Thumb mode.
From-SVN: r37838
2000-11-29 01:45:13 +00:00
Gabriel Dos Reis
abfadcb132 Makefile.am (sources): Add bitset.cc
* src/Makefile.am (sources): Add bitset.cc
	* src/Makefile.in: Regenrate.

	* include/bits/std_bitset.h (_GLIBCPP_BITSET_BITS_PER_WORD): New
	macro. Replace __BITS_PER_WORDS throughout.
	(__BITS_PER_WORDS): Remove.
	(bitset<>::_M_do_find_first, bitset<>::_M_do_find_next): Move
	definitions to src/bitset.cc.

	* src/bitset.cc (bitset<>::_M_do_find_first,
	bitset<>::_M_do_find_next):  Define here.
	(_Bit_count<>::_S_bit_count, _Find_one<>::_S_first_one): Define
	here. Explicitly instantiate definitions.

From-SVN: r37837
2000-11-29 01:09:09 +00:00
Richard Henderson
54fef245c0 calls.c (expand_call): Defer const/pure NO_DEFER_POP until after sibcall do_pending_stack_adjust.
* calls.c (expand_call): Defer const/pure NO_DEFER_POP until
        after sibcall do_pending_stack_adjust.

From-SVN: r37836
2000-11-28 16:27:54 -08:00
J"orn Rennecke
f423a6a7dd jump.c (delete_insn): Check that REG_LABEL note actually contains a CODE_LABEL.
* jump.c (delete_insn): Check that REG_LABEL note actually contains
	a CODE_LABEL.

From-SVN: r37835
2000-11-29 00:25:08 +00:00
Neil Booth
eaf299c6ca c-common.h: Remove flag_digraphs.
* c-common.h: Remove flag_digraphs.
        * c-decl.c: Remove flag_digraphs.
        (c_decode_option): Don't set it.
        * c-lex.c (init_c_lex): Don't do anything for digraphs.

From-SVN: r37834
2000-11-28 23:07:29 +00:00
Richard Henderson
045edebeb3 * com.c (ffecom_member_phase2_): Set TREE_USED on the debugging decl.
From-SVN: r37833
2000-11-28 14:56:31 -08:00
Richard Henderson
7dfe7bd6e9 c-parse.in (finish_parse): Update for parse_in type change.
* c-parse.in (finish_parse): Update for parse_in type change.
        (_yylex): Likewise.

From-SVN: r37832
2000-11-28 14:52:26 -08:00
Franz Sirl
79f41ea419 atomicity.h (__exchange_and_add): Silence preprocessor multi-line string warnings.
2000-11-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
	* config/cpu/powerpc/bits/atomicity.h (__exchange_and_add): Silence
	preprocessor multi-line string warnings.
	(__atomic_add): Likewise.
	(__compare_and_swap): Likewise.
	(__always_swap): Likewise.
	(__test_and_set): Likewise.
	* config/cpu/arm/bits/atomicity.h (__exchange_and_add): Likewise.
	(__atomic_add): Likewise.
	(__compare_and_swap): Likewise.
	(__always_swap): Likewise.
	(__test_and_set): Likewise.

From-SVN: r37831
2000-11-28 22:28:49 +00:00
Geoffrey Keating
70cf82bcf5 940510-1.c: Update to test c89 functionality.
* gcc.dg/noncompile/940510-1.c: Update to test c89 functionality.
	Move from here ...
	* gcc.dg/940510-1.c: ... to here.

	* gcc.dg/20000926-1.c: GNU C now allows initializations of
	zero-size arrays in toplevel structures.

From-SVN: r37830
2000-11-28 22:25:51 +00:00
Neil Booth
8dc4676ddb cppmacro.c (cpp_scan_buffer_nooutput): Take a boolean indicating whether to scan all buffers on the stack or just one.
* cppmacro.c (cpp_scan_buffer_nooutput): Take a boolean
        indicating whether to scan all buffers on the stack or
        just one.
        * cppinit.c (do_includes): Update.
        * cppmain.c (main): Update.
        * cpplib.h: Update prototype.

From-SVN: r37829
2000-11-28 21:34:30 +00:00
Richard Henderson
c77e04ae3a genoutput.c (validate_insn_operands): New.
* genoutput.c (validate_insn_operands): New.
        (gen_insn): Call it.

        * config/alpha/alpha.md (divmodsi_internal): Renumber operands.
        (divmoddi_internal): Likewise.
        * config/arm/arm.md (andsi3_compare0_scratch): Likewise.
        * config/i960/i960.md (branch patterns): Likewise.
        * config/ia64/ia64.md (tbit_and_0): Likewise.
        (tbit_and_1, tbit_or_0, tbit_or_1): Likewise.
        * config/m68k/m68k.md (zero_extract memory patterns): Likewise.
        * config/mips/mips.md (divmodsi4_internal): Likewise.
        (divmoddi4_internal): Likewise.
        * config/rs6000/rs6000.md (call patterns): Likewise.
        * config/sh/sh.md (movsi_y): Likewise.
        * config/sparc/sparc.md: Comment out if 0 v8p shift pattern.

From-SVN: r37828
2000-11-28 13:31:47 -08:00
Richard Henderson
79bc466955 * config.gcc: Kill residual pyramid support.
From-SVN: r37827
2000-11-28 13:23:58 -08:00
Neil Booth
cf44ea5231 c-lex.h (parse_in): Change parse_in to a cpp_reader *.
* c-lex.h (parse_in): Change parse_in to a cpp_reader *.
	* c-decl.c (c_decode_option): Update to match.
	* c-lex.c (init_c_lex, yyparse): Update to match.
	* c-lang.c (lang_init_options): Use cpp_create_reader.
	* cppinit.c (cpp_init): Rename initialize.
	(cpp_reader_init): Rename cpp_create_reader.  Create the
	reader.  Initialize cpplib if appropriate.
	* cpplib.h (cpp_create_reader) New prototype.
	(cpp_init, cpp_reader_init): Delete prototypes.
	* cppmain.c (general_init, setup_callbacks): New functions.
	(main): Use them.
	* fix-header.c (scan_in): Change type to cpp_reader *.
	(read_scan_file): Update for new cpplib interface and scan_in type.

	* cp/decl.c (parse_in): Change to cpp_reader *.
	(lang_decode_option): Update.
	* cp/lex.c (lang_init_options): Use new cpplib interface.
	(init_cp_pragma, finish_parse, handle_pragma_implementation): Update.
	* cp/spew.c (read_token): Update.
	* objc/objc-act.c (lang_init_options): Update new cpplib interface.

From-SVN: r37826
2000-11-28 21:13:35 +00:00
Benjamin Kosnik
74d2f859d2 Update for 2.91 release.
2000-11-28  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	Update for 2.91 release.
	* include/bits/c++config (__GLIBCPP__): Update.
	* docs/17_intro/RELEASE-NOTES: Update.
	* docs/status.html: Update, remove bogus autotools disinformation.

From-SVN: r37825
2000-11-28 20:33:39 +00:00
Warren Levy
1326d0c47d DateFormatSymbols.java (zoneStringsDefault): Added more time zone entries.
* java/text/DateFormatSymbols.java (zoneStringsDefault): Added
	more time zone entries.
	* java/text/SimpleDateFormat.java (format): Added case for
	TIMEZONE_FIELD.

From-SVN: r37824
2000-11-28 20:11:46 +00:00
Jakub Jelinek
48c4d691be loop.c (load_mems): Avoid using next_label to find end_label.
* loop.c (load_mems): Avoid using next_label to find end_label. If
	jumping outside of the loop (other than loop end), don't hoist MEMs
	out of loop.

	* gcc.c-torture/execute/loop-8.c: New test.

From-SVN: r37823
2000-11-28 20:44:30 +01:00
Jan Hubicka
fb158467a9 calls.c (expand_call): Don't disable tail recursion based on the loop nest.
* calls.c (expand_call): Don't disable tail recursion based
        on the loop nest.

From-SVN: r37822
2000-11-28 11:34:59 -08:00