1. 17 Dec, 2005 13 commits
    • tree-inline.c (copy_body_r): Use explicit cast when converting from void *. · cceb1885
              * tree-inline.c (copy_body_r): Use explicit cast when
                converting
              from void *.
              (copy_bb): Likewise.
              (copy_edges_for_bb): Likewise.
              (remap_decl_1): Likewise.
              (estimate_num_insns_1): Likewise.
              * cgraph.c (hash_node): Use explicit cast when converting from
              void *.
              (eq_node): Likewise.
              (cgraph_create_node): Use GGC_CNEW.
              (cgraph_create_edge): Use GGC_NEW.
              (cgraph_remove_node): Use explicit cast when converting from
                void *.
              (hash_varpool_node): Likewise.
              (eq_varpool_node): Likewise.
              (cgraph_varpool_node): Use GGC_CNEW.
              * lambda.h (lambda_vector_new): Use GGC_CNEWVEC.
              * tree-scalar-evolution.c (new_scev_info_str): Use XNEW.
              (eq_scev_info): Use explicit cast when converting from void *.
              (find_var_scev_info): Likewise.
              (set_instantiated_value): Likewise.
              (gather_stats_on_scev_database_1): Likewise.
              * cfgloop.h (simple_loop_desc): Use explicit cast when
                converting
              from void *.
              * c-pch.c (c_common_write_pch): Use XNEWVEC.
              (c_common_read_pch): Likewise.
              * prefix.c (save_string): Use XNEWVEC.
              (translate_name): Use explicit cast when converting from void
                *.
              * c-ppoutput.c (print_line): Use explicit cast when converting
              from void *.
              (pp_dir_change): Likewise.
              * c-cppbuiltin.c (builtin_define_std): Likewise.
              (builtin_define_with_value): Likewise.
              (builtin_define_with_value_n): Likewise.
              (builtin_define_with_int_value): Likewise.
              (builtin_define_type_max): Likewise.
              * c-incpath.c (add_env_var_paths): Use XNEWVEC.
              (add_path): Use XNEW.
              * c-format.c (check_format_info_main): Use GGC_NEW.
              (format_type_warning): Use explicit cast when converting from
                void *.
              * c-typeck.c (alloc_tagged_tu_seen_cache): Use XNEW instead of
              xmalloc. 
              (start_init): Likewise.
              * tree-flow-inline.h (first_referenced_var): Use explicit cast
              when converting from void *.
              (next_referenced_var): Likewise.
              * c-pragma.c (push_alignment): Use GGC_NEW instead of
                ggc_alloc.
              * gensupport.c (lookup_predicate): Use explicit cast to
                convert
              from void *.
              (init_predicate_table): Use XCNEW instead of xcalloc.
              * genpreds.c (process_define_predicate): Likewise.
      
      From-SVN: r108723
      Gabriel Dos Reis committed
    • re PR fortran/25458 ([4.1] Kind of constants in generic intrinsics) · ef98c52a
      	PR fortran/25458
      	* simplify.c (gfc_simplify_ibset, gfc_simplify_not): Add call to
      	twos_complement.
      
      	* gfortran.dg/chkbits.f90: New test.
      
      
      Co-Authored-By: Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
      
      From-SVN: r108720
      Steven G. Kargl committed
    • floatformat.c (floatformat_i387_ext_is_valid): Use explicit cast to convert from "from". · 573b07c7
              * floatformat.c (floatformat_i387_ext_is_valid): Use explicit cast
              to convert from "from".
              (floatformat_to_double): Likewise.
              (floatformat_from_double): Use explicit cast to convert from "to".
      
      From-SVN: r108717
      Gabriel Dos Reis committed
    • * Revert accidental commit to enum_5.f90. · 3e4c09d0
      From-SVN: r108716
      Steven G. Kargl committed
    • decl.c (gfc_match_old_kind_spec,match_type_spec): Use gfc_std_notify to report… · df8652dc
      decl.c (gfc_match_old_kind_spec,match_type_spec): Use gfc_std_notify to report nonstandard intrinsic type declarations.
      
      2005-12-17  Steven G. Kargl  <kargls@comcast.net>
      
      	* decl.c (gfc_match_old_kind_spec,match_type_spec): Use gfc_std_notify
      	to report nonstandard intrinsic type declarations.
      
      	* gfortran.dg/imag_1.f: Fix nonstandard type declarations.
      	* gfortran.dg/nested_modules_1.f90: Ditto.
      	* gfortran.dg/hollerith_f95.f90: Ditto.
      	* gfortran.dg/select_5.f90: Ditto.
      	* gfortran.dg/secnds.f: Ditto.
      	* gfortran.dg/hollerith2.f90: Ditto.
      	* gfortran.dg/imag_2.f: Ditto.
      	* gfortran.dg/ftell_2.f90: Ditto.
      	* gfortran.dg/malloc_free_1.f90: Ditto.
      	* gfortran.dg/logint-1.f: Ditto.
      	* gfortran.dg/recursive_statement_functions.f90: Ditto.
      	* gfortran.dg/e_d_fmt.f90: Ditto.
      	* gfortran.dg/hollerith_legacy.f90: Ditto.
      	* gfortran.dg/logint-2.f: Ditto.
      	* gfortran.dg/enum_5.f90: Ditto.
      	* gfortran.dg/f2c_2.f90: Ditto.
      	* gfortran.dg/pr17143.f90: Ditto.
      	* gfortran.dg/namelist_14.f90: Ditto.
      	* gfortran.dg/logint-3.f: Ditto.
      	* gfortran.dg/spread_scalar_source.f90: Ditto.
      	* gfortran.dg/fmt_read_bz_bn.f90: Ditto.
      	* gfortran.dg/namelist_11.f: Ditto.
      	* gfortran.dg/g77/intrinsic-unix-bessel.f: Ditto.
      	* gfortran.dg/g77/20010519-1.f
      	* gfortran.dg/g77/alpha1.f: Ditto.
      	* gfortran.dg/g77/990115-1.f: Ditto.
      	* gfortran.dg/g77/erfc.f: Ditto.
      	* gfortran.dg/g77/19990313-3.f: Ditto.
      	* gfortran.dg/g77/f90-intrinsic-numeric.f: Ditto.
      	* gfortran.dg/g77/20010426.f: Ditto.
      	* gfortran.dg/g77/19990313-0.f: Ditto.
      	* gfortran.dg/g77/f90-intrinsic-mathematical.f: Ditto.
      	* gfortran.dg/g77/20000629-1.f: Ditto.
      	* gfortran.dg/g77/970125-0.f: Ditto.
      	* gfortran.dg/g77/8485.f: Ditto.
      	* gfortran.dg/g77/f90-intrinsic-bit.f: Ditto.
      	* gfortran.dg/g77/19990313-1.f: Ditto.
      	* gfortran.dg/g77/int8421.f: Ditto.
      	* gfortran.dg/g77/19990305-0.f: Ditto.
      	* gfortran.dg/g77/947.f: Ditto.
      	* gfortran.dg/g77/19990905-2.f: Ditto.
      	* gfortran.dg/g77/cabs.f: Ditto.
      	* gfortran.dg/g77/19990313-2.f: Ditto.
      	* gfortran.dg/g77/20020307-1.f: Ditto.
      	* gfortran.dg/g77/dcomplex.f: Ditto.
      	* gfortran.dg/g77/19990502-1.f: Ditto.
      	* gfortran.dg/g77/19981216-0.f: Ditto.
      	* gfortran.dg/common_4.f90: Ditto.
      	* gfortran.dg/entry_4.f90: Ditto.
      	* gfortran.dg/equiv_constraint_2.f90: Ditto.
      	* gfortran.dg/g77_intrinsics_funcs.f: Ditto.
      	* gfortran.dg/namelist_12.f: Ditto.
      	* gfortran.dg/scale_1.f90: Ditto.
      	* gfortran.dg/modulo_1.f90
      	* gfortran.dg/hollerith.f90: Ditto.
      	* gfortran.dg/direct_io_3.f90: Ditto.
      	* gfortran.dg/ftell_1.f90: Ditto.: Ditto.
      	* gfortran.dg/gnu_logical_1.F: Ditto.
      	* gfortran.dg/unf_io_convert_1.f90: Ditto.
      	* gfortran.dg/assign_1.f90: Ditto.
      	* gfortran.dg/g77_intrinsics_sub.f: Ditto.
      	* gfortran.dg/pr23095.f: Ditto.
      	* gfortran.dg/read_float_1.f90: Ditto.
      
      From-SVN: r108715
      Steven G. Kargl committed
    • valarray_after.h (_Expr<>::operator[](slice)): Don't assume the closure… · ad816b52
      valarray_after.h (_Expr<>::operator[](slice)): Don't assume the closure implements general indexing...
      
              * include/bits/valarray_after.h (_Expr<>::operator[](slice)):
              Don't assume the closure implements general indexing, as a matter
              of fact, most of them don't.
              (_Expr<>::operator[](const gslice&)): Likewise.
              (_Expr<>::operator[](const valarray<bool>&)): Likewise.
              (_Expr<>::operator[](const valarray<size_t>&)): Likewise.
              (_Expr<>::shift): Fix thinko.
              (_Expr<>::cshift): Likewise.
              (_Expr<>::apply): Likewise.
      
      From-SVN: r108714
      Gabriel Dos Reis committed
    • basic-block.h: Changed basic block numbering so that the entry block is 0 and the exit block is 1. · 24bd1a0b
      2005-12-17  Danny Berlin <dberlin@dberlin.org>
      	    Kenneth Zadeck <zadeck@naturalbridge.com>
      
      	* basic-block.h: Changed basic block numbering so that the entry
      	block is 0 and the exit block is 1.  Changed insn iterators so
      	that they are tolerant of blocks with no insns.
      	* regrename.c (copyprop_hardreg_forward): Changed basic block
      	numbering so that the entry block is 0 and the exit block is 1.
      	* sched-ebb.c (sehedule_ebbs): Ditto.
      	* tracer.c (branch_ratio_cutoff): Ditto.
      	* cfgloopmanip.c (fix_loop_structure): Ditto.
      	* cfghooks.c (verify_flow_info): Ditto.
      	* cfg.c (compact_blocks): Ditto.
      	* reorg.c (dbr_schedule): Ditto.
      	* flow.c (calculate_global_regs_live, libcall_dead_p): Ditto.
      	* dominance.c (calc_dfs_tree_nonrec, calc_dfs_tree,
      	calculate_dominance_info): Ditto.
      	* cfganal.c (create_edge_list, print_edge_list,
      	flow_depth_first_order_compute, flow_dfs_compute_reverse_init,
      	flow_dfs_compute_reverse_add_bb, flow_dfs_compute_reverse_execute,
      	dfs_enumerate_from): Ditto.
      	* global.c (global_alloc, set_up_bb_rts_numbers): Ditto.
      	* ifcvt.c (find_if_case_2): Ditto.
      	* cfgbuild.c (control_flow_insn_p, count_basic_blocks,
      	find_basic_blocks): Ditto.
      	* predict.c (predict_loops, tree_bb_level_predictions,
      	predict_paths_leading_to, propagate_freq): Ditto.
      	* lcm.c (compute_antinout_edge, compute_laterin,
      	compute_available): Ditto.
      	* function.c (thread_prologue_and_epilogue_insns): Ditto.
      	* gcse.c (gcse_main, bypass_jumps): Ditto.
      	* profile.c (compute_branch_probabilities,
      	compute_value_histograms, branch_prob): Ditto.
      	* tree-flow-inline.h (bsi_start, bsi_after_labels,
      	bsi_last): Ditto.
      	* tree-ssa-phiopt.c (tree_ssa_phiopt,
      	blocks_in_phiopt_order): Ditto.
      	* bt-load.c (compute_defs_uses_and_gen, compute_kill,
      	compute_out, link_btr_uses, migrate_btr_defs): Ditto.
      	* tree-dfa.c (collect_dfa_stats): Ditto.
      	* cfgcleanup.c (try_forward_edges, try_optimize_cfg): Ditto.
      	* cfglayout.c (fixup_reorder_chain): Ditto.
      	* bb-reorder.c (reorder_basic_blocks, duplicate_computed_gotos,
      	partition_hot_cold_basic_blocks): Ditto.
      	* var-tracking.c (vt_find_locations): Ditto.
      	* cfgloop.c (flow_loops_cfg_dump, flow_loops_find, get_loop_body): Ditto.
      	* sched-rgn.c (compute_trg_info, init_regions, schedule_insns): Ditto.
      	* tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, make_edges
      	label_to_block_fn, print_loop_ir, tree_flow_call_edges_add): Ditto.
      	* tree-ssa-reassoc.c (init_reassoc): Ditto.
      	* cfgrtl.c (entry_of_function, rtl_verify_flow_info,
      	rtl_flow_call_edges_add, rtl_flow_call_edges_add): Ditto.
      	* df.c (df_analyze_1, hybrid_search, iterative_dataflow): Ditto
      	and removed unused reverse orders.
      	* df.h (): Ditto.
      	* combine.c: Fix document typo.
      
      
      
      Co-Authored-By: Kenneth Zadeck <zadeck@naturalbridge.com>
      
      From-SVN: r108713
      Daniel Berlin committed
    • tree-flow-inline.h (set_default_def, [...]): Kill. · 86051306
      	* tree-flow-inline.h (set_default_def, default_def): Kill.
      	* tree-dfa.c (default_defs): New global variable.
      	(default_def, set_default_def): New functions.
      	* tree-ssa.c (init_tree_ssa, delete_tree_ssa): Add default_def hash.
      	* tree-flow.h (struct var_ann_d): Kill default_def field.
      	(set_default_def, default_def): Update prototype.
      	(default_defs): Declare.
      
      From-SVN: r108712
      Jan Hubicka committed
    • tree-ssa-dom.c (update_rhs_and_lookup_avail_expr): Kill. · 471eeb83
      
      	* tree-ssa-dom.c (update_rhs_and_lookup_avail_expr): Kill.
      	(simplify_rhs_and_lookup_avail_expr): Kill.  Remnants moved
      	into tree-ssa-forwprop.c.
      	(eliminate_redundant_computations): Do not call
      	simplify_rhs_and_lookup_avail_expr anymore.
      	* tree-ssa-forwprop.c (simplify_not_neg_expr): New function
      	extracted from remnants of simplify_rhs_and_lookup_avail_expr.
      	(tree_ssa_forward_propagate_single_use_vars): Call
      	simplify_not_neg_expr appropriately.
      
      From-SVN: r108711
      Jeff Law committed
    • attr-weakref-1.c: Do not run on darwin. · b15e733f
              * gcc.dg/attr-weakref-1.c: Do not run on darwin. 
              * gcc.dg/attr-weakref-1-darwin.c: New test to run on darwin.
      
      From-SVN: r108710
      Andreas Jaeger committed
    • re PR target/20016 (Compiling libgcc2.c with -Os for avr-gcc?) · 44984de0
      2005-12-16  Bernd Trog  <berndtrog@yahoo.com>
      
      	PR target/20016
      	* config/avr/t-avr: Add -Os to TARGET_LIBGCC2_CFLAGS.
      
      From-SVN: r108708
      Bernd Trog committed
    • re PR rtl-optimization/25456 (cc0 targets are broken.) · 740bfcdf
      	PR rtl-optimization/25456
      	* struct-equiv.c (struct_equiv_improve_checkpoint): Replace
      	info->x_start with p->x_start.
      
      From-SVN: r108707
      Kazu Hirata committed
    • Daily bump. · ace556da
      From-SVN: r108704
      GCC Administrator committed
  2. 16 Dec, 2005 27 commits