Commit Graph

39713 Commits

Author SHA1 Message Date
Hans-Peter Nilsson
e9fef64c58 mmix.md ("*call_real"): Fix typo in comment.
* config/mmix/mmix.md ("*call_real"): Fix typo in comment.
	* config/mmix/mmix.h (EXTRA_CONSTRAINT): Pass MMIX_REG_OK_STRICT
	to mmix_extra_constraint.
	* config/mmix/mmix.c (mmix_secondary_reload_class): Only handle
	non-global register classes.  Mark now unused parameters as such.
	(mmix_extra_constraint, 'U'): Use new parameter strict and call
	calling memory_operand_p or strict_memory_address_p, not
	address_operand.
	* config/mmix/mmix-protos.h (mmix_extra_constraint): Add parameter.

From-SVN: r48402
2001-12-30 16:48:59 +00:00
Kaveh R. Ghazi
f6e67fa57e * unroll.c: Move include files above first use of `const'.
From-SVN: r48400
2001-12-30 15:58:42 +00:00
Jakub Jelinek
6ee3c8e412 cfgrtl.c (try_redirect_by_replacing_jump): Allow redirect_jump to fail if target is EXIT_BLOCK_PTR, die otherwise.
* cfgrtl.c (try_redirect_by_replacing_jump): Allow redirect_jump
	to fail if target is EXIT_BLOCK_PTR, die otherwise.
	(redirect_edge_and_branch): Likewise.
	* cfgcleanup.c (try_forward_edge): Don't force jump redirecting
	if target is EXIT_BLOCK_PTR.

	* gcc.c-torture/compile/20011229-2.c: New test.

From-SVN: r48399
2001-12-30 13:20:43 +01:00
GCC Administrator
285f491adf Daily bump.
From-SVN: r48398
2001-12-30 08:16:40 +00:00
David Edelsohn
bde5864890 gcc.c (init_gcc_spec): Do not link with static libgcc.a if gcc invoked with -shared.
* gcc.c (init_gcc_spec): Do not link with static libgcc.a if
        gcc invoked with -shared.

From-SVN: r48396
2001-12-29 23:11:52 -05:00
Graham Stott
80f33d06a3 i386.c (ix86_asm_dialect): Fix enum type.
* config/i386/i386.c (ix86_asm_dialect): Fix enum type.

        (override_options): Delete abs macro unused.

        (output_pic_addr_const): Use ASM_ATT/ASM_INTEL enumerations
        when testing ASSEMBLER_DIALECT.

        (print_reg): Likewise.
        (print_operand): Likewise.
        (print_operand_address): Likewise.
        (print_operand): abort if ASSEMBLER_DIALECT is unknown dialect.

        * config/i386/i386.h (ix86_asm_dialect): Fix enum type.

        (FIND_BASE_TERM): Fix typo.

From-SVN: r48393
2001-12-30 01:34:44 +00:00
Richard Kenner
0023400b9c Fix typo in last change.
From-SVN: r48392
2001-12-29 20:30:56 -05:00
Graham Stott
6b66732058 i386.c (ix86_asm_dialect): Fix enum type.
* config/i386/i386.c (ix86_asm_dialect): Fix enum type.

        (override_options): Delete abs macro unused.

        (output_pic_addr_const): Use ASM_ATT/ASM_INTEL enumerations
        when testing ASSEMBLER_DIALECT.

        (print_reg): Likewise.
        (print_operand): Likewise.
        (print_operand_address): Likewise.
        (print_operand): abort if ASSEMBLER_DIALECT is unknown dialect.

        * config/i386/i386.h (ix86_asm_dialect): Fix enum type.

        (FIND_BASE_TERM): Fix typo.

From-SVN: r48391
2001-12-30 01:29:25 +00:00
Richard Kenner
c4e59f513b expr.c (store_field): Use adjust_address, not PUT_MODE.
* expr.c (store_field): Use adjust_address, not PUT_MODE.
	(expand_expr, case VIEW_CONVERT_EXPR): Likewise.
	* reload1.c (eliminate_regs, case SUBREG): Likewise, but use
	adjust_address_nv.
	* varasm.c (make_decl_rtl): Likewise.
	* integrate.c (copy_rtx_and_substitute, case MEM): Likewise, but use
	replace_equiv_address_nv.

From-SVN: r48387
2001-12-29 16:35:02 -05:00
Richard Kenner
44e3910ab7 varasm.c (decode_addr_const, [...]): Call output_constant_def instead of looking at TREE_CST_RTL.
* varasm.c (decode_addr_const, case INTEGER_CST): Call
	output_constant_def instead of looking at TREE_CST_RTL.

From-SVN: r48386
2001-12-29 16:17:50 -05:00
Richard Kenner
9413de453d * expr.c (convert_move): If -fforce-mem, force FROM to not be memory.
From-SVN: r48385
2001-12-29 16:05:22 -05:00
Richard Kenner
6790d1bd90 stor-layout.c (layout_decl): Don't misalign field of variable size for packed record.
* stor-layout.c (layout_decl): Don't misalign field of variable size
	for packed record.

From-SVN: r48384
2001-12-29 16:00:51 -05:00
Richard Kenner
f11c304305 dwarf2out.c (compute_section_prefix): Avoid cast warning.
* dwarf2out.c (compute_section_prefix): Avoid cast warning.
	(gen_decl_die): Only check DECL_IGNORED_P on decls.
	(dwarf2out_decl): Check for DECL_IGNORED_P only when needed.

From-SVN: r48382
2001-12-29 15:56:08 -05:00
Jakub Jelinek
545614570c cfglayout.c (insert_intra_before_1): New.
* cfglayout.c (insert_intra_before_1): New.
	(insert_inter_bb_scope_notes): Emit sibling block notes which don't
	span multiple basic blocks.

	* gcc.dg/debug-3.c: New test.
	* gcc.dg/debug-4.c: New test.
	* gcc.dg/debug-5.c: New test.

From-SVN: r48380
2001-12-29 21:01:15 +01:00
Richard Henderson
9d430eb5b1 os_defines.h: Don't define __glibcpp_long_bits.
* config/os/hpux/bits/os_defines.h: Don't define __glibcpp_long_bits.
        * config/os/hpux/bits/cpu_limits.h: New file.
        * configure.target (CPULIMITSH): Use it.

From-SVN: r48379
2001-12-29 11:18:32 -08:00
Richard Henderson
c8af993772 * g++.dg/eh/loop1.C: New.
From-SVN: r48378
2001-12-29 10:56:13 -08:00
Richard Henderson
b7fe373bfb loop.c (prescan_loop): Set has_multiple_exit_targets for exception edges.
* loop.c (prescan_loop): Set has_multiple_exit_targets for exception
        edges.  Rearrange jump interpretation code to use pc_set.
        (check_dbra_loop): Examine has_multiple_exit_targets not exit_count.

        * sched-deps.c (sched_analyze_insn): Set scheduling barrier for
        all insns that can throw, not just if flag_non_call_exceptions.

From-SVN: r48377
2001-12-29 10:46:38 -08:00
Jan Hubicka
4e5ea414df Oops, wrong tree, sorry
From-SVN: r48374
2001-12-29 17:33:35 +00:00
Jan Hubicka
1d0b96d75a Temoporarily disable broken verify flow info.
From-SVN: r48372
2001-12-29 17:30:10 +00:00
Nathan Sidwell
41f5d4b195 call.c (build_user_type_conversion_1): Use my_friendly_assert rather than if ...
cp:
	* call.c (build_user_type_conversion_1): Use my_friendly_assert
	rather than if ... abort.
	* cvt.c (convert_to_reference): Likewise.
	* semantics.c (setup_vtbl_ptr): Likewise.
	* pt.c (lookup_template_class): Comment typo.

From-SVN: r48371
2001-12-29 17:24:59 +00:00
Nathan Sidwell
f3368a9098 re PR c++/5125 (both g++ 3.0.1 and 2.95.3 crash with internal error when trying compile template method with parameter pointer to method)
cp:
	PR c++/5125
	* pt.c (push_template_decl_real): Make sure DECL has
	DECL_LANG_SPECIFIC.
testsuite:
	* g++.dg/template/crash1.C: New test.

From-SVN: r48370
2001-12-29 17:12:55 +00:00
Nathan Sidwell
03c9c27462 re PR c++/335 (gcc accepts assignment in read-only structures)
cp:
	PR c++/335
	* init.c (resolve_offset_ref): Copy cv qualifiers of this pointer
	for non-reference fields.
	* typeck.c (require_complete_type): Use resolve_offset_ref).
testsuite:
	* g++.dg/other/const1.C: New test.

From-SVN: r48369
2001-12-29 17:10:10 +00:00
Stan Shebs
1bf0567179 objc-act.c (STRING_OBJECT_CLASS_NAME): Remove.
* objc/objc-act.c (STRING_OBJECT_CLASS_NAME): Remove.
        (default_constant_string_class_name): New global.
        (objc_init): Set it.
        (synth_module_prologue): Use it.

From-SVN: r48366
2001-12-29 16:16:51 +00:00
Stan Shebs
ad074d60dd * objc/objc-act.c: Apply various cosmetic and formatting changes.
From-SVN: r48365
2001-12-29 14:56:36 +00:00
Hans-Peter Nilsson
7f3ad6b697 * gcc.c-torture/compile/20011229-1.c: New test.
From-SVN: r48363
2001-12-29 10:36:50 +00:00
Kazu Hirata
6f317ef34f darwin-tramp.asm: Fix comment formatting.
* config/rs6000/darwin-tramp.asm: Fix comment formatting.
	* config/rs6000/freebsd.h: Likewise.
	* config/rs6000/rs6000.c: Likewise.
	* config/sh/sh.c: Likewise.
	* config/sh/sh.h: Likewise.

From-SVN: r48362
2001-12-29 09:07:56 +00:00
GCC Administrator
fac510512c Daily bump.
From-SVN: r48360
2001-12-29 08:16:09 +00:00
Tom Tromey
dab722ee86 gen-table.pl: Don't process characters after \uffff.
* gen-table.pl: Don't process characters after \uffff.  Added
	comment pointing to input file.

From-SVN: r48359
2001-12-29 04:31:10 +00:00
Richard Henderson
0b622c4a1e cpu_limits.h: New file.
* config/cpu/ia64/bits/cpu_limits.h: New file.
        * config/os/osf/osf5.0/bits/cpu_limits.h: New file.
        * configure.target (CPULIMITSH): Use them.

From-SVN: r48358
2001-12-28 17:19:51 -08:00
Stan Shebs
47ffd48afd objc-torture.exp: Resync with c-torture.exp.
* lib/objc-torture.exp: Resync with c-torture.exp.
	* lib/objc.exp: Load standard libraries.

From-SVN: r48357
2001-12-28 23:33:57 +00:00
Stan Shebs
51a56a7d47 objc-act.c (build_module_descriptor): Make sure the init function is not deferred.
* objc/objc-act.c (build_module_descriptor): Make sure the init
	function is not deferred.
	(build_dispatch_table_initializer): Compute the method encoding if
	not already done.

From-SVN: r48356
2001-12-28 23:22:05 +00:00
Kazu Hirata
fae81b385b * doc/md.texi: Add @findex define_insn_and_split.
From-SVN: r48355
2001-12-28 23:03:33 +00:00
Kaveh R. Ghazi
7b0295ab20 gen-table.pl: Const-ify output.
* gen-table.pl: Const-ify output.  Document the location of a
	suitable unicode input file.

	* chartables.h: Regenerate.

From-SVN: r48354
2001-12-28 22:27:29 +00:00
Phil Edwards
5adf72de27 c++config: Move doxygen hook comment...
2001-12-28  Phil Edwards  <pme@gcc.gnu.org>

	* include/bits/c++config:  Move doxygen hook comment...
	* docs/doxygen/doxygroups.cc:  ...to here.

From-SVN: r48353
2001-12-28 22:23:55 +00:00
Hans Boehm
4d9720f0c7 linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
* config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
        * config/ia64/unwind-ia64.c (uw_init_context_1): Redo sp, psp,
        bsp setup.  Set pri_unat_loc to something reasonable.
        (uw_install_context): Add missing cast.
        (unw_access_gr): Fix off-by-1 indexing error.

From-SVN: r48352
2001-12-28 14:15:41 -08:00
Phil Edwards
be3996918f re PR libstdc++/2054 (g++-3 rejects legal code, accepted by g++-2.95.2 (functors))
2001-12-28  Phil Edwards  <pme@gcc.gnu.org>

	PR libstdc++/2054
	* include/bits/stl_algo.h (lower_bound):  Relax concept checks.
	* testsuite/ext/concept_checks.cc:  New file.

From-SVN: r48351
2001-12-28 21:57:47 +00:00
Paolo Carlini
2c1bc4ebc9 stl_algo.h (count returning void, [...]): Move to...
2001-12-28  Paolo Carlini  <pcarlini@unitus.it>

        * include/bits/stl_algo.h (count returning void,
        count_if returning void, __random_sample, random_sample,
        random_sample_n, __is_heap, is_heap, is_sorted):  Move to...
        * include/ext/algorithm:  ...here, new file.
	* include/Makefile.am (ext_headers):  Add new file.
        * include/Makefile.in:  Regenerate.
	* testsuite/ext/headers.cc:  Include <ext/algorithm>.

From-SVN: r48350
2001-12-28 18:46:54 +00:00
Kazu Hirata
23d1aac4b5 except.c: Fix comment formatting.
* except.c: Fix comment formatting.
	* flags.h: Likewise.
	* flow.c: Likewise.
	* predict.c: Likewise.
	* simplify-rtx.c: Likewise.
	* system.h: Likewise.
	* vmsdbg.h: Likewise.
	* vmsdbgout.c: Likewise.

From-SVN: r48349
2001-12-28 18:17:54 +00:00
Kazu Hirata
20c907b05d * config/h8300/h8300.md: Fix formatting.
From-SVN: r48348
2001-12-28 18:00:23 +00:00
Geoffrey Keating
7addeb4dcd varasm.c (record_constant_1): Correct parameter to recursive call in default case.
* varasm.c (record_constant_1): Correct parameter to recursive
	call in default case.

From-SVN: r48347
2001-12-28 17:57:50 +00:00
Richard Kenner
0132823e73 Fix whitespace in and around comment.
From-SVN: r48346
2001-12-28 11:24:12 -05:00
Paolo Carlini
bf95248579 basic_string.h (insert(__pos, __s, __n)): Optimize by avoiding temporaries and working in-place when possible.
2001-12-28  Paolo Carlini  <pcarlini@unitus.it>
            Nathan Myers  <ncm@cantrip.org>

	* include/bits/basic_string.h (insert(__pos, __s, __n)):
	Optimize by avoiding temporaries and working in-place when possible.
	(insert(__pos1, __str)): Call insert(__pos1, __str, __pos2, __n).
	(insert(__pos1, __str, __pos2, __n)): Call insert(__pos, __s, __n).
	* testsuite/21_strings/insert.cc (test02): New testcases.

Co-Authored-By: Nathan Myers <ncm@cantrip.org>

From-SVN: r48345
2001-12-28 14:00:18 +00:00
Jakub Jelinek
17e9e88c2e sparc.h (ASM_PREFERRED_EH_DATA_FORMAT, [...]): Define.
* config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT,
	ASM_OUTPUT_DWARF_PCREL): Define.
	* config/sparc/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
	* configure.in (HAVE_AS_SPARC_UA_PCREL): Check whether as supports
	.uaword %r_disp32() and linker handles it correctly.
	* configure, config.in: Rebuilt.

From-SVN: r48344
2001-12-28 10:55:14 +01:00
Jakub Jelinek
ad47f1e56e c-typeck.c (store_init_value): If initializing object with array type of unknown size by a compound literal...
* c-typeck.c (store_init_value): If initializing object with array
	type of unknown size by a compound literal, set object's size from
	compound literal size.
	* doc/extend.texi (Compound Literals): Adjust documentation.

	* gcc.dg/gnu89-init-1.c: Adjust for the new behaviour, add some
	additional tests.

From-SVN: r48343
2001-12-28 10:51:20 +01:00
Richard Henderson
e6724881e6 real.c (etoe113, toe113): Ifndef INTEL_EXTENDED_IEEE_FORMAT.
* real.c (etoe113, toe113): Ifndef INTEL_EXTENDED_IEEE_FORMAT.
        (endian): Clear word 3 for INTEL_EXTENDED_IEEE_FORMAT.
        (etartdouble): Invoke etoe64 for INTEL_EXTENDED_IEEE_FORMAT.
        * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Don't special case
        INTEL_EXTENDED_IEEE_FORMAT.

From-SVN: r48342
2001-12-28 01:23:05 -08:00
GCC Administrator
9346c2fffd Daily bump.
From-SVN: r48340
2001-12-28 08:16:10 +00:00
Geoffrey Keating
2ef1a7f960 combine.c (try_combine): Mask off sign bits when combining stores to the low and high parts of a...
* combine.c (try_combine): Mask off sign bits when combining
	stores to the low and high parts of a two-word value.

From-SVN: r48339
2001-12-28 07:52:44 +00:00
Geoffrey Keating
19f90fadbc expr.c (expand_expr): Don't mark memory for non-constants as constant.
* expr.c (expand_expr): Don't mark memory for non-constants as
	constant.

From-SVN: r48338
2001-12-28 07:51:59 +00:00
Richard Kenner
9674c84284 integrate.c (copy_rtx_and_substitute, case MEM): If inlining and not for LHS, clear RTX_UNCHANGING_P.
* integrate.c (copy_rtx_and_substitute, case MEM): If inlining
	and not for LHS, clear RTX_UNCHANGING_P.

From-SVN: r48337
2001-12-27 20:46:22 -05:00
Philipp Thomas
0b264069f0 cppfiles.c (stack_include_files): Don't translate <stdin>.
From-SVN: r48336
2001-12-28 00:09:47 +00:00