1 2007-08-17 Richard Sandiford <richard@codesourcery.com>
2 Nigel Stephens <nigel@mips.com>
4 * config/mips/sde.h (DRIVER_SELF_SPECS): Add commas.
5 Treat -mno-data-in-code and -mcode-xonly as aliases for
6 -mcode-readable=no and -mcode-readable=pcrel respectively.
7 * config/mips/t-sde (TARGET_LIBGCC2_CFLAGS): Add -mcode-xonly.
8 (MULTILIB_OPTIONS): Add -mcode-readable=no multilibs.
9 (MULTILIB_DIRNAMES): Update accordingly.
11 2007-08-17 H.J. Lu <hongjiu.lu@intel.com>
13 * Makefile.in (version.o): Depend on $(REVISION) only if
14 REVISION_s is defined.
16 2007-08-17 Sa Liu <saliu@de.ibm.com>
17 Ulrich Weigand <uweigand@de.ibm.com>
20 * tree.c (reconstruct_complex_type): For a pointer to a vector,
21 use build_qualified_type to retain qualifiers of the base type.
23 2007-08-17 Chen Liqin <liqin@sunnorth.com.cn>
25 * config/score/score.md : Update pattern tablejump.
26 * config/score/score.c : Update score_initialize_trampoline
28 * config/score/score.h (TRAMPOLINE_TEMPLATE): Added macro.
29 (TRAMPOLINE_INSNS, TRAMPOLINE_SIZE) Update macro.
30 * doc/contrib.texi: Add my entry.
32 2007-08-16 H.J. Lu <hongjiu.lu@intel.com>
34 * Makefile.in (REVISION): New.
37 (version.o): Also depend on $(REVISION). Add
38 -DREVISION=$(REVISION_s).
40 * version.c (version_string): Add REVISION.
42 2007-08-16 Seongbae Park <seongbae.park@gmail.com>
44 * tree-eh.c (lower_try_finally_onedest): Reset the locus
45 of GOTO that's relocated to a different block.
47 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
49 * c-common.c (const_strip_array_types): New.
50 * c-common.h (lang_missing_noreturn_ok_p): Delete.
51 (const_strip_array_types): New.
52 * c-objc-common.c (c_disregard_inline_limits,
53 c_warn_unused_global_decl): Constify.
54 * c-tree.h (c_disregard_inline_limits, c_warn_unused_global_decl,
55 c_vla_type_p, c_incomplete_type_error): Likewise.
56 * c-typeck.c (c_incomplete_type_error, c_vla_type_p): Likewise.
57 * hooks.c (hook_bool_const_tree_false): New.
58 * hooks.h (hook_bool_const_tree_false): Likewise.
59 * langhooks-def.h (lhd_warn_unused_global_decl,
60 lhd_incomplete_type_error, lhd_expr_size,
61 lhd_tree_inlining_disregard_inline_limits,
62 lhd_tree_inlining_auto_var_in_fn_p, lhd_tree_dump_type_quals,
63 LANG_HOOKS_GENERIC_TYPE_P, LANG_HOOKS_TYPE_MAX_SIZE): Constify.
64 * langhooks.c (lhd_warn_unused_global_decl,
65 lhd_incomplete_type_error,
66 lhd_tree_inlining_disregard_inline_limits,
67 lhd_tree_inlining_auto_var_in_fn_p, lhd_tree_dump_type_quals,
68 lhd_expr_size): Likewise.
69 * langhooks.h (lang_hooks_for_tree_inlining,
70 lang_hooks_for_tree_dump, lang_hooks_for_types,
71 lang_hooks_for_decls, lang_hooks): Likewise.
72 * pointer-set.c (pointer_set_t, pointer_set_create,
73 pointer_set_contains, insert_aux, pointer_set_insert,
74 pointer_set_traverse, pointer_map_t, pointer_map_create,
75 pointer_map_contains, pointer_map_insert, pointer_map_traverse):
77 * pointer-set.h (pointer_set_contains, pointer_set_insert,
78 pointer_set_traverse, pointer_map_contains, pointer_map_insert,
79 pointer_map_traverse): Likewise.
80 * predict.c (assert_is_empty): Likewise.
81 * tree-affine.c (free_name_expansion): Likewise.
82 * tree-cfg.c (edge_to_cases_cleanup): Likewise.
83 * tree.c (size_in_bytes, max_int_size_in_bytes): Likewise.
84 * tree.h (size_in_bytes, max_int_size_in_bytes): Likewise.
86 2007-08-16 Victor Kaplansky <victork@il.ibm.com>
88 * tree-vectorizer.c (new_loop_vec_info): Initialize new
90 (destroy_loop_vec_info): Add call to VEC_free.
91 * tree-vectorizer.h (may_alias_ddrs): Define.
92 (LOOP_VINFO_MAY_ALIAS_DDRS): Define.
93 * tree-vect-analyze.c (vect_analyze_data_ref_dependence):
94 Change reporting to dump.
95 (vect_is_duplicate_ddr): New.
96 (vect_mark_for_runtime_alias_test): New.
97 (vect_analyze_data_ref_dependences) Add call to
98 vect_mark_for_runtime_alias_test.
99 (vect_enhance_data_refs_alignment): Define local variable
100 vect_versioning_for_alias_required, don't perform
101 peeling for alignment if versioning for alias is
103 (vect_enhance_data_refs_alignment): Use
104 PARAM_VECT_MAX_VERSION_FOR_ALIGNMENT_CHECKS instead of
105 PARAM_VECT_MAX_VERSION_CHECKS.
106 * tree-vect-transform.c
107 (vect_create_cond_for_alias_checks): New.
108 (vect_transform_loop): Add call to
109 vect_create_cond_for_alias_checks.
110 (vect_vfa_segment_size): New.
111 * params.def (PARAM_VECT_MAX_VERSION_FOR_ALIGNMENT_CHECKS):
113 (PARAM_VECT_MAX_VERSION_FOR_ALIAS_CHECKS): Define.
114 * gcc/doc/invoke.texi
115 (vect-max-version-for-alignment-checks): Document.
116 (vect-max-version-for-alias-checks): Document.
117 (vect-max-version-checks): Remove.
119 2007-08-16 Uros Bizjak <ubizjak@gmail.com>
121 * config/i386/i386.md (*rep_movdi_rex64): Emit "rep" prefix on
122 the same line as the instruction for all asm dialects.
124 (*rep_movsi_rex64): Ditto.
126 (*rep_movqi_rex64): Ditto.
127 (*rep_stosdi_rex64): Ditto.
128 (*rep_stossi): Ditto.
129 (*rep_stossi_rex64): Ditto.
130 (*rep_stosqi): Ditto.
131 (*rep_stosqi_rex64): Ditto.
132 (*cmpstrnqi_nz_1): Ditto.
133 (*cmpstrnqi_nz_rex_1): Ditto.
134 (*cmpstrnqi_1): Ditto.
135 (*cmpstrnqi_rex_1): Ditto.
136 (*strlenqi_1): Ditto.
137 (*strlenqi_rex_1): Ditto.
138 * config/i386/sync.md (*sync_compare_and_swap<mode>): Emit "lock"
139 prefix on the same line as the instruction for all asm dialects.
140 (sync_double_compare_and_swap<mode>): Ditto.
141 (*sync_double_compare_and_swapdi_pic): Ditto.
142 (*sync_compare_and_swap_cc<mode>): Ditto.
143 (sync_double_compare_and_swap_cc<mode>): Ditto.
144 (*sync_double_compare_and_swap_ccdi_pic): Ditto.
145 (sync_old_add<mode>): Ditto.
146 (sync_add<mode>): Ditto.
147 (sync_sub<mode>): Ditto.
148 (sync_ior<mode>): Ditto.
149 (sync_and<mode>): Ditto.
150 (sync_xor<mode>): Ditto.
152 2007-08-16 Richard Sandiford <richard@codesourcery.com>
155 * reload.c (find_reloads): Check that the memory returned by
156 find_reloads_toplev was not the result of forcing a constant
158 (find_reloads_toplev): Always use simplify_gen_subreg to get
159 the subreg of a constant. If the result is also a constant,
160 but not a legitimate one, force it into the constant pool
161 and reload its address.
163 2007-08-15 David Edelsohn <edelsohn@gnu.org>
165 * config/rs6000/rs6000.c (rs6000_rtx_costs): Add CLZ, CTZ, and
168 2007-08-15 Daniel Jacobowitz <dan@codesourcery.com>
170 * config/rs6000/rs6000.c (rs6000_file_start): Output a .gnu_attribute
171 directive for the current vector ABI.
173 2007-08-15 Steve Ellcey <sje@cup.hp.com>
176 * caller-save.c (reg_save_code): Set invalide status on restore code.
178 2007-08-15 Diego Novillo <dnovillo@google.com>
180 * tree-ssa-alias.c (compute_memory_partitions): Use
181 alias_bitmap_obstack to allocate bitmaps.
182 (reset_alias_info): Factor out of init_alias_info.
183 Mark all name tags not associated to an SSA name for renaming.
184 (init_alias_info): Call it.
185 (create_name_tags): Tidy. Add comments.
186 (dump_points_to_info_for): Do not call get_mem_sym_stats_for.
188 2007-08-15 Maxim Kuvyrkov <maxim@codesourcery.com>
190 * config/mips/mips.c (vr4130_swap_insns_p): Use new interface to
191 scheduler dependencies.
193 2007-08-15 Rask Ingemann Lambertsen <rask@sygehus.dk>
195 * config/i386/i386.md (subsi3_carry_zext): Remove "m" constraint for
197 (*iorsi_1_zext): Likewise.
198 (*iorsi_1_zext_imm): Likewise.
199 * config/i386/sse.md: (*sse4_1_extractps): Use "nonimmediate_operand"
200 with "rm"/"xm" constraint.
201 (sse2_vmsqrtv2df2): Likewise.
203 2007-08-15 Jakub Jelinek <jakub@redhat.com>
206 * emit-rtl.c (try_split): Use INSN_LIST instead of EXPR_LIST for
209 2007-08-14 Daniel Berlin <dberlin@dberlin.org>
211 * tree-pass.h (PROP_pta): Removed.
212 (TODO_rebuild_alias): New.
213 (pass_may_alias): Removed.
214 * tree-ssa-ccp.c (execute_fold_all_builtins): Only rebuild
215 aliasing if we changed something.
216 * tree-ssa-alias.c (compute_may_aliases): Make non-static. Update
218 (pass_may_alias): Removed.
219 (create_structure_vars): Return TODO_rebuild_alias.
220 * tree-ssa-pre.c (do_pre): Return TODO_rebuild_alias.
221 * tree-sra.c (tree_sra): Only rebuild aliasing if something
223 (tree_sra_early): We never affect aliasing right now.
224 * tree-flow.h (compute_may_aliases): New prototype.
225 * passes.c: Remove pass_may_alias from the passes.
226 (execute_function_todo): Support TODO_rebuild_alias.
228 2007-08-14 Kai Tietz <kai.tietz@onevision.com>
230 * i386.c: (legitimize_address): Move dllimported variable check
231 infront of legitimizing pic address of CONST symbols.
233 2007-08-14 Steve Ellcey <sje@cup.hp.com>
235 PR tree-optimization/32941
236 * tree-eh.c (struct leh_tf_state): Add goto_queue_map field.
237 (goto_queue_cmp): Remove.
238 (find_goto_replacement): Change search method.
239 (maybe_record_in_goto_queue): Add assert.
240 (lower_try_finally): Remove qsort call, add pointer_map_destroy call.
241 * Makefile.in (tree-eh.o): Add pointer-set.h dependency.
243 2007-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
245 * alias.c (component_uses_parent_alias_set): Constify.
246 * alias.h (component_uses_parent_alias_set): Likewise.
247 * cfgrtl.c (print_rtl_with_bb): Likewise.
248 * double-int.c (tree_to_double_int, double_int_fits_to_tree_p,
249 mpz_get_double_int): Likewise.
250 * double-int.h (double_int_fits_to_tree_p, tree_to_double_int,
251 mpz_get_double_int): Likewise.
252 * expr.c (is_aligning_offset, undefined_operand_subword_p,
253 mostly_zeros_p, all_zeros_p, safe_from_p, is_aligning_offset):
255 * expr.h (safe_from_p): Likewise.
256 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru):
258 * gimplify.c (should_carry_locus_p, zero_sized_field_decl,
259 zero_sized_type, goa_lhs_expr_p): Likewise.
260 * omp-low.c (is_variable_sized, use_pointer_for_field): Likewise.
261 * rtl.h (print_rtl_with_bb): Likewise.
262 * sched-vis.c (print_exp, print_value, print_pattern): Likewise.
263 * tree-cfg.c (const_first_stmt, const_last_stmt): New.
264 * tree-flow-inline.h (bb_stmt_list): Constify.
265 (cbsi_start, cbsi_last, cbsi_end_p, cbsi_next, cbsi_prev,
267 * tree-flow.h (const_block_stmt_iterator, cbsi_start, cbsi_last,
268 const_first_stmt, const_last_stmt): New.
269 (block_may_fallthru, empty_block_p): Constify.
270 * tree-iterator.c (EXPR_FIRST_BODY, EXPR_LAST_BODY,
271 EXPR_ONLY_BODY): New.
272 (expr_first, expr_last, expr_only): Use macro for body.
273 (const_expr_first, const_expr_last, const_expr_only): New.
274 * tree-iterator.h (const_tree_stmt_iterator, ctsi_start,
275 ctsi_last, ctsi_end_p, ctsi_one_before_end_p, ctsi_next,
276 ctsi_prev, ctsi_stmt): New.
277 * tree-scalar-evolution.c (get_loop_exit_condition): Constify.
278 * tree-scalar-evolution.h (get_loop_exit_condition): Likewise.
279 * tree-ssa-loop-niter.c (loop_only_exit_p,
280 derive_constant_upper_bound): Likewise.
281 * tree-ssa-phiopt.c (empty_block_p): Likewise.
282 * tree-ssa-threadupdate.c (redirection_block_p): Likewise.
283 * tree-vectorizer.c (slpeel_can_duplicate_loop_p): Likewise.
284 * tree-vectorizer.h (slpeel_can_duplicate_loop_p): Likewise.
285 * tree-vrp.c (vrp_bitmap_equal_p): Likewise.
286 * tree.c (get_type_static_bounds): Likewise.
287 * tree.h (const_expr_first, const_expr_last, const_expr_only): New.
288 (get_type_static_bounds): Constify.
290 2007-08-14 Rask Ingemann Lambertsen <rask@sygehus.dk>
293 * config/i386/i386.h (CANONICALIZE_COMPARISON): New.
294 * config/i386/i386.md (plusminus)(addsub)(SWI): New.
295 (*<addsub><mode>3_cc_overflow): New.
296 (*add<mode>3_cconly_overflow): New.
297 (*sub<mode>3_cconly_overflow): New.
298 (*<addsub>si3_zext_cc_overflow): New.
299 * config/i386/predicates.md (fcmov_comparison_operator): Accept
300 CCCmode for LTU, GTU, LEU and GEU.
301 (ix86_comparison_operator): Likewise.
302 (ix86_carry_flag_operator): Carry flag is set if LTU or GTU in CCCmode.
303 * config/i386/i386.c (put_condition_code): Support CCCmode.
304 (ix86_cc_mode): Use CCCmode when testing for overflow of PLUS
305 or MINUS expressions.
307 2007-08-14 Andrew Pinski <pinskia@gmail.com>
310 * c-typeck.c (build_binary_op): Disallow vector float types with
311 BIT_IOR_EXPR, BIT_AND_EXPR, and BIT_XOR_EXPR.
313 2007-08-14 Maxim Kuvyrkov <maxim@codesourcery.com>
315 * sched-int.h (struct _dep): Rename field 'kind' to 'type'.
316 (DEP_KIND): Rename to DEP_TYPE. Update all uses.
317 (dep_def): New typedef.
318 (init_dep_1, sd_debug_dep): Declare functions.
319 (DEP_LINK_KIND): Rename to DEP_LINK_TYPE.
320 (debug_dep_links): Remove.
321 (struct _deps_list): New field 'n_links'.
322 (DEPS_LIST_N_LINKS): New macro.
323 (FOR_EACH_DEP_LINK): Remove.
324 (create_deps_list, free_deps_list, delete_deps_list): Remove
326 (deps_list_empty_p, debug_deps_list, add_back_dep_to_deps_list): Ditto.
327 (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
328 (copy_deps_list_change_con, move_dep_link): Ditto.
329 (struct haifa_insn_data): Split field 'back_deps' into 'hard_back_deps'
330 and 'spec_back_deps'. New field 'resolved_forw_deps'. Remove field
332 (INSN_BACK_DEPS): Remove.
333 (INSN_HARD_BACK_DEPS, INSN_SPEC_BACK_DEPS, INSN_RESOLVED_FORW_DEPS):
335 (INSN_DEP_COUNT): Remove.
336 (enum DEPS_ADJUST_RESULT): Add new constant DEP_NODEP. Fix comments.
337 (spec_info, haifa_recovery_block_was_added_during_scheduling_p):
338 Declare global variables.
339 (deps_pools_are_empty_p, sched_free_deps): Declare functions.
340 (add_forw_dep, compute_forward_dependences): Remove declarations.
341 (add_or_update_back_dep, add_or_update_back_forw_dep): Ditto.
342 (add_back_forw_dep, delete_back_forw_dep): Ditto.
343 (debug_ds, sched_insn_is_legitimate_for_speculation_p): Declare
345 (SD_LIST_NONE, SD_LIST_HARD_BACK, SD_LIST_SPEC_BACK, SD_LIST_FORW): New
347 (SD_LIST_RES_BACK, SD_LIST_RES_FORW, SD_LIST_BACK): Ditto.
348 (sd_list_types_def): New typedef.
349 (sd_next_list): Declare function.
350 (struct _sd_iterator): New type.
351 (sd_iterator_def): New typedef.
352 (sd_iterator_start, sd_iterator_cond, sd_iterator_next): New inline
354 (FOR_EACH_DEP): New cycle wrapper.
355 (sd_lists_size, sd_lists_empty_p, sd_init_insn, sd_finish_insn):
357 (sd_find_dep_between, sd_add_dep, sd_add_or_update_dep): Ditto.
358 (sd_resolve_dep, sd_copy_back_deps, sd_delete_dep, sd_debug_lists):
361 * sched-deps.c (init_dep_1): Make global.
362 (DUMP_DEP_PRO, DUMP_DEP_CON, DUMP_DEP_STATUS, DUMP_DEP_ALL): New
364 (dump_dep): New static function.
365 (dump_dep_flags): New static variable.
366 (sd_debug_dep): New function.
367 (add_to_deps_list, remove_from_deps_list): Update 'n_links' field of
369 (move_dep_link): Use remove_from_deps_list (), instead of
371 (dep_links_consistent_p, dump_dep_links, debug_dep_links): Remove.
372 (dep_link_is_detached_p): New static function.
373 (deps_obstack, dl_obstack, dn_obstack): Remove. Use dn_pool, dl_pool
375 (dn_pool, dl_pool): New alloc_pools.
376 (dn_pool_diff, dl_pool_diff): New static variables.
377 (create_dep_node, delete_dep_node): New static function.
378 (create_deps_list): Make it static. Use alloc_pool 'dl_pool'.
379 (deps_list_empty_p): Make it static. Use 'n_links' field.
380 (deps_pools_are_empty_p): New static function.
381 (alloc_deps_list, delete_deps_list): Remove.
382 (dump_deps_list, debug_deps_list, add_back_dep_to_deps_list): Remove.
383 (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
384 (copy_deps_list_change_con): Remove. Use sd_copy_back_deps () instead.
385 (forward_dependency_cache): Remove.
386 (maybe_add_or_update_back_dep_1, add_or_update_back_dep_1): Remove
387 'back' from the names. Change signature to use dep_t instead of
389 (add_back_dep): Ditto. Make global.
390 (check_dep_status): Rename to check_dep ().
391 (sd_next_list, sd_lists_size, sd_lists_empty_p, sd_init_insn):
393 (sd_finish_insn): Ditto.
394 (sd_find_dep_between_no_cache): New static function.
395 (sd_find_dep_between): New function.
396 (ask_dependency_caches, set_dependency_caches): New static functions.
397 (update_dependency_caches, change_spec_dep_to_hard, update_dep): Ditto.
398 (add_or_update_dep_1): Separate pieces of functionality into
399 ask_dependency_caches (), update_dependency_caches (),
400 change_spec_dep_to_hard (), update_dep ().
401 (get_back_and_forw_lists): New static function.
402 (sd_add_dep): Separate setting of dependency caches into
403 set_dependency_caches ().
404 (sd_add_or_update_dep, sd_resolve_dep, sd_copy_back_deps):
406 (sd_delete_dep): Ditto.
407 (DUMP_LISTS_SIZE, DUMP_LISTS_DEPS, DUMP_LISTS_ALL): New constants.
408 (dump_lists): New static function.
409 (sd_debug_lists): New debug function.
410 (delete_all_dependences, fixup_sched_groups): Update to use
412 (sched_analyze_2): Create data-speculative dependency only if
413 data-speculation is enabled.
414 (sched_analyze_insn): If insn cannot be speculative, make all its
415 dependencies non-speculative.
416 (sched_analyze): Use sd_init_insn ().
417 (add_forw_dep, compute_forward_dependencies): Remove.
418 (delete_dep_nodes_in_back_deps): New static function.
419 (sched_free_deps): New function.
420 (init_dependency_caches): Init alloc_pools.
421 (extend_depedency_caches): Update after removing of
422 forward_dependency_cache.
423 (free_dependency_caches): Ditto. Free alloc_pools.
424 (adjust_add_sorted_back_dep, adjust_back_add_forw_dep): Remove.
425 (delete_forw_dep, add_or_update_back_dep, add_or_update_back_forw_dep):
427 (add_back_forw_dep, delete_back_forw_dep): Ditto.
428 (add_dependence): Use init_dep ().
429 (get_dep_weak_1): New static function.
430 (get_dep_weak): Move logic to get_dep_weak_1 ().
431 (dump_ds): New static function moved from haifa-sched.c:
432 debug_spec_status ().
433 (debug_ds): New debug function.
434 (check_dep_status): Rename to check_dep (). Update to check whole
437 * haifa-sched.c (spec_info): Make global.
438 (added_recovery_block_p): Rename to
439 'haifa_recovery_block_was_added_during_current_schedule_block_p'.
440 (haifa_recovery_block_was_added_during_scheduling_p): New variable.
441 (dep_cost, priority, rank_for_schedule, schedule_insn): Update
442 to use new interfaces.
443 (ok_for_early_queue_removal): Ditto.
444 (schedule_block): Initialize logical uids of insns emitted by the
446 (sched_init): Initialize new variable.
447 (fix_inter_tick, try_ready, fix_tick_ready): Update to use new
449 (extend_global): Initialize insn data.
450 (init_h_i_d): Remove code that is now handled in sd_init_insn ().
451 (process_insn_forw_deps_be_in_spec): Change signature. Update to use
453 (add_to_speculative_block): Update to use new interfaces.
454 (create_recovery_block): Set new variables.
455 (create_check_block_twin, fix_recovery_deps): Update to use new
457 (sched_insn_is_legitimate_for_speculation_p): New function.
458 (speculate_insn): Move checking logic to
459 sched_insn_is_legitimate_for_speculation_p ().
460 (sched_remove_insn): Finalize sched-deps information of instruction.
461 (clear_priorities, add_jump_dependencies): Update to use new
463 (debug_spec_status): Rename to dump_ds () and move to sched-deps.c.
465 * sched-rgn.c (set_spec_fed, find_conditional_protection): Update
466 to use new interfaces.
467 (is_conditionally_protected, is_pfree, is_prisky) Ditto.
468 (new_ready): Try to use control speculation only if it is available.
469 (add_branch_dependences): Update to use new interfaces.
470 (compute_block_backward_dependences): Rename to
471 compute_block_dependences (). Call
472 targetm.sched.dependencies_evaluation_hook ().
473 (free_block_dependencies): New static function.
474 (debug_dependencies): Update to use new interfaces.
475 (schedule_region): Remove separate computation of forward dependencies.
476 Move call of targetm.sched.dependencies_evaluation_hook () to
477 compute_block_dependences (). Free dependencies at the end of
478 scheduling the region.
480 * sched-ebb.c (earliest_block_with_similiar_load): Update to use
482 (add_deps_for_risky_insns): Ditto.
483 (schedule_ebb): Remove separate computation of forward dependencies.
484 Free dependencies at the end of scheduling the ebb.
486 * ddg.c (create_ddg_dependence): Update to use new interfaces.
487 (build_intra_loop_deps): Ditto. Remove separate computation of forward
488 dependencies. Free sched-deps dependencies.
490 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Update
491 to use new interfaces.
492 (ia64_dfa_new_cycle, ia64_gen_check): Ditto.
494 * config/rs6000/rs6000.c (rs6000_is_costly_dependence): Update to use
496 (is_costly_group): Ditto.
498 2007-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
500 * alias.c (rtx_equal_for_memref_p): Constify.
501 * basic-block.h (const_edge, const_basic_block): New.
502 (reg_set_to_hard_reg_set, dfs_enumerate_from, single_succ_p,
503 single_pred_p, single_succ_edge, single_pred_edge, single_succ,
504 single_pred, maybe_hot_bb_p, probably_cold_bb_p,
505 probably_never_executed_bb_p, edge_probability_reliable_p,
506 br_prob_note_reliable_p, forwarder_block_p, flow_nodes_print,
507 inside_basic_block_p, control_flow_insn_p, dominated_by_p):
509 * bb-reorder.c (better_edge_p, push_to_next_round_p): Likewise.
510 * bt-load.c (basic_block_freq, insn_sets_btr_p, can_move_up):
512 * cfganal.c (flow_active_insn_p, forwarder_block_p,
513 flow_nodes_print, dfs_enumerate_from): Likewise.
514 * cfgbuild.c (count_basic_blocks, inside_basic_block_p,
515 control_flow_insn_p, count_basic_blocks): Likewise.
516 * cfgloop.c (flow_bb_inside_loop_p, glb_enum_p,
517 get_loop_body_with_size, loop_exit_edge_p): Likewise.
518 * cfgloop.h (flow_bb_inside_loop_p, num_loop_insns,
519 average_num_loop_insns, loop_exit_edge_p,
520 just_once_each_iteration_p, can_duplicate_loop_p): Likewise.
521 * cfgloopanal.c (just_once_each_iteration_p, num_loop_insns,
522 average_num_loop_insns, seq_cost): Likewise.
523 * cfgloopmanip.c (rpe_enum_p, can_duplicate_loop_p): Likewise.
524 * dominance.c (dominated_by_p): Likewise.
525 * emit-rtl.c (validate_subreg): Likewise.
526 * except.c (can_throw_internal, can_throw_external): Likewise.
527 * except.h (can_throw_internal, can_throw_external): Likewise.
528 * gcse.c (gcse_constant_p, oprs_unchanged_p, oprs_anticipatable_p,
529 oprs_available_p, hash_expr, expr_equiv_p, oprs_not_set_p,
530 compute_transp, load_killed_in_block_p, reg_killed_on_edge,
531 simple_mem, store_ops_ok, load_kills_store, find_loads,
532 store_killed_in_insn, store_killed_after, store_killed_before,
533 gcse_mem_operand, implicit_set_cond_p, store_killed_in_pat):
535 * ifcvt.c (count_bb_insns, cheap_bb_rtx_cost_p, noce_operand_ok,
536 noce_mem_write_may_trap_or_fault_p): Likewise.
537 * pointer-set.c (pointer_set_contains, pointer_map_contains):
539 * pointer-set.h (pointer_set_contains, pointer_map_contains):
541 * predict.c (can_predict_insn_p, maybe_hot_bb_p,
542 probably_cold_bb_p, probably_never_executed_bb_p,
543 edge_probability_reliable_p, br_prob_note_reliable_p,
544 can_predict_insn_p): Likewise.
545 * regclass.c (reg_set_to_hard_reg_set): Likewise.
546 * resource.c (return_insn_p): Likewise.
547 * rtl.h (reg_set_between_p, reg_set_p, validate_subreg):
549 * rtlanal.c (reg_set_between_p, reg_set_p): Likewise.
550 * tracer.c (count_insns, ignore_bb_p, better_p): Likewise.
551 * tree-cfg.c (verify_gimple_unary_expr, verify_gimple_binary_expr,
552 verify_gimple_modify_stmt): Likewise.
553 * tree-chrec.c (is_not_constant_evolution,
554 is_multivariate_chrec_rec, is_multivariate_chrec,
555 chrec_contains_symbols, chrec_contains_undetermined,
556 tree_contains_chrecs, evolution_function_is_affine_multivariate_p,
557 evolution_function_is_univariate_p, avoid_arithmetics_in_type_p,
558 eq_evolutions_p, scev_direction): Likewise.
559 * tree-chrec.h (automatically_generated_chrec_p, tree_is_chrec,
560 eq_evolutions_p, is_multivariate_chrec, chrec_contains_symbols,
561 chrec_contains_symbols_defined_in_loop,
562 chrec_contains_undetermined, tree_contains_chrecs,
563 evolution_function_is_affine_multivariate_p,
564 evolution_function_is_univariate_p, chrec_zerop,
565 evolution_function_is_constant_p, evolution_function_is_affine_p,
566 evolution_function_is_affine_or_constant_p,
567 tree_does_not_contain_chrecs, chrec_type): Likewise.
568 * tree-data-ref.c (tree_fold_divides_p,
569 object_address_invariant_in_loop_p, dr_may_alias_p,
570 ziv_subscript_p, siv_subscript_p, gcd_of_steps_may_divide_p,
571 same_access_functions, constant_access_functions,
572 access_functions_are_affine_or_constant_p, find_vertex_for_stmt):
574 * tree-flow.h (scev_direction): Likewise.
575 * tree-gimple.c (is_gimple_stmt): Likewise.
576 * tree-outof-ssa.c (identical_copies_p, identical_stmt_lists_p):
578 * tree-pretty-print.c (op_prio): Likewise.
579 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop,
580 analyzable_condition, backedge_phi_arg_p): Likewise.
581 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
582 * tree-ssa-operands.c (get_name_decl, operand_build_cmp): Likewise.
583 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p):
586 2007-08-13 Dan Hipschman <dsh@google.com>
589 * c-format.c (check_format_arg): Move check for zero-length
590 format strings below the check for unterminated strings.
592 2007-08-13 Andrew Pinski <pinskia@gmail.com>
595 * c-typeck.c (build_unary_op <case BIT_NOT_EXPR>): Reject vector float
598 2007-08-13 Nick Clifton <nickc@redhat.com>
600 * config/arm/arm_neon.h: Revert GPLv3 patch to this file.
602 2007-08-12 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
605 * c-format.c (gcc_gfc_length_specs): New array.
606 (gcc_gfc_char_table): Add unsigned specifier, and references to
607 the l length modifier.
608 (format_types_orig): Use the new gcc_gfc_length_specs.
610 2007-08-12 Sa Liu <saliu@de.ibm.com>
612 * emit-rtl.c (try_split): Relink the insns with REG_LIBCALL note
613 and with REG_RETVAL note after split.
615 2007-08-11 David Daney <ddaney@avtrex.com>
617 * config/mips/mips.c (mips_sched_reorder): Mark cycle parameter
620 2007-08-11 David Edelsohn <edelsohn@gnu.org>
621 Segher Boessenkool <segher@kernel.crashing.org>
623 * config/rs6000/rs6000.h (CC1_CPU_SPEC): Define as empty string if
624 HAVE_LOCAL_CPU_DETECT not defined.
626 2007-08-11 Jan Hubicka <jh@suse.cz>
628 * cgraphunit.c (record_cdtor_fn): Declare all cdtors always inlined.
629 (cgraph_process_new_functions): Honor previous value of
630 disregard_inline_limits.
631 * ipa-inline.c (compute_inline_parameters): Likewise.
633 2007-08-11 Ian Lance Taylor <iant@google.com>
635 * alias.h (alias_set_type): Define new type.
636 (ALIAS_SET_MEMORY_BARRIER): Use it.
637 * rtl.h: Include alias.h.
638 (struct mem_attrs): Use alias_set_type.
639 * tree.h: Include alias.h
640 (struct tree_type): Use alias_set_type.
641 (struct tree_struct_field_tag): Likewise.
642 (struct tree_decl_common): Likewise.
643 * alias.c (struct alias_set_entry): Use alias_set_type.
644 (get_alias_set_entry, alias_set_subset_of): Likewise.
645 (alias_sets_conflict_p): Likewise.
646 (alias_sets_must_conflict_p): Likewise.
647 (objects_must_conflict_p): Likewise.
648 (get_alias_set, new_alias_set): Likewise.
649 (record_alias_subset, record_component_aliases): Likewise.
650 (varargs_set, frame_set): Change to alias_set_type.
651 (get_varargs_alias_set): Use alias_set_type.
652 (get_frame_alias_set): Likewise.
653 * builtins.c (setjmp_alias_set): Change to alias_set_type.
654 * dse.c (struct store_info): Use alias_set_type.
655 (struct read_info, struct clear_alias_mode_holder): Likewise.
656 (clear_alias_set_lookup, canon_address): Likewise.
657 (record_store, check_mem_read_rtx): Likewise.
658 (dse_record_singleton_alias_set): Likewise.
659 (dse_invalidate_singleton_alias_set): Likewise.
660 * emit-rtl.c (get_mem_attrs): Likewise.
661 (set_mem_attributes_minus_bitpos): Likewise.
662 (set_mem_alias_set): Likewise.
663 * expr.c (store_constructor_field, store_field): Likewise.
664 * gimplify.c (struct gimplify_init_ctor_preeval_data): Likewise.
665 * langhooks.c (lhd_get_alias_set): Likewise.
666 * langhooks-def.h (lhd_get_alias_set): Likewise.
667 * reload1.c (alter_reg): Likewise.
668 * tree-flow.h (struct fieldoff): Likewise.
669 * tree-ssa-alias.c (struct alias_map_d): Likewise.
670 (may_alias_p, get_smt_for, create_sft): Likewise.
671 * tree-ssa-alias-warnings.c (nonstandard_alias_types_p): Likewise.
672 * tree-ssa-structalias.c (set_uids_in_ptset): Likewise.
673 (merge_smts_into): Likewise.
674 * varasm.c (const_alias_set): Likewise.
675 * c-common.c (strict_aliasing_warning): Likewise.
676 (c_common_get_alias_set): Likewise.
677 * dse.h (dse_record_singleton_alias_set): Update declaration.
678 (dse_invalidate_singleton_alias_set): Likewise.
679 * emit-rtl.h (set_mem_alias_set): Likewise.
680 * c-common.h (c_common_get_alias_set): Likewise.
681 * print-rtl.c (print_rtx): Cast MEM_ALIAS_SET when printing it.
682 * print-tree.c (print_node): Likewise.
683 * config/alpha/alpha.c (alpha_sr_alias_set): Change to
685 (alpha_setup_incoming_varargs): Use alias_set_type.
686 * config/i386/i386.c (setup_incoming_varargs_64): Use
688 (setup_incoming_varargs_ms_64): Likewise.
689 (ix86_GOT_alias_set): Likewise.
690 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
691 * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
692 (set): Change to alias_set_type.
693 (get_TOC_alias_set): Use alias_set_type.
694 * config/rs6000/rs6000-protos.h (get_TOC_alias_set): Update
696 * config/sh/sh.c (sh_builtin_saveregs): Use alias_set_type.
697 * config/sparc/sparc.c (sparc_sr_alias_set): Change to
699 (struct_value_alias_set): Likewise.
700 * Makefile.in (GTFILES): Add $(srcdir)/alias.h.
702 2007-08-11 Richard Sandiford <richard@codesourcery.com>
704 * config/vxworks-dummy.h (TARGET_VXWORKS): Define.
705 * config/vxworks.h (TARGET_VXWORKS): Override.
706 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Don't define
707 "mips" if TARGET_VXWORKS.
709 2007-08-11 Richard Sandiford <richard@codesourcery.com>
711 * calls.c (avoid_likely_spilled_reg): New function.
712 (expand_call): Use it.
714 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
716 * c-typeck.c (build_c_cast): Add OPT_Wcast_qual to warnings.
718 2007-08-10 Adam Nemet <anemet@caviumnetworks.com>
720 * config/mips/predicates.md (const_call_insn_operand): Invoke
721 SYMBOL_REF_LONG_CALL_P only on SYMBOL_REFs.
723 2007-08-10 David Edelsohn <edelsohn@gnu.org>
726 * config/rs6000/driver-rs6000.c: Include link.h.
727 Use ElfW instead of wordsize-specif typedef.
729 2007-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
731 * system.h (CONST_CAST): New.
732 * c-decl.c (c_make_fname_decl): Use it.
733 * c-lex.c (cb_ident, lex_string): Likewise.
734 * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
735 * gcc.c (set_spec, read_specs, for_each_path, execute, do_spec_1,
736 give_switch, set_multilib_dir): Likewise.
737 * gengtype-parse.c (string_seq, typedef_name): Likewise.
738 * passes.c (execute_one_pass): Likewise.
739 * prefix.c (update_path): Likewise.
740 * pretty-print.c (pp_base_destroy_prefix): Likewise.
741 * tree.c (build_string): Likewise.
743 2007-08-10 Aldy Hernandez <aldyh@redhat.com>
745 * tree-flow-inline.h (is_exec_stmt): Remove.
746 (is_label_stmt): Remove.
747 * tree-flow.h: Remove prototypes for is_exec_stmt, get_filename, and
750 2007-08-10 Andreas Krebbel <krebbel1@de.ibm.com>
752 * lower-subreg.c (resolve_shift_zext): Don't adjust
753 src_reg_num for wordmode operands.
755 2007-08-10 Sandra Loosemore <sandra@codesourcery.com>
756 David Ung <davidu@mips.com>
758 * config/mips/mips.c (TARGET_SCHED_INIT): Define.
759 (TARGET_SCHED_REORDER2): Define.
760 (mips_maybe_swap_ready): New.
761 (mips_last_74k_agen_insn): New.
762 (mips_74k_agen_init): New.
763 (mips_74k_agen_reorder): New function to group loads and stores
765 (mips_sched_init): New.
766 (mips_sched_reorder): Don't do initialization here. Call
767 mips_74k_agen_reorder.
768 (mips_variable_issue): Call mips_74k_agen_init.
770 2007-08-10 Aldy Hernandez <aldyh@redhat.com>
772 * tree-flow-inline.h (get_filename): Remove.
774 2007-08-10 Richard Sandiford <richard@codesourcery.com>
776 * config/mips/mips-protos.h (mips_address_insns): Add a boolean
778 (mips_fetch_insns): Delete in favor of...
779 (mips_load_store_insns): ...this new function.
780 * config/mips/mips.c (mips_address_insns): Add a boolean argument
781 to say whether multiword moves _might_ be split.
782 (mips_fetch_insns): Delete in favor of...
783 (mips_load_store_insns): ...this new function.
784 (mips_rtx_costs): Update the call to mips_address_insns.
785 (mips_address_cost): Likewise.
786 * config/mips/mips.md (length): Use mips_load_store_insns instead
788 * config/mips/constraints.md (R): Use mips_address_insns rather
789 than mips_fetch_insns. Assume that the move never needs to be split.
791 2007-08-09 Sandra Loosemore <sandra@codesourcery.com>
793 * config/mips/mips.opt (mhard-float, msoft-float): Make these
794 control TARGET_HARD_FLOAT_ABI and TARGET_SOFT_FLOAT_ABI, rather
795 than TARGET_HARD_FLOAT and TARGET_SOFT_FLOAT.
796 * config/mips/mips.h (mips16_hard_float): Delete.
797 (TARGET_HARD_FLOAT_ABI, TARGET_SOFT_FLOAT_ABI): Delete these
798 definitions, and replace with....
799 (TARGET_HARD_FLOAT, TARGET_SOFT_FLOAT): Define.
800 * config/mips/mips.c (mips16_hard_float): Delete. Replace
801 all references with (TARGET_MIPS16 && TARGET_HARD_FLOAT_ABI).
802 (MIPS_MARCH_CONTROLS_SOFT_FLOAT): Update comments.
803 (override_options): Replace MASK_SOFT_FLOAT references with
804 MASK_SOFT_FLOAT_ABI. Delete twiddling with MASK_SOFT_FLOAT
805 and mips16_hard_float when TARGET_MIPS16.
807 2007-08-09 Andrew Pinski <andrew_pinski@playstation.sony.com>
810 * c-typeck.c (build_binary_op): Check for non pointer types before
811 calling int_fits_type_p.
813 2007-08-09 Andrew Pinski <andrew_pinski@playstation.sony.com>
816 * fold-const.c (omit_one_operand): Return only the ommitted expression
817 if the result is an empty statement.
818 (pedantic_omit_one_operand): Likewise.
820 2007-08-09 Daniel Berlin <dberlin@dberlin.org>
822 * c-typeck.c (readonly_error): Improve error for assignment.
824 * c-pretty-print.c (pp_c_additive_expression): Handle pointer-plus
826 (pp_c_expression): Ditto.
828 2007-08-09 Simon Baldwin <simonb@google.com>
830 * simplify-rtx.c (simplify_binary_operation_1): Removed erroneous
831 break that was preventing simplify_associative_operation() for xor.
833 2007-08-09 Sandra Loosemore <sandra@codesourcery.com>
834 Nigel Stephens <nigel@mips.com>
836 * doc/tm.texi (CLZ_DEFINED_VALUE_AT_ZERO, CTZ_DEFINED_VALUE_AT_ZERO):
837 Document change in interpretation of value from boolean to
839 * optabs.c (expand_ffs, expand_ctz): New functions to compute
840 ffs and ctz using clz.
841 (expand_unop): Call them.
842 * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Fix its
844 (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
845 * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Likewise, to
846 enable the new ffs expansion on this target.
848 2007-08-09 Jan Hubicka <jh@suse.cz>
850 * optabs.c (expand_widen_pattern_expr): Use optabs accestors.
851 (expand_ternary_op): Likewise.
852 (expand_vec_shift_expr): Likewise.
853 (expand_binop_directly): Likewise.
854 (expand_binop): Likewise.
855 (sign_expand_binop): Likewise.
856 (expand_twoval_unop): Likewise.
857 (expand_twoval_binop): Likewise.
858 (expand_twoval_binop_libfunc): Likewise.
859 (widen_clz): Likewise.
860 (widen_bswap): Likewise.
861 (expand_parity): Likewise.
862 (expand_unop): Likewise.
863 (expand_abs_nojump): Likewise.
864 (expand_copysign): Likewise.
865 (emit_no_conflict_block): Likewise.
866 (emit_libcall_block): Likewise.
867 (can_compare_p): Likewise.
868 (prepare_cmp_insn): Likewise.
869 (emit_cmp_and_jump_insn_1): Likewise.
870 (prepare_float_lib_cmp): Likewise.
871 (emit_conditional_add): Likewise.
872 (gen_add2_insn): Likewise.
873 (have_add2_insn): Likewise.
874 (gen_sub2_insn): Likewise.
875 (have_sub2_insn): Likewise.
876 (can_extend_p): Likewise.
877 (can_fix_p): Likewise.
878 (can_float_p): Likewise.
879 (expand_float): Likewise.
880 (expand_fix): Likewise.
881 (expand_sfix_optab): Likewise.
882 (new_optab): Likewise.
883 (new_convert_optab): Likewise.
884 (init_libfuncs): Likewise.
885 (init_interclass_conv_libfuncs): Likewise.
886 (init_intraclass_conv_libfuncs): Likewise.
887 (set_conv_libfunc): Likewise.
888 (init_optabs): Likewise.
889 (debug_optab_libfuncs): Likewise.
890 (gen_cond_trap): Likewise.
891 * optabs.h (optab_handler, convert_optab_hanlder): New.
892 * genopinit.c: Update optabs generation table.
893 * reload.c (find_reloads_address_1): Use optabs accestors.
894 * builtins.c (expand_builtin_mathfn): Likewise.
895 (expand_builtin_mathfn_2): Likewise.
896 (expand_builtin_mathfn_3): Likewise.
897 (expand_builtin_interclass_mathfn): Likewise.
898 (expand_builtin_sincos): Likewise.
899 (expand_builtin_cexpi): Likewise.
900 (expand_builtin_powi): Likewise.
901 (expand_builtin_strlen): Likewise.
902 * dojump.c (do_jump): Likewise.
903 * expr.c (convert_move): Likewise.
904 (move_by_pieces): Likewise.
905 (move_by_pieces_ninsns): Likewise.
906 (can_store_by_pieces): Likewise.
907 (store_by_pieces_1): Likewise.
908 (emit_move_via_integer): Likewise.
909 (emit_move_complex): Likewise.
910 (emit_move_ccmode): Likewise.
911 (emit_move_insn_1): Likewise.
912 (emit_single_push_insn): Likewise.
913 (store_constructor): Likewise.
914 (expand_expr_real_1): Likewise.
915 (do_store_flag): Likewise.
916 * ada/misc.c (gnat_compute_largest_alignment): Likewise.
917 (enumerate_modes): Likewise.
918 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
919 (supportable_widening_operation): Likewise.
920 (supportable_narrowing_operation): Likewise.
921 * expmed.c (store_bit_field_1): Likewise.
922 (extract_bit_field_1): Likewise.
923 (expand_mult_highpart_optab): Likewise.
924 (expand_smod_pow2): Likewise.
925 (expand_divmod): Likewise.
926 (emit_store_flag): Likewise.
927 * tree-vect-patterns.c
928 (vect_pattern_recog_1): Likewise.
929 * tree-ssa-loop-prefetch.c
930 (nontemporal_store_p): Likewise.
931 * tree-vect-transform.c (vect_model_reduction_cost): Likewise.
932 (vect_create_epilog_for_reduction): Likewise.
933 (vectorizable_reduction): Likewise.
934 (vectorizable_operation): Likewise.
935 (vect_strided_store_supported): Likewise.
936 (vectorizable_store): Likewise.
937 (vect_strided_load_supported): Likewise.
938 (vectorizable_load): Likewise.
939 * combine.c (simplify_comparison): Likewise.
940 * tree-vect-generic.c
941 (type_for_widest_vector_mode): Likewise.
942 (expand_vector_operations_1): Likewise.
943 * config/spu/spu.c (spu_expand_mov): Likewise.
944 (spu_emit_vector_compare): Likewise.
945 * config/rs6000/rs6000.c
946 (rs6000_emit_vector_compare): Likewise.
947 * stmt.c (add_case_node): Likewise.
948 * reload1.c (gen_reload):
950 2007-08-09 Michael Matz <matz@suse.de>
952 * tree.h (fixed_zerop): Declare as taking a const_tree.
953 * tree.c (fixed_zerop): Take a const_tree.
955 2007-08-09 Ira Rosen <irar@il.ibm.com>
957 * tree-vect-transform.c (vectorizable_store): Remove call to
958 copy_virtual_operands() and call mark_symbols_for_renaming() for
959 the created vector store.
960 (vect_setup_realignment): Don't call copy_virtual_operands() and
961 update_vuses_to_preheader().
962 (vectorizable_load): Don't call copy_virtual_operands().
963 (update_vuses_to_preheader): Remove.
965 2007-08-08 Chao-ying Fu <fu@mips.com>
967 * tree.def (FIXED_POINT_TYPE): New type.
968 (FIXED_CST): New constant.
969 (FIXED_CONVERT_EXPR): New expr.
970 * doc/c-tree.texi (Types): Document FIXED_POINT_TYPE.
971 (Expressions): Document FIXED_CST and FIXED_CONVERT_EXPR.
972 * tree.h (struct tree_base): Add saturating_flag.
973 Remove one bit of spare for saturating_flag.
974 (NUMERICAL_TYPE_CHECK): Support FIXED_POINT_TYPE.
975 (NON_SAT_FIXED_POINT_TYPE_P, SAT_FIXED_POINT_TYPE_P,
976 FIXED_POINT_TYPE_P): Define.
977 (TYPE_SATURATING): Define.
978 (TREE_FIXED_CST_PTR, TREE_FIXED_CST): Define.
979 (struct tree_fixed_cst): New.
980 (TYPE_IBIT, TYPE_FBIT): Define.
981 (tree_node): Add fixed_cst.
982 (enum tree_index): Add new enumeration values of
983 TI_SAT_SFRACT_TYPE, TI_SAT_FRACT_TYPE, TI_SAT_LFRACT_TYPE,
984 TI_SAT_LLFRACT_TYPE, TI_SAT_USFRACT_TYPE, TI_SAT_UFRACT_TYPE,
985 TI_SAT_ULFRACT_TYPE, TI_SAT_ULLFRACT_TYPE, TI_SFRACT_TYPE,
986 TI_FRACT_TYPE, TI_LFRACT_TYPE, TI_LLFRACT_TYPE, TI_USFRACT_TYPE,
987 TI_UFRACT_TYPE, TI_ULFRACT_TYPE, TI_ULLFRACT_TYPE,
988 TI_SAT_SACCUM_TYPE, TI_SAT_ACCUM_TYPE, TI_SAT_LACCUM_TYPE,
989 TI_SAT_LLACCUM_TYPE, TI_SAT_USACCUM_TYPE, TI_SAT_UACCUM_TYPE,
990 TI_SAT_ULACCUM_TYPE, TI_SAT_ULLACCUM_TYPE, TI_SACCUM_TYPE,
991 TI_ACCUM_TYPE, TI_LACCUM_TYPE, TI_LLACCUM_TYPE, TI_USACCUM_TYPE,
992 TI_UACCUM_TYPE, TI_ULACCUM_TYPE, TI_ULLACCUM_TYPE,
993 TI_QQ_TYPE, TI_HQ_TYPE,_TYPE, TI_SQ_TYPE, TI_DQ_TYPE, TI_TQ_TYPE,
994 TI_UQQ_TYPE, TI_UHQ_TYPE, TI_USQ_TYPE, TI_UDQ_TYPE, TI_UTQ_TYPE,
995 TI_SAT_QQ_TYPE, TI_SAT_HQ_TYPE, TI_SAT_SQ_TYPE, TI_SAT_DQ_TYPE,
996 TI_SAT_TQ_TYPE, TI_SAT_UQQ_TYPE, TI_SAT_UHQ_TYPE, TI_SAT_USQ_TYPE,
997 TI_SAT_UDQ_TYPE, TI_SAT_UTQ_TYPE, TI_HA_TYPE, TI_SA_TYPE, TI_DA_TYPE,
998 TI_TA_TYPE, TI_UHA_TYPE, TI_USA_TYPE, TI_UDA_TYPE, TI_UTA_TYPE,
999 TI_SAT_HA_TYPE, TI_SAT_SA_TYPE, TI_SAT_DA_TYPE, TI_SAT_TA_TYPE,
1000 TI_SAT_UHA_TYPE, TI_SAT_USA_TYPE, TI_SAT_UDA_TYPE, TI_SAT_UTA_TYPE.
1001 (sat_short_fract_type_node, sat_fract_type_node,
1002 sat_long_fract_type_node, sat_long_long_fract_type_node,
1003 sat_unsigned_short_fract_type_node, sat_unsigned_fract_type_node,
1004 sat_unsigned_long_fract_type_node,
1005 sat_unsigned_long_long_fract_type_node, short_fract_type_node,
1006 fract_type_node, long_fract_type_node, long_long_fract_type_node,
1007 unsigned_short_fract_type_node, unsigned_fract_type_node,
1008 unsigned_long_fract_type_node, unsigned_long_long_fract_type_node,
1009 sat_short_accum_type_node, sat_accum_type_node,
1010 sat_long_accum_type_node, sat_long_long_accum_type_node,
1011 sat_unsigned_short_accum_type_node, sat_unsigned_accum_type_node,
1012 sat_unsigned_long_accum_type_node,
1013 sat_unsigned_long_long_accum_type_node, short_accum_type_node,
1014 accum_type_node, long_accum_type_node, long_long_accum_type_node,
1015 unsigned_short_accum_type_node, unsigned_accum_type_node,
1016 unsigned_long_accum_type_node, unsigned_long_long_accum_type_node,
1017 qq_type_node, hq_type_node, sq_type_node, dq_type_node, tq_type_node,
1018 uqq_type_node, uhq_type_node, usq_type_node, udq_type_node,
1019 utq_type_node, sat_qq_type_node, sat_hq_type_node, sat_sq_type_node,
1020 sat_dq_type_node, sat_tq_type_node, sat_uqq_type_node,
1021 sat_uhq_type_node, sat_usq_type_node, sat_udq_type_node,
1022 sat_utq_type_node, ha_type_node, sa_type_node, da_type_node,
1023 ta_type_node, uha_type_node, usa_type_node, uda_type_node,
1024 uta_type_node, sat_ha_type_node, sat_sa_type_node, sat_da_type_node,
1025 sat_ta_type_node, sat_uha_type_node, sat_usa_type_node,
1026 sat_uda_type_node, sat_uta_type_node): New macro.
1027 (make_fract_type, make_accum_type): Declare.
1028 (make_signed_fract_type, make_unsigned_fract_type,
1029 make_sat_signed_fract_type, make_sat_unsigned_fract_type,
1030 make_signed_accum_type, make_unsigned_accum_type,
1031 make_sat_signed_accum_type, make_sat_unsigned_accum_type,
1032 make_or_reuse_signed_fract_type, make_or_reuse_unsigned_fract_type,
1033 make_or_reuse_sat_signed_fract_type,
1034 make_or_reuse_sat_unsigned_fract_type, make_or_reuse_signed_accum_type,
1035 make_or_reuse_unsigned_accum_type, make_or_reuse_sat_signed_accum_type,
1036 make_or_reuse_sat_unsigned_accum_type): New macro.
1037 (fixed_zerop): Declare.
1038 * defaults.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE,
1039 LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE,
1040 SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE,
1041 LONG_LONG_ACCUM_TYPE_SIZE): Define.
1042 * treestruct.def: Add TS_FIXED_CST.
1043 * Makefile.in (c-pretty-print.o): Add dependence on fixed-value.h.
1045 (tree-dump.o): Likewise.
1046 (print-tree.o): Likewise.
1047 (tree-pretty-print.o): Likewise.
1048 (fold-const.o): Likewise.
1049 * tree-complex.c (some_nonzerop): Handle FIXED_CST.
1050 * tree-gimple.c (is_gimple_formal_tmp_rhs): Handle FIXED_CST.
1051 (is_gimple_min_invariant): Handle FIXED_CST.
1052 * stor-layout.c (int_mode_for_mode): Handle MODE_FRACT, MODE_UFRACT,
1053 MODE_ACCUM, MODE_UACCUM, MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT,
1054 MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
1055 (layout_type): Handle FIXED_POINT_TYPE.
1056 (make_fract_type, make_accum_type): New functions.
1057 * tree-browser.c (browse_tree): Handle FIXED_POINT_TYPE.
1058 * tree-dump.c (fixed-value.h): New include.
1059 (dump_fixed): New function.
1060 (dequeue_and_dump): Handle FIXED_POINT_TYPE and FIXED_CST.
1061 * tree-inline.c (remap_type_1): Handle FIXED_POINT_TYPE.
1062 (estimate_num_insns_1): Handle FIXED_CST and FIXED_CONVERT_EXPR.
1063 * tree-pretty-print.c (fixed-value.h): New include.
1064 (dump_generic_node): Handle FIXED_POINT_TYPE, FIXED_CST, and
1066 * tree-scalar-evolution.c (get_scalar_evolution): Handle FIXED_CST.
1067 * tree-ssa-loop-im.c (for_each_index): Handle FIXED_CST.
1068 * tree-ssa-pre.c (poolify_tree): Handle FIXED_CST.
1069 * tree-ssa-reassoc.c (break_up_subtract_bb): We can do reassociation
1070 for non-saturating fixed-point types.
1071 (reassociate_bb): Likewise.
1072 * emit-rtl.c (fixed-value.h): New include.
1073 (fconst0, fconst1): New array.
1074 (init_emit_once): Initialize fconst0 and fconst1 for fixed-point modes.
1075 * tree-vect-generic.c expand_vector_operation): Support
1076 MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, and
1078 (type_for_widest_vector_mode): Add one parameter for the
1080 Check scalar FRACT, UFRACT, ACCUM, and UACCUM mode to select their
1082 Pass the satp parameter to type_for_mode for fixed-point types.
1083 (expand_vector_operations_1): Pass the saturating flag to
1084 type_for_widest_vector_mode.
1085 Support MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
1086 and MODE_VECTOR_UACCUM.
1087 * tree-vect-transform.c (vect_is_simple_cond): Support FIXED_CST.
1088 (vectorizable_condition): Likewise.
1089 * tree.c (fixed-value.h): New include.
1090 (tree_code_size): Support FIXED_CST.
1091 (build_fixed): New function.
1092 (build_one_cst): Support FIXED_POINT_TYPE for accum types.
1093 (fixed_zerop): New function.
1094 (tree_node_structure): Support FIXED_CST.
1095 (type_contains_placeholder_1): Support FIXED_POINT_TYPE.
1096 (build_type_attribute_qual_variant): Handle FIXED_POINT_TYPE.
1097 (type_hash_eq): Handle FIXED_POINT_TYPE.
1098 (simple_cst_equal): Support FIXED_CST.
1099 (iterative_hash_expr): Handle FIXED_CST.
1100 (get_unwidened): Make sure type is not FIXED_POINT_TYPE.
1101 (get_narrower): Likewise.
1102 (variably_modified_type_p): Handle FIXED_POINT_TYPE.
1103 (make_or_reuse_fract_type, make_or_reuse_accum_type): New functions.
1104 (build_common_tree_nodes_2): Use MAKE_FIXED_TYPE_NODE_FAMILY and
1105 MAKE_FIXED_MODE_NODE macros to initialize fixed-point type
1107 (build_vector_type_for_mode): Handle MODE_VECTOR_FRACT,
1108 MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
1109 (initializer_zerop): Support FIXED_CST.
1110 (walk_tree): Handle FIXED_CST and FIXED_POINT_TYPE.
1111 * dwarf2out.c (base_type_die): Use DW_ATE_signed_fixed or
1112 DW_ATE_unsigned_fixed to describe FIXED_POINT_TYPE.
1113 (is_base_type): Handle FIXED_POINT_TYPE.
1114 (add_type_attribute): Handle FIXED_POINT_TYPE.
1115 (gen_type_die_with_usage): Handle FIXED_POINT_TYPE.
1116 * print-tree.c (fixed-value.h): New include.
1117 (print_node_brief): Support FIXED_CST.
1118 (print_node): Support FIXED_POINT_TYPE and FIXED_CST.
1119 * c-pretty-print.c (fixed-value.h): New include.
1120 (pp_c_type_specifier): Handle FIXED_POINT_TYPE. Need to pass
1121 TYPE_SATURATING to c_common_type_for_mode for fixed-point modes.
1122 (pp_c_direct_abstract_declarator): Handle FIXED_POINT_TYPE.
1123 Support fixed-point types for inner items in VECTOR_TYPE.
1124 (pp_c_direct_declarator): Likewise.
1125 (pp_c_declarator): Likewise.
1126 (pp_c_fixed_constant): New function.
1127 (pp_c_constant): Handle FIXED_CST.
1128 (pp_c_primary_expression): Likewise.
1129 (pp_c_expression): Likewise.
1130 * fold-const.c (fixed-value.h): New include.
1131 (negate_expr_p): Return true for FIXED_CST.
1132 (fold_negate_expr): Support FIXED_CST.
1133 (split_tree): Support FIXED_CST.
1134 (const_binop): Support FIXED_CST.
1135 (fold_convert_const_int_from_fixed): New function to convert from
1137 (fold_convert_const_real_from_fixed): New function to convert from
1139 (fold_convert_const_fixed_from_fixed): New function to convert from
1140 fixed to another fixed.
1141 (fold_convert_const_fixed_from_int): New function to convert from
1143 (fold_convert_const_fixed_from_real): New function to convert from
1145 (fold_convert_const): Support conversions from fixed to int, from
1146 fixed to real, from fixed to fixed, from int to fixed, and from real
1148 (fold_convert): Support FIXED_CST and FIXED_POINT_TYPE.
1149 (operand_equal_p): Support FIXED_CST.
1150 (make_range): For fixed-point modes, we need to pass the
1151 saturating flag as the 2nd parameter.
1152 (tree_swap_operands_p): Handle FIXED_CST.
1153 (fold_plusminus_mult_expr): For fract modes, we cannot generate
1155 (fold_unary): Support FIXED_CONVERT_EXPR.
1156 (fold_binary): Handle FIXED_CST.
1157 Make sure the type is not saturating, before associating operations.
1158 Ex: A + B + C, A * B * C, (A1 * C1) +/- (A2 * C2).
1159 (tree_expr_nonnegative_warnv_p): Handle FIXED_CST.
1160 (fold_negate_const): Support FIXED_CST.
1161 (fold_relational_const): Support FIXED_CST.
1162 * gimplify.c (omp_firstprivatize_type_sizes): Handle FIXED_POINT_TYPE.
1163 (gimplify_expr): Handle FIXED_CST.
1164 (gimplify_type_sizes): Handle FIXED_POINT_TYPE.
1165 * ipa-prop.c (ipa_callsite_compute_param): Support FIXED_CST.
1166 * ipa-type-escape.c (type_to_consider): Handle FIXED_POINT_TYPE.
1167 * doc/tm.texi (Type Layout): Document SHORT_FRACT_TYPE_SIZE,
1168 FRACT_TYPE_SIZE, LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE,
1169 SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE,
1170 LONG_LONG_ACCUM_TYPE_SIZE.
1171 * dbxout.c (dbxout_type): Handle FIXED_POINT_TYPE.
1172 * c-aux-info.c (gen_type): Handle FIXED_POINT_TYPE.
1173 * tree-sra.c (is_sra_scalar_type): Support FIXED_POINT_TYPE.
1174 * expmed.c (extract_bit_field): Support MODE_FRACT, MODE_UFRACT,
1175 MODE_ACCUM, and MODE_UACCUM.
1176 * tree-vectorizer.c (vect_is_simple_reduction): Check for saturating
1177 fixed-point types to disable reduction.
1178 * explow.c (promote_mode): Support FIXED_POINT_TYPE.
1180 2007-08-08 David Edelsohn <edelsohn@gnu.org>
1182 * config/rs6000/x-rs6000: New file.
1183 * config/rs6000/darwin.h (CC1_SPEC): Add cc1_cpu.
1184 * config/rs6000/rs6000.h (EXTRA_SPECS): Add cc1_cpu.
1185 (EXTRA_SPEC_FUNCTIONS): Define.
1186 (HAVE_LOCAL_CPU_DETECT): Define.
1187 (CC1_CPU_SPEC): Define.
1188 * config/rs6000/driver-rs6000.c: New file.
1189 * config/rs6000/aix.h (CC1_SPEC): Define.
1190 * config/rs6000/sysv4.h (CC1_SPEC): Add cc1_cpu.
1191 * config.host: Add x-rs6000 to host_xmake_file if host and target
1192 are rs6000 or powerpc.
1194 2007-08-08 Paolo Bonzini <paolo.bonzini@lu.unisi.ch>
1196 * config/i386/t-crtstuff (CRTSTUFF_T_CFLAGS): Use +=.
1198 2007-08-08 Richard Sandiford <richard@codesourcery.com>
1199 Sandra Loosemore <sandra@codesourcery.com>
1200 Chao-ying Fu <fu@mips.com>
1201 Nigel Stephens <nigel@mips.com>
1202 David Ung <davidu@mips.com>
1204 * doc/invoke.texi (-mcode-readable): Document.
1205 * config/mips/mips.opt (mcode-readable): New option.
1206 * config/mips/mips-protos.h (SYMBOL_32_HIGH): New symbol type.
1207 * config/mips/mips.h (mips_code_readable_setting): New enum.
1208 (mips_code_readable): Declare.
1209 (TARGET_MIPS16_TEXT_LOADS, TARGET_MIPS16_PCREL_LOADS): New macros.
1210 (TARGET_MIPS16_SHORT_JUMP_TABLES): New macro.
1211 (JUMP_TABLES_IN_TEXT_SECTION): Use it.
1212 (CASE_VECTOR_MODE, CASE_VECTOR_PC_RELATIVE): Likewise. Remove
1213 boiler-plate comments.
1214 (ASM_OUTPUT_ADDR_DIFF_ELT): Use TARGET_MIPS16_SHORT_JUMP_TABLES.
1215 * config/mips/mips.c (mips_code_readable): New variable.
1216 (mips_classify_symbol): Only return SYMBOL_PC_RELATIVE for
1217 MIPS16 labels if TARGET_MIPS16_SHORT_JUMP_TABLES. Use both the
1218 context and -mcode-readable setting to restrict the use of
1219 SYMBOL_PC_RELATIVE for MIPS16 constant pool references.
1220 Only return TARGET_FORCE_TO_MEM if PC-relative loads are allowed.
1221 (mips_symbolic_constant_p): Handle SYMBOL_32_HIGH.
1222 (mips_blocks_for_constant_p): Only return false for
1223 TARGET_MIPS16_PCREL_LOADS.
1224 (mips_symbol_insns_1): Treat HIGHs as 2 extended instructions
1225 for MIPS16. Handle SYMBOL_32_HIGH.
1226 (mips_const_insns): Allow HIGHs for MIPS16 too.
1227 (mips_unspec_address_offset): New function, split out from...
1228 (mips_unspec_address): ...here.
1229 (mips_output_move): Handle MIPS16 HIGH moves. Use "li" to load
1230 16-bit symbolic constants. Assert approropiate conditions for
1231 using the "la" and "dla" macros.
1232 (mips_handle_option): Handle -mcode-readable=.
1233 (override_options): Use %hi/%lo relocations for TARGET_MIPS16 too.
1234 Set up mips_lo_relocs[SYMBOL_32_HIGH].
1235 (mips_strip_unspec_address): New function, split out from...
1236 (print_operand_reloc): ...here.
1237 (print_operand): Pass constants through mips_strip_unspec_address.
1238 (print_operand_address): Likewise.
1239 (mips_output_mi_thunk): Remove guard of mips16_lay_out_constants.
1240 (mips_select_rtx_section): Remove MIPS16 handling.
1241 (mips16_gp_pseudo_reg): Check currently_expanding_to_rtl.
1242 (mips16_rewrite_pool_refs): Wrap the labels in an address UNSPEC.
1243 (mips16_lay_out_constants): Do nothing unless
1244 TARGET_MIPS16_PCREL_LOADS.
1245 (mips_avoid_hazards): Remove guard of mips16_lay_out_constants.
1246 * config/mips/mips.md: Split HIGHs for MIPS16.
1247 (tablejump): Use TARGET_MIPS16_SHORT_JUMP_TABLES.
1249 2007-08-08 Richard Sandiford <richard@codesourcery.com>
1251 * config/mips/mips-protos.h (mips_emit_move): Declare.
1252 * config/mips/mips.c (mips_emit_move): New function.
1253 (mips_force_temporary): Use mips_emit_move instead of emit_move_insn.
1254 (mips_legitimize_const_move): Likewise.
1255 (mips_legitimize_move): Likewise.
1256 (mips_split_64bit_move): Likewise.
1257 (mips_restore_gp): Likewise.
1258 (mips_load_call_address): Likewise.
1259 (mips_emit_fcc_reload): Likewise.
1260 (mips_set_return_address): Likewise.
1261 (mips_block_move_straight): Likewise.
1262 (mips_block_move_loop): Likewise.
1263 (mips_setup_incoming_varargs): Likewise.
1264 (mips_save_reg): Likewise.
1265 (mips_expand_prologue): Likewise.
1266 (mips_restore_reg): Likewise.
1267 (mips_expand_epilogue): Likewise.
1268 (mips_output_mi_thunk): Likewise.
1269 (build_mips16_call_stub): Likewise.
1270 (mips_builtin_branch_and_move): Likewise.
1271 * config/mips/mips.h (INITIALIZE_TRAMPOLINE): Likewise.
1272 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
1273 (fixuns_truncdfdi2): Likewise.
1274 (fixuns_truncsfsi2): Likewise.
1275 (fixuns_truncsfdi2): Likewise.
1276 (loadgp_absolute): Likewise.
1277 (builtin_setjmp_setup): Likewise.
1278 (builtin_longjmp): Likewise.
1279 (untyped_call): Likewise.
1281 2007-08-08 Richard Sandiford <richard@codesourcery.com>
1283 * config/mips/mips-protos.h (mips_split_symbol): Add a mode and
1284 an "rtx *" argument. Return a bool.
1285 * config/mips/mips.c (mips_split_symbol): Accept arbitrary source
1286 values and return true if they can be split. Take the same kind of
1287 mode argument as mips_symbol_insns. Add a "lo_sum_out" parameter
1288 and store the lo_sum there if nonnull. Use the symbol type to
1289 determine whether a $gp or HIGH is needed.
1290 (mips_legitimize_address): Update call to mips_split_symbol and
1291 simplify accordingly.
1292 (mips_legitimize_const_move): Likewise.
1293 * config/mips/mips.md: In the combine define_split,
1294 check mips_split_symbol instead of splittable_symbolic_operand.
1295 Update use of mips_split_symbol in the generator code.
1296 * config/mips/predicates.md (splittable_symbolic_operand): Delete.
1298 2007-08-08 Richard Sandiford <richard@codesourcery.com>
1300 * config/mips/mips.c (mips_symbolic_address_p): Delete.
1301 (mips_symbol_insns_1): New function, split out from...
1302 (mips_symbol_insns): ...here. Take a mode argument. Treat loads
1303 and stores separately from load addresses.
1304 (mips_classify_address): Replace uses of mips_symbolic_address_p
1305 with uses of mips_symbol_insns.
1306 (mips_address_insns): Update calls to mips_symbol_insns.
1307 (mips_const_insns): Likewise.
1308 (mips_legitimize_address): Likewise.
1310 2007-08-08 Richard Sandiford <richard@codesourcery.com>
1312 * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): New symbol type.
1313 * config/mips/mips.c (mips_classify_symbol): Skip TARGET_ABICALLS
1314 block for locally-binding symbols if TARGET_ABSOLUTE_ABICALLS.
1315 Return SYMBOL_FORCE_TO_MEM instead of SYMBOL_ABSOLUTE for
1316 non-call contexts if TARGET_MIPS16.
1317 (mips_symbolic_constant_p): Handle SYMBOL_FORCE_TO_MEM.
1318 (mips_symbolic_address_p): Likewise. Remove special TARGET_MIPS16
1319 code for SYMBOL_ABSOLUTE.
1320 (mips_symbol_insns): Likewise.
1322 2007-08-08 Richard Sandiford <richard@codesourcery.com>
1324 * config/mips/mips-protos.h (mips_symbol_context): New enumeration.
1325 * config/mips/mips.c (mips_classify_symbol): Take a context argument.
1326 (mips_symbolic_constant_p): Likewise. Update the call to
1327 mips_classify_symbol.
1328 (mips_classify_address): Update the calls to mips_symbolic_constant_p.
1329 (mips_const_insns): Likewise. Update the call to mips_classify_symbol.
1330 (mips_legitimize_address): Update the call to mips_symbolic_constant_p.
1331 (print_operand_reloc): Add a context argument. Update the call to
1332 mips_symbolic_constant_p.
1333 (print_operand): Update the calls to print_operand_reloc.
1334 (print_operand_address): Use print_operand_reloc rather than
1336 (mips_rewrite_small_data_p): Add a context argument. Update the call
1337 to mips_symbolic_constant_p.
1338 (mips_small_data_pattern_1): Make DATA the containing mem.
1339 Update the call to mips_rewrite_small_data_p.
1340 (mips_rewrite_small_data_1): Likewise.
1341 (mips_use_anchors_for_symbol_p): Update the call to
1342 mips_symbolic_constant_p.
1343 * config/mips/predicates.md (const_call_insn_operand): Likewise.
1344 (splittable_symbolic_operand): Likewise.
1345 (move_operand): Likewise.
1346 (absolute_symbolic_operand): Likewise.
1347 (got_disp_operand): Likewise.
1348 (got_page_ofst_operand): Likewise.
1350 2007-08-08 Richard Sandiford <richard@codesourcery.com>
1352 * config/mips/mips-protos.h (SYMBOL_GENERAL): Rename to...
1353 (SYMBOL_ABSOLUTE): ...this.
1354 (SYMBOL_SMALL_DATA): Rename to...
1355 (SYMBOL_GP_RELATIVE): ...this.
1356 (SYMBOL_CONSTANT_POOL): Rename to...
1357 (SYMBOL_PC_RELATIVE): ...this.
1358 * config/mips/mips.c (mips_classify_symbol, mips_symbolic_constant_p)
1359 (mips_symbolic_address_p, mips_symbol_insns, override_options)
1360 (mips_rewrite_small_data_p, mips_use_anchors_for_symbol_p): Update
1361 after above changes.
1362 * config/mips/predicates.md (const_call_insn_operand): Likewise.
1363 (general_symbolic_operand): Rename to...
1364 (absolute_symbolic_operand): ...this.
1365 * config/mips/mips.md: Update after above changes.
1367 2007-08-08 Vladimir Yanovsky <yanov@il.ibm.com>
1368 Revital Eres <eres@il.ibm.com>
1370 * ddg.c (print_ddg): Add dump information.
1371 * modulo-sched.c (print_node_sched_params): Add parameter and
1373 (calculate_maxii): Remove function.
1374 (undo_generate_reg_moves): Likewise.
1375 (undo_permute_partial_schedule): Likewise.
1376 (kernel_number_of_cycles): Likewise.
1377 (MAXII_FACTOR): New definition to calculate the upper bound of II.
1378 (sms_schedule): Use it. Remove profitability checks.
1379 (sms_schedule_by_order): Fix order of nodes within the cycle.
1381 2007-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
1383 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt0.o in profile mode, add
1384 -profile option, add pie support.
1385 (ENDFILE_SPEC): New spec.
1386 * config/gnu.h (LIB_SPEC): Add -profile option.
1388 2007-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
1390 * config/i386/gnu.h (CPP_SPEC): Add -pthread option.
1391 * config/gnu.h (LIB_SPEC): Likewise.
1393 2007-08-07 Yaz Saito <saito@google.com>
1394 Ian Lance Taylor <iant@google.com>
1396 * common.opt (finstrument-functions-exclude-function-list): New
1398 (finstrument-functions-exclude-file-list): New option.
1399 * opts.c (char_p): Define and DEF_VEC.
1400 (flag_instrument_functions_exclude_functions): New static
1402 (flag_instrument_functions_exclude_files): New static variable.
1403 (add_instrument_functions_exclude_list): New static function.
1404 (flag_instrument_functions_exclude_p): New function.
1405 (common_handle_option): Handle new options.
1406 * flags.h (flag_instrument_functions_exclude_p): Declare.
1407 * gimplify.c (gimplify_function_tree): Call
1408 flag_instrument_functions_exclude_p.
1409 * doc/invoke.texi (Option Summary): Mention new options.
1410 (Code Gen Options): Document new options.
1412 2007-08-07 Ian Lance Taylor <iant@google.com>
1414 PR rtl-optimization/32776
1415 * lower-subreg.c (resolve_clobber): Call resolve_reg_notes.
1416 (resolve_use): Likewise.
1417 (decompose_multiword_subregs): Remove "changed" local variable.
1419 2007-08-07 Carlos O'Donell <carlos@codesourcery.com>
1421 * configure.ac: Define HAVE_GNU_AS if $gas_flag is yes.
1422 * configure: Regenerate.
1423 * config.in: Regenerate.
1424 * gcc.c [HAVE_GNU_AS]: Add "%{v} %{w:-W} %{I*} " to asm_options
1427 2007-08-07 Ian Lance Taylor <iant@google.com>
1429 * lower-subreg.c (resolve_clobber): If the clobber has a LIBCALL
1430 note, just delete the insn.
1432 2007-08-07 Andreas Schwab <schwab@suse.de>
1435 * gengtype-lex.l: Ignore backslash/newline pair while scanning a
1438 2007-08-07 Andreas Krebbel <krebbel1@de.ibm.com>
1440 * lower-subreg.c (resolve_subreg_use): Remove assertion.
1441 (find_decomposable_shift_zext, resolve_shift_zext): New functions.
1442 (decompose_multiword_subregs): Use the functions above to decompose
1443 multiword shifts and zero-extends.
1445 2007-08-07 Rask Ingemann Lambertsen <rask@sygehus.dk>
1447 * doc/sourcebuild.texi (Test Directives): Fix "compile" and
1448 "assemble" descriptions which were swapped.
1450 2007-08-06 Chao-ying Fu <fu@mips.com>
1452 * fixed-value.h: New file.
1453 * fixed-value.c: New file.
1454 * Makefile.in (OBJS-common): Add fixed-value.o.
1455 (fixed-value.o): New rule.
1456 (GTFILES): Add fixed-value.h.
1457 * double-int.c (double_int_scmp): We should use unsigned HOST_WIDE_INT
1458 to compare a.low and b.low.
1459 * gengtype.c (main): Handle FIXED_VALUE_TYPE type as scalar typedef.
1461 2007-08-06 H.J. Lu <hongjiu.lu@intel.com>
1462 Daniel Jacobowitz <dan@codesourcery.com>
1465 * config.gcc (x86_64-*-freebsd*): Add i386/t-crtstuff to
1467 (x86_64-*-netbsd*): Likewise.
1468 (x86_64-*-linux*): Likewise.
1469 (x86_64-*-kfreebsd*-gnu): Likewise.
1470 (x86_64-*-knetbsd*-gnu): Likewise.
1471 (i[34567]86-*-solaris2.1[0-9]*): Likewise.
1473 * config/i386/t-linux64 (CRTSTUFF_T_CFLAGS): Removed.
1475 * config/i386/t-crtstuff (CRTSTUFF_T_CFLAGS): Update comments.
1476 Add -fno-asynchronous-unwind-tables.
1478 * config/t-freebsd (CRTSTUFF_T_CFLAGS_S): Add $(CRTSTUFF_T_CFLAGS).
1479 * config/t-libc-ok (CRTSTUFF_T_CFLAGS_S): Likewise.
1480 * config/t-lynx (CRTSTUFF_T_CFLAGS_S): Likewise.
1481 * config/t-netbsd (CRTSTUFF_T_CFLAGS_S): Likewise.
1482 * config/t-svr4 (CRTSTUFF_T_CFLAGS_S): Likewise.
1484 2007-08-06 Steve Ellcey <sje@cup.hp.com>
1486 * config/ia64/ia64.c (ia64_c_mode_for_suffix): New.
1487 (TARGET_C_MODE_FOR_SUFFIX): New.
1489 2007-08-06 Steve Ellcey <sje@cup.hp.com>
1491 * config/ia64/div.md (m2subrf4_cond): Change 'g' to 'G'.
1493 2007-08-06 Steve Ellcey <sje@cup.hp.com>
1495 * config/ia64/ia64.h (MODES_TIEABLE_P): Fix typo.
1497 2007-08-06 H.J. Lu <hongjiu.lu@intel.com>
1499 * config/i386/i386.md: Check TARGET_ macros and optimize_size
1500 before checking function returns in conditional expressions.
1502 2007-08-06 Alfred Minarik <a.minarik@aon.at>
1505 * doc/invoke.texi: Add .hp, .hxx, .hpp, .h, .HPP, .tcc as c++ header.
1507 2008-08-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
1510 * tree.c (build2_stat): Instead of checking for INTEGER_TYPE, check
1511 for INTEGRAL_TYPE_P.
1513 2008-08-05 Paolo Bonzini <bonzini@gnu.org>
1515 * configure.ac: Remove --enable-checking=df from default settings.
1516 * tree-pass.h (TODO_df_verify): New. Shift TODO_mark_first_instance.
1517 * df-core.c (df_finish_pass) [ENABLE_CHECKING]: Schedule verification
1518 if the parameter is true.
1519 (df_analyze) [!ENABLE_DF_CHECKING]: Also do verification if the
1520 DF_VERIFY_SCHEDULED flag is true.
1521 * df.h (enum df_changeable_flags): Add DF_VERIFY_SCHEDULED.
1522 (df_finish_pass): Adjust prototype.
1523 * passes.c (execute_todo): Schedule verification if TODO_df_verify is
1526 * see.c (pass_see): Add TODO_df_verify.
1527 * loop-init.c (pass_rtl_move_loop_invariants): Add TODO_df_verify.
1528 * global.c (rest_of_handle_global_alloc): Schedule verification
1530 * local-alloc.c (rest_of_handle_local_alloc): Schedule verification
1532 * function.c (pass_thread_prologue_and_epilogue): Add TODO_df_verify.
1533 * gcse.c (rest_of_handle_gcse): Adjust call to df_finish_pass.
1534 * loop-iv.c (iv_analysis_done): Schedule verification after the pass.
1536 * config/sh/sh.c (sh_output_mi_thunk): Remove dead code.
1537 * config/ia64/ia64.c (ia64_reorg): Adjust call to df_finish_pass.
1538 * config/bfin/bfin.c (bfin_reorg): Adjust call to df_finish_pass.
1540 2007-08-05 Vladimir Yanovsky <yanov@il.ibm.com>
1541 Revital Eres <eres@il.ibm.com>
1543 * doc/invoke.texi (-fmodulo-sched-allow-regmoves): Document new
1545 * ddg.c (create_ddg_dependence): Rename to...
1546 (create_ddg_dep_from_intra_loop_link): This. Do not check
1547 for interloop edges. Do not create anti dependence edge when
1548 a true dependence edge exists in the opposite direction and
1549 -fmodulo-sched-allow-regmoves is set.
1550 (build_intra_loop_deps): Call create_ddg_dep_from_intra_loop_link.
1551 (add_cross_iteration_register_deps): Create anti dependence edge
1552 when -fno-modulo-sched-allow-regmoves is set.
1553 * common.opt (-fmodulo-sched-allow-regmoves): New flag.
1555 2007-08-04 Richard Sandiford <richard@codesourcery.com>
1557 * config/arm/arm.md (movsi): Add braces.
1559 2007-08-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
1562 * fold-const.c (fold_binary <case MINUS_EXPR>): Fix the type of operands
1563 for the folding of "A - (A & B)" into "~B & A"; cast them to type.
1565 2007-08-03 Zdenek Dvorak <ook@ucw.cz>
1567 * tree-ssa-threadupdate.c (thread_through_all_blocks): Use loops' state
1569 * cfgloopmanip.c (remove_path, create_preheaders,
1570 force_single_succ_latches, fix_loop_structure): Ditto.
1571 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
1572 tree_duplicate_loop_to_header_edge): Ditto.
1573 * cfgloopanal.c (mark_irreducible_loops): Ditto.
1574 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize):
1576 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures,
1577 cleanup_tree_cfg): Ditto.
1578 * tree-cfg.c (tree_merge_blocks): Ditto.
1579 * cfgloop.c (rescan_loop_exit, record_loop_exits,
1580 release_recorded_exits, get_loop_exit_edges, verify_loop_structure,
1581 loop_preheader_edge, single_exit): Ditto.
1582 (flow_loops_find): Do not clear loops->state.
1583 * cfgloop.h (loops_state_satisfies_p, loops_state_set,
1584 loops_state_clear): New functions.
1586 2007-08-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
1589 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
1590 when adding to the base and convert ELT to sizetype instead of type.
1592 2007-08-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
1595 * ipa-reference.c (has_proper_scope_for_analysis): Return false when
1596 the decl's type has TYPE_NEEDS_CONSTRUCTING set.
1598 2007-08-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
1601 * fold-convert.c (fold_negate_expr <NOP_EXPR>): Convert back to the
1602 correct type the negate expression.
1604 2007-08-03 Jan Hubicka <jh@suse.cz>
1606 * i386.c (setup_incoming_varargs_64): Tolerate 64bit preferred
1609 2007-08-03 David Edelsohn <edelsohn@gnu.org>
1611 * config/rs6000/rs6000.c (struct processor_cost): Change
1612 l1_cache_lines to l1_cache_size. Add l2_cache_size.
1613 (*_cost): Convert l1 cache information to kilobytes. Add l2 cache
1615 (rios1_costs, rios2_cost): Correct cache line size.
1616 (rs6000_override_options): Set l2-cache-size parameter.
1618 2007-08-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
1619 Diego Novillo <dnovillo@google.com>
1622 * tree-vrp.c (simplify_div_or_mod_using_ranges): Also simplify
1623 if the range includes 0.
1625 2007-08-03 Ben Elliston <bje@au.ibm.com>
1627 * config/spu/spu.md (dftsv, dftsv_celledp): Attach the appropriate
1628 mode to unspec expressions to silence a warning from the generator
1631 2007-08-02 Steve Ellcey <sje@cup.hp.com>
1633 * config/ia64/constraints.md ("U"): Make constraint vector only.
1635 2007-08-02 Nathan Froyd <froydnj@codesourcery.com>
1638 * c-objc-common.c (c_cannot_inline_tree_fn): Check for an
1639 always_inline attribute on the function decl.
1641 2007-08-02 Nathan Froyd <froydnj@codesourcery.com>
1644 * varasm.c (default_binds_local_p_1): Consult flag_whole_program
1645 if we are compiling with -fPIC.
1647 2007-08-02 Sandra Loosemore <sandra@codesourcery.com>
1648 Nigel Stephens <nigel@mips.com>
1650 * longlong.h [__mips__] (count_leading_zeros, COUNT_LEADING_ZEROS_0):
1651 Define for MIPS32 and MIPS64.
1653 2007-08-02 Nick Clifton <nickc@redhat.com>
1655 * config/host-hpux.c: Change copyright header to refer to version
1656 3 of the GNU General Public License and to point readers at the
1657 COPYING3 file and the FSF's license web page.
1658 * config/alpha/predicates.md, config/alpha/vms-ld.c,
1659 config/alpha/linux.h, config/alpha/alpha.opt,
1660 config/alpha/linux-elf.h, config/alpha/vms.h, config/alpha/elf.h,
1661 config/alpha/vms-unwind.h, config/alpha/ev4.md,
1662 config/alpha/ev6.md, config/alpha/alpha.c, config/alpha/vms-cc.c,
1663 config/alpha/alpha.h, config/alpha/sync.md,
1664 config/alpha/openbsd.h, config/alpha/alpha.md,
1665 config/alpha/alpha-modes.def, config/alpha/ev5.md,
1666 config/alpha/alpha-protos.h, config/alpha/freebsd.h,
1667 config/alpha/osf5.h, config/alpha/netbsd.h, config/alpha/vms64.h,
1668 config/alpha/constraints.md, config/alpha/osf.h,
1669 config/alpha/xm-vms.h, config/alpha/unicosmk.h, config/linux.h,
1670 config/frv/predicates.md, config/frv/frv.h, config/frv/linux.h,
1671 config/frv/frv.md, config/frv/frv.opt, config/frv/frv-modes.def,
1672 config/frv/frv-asm.h, config/frv/frv-protos.h,
1673 config/frv/frv-abi.h, config/frv/frv.c, config/s390/tpf.h,
1674 config/s390/s390.c, config/s390/predicates.md, config/s390/s390.h,
1675 config/s390/linux.h, config/s390/tpf.md, config/s390/tpf.opt,
1676 config/s390/2064.md, config/s390/2084.md, config/s390/s390.md,
1677 config/s390/s390.opt, config/s390/s390-modes.def,
1678 config/s390/fixdfdi.h, config/s390/constraints.md,
1679 config/s390/s390-protos.h, config/s390/s390x.h, config/elfos.h,
1680 config/dbxcoff.h, config/m32c/predicates.md, config/m32c/cond.md,
1681 config/m32c/m32c.c, config/m32c/minmax.md, config/m32c/blkmov.md,
1682 config/m32c/m32c-pragma.c, config/m32c/m32c.h,
1683 config/m32c/prologue.md, config/m32c/m32c.abi,
1684 config/m32c/muldiv.md, config/m32c/bitops.md, config/m32c/mov.md,
1685 config/m32c/addsub.md, config/m32c/m32c.md, config/m32c/m32c.opt,
1686 config/m32c/t-m32c, config/m32c/m32c-modes.def,
1687 config/m32c/jump.md, config/m32c/shift.md,
1688 config/m32c/m32c-protos.h, config/libgloss.h,
1689 config/spu/spu-protos.h, config/spu/predicates.md,
1690 config/spu/spu-builtins.h, config/spu/spu.c,
1691 config/spu/spu-builtins.def, config/spu/spu-builtins.md,
1692 config/spu/spu.h, config/spu/spu-elf.h, config/spu/constraints.md,
1693 config/spu/spu.md, config/spu/spu-c.c, config/spu/spu.opt,
1694 config/spu/spu-modes.def, config/spu/t-spu-elf, config/interix.h,
1695 config/sparc/hypersparc.md, config/sparc/predicates.md,
1696 config/sparc/linux.h, config/sparc/sp64-elf.h,
1697 config/sparc/supersparc.md, config/sparc/cypress.md,
1698 config/sparc/openbsd1-64.h, config/sparc/openbsd64.h,
1699 config/sparc/niagara.md, config/sparc/sparc.md,
1700 config/sparc/long-double-switch.opt, config/sparc/ultra3.md,
1701 config/sparc/sparc.opt, config/sparc/sync.md,
1702 config/sparc/sp-elf.h, config/sparc/sparc-protos.h,
1703 config/sparc/ultra1_2.md, config/sparc/biarch64.h,
1704 config/sparc/sparc.c, config/sparc/little-endian.opt,
1705 config/sparc/sysv4-only.h, config/sparc/sparc.h,
1706 config/sparc/linux64.h, config/sparc/freebsd.h,
1707 config/sparc/sol2.h, config/sparc/rtemself.h,
1708 config/sparc/netbsd-elf.h, config/sparc/vxworks.h,
1709 config/sparc/sparc-modes.def, config/sparc/sparclet.md,
1710 config/sparc/sysv4.h, config/vx-common.h, config/netbsd-aout.h,
1711 config/flat.h, config/m32r/m32r.md, config/m32r/predicates.md,
1712 config/m32r/little.h, config/m32r/m32r.c, config/m32r/m32r.opt,
1713 config/m32r/linux.h, config/m32r/constraints.md,
1714 config/m32r/m32r.h, config/m32r/m32r-protos.h, config/vxworks.opt,
1715 config/darwin-c.c, config/darwin.opt, config/i386/i386.h,
1716 config/i386/cygming.h, config/i386/linux.h, config/i386/cygwin.h,
1717 config/i386/i386.md, config/i386/netware-crt0.c,
1718 config/i386/sco5.h, config/i386/mmx.md, config/i386/vx-common.h,
1719 config/i386/kaos-i386.h, config/i386/winnt-stubs.c,
1720 config/i386/netbsd64.h, config/i386/djgpp.h, config/i386/gas.h,
1721 config/i386/sol2.h, config/i386/constraints.md,
1722 config/i386/netware-libgcc.c, config/i386/sysv5.h,
1723 config/i386/predicates.md, config/i386/geode.md,
1724 config/i386/x86-64.h, config/i386/kfreebsd-gnu.h,
1725 config/i386/freebsd64.h, config/i386/vxworksae.h,
1726 config/i386/pentium.md, config/i386/lynx.h, config/i386/i386elf.h,
1727 config/i386/rtemself.h, config/i386/netbsd-elf.h,
1728 config/i386/ppro.md, config/i386/k6.md, config/i386/netware.c,
1729 config/i386/netware.h, config/i386/i386-modes.def,
1730 config/i386/sysv4-cpp.h, config/i386/i386-interix.h,
1731 config/i386/cygwin1.c, config/i386/djgpp.opt, config/i386/uwin.h,
1732 config/i386/unix.h, config/i386/ptx4-i.h, config/i386/xm-djgpp.h,
1733 config/i386/att.h, config/i386/winnt.c, config/i386/beos-elf.h,
1734 config/i386/sol2-10.h, config/i386/darwin64.h, config/i386/sse.md,
1735 config/i386/i386.opt, config/i386/bsd.h, config/i386/cygming.opt,
1736 config/i386/xm-mingw32.h, config/i386/linux64.h,
1737 config/i386/openbsdelf.h, config/i386/xm-cygwin.h,
1738 config/i386/sco5.opt, config/i386/darwin.h, config/i386/mingw32.h,
1739 config/i386/winnt-cxx.c, config/i386/i386-interix3.h,
1740 config/i386/nwld.c, config/i386/nwld.h, config/i386/host-cygwin.c,
1741 config/i386/cygwin2.c, config/i386/i386-protos.h,
1742 config/i386/sync.md, config/i386/openbsd.h,
1743 config/i386/host-mingw32.c, config/i386/i386-aout.h,
1744 config/i386/nto.h, config/i386/biarch64.h,
1745 config/i386/i386-coff.h, config/i386/freebsd.h,
1746 config/i386/driver-i386.c, config/i386/knetbsd-gnu.h,
1747 config/i386/host-i386-darwin.c, config/i386/vxworks.h,
1748 config/i386/crtdll.h, config/i386/i386.c, config/i386/sysv4.h,
1749 config/darwin-protos.h, config/linux.opt, config/sol2.c,
1750 config/sol2.h, config/sh/symbian.c, config/sh/sh-protos.h,
1751 config/sh/linux.h, config/sh/elf.h, config/sh/superh.h,
1752 config/sh/sh4.md, config/sh/coff.h, config/sh/newlib.h,
1753 config/sh/embed-elf.h, config/sh/symbian-pre.h, config/sh/rtems.h,
1754 config/sh/kaos-sh.h, config/sh/sh4a.md, config/sh/constraints.md,
1755 config/sh/sh64.h, config/sh/sh.opt, config/sh/symbian-post.h,
1756 config/sh/sh-c.c, config/sh/predicates.md, config/sh/sh.c,
1757 config/sh/sh.h, config/sh/shmedia.md, config/sh/sh-modes.def,
1758 config/sh/little.h, config/sh/sh1.md, config/sh/sh4-300.md,
1759 config/sh/superh64.h, config/sh/rtemself.h,
1760 config/sh/netbsd-elf.h, config/sh/sh.md, config/sh/vxworks.h,
1761 config/usegas.h, config/svr3.h, config/pdp11/pdp11-protos.h,
1762 config/pdp11/2bsd.h, config/pdp11/pdp11.md, config/pdp11/pdp11.c,
1763 config/pdp11/pdp11.opt, config/pdp11/pdp11-modes.def,
1764 config/pdp11/pdp11.h, config/avr/rtems.h, config/avr/avr-protos.h,
1765 config/avr/predicates.md, config/avr/constraints.md,
1766 config/avr/avr.md, config/avr/avr.c, config/avr/avr.opt,
1767 config/avr/avr.h, config/sol2-protos.h, config/dbxelf.h,
1768 config/lynx.opt, config/crx/crx.h, config/crx/crx-protos.h,
1769 config/crx/crx.md, config/crx/crx.c, config/crx/crx.opt,
1770 config/c4x/c4x-c.c, config/c4x/c4x.c, config/c4x/c4x.opt,
1771 config/c4x/c4x-modes.def, config/c4x/rtems.h,
1772 config/c4x/predicates.md, config/c4x/c4x.h,
1773 config/c4x/c4x-protos.h, config/c4x/c4x.md, config/kfreebsd-gnu.h,
1774 config/xtensa/predicates.md, config/xtensa/xtensa.c,
1775 config/xtensa/linux.h, config/xtensa/xtensa.h,
1776 config/xtensa/elf.h, config/xtensa/xtensa.md,
1777 config/xtensa/xtensa.opt, config/xtensa/constraints.md,
1778 config/xtensa/xtensa-protos.h, config/dbx.h,
1779 config/stormy16/predicates.md, config/stormy16/stormy16.md,
1780 config/stormy16/stormy16.c, config/stormy16/stormy16.opt,
1781 config/stormy16/stormy16.h, config/stormy16/stormy16-protos.h,
1782 config/host-solaris.c, config/fr30/fr30.h,
1783 config/fr30/predicates.md, config/fr30/fr30-protos.h,
1784 config/fr30/fr30.md, config/fr30/fr30.c, config/fr30/fr30.opt,
1785 config/vxworksae.h, config/sol2-c.c, config/lynx.h,
1786 config/m68hc11/m68hc11-protos.h, config/m68hc11/predicates.md,
1787 config/m68hc11/m68hc11.md, config/m68hc11/m68hc11.c,
1788 config/m68hc11/m68hc11.opt, config/m68hc11/m68hc11.h,
1789 config/m68hc11/m68hc12.h, config/openbsd-oldgas.h,
1790 config/host-linux.c, config/interix3.h, config/cris/cris.c,
1791 config/cris/predicates.md, config/cris/linux.h,
1792 config/cris/cris.h, config/cris/aout.h, config/cris/cris.md,
1793 config/cris/linux.opt, config/cris/cris.opt, config/cris/elf.opt,
1794 config/cris/aout.opt, config/cris/cris-protos.h,
1795 config/vxworks-dummy.h, config/netbsd.h, config/netbsd-elf.h,
1796 config/iq2000/iq2000.h, config/iq2000/predicates.md,
1797 config/iq2000/iq2000-protos.h, config/iq2000/iq2000.md,
1798 config/iq2000/iq2000.c, config/iq2000/iq2000.opt,
1799 config/host-darwin.c, config/mt/mt.md, config/mt/mt.c,
1800 config/mt/mt.opt, config/mt/t-mt, config/mt/mt.h,
1801 config/mt/mt-protos.h, config/svr4.h, config/host-darwin.h,
1802 config/chorus.h, config/mn10300/mn10300.c,
1803 config/mn10300/mn10300.opt, config/mn10300/predicates.md,
1804 config/mn10300/mn10300.h, config/mn10300/linux.h,
1805 config/mn10300/constraints.md, config/mn10300/mn10300-protos.h,
1806 config/mn10300/mn10300.md, config/ia64/predicates.md,
1807 config/ia64/itanium1.md, config/ia64/unwind-ia64.h,
1808 config/ia64/ia64-c.c, config/ia64/sync.md, config/ia64/ia64.c,
1809 config/ia64/itanium2.md, config/ia64/ia64.h, config/ia64/vect.md,
1810 config/ia64/freebsd.h, config/ia64/ia64.md,
1811 config/ia64/ia64-modes.def, config/ia64/constraints.md,
1812 config/ia64/hpux.h, config/ia64/ia64-protos.h, config/windiss.h,
1813 config/gofast.h, config/rtems.h, config/sol2-10.h,
1814 config/m68k/predicates.md, config/m68k/m68k.md,
1815 config/m68k/linux.h, config/m68k/m68k-modes.def,
1816 config/m68k/print-sysroot-suffix.sh, config/m68k/m68k-protos.h,
1817 config/m68k/coff.h, config/m68k/m68k-none.h, config/m68k/ieee.opt,
1818 config/m68k/openbsd.h, config/m68k/m68k-aout.h,
1819 config/m68k/m68k.opt, config/m68k/m68020-elf.h,
1820 config/m68k/m68kelf.h, config/m68k/m68k-devices.def,
1821 config/m68k/uclinux-oldabi.h, config/m68k/m68k.c,
1822 config/m68k/constraints.md, config/m68k/rtemself.h,
1823 config/m68k/netbsd-elf.h, config/m68k/m68k.h,
1824 config/m68k/uclinux.h, config/rs6000/power4.md,
1825 config/rs6000/host-darwin.c, config/rs6000/6xx.md,
1826 config/rs6000/linux.h, config/rs6000/eabi.h,
1827 config/rs6000/aix41.opt, config/rs6000/xcoff.h,
1828 config/rs6000/secureplt.h, config/rs6000/linuxspe.h,
1829 config/rs6000/eabialtivec.h, config/rs6000/8540.md,
1830 config/rs6000/darwin8.h, config/rs6000/kaos-ppc.h,
1831 config/rs6000/windiss.h, config/rs6000/603.md,
1832 config/rs6000/aix41.h, config/rs6000/cell.md,
1833 config/rs6000/mpc.md, config/rs6000/aix43.h, config/rs6000/beos.h,
1834 config/rs6000/gnu.h, config/rs6000/rtems.h, config/rs6000/aix.opt,
1835 config/rs6000/darwin.md, config/rs6000/darwin64.h,
1836 config/rs6000/default64.h, config/rs6000/7xx.md,
1837 config/rs6000/darwin.opt, config/rs6000/spe.md,
1838 config/rs6000/rs6000.opt, config/rs6000/rs6000-c.c,
1839 config/rs6000/rios2.md, config/rs6000/linuxaltivec.h,
1840 config/rs6000/7450.md, config/rs6000/linux64.h,
1841 config/rs6000/constraints.md, config/rs6000/440.md,
1842 config/rs6000/darwin.h, config/rs6000/host-ppc64-darwin.c,
1843 config/rs6000/rs6000.c, config/rs6000/aix52.h,
1844 config/rs6000/rs6000.h, config/rs6000/power6.md,
1845 config/rs6000/predicates.md, config/rs6000/altivec.md,
1846 config/rs6000/aix64.opt, config/rs6000/rios1.md,
1847 config/rs6000/rs6000-modes.def, config/rs6000/rs64.md,
1848 config/rs6000/eabisim.h, config/rs6000/sysv4le.h,
1849 config/rs6000/darwin7.h, config/rs6000/dfp.md,
1850 config/rs6000/linux64.opt, config/rs6000/sync.md,
1851 config/rs6000/vxworksae.h, config/rs6000/power5.md,
1852 config/rs6000/lynx.h, config/rs6000/biarch64.h,
1853 config/rs6000/rs6000.md, config/rs6000/sysv4.opt,
1854 config/rs6000/eabispe.h, config/rs6000/e500.h,
1855 config/rs6000/freebsd.h, config/rs6000/rs6000-protos.h,
1856 config/rs6000/netbsd.h, config/rs6000/e500-double.h,
1857 config/rs6000/aix.h, config/rs6000/vxworks.h,
1858 config/rs6000/40x.md, config/rs6000/aix51.h,
1859 config/rs6000/sysv4.h, config/arc/arc-protos.h, config/arc/arc.md,
1860 config/arc/arc.c, config/arc/arc.opt, config/arc/arc-modes.def,
1861 config/arc/arc.h, config/mcore/mcore-elf.h,
1862 config/mcore/mcore-protos.h, config/mcore/predicates.md,
1863 config/mcore/mcore.md, config/mcore/mcore.c,
1864 config/mcore/mcore.opt, config/mcore/mcore.h,
1865 config/mcore/mcore-pe.h, config/darwin.c, config/freebsd-nthr.h,
1866 config/score/predicates.md, config/score/score-version.h,
1867 config/score/score-protos.h, config/score/misc.md,
1868 config/score/elf.h, config/score/score.c, config/score/mac.md,
1869 config/score/score7.md, config/score/score.h,
1870 config/score/score-conv.h, config/score/score-mdaux.c,
1871 config/score/score.md, config/score/score.opt,
1872 config/score/score-modes.def, config/score/score-mdaux.h,
1873 config/score/mul-div.S, config/arm/uclinux-elf.h,
1874 config/arm/semi.h, config/arm/ecos-elf.h, config/arm/arm1020e.md,
1875 config/arm/symbian.h, config/arm/linux-elf.h,
1876 config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
1877 config/arm/elf.h, config/arm/aout.h, config/arm/arm.c,
1878 config/arm/thumb2.md, config/arm/vec-common.md, config/arm/coff.h,
1879 config/arm/strongarm-pe.h, config/arm/arm.h,
1880 config/arm/cortex-a8-neon.md, config/arm/semiaof.h,
1881 config/arm/cortex-a8.md, config/arm/uclinux-eabi.h,
1882 config/arm/arm-modes.def, config/arm/linux-eabi.h,
1883 config/arm/rtems-elf.h, config/arm/neon-schedgen.ml,
1884 config/arm/arm-cores.def, config/arm/arm-protos.h,
1885 config/arm/vfp.md, config/arm/aof.h, config/arm/linux-gas.h,
1886 config/arm/wince-pe.h, config/arm/neon.md,
1887 config/arm/constraints.md, config/arm/neon.ml,
1888 config/arm/xscale-elf.h, config/arm/strongarm-coff.h,
1889 config/arm/arm.opt, config/arm/arm926ejs.md,
1890 config/arm/predicates.md, config/arm/iwmmxt.md,
1891 config/arm/arm_neon.h, config/arm/unknown-elf.h,
1892 config/arm/kaos-arm.h, config/arm/bpabi.h, config/arm/pe.opt,
1893 config/arm/neon-testgen.ml, config/arm/arm.md,
1894 config/arm/xscale-coff.h, config/arm/pe.c,
1895 config/arm/arm-generic.md, config/arm/pe.h,
1896 config/arm/kaos-strongarm.h, config/arm/freebsd.h,
1897 config/arm/neon-docgen.ml, config/arm/netbsd.h, config/arm/fpa.md,
1898 config/arm/strongarm-elf.h, config/arm/cirrus.md,
1899 config/arm/netbsd-elf.h, config/arm/vxworks.h,
1900 config/arm/neon-gen.ml, config/kaos.h, config/darwin-driver.c,
1901 config/pa/predicates.md, config/pa/pa64-hpux.h,
1902 config/pa/pa-hpux.opt, config/pa/som.h, config/pa/pa-hpux1010.opt,
1903 config/pa/pa-hpux1111.opt, config/pa/pa-pro-end.h,
1904 config/pa/elf.h, config/pa/fptr.c, config/pa/pa64-linux.h,
1905 config/pa/pa.md, config/pa/pa.opt, config/pa/pa-hpux.h,
1906 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h,
1907 config/pa/pa-hpux1010.h, config/pa/pa-protos.h,
1908 config/pa/pa-osf.h, config/pa/pa-hpux1111.h, config/pa/pa-64.h,
1909 config/pa/milli64.S, config/pa/pa.c, config/pa/pa-linux.h,
1910 config/pa/pa.h, config/pa/pa32-linux.h, config/pa/pa64-hpux.opt,
1911 config/pa/pa64-regs.h, config/pa/pa-modes.def,
1912 config/pa/constraints.md, config/darwin9.h, config/mips/4100.md,
1913 config/mips/linux.h, config/mips/elfoabi.h, config/mips/elf.h,
1914 config/mips/sdb.h, config/mips/windiss.h, config/mips/rtems.h,
1915 config/mips/3000.md, config/mips/iris5.h, config/mips/5000.md,
1916 config/mips/7000.md, config/mips/9000.md, config/mips/4600.md,
1917 config/mips/linux64.h, config/mips/elforion.h,
1918 config/mips/constraints.md, config/mips/generic.md,
1919 config/mips/predicates.md, config/mips/4300.md,
1920 config/mips/mips-ps-3d.md, config/mips/iris.h, config/mips/24k.md,
1921 config/mips/mips.md, config/mips/mips.opt, config/mips/4k.md,
1922 config/mips/5k.md, config/mips/vr4120-div.S,
1923 config/mips/openbsd.h, config/mips/iris6.h, config/mips/4000.md,
1924 config/mips/mips-protos.h, config/mips/6000.md,
1925 config/mips/mips.c, config/mips/mips.h, config/mips/r3900.h,
1926 config/mips/74k.md, config/mips/netbsd.h, config/mips/vxworks.h,
1927 config/mips/mips-modes.def, config/mips/vr.h,
1928 config/soft-fp/t-softfp, config/openbsd.h, config/ptx4.h,
1929 config/freebsd-spec.h, config/vax/vax.c, config/vax/openbsd.h,
1930 config/vax/vax.h, config/vax/elf.h, config/vax/vax.md,
1931 config/vax/bsd.h, config/vax/vax.opt, config/vax/vax-modes.def,
1932 config/vax/openbsd1.h, config/vax/netbsd.h,
1933 config/vax/vax-protos.h, config/vax/netbsd-elf.h,
1934 config/vax/vaxv.h, config/vax/ultrix.h, config/freebsd.h,
1935 config/h8300/rtems.h, config/h8300/predicates.md,
1936 config/h8300/h8300.c, config/h8300/h8300.h, config/h8300/elf.h,
1937 config/h8300/h8300.md, config/h8300/h8300.opt,
1938 config/h8300/coff.h, config/h8300/h8300-protos.h,
1939 config/v850/v850.md, config/v850/predicates.md,
1940 config/v850/v850-c.c, config/v850/v850.c, config/v850/v850.opt,
1941 config/v850/v850.h, config/v850/v850-protos.h, config/vxworks.c,
1942 config/knetbsd-gnu.h, config/sol2-6.h, config/vxworks.h,
1943 config/mmix/mmix.h, config/mmix/predicates.md,
1944 config/mmix/mmix-protos.h, config/mmix/mmix.md,
1945 config/mmix/mmix.c, config/mmix/mmix.opt,
1946 config/mmix/mmix-modes.def, config/bfin/bfin.opt,
1947 config/bfin/rtems.h, config/bfin/bfin-modes.def,
1948 config/bfin/predicates.md, config/bfin/bfin-protos.h,
1949 config/bfin/bfin.c, config/bfin/bfin.h, config/bfin/bfin.md:
1952 2007-08-02 Richard Sandiford <richard@codesourcery.com>
1954 * emit-rtl.c (reset_used_decls): Rename to...
1955 (set_used_decls): ...this. Set the used flag rather than clearing it.
1956 (unshare_all_rtl_again): Update accordingly. Set flags on argument
1957 DECL_RTLs rather than resetting them.
1959 2007-08-02 Andreas Krebbel <krebbel1@de.ibm.com>
1961 * config/s390/s390.md ("*xordi3_cconly"): Change xr to xg.
1963 2007-08-01 Sandra Loosemore <sandra@codesourcery.com>
1965 * reload.c (find_reloads_address_part): Pass correct MEMREFLOC
1966 argument to find_reloads_address.
1968 2007-08-01 Daniel Jacobowitz <dan@codesourcery.com>
1970 PR tree-optimization/32919
1971 * tree-ssa-sccvn.c (visit_phi): Do not visit abnormal PHIs.
1972 * tree-ssa-coalesce.c (ssa_conflicts_dump): New.
1973 (coalesce_ssa_name): Call it.
1975 2007-08-01 Sandra Loosemore <sandra@codesourcery.com>
1976 David Ung <davidu@mips.com>
1978 * config/mips/mips16.S (__mips16_unordsf2, __mips16_floatunsisf): New.
1979 (__mips16_unorddf2, __mips16_floatunsidf): New.
1980 * config/mips/mips.c (mips_init_libfuncs): Add optab entries for
1982 * config/mips/t-libgcc-mips16 (LIB1ASMFUNCS): Add new functions.
1984 2007-08-01 Zdenek Dvorak <ook@ucw.cz>
1986 * tree-pretty-print.c (dump_generic_node): Dump OMP_SECTIONS_SWITCH.
1987 Display new operands of OMP_SECTIONS and OMP_CONTINUE.
1988 * tree.h (OMP_SECTIONS_CONTROL): New macro.
1989 (OMP_DIRECTIVE_P): Add OMP_SECTIONS_SWITCH.
1990 * omp-low.c (get_ws_args_for, determine_parallel_type,
1991 expand_omp_for_generic, expand_omp_for_static_nochunk,
1992 expand_omp_for_static_chunk, expand_omp_for, expand_omp_sections):
1993 Work with more precise CFG.
1994 (build_omp_regions_1): Handle OMP_SECTIONS_SWITCH.
1995 (lower_omp_sections): Emit OMP_SECTIONS_SWITCH. Add arguments to
1997 * tree-gimple.c (is_gimple_stmt): Handle OMP_SECTIONS_SWITCH.
1998 * gimple-low.c (lower_stmt): Ditto.
1999 * tree-inline.c (estimate_num_insns_1): Ditto.
2000 * tree.def (OMP_SECTIONS, OMP_CONTINUE): Added new operands.
2001 (OMP_SECTIONS_SWITCH): New.
2002 * tree-cfgcleanup.c (cleanup_omp_return): New.
2003 (cleanup_tree_cfg_bb): Call cleanup_omp_return.
2004 * tree-cfg.c (make_edges): Create back edges for OMP_CONTINUE
2005 and exit edge for OMP_FOR. Handle OMP_SECTIONS_SWITCH.
2006 (tree_redirect_edge_and_branch): Handle omp constructs.
2008 * fortran/trans-openmp.c (gfc_trans_omp_sections): Build OMP_SECTIONS
2009 with three arguments.
2011 2007-08-01 Zdenek Dvorak <ook@ucw.cz>
2013 * tree-cfg.c (tree_merge_blocks): Preserve loop exit phi nodes only
2016 2007-08-01 Zdenek Dvorak <ook@ucw.cz>
2018 * tree-ssa-threadupdate.c (thread_through_all_blocks): Record that
2019 the loop structures may need fixing.
2020 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
2022 (cleanup_tree_cfg_loop): Removed.
2023 (cleanup_tree_cfg): If loops need fixing, call repair_loop_structures.
2024 * tree-predcom.c (tree_predictive_commoning): Return TODO_cleanup_cfg
2025 instead of running cleanup_tree_cfg_loop.
2026 * cfgloop.h (LOOPS_NEED_FIXUP): New constant.
2027 * tree-flow.h (cleanup_tree_cfg_loop): Declaration removed.
2028 (tree_predictive_commoning): Declaration changed.
2029 * passes.c (execute_function_todo): Do not use cleanup_tree_cfg_loop.
2031 2007-08-01 Zdenek Dvorak <ook@ucw.cz>
2033 * doc/invoke.texi (l1-cache-size): Update documentation.
2034 (l2-cache-size): Document.
2035 * params.h (L2_CACHE_SIZE): New macro.
2036 * tree-ssa-loop-prefetch.c (L1_CACHE_SIZE_BYTES): Reflect
2037 that L1_CACHE_SIZE is in kB now.
2038 (L2_CACHE_SIZE_BYTES): New macro.
2039 (tree_ssa_prefetch_arrays): Show size in kB.
2040 * config/i386/i386.h (struct processor_costs): Add l1_cache_size
2041 and l2_cache_size fields.
2042 * config/i386/driver-i386.c (describe_cache): Detect cache size
2044 * config/i386/i386.c (size_cost, i386_cost, i486_cost,pentium_cost,
2045 pentiumpro_cost, geode_cost, k6_cost, athlon_cost, k8_cost,
2046 amdfam10_cost, pentium4_cost, nocona_cost, core2_cost,
2047 generic64_cost, generic32_cost): Add l1_cache_size and l2_cache_size.
2048 (override_options): Set l1-cache-size and l2-cache-size to default
2049 values if not specified otherwise.
2050 * params.def (PARAM_L1_CACHE_SIZE): Change to set in kB.
2051 (PARAM_L2_CACHE_SIZE): New.
2053 2007-08-01 Nigel Stephens <nigel@mips.com>
2054 David Ung <davidu@mips.com>
2055 Thiemo Seufer <ths@mips.com>
2056 Chris Dearman <chris@mips.com>
2057 Richard Sandiford <richard@codesourcery.com>
2059 * config.gcc (mips*-sde-elf*): New stanza.
2060 (mipsisa32-*-elf*, mipsisa32el-*-elf*, mipsisa32r2-*-elf*)
2061 (mipsisa32r2el-*-elf*, mipsisa64-*-elf*, mipsisa64el-*-elf*)
2062 (mipsisa64sb1-*-elf*, mipsisa64sb1el-*-elf*, mips-*-elf*)
2063 (mipsel-*-elf*, mips64-*-elf*, mips64el-*-elf*, mips64orion-*-elf*)
2064 (mips64orionel-*-elf*, mips*-*-rtems*, mips-wrs-windiss)
2065 (mipstx39-*-elf*, mipstx39el-*-elf*): Add mips/t-libgcc-mips16
2067 * config/mips/sde.h: New file.
2068 * config/mips/t-libgcc-mips16: Likewise.
2069 * config/mips/t-sde: Likewise.
2070 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Remove settings
2071 of _ABIN32, _ABI64, _ABIO32, _MIPS_SIM, _MIPS_SZLONG, _MIPS_SZPTR,
2072 _MIPS_FPSET and _MIPS_SZINT.
2073 * config/mips/iris.h (TARGET_OS_CPP_BUILTINS): Likewise.
2074 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Remove separate
2075 insertion of a default -mips option. Use MIPS_32BIT_OPTION_SPEC.
2076 * config/mips/t-isa3264 (LIB1ASMSRC, LIB1ASMFUNCS): Delete.
2077 * config/mips/t-r3900 (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
2078 * config/mips/t-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
2079 * config/mips/mips.h (TARGET_CPU_CPP_BUITINS): Define _ABIO32,
2080 _ABIN32, _ABI64, _ABIO64, _MIPS_SIM, _MIPS_SZINT, _MIPS_SZLONG,
2081 _MIPS_SZPTR and _MIPS_FPSET.
2082 (MIPS_ISA_LEVEL_SPEC): Inject the default -mips option if no
2083 architecture is specified.
2084 (MIPS_32BIT_OPTION_SPEC): New macro.
2086 2007-07-31 Dan Hipschman <dsh@google.com>
2088 * gcc.c (end_going_arg): New function.
2089 (do_spec_2): Use it.
2090 (do_spec_1): Use it.
2092 2007-07-31 H.J. Lu <hongjiu.lu@intel.com>
2094 * ddg.c (add_cross_iteration_register_deps): Declare bb_info
2095 only if ENABLE_CHECKING is defined.
2097 2007-07-31 Kenneth Zadeck <zadeck@naturalbridge.com>
2099 * df.h (DF_RU, DF_RU_BB_INFO, df_ru_bb_info, df_ru,
2100 df_ru_add_problem, df_ru_get_bb_info): Removed.
2101 (DF_RD, DF_UREC, DF_CHAIN, DF_NOTE): Renumbered.
2102 * df-problems.c (df_ru_problem_data, df_ru_set_bb_info,
2103 df_ru_free_bb_info, df_ru_alloc,
2104 df_ru_bb_local_compute_process_def,
2105 df_ru_bb_local_compute_process_use, df_ru_bb_local_compute,
2106 df_ru_local_compute, df_ru_init_solution, df_ru_confluence_n,
2107 df_ru_transfer_function, df_ru_free, df_ru_start_dump,
2108 df_ru_top_dump, df_ru_bottom_dump, df_problem problem_RU,
2109 df_ru_add_problem): Removed.
2111 2007-07-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2114 * pa.md (casesi32): Use match_scratch. Revise insn condition.
2115 (casesi32p, casesi64p): Likewise.
2116 (casesi): Adjust for above.
2118 2007-07-31 Richard Sandiford <richard@codesourcery.com>
2120 * mode-switching.c (create_pre_exit): Don't search past calls.
2122 2007-07-31 Sandra Loosemore <sandra@codesourcery.com>
2124 * config/mips/mips.h (ISA_HAS_SYNCI): Add !TARGET_MIPS16 test.
2126 2007-07-31 Revital Eres <eres@il.ibm.com>
2128 * ddg.c (add_deps_for_def): Rename to...
2129 (add_cross_iteration_register_deps): This. Change implementation
2130 to use only reaching def and def-use chains to construct the
2131 inter loop dependencies.
2132 (add_deps_for_use): Remove function.
2133 (build_inter_loop_deps): Call add_cross_iteration_register_deps
2134 function to build the inter loop dependencies.
2135 * modulo-sched.c (sms_schedule): Build only
2136 reaching def and def-use chains for the propose of the ddg
2139 2007-07-31 Julian Brown <julian@codesourcery.com>
2141 * config/arm/neon.md (vec_set<mode>_internal, vec_setv2di_internal):
2142 New define_insns. Use correct RTL.
2143 (vec_set<mode>): Write as expander.
2145 2007-07-31 Razya Ladelsky <razya@il.ibm.com>
2147 * matrix-reorg.c (analyze_matrix_allocation_site): Avoid referring
2148 to an unallocated space.
2150 2007-07-30 Jan Sjodin <jan.sjodin@amd.com>
2153 (split_constant_offset): Enable split_constant_offset to extract
2154 constants from other statements.
2155 * tree-vect-transform.c
2156 (vect_create_addr_base_for_vector_ref): Generate data_ref_base
2157 to a temp var. Force base_offset to be simple.
2159 2007-07-30 Seongbae Park <seongbae.park@gmail.com>
2161 * df-scan.c (df_scan_verify): Remove artificial limit on
2162 the number of blocks for verification.
2163 * df-problems.c (df_lr_bb_local_compute, df_simulate_find_defs,
2164 df_simulate_defs): Avoid unnecessary insn checking for defs.
2166 2007-07-29 Mark Mitchell <mark@codesourcery.com>
2168 * config/m68k/lb1sf68.asm (FUNC): New macro.
2170 (__udivsi3): Likewise.
2171 (__divsi3): Likewise.
2172 (__umodsi3): Likewise.
2173 (__modsi3): Likewise.
2174 (__subdf3): Likewise.
2175 (__adddf3): Likewise.
2176 (__muldf3): Likewise.
2177 (__divdf3): Likewise.
2178 (__negdf2): Likewise.
2179 (__cmpdf2): Likewise.
2180 (__subsf3): Likewise.
2181 (__addsf3): Likewise.
2182 (__mulsf3): Likewise.
2183 (__divsf3): Likewise.
2184 (__negsf2): Likewise.
2185 (__cmpsf2): Likewise.
2186 (__eqdf2): Likewise.
2187 (__nedf2): Likewise.
2188 (__gtdf2): Likewise.
2189 (__gedf2): Likewise.
2190 (__ltdf2): Likewise.
2191 (__ledf2): Likewise.
2192 (__eqsf2): Likewise.
2193 (__nesf2): Likewise.
2194 (__gtsf2): Likewise.
2195 (__gesf2): Likewise.
2196 (__ltsf2): Likewise.
2197 (__lesf2): Likewise.
2199 2007-07-30 Ollie Wild <aaw@google.com>
2201 * c-ppoutput.c (print_lines_directives_only): New function.
2202 (scan_translation_unit_directives_only): New function.
2203 (preprocess_file): Add call to scan_translation_unit_directives_only.
2204 * c-opts.c (c_common_handle_option): Add OPT_fdirectives_only.
2205 (sanitize_cpp_opts): Add default flag_dump_macros setting for
2206 -fdirectives-only. Add errors for -fdirectives-only conflict with
2207 -Wunused-macros and -traditional.
2208 (finish_options): Add builtin macro initialization for
2209 -fdirectives-only + -fpreprocessed.
2210 * c.opt (fdirectives-only): New.
2211 * doc/cppopts.texi (fdirectives-only): New.
2213 2007-07-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2215 * alias.c (record_set, memory_modified_1): Constify.
2216 * bt-load.c (note_btr_set): Likewise.
2217 * caller-save.c (mark_set_regs, add_stored_regs): Likewise.
2218 * combine.c (set_nonzero_bits_and_sign_copies,
2219 expand_field_assignment, record_dead_and_set_regs_1,
2220 use_crosses_set_p, reg_dead_at_p_1, can_combine_p,
2221 likely_spilled_retval_1): Likewise.
2222 * config/frv/frv.c (frv_registers_update_1, frv_io_check_address,
2223 frv_io_handle_set): Likewise.
2224 * config/mips/mips.c (mips_sim_record_set,
2225 vr4130_true_reg_dependence_p_1): Likewise.
2226 * config/mt/mt.c (insn_dependent_p_1): Likewise.
2227 * config/s390/s390.c (s390_reg_clobbered_rtx): Likewise.
2228 * config/sh/sh.c (flow_dependent_p_1): Likewise.
2229 * cselib.c (cselib_invalidate_rtx_note_stores): Likewise.
2230 * dce.c (mark_nonreg_stores_1, mark_nonreg_stores_2): Likewise.
2231 * ddg.c (mark_mem_store): Likewise.
2232 * df-problems.c (df_urec_mark_reg_change): Likewise.
2233 * function.c (update_epilogue_consts): Likewise.
2234 * gcse.c (record_set_info, record_last_set_info,
2235 mems_conflict_for_gcse_p, canon_list_insert, reg_set_info,
2236 reg_clear_last_set): Likewise.
2237 * global.c (mark_reg_store, mark_reg_clobber, reg_becomes_live):
2239 * jump.c (reversed_comparison_code_parts): Likewise.
2240 * local-alloc.c (validate_equiv_mem_from_store, no_equiv,
2241 reg_is_set): Likewise.
2242 * loop-iv.c (mark_altered): Likewise.
2243 * mode-switching.c (reg_becomes_live): Likewise.
2244 * optabs.c (no_conflict_move_test): Likewise.
2245 * postreload-gcse.c (record_last_set_info, find_mem_conflicts):
2247 * postreload.c (reload_combine_note_store, move2add_note_store):
2249 * regmove.c (flags_set_1): Likewise.
2250 * regrename.c (note_sets, kill_clobbered_value, kill_set_value):
2252 * reload1.c (mark_not_eliminable, forget_old_reloads_1):
2254 * resource.c (update_live_status): Likewise.
2255 * rtl.h (set_of, note_stores): Likewise.
2256 * rtlanal.c (set_of_1, parms_set, struct set_of_data, set_of,
2257 note_stores, parms_set): Likewise.
2258 * sched-rgn.c (sets_likely_spilled_1): Likewise.
2259 * stack-ptr-mod.c (notice_stack_pointer_modification_1):
2261 * var-tracking.c (count_stores, add_stores): Likewise.
2263 2007-07-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2265 * alias.c (mems_in_disjoint_alias_sets_p,
2266 fixed_scalar_and_varying_struct_p, aliases_everything_p,
2267 nonoverlapping_component_refs_p, nonoverlapping_memrefs_p,
2268 write_dependence_p, mems_in_disjoint_alias_sets_p,
2269 read_dependence, true_dependence, canon_true_dependence,
2270 anti_dependence, output_dependence): Constify.
2271 * combine.c (extended_count): Likewise.
2272 * cse.c (cse_rtx_varies_p, hash_rtx, exp_equiv_p): Likewise.
2273 * cselib.c (get_value_hash, references_value_p,
2274 cselib_reg_set_mode, cselib_rtx_varies_p): Likewise.
2275 * cselib.h (cselib_reg_set_mode, references_value_p): Likewise.
2276 * emit-rtl.c (mem_expr_equal_p, active_insn_p): Likewise.
2277 * function.c (contains, prologue_epilogue_contains,
2278 sibcall_epilogue_contains): Likewise.
2279 * jump.c (simplejump_p, condjump_p, condjump_in_parallel_p,
2280 pc_set, any_uncondjump_p, any_condjump_p, onlyjump_p,
2281 only_sets_cc0_p, sets_cc0_p, rtx_renumbered_equal_p, true_regnum,
2282 reg_or_subregno): Likewise.
2283 * recog.c (asm_noperands): Likewise.
2284 * reload1.c (function_invariant_p): Likewise.
2285 * rtl.h (mem_expr_equal_p, active_insn_p, rtx_varies_p,
2286 rtx_addr_varies_p, asm_noperands, exp_equiv_p, hash_rtx,
2287 condjump_p, any_condjump_p, any_uncondjump_p, pc_set,
2288 simplejump_p, onlyjump_p, only_sets_cc0_p, sets_cc0_p,
2289 true_regnum, reg_or_subregno, condjump_in_parallel_p,
2290 extended_count, prologue_epilogue_contains,
2291 sibcall_epilogue_contains, function_invariant_p, true_dependence,
2292 canon_true_dependence, read_dependence, anti_dependence,
2293 output_dependence): Likewise.
2294 * rtlanal.c (rtx_varies_p, rtx_addr_varies_p): Likewise.
2296 2007-07-30 Julian Brown <julian@codesourcery.com>
2298 * config/arm/neon.md (V_ext): New mode attribute.
2299 (neon_vget_lane<mode>): Replace with define_expand.
2300 (neon_vget_lane<mode>_sext_internal)
2301 (neon_vget_lane<mode>_zext_internal): New define_insns for double
2302 and quad precision vectors.
2303 (neon_vget_lanedi): Add bounds check. Remove dead comment.
2304 * config/arm/neon.ml (get_lane): Make 32-bit get-lane intrinsics
2305 have typeless 32-bit result.
2307 2007-07-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
2310 * tree-affine.h (aff_tree): The type of rest is sizetype for types
2312 * tree-affine.c (aff_combination_scale): If type is a pointer type,
2313 use sizetype for rest.
2314 (aff_combination_add_elt): Likewise. Don't specialize pointer types.
2315 (aff_combination_convert): Don't convert rest for pointer types.
2317 2007-07-28 Daniel Berlin <dberlin@dberlin.org>
2319 * Makefile.in (tree-ssa-alias.o): Add alloc-pool.h
2321 * tree-ssa-alias.c: Add alloc-pool.h.
2322 (init_alias_info): Free alias_bitmap_obstack.
2323 (delete_alias_info): Call delete_mem_ref_stats.
2324 (get_mem_sym_stats_for): Use alloc_pool.
2325 (init_mem_ref_stats): Do not delete mem_ref_stats here.
2326 (delete_mem_sym_stats): Removed.
2328 2007-07-29 Sebastian Pop <sebpop@gmail.com>
2330 * tree-data-ref.c (add_multivariate_self_dist): Parametric access
2331 functions cannot be represented as classical distance vectors.
2333 2007-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2335 * attribs.c (hash_attr, eq_attr, init_attributes): Constify.
2336 * builtins.c (validate_arg, builtin_mathfn_code,
2337 validate_arglist): Likewise.
2338 * calls.c (call_expr_flags): Likewise.
2339 * combine.c (reg_nonzero_bits_for_combine,
2340 reg_num_sign_bit_copies_for_combine, get_last_value,
2341 reg_truncated_to_mode): Likewise.
2342 * emit-rtl.c (subreg_lowpart_p): Likewise.
2343 * expr.c (highest_pow2_factor_for_target,
2344 categorize_ctor_elements_1, categorize_ctor_elements,
2345 count_type_elements, contains_packed_reference,
2346 highest_pow2_factor, highest_pow2_factor_for_target): Likewise.
2347 * fold-const.c (may_negate_without_overflow_p, int_const_binop,
2348 fold_convertible_p, operand_equal_p, tree_swap_operands_p,
2349 native_encode_int, native_encode_real, native_encode_complex,
2350 native_encode_vector, native_encode_expr, native_interpret_int,
2351 native_interpret_real, native_interpret_complex,
2352 native_interpret_vector, native_interpret_expr): Likewise.
2353 * function.c (use_register_for_decl): Likewise.
2354 * gimplify.c (get_name): Likewise.
2355 * langhooks-def.h (lhd_return_null_const_tree): New.
2356 (LANG_HOOKS_GET_CALLEE_FNDECL): Use it.
2357 * langhooks.c (lhd_return_null_const_tree): New.
2358 * langhooks.h (lang_get_callee_fndecl): Constify.
2359 * output.h (constructor_static_from_elts_p): Likewise.
2360 * rtl-factoring.c (gen_symbol_ref_rtx_for_label): Likewise.
2361 * rtl.h (nonzero_bits, num_sign_bit_copies, truncated_to_mode,
2362 subreg_lowpart_p, noop_move_p, struct rtl_hooks): Likewise.
2363 * rtlanal.c (cached_nonzero_bits, nonzero_bits1,
2364 cached_num_sign_bit_copies, num_sign_bit_copies1, noop_move_p,
2365 nonzero_bits, num_sign_bit_copies, truncated_to_mode): Likewise.
2366 * rtlhooks-def.h (reg_nonzero_bits_general,
2367 reg_num_sign_bit_copies_general, reg_truncated_to_mode_general):
2369 * rtlhooks.c (reg_num_sign_bit_copies_general,
2370 reg_nonzero_bits_general, reg_truncated_to_mode_general):
2372 * stmt.c (warn_if_unused_value, is_body_block): Likewise.
2373 * stor-layout.c (mode_for_size_tree): Likewise.
2374 * tree-ssa-loop-im.c (memref_eq): Likewise.
2375 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): Likewise.
2376 * tree.c (contains_placeholder_p, type_list_equal,
2377 simple_cst_equal, get_callee_fndecl, operand_equal_for_phi_arg_p):
2379 * tree.h (tree_int_cst_sign_bit, may_negate_without_overflow_p,
2380 mode_for_size_tree, categorize_ctor_elements, count_type_elements,
2381 contains_placeholder_p, contains_packed_reference,
2382 get_callee_fndecl, operand_equal_for_phi_arg_p,
2383 warn_if_unused_value, is_body_block, native_encode_expr,
2384 native_interpret_expr, fold_convertible_p, operand_equal_p,
2385 int_const_binop, tree_swap_operands_p, builtin_mathfn_code,
2386 validate_arglist, simple_cst_equal, type_list_equal,
2387 use_register_for_decl, call_expr_flags, get_name,
2388 highest_pow2_factor): Likewise.
2389 (const_call_expr_arg_iterator_d,
2390 init_const_call_expr_arg_iterator, next_const_call_expr_arg,
2391 first_const_call_expr_arg, more_const_call_expr_args_p,
2392 FOR_EACH_CONST_CALL_EXPR_ARG): New.
2393 * varasm.c (constructor_static_from_elts_p): Constify.
2395 2007-07-28 Kazu Hirata <kazu@codesourcery.com>
2397 * cfglayout.c, config/arm/arm.c, config/arm/cortex-a8.md,
2398 config/arm/neon-schedgen.ml, config/arm/neon.ml,
2399 config/arm/vec-common.md, config/ia64/div.md, cselib.c,
2400 df-core.c, df.h, dominance.c, optabs.c, opts.c, reg-stack.c,
2401 regstat.c, target.h, tree-ssa-live.c, tree-ssa-pre.c,
2402 tree-vect-transform.c, tree.def: Fix comment typos. Follow
2403 spelling conventions.
2404 * doc/invoke.texi: Follow spelling conventions.
2406 2007-07-29 Vladimir Yanovsky <yanov@il.ibm.com>
2407 Revital Eres <eres@il.ibm.com>
2409 * modulo-sched.c (sms_schedule): Avoid loops which includes
2410 auto-increment instructions.
2412 2007-07-28 Richard Guenther <rguenther@suse.de>
2415 * fold-const.c (fold_cond_expr_with_comparison): Convert
2416 operand zero of MIN/MAX_EXPR to correct type.
2418 2007-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2420 * calls.c (special_function_p, setjmp_call_p, alloca_call_p,
2421 flags_from_decl_or_type): Constify.
2422 * gcc.c (do_spec_1): Likewise.
2423 * print-tree.c (dump_addr, print_node_brief): Likewise.
2424 * tree-cfg.c (stmt_starts_bb_p, is_ctrl_stmt, computed_goto_p,
2425 simple_goto_p, tree_can_make_abnormal_goto, stmt_starts_bb_p,
2426 tree_purge_all_dead_eh_edges): Likewise.
2427 * tree-flow.h (is_ctrl_stmt, computed_goto_p, simple_goto_p,
2428 tree_can_make_abnormal_goto, tree_purge_all_dead_eh_edges):
2430 * tree.c (expr_location, expr_has_location, expr_locus,
2431 expr_filename, expr_lineno, get_inner_array_type,
2432 fields_compatible_p): Likewise.
2433 * tree.h (get_inner_array_type, fields_compatible_p,
2434 expr_location, expr_has_location, expr_locus, expr_filename,
2435 expr_lineno, dump_addr, print_node_brief, flags_from_decl_or_type,
2436 setjmp_call_p, alloca_call_p): Likewise.
2438 2007-07-28 Daniel Berlin <dberlin@dberlin.org>
2440 * timevar.def: Add TV_CALL_CLOBBER, TV_FLOW_SENSITIVE,
2441 TV_FLOW_INSENSITIVE.
2443 * tree-ssa-alias.c (compute_call_clobbered): Push/pop
2445 (compute_flow_sensitive_aliasing): Ditto for TV_FLOW_SENSITIVE.
2446 (compute_flow_insensitive_aliasing): Ditto for
2447 TV_FLOW_INSENSITIVE.
2449 2007-07-27 Jan Hubicka <jh@suse.cz>
2451 * config/i386/i386.c (register_move_cost): Remove accidentally comitted
2454 * attribs.c: Include hashtab.h
2455 (attribute_hash): New.
2456 (substring): New structure.
2457 (extract_attribute_substring, substring_hash, hash_attr, eq_attr):
2459 (init_attributes): Initialize attribute hash.
2460 (decl_attributes): Use attribute hash.
2461 * Makefile.in (attribs.c): Depend on hashtab.h.
2463 2007-07-27 Steve Ellcey <sje@cup.hp.com>
2465 * config/ia64/vect.md (vec_initv2si): Remove bad BIG_ENDIAN test.
2467 2007-07-27 Richard Sandiford <richard@codesourcery.com>
2469 * doc/invoke.texi (mdsp, mdspr2): Document the __mips_dsp,
2470 __mips_dspr2 and __mips_dsp_rev macros.
2471 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dsp_rev.
2473 2007-07-27 Douglas Gregor <doug.gregor@gmail.com>
2475 * c-common.h (enum rid): Add RID_DECLTYPE, update RID_LAST_CXX0X.
2477 2007-07-26 Kenneth Zadeck <zadeck@naturalbridge.com>
2481 * df-problems.c (df_create_unused_note): Removed do_not_gen parm
2482 and the updating of the live and do_not_gen sets.
2483 (df_note_bb_compute): Added updating of live and do_not_gen sets
2484 for regular defs so that the case of clobber inside conditional
2485 call is processed correctly.
2487 2007-07-27 Zdenek Dvorak <dvorakz@suse.cz>
2489 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Generate the
2490 operands with compatible type.
2492 2007-07-27 Richard Sandiford <richard@codesourcery.com>
2494 * expr.h (store_bit_field): Don't return a value.
2495 * expmed.c (check_predicate_volatile_ok): New function.
2496 (store_bit_field_1): New function, extracted from store_bit_field.
2497 Take a fallback_p argument and return true if the operation succeeded.
2498 Only use store_fixed_bit_field if fallback_p. Don't recompute
2499 mode_for_extraction; use op_mode instead. Try forcing memories
2500 into registers if the insv expander fails.
2501 (store_bit_field): Use store_bit_field_1 with fallback_p true.
2502 Don't return a value.
2503 (convert_extracted_bit_field): New function, extracted from
2505 (extract_bit_field_1): Likewise. Take a fallback_p argument
2506 and return NULL if the operation succeeded. Only use
2507 extract_fixed_bit_field if fallback_p. Only calculate one
2508 extraction mode. Combine code for extv and extzv. Try forcing
2509 memories into registers if the ext(z)v expander fails.
2510 (extract_bit_field): Use extract_bit_field_1 with fallback_p true.
2512 2007-07-27 Richard Sandiford <rsandifo@nildram.co.uk>
2514 * df.h (df_mw_hardreg): Turn df_ref_type and df_ref_flags
2516 (df_ref): Likewise. Put regno with other integer fields.
2518 2007-07-27 Richard Sandiford <rsandifo@nildram.co.uk>
2520 * df.h (df_mw_hardreg): Remove "loc" field.
2521 * df-scan.c (df_ref_record): Don't set it. Remove redundant
2523 * df-problems.c (df_whole_mw_reg_unused_p): New function,
2524 split out from df_set_unused_notes_for_mw. Return false for
2525 partial references. Assert that mw_reg is a REG when returning true.
2526 (df_set_unused_notes_for_mw): Use it. Use mw_reg instead of *loc.
2527 (df_whole_mw_reg_dead_p): New function, split out from
2528 df_set_dead_notes_for_mw. Return false for partial references.
2529 Assert that mw_reg is a REG when returning true.
2530 (df_set_dead_notes_for_mw): Use it. Use mw_reg instead of *loc.
2531 Remove redundant bitmap check.
2533 2007-07-26 H.J. Lu <hongjiu.lu@intel.com>
2535 * config/ia64/t-ia64 ($(T)crtbegin.o): Removed.
2536 ($(T)crtend.o): Likwise.
2537 ($(T)crtbeginS.o): Likwise.
2538 ($(T)crtendS.o): Likwise.
2539 ($(T)crtfastmath.o): Likwise.
2541 2007-07-26 Zdenek Dvorak <dvorakz@suse.cz>
2543 * dominance.c (dom_computed, n_bbs_in_dom_tree): Removed.
2544 * function.h (dom_computed, n_bbs_in_dom_tree): New macros.
2545 * basic-block.h (struct control_flow_graph): Added x_dom_computed
2546 and x_n_bbs_in_dom_tree fields.
2548 2007-07-26 Steve Ellcey <sje@cup.hp.com>
2550 PR tree-optimization/32087
2551 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
2552 Do not call scale_bbs_frequencies_int with prob of zero.
2554 2007-07-26 Julian Brown <julian@codesourcery.com>
2556 * config/arm/arm-protos.h (neon_lane_bounds, neon_const_bounds)
2557 (neon_element_bits): Add prototypes.
2558 * config/arm/arm.c (bounds_check, neon_lane_bounds)
2559 (neon_const_bounds, neon_element_bits): New functions.
2560 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_lanedi)
2561 (neon_vget_lanev2di, neon_vset_lane<mode>, neon_vset_lanedi)
2562 (neon_vset_lanev2di, neon_vdup_lane<mode>, neon_vdup_lanedi)
2563 (neon_vdup_lanev2di, neon_vcvt_n<mode>, neon_vmul_lane<mode>)
2564 (neon_vmull_lane<mode>, neon_vqdmull_lane<mode>)
2565 (neon_vqdmulh_lane<mode>, neon_vmla_lane<mode>)
2566 (neon_vmlal_lane<mode>, neon_vqdmlal_lane<mode>)
2567 (neon_vmls_lane<mode>, neon_vmlsl_lane<mode>)
2568 (neon_vqdmlsl_lane<mode>, neon_vext<mode>, neon_vshr_n<mode>)
2569 (neon_vshrn_n<mode>, neon_vqshrn_n<mode>, neon_vqshrun_n<mode>)
2570 (neon_vshl_n<mode>, neon_vshl_n<mode>, neon_vqshl_n<mode>)
2571 (neon_vqshlu_n<mode>, neon_vshll_n<mode>, neon_vsra_n<mode>)
2572 (neon_vsri_n<mode>, neon_vsli_n<mode>): Add bounds checks.
2574 2007-07-26 Nathan Froyd <froydnj@codesourcery.com>
2576 * config/vxworks.h (VXWORKS_LINK_SPEC): Fix typo.
2577 (HAVE_AS_GNU_ATTRIBUTE): Undefine.
2579 2007-07-26 Mark Shinwell <shinwell@codesourcery.com>
2580 Julian Brown <julian@codesourcery.com>
2582 * config/arm/arm.c (arm_mac_accumulator_is_mul_result): New.
2583 * config/arm/arm-protos.h (arm_mac_accumulator_is_mul_result): New.
2584 * config/arm/cortex-a8.md: New.
2585 * config/arm/cortex-a8-neon.md: New.
2586 * config/arm/neon-schedgen.ml: New.
2587 * config/arm/neon.md (vqh_mnem): New.
2589 (Is_float_mode): New.
2590 (Scalar_mul_8_16): New.
2592 (V_mode_nunits): New.
2593 (All instruction patterns): Annotate with neon_type attribute
2595 * config/arm/arm.md: Include cortex-a8.md.
2596 (insn): Add smmla, umaal, smlald, smlsld, clz, mrs, msr and xtab
2598 Annotate instruction patterns accordingly.
2599 (generic_sched): Do not use generic scheduling for Cortex-A8.
2600 (generic_vfp): Do not use generic VFP scheduling for Cortex-A8.
2602 2007-07-26 Daniel Jacobowitz <dan@codesourcery.com>
2604 * fold-const.c (fold_read_from_constant_string): Use
2606 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
2608 2007-07-26 Nick Clifton <nickc@redhat.com>
2610 * tree-ssa-operands.h: Change copyright header to refer to version
2611 3 of the GNU General Public License and to point readers at the
2612 COPYING3 file and the FSF's license web page.
2613 * tree-vrp.c, regrename.c, attribs.c, loop-unswitch.c,
2614 sched-ebb.c, fwprop.c, tree-loop-linear.c, dwarf2asm.c,
2615 tree-into-ssa.c, dwarf2asm.h, tree-ssa-loop-im.c, sbitmap.c,
2616 targhooks.c, tree-dump.c, tree-complex.c, sbitmap.h, targhooks.h,
2617 tree-dump.h, regstat.c, see.c, machmode.h, hooks.c, cgraphbuild.c,
2618 hooks.h, genrecog.c, tree-ssa-threadupdate.c, gen-protos.c,
2619 flags.h, rtlhooks.c, gencheck.c, tree-ssa-loop-niter.c,
2620 opts-common.c, dbgcnt.def, tree-pretty-print.c, tracer.c,
2621 gengtype.c, mkconfig.sh, gengtype.h, tree-ssa-loop-unswitch.c,
2622 cgraph.c, c-lex.c, cgraph.h, libfuncs.h, cfgloopmanip.c,
2623 rtl-error.c, optabs.c, postreload-gcse.c, tree-ssa-loop-manip.c,
2624 optabs.h, genmddeps.c, defaults.h, postreload.c, value-prof.c,
2625 tree-ssa-loop-ch.c, tree-tailcall.c, gengenrtl.c, value-prof.h,
2626 genopinit.c, tree.c, tree.h, reload.c, tree-pass.h, ipa-cp.c,
2627 reload.h, bitmap.c, bitmap.h, tree-scalar-evolution.c,
2628 c-config-lang.in, tree-scalar-evolution.h, target.h, cppspec.c,
2629 rtlanal.c, ddg.c, lambda-mat.c, mips-tdump.c, ddg.h,
2630 tree-phinodes.c, mips-tfile.c, pointer-set.c, pointer-set.h,
2631 diagnostic.c, final.c, diagnostic.h, builtins.c, genoutput.c,
2632 gcc.c, lists.c, tree-ssa-alias-warnings.c, gcc.h, cfghooks.c,
2633 input.h, gensupport.c, fold-const.c, cfghooks.h, insn-notes.def,
2634 gensupport.h, builtin-attrs.def, sync-builtins.def, params.c,
2635 cfgloopanal.c, params.h, graphds.c, omp-low.c, tree-ssa-dse.c,
2636 graphds.h, gcov.c, cfg.c, genextract.c, ipa-reference.c,
2637 genautomata.c, tree-ssa-uncprop.c, auto-inc-dec.c, toplev.c,
2638 tree-gimple.c, ipa-reference.h, vmsdbgout.c, errors.c, toplev.h,
2639 reorg.c, tree-gimple.h, tree-chrec.c, pretty-print.c, errors.h,
2640 real.c, tree-chrec.h, pretty-print.h, debug.c, real.h, genemit.c,
2641 omega.c, c-cppbuiltin.c, genmultilib, debug.h, omega.h,
2642 tree-ssa-sccvn.c, genconfig.c, tree-ssa-sccvn.h, cgraphunit.c,
2643 regs.h, df-scan.c, vec.c, hosthooks-def.h, vec.h,
2644 tree-ssa-copyrename.c, scan.c, builtin-types.def, tree-ssa-ccp.c,
2645 scan.h, mode-classes.def, haifa-sched.c, dominance.c, dojump.c,
2646 double-int.c, gcov-io.c, dbxout.c, builtins.def, double-int.h,
2647 dbxout.h, tree-ssa-loop-ivopts.c, df-core.c, mode-switching.c,
2648 gengtype-lex.l, tree-nomudflap.c, modulo-sched.c, c-objc-common.c,
2649 hosthooks.h, c-objc-common.h, caller-save.c, graph.c,
2650 ipa-pure-const.c, graph.h, c-format.c, cse.c, fix-header.c,
2651 c-format.h, web.c, tree-stdarg.c, genpeep.c, tree-stdarg.h,
2652 tree-ssa-math-opts.c, xcoffout.c, tree-ssa-dom.c, tree-nrv.c,
2653 xcoffout.h, tree-ssa-propagate.c, ipa-utils.c,
2654 tree-ssa-propagate.h, tree-ssa-alias.c, loop-init.c, ipa-utils.h,
2655 gimple-low.c, rtl.def, c-tree.h, tree-ssa-sink.c, ipa-inline.c,
2656 mkmap-symver.awk, machmode.def, c-pch.c, cfganal.c, global.c,
2657 alloc-pool.c, c-semantics.c, alloc-pool.h, jump.c, ifcvt.c,
2658 dwarf2out.c, expr.c, cfgbuild.c, tree-browser.c, dwarf2out.h,
2659 expr.h, longlong.h, opts.c, gcov-iov.c, opts.h, dwarf2.h,
2660 genattrtab.c, genconditions.c, genattr.c, optc-gen.awk,
2661 timevar.def, tree-ssa-loop-ivcanon.c, hard-reg-set.h, predict.c,
2662 tree-ssa-loop.c, host-default.c, predict.h, recog.c, dbgcnt.c,
2663 recog.h, dbgcnt.h, c-aux-info.c, tree-ssa-address.c, timevar.c,
2664 dse.c, lcm.c, tree-ssa-ifcombine.c, timevar.h, dse.h,
2665 matrix-reorg.c, tree-vn.c, treestruct.def, fp-test.c, c-decl.c,
2666 tree-eh.c, c-errors.c, c-pretty-print.c, regmove.c,
2667 lambda-trans.c, c-pretty-print.h, et-forest.c, et-forest.h,
2668 ebitmap.c, configure.ac, local-alloc.c, function.c, langhooks.c,
2669 ebitmap.h, cppdefault.c, tree-vectorizer.c, function.h,
2670 langhooks.h, print-rtl.c, cppdefault.h, df.h, tree-vectorizer.h,
2671 sdbout.c, stor-layout.c, sdbout.h, rtlhooks-def.h, read-rtl.c,
2672 gcse.c, ipa-type-escape.c, vmsdbg.h, alias.c, gengtype-parse.c,
2673 ipa-type-escape.h, domwalk.c, alias.h, tree-if-conv.c, profile.c,
2674 init-regs.c, domwalk.h, ipa.c, gccbug.in, tree-data-ref.c,
2675 loop-unroll.c, tree-data-ref.h, tree-flow-inline.h, tree-affine.c,
2676 mkmap-flat.awk, tree-affine.h, tree-vect-analyze.c, c.opt, ggc.h,
2677 opt-gather.awk, c-typeck.c, gimplify.c, coretypes.h, exec-tool.in,
2678 insn-addr.h, tree-ssa-phiopt.c, c-pragma.c, c-pragma.h, calls.c,
2679 tree-ssa-coalesce.c, genmodes.c, loop-doloop.c, predict.def,
2680 dwarf.h, tree.def, rtl-factoring.c, lower-subreg.c, expmed.c,
2681 bt-load.c, ggc-common.c, genflags.c, tree-dfa.c, except.c,
2682 coverage.c, except.h, emit-rtl.c, cfgexpand.c, coverage.h,
2683 stringpool.c, cselib.c, emit-rtl.h, tree-cfgcleanup.c, c-opts.c,
2684 cselib.h, cfgcleanup.c, simplify-rtx.c, tree-ssa-pre.c, explow.c,
2685 tree-ssa-live.c, tree-sra.c, tree-ssa-live.h, tree-predcom.c,
2686 loop-invariant.c, genpreds.c, protoize.c, opth-gen.awk, c-dump.c,
2687 lambda.h, loop-iv.c, tree-mudflap.c, ipa-prop.c, print-tree.c,
2688 tree-mudflap.h, tree-ssa-copy.c, ipa-prop.h, cfglayout.c,
2689 tree-ssa-forwprop.c, c-convert.c, cfglayout.h, common.opt,
2690 ggc-zone.c, ggc-page.c, c-omp.c, tree-ssa-dce.c, gencodes.c,
2691 varasm.c, tree-vect-patterns.c, libada-mk.in, tree-ssa-ter.c,
2692 sched-deps.c, tree-nested.c, c-ppoutput.c, tree-ssa.c,
2693 target-def.h, tree-ssa-loop-prefetch.c, lambda-code.c,
2694 omp-builtins.def, rtl.c, regclass.c, stab.def, intl.c, rtl.h,
2695 intl.h, tree-inline.c, conditions.h, tree-inline.h, integrate.c,
2696 sched-int.h, tree-iterator.c, integrate.h, tree-iterator.h,
2697 genchecksum.c, tree-optimize.c, output.h, tree-vect-transform.c,
2698 tree-object-size.c, combine.c, tree-outof-ssa.c, addresses.h,
2699 bb-reorder.c, stack-ptr-mod.c, resource.c, var-tracking.c,
2700 cfgloop.c, system.h, resource.h, ggc-none.c, tree-profile.c,
2701 cfgloop.h, c-gimplify.c, c-common.c, opt-functions.awk,
2702 tree-vect-generic.c, tree-flow.h, df-problems.c, scan-decls.c,
2703 c-common.h, config.gcc, reg-stack.c, tlink.c, main.c, stub-objc.c,
2704 fixproto, config.host, Makefile.in, gccspec.c, sched-rgn.c,
2705 vecprim.h, basic-block.h, tree-ssa-structalias.c,
2706 tree-ssa-structalias.h, c-common.def, sched-vis.c, tree-cfg.c,
2707 passes.c, genconstants.c, c-incpath.c, c-incpath.h,
2708 struct-equiv.c, c-parser.c, tree-ssa-reassoc.c, varray.c, sreal.c,
2709 varray.h, dfp.c, sreal.h, combine-stack-adj.c, dfp.h,
2710 reg-notes.def, cfgrtl.c, config.build, varpool.c, gengtype-yacc.y,
2711 stmt.c, dce.c, tree-browser.def, prefix.c, statistics.h,
2712 params.def, dce.h, c-lang.c, gcov-dump.c, prefix.h,
2713 tree-ssanames.c, collect2.c, collect2.h, tree-ssa-threadedge.c,
2714 convert.c, convert.h, langhooks-def.h, reload1.c,
2715 tree-ssa-operands.c: Likewise.
2717 2007-07-26 Jan Hubicka <jh@suse.cz>
2719 * tree-ssa-live.c: Include debug.h and flags.h.
2720 (mark_scope_block_unused): New function.
2721 (remove_unused_scope_block_p): New function.
2722 (remove_unused_locals): Remove unused blocks too.
2724 2007-07-25 Ian Lance Taylor <iant@google.com>
2726 * combine.c (combine_max_regno): Remove. Remove all uses.
2727 (struct reg_stat_struct): Rename from struct reg_stat.
2728 (reg_stat_type): Define, and declare VECs.
2729 (reg_stat): Change from pointer to VEC. Change all uses.
2730 (combine_split_insns): New static function.
2731 (try_combine, find_split_point): Call it instead of split_insns.
2733 2007-07-25 Zdenek Dvorak <dvorakz@suse.cz>
2735 * cfghooks.c (split_block): Fix the information about loop latch.
2737 2007-07-25 Zdenek Dvorak <dvorakz@suse.cz>
2739 * cfgloopmanip.c (fix_loop_structure): Call force_single_succ_latches.
2741 2007-07-25 Zdenek Dvorak <dvorakz@suse.cz>
2743 * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
2744 Scan the new edge for loop exit info.
2746 2007-07-25 Andreas Tobler <a.tobler@schweiz.org>
2748 * config/darwin.c: Include debug.h.
2750 2007-07-25 Steve Ellcey <sje@cup.hp.com>
2753 * tree-vect-patterns.c (vect_pattern_recog_1): Check for valid type.
2755 2007-07-25 Steve Ellcey <sje@cup.hp.com>
2757 * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle RFmode.
2758 (HARD_REGNO_MODE_OK): Ditto.
2759 (MODES_TIEABLE_P): Ditto.
2760 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
2761 (CLASS_MAX_NREGS): Ditto.
2762 * config/ia64/ia64.c (ia64_print_operand_address): Add R format.
2763 * config/ia64/ia64.md (divsf3_internal_thr): Removed.
2764 (divdf3_internal_thr): Removed.
2765 * config/ia64/div.md: New file.
2766 * config/ia64/constraints.md: Add H constraint.
2768 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2770 * sbitmap.c (sbitmap_verify_popcount, sbitmap_alloc_with_popcount,
2771 sbitmap_copy, sbitmap_copy_n, sbitmap_equal, sbitmap_empty_p,
2772 sbitmap_union_of_diff_cg, sbitmap_union_of_diff, sbitmap_not,
2773 sbitmap_difference, sbitmap_any_common_bits, sbitmap_a_and_b_cg,
2774 sbitmap_a_and_b, sbitmap_a_xor_b_cg, sbitmap_a_xor_b,
2775 sbitmap_a_or_b_cg, sbitmap_a_or_b, sbitmap_a_subset_b_p,
2776 sbitmap_a_or_b_and_c_cg, sbitmap_a_or_b_and_c,
2777 sbitmap_a_and_b_or_c_cg, sbitmap_a_and_b_or_c,
2778 sbitmap_first_set_bit, sbitmap_last_set_bit, dump_sbitmap,
2779 dump_sbitmap_file, debug_sbitmap, popcount_table,
2780 sbitmap_popcount): Constify.
2781 * sbitmap.h (const_sbitmap, const_sbitmap_ptr): New.
2782 (sbitmap_iterator, sbitmap_iter_init, dump_sbitmap,
2783 dump_sbitmap_file, sbitmap_copy, sbitmap_copy_n, sbitmap_equal,
2784 sbitmap_empty_p, sbitmap_union_of_diff, sbitmap_union_of_diff_cg,
2785 sbitmap_difference, sbitmap_not, sbitmap_a_or_b_and_c,
2786 sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c,
2787 sbitmap_a_and_b_or_c_cg, sbitmap_any_common_bits, sbitmap_a_and_b,
2788 sbitmap_a_and_b_cg, sbitmap_a_or_b, sbitmap_a_or_b_cg,
2789 sbitmap_a_xor_b, sbitmap_a_xor_b_cg, sbitmap_a_subset_b_p,
2790 sbitmap_first_set_bit, sbitmap_last_set_bit, debug_sbitmap,
2791 sbitmap_popcount, sbitmap_verify_popcount): Constify.
2793 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2795 * bitmap.c (hash_descriptor, eq_descriptor, bitmap_element_zerop,
2796 bitmap_copy, bitmap_clear_bit, popcount_table, bitmap_count_bits,
2797 bitmap_first_set_bit, bitmap_and, bitmap_and_into,
2798 bitmap_elt_copy, bitmap_and_compl, bitmap_and_compl_into,
2799 bitmap_compl_and_into, bitmap_elt_ior, bitmap_ior,
2800 bitmap_ior_into, bitmap_xor, bitmap_xor_into, bitmap_equal_p,
2801 bitmap_intersect_p, bitmap_intersect_compl_p,
2802 bitmap_ior_and_compl, bitmap_ior_and_compl_into,
2803 debug_bitmap_file, debug_bitmap, bitmap_print, bitmap_hash):
2805 * bitmap.h (bitmap_copy, bitmap_equal_p, bitmap_intersect_p,
2806 bitmap_intersect_compl_p, bitmap_count_bits, bitmap_and,
2807 bitmap_and_into, bitmap_and_compl, bitmap_and_compl_into,
2808 bitmap_compl_and_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
2809 bitmap_xor_into, bitmap_ior_and_compl, bitmap_ior_and_compl_into,
2810 debug_bitmap, debug_bitmap_file, bitmap_print,
2811 bitmap_first_set_bit, bitmap_hash, bmp_iter_set_init,
2812 bmp_iter_and_init, bmp_iter_and_compl_init): Likewise.
2814 2007-07-25 Daniel Berlin <dberlin@dberlin.org>
2816 * config/darwin.c (darwin_override_options): Additional fix for
2817 debug info formats that don't support var tracking.
2819 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2821 * cselib.c (entry_and_rtx_equal_p): Constify.
2822 * gengtype.c (output_mangled_typename, write_types, write_local):
2824 * gengtype.h (const_type_p): New.
2825 * see.c (eq_descriptor_extension, hash_descriptor_extension):
2827 * tlink.c (scan_linker_output): De-constify.
2828 * tree-ssa-loop-im.c (memref_eq): Constify.
2829 * tree-ssa-structalias.c (const_shared_bitmap_info_t): New.
2830 (shared_bitmap_hash, shared_bitmap_eq): Constify.
2832 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2834 * c-common.c (fname_as_string, c_type_hash): Constify.
2835 * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
2836 * cgraph.c (edge_hash, edge_eq): Likewise.
2837 * dwarf2out.c (decl_die_table_eq, decl_loc_table_eq): Likewise.
2838 * emit-rtl.c (mem_attrs_htab_eq, reg_attrs_htab_hash,
2839 reg_attrs_htab_eq): Likewise.
2840 * except.c (t2r_eq, t2r_hash, ttypes_filter_eq, ehl_hash, ehl_eq):
2842 * genautomata.c (const_reserv_sets_t, const_unit_decl_t,
2843 const_decl_t, const_state_t, const_automata_list_el_t): New.
2844 (first_out_arc, DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL,
2845 DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV,
2846 automaton_decl_hash, automaton_decl_eq_p, insn_decl_hash,
2847 insn_decl_eq_p, decl_hash, decl_eq_p, alt_state_cmp,
2848 reserv_sets_cmp, reserv_sets_eq, state_hash, state_eq_p,
2849 automata_list_hash, automata_list_eq_p, compare_states_for_equiv,
2850 compare_max_occ_cycle_nums, out_state_arcs_num,
2851 compare_transition_els_num, units_cmp, state_reservs_cmp):
2853 * genmodes.c (cmp_modes): Likewise.
2854 * ggc-common.c (saving_htab_hash, saving_htab_eq): Likewise.
2855 * gimplify.c (compare_case_labels): Likewise.
2856 * ipa-type-escape.c (get_name_of_type, type_brand_s): Likewise.
2857 * loop-unroll.c (si_info_hash, ve_info_hash): Likewise.
2858 * matrix-reorg.c (mtt_info_hash): Likewise.
2859 * postreload-gcse.c (hash_expr_for_htab, expr_equiv_p): Likewise.
2860 * rtl-factoring.c (const_p_hash_bucket, const_p_hash_elem): New.
2861 (htab_hash_bucket, htab_hash_elem): Constify.
2862 * tree-browser.c (TB_parent_eq): Likewise.
2863 * tree-scalar-evolution.c (hash_scev_info): Likewise.
2864 * tree-ssa-alias.c (sort_tags_by_id): Likewise.
2865 * tree-ssa-coalesce.c (const_coalesce_pair_p): New.
2866 (coalesce_pair_map_hash, coalesce_pair_map_eq, compare_pairs):
2868 * tree-ssa-dom.c (avail_expr_hash, avail_expr_eq): Likewise.
2869 * tree-ssa-pre.c (const_expr_pred_trans_t): New.
2870 (expr_pred_trans_hash, expr_pred_trans_eq): Constify.
2871 * tree-ssa-sccvn.c (const_vn_binary_op_t, const_vn_unary_op_t,
2872 const_vn_phi_t, const_vn_reference_op_t, const_vn_reference_t):
2874 (vn_reference_op_eq, vn_reference_hash, vn_reference_eq,
2875 vn_unary_op_hash, vn_unary_op_eq, vn_binary_op_hash,
2876 vn_binary_op_eq, vn_phi_hash, vn_phi_eq): Constify.
2877 * tree-ssa-threadupdate.c (redirection_data_hash,
2878 redirection_data_eq): Likewise.
2879 * tree-ssa-uncprop.c (equiv_hash, equiv_eq): Likewise.
2880 * tree-ssa.c (var_ann_eq): Likewise.
2881 * tree-vrp.c (compare_case_labels): Likewise.
2882 * tree.c (int_cst_hash_hash, int_cst_hash_eq,
2883 tree_map_base_marked_p, type_hash_marked_p, tree_check_failed,
2884 tree_not_check_failed, tree_class_check_failed,
2885 tree_range_check_failed, tree_not_class_check_failed,
2886 omp_clause_check_failed, omp_clause_range_check_failed,
2887 tree_contains_struct_check_failed, tree_operand_check_failed):
2889 * tree.h (tree_contains_struct_check_failed, tree_check_failed,
2890 tree_not_check_failed, tree_class_check_failed,
2891 tree_range_check_failed, tree_not_class_check_failed,
2892 tree_operand_check_failed, omp_clause_operand_check_failed,
2893 tree_operand_length): Likewise.
2894 * var-tracking.c (const_variable): New.
2895 (variable_htab_hash, variable_htab_eq): Constify.
2896 * varasm.c (const_desc_hash): Likewise.
2898 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2900 * expr.c (handled_component_p): Constify.
2901 * fold-const.c (fit_double_type): Likewise.
2902 * real.h (real_value_from_int_cst): Likewise.
2903 * tree-flow-inline.h (gimple_in_ssa_p,
2904 gimple_aliases_computed_p, gimple_addressable_vars,
2905 gimple_call_clobbered_vars, gimple_referenced_vars,
2906 gimple_global_var, gimple_nonlocal_all, gimple_var_anns,
2907 end_htab_p, end_referenced_vars_p, var_ann, function_ann,
2908 may_aliases, end_readonly_imm_use_p, has_zero_uses,
2909 has_single_use, single_imm_use, num_imm_uses, is_exec_stmt,
2910 is_label_stmt, is_global_var, phi_ssa_name_p,
2911 factoring_name_p, is_call_clobbered, tree_common_ann,
2912 op_iter_done, end_imm_use_stmt_p, end_imm_use_on_stmt_p,
2913 unmodifiable_var_p, array_ref_contains_indirect_ref,
2914 ref_contains_array_ref, lookup_subvars_for_var,
2915 var_can_have_subvars, overlap_subvar, gimple_ssa_operands,
2916 gimple_mem_ref_stats): Likewise.
2917 * tree-flow.h (tree_common_ann, var_ann, function_ann,
2918 may_aliases, is_exec_stmt, is_label_stmt,
2919 ref_contains_array_ref, array_ref_contains_indirect_ref,
2920 var_can_have_subvars, overlap_subvar, is_call_clobbered,
2921 unmodifiable_var_p): Likewise.
2922 * tree-gimple.c (is_gimple_min_invariant): Likewise.
2923 * tree-gimple.h (is_gimple_min_invariant): Likewise.
2924 * tree.c (type_hash_list, attribute_hash_list, tree_size,
2925 cst_and_fits_in_hwi, real_value_from_int_cst,
2926 build_real_from_int_cst, integer_zerop, integer_onep,
2927 integer_all_onesp, integer_pow2p, integer_nonzerop, tree_log2,
2928 tree_floor_log2, real_zerop, real_onep, real_twop,
2929 real_minus_onep, really_constant_p, purpose_member, chain_member,
2930 list_length, fields_length, int_size_in_bytes, bit_position,
2931 int_bit_position, byte_position, int_byte_position, expr_align,
2932 array_type_nelts, tree_node_structure,
2933 type_contains_placeholder_1, iterative_hash_pointer,
2934 is_attribute_with_length_p, is_attribute_p, check_qualified_type,
2935 tree_map_base_eq, type_hash_list, type_hash_eq,
2936 attribute_hash_list, type_num_arguments, tree_int_cst_equal,
2937 tree_int_cst_lt, tree_int_cst_compare, host_integerp,
2938 tree_low_cst, tree_int_cst_msb, tree_int_cst_sgn,
2939 simple_cst_list_equal, compare_tree_int, iterative_hash_expr,
2940 int_fits_type_p, get_containing_scope, decl_function_context,
2941 decl_type_context, omp_clause_operand_check_failed,
2942 initializer_zerop, int_cst_value, num_ending_zeros): Likewise.
2943 * tree.h (omp_clause_operand_check_failed, tree_size,
2944 build_real_from_int_cst, array_type_nelts, purpose_member,
2945 tree_int_cst_equal, tree_int_cst_lt, tree_int_cst_compare,
2946 host_integerp, tree_low_cst, tree_int_cst_msb, tree_int_cst_sgn,
2947 is_attribute_p, check_qualified_type, expr_align,
2948 int_size_in_bytes, bit_position, int_bit_position, byte_position,
2949 int_byte_position, list_length, fields_length, initializer_zerop,
2950 integer_zerop, integer_onep, integer_all_onesp, integer_pow2p,
2951 integer_nonzerop, cst_and_fits_in_hwi, num_ending_zeros,
2952 tree_node_structure, handled_component_p, get_containing_scope,
2953 decl_function_context, decl_type_context, real_zerop,
2954 type_num_arguments, fit_double_type, really_constant_p,
2955 int_fits_type_p, tree_log2, tree_floor_log2, iterative_hash_expr,
2956 compare_tree_int, chain_member, simple_cst_list_equal, real_onep,
2957 real_twop, real_minus_onep, int_cst_value): Likewise.
2959 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2961 * cfglayout.c (insn_scope, insn_line): Constify.
2962 * emit-rtl.c (const_int_htab_hash, const_int_htab_eq,
2963 const_double_htab_hash, const_double_htab_eq,
2964 mem_attrs_htab_hash): Likewise.
2965 * loop-iv.c (biv_eq): Likewise.
2966 * print-rtl.c (print_rtx, print_decl_name, print_mem_expr,
2967 print_inline_rtx, debug_rtx, debug_rtx_list, debug_rtx_range,
2968 debug_rtx_find, print_rtl, print_rtl_single, print_simple_rtl):
2970 * rtl-error.c (location_for_asm, diagnostic_for_asm,
2971 error_for_asm, warning_for_asm, _fatal_insn,
2972 _fatal_insn_not_found): Likewise.
2973 * rtl.c (rtx_size, shared_const_p, shallow_copy_rtx_stat,
2974 rtx_equal_p, rtl_check_failed_bounds, rtl_check_failed_type1,
2975 rtl_check_failed_type2, rtl_check_failed_code1,
2976 rtl_check_failed_code2, rtl_check_failed_code_mode,
2977 rtvec_check_failed_bounds, rtl_check_failed_flag): Likewise.
2978 * rtl.h (rtl_check_failed_bounds, rtl_check_failed_type1,
2979 rtl_check_failed_type2, rtl_check_failed_code1,
2980 rtl_check_failed_code2, rtl_check_failed_code_mode,
2981 rtvec_check_failed_bounds, rtl_check_failed_flag, LABEL_KIND,
2982 SET_LABEL_KIND, rhs_regno, subreg_lsb, subreg_regno, subreg_nregs,
2983 shared_const_p, rtx_size, shallow_copy_rtx_stat, rtx_equal_p,
2984 get_pool_mode, insn_line, insn_file, simplify_replace_rtx,
2985 mode_signbit_p, rtx_addr_can_trap_p, nonzero_address_p,
2986 rtx_unstable_p, get_integer_term, get_related_value,
2987 offset_within_block_p, reg_mentioned_p, count_occurrences,
2988 reg_referenced_p, reg_used_between_p, no_labels_between_p,
2989 single_set_2, multiple_sets, set_noop_p, refers_to_regno_p,
2990 reg_overlap_mentioned_p, dead_or_set_p, dead_or_set_regno_p,
2991 find_reg_note, find_regno_note, find_reg_equal_equiv_note,
2992 find_constant_src, find_reg_fusage, find_regno_fusage,
2993 pure_call_p, remove_note, side_effects_p, volatile_refs_p,
2994 volatile_insn_p, may_trap_p, may_trap_after_code_motion_p,
2995 may_trap_or_fault_p, inequality_comparisons_p, tablejump_p,
2996 computed_jump_p, auto_inc_p, in_expr_list_p,
2997 remove_node_from_expr_list, loc_mentioned_in_p,
2998 label_is_jump_target_p, reversed_comparison_code_parts,
2999 debug_rtx, debug_rtx_list, debug_rtx_range, debug_rtx_find,
3000 print_mem_expr, print_rtl, print_simple_rtl, print_rtl_single,
3001 print_inline_rtx): Likewise.
3002 * rtlanal.c (covers_regno_p, covers_regno_no_parallel_p,
3003 computed_jump_p_1, nonzero_bits1, rtx_unstable_p,
3004 rtx_addr_can_trap_p_1, rtx_addr_can_trap_p, nonzero_address_p,
3005 get_integer_term, get_related_value, offset_within_block_p,
3006 count_occurrences, reg_mentioned_p, no_labels_between_p,
3007 reg_used_between_p, reg_referenced_p, single_set_2,
3008 multiple_sets, set_noop_p, refers_to_regno_p,
3009 reg_overlap_mentioned_p, dead_or_set_p,
3010 covers_regno_no_parallel_p, covers_regno_p,
3011 dead_or_set_regno_p, find_reg_note, find_regno_note,
3012 find_reg_equal_equiv_note, find_constant_src, find_reg_fusage,
3013 find_regno_fusage, pure_call_p, remove_note, in_expr_list_p,
3014 remove_node_from_expr_list, volatile_insn_p, volatile_refs_p,
3015 side_effects_p, may_trap_p_1, may_trap_p,
3016 may_trap_after_code_motion_p, may_trap_or_fault_p,
3017 inequality_comparisons_p, tablejump_p, computed_jump_p_1,
3018 computed_jump_p, auto_inc_p, loc_mentioned_in_p, subreg_lsb,
3019 subreg_regno, subreg_nregs, label_is_jump_target_p): Likewise.
3020 * simplify-rtx.c (neg_const_int, plus_minus_operand_p,
3021 mode_signbit_p, simplify_replace_rtx, plus_minus_operand_p):
3023 * toplev.h (_fatal_insn_not_found, _fatal_insn, error_for_asm,
3024 warning_for_asm): Likewise.
3025 * tree.h (print_rtl): Likewise.
3026 * varasm.c (get_pool_mode): Likewise.
3028 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3030 * c-lex.c (c_lex_with_flags, lex_string): Constify.
3031 * c-ppoutput.c (print_line, pp_dir_change): Likewise.
3032 * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
3033 * cfg.c (bb_copy_original_hash, bb_copy_original_eq): Likewise.
3034 * cfgloop.c (loop_exit_hash, loop_exit_eq): Likewise.
3035 * ddg.c (compare_sccs): Likewise.
3036 * df-scan.c (df_ref_compare, df_mw_compare): Likewise.
3037 * dfp.c (decimal_real_from_string, decimal_to_decnumber,
3038 decimal_to_binary, decimal_do_compare, decimal_real_to_decimal,
3039 decimal_do_fix_trunc, decimal_real_to_integer,
3040 decimal_real_to_integer2, decimal_real_maxval): Likewise.
3041 * dse.c (const_group_info_t): New.
3042 (invariant_group_base_eq, invariant_group_base_hash): Constify.
3043 * dwarf2out.c (const_dw_die_ref): New.
3044 (decl_die_table_hash, decl_die_table_eq, file_info_cmp): Constify.
3045 * tree-browser.c (TB_parent_eq): Likewise.
3046 * unwind-dw2-fde.c (__register_frame_info_bases,
3047 __deregister_frame_info_bases, fde_unencoded_compare, fde_split,
3048 add_fdes, linear_search_fdes, binary_search_unencoded_fdes):
3050 * unwind-dw2-fde.h (get_cie, next_fde): Likewise.
3051 * unwind-dw2.c (uw_frame_state_for): Likewise.
3052 * value-prof.c (histogram_hash, histogram_eq): Likewise.
3053 * value-prof.h (const_histogram_value): New.
3055 2007-07-25 Richard Sandiford <richard@codesourcery.com>
3057 * config/mips/mips.c (machine_function): Add
3058 initialized_mips16_gp_pseudo_p.
3059 (mips16_gp_pseudo_reg): Do not emit the initialization of
3060 mips16_gp_pseudo_rtx when being called from the gimple cost-
3061 calculation routines; emit it on the first use outside those
3064 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3066 * coretypes.h (const_bitmap, const_rtx, const_rtvec, const_tree):
3069 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
3070 RTVEC_ELT, XWINT, XCWINT, XCMWINT, XCNMPRV, BLOCK_SYMBOL_CHECK,
3071 RTL_FLAG_CHECK1, RTL_FLAG_CHECK2, RTL_FLAG_CHECK3,
3072 RTL_FLAG_CHECK4, RTL_FLAG_CHECK5, RTL_FLAG_CHECK6,
3073 RTL_FLAG_CHECK7, RTL_FLAG_CHECK8, LABEL_KIND, SET_LABEL_KIND):
3074 Preserve const-ness of parameters through use of __typeof(),
3075 also constify and tidy.
3077 * tree.h (TREE_CHECK, TREE_NOT_CHECK, TREE_CHECK2,
3078 TREE_NOT_CHECK2, TREE_CHECK3, TREE_NOT_CHECK3, TREE_CHECK4,
3079 NON_TREE_CHECK4, TREE_CHECK5, TREE_NOT_CHECK5,
3080 CONTAINS_STRUCT_CHECK, TREE_CLASS_CHECK, TREE_RANGE_CHECK,
3081 OMP_CLAUSE_SUBCODE_CHECK, OMP_CLAUSE_RANGE_CHECK, EXPR_CHECK,
3082 GIMPLE_STMT_CHECK, NON_TYPE_CHECK, TREE_VEC_ELT_CHECK,
3083 PHI_NODE_ELT_CHECK, OMP_CLAUSE_ELT_CHECK, TREE_OPERAND_CHECK,
3084 TREE_OPERAND_CHECK_CODE, GIMPLE_STMT_OPERAND_CHECK,
3085 TREE_RTL_OPERAND_CHECK, TREE_CHAIN, TREE_TYPE): Likewise.
3087 2007-07-25 Julian Brown <julian@codesourcery.com>
3088 Mark Shinwell <shinwell@codesourcery.com>
3090 * config/alpha/alpha.c (alpha_mangle_fundamental_type): Rename to...
3091 (alpha_mangle_type): This.
3092 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
3093 (TARGET_MANGLE_TYPE): Define this instead.
3094 * config/arm/arm-protos.h (arm_mangle_type): Add prototype.
3095 * config/arm/arm.c (TARGET_MANGLE_TYPE): Define target hook.
3096 (arm_init_neon_builtins): Fix comment.
3097 (arm_mangle_map_entry): New.
3098 (arm_mangle_map): New.
3099 (arm_mangle_type): New.
3100 * config/i386/i386.c (ix86_mangle_fundamental_type): Rename to...
3101 (ix86_mangle_type): This. Use TYPE_MAIN_VARIANT and restrict
3102 mangled types to VOID_TYPE, BOOLEAN_TYPE, INTEGER_TYPE, REAL_TYPE.
3103 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
3104 (TARGET_MANGLE_TYPE): Define this instead.
3105 * config/ia64/ia64.c (ia64_mangle_fundamental_type): Rename to...
3106 (ia64_mangle_type): This. Use TYPE_MAIN_VARIANT and restrict
3107 mangled types to VOID_TYPE, BOOLEAN_TYPE, INTEGER_TYPE, REAL_TYPE.
3108 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
3109 (TARGET_MANGLE_TYPE): Define this instead.
3110 * config/rs6000/rs6000.c (rs6000_mangle_fundamental_type): Rename
3112 (rs6000_mangle_type): This. Use TYPE_MAIN_VARIANT.
3113 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
3114 (TARGET_MANGLE_TYPE): Define this instead.
3115 * config/s390/s390.c (s390_mangle_fundamental_type): Rename to...
3116 (s390_mangle_type): This.
3117 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
3118 (TARGET_MANGLE_TYPE): Define this instead.
3119 * config/sparc/sparc.c (sparc_mangle_fundamental_type): Rename to...
3120 (sparc_mangle_type): This.
3121 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
3122 (TARGET_MANGLE_TYPE): Define this instead.
3123 * cp/mangle.c (write_type): Call mangle_type target hook on all
3124 types before mangling. Use original type, not main variant, as
3126 * target-def.h (TARGET_MANGLE_FUNDAMENTAL_TYPE): Rename hook to...
3127 (TARGET_MANGLE_TYPE): This.
3128 * target.h (gcc_target): Rename mangle_fundamental_type to
3130 * doc/tm.texi (TARGET_MANGLE_FUNDAMENTAL_TYPE): Rename section to...
3131 (TARGET_MANGLE_TYPE): This. Note slightly different semantics.
3133 2007-07-25 Julian Brown <julian@codesourcery.com>
3134 Paul Brook <paul@codesourcery.com>
3135 Joseph Myers <joseph@codesourcery.com>
3136 Mark Shinwell <shinwell@codesourcery.com>
3138 * Makefile.in (TEXI_GCC_FILES): Add arm-neon-intrinsics.texi.
3139 * config.gcc (arm*-*-*): Add arm_neon.h to extra headers.
3140 (with_fpu): Allow --with-fpu=neon.
3141 * config/arm/aof.h (ADDITIONAL_REGISTER_NAMES): Add Q0-Q15.
3142 * config/arm/aout.h (ADDITIONAL_REGISTER_NAMES): Add Q0-Q15.
3143 * config/arm/arm-modes.def (EI, OI, CI, XI): New modes.
3144 * config/arm/arm-protos.h (neon_immediate_valid_for_move)
3145 (neon_immediate_valid_for_logic, neon_output_logic_immediate)
3146 (neon_pairwise_reduce, neon_expand_vector_init, neon_reinterpret)
3147 (neon_emit_pair_result_insn, neon_disambiguate_copy)
3148 (neon_vector_mem_operand, neon_struct_mem_operand, output_move_quad)
3149 (output_move_neon): Add prototypes.
3150 * config/arm/arm.c (FL_NEON): New flag for NEON processor capability.
3151 (all_fpus): Add FPUTYPE_NEON.
3152 (fp_model_for_fpu): Add NEON field.
3153 (arm_return_in_memory): Return vectors <= 16 bytes in ARM registers.
3154 (arm_arg_partial_bytes): Allow NEON vectors to be passed partially
3156 (arm_legitimate_address_p): Don't support fancy addressing for NEON
3158 (thumb2_legitimate_address_p): Likewise.
3159 (neon_valid_immediate): Recognize and prepare constants suitable for
3161 (neon_immediate_valid_for_move): New function. Recognize and prepare
3162 immediates for NEON move instructions.
3163 (neon_immediate_valid_for_logic): New function. Recognize and
3164 prepare immediates for NEON logic instructions.
3165 (neon_output_logic_immediate): New function. Create asm string
3166 suitable for outputting immediate logic instructions.
3167 (neon_pairwise_reduce): New function. Implement reduction using
3168 pairwise operations.
3169 (neon_expand_vector_init): New function. Expand a (possibly
3170 non-constant) vector initialization.
3171 (neon_vector_mem_operand): New function. Memory operands supported
3172 for quad-word loads/stores to/from ARM or NEON registers. Don't
3173 allow base+offset addressing for core regs.
3174 (neon_struct_mem_operand): New function. Valid mems for NEON
3176 (coproc_secondary_reload_class): Enable NEON registers to be loaded
3177 from neon_vector_mem_operand addresses without a secondary register.
3178 (add_minipool_forward_ref): Handle >8-byte minipool entries.
3179 (add_minipool_backward_ref): Likewise.
3180 (dump_minipool): Likewise.
3181 (push_minipool_fix): Likewise.
3182 (output_move_quad): New function. Output quad-word moves, loads and
3183 stores using ARM registers.
3184 (output_move_vfp): Add support for vectors in VFP (NEON) D
3186 (output_move_neon): Output a NEON load/store to/from a quadword
3188 (arm_print_operand): Implement new codes:
3189 - 'c' for unadorned integers (without a # sign).
3190 - 'J', 'K' for reg+2/reg+3, reg+3/reg+2 in little/big-endian
3192 - 'e', 'f' for the low and high D parts of a NEON Q register.
3193 - 'q' outputs a NEON Q register.
3194 - 'h' outputs ranges of D registers for VLDM/VSTM etc.
3195 - 'T' prints NEON opcode features from a coded bitmask.
3196 - 'F' is similar to T, but signed/unsigned codes both print as
3198 - 't' is similar to T, but 'u' is printed instead of 'p'.
3199 - 'O' prints 'r' if NEON instruction should perform rounding (as
3200 specified by bitmask), else prints nothing.
3201 - '#' is a punctuation character to stop operand numbers from
3202 running together with following digits in the assembler
3203 strings for instructions (when using mode attributes).
3204 (arm_assemble_integer): Handle extra NEON vector modes. Permute
3205 constant vectors in big-endian mode, where necessary.
3206 (arm_hard_regno_mode_ok): Allow vectors in VFP/NEON registers.
3207 Handle EI, OI, CI, XI modes.
3208 (ashlv4hi3, ashlv2si3, lshrv4hi3, lshrv2si3, ashrv4hi3)
3209 (ashrv2si3): Rename IWMMXT2_BUILTINs to...
3210 (ashlv4hi3_iwmmxt, ashlv2si3_iwmmxt, lshrv4hi3_iwmmxt)
3211 (lshrv2si3_iwmmxt, ashrv4hi3_iwmmxt, ashrv2si3_iwmmxt): New names.
3212 (neon_builtin_type_bits): Add enumeration, one bit for each vector
3214 (v8qi_UP, v4hi_UP, v2si_UP, v2sf_UP, di_UP, v16qi_UP, v8hi_UP)
3215 (v4si_UP, v4sf_UP, v2di_UP, ti_UP, ei_UP, oi_UP, UP): Define macros
3216 to turn v8qi, etc. into bits defined above.
3217 (neon_itype): New enumeration. Classifications of NEON builtins.
3218 (neon_builtin_datum): Define struct. Contains information about
3219 a single builtin (with multiple modes).
3220 (CF): Define helper macro for...
3221 (VAR1...VAR10): Define builtins with a type, name and 1-10 different
3223 (neon_builtin_data): New array. Define information about builtins
3224 for use during initialization/expansion.
3225 (arm_init_neon_builtins): New function.
3226 (arm_init_builtins): Call arm_init_neon_builtins if TARGET_NEON is
3228 (neon_builtin_compare): New function.
3229 (locate_neon_builtin_icode): New function. Find an insn code for a
3230 builtin given a function code for that builtin. Also return type of
3231 builtin (NEON_BINOP, NEON_UNOP etc.).
3232 (builtin_arg): New enumeration. Types of arguments for builtins.
3233 (arm_expand_neon_args): New function. Expand a generic NEON builtin.
3234 Takes a variable argument list of builtin_arg types, terminated by
3236 (arm_expand_neon_builtin): New function. Expand a NEON builtin.
3237 (neon_reinterpret): New function. Expand NEON reinterpret intrinsic.
3238 (neon_emit_pair_result_insn): New function. Support returning pairs
3239 of vectors via a pointer.
3240 (neon_disambiguate_copy): New function. Set up operands for a
3241 multi-word copy such that registers do not get clobbered.
3242 (arm_expand_builtin): Call arm_expand_neon_builtin if fcode >=
3243 ARM_BUILTIN_NEON_BASE.
3244 (arm_file_start): Set float-abi attribute for NEON.
3245 (arm_vector_mode_supported_p): Enable NEON vector modes.
3246 (arm_mangle_map_entry): New.
3247 (arm_mangle_map): New.
3248 (arm_mangle_vector_type): New.
3249 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_NEON__
3251 (TARGET_NEON): New macro. Target supports NEON.
3252 (fputype): Add FPUTYPE_NEON.
3253 (UNITS_PER_SIMD_WORD): Define. Allow quad-word registers to be used
3254 for vectorization based on command-line arg.
3255 (NEON_REGNO_OK_FOR_NREGS): Define.
3256 (VALID_NEON_DREG_MODE, VALID_NEON_QREG_MODE)
3257 (VALID_NEON_STRUCT_MODE): Define.
3258 (PRINT_OPERAND_PUNCT_VALID_P): '#' is valid punctuation.
3259 (arm_builtins): Add ARM_BUILTIN_NEON_BASE.
3260 * config/arm/arm.md (VUNSPEC_POOL_16): Insert constant for unspec.
3261 (consttable_16): Add pattern for outputting 16-byte minipool
3263 (movv2si, movv4hi, movv8qi): Remove blank expanders (redefined in
3265 (vec-common.md, neon.md): Include md files.
3266 * config/arm/arm.opt (mvectorize-with-neon-quad): Add option.
3267 * config/arm/constraints.md (constraint "Dn", "Dl", "DL"): Define.
3268 (memory_constraint "Ut", "Un", "Us"): Define.
3269 * config/arm/iwmmxt.md (VMMX, VSHFT): New mode macros.
3270 (MMX_char): New mode attribute.
3271 (addv8qi3, addv4hi3, addv2si3): Remove. Replace with...
3272 (*add<mode>3_iwmmxt): New insn pattern.
3273 (subv8qi3, subv4hi3, subv2si3): Remove. Replace with...
3274 (*sub<mode>3_iwmmxt): New insn pattern.
3275 (mulv4hi3): Rename to...
3276 (*mulv4hi3_iwmmxt): This.
3277 (smaxv8qi3, smaxv4hi3, smaxv2si3, umaxv8qi3, umaxv4hi3)
3278 (umaxv2si3, sminv8qi3, sminv4hi3, sminv2si3, uminv8qi3)
3279 (uminv4hi3, uminv2si3): Remove. Replace with...
3280 (*smax<mode>3_iwmmxt, *umax<mode>3_iwmmxt, *smin<mode>3_iwmmxt)
3281 (*umin<mode>3_iwmmxt): These.
3282 (ashrv4hi3, ashrv2si3, ashrdi3_iwmmxt): Replace with...
3283 (ashr<mode>3_iwmmxt): This new pattern.
3284 (lshrv4hi3, lshrv2si3, lshrdi3_iwmmxt): Replace with...
3285 (lshr<mode>3_iwmmxt): This new pattern.
3286 (ashlv4hi3, ashlv2si3, ashldi3_iwmmxt): Replace with...
3287 (ashl<mode>3_iwmmxt): This new pattern.
3288 * config/arm/neon-docgen.ml: New file. Generate documentation for
3290 * config/arm/neon-gen.ml: New file. Generate arm_neon.h header.
3291 * config/arm/arm_neon.h: New (autogenerated).
3292 * config/arm/neon-testgen.ml: New file. Generate NEON tests
3294 * config/arm/neon.md: New file. Define NEON instructions.
3295 * config/arm/neon.ml: New file. Abstract description of NEON
3296 instructions, used to generate arm_neon.h header, documentation and
3298 * config/arm/t-arm (MD_INCLUDES): Add vec-common.md, neon.md.
3299 * vec-common.md: New file. Shared parts for iWMMXt and NEON vector
3301 * doc/extend.texi (ARM Built-in Functions): Rename and remove
3303 (ARM NEON Intrinsics): New subsection.
3304 * doc/arm-neon-intrinsics.texi: New (autogenerated).
3306 2007-07-25 Danny Smith <dannysmith@users.sourceforge.net>
3308 * config/i386/i386-protos.h (i386_pe_asm_file_end): Remove
3311 2007-07-24 Jan Hubicka <jh@suse.cz>
3313 * regclass.c (move_table): New type.
3314 (move_cost, may_move_in_cost, may_move_out_cost): Use it.
3315 (init_move_cost): Break out from ...
3316 (init_reg_sets_1): ... here; simplify computation of
3317 have_regs-of_mode and contains_reg_of_mode.
3318 (record_reg_classes): Unswitch internal loops.
3319 (copy_cost): Trigger lazy initialization of move cost
3320 (record_address_regs): Likewise.
3322 2007-07-24 Daniel Berlin <dberlin@dberlin.org>
3324 * config/darwin.c (darwin_override_options): Don't force on
3325 flag_var_tracking_uninit when no debug info is requested.
3327 2007-07-25 Zdenek Dvorak <dvorakz@suse.cz>
3329 * cfgloop.c (init_loops_structure): New function.
3330 (flow_loops_find): Create root of the loop tree unconditionally.
3332 2007-07-24 Daniel Jacobowitz <dan@codesourcery.com>
3334 * tree-ssa-ccp.c (fold_const_aggregate_ref): Use fold_convert.
3336 2007-07-24 Jan Hubicka <jh@suse.cz>
3338 * caller-save.c: Include ggc.h, gt-caller-save.h
3339 (reg_save_code, reg_restore_code): Rename to ...
3340 (cached_reg_save_code, cached_reg_restore_code): ... those.
3341 (savepat, restpat, test_reg, test_mem, saveinsn, restinsn): New.
3342 (reg_save_code, reg_restore_code): New functions.
3343 (init_caller_save): Do not intialize
3344 reg_save_code/reg_restore_code tables.
3345 * Makefile.in: (gt-caller-save.h): New.
3347 2007-07-24 Andreas Krebbel <krebbel1@de.ibm.com>
3349 * tree-ssa-ifcombine.c (ifcombine_ifandif): Use a ONE operand
3350 with the mode of the original operand instead of
3353 2007-07-23 Jan Hubicka <jH@suse.cz>
3355 * i386.c (ix86_secondary_memory_needed): Break out to...
3356 (inline_secondary_memory_needed): ... here.
3357 (ix86_memory_move_cost): Break out to ...
3358 (inline_memory_move_cost): ... here; add support for IN value of 2 for
3359 maximum of input and output; fix handling of Q_REGS on 64bit.
3360 (ix86_secondary_memory_needed): Microoptimize.
3362 2007-07-23 Sebastian Pop <sebpop@gmail.com>
3364 * tree-data-ref.c (find_vertex_for_stmt, create_rdg_edge_for_ddr,
3365 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
3366 stmts_from_loop, known_dependences_p, build_rdg): New.
3367 * tree-data-ref.h: Depends on graphds.h.
3368 (rdg_vertex, RDGV_STMT, rdg_dep_type, rdg_edge, RDGE_TYPE): New.
3369 (build_rdg): Declared.
3370 * Makefile.in (TREE_DATA_REF_H): Depends on graphds.h.
3372 2007-07-23 Daniel Berlin <dberlin@dberlin.org>
3374 * tree-ssa-propagate.c (valid_gimple_expression_p): Match up with
3377 2007-07-23 Peter Bergner <bergner@vnet.ibm.com>
3378 Jakub Jelinek <jakub@redhat.com>
3380 PR middle-end/PR28690
3381 * optabs.c (expand_binop): (emit_cmp_and_jump_insns): Allow EQ compares.
3382 * rtlanal.c (commutative_operand_precedence): Prefer both REG_POINTER
3383 and MEM_POINTER operands over REG and MEM operands.
3384 (swap_commutative_operands_p): Change return value to bool.
3385 * rtl.h: Update the corresponding prototype.
3386 * tree-ssa-address.c (gen_addr_rtx): Use simplify_gen_binary
3387 instead of gen_rtx_PLUS.
3388 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Change return
3389 value to bool. Change function arguments to rtx's and update code
3391 (simplify_plus_minus): Update the simplify_plus_minus_op_data_cmp
3392 calls to match the new declaration.
3393 * simplify-rtx.c (simplify_associative_operation): Don't
3394 reorder simplify_binary_operation arguments.
3396 2007-07-23 Richard Sandiford <richard@codesourcery.com>
3398 * config/mips/mips.c (override_options): Use mips_costs to derive
3399 the default branch cost.
3400 * config/mips/mips.h (BRANCH_COST): Use mips_branch_cost rather
3402 * config/mips/mips.opt (mbranch-cost=): New option.
3403 * doc/invoke.texi (-mbranch-cost): Document new MIPS option.
3405 2007-07-23 Richard Sandiford <richard@codesourcery.com>
3407 * config/mips/mips.h (GR_REG_CLASS_P, COP_REG_CLASS_P): Delete.
3408 (SECONDARY_MEMORY_NEEDED): Delete commented-out definition.
3409 * config/mips/mips.c (mips_register_move_cost): Use reg_class_subset_p
3410 instead of GR_REG_CLASS_P and COP_REG_CLASS_P.
3412 2007-07-23 Richard Sandiford <richard@codesourcery.com>
3414 * config/mips/constraints.md (ks): New constraint.
3415 * config/mips/mips.md (*add<mode>3_sp1, *add<mode>3_sp2): Fold into...
3416 (*add<mode>3_mips16): ...here.
3418 2007-07-21 Uros Bizjak <ubizjak@gmail.com>
3420 * optabs.h (enum optab_index): Add new OTI_signbit.
3421 (signbit_optab): Define corresponding macro.
3422 (enum insn_code signbit_optab[]): Remove array.
3423 * optabs.c (init_optabs): Initialize signbit_optab using init_optab.
3424 (expand_copysign_absneg): If back end provides signbit insn, use it
3425 instead of bit operations on floating point argument.
3426 * builtins.c (enum insn_code signbit_optab[]): Remove array.
3427 (expand_builtin_signbit): Check signbit_optab->handlers[].insn_code for
3428 availability of signbit insn.
3430 * config/i386/i386.md (signbit<mode>2): New insn pattern to implement
3431 signbitf, signbit and signbitl built-ins as inline x87 intrinsics when
3432 SSE mode is not active.
3433 (isinf<mode>2): Disable for mfpmath=sse,387.
3435 2007-07-22 Ben Elliston <bje@au.ibm.com>
3437 * regclass.c (invalid_mode_change_p): Attach ATTRIBUTE_UNUSED to
3439 * struct-equiv.c (note_local_live): Likewise for `y_regno'.
3441 2007-07-20 Richard Guenther <rguenther@suse.de>
3443 * tree-cfg.c (verify_expr): COND_EXPRs can have any
3444 integral typed condition.
3445 * tree-ssa.c (useless_type_conversion_p): Do not preserve
3446 booleanness. Only preserve conversions from a non-base
3447 type to a base type, not in general between types with
3448 different TYPE_MIN_VALUE or TYPE_MAX_VALUE.
3449 * tree.def (COND_EXPR): Document that the condition
3450 can be of any integral type.
3452 2007-07-20 Nigel Stephens <nigel@mips.com>
3453 Richard Sandiford <richard@codesourcery.com>
3455 * config/mips/mips.h (mips_dwarf_regno): Declare.
3456 (DBX_REGISTER_NUMBER): Remove redundant brackets.
3457 (HI_REGNUM, LO_REGNUM): Define in an endian-dependent way.
3458 (AC1HI_REGNUM, AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM)
3459 (AC3HI_REGNUM, AC3LO_REGNUM, ACC_HI_REG_P): Delete.
3460 (reg_class): Rename HI_REG to MD0_REG and LO_REG to MD1_REG.
3461 (REG_CLASS_NAMES): Update accordingly.
3462 * config/mips/mips.c (mips_dwarf_regno): New array.
3463 (mips_regno_to_class): Rename HI_REG to MD0_REG and LO_REG to MD1_REG.
3464 (mips_subword): Remove special handling for accumulator registers.
3465 (override_options): Initiailize mips_dwarf_regno. Remove use
3467 (mips_swap_registers): New function.
3468 (mips_conditional_register_usage): Swap accumulator registers
3469 around if TARGET_LITTLE_ENDIAN.
3470 (mips_cannot_change_mode_class): Remove special treatment of ACC_REGS.
3471 * config/mips/constraints.md (h, l): Use the endianness to choose
3472 between MD0_REG and MD1_REG.
3473 * config/mips/mips.md (*mfhilo_<mode>_macc): Use a fixed-string,
3474 alternative-dependent template.
3476 2007-07-20 Richard Sandiford <richard@codesourcery.com>
3478 * config/arm/arm.md (movsi): Use can_create_pseudo_p instead of
3481 2007-07-20 Zdenek Dvorak <dvorakz@suse.cz>
3483 * function.c (thread_prologue_and_epilogue_insns): Fix exit
3484 predecessor fallthru flags.
3486 2007-07-20 Zdenek Dvorak <dvorakz@suse.cz>
3488 * tree-ssa-loop-niter.c (assert_loop_rolls_lt): Convert the operands
3489 of compare to the same type.
3490 * cfgloopmanip.c (add_loop): Update information about loop exits.
3491 (loop_version): Remove the innermost loop requirement.
3492 * tree-ssa-loop-manip.c (determine_exit_conditions): Convert bounds
3493 to sizetype for pointers.
3495 2007-07-18 H.J. Lu <hongjiu.lu@intel.com>
3497 * Makefile.in (D32PBIT_FUNCS): Add _sd_to_tf and _tf_to_sd.
3498 (D64PBIT_FUNCS): Add _dd_to_tf and _tf_to_dd.
3499 (D128PBIT_FUNCS): Add _td_to_tf and _tf_to_td.
3501 * config/dfp-bit.c: Empty for TFmode conversions.
3503 2007-07-18 Caroline Tice <ctice@apple.com>
3505 * var-tracking.c (find_src_status): Check for COND_EXEC insns
3506 and handle them correctly; check that src is not NULL before
3508 (find_src_set_src): Likewise.
3510 2007-07-18 Bob Wilson <bob.wilson@acm.org>
3512 * config/xtensa/xtensa.c (xtensa_expand_mask_and_shift): New.
3513 (struct alignment_context, init_alignment_context): New.
3514 (xtensa_expand_compare_and_swap, xtensa_expand_atomic): New.
3515 * config/xtensa/xtensa.h (XCHAL_HAVE_RELEASE_SYNC): Add default.
3516 (XCHAL_HAVE_S32C1I): Likewise.
3517 (TARGET_RELEASE_SYNC, TARGET_S32C1I): New.
3518 * config/xtensa/xtensa.md (UNSPECV_MEMW): New constant.
3519 (UNSPECV_S32RI, UNSPECV_S32C1I): Likewise.
3520 (ATOMIC, HQI): New macros.
3521 (memory_barrier, *memory_barrier): New.
3522 (sync_lock_releasesi): New.
3523 (sync_compare_and_swapsi, sync_compare_and_swap<mode>): New.
3524 (sync_lock_test_and_set<mode>): New.
3525 (sync_<atomic><mode>): New.
3526 (sync_old_<atomic><mode>, sync_new_<atomic><mode>): New.
3527 * config/xtensa/xtensa-protos.h (xtensa_expand_compare_and_swap): New.
3528 (xtensa_expand_atomic): New.
3530 2007-07-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3534 * builtins.c (expand_builtin_interclass_mathfn): Provide a generic
3535 transformation for builtin ISNORMAL.
3536 (expand_builtin): Handle BUILT_IN_ISNORMAL.
3537 * builtins.def (BUILT_IN_ISNORMAL): New.
3538 * doc/extend.texi: Document isnormal.
3540 2007-07-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3544 * builtins.c (expand_builtin_interclass_mathfn): Allow for missing
3545 optabs infrastructure. Provide generic implementation for
3547 (expand_builtin): Handle FINITE/ISFINITE.
3548 (fold_builtin_classify): Make ISFINITE canonical instead of FINITE.
3549 (fold_builtin_1): Likewise.
3551 * builtins.def (BUILT_IN_ISFINITE): New.
3553 * doc/extend.texi: Document isfinite.
3555 2007-07-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3560 * builtins.c (expand_builtin_interclass_mathfn): Provide a
3561 generic fallback for isinf.
3562 * c-cppbuiltin.c (builtin_define_float_constants): Move FP max
3563 calculation code ...
3564 * real.c (get_max_float): ... to here.
3565 * real.h (get_max_float): New.
3567 2007-07-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3571 * builtin-attrs.def (ATTR_TYPEGENERIC,
3572 ATTR_CONST_NOTHROW_TYPEGENERIC): New.
3574 * builtins.def (BUILT_IN_ISINF, BUILT_IN_ISNAN,
3575 BUILT_IN_ISGREATER, BUILT_IN_ISGREATEREQUAL, BUILT_IN_ISLESS,
3576 BUILT_IN_ISLESSEQUAL, BUILT_IN_ISLESSGREATER,
3577 BUILT_IN_ISUNORDERED): Use ATTR_CONST_NOTHROW_TYPEGENERIC.
3579 * c-common.c (handle_type_generic_attribute): New.
3580 (c_common_attribute_table): Add "type generic".
3582 * c-typeck.c (convert_arguments): Handle "type generic" functions.
3584 2007-07-18 Daniel Berlin <dberlin@dberlin.org>
3586 * tree-ssa-sccvn.c (try_to_simplify): Use valid_gimple_expression
3587 * tree-ssa-propagate (valid_gimple_expression): Handle ADDR_EXPR
3590 2007-07-18 Rask Ingemann Lambertsen <rask@sygehus.dk>
3593 * config/cris/cris.c (cris_print_index): Don't use XEXP before
3594 checking that the operand is an expression.
3596 2007-07-19 Christoph von Wittich <Christoph_vW@reactos.org>
3597 Danny Smith <dannysmith@users.sourceforge.net>
3600 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Put
3601 file mapping object in local namespace if Windows version later
3604 2007-07-18 Richard Sandiford <richard@codesourcery.com>
3606 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Declare.
3607 * config/arm/arm.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to
3608 arm_cannot_force_const_mem.
3609 (arm_cannot_force_const_mem): New function.
3610 * config/arm/arm.h (ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macro.
3611 (LEGITIMATE_CONSTANT_P): Test arm_cannot_force_const_mem instead
3612 of arm_tls_referenced_p.
3613 * config/arm/arm.md (movsi): Split out-of-section constants when
3614 ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P.
3615 * config/arm/vxworks.h (ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
3617 2007-07-18 Richard Sandiford <richard@codesourcery.com>
3619 * config/mips/mips.md (clear_cache): Treat the size argument as Pmode.
3621 2007-07-18 Richard Sandiford <richard@codesourcery.com>
3623 * config/mips/mips.md (*extendqihi2): Convert the destination
3626 2007-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3628 * config/pa/fptr.c: Update license header.
3629 * config/pa/milli64.S: Likewise.
3631 2007-07-17 Nick Clifton <nickc@redhat.com>
3633 * COPYING_v3: New file. Contains version 3 of the GNU General
3635 * COPYING.LIB_v3: New file. Contains version 3 of the GNU
3636 Lesser General Public License.
3637 * doc/include/gpl_v3.texi: New file. Contains version 3 of
3638 the GNU General Public License.
3640 2007-07-17 Zdenek Dvorak <dvorakz@suse.cz>
3642 PR rtl-optimization/32773
3643 * cfglayout.c (force_one_exit_fallthru): New function.
3644 (cfg_layout_finalize): Use it.
3646 2007-07-16 Richard Guenther <rguenther@suse.de>
3647 Uros Bizjak <ubizjak@gmail.com>
3649 * tree-if-conv.c (find_phi_replacement_condition): Unshare "*cond"
3650 before forcing it to gimple operand.
3652 2007-07-16 Sandra Loosemore <sandra@codesourcery.com>
3653 David Ung <davidu@mips.com>
3655 * config/mips/mips.h (TUNE_24K): Define.
3656 (TUNE_MACC_CHAINS): Add TUNE_24K.
3657 * config/mips/mips.md: (*mul_acc_si, *mul_sub_si): Change type to
3659 * config/mips/74k.md (r74k_int_mult): Split madd/msub to ..
3660 (r74k_int_madd): .. this new reservation.
3661 (define_bypass): Fixed bypasses for r74k_int_madd to use
3663 * config/mips/24k.md (define_bypass): Define new
3664 r24k_int_mul3->r24k_int_madd bypass using mips_linked_madd_p.
3666 2007-07-16 Sandra Loosemore <sandra@codesourcery.com>
3667 Nigel Stephens <nigel@mips.com>
3669 * config/mips/mips.md: Include 20kc.md.
3670 * config/mips/20kc.md: New file.
3671 * config/mips/mips.c (mips_rtx_cost_data): Fill in 20Kc costs.
3672 (mips_adjust_cost): Tweak for 20Kc.
3673 (mips_issue_rate): Likewise.
3674 * config/mips/mips.h (TUNE_20KC): Define.
3676 2007-07-16 David Edelsohn <edelsohn@gnu.og>
3678 * config/rs6000/rs6000.c (struct processor_cost): Add
3679 cache_line_size, l1_cache_lines, and simultaneous_prefetches
3681 (*_cost): Add cache information.
3682 (rs6000_override_options): Set cache parameters.
3684 2007-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3687 * config.gcc (mips-sgi-irix[56]*): Enable pthread support.
3688 * doc/install.texi (mips-sgi-irix6): pthread support works now.
3690 2007-07-16 Paul Brook <paul@codesourcery.com>
3693 * config/arm/cirrus.md (cirrus_arm_movsi_insn): Remove dead insn.
3694 (cirrus_thumb2_movsi_insn): Ditto.
3696 2007-07-15 Geoffrey Keating <geoffk@apple.com>
3698 * config/rs6000/darwin-fallback.c (interpret_libc): Change
3701 2007-07-15 Andrew Haley <aph@redhat.com>
3703 * unwind-sjlj.c (_Unwind_GetIPInfo): Check for context->fc != NULL
3704 before looking in the context.
3706 2007-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3710 * pa-protos.h (pa_eh_return_handler_rtx): Declare.
3711 * pa.c (pa_extra_live_on_entry, rp_saved): Declare.
3712 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3713 (pa_output_function_prologue): Use rp_saved and current_function_is_leaf
3714 to generate .CALLINFO statement.
3715 (hppa_expand_prologue): Set rp_saved.
3716 (hppa_expand_epilogue): Use rp_saved.
3717 (pa_extra_live_on_entry, pa_eh_return_handler_rtx): New functions.
3718 * pa.h (EH_RETURN_HANDLER_RTX): Use pa_eh_return_handler_rtx.
3720 2007-07-14 Dirk Mueller <dmueller@suse.de>
3722 * omega.c (coalesce): Fix memory leak on early exit.
3723 * matrix-reorg.c (check_allocation_function): Likewise.
3724 * tree-vect-transform.c (vect_get_new_vect_var): free result
3726 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
3727 pass pointer to edge vector
3728 (partition_hot_cold_basic_blocks): Fix memory leak.
3729 * collect2.c (prefix_from_string): Free temporary storage.
3730 * reload1.c (fixup_abnormal_edges): Free sbitmap.
3732 2007-07-14 Kaz Kojima <kkojima@gcc.gnu.org>
3734 * config/sh/sh.h (DO_GLOBAL_CTORS_BODY): Add void to prototype.
3735 (DO_GLOBAL_DTORS_BODY): Likewise.
3737 2007-07-14 Sandra Loosemore <sandra@codesourcery.com>
3738 Nigel Stephens <nigel@mips.com>
3740 * config/mips/mips.c (mips_classify_symbol): Don't return
3741 SYMBOL_SMALL_DATA for constant pool addresses if
3742 TARGET_EMBEDDED_DATA is true.
3744 2007-07-14 Uros Bizjak <ubizjak@gmail.com>
3746 * config/i386/i386.c (init_mmx_sse_builtins): Define all builtins
3747 except __builtin_ia32_emms, __builtin_ia32_ldmxcsr,
3748 __builtin_ia32_stmxcsr, __builtin_ia32_maskmovq, __builtin_ia32_loadups,
3749 __builtin_ia32_storeups, __builtin_ia32_loadhps, __builtin_ia32_loadlps,
3750 __builtin_ia32_storehps, __builtin_ia32_storelps,
3751 __builtin_ia32_movntps, __builtin_ia32_movntq, __builtin_ia32_sfence,
3752 __builtin_ia32_femms, __builtin_ia32_maskmovdqu, __builtin_ia32_loadupd,
3753 __builtin_ia32_storeupd, __builtin_ia32_loadhpd, __builtin_ia32_loadlpd,
3754 __builtin_ia32_movnti, __builtin_ia32_movntpd, __builtin_ia32_movntdq,
3755 __builtin_ia32_clflush, __builtin_ia32_lfence, __builtin_ia32_mfence,
3756 __builtin_ia32_loaddqu, __builtin_ia32_storedqu, __builtin_ia32_monitor,
3757 __builtin_ia32_mwait, __builtin_ia32_lddqu, __builtin_ia32_movntdqa,
3758 __builtin_ia32_movntsd and __builtin_ia32_movntss as const builtins
3759 using def_builtin_const.
3761 2007-07-14 Eric Botcazou <ebotcazou@adacore.com>
3763 PR tree-optimization/32705
3764 * tree-ssa-sccvn.c (set_ssa_val_to): Accept VN_TOP as value number.
3765 (simplify_binary_expression): Use SSA_VAL consistently.
3767 2007-07-13 David Edelsohn <edelsohn@gnu.org>
3769 * config/rs6000/spe.md (SPE_ACC_REGNO): Delete definition.
3770 (SPEFSCR_REGNO): Delete definition.
3771 * config/rs6000/rs6000.c: LINK_REGISTER_REGNUM -> LR_REGNO.
3772 COUNT_REGISTER_REGNUM -> CTR_REGNO.
3773 * config/rs6000/rs6000.h: Do not define *_REGNO.
3774 LINK_REGISTER_REGNUM -> LR_REGNO.
3775 COUNT_REGISTER_REGNUM -> CTR_REGNO.
3776 * config/rs6000/predicates.md: LINK_REGISTER_REGNUM -> LR_REGNO.
3777 COUNT_REGISTER_REGNUM -> CTR_REGNO.
3778 * config/rs6000/linux-unwind.h: Define R_LR, R_CR2, R_VR0,
3779 R_VRSAVE, R_VSCR. Use them.
3780 * config/rs6000/darwin-fallback.c: Define R_LR, R_CTR, R_CR2,
3781 R_XER, R_VR0, R_VRSAVE, R_VSCR, R_SPEFSCR. Use them.
3782 * config/rs6000/rs6000.md: Define REGNO constants. Use them.
3783 * config/rs6000/aix.h: Define R_LR. Use it.
3785 2007-07-13 Caroline Tice <ctice@apple.com>
3787 * toplev.c (process_options): Turn flag_var_tracking_uninit off when
3788 flag_var_tracking is explicitly turned off (i.e. when variable
3789 tracking is not feasible); otherwise, turn flag_var_tracking on when
3790 flag_var_tracking_uninit is on.
3791 * rtl.def (VAR_LOCATION): Add a new integer subfield to VAR_LOCATION
3792 note definitions, to allow recording of initialization status in the
3794 * dwarf2out.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
3795 (add_var_loc_to_decl): Add comparison of NOTE_VAR_LOCATION_STATUS to
3796 determine if two note locations are equal.
3797 (output_loc_list): Don't output list entries whose start & end labels
3799 (reg_loc_descriptor): Add parameter for initialization status; pass it
3800 to other loc descriptor functions.
3801 (one_reg_loc_descriptor): Add parameter for initialization status;
3802 check its value and add DW_OP_GNU_uninit to returned loc descr if
3804 (multiple_reg_loc_descriptor): Add parameter for initialization
3806 pass init status argument to other loc descriptor functions; check
3807 value of intialization parameter and add DW_OP_GNU_uninit to returned
3808 loc descr if appropriate.
3809 (based_loc_descr): Add parameter for initialization status; add new
3810 variable for return value; check value of initialization parameter and
3811 add DW_OP_GNU_uninit to returned loc descr if appropriate.
3812 (concatn_mem_loc_descriptor): Add parameter for initialization status;
3813 pass init status argument to other loc descriptor functions; check
3814 value of intialization parameter and add DW_OP_GNU_uninit to returned
3815 loc descr if appropriate.
3816 (mem_loc_descriptor): Likewise.
3817 (concat_loc_descriptor): Likewise.
3818 (concatn_loc_descriptor): Likewise.
3819 (loc_descriptor): Add parameter for initialization status; pass it as
3820 argument to other loc descriptor function calls.
3821 (loc_descriptor_from_tree_1): Add appropriate initialization status
3822 to loc descriptor function calls.
3823 (add_location_or_const_value_attribute): Get initialization status
3824 from VAR_LOCATION note; add initialization status to loc descriptor
3826 * dwarf2.h (enum dwarf_location_atom): New op, DW_OP_GNU_uninit.
3827 * print-rtl.c (print_rtx): When printing a VAR_LOCATION note, if
3828 status is uninitialized, add "[uninint]" to output.
3829 * common.opt (fvar-tracking-uninit): New option, similar to
3830 fvar-tracking, to turn on tracking of uninitialized variables; creates
3831 a new global flag, flag_var_tracking_uninit.
3832 * rtl.h (NOTE_VAR_LOCATION_STATUS): New macro for accessing new field.
3833 (enum var_init_status): New type, for var initialization status field.
3834 * var-tracking.c (struct location_chain_def): Two new fields, init,
3835 for initialization status, and set_src for the assignment value expr.
3836 (unshare_variable): New parameter for initialization status;
3837 initialize new init and set_src fields.
3838 (var_reg_set): New parameters for initialization status and value;
3839 pass them to set_variable_part.
3840 (var_mem_set): Likewise.
3841 (get_init_value): New function.
3842 (var_reg_delete_and_set): New initialization status & value
3843 parameters; add call to get_init_value if status is unknown; pass new
3844 parameters to clobber_variable_part and var_reg_set.
3845 (var_mem_delete_and_set): Likewise.
3846 (var_reg_delete): Pass null set_src value to clobber_variable_part.
3847 (var_mem_delete): Likewise.
3848 (variable_union): Pass status to unshare_variable; initialize new init
3849 and set_src fields. If flag_var_tracking_uninit is not set, force
3850 status to initialized.
3851 (add_stores): Store insn, rather than NEXT_INSN(insn), so it can be
3852 used later to get the set_src value.
3853 (find_src_status): New function.
3854 (find_src_set_src): New function.
3855 (compute_bb_dataflow): Pass init status to calls to var_reg_set,
3856 var_mem_set, var_reg_delete_and_set and var_mem_delete_and_set; for
3857 MO_SET, get set_src value and pass it to var_reg_delete_and_set
3858 and var_mem_delete_and_set.
3859 (dump_variable): Print out "[uninit]" if appropriate.
3860 (set_variable_part): Add new initialization and set_src parameters;
3861 pass status to unshare_variable; set node->init and node- >set_src
3862 fields and modify slot in hash table appropriately; save the init and
3863 set_src values if appropriate and assign to the new node.
3864 (clobber_variable_part): New set_src parameter; if two nodes have
3865 same variable and same location but different set_src (assignment)
3866 values, clobber old node.