Daniel Berlin [Sun, 29 Jul 2001 18:23:36 +0000 (18:23 +0000)]
df.c (df_rd_global_compute): Add successors to worklist, not current item.
2001-07-29 Daniel Berlin <dan@cgsoftware.com>
* df.c (df_rd_global_compute): Add successors to worklist, not
current item.
(df_ru_global_compute): Ditto for preds.
From-SVN: r44461
Daniel Berlin [Sun, 29 Jul 2001 18:21:08 +0000 (18:21 +0000)]
[multiple changes]
2001-07-27 Daniel Berlin <dan@cgsoftware.com>
* regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
increment REG_N_SETS.
2001-07-26 Daniel Berlin <dan@cgsoftware.com>
* sbitmap.h: New prototype for sbitmap_a_xor_b.
* sbitmap.c (sbitmap_a_xor_b): New function.
#ifdef the basic block stuff on the define IN_GCC.
From-SVN: r44460
Neil Booth [Sun, 29 Jul 2001 17:27:57 +0000 (17:27 +0000)]
cppexp.c (parse_defined): Always record the macro name.
* cppexp.c (parse_defined): Always record the macro name.
(lex): Don't worry about identifiers, or special-case
CPP_NOT here.
(_cpp_parse_expr): Figure out at the end of the routine
whether we saw a valid !defined() expression.
* cppfiles.c (stack_include_file): Update for mi_valid.
(_cpp_pop_file_buffer): Similarly.
* cpplex.c (_cpp_lex_token): Similarly.
* cpphash.h (enum mi_state, enum mi_ind, mi_state,
mi_if_not_defined, mi_lexed): Remove.
(mi_valid): New.
* cpplib.c (do_if): Simplify.
(do_endif, push_conditional, _cpp_handle_directive): Update
for renaming of mi_state to mi_valid.
* cpp.texi: Add index entries for digraphs, and add comment
that C++ refers to them as alternative tokens.
From-SVN: r44459
Jan Hubicka [Sun, 29 Jul 2001 17:01:53 +0000 (17:01 +0000)]
basic-block.h (CLEANUP_PRE_LOOP): New.
* basic-block.h (CLEANUP_PRE_LOOP): New.
* except.c (finish_eh_generation): Update call of cleanup_cfg.
* sibcall.c (optimize_sibling_calls): Likewise.
* toplev.c (rest_of_compilation): Likewise.
* flow.c (try_forward_edges): Take argument MODE;
do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
(try_optimize_cfg): Update call of try_forward_edges.
* (validate_replace_rtx_1): Fix simplification of MINUS.
From-SVN: r44458
Neil Booth [Sun, 29 Jul 2001 14:40:45 +0000 (14:40 +0000)]
re PR preprocessor/3669 (-M -g3 outputs macros as well as dependency info)
PR preprocessor/3669
* cppinit.c (init_dependency_output): Turn off dump requests
if sending dependencies to stdout.
From-SVN: r44457
Mark Wielaard [Sun, 29 Jul 2001 10:05:08 +0000 (10:05 +0000)]
* HACKING: add description on updating namespace
From-SVN: r44454
GCC Administrator [Sun, 29 Jul 2001 07:16:10 +0000 (07:16 +0000)]
Daily bump.
From-SVN: r44452
Richard Henderson [Sun, 29 Jul 2001 06:59:47 +0000 (23:59 -0700)]
flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if not optimizing.
* flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
not optimizing.
From-SVN: r44451
Golubev I. N. [Sun, 29 Jul 2001 06:33:34 +0000 (06:33 +0000)]
* config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
From-SVN: r44447
Kazu Hirata [Sun, 29 Jul 2001 03:12:34 +0000 (03:12 +0000)]
h8300.h (ENCODE_SECTION_INFO): Check to see if DECL is VAR_DECL first to prevent an ICE.
* config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
is VAR_DECL first to prevent an ICE.
From-SVN: r44446
Richard Henderson [Sun, 29 Jul 2001 02:46:18 +0000 (19:46 -0700)]
varasm.c (immed_real_const_1): Don't elide special cases for nested functions.
* varasm.c (immed_real_const_1): Don't elide special cases for
nested functions.
(clear_const_double_mem): Clear const_tiny_rtx too.
From-SVN: r44445
Richard Henderson [Sun, 29 Jul 2001 02:10:42 +0000 (19:10 -0700)]
dwarf2out.c (dw_val_class_offset): New.
* dwarf2out.c (dw_val_class_offset): New.
(struct dw_ranges_struct, dw_ranges_ref): New.
(ranges_table, ranges_table_allocated): New.
(ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
(add_AT_offset, add_ranges, output_ranges): New.
(print_die, output_die): Handle dw_val_class_offset.
(attr_checksum, size_of_die, value_format): Likewise.
(gen_lexical_block_die): Handle non-contiguous blocks.
(gen_block_die): Likewise.
(dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
if needed. Dump the ranges table.
* final.c (final_start_function): Remove unnecessary notes and
rebuild the block tree before numbering the blocks.
* function.c (reorder_blocks_0): Walk the existing block tree
to unmark all blocks.
(reorder_blocks_1): Create block fragments when duplicate block
notes are seen.
(reorder_fix_fragments): New.
(reorder_blocks): Call it.
* tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
From-SVN: r44444
Richard Henderson [Sun, 29 Jul 2001 01:39:17 +0000 (18:39 -0700)]
* method.c (pending_inlines): Remove.
From-SVN: r44443
Richard Henderson [Sun, 29 Jul 2001 01:35:13 +0000 (18:35 -0700)]
* emit-rtl.c (adjust_address): Make a copy of the memory address.
From-SVN: r44442
Richard Henderson [Sun, 29 Jul 2001 01:13:53 +0000 (18:13 -0700)]
flow.c (add_to_mem_set_list): New function.
* flow.c (add_to_mem_set_list): New function.
(init_propagate_block_info): Use it.
(mark_set_1): Likewise.
(insn_dead_p): Canonicalize memory address for dead store
comparison. Allow wider mode stores to kill narrower mode stores.
(invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
(invalidate_mems_from_set): Don't handle MEMs.
From-SVN: r44441
Kazu Hirata [Sun, 29 Jul 2001 00:44:40 +0000 (00:44 +0000)]
* config/h8300/h8300.h: Fix formatting.
From-SVN: r44440
Jan Hubicka [Sat, 28 Jul 2001 21:37:35 +0000 (23:37 +0200)]
basic-block.h (EDGE_FREQUENCY): New macro.
* basic-block.h (EDGE_FREQUENCY): New macro.
* bb-reorder (fixup_reorder_chain): Set counts and frequencies
for new BB/edges.
* flow.c (find_sub_basic_blocks): Likewise.
(try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
(redirect_edge_and_branch): Use EDGE_FREQUENCY.
* predict.c (DEF_PREDICTOR): New argument FLAGS.
(HITRATE): New macro.
(PRED_FLAG_FIRST_MATCH): New constant.
(predictor_info): New field flgags.
(combine_predictions_for_insn): Use DS theory to combine
probabilities; set the edge probabilities when finished.
(estimate_probability): Avoid duplicated matches
of LOOP_BRANCH heuristics for nested loops; update comment.
* predict.def: Add flags for each prediction, set probabilities
according to B&L paper.
* predict.h (DEF_PREDICTOR): New argument FLAGS.
* profile.c (compute_branch_probabilities): Cleanup way the edge
probabilities are computed and REG_BR_PROB notes are dropped; if
values does not match, emit error.
(init_branch_prob): Do error instead of warning when profile driven
feedback is missing or corrupt.
From-SVN: r44439
Jan Hubicka [Sat, 28 Jul 2001 20:39:02 +0000 (22:39 +0200)]
* analyze_brprob: Avoid more overflows.
From-SVN: r44438
GCC Administrator [Sat, 28 Jul 2001 07:16:09 +0000 (07:16 +0000)]
Daily bump.
From-SVN: r44436
DJ Delorie [Sat, 28 Jul 2001 03:13:34 +0000 (23:13 -0400)]
ifcvt.c (noce_get_alt_condition): If the condition is a compare against a constant...
* ifcvt.c (noce_get_alt_condition): If the condition is a compare
against a constant, try to adjust the compare to have the desired
constant in it so that min/max optimizations happen more often.
From-SVN: r44435
Richard Henderson [Fri, 27 Jul 2001 21:10:29 +0000 (14:10 -0700)]
* test_summary: Copy LAST_UPDATED UTC time to head of summary.
From-SVN: r44433
Jan Hubicka [Fri, 27 Jul 2001 16:03:08 +0000 (18:03 +0200)]
* analyze_brprob: Avoid overflows.
From-SVN: r44430
Jan Hubicka [Fri, 27 Jul 2001 15:55:41 +0000 (17:55 +0200)]
flow.c (last_loop_beg_note): New function.
* flow.c (last_loop_beg_note): New function.
(redirect_edge_and_branch): Use it.
(split_edge): Likewise.
* alias.c (loop_p): Avoid uninitialized memory access.
* flow.c (try_forward_edges): Avoid accessing freed memory.
* flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
variable access.
From-SVN: r44429
Andrew Haley [Fri, 27 Jul 2001 15:20:41 +0000 (15:20 +0000)]
linux.h (CPP_DEFAULT_CPU_SPEC): New.
2001-07-26 Andrew Haley <aph@redhat.com>
Joern Rennecke <amylaar@redhat.com>
* config/sh/linux.h (CPP_DEFAULT_CPU_SPEC): New.
(SUBTARGET_CPP_ENDIAN_SPEC): New.
(SUBTARGET_CPP_SPEC): New.
(CPP_SPEC): Remove.
* config/sh/sh.h (SUBTARGET_CPP_ENDIAN_SPEC): New.
(SUBTARGET_CPP_PTR_SPEC): New.
(CPP_DEFAULT_CPU_SPEC): New.
(EXTRA_SPECS): Add SUBTARGET_CPP_ENDIAN_SPEC,
SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
(CPP_SPEC): Break out parts into SUBTARGET_CPP_ENDIAN_SPEC,
SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
(SUBTARGET_CPP_SPEC): Define as an empty string.
From-SVN: r44428
Nathan Sidwell [Fri, 27 Jul 2001 15:12:49 +0000 (15:12 +0000)]
class.c (mark_primary_virtual_base): Don't adjust base offsets here.
cp:
* class.c (mark_primary_virtual_base): Don't adjust base
offsets here.
(dfs_unshared_virtual_bases): Adjust them here.
(mark_primary_bases): Explain why we adjust at the end.
testsuite:
* g++.dg/abi/vbase8-21.C: New test.
From-SVN: r44425
Nathan Sidwell [Fri, 27 Jul 2001 15:07:40 +0000 (15:07 +0000)]
class.c (finish_struct_1): When copying the primary base's VFIELD, make sure we find it is at offset zero.
cp:
* class.c (finish_struct_1): When copying the primary base's
VFIELD, make sure we find it is at offset zero.
testsuite:
* g++.dg/abi/vbase8-10.C: New test.
From-SVN: r44421
Rainer Orth [Fri, 27 Jul 2001 12:21:56 +0000 (12:21 +0000)]
g++.exp (g++_set_ld_library_path): Renamed to ${tool}_set_ld_library_path.
gcc/testsuite:
* lib/g++.exp (g++_set_ld_library_path): Renamed to
${tool}_set_ld_library_path.
Changed caller.
* lib/objc.exp (${tool}_set_ld_library_path): New, copied from
g++.exp.
libjava/testsuite:
* lib/libjava.exp (${tool}_set_ld_library_path): New, copied from
g++.exp.
From-SVN: r44420
Gerald Pfeifer [Fri, 27 Jul 2001 08:48:38 +0000 (10:48 +0200)]
install.texi (Configuration): Properly link the host specific instructions also when generating HTML.
* doc/install.texi (Configuration): Properly link the host
specific instructions also when generating HTML.
From-SVN: r44416
GCC Administrator [Fri, 27 Jul 2001 07:16:44 +0000 (07:16 +0000)]
Daily bump.
From-SVN: r44415
Richard Henderson [Fri, 27 Jul 2001 06:00:45 +0000 (23:00 -0700)]
gcc_update: Dump timestamp in LAST_UPDATED.
* contrib/gcc_update: Dump timestamp in LAST_UPDATED.
* .cvsignore: Add LAST_UPDATED.
From-SVN: r44413
John Wehle [Fri, 27 Jul 2001 04:35:18 +0000 (04:35 +0000)]
flow.c (redirect_edge_and_branch_force): Test target->global_live_at_start.
* flow.c (redirect_edge_and_branch_force): Test
target->global_live_at_start.
From-SVN: r44412
Richard Henderson [Thu, 26 Jul 2001 23:47:15 +0000 (16:47 -0700)]
simplify-rtx.c (avoid_constant_pool_reference): Export.
* simplify-rtx.c (avoid_constant_pool_reference): Export.
* rtl.h (avoid_constant_pool_reference): Declare it.
* dwarf2out.c (add_location_or_const_value_attribute): Use it.
(add_const_value_attribute): Use add_AT_unsigned for unsigned values.
From-SVN: r44411
Stan Cox [Thu, 26 Jul 2001 21:38:14 +0000 (21:38 +0000)]
g++.exp (g++_exit, [...]): Removed.
* lib/g++.exp (g++_exit, g++_check_unsupported_p): Removed.
* lib/gcc.exp (gcc_check_compile, gcc_pass, gcc_fail, gcc_finish,
gcc_exit, gcc_check_unsupported_p):
Moved to gcc-deps.exp
* gcc-deps.exp: New file.
From-SVN: r44410
Jan Hubicka [Thu, 26 Jul 2001 20:36:01 +0000 (22:36 +0200)]
rtl.h (cleanup_barriers): Declare.
* rtl.h (cleanup_barriers): Declare.
* jump.c (cleanup_barriers): New function.
* toplev.c (rest_of_compilation): Call cleanup_barriers
before loop optimizer and after bb_reorder.
* flow.c (back_edge_of_syntactic_loop_p): New.
(split_edge): Use it.
From-SVN: r44409
Rainer Orth [Thu, 26 Jul 2001 20:19:15 +0000 (20:19 +0000)]
* glimits.h (_MACH_MACHLIMITS_H_): Delete.
From-SVN: r44408
Denis Chertykov [Thu, 26 Jul 2001 18:31:01 +0000 (18:31 +0000)]
cse.c (cse_process_notes): Replace any registers if the address remains valid.
* cse.c (cse_process_notes): Replace any registers if the address
remains valid.
From-SVN: r44406
John Wehle [Thu, 26 Jul 2001 18:06:45 +0000 (18:06 +0000)]
basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
* basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
(PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
(propagate_block): Update prototype.
* flow.c (update_life_info): Simplify the CFG and
recalculate the global regs which are alive when
removing dead code during a global update.
(propagate_block): Return non-zero if an INSN is
deleted.
From-SVN: r44403
Rainer Orth [Thu, 26 Jul 2001 16:27:36 +0000 (16:27 +0000)]
Makefile.in (LIBICONV): Define.
2001-07-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* Makefile.in (LIBICONV): Define.
From-SVN: r44401
Catherine Moore [Thu, 26 Jul 2001 15:42:54 +0000 (15:42 +0000)]
v850.h (ENCODE_SECTION_INFO): Change order of conditional to avoid tree checking errors.
* config/v850/v850.h (ENCODE_SECTION_INFO): Change order
of conditional to avoid tree checking errors.
From-SVN: r44400
Kazu Hirata [Thu, 26 Jul 2001 15:23:07 +0000 (15:23 +0000)]
regmove.c (regmove_optimize): Don't replace a reg with another reg of a different mode.
* regmove.c (regmove_optimize): Don't replace a reg with
another reg of a different mode.
From-SVN: r44399
Andrew MacLeod [Thu, 26 Jul 2001 13:59:22 +0000 (13:59 +0000)]
params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to limit length of dependancy flush list.
2001-07-26 Andrew MacLeod <amacleod@redhat.com>
* params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
limit length of dependancy flush list.
* params.h (MAX_PENDING_LIST_LENGTH): Define.
* sched-int.h (struct deps): Add pending_flush_length field.
* sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
has 1 element in it.
(sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
(sched_analyze): After a jump, if the pending memory flush list is too
large, flush the pending lists.
(init_deps): Initialize pending_flush_length to 0.
* doc/invoke.texi (max_pending_list_length): Document parameter.
From-SVN: r44398
Kriang Lerdsuwanakij [Thu, 26 Jul 2001 12:48:01 +0000 (12:48 +0000)]
pt.c (tsubst_template_parms): Call maybe_fold_nontype_arg and tsubst_expr for default template arguments.
2001-07-22 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
* pt.c (tsubst_template_parms): Call maybe_fold_nontype_arg and
tsubst_expr for default template arguments.
2001-07-22 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
* g++.old-deja/g++.pt/defarg14.C: New test.
From-SVN: r44396
Bryce McKinlay [Thu, 26 Jul 2001 11:21:45 +0000 (11:21 +0000)]
Calendar.java (set): Never recompute fields here.
* java/util/Calendar.java (set): Never recompute fields here. They
will already be set if someone set time explicitly, and it can cause
problems to do so. Don't invalidate AM_PM setting if HOUR is set.
* java/util/GregorianCalendar.java (computeTime): Don't ignore an
HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
sane.
* java/text/SimpleDateFormat.java (defaultCentury): New field.
(readObject): Call set2DigitYearStart if appropriate so that
defaultCentury is calculated.
(SimpleDateFormat): Don't bother clearing calendar here. Call
computeCenturyStart().
(set2DigitYearStart): Calculate and set defaultCentury.
(format): Don't clone the calendar. Use "calendar" not "theCalendar"
everywhere.
(parse): Likewise. If the pattern is "y" or "yy" and it found exactly
2 numeric digits, use the 80-20 heuristic to parse the value into a
default century based on defaultCenturyStart.
(computeCenturyStart): Rewritten. Call set2DigitYearStart().
From-SVN: r44395
Daniel Jacobowitz [Thu, 26 Jul 2001 08:41:40 +0000 (08:41 +0000)]
* Makefile.in (regex.o): Add dependency on config.h.
From-SVN: r44394
Nathan Sidwell [Thu, 26 Jul 2001 08:15:43 +0000 (08:15 +0000)]
spew.c (yylex): Only copy the token's lineno, if it is non-zero.
cp:
* spew.c (yylex): Only copy the token's lineno, if it is
non-zero.
testsuite:
* g++.old-deja/g++.other/lineno5.C: New test.
From-SVN: r44391
Nathan Sidwell [Thu, 26 Jul 2001 08:12:00 +0000 (08:12 +0000)]
re PR c++/3624 (Internal error: Segmentation fault)
cp:
PR c++/3624
* call.c (resolve_args): Simplify, call
convert_from_reference.
(build_new_op): Resolve and convert from reference ARG1
earlier. Adjust ARG2 & ARG3 resolve and conversion.
testsuite:
* g++.old-deja/g++.pt/crash68.C: New test.
From-SVN: r44388
Nathan Sidwell [Thu, 26 Jul 2001 08:07:56 +0000 (08:07 +0000)]
re PR c++/3152 (g++-3.0 segfaults when compiling program using -g)
cp:
* decl.c (last_function_parm_tags): Remove.
(current_function_parm_tags): Remove.
(init_decl_processing): Adjust.
(start_function): Adjust.
(store_parm_decls): Adjust.
PR c++/3152
* decl.c (grokdeclarator): Detect when a function typedef is
declaring a function, and create last_function_parms correctly.
testsuite:
* g++.old-deja/g++.other/crash42.C: New test.
From-SVN: r44387
GCC Administrator [Thu, 26 Jul 2001 07:16:10 +0000 (07:16 +0000)]
Daily bump.
From-SVN: r44383
Neil Booth [Thu, 26 Jul 2001 06:56:13 +0000 (06:56 +0000)]
toplev.c, [...]: Include xcoffout.h if appropriate.
* toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
* dbxout.c (dbxout_global_decl): Move outside #ifdef.
* Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
From-SVN: r44382
Andreas Jaeger [Thu, 26 Jul 2001 06:41:48 +0000 (08:41 +0200)]
* analyze_brprob: Fix documentation.
From-SVN: r44381
Neil Booth [Thu, 26 Jul 2001 06:02:47 +0000 (06:02 +0000)]
cpphash.h (struct_lexer_state): Delete was_skipping.
* cpphash.h (struct_lexer_state): Delete was_skipping.
Move skipping here from struct cpp_reader.
* cpplex.c (parse_identifier): Update.
(_cpp_lex_token): Don't skip tokens in a directive.
* cpplib.c (struct if_stack): Update.
(start_directive, end_directive): Don't change skipping state.
(_cpp_handle_directive): Update.
(do_ifdef, do_ifndef, do_if, do_elif): Similarly.
(do_else, do_endif): Update; only check for excess tokens if not
in a skipped conditional block.
(push_conditional): Update for new struct if_stack.
* gcc.dg/cpp/extratokens.c: Fix.
* gcc.dg/cpp/skipping2.c: New tests.
From-SVN: r44380
Graham Stott [Thu, 26 Jul 2001 05:45:25 +0000 (05:45 +0000)]
function.c (locate_and_pad_parm): Also pad initial offset so that the total argument size also includes the padding.
* function.c (locate_and_pad_parm): Also pad initial offset
so that the total argument size also includes the padding.
From-SVN: r44379
Graham Stott [Thu, 26 Jul 2001 05:44:18 +0000 (05:44 +0000)]
gensupport.c (alter_output_for_insn): Correct enable checking failure change XSTR to XTMPL.
* gensupport.c (alter_output_for_insn): Correct enable checking failure
change XSTR to XTMPL.
(process_one_cond_exec): Likewise
From-SVN: r44378
Graham Stott [Thu, 26 Jul 2001 05:43:34 +0000 (05:43 +0000)]
function.c (locate_and_pad_parm): Also pad initial offset so that the total argument size also includes the padding.
* function.c (locate_and_pad_parm): Also pad initial offset
so that the total argument size also includes the padding.
* gensupport.c (alter_output_for_insn): Correct enable checking failure
change XSTR to XTMPL.
(process_one_cond_exec): Likewise
From-SVN: r44377
H.J. Lu [Thu, 26 Jul 2001 05:04:48 +0000 (05:04 +0000)]
configure.target (cpu_include_dir): Set to `config/cpu/mips' for mips.
2001-07-25 H.J. Lu <hjl@gnu.org>
* configure.target (cpu_include_dir): Set to `config/cpu/mips'
for mips.
* config/cpu/mips/bits/atomicity.h: New.
From-SVN: r44375
H.J. Lu [Thu, 26 Jul 2001 05:04:48 +0000 (22:04 -0700)]
configure.target (cpu_include_dir): Set to `config/cpu/mips' for mips.
2001-07-25 H.J. Lu <hjl@gnu.org>
* configure.target (cpu_include_dir): Set to `config/cpu/mips'
for mips.
* config/cpu/mips/bits/atomicity.h: New.
[[Split portion of a mixed commit.]]
From-SVN: r44374.2
Richard Henderson [Thu, 26 Jul 2001 01:28:01 +0000 (18:28 -0700)]
varasm.c (assemble_variable): Create DECL_RTL before setting TREE_ASM_WRITTEN.
* varasm.c (assemble_variable): Create DECL_RTL before setting
TREE_ASM_WRITTEN.
From-SVN: r44372
Jan Hubicka [Wed, 25 Jul 2001 22:36:42 +0000 (22:36 +0000)]
Fix typo spotted by Richard.
From-SVN: r44370
Jan Hubicka [Wed, 25 Jul 2001 22:23:09 +0000 (00:23 +0200)]
predict.c (estimate_probability): Avoid duplicated predictions.
* predict.c (estimate_probability): Avoid duplicated predictions.
* loop.c (find_and_verify_loops): Grok multiple barriers.
From-SVN: r44369
Richard Kenner [Wed, 25 Jul 2001 22:08:05 +0000 (22:08 +0000)]
* config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
From-SVN: r44368
Richard Kenner [Wed, 25 Jul 2001 22:03:03 +0000 (18:03 -0400)]
dbxout.c: Consistently use putc instead of fputc.
* dbxout.c: Consistently use putc instead of fputc.
(print_wide_int): New function; call instead of direct fprintf.
(dbxout_type_index): Adjust calls of CHARS to be more accurate.
(dbxout_type_fields, dbxout_type_method_1): Likewise.
(dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
(print_int_cst_octal): Likewise.
(print_octal): Show we wrote characters.
(dbxout_type): Set have_used_extensions in more places.
From-SVN: r44367
Catherine Moore [Wed, 25 Jul 2001 21:49:46 +0000 (21:49 +0000)]
v850.c (v850_va_arg): Use addr instead of valist to build incr.
* config/v850/v850.c (v850_va_arg): Use addr
instead of valist to build incr.
From-SVN: r44366
Jan Hubicka [Wed, 25 Jul 2001 20:51:24 +0000 (22:51 +0200)]
flow.c (delete_dead_jumptables): New function.
* flow.c (delete_dead_jumptables): New function.
(life_analyzis): Call it.
* bb-reorder.c (skip_insns_after_block): Handle contradictive sequences.
From-SVN: r44365
Richard Henderson [Wed, 25 Jul 2001 19:59:39 +0000 (12:59 -0700)]
except.c (reachable_handlers): Handle a region being removed out from under a RESX.
* except.c (reachable_handlers): Handle a region being removed
out from under a RESX.
From-SVN: r44363
Jason Merrill [Wed, 25 Jul 2001 18:11:45 +0000 (14:11 -0400)]
xfail until patch applied
From-SVN: r44361
Richard Henderson [Wed, 25 Jul 2001 17:34:04 +0000 (10:34 -0700)]
alpha.c (alpha_emit_conditional_move): Always swap GE/GT if its an fp comparison.
* config/alpha/alpha.c (alpha_emit_conditional_move): Always
swap GE/GT if its an fp comparison.
From-SVN: r44360
Tom Tromey [Wed, 25 Jul 2001 16:40:04 +0000 (16:40 +0000)]
Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
* Makefile.am (libgcj.jar): Correctly fail when bytecode
compilation fails.
From-SVN: r44359
Jason Merrill [Wed, 25 Jul 2001 15:04:32 +0000 (11:04 -0400)]
call.c (joust): Only prefer a non-builtin candidate to a builtin one if...
* call.c (joust): Only prefer a non-builtin candidate to a builtin
one if they have the same signature.
* cvt.c (build_up_reference): Take DECL parm. Check TREE_STATIC on
it rather than toplevel_bindings_p. Give it a mangled name if static.
(convert_to_reference): Adjust.
* decl2.c (get_temp_name): Lose.
* mangle.c (mangle_ref_init_variable): New fn.
(mangle_guard_variable): Strip the ref-init header.
* cp-tree.h: Adjust.
* decl.c (cp_finish_decl): Add the DECL_STMT after processing the
initializer.
(grok_reference_init): Always use DECL_INITIAL.
From-SVN: r44358
Jeffrey A Law [Wed, 25 Jul 2001 14:41:35 +0000 (14:41 +0000)]
ssa.c (rename_insn_1): Do not wrap an assignment to a paradoxical SUBREG inside a SEQUENCE.
* ssa.c (rename_insn_1): Do not wrap an assignment to a
paradoxical SUBREG inside a SEQUENCE. Fix minor formatting
glitch.
From-SVN: r44357
Andrew Haley [Wed, 25 Jul 2001 14:38:29 +0000 (14:38 +0000)]
alias.c (rtx_equal_for_memref_p): Allow strings as types in operands.
2001-07-19 Andrew Haley <aph@cambridge.redhat.com>
* alias.c (rtx_equal_for_memref_p): Allow strings as types in
operands.
From-SVN: r44356
Jeffrey A Law [Wed, 25 Jul 2001 14:23:08 +0000 (14:23 +0000)]
ssa-ccp.c (visit_expression): Handle CALL_INSNs that can throw an exception.
* ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
throw an exception.
(visit_expression): When attempting to simplify an expression,
retrieve any modes for arguments before they are simplified
to constants.
From-SVN: r44355
Andrew MacLeod [Wed, 25 Jul 2001 13:33:17 +0000 (13:33 +0000)]
stmt.c (expand_goto): A nonlocal goto can be a call too.
2001-07-25 Andrew MacLeod <amacleod@redhat.com>
Janis Johnson <janis@us.ibm.com>
* stmt.c (expand_goto): A nonlocal goto can be a call too.
* builtins.c (expand_builtin_longjmp): Reverse label and static chain
pointer parameters to match documented usage of nonlocal_goto.
* config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
parameters to their correct order.
* config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
parameters to their correct order.
Co-Authored-By: Janis Johnson <janis@us.ibm.com>
From-SVN: r44353
Andrew MacLeod [Wed, 25 Jul 2001 13:21:49 +0000 (13:21 +0000)]
* config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
From-SVN: r44351
Jason Merrill [Wed, 25 Jul 2001 12:06:20 +0000 (08:06 -0400)]
fix noreturn warnings
From-SVN: r44350
Jason Merrill [Wed, 25 Jul 2001 12:05:42 +0000 (08:05 -0400)]
moved to dg
From-SVN: r44349
Rainer Orth [Wed, 25 Jul 2001 11:28:50 +0000 (11:28 +0000)]
20010724-1.c: New file.
* gcc.c-torture/execute/
20010724-1.c: New file.
* gcc.c-torture/execute/
20010724-1.x: New file.
From-SVN: r44346
Nathan Sidwell [Wed, 25 Jul 2001 09:38:26 +0000 (09:38 +0000)]
re PR c++/3416 (gcc-3.0 Internal compiler error in arg_assoc, at cp/decl2.c:4902)
cp:
PR c++/3416
* call.c (build_conditional_expr): Recheck args after
conversions.
* cp-tree.h (build_conditional_expr): Move to correct file.
* typeck.c (decay_conversion): Diagnose any unknown types
reaching here.
(build_binary_op): Don't do initial decay or default
conversions on overloaded functions.
(build_static_cast): Don't do a decay conversion here.
testsuite:
* g++.old-deja/g++.other/cond7.C: New test.
From-SVN: r44345
Nathan Sidwell [Wed, 25 Jul 2001 09:00:37 +0000 (09:00 +0000)]
re PR c++/3543 (gcc-3.0 Internal error #56 in resolve_offset_ref, at cp/init.c:1963)
cp:
PR c++/3543
* typeck.c (condition_conversion): Resolve an OFFSET_REF.
* expr.c (cplus_expand_expr): An OFFSET_REF should never get here.
testsuite:
* g++.old-deja/g++.other/optimize4.C: New test.
From-SVN: r44340
Nathan Sidwell [Wed, 25 Jul 2001 08:54:06 +0000 (08:54 +0000)]
class.c (build_vtbl_or_vbase_field): Remove, move into ...
cp:
* class.c (build_vtbl_or_vbase_field): Remove, move into ...
(create_vtbl_ptr): ... here.
From-SVN: r44337
Nathan Sidwell [Wed, 25 Jul 2001 08:52:32 +0000 (08:52 +0000)]
class.c (build_vbase_offset_vbtl_entries): Look for non-primary base of which we are a sub vtable.
cp:
* class.c (build_vbase_offset_vbtl_entries): Look for
non-primary base of which we are a sub vtable.
testsuite:
* g++.old-deja/g++.abi/vbase8-5.C: New test.
From-SVN: r44336
Jan Hubicka [Wed, 25 Jul 2001 08:30:36 +0000 (10:30 +0200)]
flow.c (find_sub_basic_blocks): Fix handling of the last BB in the sequence.
* flow.c (find_sub_basic_blocks): Fix handling of the last BB in
the sequence.
(make_edges): New argument update_p; populate the edge cache if set.
(find_basic_blocks): Update make_edges invocation.
Co-Authored-By: Richard Henderson <rth@redhat.com>
From-SVN: r44335
Gabriel Dos Reis [Wed, 25 Jul 2001 08:06:47 +0000 (08:06 +0000)]
acinclude.m4: CHECK_MATH_DECL_AND_LINKAGE for hypot, hypotf, hypotl, atan2f, atan2l.
* acinclude.m4: CHECK_MATH_DECL_AND_LINKAGE for hypot, hypotf,
hypotl, atan2f, atan2l. Remove from REPLACE_MATHFUNCS list.
* aclocal.m4: Regenerate.
* config.h.in: Likewise.
* configure: Likewise.
* libmath/Makefile.am (EXTRA_LONG_DOUBLE_yes): Remove hypotl.c
(EXTRA_DIST): Remove hypot.c hypotf.c.
* libmath/Makefile.am: Regenerate.
* libmath/hypotf.c: Remove.
* libmath/hypot.c: Likewise.
* libmath/hypotl.c: Likewise.
* libmath/stubs.c: The macros seen here are HAVE_xxx, not
_GLIBCPP_HAVE_xxx. Add long double versions.
From-SVN: r44334
GCC Administrator [Wed, 25 Jul 2001 07:16:08 +0000 (07:16 +0000)]
Daily bump.
From-SVN: r44332
Joel Sherrill [Wed, 25 Jul 2001 01:57:20 +0000 (01:57 +0000)]
* config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
From-SVN: r44331
Joel Sherrill [Wed, 25 Jul 2001 01:53:26 +0000 (01:53 +0000)]
rtems.h (CPP_PREDEFINES): Remove redundant -Acpu and -Amachine.h.
* config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
-Acpu and -Amachine.h.
* config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
Corrected header to say ELF not a.out.
* config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
when given -msoft-float.
From-SVN: r44328
Joel Sherrill [Wed, 25 Jul 2001 01:49:45 +0000 (18:49 -0700)]
config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as extra multilib parts like arm-elf.
* config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
extra multilib parts like arm-elf.
(i960-*-coff*, i960-*-rtems): Should not use collect2.
(m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
crtfini.o as extra multilib parts.
From-SVN: r44327
Joel Sherrill [Wed, 25 Jul 2001 01:44:29 +0000 (01:44 +0000)]
configure.in: Add rtems as a supported thread model.
* configure.in: Add rtems as a supported thread model.
* gthr-rtems.h: Add missing entry point __gthread_active_p.
* configure: Rebuilt.
From-SVN: r44324
Phil Edwards [Wed, 25 Jul 2001 01:34:03 +0000 (01:34 +0000)]
semantics.c (finish_this_expr): Remove unused code.
2001-07-24 Phil Edwards <pme@sources.redhat.com>
* semantics.c (finish_this_expr): Remove unused code.
From-SVN: r44323
Lars Brinkhoff [Wed, 25 Jul 2001 01:19:23 +0000 (01:19 +0000)]
stor-layout.c (get_mode_alignment): make it work when BITS_PER_UNIT is not a power of two.
* stor-layout.c (get_mode_alignment): make it work when
BITS_PER_UNIT is not a power of two.
* builtins.c (get_pointer_alignment): Likewise.
From-SVN: r44322
Richard Henderson [Tue, 24 Jul 2001 23:43:55 +0000 (16:43 -0700)]
simplify-rtx.c (avoid_constant_pool_reference): Coerce the retrieved constant into the expected mode.
* simplify-rtx.c (avoid_constant_pool_reference): Coerce
the retrieved constant into the expected mode.
From-SVN: r44321
Jan Hubicka [Tue, 24 Jul 2001 23:42:40 +0000 (01:42 +0200)]
flow.c (try_simplify_condjump): Avoid duplicated edges.
* flow.c (try_simplify_condjump): Avoid duplicated edges.
(verify_flow_info): Check for duplicated edges; clarify
error reporting.
* flow.c (block_label): Update basic_block_for_insn.
(commit_edge_insertions): Call compute_bb_for_insn.
* flow.c (purge_dead_edges): Handle conditional jumps and conditional
returns too.
* flow.c (redirect_edge_and_branch,
try_optimize_cfg): Use redirect_edge_succ_nodup
(redirect_edge_succ_nodup): New.
* basic_block.h (redirect_edge_succ_nodup): Declare.
* toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
after gcse.
From-SVN: r44320
Jan Hubicka [Tue, 24 Jul 2001 22:34:43 +0000 (00:34 +0200)]
flow.c (try_forward_edges): Accept fallthru edge; Update comment.
* flow.c (try_forward_edges): Accept fallthru edge; Update comment.
(try_crossjump_to_edge): Update commetns.
(try_crossjump_bb): Likewise.
From-SVN: r44318
Richard Henderson [Tue, 24 Jul 2001 21:39:19 +0000 (14:39 -0700)]
combine.c (distribute_notes): Move set of need_refresh for noop_move_p down to catch all cases.
* combine.c (distribute_notes): Move set of need_refresh
for noop_move_p down to catch all cases.
From-SVN: r44317
Rainer Orth [Tue, 24 Jul 2001 20:08:58 +0000 (20:08 +0000)]
prims.cc (_JNI_OnLoad): New function.
* prims.cc (_JNI_OnLoad): New function.
(JNI_OnLoad): Use it.
(_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
From-SVN: r44316
Rainer Orth [Tue, 24 Jul 2001 19:51:34 +0000 (19:51 +0000)]
Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
* Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
Makefile.in: Regenerate.
From-SVN: r44314
Jan Hubicka [Tue, 24 Jul 2001 18:34:07 +0000 (20:34 +0200)]
recog.c (split_all_insns_noflow): New.
* recog.c (split_all_insns_noflow): New.
* rtl.h (split_all_insns_noflow): Declare.
* ia64.c (ia64_reorg): Use split_all_insns_noflow.
* m68hc11.c (m68hc11_reorg): Likewise.
* sh.c (machine_dependent_reorg): Likewise.
* toplev.c (rest_of_compilation): Likewise for last split_all_insns
call.
From-SVN: r44312
Andrew Haley [Tue, 24 Jul 2001 15:52:26 +0000 (15:52 +0000)]
sh.md (ashlsi3_std splitter): Split only after reload.
2001-07-18 Andrew Haley <aph@cambridge.redhat.com>
* config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
(ashlsi3_n splitter): Likewise.
(lshrsi3_n splitter): Likewise.
(GOTaddr2picreg): Make const SImode.
(sym_label2reg): Likewise.
(symGOT2reg): Likewise.
(symGOTOFF2reg) Likewise.
(casesi_worker_0): Make unspec SImode.
From-SVN: r44304
Andrew Haley [Tue, 24 Jul 2001 15:25:51 +0000 (15:25 +0000)]
sh.c (barrier_align): Check that an operand really is an insn before extracting its INSN_CODE.
2001-07-18 Andrew Haley <aph@cambridge.redhat.com>
* config/sh/sh.c (barrier_align): Check that an operand really is
an insn before extracting its INSN_CODE.
From-SVN: r44303
Jason Merrill [Tue, 24 Jul 2001 15:17:04 +0000 (11:17 -0400)]
* lib/scanasm.exp (scan-assembler*): Don't take "testcase" argument.
From-SVN: r44302
Jason Merrill [Tue, 24 Jul 2001 15:08:37 +0000 (11:08 -0400)]
move to subdirs
From-SVN: r44301