Commit Graph

49439 Commits

Author SHA1 Message Date
Kazu Hirata
5be86fec5b * simplify-rtx.c: Fix formatting.
From-SVN: r65275
2003-04-05 20:06:37 +00:00
David Edelsohn
984e25aca8 [multiple changes]
2003-04-05  Andrew Pinski  <apinski@apple.com>

        * config/rs6000/rs6000.c (addrs_ok_for_quad_peep): Allow addr2
        reg with reg1 == reg2 and offset1 = -8.

2003-04-05  David Edelsohn  <edelsohn@gnu.org>

        * config/rs6000/rs6000.c (rs6000_rtx_costs): Halve Power4
        multiply costs.  Correct Power4 divide costs.
        * config/rs6000/power4.md: Restore multiply and FP latency.

From-SVN: r65274
2003-04-05 12:08:00 -05:00
Kaveh R. Ghazi
ff95551244 decl.c (set_current_binding_level): Delete, revert last change.
* decl.c (set_current_binding_level): Delete, revert last change.
	(current_binding_level): Modify to allow it as as lvalue.

From-SVN: r65273
2003-04-05 16:48:31 +00:00
Zdenek Dvorak
94f24ddce6 alias.c (find_base_term): Export.
* alias.c (find_base_term): Export.
	* rtl.h (find_base_term): Declare.
	* gcse.c (find_moveable_store): Test for flag_non_call_exceptions
	instead of flag_exceptions.  Move test for parameter passing ...
	(store_killed_in_insn): ... here.

From-SVN: r65272
2003-04-05 15:57:40 +00:00
Gerald Pfeifer
92441f839f re PR bootstrap/10267 (Wrong build instructions for *-*-solaris2*)
PR bootstrap/10267
	* doc/install.texi (*-*-solaris2): /bin/ksh is not just recommended
	for configuring.

From-SVN: r65270
2003-04-05 15:48:35 +00:00
Geoffrey Keating
33b4980079 dbxout.c (scope_labelno): Add GTY.
2003-04-04  Geoffrey Keating  <geoffk@apple.com>

	* dbxout.c (scope_labelno): Add GTY.
	(have_used_extensions): Add GTY.
	(source_label_number): Add GTY.
	(lastfile): Add GTY.
	(lastfile_is_base): New.
	(base_input_file): New.
	(dbxout_handle_pch): New.
	(dbx_debug_hooks): Add handle_pch.
	(xcoff_debug_hooks): Likewise.
	(dbxout_function_end): Remove scope_labelno.
	(dbxout_init): Set base_input_file.
	(dbxout_handle_pch): New.
	(dbxout_source_file): Honour lastfile_is_base.
	* dwarfout.c (dwarf_debug_hooks): Add dummy handle_pch.
	* sdbout.c (sdb_debug_hooks): Add dummy handle_pch.
	* vmsdbgout.c (vmsdbg_debug_hooks): Add dummy handle_pch.
	* dwarf2out.c (dwarf2_debug_hooks): Add dummy handle_pch.
	* debug.c (do_nothing_debug_hooks): Add dummy handle_pch.
	* debug.h (struct gcc_debug_hooks): Add handle_pch.
	* c-pch.c (pch_init): Don't call start_source_file, but do call
	handle_pch.
	(c_common_write_pch): Call handle_pch.
	(c_common_read_pch): Don't call start_source_file,
	or end_source_file.

Index: gcc/testsuite/ChangeLog
2003-04-04  Geoffrey Keating  <geoffk@apple.com>

	* gcc.dg/pch/static-3.c: New.
	* gcc.dg/pch/static-3.hs: New.
	* gcc.dg/pch/pch.exp: Test with -O0 -g too.

From-SVN: r65266
2003-04-05 07:01:51 +00:00
Loren J. Rittle
41a73c4c6c * include/Makefile.in: Regenerate.
From-SVN: r65264
2003-04-05 01:44:53 +00:00
Richard Henderson
0a49eb31b2 forced1.C: Use _Unwind_SjLj_ForcedUnwind as appropriate.
* g++.dg/eh/forced1.C: Use _Unwind_SjLj_ForcedUnwind as appropriate.
        * g++.dg/eh/forced2.C: Likewise.

From-SVN: r65263
2003-04-04 16:45:06 -08:00
GCC Administrator
9942dbe230 Daily bump.
From-SVN: r65262
2003-04-05 00:17:34 +00:00
Mike Stump
112a0bfd7a * compare_tests: Fix exit status and be more flexible with spacing.
From-SVN: r65255
2003-04-04 22:49:10 +00:00
Olivier Hainque
bb056a77f3 emit-rtl.c (get_mem_attrs): Adjust alignment tests determining use of default attributes to agree MEM_ALIGN...
* emit-rtl.c (get_mem_attrs): Adjust alignment tests determining
        use of default attributes to agree MEM_ALIGN macro.

From-SVN: r65254
2003-04-04 17:44:02 -05:00
Kaveh R. Ghazi
da247cccbc name-lookup.c (find_binding): Pass appropriate pointer type to POP_TIMEVAR_AND_RETURN.
* name-lookup.c (find_binding): Pass appropriate pointer type to
	POP_TIMEVAR_AND_RETURN.

From-SVN: r65253
2003-04-04 22:35:22 +00:00
Joel Brobecker
08b0f5f900 dbxout.c (dbxout_type): When printing type index of range type whose bounds are printed in octal format...
* dbxout.c (dbxout_type): When printing type index of range type
	whose bounds are printed in octal format, print type of parent type if
	it exists so enumerated type descriptions are not transformed
        into unsigned types.

From-SVN: r65252
2003-04-04 17:34:52 -05:00
Kazu Hirata
45ca210658 h8300-protos.h: Add a prototype for compute_a_shift_cc.
* config/h8300/h8300-protos.h: Add a prototype for
	compute_a_shift_cc.
	* config/h8300/h8300.c (shift_one): Update the CC status.
	(shift_two): Likewise.
	(output_a_shift_cc): Set cc_inline and cc_special.
	(compute_a_shift_cc): New.
	* config/h8300/h8300.md (shift insns): Use compute_a_shift_cc.

From-SVN: r65251
2003-04-04 22:01:46 +00:00
Richard Henderson
7c2aa9d72c * cse.c (fold_rtx): Fix 03-30 change; do check insn non-null.
From-SVN: r65249
2003-04-04 13:49:42 -08:00
Loren J. Rittle
0705a2a26a inclhack.def (bsd_stdio_attrs_conflict): New.
* fixinc/inclhack.def (bsd_stdio_attrs_conflict): New.
	* fixinc/fixincl.x: Rebuilt.
	* fixinc/tests/base/stdio.h: Regenerated.

From-SVN: r65248
2003-04-04 21:46:49 +00:00
Nathan Sidwell
1a48288100 * gcov.c (accumulate_line_counts): Fix span tree merge bug.
From-SVN: r65245
2003-04-04 15:48:19 +00:00
Jerry Quinn
941747b558 Add PR libstdc++/10276 to Changelog entry.
From-SVN: r65243
2003-04-04 15:09:04 +00:00
Jerry Quinn
e23afc6f2e ios.cc (ios_base::_M_init): Remove _M_callbacks initialization.
2003-04-04  Jerry Quinn  <jlquinn@optonline.net>

	* src/ios.cc (ios_base::_M_init): Remove _M_callbacks
	initialization.

From-SVN: r65242
2003-04-04 15:05:17 +00:00
J"orn Rennecke
5d80621758 sh.h (ACTUAL_NORMAL_MODE): New macro, broken out of (NORMAL_MODE).
* sh.h (ACTUAL_NORMAL_MODE): New macro, broken out of
	(NORMAL_MODE).
	* sh.c (fpscr_set_from_mem): Use ACTUAL_NORMAL_MODE.

From-SVN: r65241
2003-04-04 16:01:15 +01:00
Gerald Pfeifer
0dc5ac92eb contrib.texi (Contributors): Add entries for Wolfgang Bangerth...
* doc/contrib.texi (Contributors): Add entries for Wolfgang
	Bangerth, DJ Delorie, Christian Ehrhardt, Christopher Faylor,
	Nathanael Nerode, Diego Novillo, Hartmut Penner, Volker Reichelt,
	Danny Smith, and Ulrich Weigand.
	Update Kriang Lerdsuwanakij and fix a typo in Janis Johnson's
	entry.

From-SVN: r65238
2003-04-04 14:56:02 +00:00
Nick Clifton
5eb7ad0752 config/sparc/sol2-bi.h: Revert previous delta.
config/sparc/sol2-gas-bi.h (AS_SPARC64_FLAG): Prepend -TSO.

From-SVN: r65237
2003-04-04 13:00:09 +00:00
Nick Clifton
fdf3bb57c2 (expand_prologue): Only use register save helper functions if long calls are not being used.
(expand_prologue): Only use register save helper functions if long calls are
not being used.
Add a clobber of r11 id using long calls.
(prolog pattern): Do not use this pattern for v850e's.

From-SVN: r65236
2003-04-04 10:38:50 +00:00
Andreas Schwab
ad3f5759fe stor-layout.c (layout_decl): Avoid syntax error in last change when PCC_BITFIELD_TYPE_MATTERS is defined but...
* stor-layout.c (layout_decl): Avoid syntax error in last change
	when PCC_BITFIELD_TYPE_MATTERS is defined but not
	EMPTY_FIELD_BOUNDARY.

From-SVN: r65234
2003-04-04 09:01:13 +00:00
Mike Stump
2f2f6d4634 Oops, asm-fs-1.c works as expected on darwin.
From-SVN: r65231
2003-04-04 01:37:26 +00:00
Mike Stump
896e265fec Oops, this works as expected now.
From-SVN: r65230
2003-04-04 01:36:45 +00:00
Jason Merrill
b60bca8f07 re PR c/10175 (-Wunreachable-code doesn't work for single lines)
PR c/10175
        * jump.c (never_reached_warning): Revert patch of 2002-11-02.
        Look backwards for a line note.

From-SVN: r65229
2003-04-03 20:25:40 -05:00
Jason Merrill
ed2e5902ab re PR c/10175 (-Wunreachable-code doesn't work for single lines)
PR c/10175
        * jump.c (never_reached_warning): Revert patch of 2002-11-02.
        Look backwards for a line note.

From-SVN: r65227
2003-04-03 20:21:56 -05:00
Mike Stump
bc349178ee asm-fs-1.c: Expect failure on darwin.
* gcc.dg/asm-fs-1.c: Expect failure on darwin.

	* lib/scanasm.exp (scan-assembler): Add xfail processing for
        target arg.
	(scan-assembler-times, scan-assembler-not): Likewise.
	(scan-assembler-dem, scan-assembler-dem-not): Likewise.

From-SVN: r65225
2003-04-04 01:19:31 +00:00
GCC Administrator
26ec28e403 Daily bump.
From-SVN: r65224
2003-04-04 00:17:04 +00:00
Kaveh R. Ghazi
d893ff3389 Make-lang.in (cp-warn): Add $(STRICT_WARN).
* Make-lang.in (cp-warn): Add $(STRICT_WARN).
	* cp-tree.h: Don't insist on having GNUC.

From-SVN: r65217
2003-04-03 23:26:03 +00:00
Neil Booth
7b43d10453 * fix-header.c (read_scan_file): Defer switch processing.
From-SVN: r65216
2003-04-03 22:01:21 +00:00
Matt Austern
d24ecd21b3 cpppch.c (reset_ht): Remove.
* cpppch.c (reset_ht): Remove.
	(cpp_read_state): Remove loop to reset hashtable identifiers.
	* ggc-common.c (gt_pch_save): Add call to gt_pch_fixup_stringpool
	after pch file is written.
	* ggc.h (gt_pch_fixup_stringpool): Declare.
	* stringpool.c (ht_copy_and_clear): Define.  Callback.  Copy
	hashnode's value to another hashtable, then clear the original.
	(saved_ident_hash): Define.
	(gt_pch_save_stringpool): Create saved_ident_hash, use it to
	store definitions in ident_hash, and clear ident_hash.
	(gt_pch_fixup_stringpool): Define.  Restore definitions from
	saved_ident_hash to ident_hash, then destroy saved_ident_hash.

From-SVN: r65215
2003-04-03 21:00:56 +00:00
Jan Hubicka
bcc53e2a94 * cfgrtl.c (update_bb_for_insn): Do not set block for barriers.
From-SVN: r65214
2003-04-03 20:28:39 +00:00
Jason Merrill
55a2af0c42 cvt.c (ocp_convert): Only abort if we try to convert an object of TREE_ADDRESSABLE type.
* cvt.c (ocp_convert): Only abort if we try to convert an object
        of TREE_ADDRESSABLE type.

From-SVN: r65212
2003-04-03 15:07:56 -05:00
Eric Botcazou
773eae3968 re PR rtl-optimization/10157 ([Sparc] internal compiler error: in extract_insn, at recog.c:2188)
PR optimization/10157
	* gcse.c (can_copy_p): Rename it to can_copy.
	(can_copy_init_p): Remove.
	(compute_can_copy): Use can_copy instead of can_copy_p.
	(can_copy_p): New exported function. Call compute_can_copy.
	(hash_scan_set): Use it.
	(gcse_main): Don't call compute_can_copy.
	(bypass_jumps): Don't call compute_can_copy.
	* rtl.h (can_copy_p): Declare.
	* loop.c (scan_loop): Don't move the source and add a reg-to-reg
	copy if the mode doesn't support copy operations.

From-SVN: r65210
2003-04-03 19:20:06 +00:00
Jason Merrill
613fa1469c * Makefile.in (unstrap): Also remove stage_last.
From-SVN: r65209
2003-04-03 14:10:42 -05:00
Jason Merrill
7bf6b23db5 dwarf2out.c (lookup_filename): Don't check for "<internal>".
* dwarf2out.c (lookup_filename): Don't check for "<internal>".
        (dwarf2out_source_line): Don't do anything if line==0.

From-SVN: r65208
2003-04-03 14:03:08 -05:00
Jason Merrill
78d55cc86e stor-layout.c (do_type_align): New fn, split out from...
* stor-layout.c (do_type_align): New fn, split out from...
        (layout_decl): ...here.  Do all alignment calculations for
        FIELD_DECLs here.
        (update_alignment_for_field): Not here.
        (start_record_layout, debug_rli): Remove unpadded_align.
        * tree.h (struct record_layout_info_s): Remove unpadded_align.
        * c-decl.c (finish_enum): Don't set DECL_SIZE, DECL_ALIGN
        or DECL_MODE on the CONST_DECLs.
        (finish_struct): Don't mess with DECL_ALIGN.
        * cp/class.c (build_vtable): Set DECL_ALIGN here.
        (get_vtable_decl): Not here.
        (layout_vtable_decl): Or here.
        (create_vtable_ptr): Or here.
        (layout_class_type): Or here.
        (check_bitfield_decl): Don't mess with field alignment.
        * ada/misc.c (gnat_adjust_rli): #if 0.

From-SVN: r65207
2003-04-03 13:23:04 -05:00
Jan Hubicka
d10f5ecf5c * i386.c (print_operand): Do not bypass output_addr_const at flag_pic.
From-SVN: r65205
2003-04-03 17:40:47 +00:00
J"orn Rennecke
70aadfcca2 sh.c (sh_function_ok_for_sibcall): Return 0 if the current function is an interrupt handler.
* sh.c (sh_function_ok_for_sibcall): Return 0 if the current
	function is an interrupt handler.

From-SVN: r65204
2003-04-03 18:01:34 +01:00
J"orn Rennecke
8d3b095348 * Avoid clash of temp register for restoring target registers
with EH_RETURN_STACKADJ_RTX; use multiple registers in round-robin
	fashion.

From-SVN: r65202
2003-04-03 17:21:48 +01:00
Kaveh R. Ghazi
de94b46c5c gengtype-lex.l (IWORD): Add CHAR_BITFIELD.
gcc:
	* gengtype-lex.l (IWORD): Add CHAR_BITFIELD.
	* system.h (CHAR_BITFIELD): New.
cp:
	* operators.def (DEF_SIMPLE_OPERATOR, DEF_ASSN_OPERATOR,
	DEF_ASSN_OPERATOR): Delete spurious semi-colon.
	* rtti.c (dfs_class_hint_mark): Likewise.

	* decl.c (push_local_name, push_class_level_binding,
	maybe_inject_for_scope_var): Don't use POP_TIMEVAR_AND_RETURN in
	functions returning void.
	* decl2.c (add_using_namespace): Likewise.

	* decl.c (print_binding_level, print_other_binding_stack,
	print_binding_stack): Cast argument of %p specifier to void*.
	* ptree.c (cxx_print_decl): Likewise.

	* cp-tree.h (VAR_OR_FUNCTION_DECL_CHECK,
	VAR_FUNCTION_OR_PARM_DECL_CHECK,
	VAR_TEMPL_TYPE_OR_FUNCTION_DECL_CHECK, RECORD_OR_UNION_TYPE_CHECK,
	BOUND_TEMPLATE_TEMPLATE_PARM_TYPE_CHECK, LANG_TYPE_CLASS_CHECK,
	LANG_TYPE_PTRMEM_CHECK, LANG_DECL_U2_CHECK): Add __extension__.

	* decl.c (set_current_binding_level): New macro.  Use throughout
	when setting the current binding level.

	* cp-tree.h (cp_lvalue_kind, base_access): Delete trailing comma
	in enum.
	* method.c (mangling_flags): Likewise.

	* cp-tree.h (lang_type_header): Add __extension__ and use
	CHAR_BITFIELD for members.

From-SVN: r65201
2003-04-03 15:42:16 +00:00
Kazu Hirata
203dcb741c h8300.md (a peephole2): Generalize to accept GT and LE.
* config/h8300/h8300.md (a peephole2): Generalize to accept GT
	and LE.
	(another peephole2): Likewise.

From-SVN: r65199
2003-04-03 11:59:42 +00:00
Nick Clifton
dc00aebddf sol2-bi.h (ASM_CPU64_DEFAULT_SPEC): Add -TSO.
* config/sparc/sol2-bi.h (ASM_CPU64_DEFAULT_SPEC): Add -TSO.
(DEF_ARCH64_SPEC): Likewise.

From-SVN: r65198
2003-04-03 10:21:22 +00:00
Jan Hubicka
a94f136b52 i386.c (constant_address_p): Use legitimate_constant_p.
* i386.c (constant_address_p): Use legitimate_constant_p.
	(legitimate_address_p): Do not use CONSTANT_ADDRESS_P.

From-SVN: r65196
2003-04-03 07:54:27 +00:00
Geoffrey Keating
0de298af46 Index: testsuite/ChangeLog
2003-04-02  Geoffrey Keating  <geoffk@apple.com>

	* g++.dg/pch/system-2.C: New.
	* g++.dg/pch/system-2.Hs: New.

Index: cp/ChangeLog
2003-04-02  Geoffrey Keating  <geoffk@apple.com>

	* mangle.c: Include gt-cp-mangle.h.
	(subst_identifiers): Mark with GTY.
	* config-lang.in (gtfiles): Add cp/mangle.c.
	* Make-lang.in: (gt-cp-mangle.h): New rule.
	(cp/mangle.o): Depends on gt-cp-mangle.h.

From-SVN: r65194
2003-04-03 03:45:49 +00:00
Kazu Hirata
9a2dd2dd02 h8300-protos.h: Add a prototype for gtle_operator.
* config/h8300/h8300-protos.h: Add a prototype for
	gtle_operator.
	* config/h8300/h8300.c (gtle_operator): New.
	* config/h8300/h8300.h (PREDICATE_CODES): Add an entry for
	gtle_operator.
	* config/h8300/h8300.md (a peephole2): Generalize to accept GT
	and LE.

From-SVN: r65192
2003-04-03 02:41:19 +00:00
Richard Henderson
378683cf62 libgcc-std.ver (_Unwind_GetCFA): New.
* libgcc-std.ver (_Unwind_GetCFA): New.
        * unwind-dw2.c (_Unwind_GetCFA): New.
        * unwind-libunwind.c (_Unwind_GetCFA): New.
        * unwind-sjlj.c (_Unwind_GetCFA): New.
        * unwind.h: Declare it.

From-SVN: r65190
2003-04-02 18:06:55 -08:00
GCC Administrator
63dfa9bb2a Daily bump.
From-SVN: r65189
2003-04-03 00:17:06 +00:00