1 2009-09-05 Richard Guenther <rguenther@suse.de>
4 * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
5 before comparing function argument types.
7 2009-09-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10 * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
13 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
16 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
18 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
19 locators before emit_insn is called.
21 2009-09-04 Vladimir Makarov <vmakarov@redhat.com>
24 * ira.c (update_equiv_reg): Revert my previous patch for the PR.
25 * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
26 (reginfo_init): Don't call allocate_reg_info.
28 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
31 * config/alpha/alpha.c (alpha_does_function_need_gp): Use
32 NONDEBUG_INSN_P instead of INSN_P.
34 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
37 * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
39 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
42 * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
45 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
47 * toplev.c (process_options): Move setter of flag_var_tracking
48 before other tests that depend on it. Move down setter of
49 flag_rename_registers. Don't enable var-tracking-assignments
50 by default if selective scheduling is enabled. Warn if both
53 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
55 * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
56 comment. Use switch statement to catch overlaps between rtx
57 and tree codes. Accept FUNCTION_DECLs in addition to those in...
58 (IS_DECL_CODE): ... here. Remove.
59 (check_value_is_not_decl): Remove.
60 (dv_from_decl, dv_from_value): Check after conversion.
62 2009-09-04 Richard Guenther <rguenther@suse.de>
65 * (cgraph_finalize_compilation_unit): Move finalizing aliases
66 after emitting tunks. Move emitting thunks and ctors from ...
67 (cgraph_optimize): ... here. Remove redundant
68 cgraph_analyze_functions.
69 * varasm.c (find_decl_and_mark_needed): Remove no longer
71 (finish_aliases_1): Adjust check for thunk aliases.
73 2009-09-04 Daniel Gutson <dgutson@codesourcery.com>
75 * config/arm/arm.md (ctzsi2): Added braces
76 to avoid warning that broke booststrap.
78 2009-09-04 Martin Jambor <mjambor@suse.cz>
80 PR tree-optimization/41112
81 * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
82 handle variable-bounded arrays.
83 (expr_with_var_bounded_array_refs_p): New function.
84 (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
86 2009-09-04 Wolfgang Gellerich <gellerich@de.ibm.com>
88 * config/s390/2097.md: Removed two incorrect bypasses.
89 (z10_fsimpdf): Fixed latency.
90 (z10_fhex): New insn_reservation.
91 (z10_floaddf): Fixed latency.
92 (z10_floadsf): Fixed latency.
93 (z10_ftrunctf): Fixed latency.
94 (z10_ftruncdf): Fixed latency.
95 * config/s390/s390.c (z10_cost): Fixed values.
96 (s390_adjust_priority): Added z10 path.
97 * config/s390/s390.md (type): Added fhex.
98 (*mov<mode>_64dfp): Updated type attribute.
99 (*mov<mode>_64): Updated type attribute.
100 (*mov<mode>_31): Updated type attribute.
101 (*mov<mode>"): Likewise.
102 * config/s390/2084.md (x_fsimpdf): Updated condition.
104 2009-09-04 Andreas Krebbel <krebbel1@de.ibm.com>
106 * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
107 RTXs in the predicate for operand 1.
109 2009-09-03 Daniel Gutson <dgutson@codesourcery.com>
111 * config/arm/arm.md (UNSPEC_RBIT): New constant.
113 (ctzsi2): New expand.
114 * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
116 2009-09-03 Martin Jambor <mjambor@suse.cz>
118 * tree-sra.c (duplicate_expr_for_different_base): Removed.
119 (create_artificial_child_access): Use build_ref_for_offset instead
120 of duplicate_expr_for_different_base.
121 (propagate_subacesses_accross_link): Likewise.
123 2009-09-03 Richard Sandiford <rdsandiford@googlemail.com>
125 * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
127 (mips16e_collect_argument_saves): Skip debug instructions.
128 (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
129 (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
130 (r10k_insert_cache_barriers): Likewise.
131 (mips_reorg_process_insns): Likewise.
133 2009-09-03 Vladimir Makarov <vmakarov@redhat.com>
136 * ira.c (update_equiv_reg): Remove check on class likely spill.
138 2009-09-03 Jakub Jelinek <jakub@redhat.com>
141 * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
142 SIGN_EXTEND or ZERO_EXTEND. Don't assume there is a REG inside of
146 * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
147 the stack slot if it is passed by invisible reference.
148 * var-tracking.c (vt_add_function_parameters): Handle arguments passed
149 by invisible reference.
151 2009-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
153 * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
154 * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
155 * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
157 * config/bfin/sync.md: New file.
158 * config/bfin/bfin.md: Include it.
159 (UNSPEC_ATOMIC): New.
160 (UNSPEC_ONES): Provide a unique number.
162 From Jie Zhang <jie.zhang@analog.com>:
163 * config/bfin/bfin.c (ret_regs): New.
164 (must_save_fp_p): Don't return true because of frame_pointer_needed.
165 (must_save_rets_p): New.
166 (n_regs_saved_by_prologue): Use must_save_rets_p instead of
167 current_function_is_leaf.
169 (do_unlink): Likewise.
170 (expand_interrupt_handler_prologue): Use ret_regs array.
171 (expand_interrupt_handler_epilogue): Use ret_regs array and
172 pass return register to gen_return_internal.
173 (bfin_expand_epilogue): Pass return register to
175 (bfin_expand_call): Explicitly clobber RETS.
176 * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
177 * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
178 call_insn_fdpic, call_value_insn_fdpic, call_symbol,
179 call_value_symbol, call_insn, call_value_insn): Explicitly clobber
181 (return_internal): Take a reg rtx rather than the register number.
183 2009-09-03 H.J. Lu <hongjiu.lu@intel.com>
185 * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
186 when comparing against estimated_loop_iterations_int return.
188 2009-09-03 Richard Guenther <rguenther@suse.de>
190 * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
191 eh_personality_libfunc.
193 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
195 * tree-parloops.c (separate_decls_in_region): Add space.
197 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
199 * tree-parloops.c (separate_decls_in_region): Change the condition
200 checking if there are reductions in the loop.
202 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
204 PR tree-optimization/38275
205 * tree-parloops.c (parallelize_loops): Replace profitability condition
206 for expected number of iterations.
208 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
210 * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
211 (bootstrap-debug): Explain conditions in which it becomes default.
212 (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
215 2009-09-03 Namhyung Kim <namhyung@gmail.com>
217 * doc/invoke.texi (Optimize Options): Move
218 -finline-small-functions to the -O2 list.
220 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
222 * toplev.c (process_options): Enable var-tracking-assignments
223 by default if var-tracking is enabled.
225 2009-09-02 David Daney <ddaney@caviumnetworks.com>
227 * cfgbuild.c (find_bb_boundaries): Split blocks containing a
229 * emit-rtl.c (prev_nonnote_insn_bb): New function.
230 * rtl.h (prev_nonnote_insn_bb): Declare it.
232 2009-09-03 Diego Novillo <dnovillo@google.com>
234 * cgraph.c (cgraph_node_for_decl): New.
235 * cgraph.h (cgraph_node_for_decl): Declare.
236 * tree.c (host_integerp): Return 0 if T is NULL.
238 2009-09-03 Diego Novillo <dnovillo@google.com>
240 * tree.h (struct alias_pair): Move from varasm.c.
241 (alias_pairs): Likewise.
242 (TYPE_MAXVAL): Define.
243 (TYPE_MINVAL): Define.
244 (iterative_hash_host_wide_int): Declare.
245 (remove_unreachable_alias_pairs): Declare.
246 * tree-pass.h (pass_ipa_free_lang_data): Declare.
247 * diagnostic.c (default_diagnostic_starter): Make extern.
248 (default_diagnostic_finalizer): Make extern.
249 * diagnostic.h (default_diagnostic_starter): Declare.
250 (default_diagnostic_finalizer): Declare.
251 (default_tree_printer): Declare.
252 * toplev.c (default_tree_printer): Make extern.
254 2009-09-03 Richard Guenther <rguenther@suse.de>
255 Diego Novillo <dnovillo@google.com>
257 * cgraph.c (cgraph_add_new_function): Remove gimplification.
258 * cgraphunit.c (cgraph_expand_function): Do not emit
259 associated thunks from here.
260 (cgraph_emit_thunks): New.
261 (cgraph_optimize): Call it.
262 Return if any IPA pass finds an error.
263 * varasm.c (finish_aliases_1): Ignore errorneous aliases used
266 2009-09-03 Simon Baldwin <simonb@google.com>
267 Rafael Espindola <espindola@google.com>
268 Richard Guenther <rguenther@suse.de>
269 Doug Kwan <dougkwan@google.com>
270 Diego Novillo <dnovillo@google.com>
272 * tree.c: Include tree-pass.h, langhooks-def.h,
273 diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
274 (free_lang_data_in_type): New.
275 (need_assembler_name_p): New.
276 (free_lang_data_in_block): New.
277 (free_lang_data_in_decl): New.
278 (struct free_lang_data_d): New.
279 (add_tree_to_fld_list): New.
280 (find_decls_types_r): New.
281 (get_eh_types_for_runtime): New.
282 (find_decls_types_in_eh_region): New.
283 (find_decls_types_in_node): New.
284 (find_decls_types_in_var): New.
285 (free_lang_data_in_cgraph): New.
286 (free_lang_data): New.
287 (gate_free_lang_data): New.
288 (pass_ipa_free_lang_data): New.
290 2009-09-03 Diego Novillo <dnovillo@google.com>
292 * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
293 * langhooks.h (struct lang_hooks): Add field free_lang_data.
294 (lang_hooks): Remove const qualifier.
295 * ipa.c (cgraph_remove_unreachable_nodes): Call
296 remove_unreachable_alias_pairs.
297 * except.c (add_type_for_runtime): Check if TYPE has
298 already been converted.
299 (lookup_type_for_runtime): Likewise.
300 (check_handled): Handle converted types.
301 * varasm.c (remove_unreachable_alias_pairs): New.
302 * gimple.c: Include demangle.h.
303 (gimple_decl_printable_name): New.
304 (gimple_fold_obj_type_ref): New.
305 * gimple.h (gimple_decl_printable_name): Declare.
306 (gimple_fold_obj_type_ref): Declare.
307 * passes.c (init_optimization_passes): Add pass
308 pass_ipa_free_lang_data.
309 * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
310 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
312 2009-09-03 Diego Novillo <dnovillo@google.com>
314 * c-lang.c (lang_hooks): Remove const qualifier.
316 2009-09-02 Loren James Rittle <ljrittle@acm.org>
318 * doc/install.texi (*-*-freebsd*): Update target information.
320 2009-09-02 Anatoly Sokolov <aesok@post.ru>
322 * hard-reg-set.h (call_fixed_regs): Remove.
323 * reginfo.c (call_fixed_regs): Remove.
324 (init_reg_sets_1): Remove initialization of call_fixed_regs.
325 (globalize_reg): Don't use call_fixed_regs.
326 * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
329 2009-09-01 Michael Matz <matz@suse.de>
331 * expr.h (emit_storent_insn, expand_expr_real_1,
332 expand_expr_real_2): Declare.
333 * expr.c (emit_storent_insn, expand_expr_real_1,
334 expand_expr_real_2): Export.
335 (store_expr): Setting and evaluating dont_return_target is
337 (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
338 LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
339 * except.c (expand_resx_expr): Rename to ...
340 (expand_resx_stmt): ... this. Rewrite to take gimple statement.
341 * except.h (expand_resx_stmt): Declare.
342 * stmt.c: Add include gimple.h
343 (expand_asm_expr): Rename to ...
344 (expand_asm_stmt): ... this. Rewrite to take gimple statement.
345 (expand_case): Rewrite to take gimple statement.
346 * tree.h (expand_asm_stmt): Declare.
347 (expand_case): Change prototype.
348 * Makefile.in (stmt.o): Depend on gimple.h.
349 * builtins.c (expand_builtin_synchronize): Build gimple asm
350 statement, not an ASM_EXPR.
351 * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
352 gimple_to_tree, release_stmt_tree): Remove.
353 (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
354 ggc_free, but hold comparison code and operands separately.
355 Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
356 (expand_call_stmt, expand_gimple_stmt_1,
357 expand_gimple_stmt): New helpers.
358 (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
359 release_stmt_tree. Call expand_gimple_stmt instead.
360 (expand_gimple_basic_block): Ditto.
362 * calls.c (emit_call_1): Don't look at EH regions here, make
363 fntree parameter useless.
364 (expand_call): New local rettype for TREE_TYPE(exp), use it
365 throughout. Remove local p, use addr instead.
366 Don't look at EH regions here.
368 2009-09-02 Vladimir Makarov <vmakarov@redhat.com>
370 * doc/invoke.texi (-fsched-pressure): Document it.
371 (-fsched-reg-pressure-heuristic): Remove it.
373 * reload.c (ira.h): Include.
374 (find_reloads): Add choosing reload on number of small spilled
377 * haifa-sched.c (ira.h): Include.
378 (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
379 saved_reg_pressure, curr_reg_live, saved_reg_live,
380 region_ref_regs): New variables.
381 (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
382 initiate_reg_pressure_info, setup_ref_regs,
383 initiate_bb_reg_pressure_info, save_reg_pressure,
384 restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
386 (setup_insn_reg_pressure_info): New function.
387 (rank_for_schedule): Add pressure checking and insn issue time.
388 Remove comparison of insn reg weights.
389 (ready_sort): Set insn reg pressure info.
390 (update_register_pressure, setup_insn_max_reg_pressure,
391 update_reg_and_insn_max_reg_pressure,
392 sched_setup_bb_reg_pressure_info): New functions.
393 (schedule_insn): Add code for printing and updating reg pressure
395 (find_set_reg_weight, find_insn_reg_weight): Remove.
396 (ok_for_early_queue_removal): Do nothing if pressure_only_p.
397 (debug_ready_list): Print reg pressure info.
398 (schedule_block): Ditto. Check insn issue time.
399 (sched_init): Set up sched_pressure_p. Allocate and set up some
400 reg pressure related info.
401 (sched_finish): Free some reg pressure related info.
402 (fix_tick_ready): Make insn always ready if pressure_p.
403 (init_h_i_d): Don't call find_insn_reg_weight.
404 (haifa_finish_h_i_d): Free insn reg pressure info.
406 * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
407 ira_memory_move_cost, ira_class_hard_regs,
408 ira_class_hard_regs_num, ira_no_alloc_regs,
409 ira_available_class_regs, ira_reg_class_cover_size,
410 ira_reg_class_cover, ira_class_translate): Move to ira.h.
412 * ira-lives.c (single_reg_class): Check mode to find how many
413 registers are necessary for operand.
414 (ira_implicitly_set_insn_hard_regs): New.
416 * common.opt (fsched-pressure): New options.
417 (fsched-reg-pressure-heuristic): Remove.
419 * ira.c (setup_eliminable_regset): Rename to
420 ira_setup_eliminable_regset. Make it external.
421 (expand_reg_info): Pass cover class to setup_reg_classes.
422 (ira): Call resize_reg_info instead of allocate_reg_info.
424 * sched-deps.c: Include ira.h.
425 (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
426 (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
427 reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
428 mark_insn_hard_regno_birth, mark_insn_reg_birth,
429 mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
430 mark_insn_reg_store, mark_insn_reg_clobber,
431 setup_insn_reg_pressure_info): New.
432 (sched_analyze_1): Update implicit_reg_pending_uses.
433 (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
434 Use them to create dependencies. Set insn reg uses and pressure
435 info. Process reg_pending_uses in one place.
436 (free_deps): Free implicit sets.
437 (remove_from_deps): Remove implicit sets if necessary. Check
438 implicit sets when clearing reg_last_in_use.
439 (init_deps_global): Clear implicit_reg_pending_clobbers and
440 implicit_reg_pending_uses.
442 * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
443 ira_memory_move_cost, ira_class_hard_regs,
444 ira_class_hard_regs_num, ira_no_alloc_regs,
445 ira_available_class_regs, ira_reg_class_cover_size,
446 ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
447 (ira_setup_eliminable_regset, ira_set_pseudo_classes,
448 ira_implicitly_set_insn_hard_regs): New prototypes.
450 * ira-costs.c (pseudo_classes_defined_p, allocno_p,
451 cost_elements_num): New variables.
452 (allocno_costs, total_costs): Rename to costs and
454 (COSTS_OF_ALLOCNO): Rename to COSTS.
455 (allocno_pref): Rename to pref.
456 (allocno_pref_buffer): Rename to pref_buffer.
457 (common_classes): Rename to regno_cover_class.
459 (record_reg_classes): Set allocno attributes only if allocno_p.
460 (record_address_regs): Ditto. Use COST_INDEX instead of
462 (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
463 and COSTS_OF_ALLOCNO.
464 (print_costs): Rename to print_allocno_costs.
465 (print_pseudo_costs): New.
466 (process_bb_node_for_costs): Split into 2 functions with new
467 function process_bb_for_costs. Pass BB to process_bb_for_costs.
468 (find_allocno_class_costs): Rename to find_costs_and_classes. Add
469 new parameter dump_file. Use cost_elements_num instead of
470 ira_allocnos_num. Make one iteration if preferred classes were
471 already calculated for scheduler. Make 2 versions of code
472 depending on allocno_p.
473 (setup_allocno_cover_class_and_costs): Check allocno_p. Use
474 regno_cover_class and COSTS instead of common_classes and
476 (init_costs, finish_costs): New.
477 (ira_costs): Set up allocno_p and cost_elements_num. Call
478 init_costs and finish_costs.
479 (ira_set_pseudo_classes): New.
481 * rtl.h (allocate_reg_info): Remove.
482 (resize_reg_info): Change return type.
483 (reg_cover_class): New.
484 (setup_reg_classes): Add new parameter.
486 * sched-int.h (struct deps_reg): New member implicit_sets.
487 (sched_pressure_p, sched_regno_cover_class): New external
489 (INCREASE_BITS): New macro.
490 (struct reg_pressure_data, struct reg_use_data): New.
491 (struct _haifa_insn_data): Remove reg_weight. Add members
492 reg_pressure, reg_use_list, reg_set_list, and
493 reg_pressure_excess_cost_change.
494 (struct deps): New member implicit_sets.
495 (pressure_p): New variable.
496 (COVER_CLASS_BITS, INCREASE_BITS): New macros.
497 (struct reg_pressure_data, struct reg_use_data): New.
498 (INSN_REG_WEIGHT): Remove.
499 (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
500 INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New
502 (sched_init_region_reg_pressure_info,
503 sched_setup_bb_reg_pressure_info): New prototypes.
505 * reginfo.c (struct reg_pref): New member coverclass.
506 (reg_cover_class): New function.
507 (reginfo_init, pass_reginfo_init): Move after free_reg_info.
508 (reg_info_size): New variable.
509 (allocate_reg_info): Make static. Setup reg_info_size.
510 (resize_reg_info): Use reg_info_size. Return flag of resizing.
511 (setup_reg_classes): Add a new parameter. Setup cover class too.
513 * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to the
516 * sched-rgn.c (deps_join): Set up implicit_sets.
517 (schedule_region): Set up region and basic blocks pressure
520 * passes.c (init_optimization_passes): Move
521 pass_subregs_of_mode_init before pass_sched.
523 2009-09-02 Martin Jambor <mjambor@suse.cz>
525 * tree-sra.c (struct access): New field grp_hint.
526 (dump_access): Dump grp_hint.
527 (sort_and_splice_var_accesses): Set grp_hint if a group is read
529 (analyze_access_subtree): Only scalarize accesses with grp_hint set or
530 those which have been specifically read and somehow written to.
531 (propagate_subacesses_accross_link): Set grp_hint of right child and
532 also possibly of the left child.
534 2009-09-02 Jakub Jelinek <jakub@redhat.com>
536 * tree-object-size.c (addr_object_size): Always use object_size_type
537 0 or 2 when determining the pointer pointed object size.
539 2009-09-02 Richard Guenther <rguenther@suse.de>
542 2009-08-31 Richard Guenther <rguenther@suse.de>
544 * builtins.c (fold_builtin_memory_op): Use the alias oracle
545 to query if the memory regions for memmove overlap.
546 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
547 asserts on pointers, instead deal with odd trees.
548 (ptr_derefs_may_alias_p): Likewise.
549 (refs_may_alias_p_1): Constructor bases also never alias.
551 2009-08-01 Christian Bruel <christian.bruel@st.com>
554 2009-07-31 Christian Bruel <christian.bruel@st.com>
555 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
557 2009-09-01 Alexandre Oliva <aoliva@redhat.com>
559 * doc/invoke.texi (-fvar-tracking-assignments): New.
560 (-fvar-tracking-assignments-toggle): New.
561 (-fdump-final-insns=file): Mark filename as optional.
562 (--param min-nondebug-insn-uid): New.
563 (-gdwarf-@{version}): Mention version 4.
564 * opts.c (common_handle_option): Accept it.
565 * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
566 * regrename.c (regrename_optimize): Drop last. Don't count debug
567 insns as uses. Don't reject change because of debug insn.
568 (do_replace): Reject DEBUG_INSN as chain starter. Take base_regno
569 from the chain starter, and check for inexact matches in
571 (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
572 (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
573 * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
574 * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
575 * doc/gimple.texi (is_gimple_debug): New.
576 (gimple_debug_bind_p): New.
577 (is_gimple_call, gimple_assign_cast_p): End sentence with period.
578 * doc/install.texi (bootstrap-debug): More details.
579 (bootstrap-debug-big, bootstrap-debug-lean): Document.
580 (bootstrap-debug-lib): More details.
581 (bootstrap-debug-ckovw): Update.
582 (bootstrap-time): New.
583 * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
584 (insert_phi_nodes_for): Insert debug stmts.
585 (rewrite_stmt): Take iterator. Insert debug stmts.
586 (rewrite_enter_block): Adjust.
587 (maybe_replace_use_in_debug_stmt): New.
588 (rewrite_update_stmt): Use it.
589 (mark_use_interesting): Return early for debug stmts.
590 * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
591 stmts before replacing stmt.
592 (move_computations_stmt): Likewise.
593 * ira-conflicts.c (add_copies): Skip debug insns.
594 * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
595 (regstat_bb_compute_ri): Skip debug insns.
596 * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
597 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
598 check_loop_closed_ssa_stmt): Skip debug stmts.
599 * tree-tailcall.c (find_tail_calls): Likewise.
600 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
601 * tree.h (MAY_HAVE_DEBUG_STMTS): New.
602 (build_var_debug_value_stat): Declare.
603 (build_var_debug_value): Define.
604 (target_for_debug_bind): Declare.
605 * reload.c (find_equiv_reg): Skip debug insns.
606 * rtlanal.c (reg_used_between_p): Skip debug insns.
607 (side_effects_p): Likewise.
608 (canonicalize_condition): Likewise.
609 * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
610 insns never depend on debug insns.
611 (create_ddg_dep_no_link): Likewise.
612 (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
613 Don't add inter-loop dependencies for debug insns.
614 (build_intra_loop_deps): Likewise.
615 (create_ddg): Count debug insns.
616 * ddg.h (struct ddg::num_debug): New.
617 (num_backargs): Pair up with previous int field.
618 * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
619 -fcompare-debug-second.
620 * final.c (get_attr_length_1): Skip debug insns.
621 (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
622 * gcc.c (invoke_as): Call compare-debug-dump-opt.
623 (driver_self_specs): Map -fdump-final-insns to
624 -fdump-final-insns=..
625 (get_local_tick): New.
626 (compare_debug_dump_opt_spec_function): Test for . argument and
627 compute output name. Compute temp output spec without flag name.
628 Compute -frandom-seed.
629 (OPT): Undef after use.
630 * cfgloopanal.c (num_loop_insns): Skip debug insns.
631 (average_num_loop_insns): Likewise.
632 * params.h (MIN_NONDEBUG_INSN_UID): New.
633 * gimple.def (GIMPLE_DEBUG): New.
634 * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
635 * auto-inc-dec.c (merge_in_block): Skip debug insns.
636 (merge_in_block): Fix whitespace.
637 * toplev.c (flag_var_tracking): Update comment.
638 (flag_var_tracking_assignments): New.
639 (flag_var_tracking_assignments_toggle): New.
640 (process_options): Don't open final insns dump file if we're not
641 going to write to it. Compute defaults for var_tracking.
642 * df-scan.c (df_insn_rescan_debug_internal): New.
643 (df_uses_record): Handle debug insns.
644 * haifa-sched.c (ready): Initialize n_debug.
645 (contributes_to_priority): Skip debug insns.
646 (dep_list_size): New.
648 (rank_for_schedule): Likewise. Schedule debug insns as soon as
649 they're ready. Disregard previous debug insns to make decisions.
650 (queue_insn): Never queue debug insns.
651 (ready_add, ready_remove_first, ready_remove): Count debug insns.
652 (schedule_insn): Don't reject debug insns because of issue rate.
653 (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
654 (queue_to_ready): Skip and discount debug insns.
655 (choose_ready): Let debug insns through.
656 (schedule_block): Check boundary debug insns. Discount debug
657 insns, schedule them early. Adjust whitespace.
658 (set_priorities): Check for boundary debug insns.
659 (add_jump_dependencies): Use dep_list_size.
660 (prev_non_location_insn): New.
662 * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
664 (remove_unused_ivs): Reset debug stmts.
665 * modulo-sched.c (const_iteration_count): Skip debug insns.
666 (res_MII): Discount debug insns.
667 (loop_single_full_bb_p): Skip debug insns.
668 (sms_schedule): Likewise.
669 (sms_schedule_by_order): Likewise.
670 (ps_has_conflicts): Likewise.
671 * caller-save.c (refmarker_fn): New.
672 (save_call_clobbered_regs): Replace regs with saved mem in
674 (mark_referenced_regs): Take pointer, mark and arg. Adjust.
675 Call refmarker_fn mark for hardregnos.
676 (mark_reg_as_referenced): New.
677 (replace_reg_with_saved_mem): New.
678 * ipa-pure-const.c (check_stmt): Skip debug stmts.
679 * cse.c (cse_insn): Canonicalize debug insns. Skip them when
681 (cse_extended_basic_block): Skip debug insns.
682 (count_reg_usage): Likewise.
683 (is_dead_reg): New, split out of...
684 (set_live_p): ... here.
685 (insn_live_p): Use it for debug insns.
686 * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
687 (execute_optimize_stdarg): Likewise.
688 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
689 * tree-ssa-propagate.c (substitute_and_fold): Don't regard
690 changes in debug stmts as changes.
691 * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
692 (moveup_expr): Don't move across debug insns. Don't move
693 debug insn if it would create a bookkeeping block.
694 (moveup_expr_cached): Don't use cache for debug insns that
696 (compute_av_set_inside_bb): Skip debug insns.
697 (sel_rank_for_schedule): Schedule debug insns first. Remove
699 (block_valid_for_bookkeeping_p); Support lax searches.
700 (create_block_for_bookkeeping): Adjust block numbers when
701 encountering debug-only blocks.
702 (find_place_for_bookkeeping): Deal with debug-only blocks.
703 (generate_bookkeeping_insn): Accept no place to insert.
704 (remove_temp_moveop_nops): New argument full_tidying.
705 (prepare_place_to_insert): Deal with debug insns.
706 (advance_state_on_fence): Debug insns don't start cycles.
707 (update_boundaries): Take fence as argument. Deal with
709 (schedule_expr_on_boundary): No full_tidying on debug insns.
710 (fill_insns): Deal with debug insns.
711 (track_scheduled_insns_and_blocks): Don't count debug insns.
712 (need_nop_to_preserve_insn_bb): New, split out of...
713 (remove_insn_from_stream): ... this.
714 (fur_orig_expr_not_found): Skip debug insns.
715 * rtl.def (VALUE): Move up.
717 * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug
719 (nearest_common_dominator_of_uses): Take debug_stmts argument.
720 Set it if debug stmts are found.
721 (statement_sink_location): Skip debug stmts. Propagate
722 moving defs into debug stmts.
723 * ifcvt.c (first_active_insn): Skip debug insns.
724 (last_active_insns): Likewise.
725 (cond_exec_process_insns): Likewise.
726 (noce_process_if_block): Likewise.
727 (check_cond_move_block): Likewise.
728 (cond_move_convert_if_block): Likewise.
729 (block_jumps_and_fallthru_p): Likewise.
730 (dead_or_predicable): Likewise.
731 * dwarf2out.c (debug_str_hash_forced): New.
732 (find_AT_string): Add comment.
733 (gen_label_for_indirect_string): New.
734 (get_debug_string_label): New.
735 (AT_string_form): Use it.
736 (mem_loc_descriptor): Handle non-TLS symbols. Handle MINUS , DIV,
737 MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING. Accept but
738 discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
739 several operations that cannot be represented with DWARF opcodes.
740 (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND. Require
741 dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
742 (dwarf2out_var_location): Take during-call mark into account.
743 (output_indirect_string): Update comment. Output if there are
744 label and references.
745 (prune_indirect_string): New.
746 (prune_unused_types): Call it if debug_str_hash_forced.
747 More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
748 (dw_long_long_const): Remove.
749 (struct dw_val_struct): Change val_long_long type to rtx.
750 (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
751 val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
752 (output_die): Likewise. Use HOST_BITS_PER_WIDE_INT size of each
753 component instead of HOST_BITS_PER_LONG.
754 (output_loc_operands): Likewise. For const8* assert
755 HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
756 (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
757 rather than HOST_BITS_PER_LONG is >= 64.
758 (add_AT_long_long): Remove val_hi and val_lo arguments, add
760 (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
761 HOST_BITS_PER_LONG for dw_val_class_long_long.
762 (add_const_value_attribute): Adjust add_AT_long_long caller. Don't
763 handle TLS SYMBOL_REFs. If CONST wraps a constant, tail recurse.
764 (dwarf_stack_op_name): Handle DW_OP_implicit_value and
766 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
767 Handle DW_OP_implicit_value.
768 (extract_int): Move prototype earlier.
769 (mem_loc_descriptor): For SUBREG punt if inner
770 mode size is wider than DWARF2_ADDR_SIZE. Handle SIGN_EXTEND
771 and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}. Handle
772 EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
773 UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
774 (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
775 instead of Pmode size.
776 (loc_descriptor): Add MODE argument. Handle CONST_INT, CONST_DOUBLE,
777 CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
778 attempt to handle other expressions. Don't handle TLS SYMBOL_REFs.
779 (concat_loc_descriptor, concatn_loc_descriptor,
780 loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
781 (add_location_or_const_value_attribute): Likewise. For single
782 location loc_lists attempt to use add_const_value_attribute
783 for constant decls. Add DW_AT_const_value even if
784 NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
786 * cfgbuild.c (inside_basic_block_p): Handle debug insns.
787 (control_flow_insn_p): Likewise.
788 * tree-parloops.c (eliminate_local_variables_stmt): Handle debug
790 (separate_decls_in_region_debug_bind): New.
791 (separate_decls_in_region): Process debug bind stmts afterwards.
792 * recog.c (verify_changes): Handle debug insns.
793 (extract_insn): Likewise.
794 (peephole2_optimize): Skip debug insns.
795 * dse.c (scan_insn): Skip debug insns.
796 * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
798 (setup_id_for_insn): Handle debug insns.
799 (maybe_tidy_empty_bb): Adjust whitespace.
800 (tidy_control_flow): Skip debug insns.
801 (sel_remove_insn): Adjust for debug insns.
802 (sel_estimate_number_of_insns): Skip debug insns.
803 (create_insn_rtx_from_pattern): Handle debug insns.
804 (create_copy_of_insn_rtx): Likewise.
805 * sel-sched-.h (sel_bb_end): Declare.
806 (sel_bb_empty_or_nop_p): New.
807 (get_all_loop_exits): Use it.
808 (_eligible_successor_edge_p): Likewise.
809 (return_nop_to_pool): Adjust.
810 * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
811 * ira-lives.c (process_bb_node_lives): Skip debug insns.
812 * gimple-pretty-print.c (dump_gimple_debug): New.
813 (dump_gimple_stmt): Use it.
814 (dump_bb_header): Skip gimple debug stmts.
815 * regmove.c (optimize_reg_copy_1): Discount debug insns.
816 (fixup_match_2): Likewise.
817 (regmove_backward_pass): Likewise. Simplify combined
818 replacement. Handle debug insns.
819 * function.c (instantiate_virtual_regs): Handle debug insns.
820 * function.h (struct emit_status): Add x_cur_debug_insn_uid.
821 * print-rtl.h: Include cselib.h.
822 (print_rtx): Print VALUEs. Split out and recurse for
824 * df.h (df_inns_rescan_debug_internal): Declare.
825 * gcse.c (alloc_hash_table): Estimate n_insns.
826 (cprop_insn): Don't regard debug insns as changes.
827 (bypass_conditional_jumps): Skip debug insns.
828 (one_pre_gcse_pass): Adjust.
829 (one_code_hoisting_pass): Likewise.
830 (compute_ld_motion_mems): Skip debug insns.
831 (one_cprop_pass): Adjust.
832 * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
833 (if_convertible_stmt_p): Handle debug stmts.
834 * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
835 * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
836 * ira-build.c (create_bb_allocnos): Skip debug insns.
837 * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
838 (has_single_use): Likewise.
839 (single_imm_use): Likewise.
840 (num_imm_uses): Likewise.
841 * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
842 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
843 (create_outofssa_var_map): Likewise.
844 * lower-subreg.c (adjust_decomposed_uses): New.
845 (resolve_debug): New.
846 (decompose_multiword_subregs): Use it.
847 * tree-dfa.c (find_referenced_vars): Skip debug stmts.
848 * emit-rtl.c: Include params.h.
849 (cur_debug_insn_uid): Define.
850 (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
851 (copy_rtx_if_shared_1): Handle debug insns.
852 (reset_used_flags): Likewise.
853 (set_used_flags): LIkewise.
854 (get_max_insn_count): New.
855 (next_nondebug_insn): New.
856 (prev_nondebug_insn): New.
857 (make_debug_insn_raw): New.
858 (emit_insn_before_noloc): Handle debug insns.
859 (emit_jump_insn_before_noloc): Likewise.
860 (emit_call_insn_before_noloc): Likewise.
861 (emit_debug_insn_before_noloc): New.
862 (emit_insn_after_noloc): Handle debug insns.
863 (emit_jump_insn_after_noloc): Likewise.
864 (emit_call_insn_after_noloc): Likewise.
865 (emit_debug_insn_after_noloc): Likewise.
866 (emit_insn_after): Take loc from earlier non-debug insn.
867 (emit_jump_insn_after): Likewise.
868 (emit_call_insn_after): Likewise.
869 (emit_debug_insn_after_setloc): New.
870 (emit_debug_insn_after): New.
871 (emit_insn_before): Take loc from later non-debug insn.
872 (emit_jump_insn_before): Likewise.
873 (emit_call_insn_before): Likewise.
874 (emit_debug_insn_before_setloc): New.
875 (emit_debug_insn_before): New.
876 (emit_insn): Handle debug insns.
877 (emit_debug_insn): New.
878 (emit_jump_insn): Handle debug insns.
879 (emit_call_insn): Likewise.
881 (init_emit): Take min-nondebug-insn-uid into account.
882 Initialize cur_debug_insn_uid.
883 (emit_copy_of_insn_after): Handle debug insns.
884 * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
885 location of single rhs in place.
886 (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
887 (floor_sdiv_adjust): New.
888 (cell_sdiv_adjust): New.
889 (cell_udiv_adjust): New.
890 (round_sdiv_adjust): New.
891 (round_udiv_adjust): New.
892 (wrap_constant): Moved from cselib.
893 (unwrap_constant): New.
894 (expand_debug_expr): New.
895 (expand_debug_locations): New.
896 (expand_gimple_basic_block): Drop hiding redeclaration. Expand
898 (gimple_expand_cfg): Expand debug locations.
899 * cselib.c: Include tree-pass.h.
900 (struct expand_value_data): New.
901 (cselib_record_sets_hook): New.
902 (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
903 (cselib_clear_table): Move, and implemnet in terms of...
904 (cselib_reset_table_with_next_value): ... this.
905 (cselib_get_next_unknown_value): New.
906 (discard_useless_locs): Don't discard preserved values.
907 (cselib_preserve_value): New.
908 (cselib_preserved_value_p): New.
909 (cselib_preserve_definitely): New.
910 (cselib_clear_preserve): New.
911 (cselib_preserve_only_values): New.
912 (new_cselib_val): Take rtx argument. Dump it in details.
913 (cselib_lookup_mem): Adjust.
914 (expand_loc): Take regs_active in struct. Adjust. Silence
915 dumps unless details are requested.
916 (cselib_expand_value_rtx_cb): New.
917 (cselib_expand_value_rtx): Rename and reimplment in terms of...
918 (cselib_expand_value_rtx_1): ... this. Adjust. Silence dumps
919 without details. Copy more subregs. Try to resolve values
920 using a callback. Wrap constants.
921 (cselib_subst_to_values): Adjust.
922 (cselib_log_lookup): New.
923 (cselib_lookup): Call it.
924 (cselib_invalidate_regno): Don't count preserved values as
926 (cselib_invalidate_mem): Likewise.
927 (cselib_record_set): Likewise.
928 (struct set): Renamed to cselib_set, moved to cselib.h.
929 (cselib_record_sets): Adjust. Call hook.
930 (cselib_process_insn): Reset table when it would be cleared.
931 (dump_cselib_val): New.
932 (dump_cselib_table): New.
933 * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
934 (remove_forwarder_block): Support moving debug stmts.
935 * cselib.h (cselib_record_sets_hook): Declare.
936 (cselib_expand_callback): New type.
937 (cselib_expand_value_rtx_cb): Declare.
938 (cselib_reset_table_with_next_value): Declare.
939 (cselib_get_next_unknown_value): Declare.
940 (cselib_preserve_value): Declare.
941 (cselib_preserved_value_p): Declare.
942 (cselib_preserve_only_values): Declare.
943 (dump_cselib_table): Declare.
944 * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
945 (try_crossjump_to_edge): Likewise.
946 (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
947 dominated blocks when debug stmts are present.
948 * simplify-rtx.c (delegitimize_mem_from_attrs): New.
949 * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
950 (set_var_live_on_entry): Likewise.
951 * loop-invariant.c (find_invariants_bb): Skip debug insns.
952 * cfglayout.c (curr_location, last_location): Make static.
953 (set_curr_insn_source_location): Don't avoid bouncing.
954 (get_curr_insn_source_location): New.
955 (get_curr_insn_block): New.
956 (duplicate_insn_chain): Handle debug insns.
957 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
959 * common.opt (fcompare-debug): Move to sort order.
960 (fdump-unnumbered-links): Likewise.
961 (fvar-tracking-assignments): New.
962 (fvar-tracking-assignments-toggle): New.
963 * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
964 because of debug stmts.
965 (mark_stmt_if_obviously_necessary): Mark debug stmts.
966 (eliminate_unnecessary_stmts): Walk dominated blocks before
968 * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
969 * ira.c (memref_used_between_p): Skip debug insns.
970 (update_equiv_regs): Likewise.
971 * sched-deps.c (sd_lists_size): Accept empty list.
972 (sd_init_insn): Mark debug insns.
973 (sd_finish_insn): Unmark them.
974 (sd_add_dep): Reject non-debug deps on debug insns.
975 (fixup_sched_groups): Give debug insns group treatment.
977 (sched_analyze_reg): Don't mark debug insns for sched before call.
978 (sched_analyze_2): Handle debug insns.
979 (sched_analyze_insn): Compute next non-debug insn. Handle debug
981 (deps_analyze_insn): Handle debug insns.
982 (deps_start_bb): Skip debug insns.
983 (init_deps): Initialize last_debug_insn.
984 * tree-ssa.c (target_for_debug_bind): New.
985 (find_released_ssa_name): New.
986 (propagate_var_def_into_debug_stmts): New.
987 (propagate_defs_into_debug_stmts): New.
988 (verify_ssa): Skip debug bind stmts without values.
989 (warn_uninialized_vars): Skip debug stmts.
990 * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
991 * rtl.c (rtx_equal_p_cb): Handle VALUEs.
992 (rtx_equal_p): Likewise.
993 * ira-costs.c (scan_one_insn): Skip debug insns.
994 (process_bb_node_for_hard_reg_moves): Likewise.
995 * rtl.h (DEBUG_INSN_P): New.
996 (NONDEBUG_INSN_P): New.
997 (MAY_HAVE_DEBUG_INSNS): New.
998 (INSN_P): Accept debug insns.
999 (RTX_FRAME_RELATED_P): Likewise.
1000 (INSN_DELETED_P): Likewise
1001 (PAT_VAR_LOCATION_DECL): New.
1002 (PAT_VAR_LOCATION_LOC): New.
1003 (PAT_VAR_OCATION_STATUS): New.
1004 (NOTE_VAR_LOCATION_DECL): Reimplement.
1005 (NOTE_VAR_LOCATION_LOC): Likewise.
1006 (NOTE_VAR_LOCATION_STATUS): Likewise.
1007 (INSN_VAR_LOCATION): New.
1008 (INSN_VAR_LOCATION_DECL): New.
1009 (INSN_VAR_LOCATION_LOC): New.
1010 (INSN_VAR_LOCATION_STATUS): New.
1011 (gen_rtx_UNKNOWN_VAR_LOC): New.
1012 (VAR_LOC_UNKNOWN_P): New.
1013 (NOTE_DURING_CALL_P): New.
1014 (SCHED_GROUP_P): Accept debug insns.
1015 (emit_debug_insn_before): Declare.
1016 (emit_debug_insn_before_noloc): Declare.
1017 (emit_debug_insn_beore_setloc): Declare.
1018 (emit_debug_insn_after): Declare.
1019 (emit_debug_insn_after_noloc): Declare.
1020 (emit_debug_insn_after_setloc): Declare.
1021 (emit_debug_insn): Declare.
1022 (make_debug_insn_raw): Declare.
1023 (prev_nondebug_insn): Declare.
1024 (next_nondebug_insn): Declare.
1025 (delegitimize_mem_from_attrs): Declare.
1026 (get_max_insn_count): Declare.
1027 (wrap_constant): Declare.
1028 (unwrap_constant): Declare.
1029 (get_curr_insn_source_location): Declare.
1030 (get_curr_insn_block): Declare.
1031 * tree-inline.c (insert_debug_decl_map): New.
1032 (processing_debug_stmt): New.
1033 (remap_decl): Don't create new mappings in debug stmts.
1034 (remap_gimple_op_r): Don't add references in debug stmts.
1035 (copy_tree_body_r): Likewise.
1036 (remap_gimple_stmt): Handle debug bind stmts.
1037 (copy_bb): Skip debug stmts.
1038 (copy_edges_for_bb): Likewise.
1039 (copy_debug_stmt): New.
1040 (copy_debug_stmts): New.
1041 (copy_body): Copy debug stmts at the end.
1042 (insert_init_debug_bind): New.
1043 (insert_init_stmt): Take id. Skip and emit debug stmts.
1044 (setup_one_parameter): Remap variable earlier, register debug
1046 (estimate_num_insns): Skip debug stmts.
1047 (expand_call_inline): Preserve debug_map.
1048 (optimize_inline_calls): Check for no debug_stmts left-overs.
1049 (unsave_expr_now): Preserve debug_map.
1050 (copy_gimple_seq_and_replace_locals): Likewise.
1051 (tree_function_versioning): Check for no debug_stmts left-overs.
1052 Init and destroy debug_map as needed. Split edges unconditionally.
1053 (build_duplicate_type): Init and destroy debug_map as needed.
1054 * tree-inline.h: Include gimple.h instead of pointer-set.h.
1055 (struct copy_body_data): Add debug_stmts and debug_map.
1056 * sched-int.h (struct ready_list): Add n_debug.
1057 (struct deps): Add last_debug_insn.
1058 (DEBUG_INSN_SCHED_P): New.
1059 (BOUNDARY_DEBUG_INSN_P): New.
1060 (SCHEDULE_DEBUG_INSN_P): New.
1061 (sd_iterator_cond): Accept empty list.
1062 * combine.c (create_log_links): Skip debug insns.
1063 (combine_instructions): Likewise.
1064 (cleanup_auto_inc_dec): New. From Jakub Jelinek: Make sure the
1065 return value is always unshared.
1066 (struct rtx_subst_pair): New.
1067 (auto_adjust_pair): New.
1068 (propagate_for_debug_subst): New.
1069 (propagate_for_debug): New.
1070 (try_combine): Skip debug insns. Propagate removed defs into
1072 (next_nonnote_nondebug_insn): New.
1073 (distribute_notes): Use it. Skip debug insns.
1074 (distribute_links): Skip debug insns.
1075 * tree-outof-ssa.c (set_location_for_edge): Likewise.
1076 * resource.c (mark_target_live_regs): Likewise.
1077 * var-tracking.c: Include cselib.h and target.h.
1078 (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
1080 (micro_operation_type_name): New.
1081 (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
1082 (struct micro_operation_def): Update comments.
1083 (decl_or_value): New type. Use instead of decls.
1084 (struct emit_note_data_def): Add vars.
1085 (struct attrs_def): Use decl_or_value.
1086 (struct variable_tracking_info_def): Add permp, flooded.
1087 (struct location_chain_def): Update comment.
1088 (struct variable_part_def): Use decl_or_value.
1089 (struct variable_def): Make var_part a variable length array.
1091 (scratch_regs): New.
1092 (cselib_hook_called): New.
1093 (dv_is_decl_p): New.
1094 (dv_is_value_p): New.
1097 (dv_as_opaque): New.
1098 (dv_onepart_p): New.
1100 (IS_DECL_CODE): New.
1101 (check_value_is_not_decl): New.
1102 (dv_from_decl): New.
1103 (dv_from_value): New.
1104 (dv_htab_hash): New.
1105 (variable_htab_hash): Use it.
1106 (variable_htab_eq): Support values.
1107 (variable_htab_free): Free from the right pool.
1108 (attrs_list_member, attrs_list_insert): Use decl_or_value.
1109 (attrs_list_union): Adjust.
1110 (attrs_list_mpdv_union): New.
1111 (tie_break_pointers): New.
1112 (canon_value_cmp): New.
1113 (unshare_variable): Return possibly-modified slot.
1114 (vars_copy_1): Adjust.
1115 (var_reg_decl_set): Adjust. Split out of...
1116 (var_reg_set): ... this.
1117 (get_init_value): Adjust.
1118 (var_reg_delete_and_set): Adjust.
1119 (var_reg_delete): Adjust.
1120 (var_regno_delete): Adjust.
1121 (var_mem_decl_set): Split out of...
1122 (var_mem_set): ... this.
1123 (var_mem_delete_and_set): Adjust.
1124 (var_mem_delete): Adjust.
1128 (variable_union): Adjust. Speed up merge of 1-part vars.
1129 (variable_canonicalize): Use unshared slot.
1130 (VALUED_RECURSED_INTO): New.
1131 (find_loc_in_1pdv): New.
1132 (struct dfset_merge): New.
1133 (insert_into_intersection): New.
1134 (intersect_loc_chains): New.
1136 (canonicalize_loc_order_check): New.
1137 (canonicalize_values_mark): New.
1138 (canonicalize_values_star): New.
1139 (variable_merge_over_cur): New.
1140 (variable_merge_over_src): New.
1141 (dataflow_set_merge): New.
1142 (dataflow_set_equiv_regs): New.
1143 (remove_duplicate_values): New.
1144 (struct dfset_post_merge): New.
1145 (variable_post_merge_new_vals): New.
1146 (variable_post_merge_perm_vals): New.
1147 (dataflow_post_merge_adjust): New.
1148 (find_mem_expr_in_1pdv): New.
1149 (dataflow_set_preserve_mem_locs): New.
1150 (dataflow_set_remove_mem_locs): New.
1151 (dataflow_set_clear_at_call): New.
1152 (onepart_variable_different_p): New.
1153 (variable_different_p): Use it.
1154 (dataflow_set_different_1): Adjust. Make detailed dump
1156 (track_expr_p): Add need_rtl parameter. Don't generate rtl
1158 (track_loc_p): Pass it true.
1159 (struct count_use_info): New.
1160 (find_use_val): New.
1161 (replace_expr_with_values): New.
1163 (use_type): New, partially split out of...
1164 (count_uses): ... this. Count new micro-ops.
1165 (count_uses_1): Adjust.
1166 (count_stores): Adjust.
1167 (count_with_sets): New.
1168 (VAL_NEEDS_RESOLUTION): New.
1169 (VAL_HOLDS_TRACK_EXPR): New.
1170 (VAL_EXPR_IS_COPIED): New.
1171 (VAL_EXPR_IS_CLOBBERED): New.
1172 (add_uses): Adjust. Generate new micro-ops.
1173 (add_uses_1): Adjust.
1174 (add_stores): Generate new micro-ops.
1175 (add_with_sets): New.
1176 (find_src_status): Adjust.
1177 (find_src_set_src): Adjust.
1178 (compute_bb_dataflow): Use dataflow_set_clear_at_call.
1179 Handle new micro-ops. Canonicalize value equivalances.
1180 (vt_find_locations): Compute total size of hash tables for
1181 dumping. Perform merge for var-tracking-assignments. Don't
1182 disregard single-block loops.
1183 (dump_attrs_list): Handle decl_or_value.
1184 (dump_variable): Take variable. Deal with decl_or_value.
1185 (dump_variable_slot): New.
1186 (dump_vars): Use it.
1187 (dump_dataflow_sets): Adjust.
1188 (set_slot_part): New, extended to support one-part variables
1189 after splitting out of...
1190 (set_variable_part): ... this.
1191 (clobber_slot_part): New, split out of...
1192 (clobber_variable_part): ... this.
1193 (delete_slot_part): New, split out of...
1194 (delete_variable_part): .... this.
1195 (check_wrap_constant): New.
1196 (vt_expand_loc_callback): New.
1197 (vt_expand_loc): New.
1198 (emit_note_insn_var_location): Adjust. Handle values. Handle
1199 EMIT_NOTE_AFTER_CALL_INSN.
1200 (emit_notes_for_differences_1): Adjust. Handle values.
1201 (emit_notes_for_differences_2): Likewise.
1202 (emit_notes_for_differences): Adjust.
1203 (emit_notes_in_bb): Take pointer to set. Emit AFTER_CALL_INSN
1204 notes. Adjust. Handle new micro-ops.
1205 (vt_add_function_parameters): Adjust. Create and bind values.
1206 (vt_initialize): Adjust. Initialize scratch_regs and
1207 valvar_pool, flooded and perm.. Initialize and use cselib. Log
1208 operations. Move some code to count_with_sets and add_with_sets.
1209 (delete_debug_insns): New.
1210 (vt_debug_insns_local): New.
1211 (vt_finalize): Release permp, valvar_pool, scratch_regs. Finish
1213 (var_tracking_main): If var-tracking-assignments is enabled
1214 but var-tracking isn't, delete debug insns and leave. Likewise
1215 if we exceed limits or fail the stack adjustments tests, and
1216 after all var-tracking processing.
1217 More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
1218 (dataflow_set): Add traversed_vars.
1219 (value_chain, const_value_chain): New typedefs.
1220 (value_chain_pool, value_chains): New variables.
1221 (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
1222 add_value_chains, add_cselib_value_chains, remove_value_chain,
1223 remove_value_chains, remove_cselib_value_chains): New functions.
1224 (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
1225 shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
1227 (shared_hash_find_slot_unshare, shared_hash_find_slot,
1228 shared_hash_find_slot_noinsert, shared_hash_find): Update.
1229 (dst_can_be_shared): New variable.
1230 (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
1231 Clear dst_can_be_shared. If set->traversed_vars is non-NULL and
1232 different from set->vars, look up slot again instead of using the
1234 (dataflow_set_init): Initialize traversed_vars.
1235 (variable_union): Use shared_hash_*. Use initially NO_INSERT
1236 lookup if set->vars is shared. Don't keep slot cleared before
1237 calling unshare_variable. Unshare set->vars if needed. Adjust
1238 unshare_variable callers. Clear dst_can_be_shared if needed.
1239 Even ->refcount == 1 vars must be unshared if set->vars is shared
1240 and var needs to be modified.
1241 (dataflow_set_union): Set traversed_vars during canonicalization.
1242 (VALUE_CHANGED, DECL_CHANGED): Define.
1243 (set_dv_changed, dv_changed_p): New static inlines.
1244 (track_expr_p): Clear DECL_CHANGED.
1245 (dump_dataflow_sets): Set it.
1246 (variable_was_changed): Call set_dv_changed.
1247 (emit_note_insn_var_location): Likewise.
1248 (changed_variables_stack): New variable.
1249 (check_changed_vars_1, check_changed_vars_2): New functions.
1250 (emit_notes_for_changes): Do nothing if changed_variables is
1251 empty. Traverse changed_variables with check_changed_vars_1,
1252 call check_changed_vars_2 on each changed_variables_stack entry.
1253 (emit_notes_in_bb): Add SET argument. Just clear it at the
1254 beginning, use it instead of local &set, don't destroy it at the
1256 (vt_emit_notes): Call dataflow_set_clear early on all
1257 VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
1258 computed set, dataflow_set_clear also VTI(bb)->in when we are
1259 done with the basic block. Initialize changed_variables_stack,
1260 free it afterwards. If ENABLE_CHECKING verify that after noting
1261 differences to an empty set value_chains hash table is empty.
1262 (vt_initialize): Initialize value_chains and value_chain_pool.
1263 (vt_finalize): Delete value_chains htab, free value_chain_pool.
1264 (variable_tracking_main): Call dump_dataflow_sets before calling
1265 vt_emit_notes, not after it.
1266 * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
1267 (propagate_var_def_into_debug_stmts): Declare.
1268 * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
1269 (df_set_note): Reject debug insns.
1270 (df_whole_mw_reg_dead_p): Take added_notes_p argument. Don't
1271 add notes to debug insns.
1272 (df_note_bb_compute): Adjust. Likewise.
1273 (df_simulate_uses): Skip debug insns.
1274 (df_simulate_initialize_backwards): Likewise.
1275 * reg-stack.c (subst_stack_regs_in_debug_insn): New.
1276 (subst_stack_regs_pat): Reject debug insns.
1277 (convert_regs_1): Handle debug insns.
1278 * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
1279 (print-rtl.o): Depend on cselib.h.
1280 (cselib.o): Depend on TREE_PASS_H.
1281 (var-tracking.o): Depend on cselib.h and TARGET_H.
1282 * sched-rgn.c (rgn_estimate_number_of_insns): Discount
1284 (init_ready_list): Skip boundary debug insns.
1285 (add_branch_dependences): Skip debug insns.
1286 (free_block_dependencies): Check for blocks with only debug
1288 (compute_priorities): Likewise.
1289 * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
1290 (gimple_build_with_ops_stat): Take subcode as unsigned. Adjust
1292 (gimple_build_debug_bind_stat): New.
1293 (empty_body_p): Skip debug stmts.
1294 (gimple_has_side_effects): Likewise.
1295 (gimple_rhs_has_side_effects): Likewise.
1296 * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
1297 (gimple_build_debug_bind_stat): Declare.
1298 (gimple_build_debug_bind): Define.
1299 (is_gimple_debug): New.
1300 (gimple_debug_bind_p): New.
1301 (gimple_debug_bind_get_var): New.
1302 (gimple_debug_bind_get_value): New.
1303 (gimple_debug_bind_get_value_ptr): New.
1304 (gimple_debug_bind_set_var): New.
1305 (gimple_debug_bind_set_value): New.
1306 (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
1307 (gimple_debug_bind_reset_value): New.
1308 (gimple_debug_bind_has_value_p): New.
1309 (gsi_next_nondebug): New.
1310 (gsi_prev_nondebug): New.
1311 (gsi_start_nondebug_bb): New.
1312 (gsi_last_nondebug_bb): New.
1313 * sched-vis.c (print_pattern): Handle VAR_LOCATION.
1314 (print_insn): Handle DEBUG_INSN.
1315 * tree-cfg.c (remove_bb): Walk stmts backwards. Let loc
1316 of first insn prevail.
1317 (first_stmt): Skip debug stmts.
1318 (first_non_label_stmt): Likewise.
1319 (last_stmt): Likewise.
1320 (has_zero_uses_1): New.
1321 (single_imm_use_1): New.
1322 (verify_gimple_debug): New.
1323 (verify_types_in_gimple_stmt): Handle debug stmts.
1324 (verify_stmt): Likewise.
1325 (debug_loop_num): Skip debug stmts.
1326 (remove_edge_and_dominated_blocks): Remove dominators last.
1327 * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into
1329 (linearize_expr): Likewise.
1330 * config/i386/i386.c (ix86_delegitimize_address): Call
1331 default implementation.
1332 * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug
1334 (group_barrier_needed): Skip debug insns.
1335 (emit_insn_group_barriers): Likewise.
1336 (emit_all_insn_group_barriers): Likewise.
1337 (ia64_variable_issue): Handle debug insns.
1338 (ia64_dfa_new_cycle): Likewise.
1339 (final_emit_insn_group_barriers): Skip debug insns.
1340 (ia64_dwarf2out_def_steady_cfa): Take frame argument. Don't
1341 def cfa without frame.
1342 (process_set): Likewise.
1343 (process_for_unwind_directive): Pass frame on.
1344 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
1345 (rs6000_delegitimize_address): New.
1346 (rs6000_debug_adjust_cost): Handle debug insns.
1347 (is_microcoded_insn): Likewise.
1348 (is_cracked_insn): Likewise.
1349 (is_nonpipeline_insn): Likewise.
1350 (insn_must_be_first_in_group): Likewise.
1351 (insn_must_be_last_in_group): Likewise.
1352 (force_new_group): Likewise.
1353 * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
1354 contains only debug insns.
1355 (rtl_merge_blocks): Skip debug insns.
1356 (purge_dead_edges): Likewise.
1357 (rtl_block_ends_with_call_p): Skip debug insns.
1358 * dce.c (deletable_insn_p): Handle VAR_LOCATION.
1359 (mark_reg_dependencies): Skip debug insns.
1360 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
1361 * tree-ssanames.c (release_ssa_name): Propagate def into
1363 * tree-ssa-threadedge.c
1364 (record_temporary_equivalences_from_stmts): Skip debug stmts.
1365 * regcprop.c (replace_oldest_value_addr): Skip debug insns.
1366 (replace_oldest_value_mem): Use ALL_REGS for debug insns.
1367 (copyprop_hardreg_forward_1): Handle debug insns.
1368 * reload1.c (reload): Skip debug insns. Replace unassigned
1369 pseudos in debug insns with their equivalences.
1370 (eliminate_regs_in_insn): Skip debug insns.
1371 (emit_input_reload_insns): Skip debug insns at first, adjust
1373 * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
1374 (get_indirect_ref_operands): Pass opf_no_vops on.
1375 (get_expr_operands): Likewise. Skip debug stmts.
1376 (parse_ssa_operands): Scan debug insns with opf_no_vops.
1378 2009-09-01 Richard Henderson <rth@redhat.com>
1380 * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
1381 stmt_ends_pp_p statements at least once.
1382 * tree-vrp.c (vrp_initialize): Likewise.
1383 (vrp_visit_stmt): Be prepared for non-interesting stmts.
1385 2009-09-01 Dodji Seketeli <dodji@redhat.com>
1388 Fix AIX bootstrap after PR debug/30161
1389 * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
1390 that is a GNU extension.
1391 (tmpl_value_parm_die_table): Move the definition of this global
1392 outside #ifdef DWARF2_DEBUGGING_INFO region.
1394 2009-09-01 Richard Guenther <rguenther@suse.de>
1396 * tree.c (tree_expr_size): New function.
1397 * tree.h (tree_expr_size): Declare.
1398 * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
1399 * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
1400 * langhooks.c (lhd_expr_size): Remove.
1401 * langhooks.h (struct lang_hooks): Remove expr_size.
1402 * explow.c (expr_size): Use tree_expr_size.
1403 (int_expr_size): Likewise.
1404 * langhooks-def.h (lhd_expr_size): Remove.
1405 (LANG_HOOKS_EXPR_SIZE): Likewise.
1406 (LANG_HOOKS_INITIALIZER): Adjust.
1408 2009-09-01 Richard Guenther <rguenther@suse.de>
1410 * tree-flow.h (mark_addressable): Move declaration ...
1411 * tree.h (mark_addressable): ... here.
1412 * stmt.c (expand_asm_operands): Use mark_addressable, not
1413 lang_hooks.mark_addressable.
1414 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
1415 LANG_HOOKS_MARK_ADDRESSABLE.
1416 * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
1417 * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
1419 2009-08-31 Chris Demetriou <cgd@google.com>
1421 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
1422 vectorize if not TARGET_SSE2.
1424 2009-08-31 DJ Delorie <dj@redhat.com>
1426 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
1427 registers if no coprocessor is enabled.
1429 2009-08-31 Dodji Seketeli <dodji@redhat.com>
1432 * cgraph.h (cgraph_get_node): Declare ...
1433 * cgraph.c (cgraph_get_node): ... new function.
1434 * dwarf2out.c (gen_generic_params_dies,
1435 generic_parameter_die, tree_add_const_value_attribute_for_decl,
1436 make_ith_pack_parameter_name,
1437 append_entry_to_tmpl_value_parm_die_table,
1438 gen_remaining_tmpl_value_param_die_attribute): New functions.
1439 (gen_subprogram_die): Generate debug info for template parameters
1440 if debug info level is higher than DINFO_LEVEL_TERSE.
1441 Use tree_add_const_value_attribute_for_decl instead of
1442 tree_add_const_value_attribute.
1443 (gen_const_die): Use tree_add_const_value_attribute_for_decl
1444 instead of tree_add_const_value_attribute.
1445 (gen_struct_or_union_type_die): Generate debug
1446 info for template parameters if debug info level is higher than
1448 (tree_add_const_value_attribute): Handle integral and pointer
1449 constants. Update comment.
1450 (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
1451 (dwarf_attr_name): Support DW_AT_GNU_template_name.
1452 (reference_to_unused): Fix thinko. Remove redundant predicates from
1454 (tree_add_const_value_attribute): Make this work for constant
1456 tree_add_const_value_attribute_for_decl is to be used for variable
1458 (add_location_or_const_value_attribute): Use
1459 tree_add_const_value_attribute_for_decl now.
1460 (dwarf2out_finish): Emit the DW_AT_const_value attribute of
1461 DW_TAG_template_value_param DIEs after function DIEs have been
1463 * langhooks.h (lang_hooks_for_types): Add
1464 get_argument_pack_elems.
1465 (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
1466 (lang_hooks): Added get_innermost_generic_parms,
1467 get_innermost_generic_args.
1468 * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
1469 LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
1470 LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
1471 LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
1473 2009-08-31 DJ Delorie <dj@redhat.com>
1475 * config/mep/mep.c (machine_function): Add frame_locked flag. Set
1476 it once we start generating the prologue or epilogue.
1477 (mep_call_saves_register): If the frame is locked, re-use
1479 (mep_assign_save_slots): New, broken out from mep_expand_prologue.
1480 (mep_expand_prologue): Call it.
1481 (mep_expand_epilogue): Likewise.
1482 (mep_start_function): Use the same logic as mep_expand_prologue.
1483 (mep_pass_by_reference): Make logic more readable.
1484 (mep_return_in_memory): Zero-sized objects are passed in memory.
1485 (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
1488 2009-08-31 Richard Guenther <rguenther@suse.de>
1490 * builtins.c (fold_builtin_memory_op): Use the alias oracle
1491 to query if the memory regions for memmove overlap.
1492 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
1493 asserts on pointers, instead deal with odd trees.
1494 (ptr_derefs_may_alias_p): Likewise.
1495 (refs_may_alias_p_1): Constructor bases also never alias.
1497 2009-08-31 Gerald Pfeifer <gerald@pfeifer.com>
1499 * doc/install.texi (Final install): Adjust reference on where to
1500 order printed manuals.
1502 2009-08-30 Olivier Hainque <hainque@adacore.com>
1504 * dwarf2out.c (switch_to_frame_table_section): Move
1505 definition prior to first use.
1507 2009-08-30 Richard Guenther <rguenther@suse.de>
1509 PR tree-optimization/41186
1510 * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
1511 (ao_ref_init_from_ptr_and_size): New function.
1512 (ref_maybe_used_by_call_p_1): Be more precise tracking
1513 used ranges for builtin functions.
1514 (ref_maybe_used_by_call_p): Adjust.
1515 (call_may_clobber_ref_p_1): Be more precise tracking clobbered
1516 ranges for builtin functions.
1517 * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
1519 2009-08-30 Alan Modra <amodra@bigpond.net.au>
1522 * fwprop.c (get_reg_use_in): Delete.
1523 (free_load_extend): New function.
1524 (forward_propagate_subreg): Use it.
1526 2009-08-29 Kaz Kojima <kkojima@gcc.gnu.org>
1528 * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
1530 2009-08-29 Kai Tietz<kai.tietz@onevision.com>
1533 * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
1536 2009-08-29 Douglas B Rupp <rupp@gnat.com>
1538 * crtstuff.c (__do_global_dtors_aux): Use atexit if no
1539 fini or fini_array section.
1541 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
1543 * graphite-dependences.c (graphite_legal_transform_bb): Call
1544 pbb_remove_duplicate_pdrs.
1545 * graphite-poly.c (can_collapse_pdr): Removed.
1546 (pdr_find_duplicate): Removed.
1547 (can_collapse_pdrs): New.
1548 (pbb_remove_duplicate_pdrs): New.
1549 (new_poly_dr): Do not look for duplicates.
1550 * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
1551 (PBB_PDR_DUPLICATES_REMOVED): New.
1552 (pbb_remove_duplicate_pdrs): Declared.
1554 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
1556 * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
1557 the strides by multiplying by PDR_NB_REFS.
1558 * graphite-poly.c (can_collapse_pdr): New.
1559 (pdr_find_duplicate): New.
1560 (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
1561 Initialize PDR_NB_REFS.
1562 * graphite-poly.h (struct poly_dr): Add field nb_refs.
1564 (new_poly_dr): Number of subscripts is a graphite_dim_t.
1566 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
1569 * graphite-poly.c (apply_poly_transforms): Remove legality test before
1572 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
1574 * graphite-dependences.c (pddr_original_scattering): Return NULL
1575 for read-read dependence relations.
1576 * graphite-poly.h (enum poly_dr_type): Fix comment.
1579 (pdr_may_write_p): New.
1581 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
1583 * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
1584 (struct poly_dr): Same.
1585 (new_poly_dr): Same.
1586 * graphite-poly.c (new_poly_dr): Same.
1587 * graphite-dependences.c (dot_deps): Disable call to system.
1589 2009-08-28 Cary Coutant <ccoutant@google.com>
1592 * dwarf2out.c (gen_type_die_with_usage): Use proper context for
1593 struct/union/enum types local to a function.
1595 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
1596 Sebastian Pop <sebastian.pop@amd.com>
1598 * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
1599 pbb_strip_mine_time_depth. Changed the implementation so that
1600 transformation is expressed as a transformation on
1601 time (scatttering) dimensions. Also, ensures that the 2d+1
1602 scheduling format is preserved.
1603 (pbb_strip_mine_profitable_p): Profitability is based on the
1604 iteration number of a given time (scattering) dimension,
1605 and not on a original loop depth dimension.
1606 (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
1607 (pbb_do_strip_mine): Call psct_dynamic_dim.
1608 * graphite-poly.c (pbb_number_of_iterations_at_time): New.
1609 * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
1610 (pbb_nb_dynamic_scattering_transform): New.
1611 (psct_dynamic_dim): New.
1613 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
1615 * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
1616 * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
1617 * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
1618 * graphite-interchange.c (build_linearized_memory_access): Same.
1619 (memory_stride_in_loop): Same.
1621 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
1623 * graphite-dependences.c (pddr_original_scattering): New.
1624 (graphite_legal_transform_dr): Call pddr_original_scattering.
1627 * graphite-dependences.h (dot_deps): Declared.
1628 * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
1629 (print_pdr): Print PDR_ID.
1630 * graphite-poly.h (struct poly_dr): Add field id.
1633 * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
1635 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
1637 * graphite-dependences.c (graphite_carried_dependence_level_k): Do
1638 not delete the original dependence relation.
1640 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
1642 * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
1643 (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
1644 (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
1645 (free_poly_ddr): New.
1646 (pddr_is_empty): New.
1647 (dependence_polyhedron_1): Now returns a poly_ddr_p.
1648 (dependence_polyhedron): Same. Remove useless gcc_assert.
1650 (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
1651 (graphite_carried_dependence_level_k): Call pddr_is_empty.
1652 * graphite-dependences.h (enum poly_dependence_kind): New.
1653 (poly_dr_pair): Renamed poly_ddr. Added a field kind.
1654 (PDRP_SOURCE): Renamed PDDR_SOURCE.
1655 (PDRP_SINK): Renamed PDDR_SINK.
1656 (PDRP_DDP): Renamed PDDR_DDP.
1658 (free_poly_ddr): Declared.
1659 * graphite-poly.c (new_scop): Use the new hash function names.
1660 * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
1661 into original_pddrs.
1662 (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
1664 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
1666 * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
1667 bounds with LT_EXPR to make niter analysis more precise on code
1668 generated by Graphite.
1670 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
1672 * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
1673 (graphite_legal_transform_bb): Same.
1674 (poly_drs_may_alias_p): Same.
1676 2009-08-28 Richard Guenther <rguenther@suse.de>
1678 * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
1680 2009-08-28 Jan Beulich <jbeulich@novell.com>
1682 * config/i386/netware.c: Include langhooks.h.
1683 (i386_nlm_encode_section_info): Simplify.
1684 (netware_override_options): Delete.
1685 * config/i386/netware.h (netware_override_options): Delete
1687 (OVERRIDE_OPTIONS): Delete definition.
1688 (SUBTARGET_OVERRIDE_OPTIONS): Define.
1689 (ASM_COMMENT_START): Define.
1690 * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
1692 2009-08-28 Jan Beulich <jbeulich@novell.com>
1694 * configure.ac: For in-tree ld, do a plain version check to
1695 determine whether comdat groups are supported.
1696 * configure: Regenerate.
1698 2009-08-28 Olivier Hainque <hainque@adacore.com>
1700 * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
1701 always defined. Reflect definition or absence of such for
1702 COLLECT_EXPORT_LIST. Readability helper.
1703 (scanfilter): New enum, to help control what symbols
1704 are to be considered or ignored by scan_prog_file.
1705 (enum pass): Rename as "scanpass", moved together with scanfilter
1706 prior to scan_prog_file's prototype.
1707 (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
1708 Group prototype with the scanpass/scanfilter definitions, factorize
1709 head comments for the several implementations at the prototype.
1710 (main): Reorganize the first pass link control to let AIX
1711 drag only the needed frame tables in executables. Prevent
1712 frame tables collection during the scan aimed at static ctors.
1713 Pre-link and scan for frame tables later to compensate.
1714 * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
1715 A C statement to issue assembly directives that create a reference
1716 to the given DWARF table identifier label from the current function
1718 * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
1719 to differentiate first time section entry. Only emit a .data
1720 tables start identifier label the first time around.
1721 (switch_to_frame_table_section): New function. Helper for
1722 output_call_frame_info to switch possibly BACK into the eh_frame
1723 or the debug_frame section depending on FOR_EH.
1724 (output_call_frame_info): Use helper to first enter the proper
1726 (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
1727 emit a link to the frame table start label from each function
1729 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
1730 New function. Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
1731 * config/rs6000/rs6000-protos.h: Declare it.
1732 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
1734 2009-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
1736 * config/sh/sh.c (split_branches): Check the result of
1739 2009-08-27 Steve Ellcey <sje@cup.hp.com>
1741 * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
1742 using -pthread -fopenmp
1744 2009-08-27 Gerald Pfeifer <gerald@pfeifer.com>
1746 * doc/service.texi (service directory): Update URL.
1748 2009-08-27 Uros Bizjak <ubizjak@gmail.com>
1750 PR rtl-optimization/40861
1751 * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
1752 extract word from a multi-word subreg for negative byte positions.
1754 2009-08-27 Tristan Gingold <gingold@adacore.com>
1755 Douglas B Rupp <rupp@gnat.com>
1757 * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
1758 (SECTION_VMS_OVERLAY): Define.
1759 (ia64_vms_common_object_attribute): Added. Handle the "common_object"
1761 (ia64_vms_elf_asm_named_section): Added. Generate .section pseudo-op
1763 (ia64_vms_output_aligned_decl_common): Added. Generate pseudo-op for
1764 common_object declarations.
1765 (ia64_section_type_flags): Set section flag for common_object.
1766 * config/ia64/ia64-protos.h
1767 (ia64_vms_output_aligned_decl_common): Declare.
1768 (ia64_vms_elf_asm_named_section): Declare.
1770 2009-08-27 Michael Matz <matz@suse.de>
1772 * expr.c (expand_expr_real_2): New function taking exploded
1773 unary or binary expression, split out from ...
1774 (expand_expr_real_1): ... here. Move over all unary/binary
1775 switch parts to above function, in particular these codes:
1776 PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
1777 MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
1778 ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
1779 FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
1780 FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
1781 BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
1782 BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
1783 LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
1784 NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
1785 UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
1786 WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
1787 VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
1788 VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
1789 VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
1790 VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
1791 VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
1792 VEC_PACK_FIX_TRUNC_EXPR.
1793 (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
1796 2009-08-27 Richard Guenther <rguenther@suse.de>
1798 * gengtype.c (main): Handle uint64_t.
1799 * ipa-utils.c (get_base_var): Indent properly.
1800 * tree-ssa-live.c (debug_scope_block): New function.
1801 * tree-flow.h (debug_scope_block): Declare.
1802 * tree-ssa-copy.c (replace_exp_1): Add vertical space.
1803 * basic-block.h (enum profile_status): Rename to
1804 enum profile_status_d.
1805 (x_profile_status): Adjust type.
1807 2009-08-27 Dodji Seketeli <dodji@redhat.com>
1810 * dwarf2out.c (get_context_die): Declare this static function.
1811 (gen_type_die_with_usage): Make sure a DIE is a generated for
1812 the context of a typedef.
1814 2009-08-26 Anatoly Sokolov <aesok@post.ru>
1816 * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
1819 2009-08-26 Richard Sandiford <rdsandiford@googlemail.com>
1821 * config/mips/mips-protos.h (mips_output_sync): Declare.
1822 (mips_sync_loop_insns): Likewise.
1823 (mips_output_sync_loop): Replace first two parameters with an rtx.
1824 * config/mips/mips.c (mips_multi_member): New structure.
1825 (mips_multi_members): New variable.
1826 (mips_multi_start): New function.
1827 (mips_multi_add): Likewise.
1828 (mips_multi_add_insn): Likewise.
1829 (mips_multi_add_label): Likewise.
1830 (mips_multi_last_index): Likewise.
1831 (mips_multi_copy_insn): Likewise.
1832 (mips_multi_set_operand): Likewise.
1833 (mips_multi_write): Likewise.
1834 (mips_print_operand_punctuation): Remove '%|' and '%-'.
1835 (mips_init_print_operand_punct): Update accordingly.
1836 (mips_start_ll_sc_sync_block): New function.
1837 (mips_end_ll_sc_sync_block): Likewise.
1838 (mips_output_sync): Likewise.
1839 (mips_sync_insn1_template): Likewise.
1840 (mips_sync_insn2_template): Likewise.
1841 (mips_get_sync_operand): Likewise.
1842 (mips_process_sync_loop): Likewise.
1843 (mips_output_sync_loop): Use mips_process_sync_loop.
1844 (mips_sync_loop_insns): New function.
1845 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
1846 (MIPS_COMPARE_AND_SWAP_12): Likewise.
1847 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
1848 (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
1849 (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
1850 (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
1851 (MIPS_SYNC_OLD_OP_12): Likewise.
1852 (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
1853 (MIPS_SYNC_NEW_OP_12): Likewise.
1854 (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
1855 (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
1856 (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
1857 (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
1858 (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
1859 (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
1860 * config/mips/mips.md (sync_mem): New attribute.
1861 (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
1862 (sync_exclusive_mask, sync_required_oldval): Likewise.
1863 (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
1864 (sync_release_barrier): Likewise.
1865 (length): Handle sync loops.
1866 (sync): Use mips_output_sync.
1867 * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
1868 (sync_compare_and_swap<mode>): Set the new sync_* attributes
1869 and use mips_output_sync_loop.
1870 (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
1871 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
1872 (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
1873 (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
1874 (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
1875 (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
1876 (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
1877 (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
1878 (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
1880 2009-08-26 Richard Guenther <rguenther@suse.de>
1883 * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
1884 the types to not match.
1885 * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
1887 * tree-ssa.c (useless_type_conversion_p): Conversions to
1888 pointers to unprototyped functions are useless.
1890 2009-08-26 Richard Guenther <rguenther@suse.de>
1892 * tree-ssa-structalias.c (create_variable_info_for): Remove strange
1893 whole-program condition, prepare to be called for non-globals.
1894 (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
1895 params build a representative with known type and track its fields.
1897 2009-08-26 Uros Bizjak <ubizjak@gmail.com>
1899 * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
1900 clearing by a taken branch.
1901 (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
1902 effectively after bbro pass.
1903 (sync_nand<mode>): Ditto.
1904 (sync_old_<fetchop_name><mode>): Ditto.
1905 (sync_old_nand<mode>): Ditto.
1906 (sync_new_<fetchop_name><mode>): Dito.
1907 (sync_new_nand<mode>): Ditto.
1908 (sync_compare_and_swap<mode>_1): Ditto.
1909 (*sync_compare_and_swap<mode>): Ditto.
1910 (sync_lock_test_and_set<mode>_1): Ditto.
1911 ("sync_lock_test_and_set<mode>): Ditto.
1913 2009-08-25 Douglas B Rupp <rupp@gnat.com>
1915 * hwint.h (HOST_LONG_FORMAT): New macro
1916 * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
1917 Use HOST_PTR_PRINTF.
1918 * system.h (HOST_PTR_PRINTF): Resurrect old macro
1919 * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
1920 (HOST_PTR_PRINTF): Document.
1922 2009-08-25 Jan Hubicka <jh@suse.cz>
1924 * config/i386/bmmintrin.h: Replace by #error.
1927 Michael Meissner <michael.meissner@amd.com>
1928 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
1929 Tony Linthicum <tony.linthicum@amd.com>
1931 * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
1932 (TARGET_ROUND): New macro for the round/ptest instructions which
1933 are shared between SSE4.1 and SSE5.
1934 (OPTION_MASK_ISA_ROUND): Ditto.
1935 (OPTION_ISA_ROUND): Ditto.
1936 (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
1937 (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
1939 * config/i386/i386.opt (-msse5): New switch for SSE5 support.
1940 (-mfused-madd): New switch to give users control over whether the
1941 compiler optimizes to use the multiply/add SSE5 instructions.
1943 * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
1944 (ix86_handle_option): Turn off 3dnow if -msse5.
1945 (override_options): Add SSE5 support.
1946 (print_operand): %Y prints comparison codes for SSE5 com/pcom
1948 (ix86_expand_sse_movcc): Add SSE5 support.
1949 (ix86_expand_sse5_unpack): New function to use pperm to unpack a
1950 vector type to the next largest size.
1951 (ix86_expand_sse5_pack): New function to use pperm to pack a
1952 vector type to the next smallest size.
1953 (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
1954 (IX86_BUILTIN_FMADDSD): Ditto.
1955 (IX86_BUILTIN_FMADDPS): Ditto.
1956 (IX86_BUILTIN_FMADDPD): Ditto.
1957 (IX86_BUILTIN_FMSUBSS): Ditto.
1958 (IX86_BUILTIN_FMSUBSD): Ditto.
1959 (IX86_BUILTIN_FMSUBPS): Ditto.
1960 (IX86_BUILTIN_FMSUBPD): Ditto.
1961 (IX86_BUILTIN_FNMADDSS): Ditto.
1962 (IX86_BUILTIN_FNMADDSD): Ditto.
1963 (IX86_BUILTIN_FNMADDPS): Ditto.
1964 (IX86_BUILTIN_FNMADDPD): Ditto.
1965 (IX86_BUILTIN_FNMSUBSS): Ditto.
1966 (IX86_BUILTIN_FNMSUBSD): Ditto.
1967 (IX86_BUILTIN_FNMSUBPS): Ditto.
1968 (IX86_BUILTIN_FNMSUBPD): Ditto.
1969 (IX86_BUILTIN_PCMOV_V2DI): Ditto.
1970 (IX86_BUILTIN_PCMOV_V4SI): Ditto.
1971 (IX86_BUILTIN_PCMOV_V8HI): Ditto.
1972 (IX86_BUILTIN_PCMOV_V16QI): Ditto.
1973 (IX86_BUILTIN_PCMOV_V4SF): Ditto.
1974 (IX86_BUILTIN_PCMOV_V2DF): Ditto.
1975 (IX86_BUILTIN_PPERM): Ditto.
1976 (IX86_BUILTIN_PERMPS): Ditto.
1977 (IX86_BUILTIN_PERMPD): Ditto.
1978 (IX86_BUILTIN_PMACSSWW): Ditto.
1979 (IX86_BUILTIN_PMACSWW): Ditto.
1980 (IX86_BUILTIN_PMACSSWD): Ditto.
1981 (IX86_BUILTIN_PMACSWD): Ditto.
1982 (IX86_BUILTIN_PMACSSDD): Ditto.
1983 (IX86_BUILTIN_PMACSDD): Ditto.
1984 (IX86_BUILTIN_PMACSSDQL): Ditto.
1985 (IX86_BUILTIN_PMACSSDQH): Ditto.
1986 (IX86_BUILTIN_PMACSDQL): Ditto.
1987 (IX86_BUILTIN_PMACSDQH): Ditto.
1988 (IX86_BUILTIN_PMADCSSWD): Ditto.
1989 (IX86_BUILTIN_PMADCSWD): Ditto.
1990 (IX86_BUILTIN_PHADDBW): Ditto.
1991 (IX86_BUILTIN_PHADDBD): Ditto.
1992 (IX86_BUILTIN_PHADDBQ): Ditto.
1993 (IX86_BUILTIN_PHADDWD): Ditto.
1994 (IX86_BUILTIN_PHADDWQ): Ditto.
1995 (IX86_BUILTIN_PHADDDQ): Ditto.
1996 (IX86_BUILTIN_PHADDUBW): Ditto.
1997 (IX86_BUILTIN_PHADDUBD): Ditto.
1998 (IX86_BUILTIN_PHADDUBQ): Ditto.
1999 (IX86_BUILTIN_PHADDUWD): Ditto.
2000 (IX86_BUILTIN_PHADDUWQ): Ditto.
2001 (IX86_BUILTIN_PHADDUDQ): Ditto.
2002 (IX86_BUILTIN_PHSUBBW): Ditto.
2003 (IX86_BUILTIN_PHSUBWD): Ditto.
2004 (IX86_BUILTIN_PHSUBDQ): Ditto.
2005 (IX86_BUILTIN_PROTB): Ditto.
2006 (IX86_BUILTIN_PROTW): Ditto.
2007 (IX86_BUILTIN_PROTD): Ditto.
2008 (IX86_BUILTIN_PROTQ): Ditto.
2009 (IX86_BUILTIN_PROTB_IMM): Ditto.
2010 (IX86_BUILTIN_PROTW_IMM): Ditto.
2011 (IX86_BUILTIN_PROTD_IMM): Ditto.
2012 (IX86_BUILTIN_PROTQ_IMM): Ditto.
2013 (IX86_BUILTIN_PSHLB): Ditto.
2014 (IX86_BUILTIN_PSHLW): Ditto.
2015 (IX86_BUILTIN_PSHLD): Ditto.
2016 (IX86_BUILTIN_PSHLQ): Ditto.
2017 (IX86_BUILTIN_PSHAB): Ditto.
2018 (IX86_BUILTIN_PSHAW): Ditto.
2019 (IX86_BUILTIN_PSHAD): Ditto.
2020 (IX86_BUILTIN_PSHAQ): Ditto.
2021 (IX86_BUILTIN_FRCZSS): Ditto.
2022 (IX86_BUILTIN_FRCZSD): Ditto.
2023 (IX86_BUILTIN_FRCZPS): Ditto.
2024 (IX86_BUILTIN_FRCZPD): Ditto.
2025 (IX86_BUILTIN_CVTPH2PS): Ditto.
2026 (IX86_BUILTIN_CVTPS2PH): Ditto.
2027 (IX86_BUILTIN_COMEQSS): Ditto.
2028 (IX86_BUILTIN_COMNESS): Ditto.
2029 (IX86_BUILTIN_COMLTSS): Ditto.
2030 (IX86_BUILTIN_COMLESS): Ditto.
2031 (IX86_BUILTIN_COMGTSS): Ditto.
2032 (IX86_BUILTIN_COMGESS): Ditto.
2033 (IX86_BUILTIN_COMUEQSS): Ditto.
2034 (IX86_BUILTIN_COMUNESS): Ditto.
2035 (IX86_BUILTIN_COMULTSS): Ditto.
2036 (IX86_BUILTIN_COMULESS): Ditto.
2037 (IX86_BUILTIN_COMUGTSS): Ditto.
2038 (IX86_BUILTIN_COMUGESS): Ditto.
2039 (IX86_BUILTIN_COMORDSS): Ditto.
2040 (IX86_BUILTIN_COMUNORDSS): Ditto.
2041 (IX86_BUILTIN_COMFALSESS): Ditto.
2042 (IX86_BUILTIN_COMTRUESS): Ditto.
2043 (IX86_BUILTIN_COMEQSD): Ditto.
2044 (IX86_BUILTIN_COMNESD): Ditto.
2045 (IX86_BUILTIN_COMLTSD): Ditto.
2046 (IX86_BUILTIN_COMLESD): Ditto.
2047 (IX86_BUILTIN_COMGTSD): Ditto.
2048 (IX86_BUILTIN_COMGESD): Ditto.
2049 (IX86_BUILTIN_COMUEQSD): Ditto.
2050 (IX86_BUILTIN_COMUNESD): Ditto.
2051 (IX86_BUILTIN_COMULTSD): Ditto.
2052 (IX86_BUILTIN_COMULESD): Ditto.
2053 (IX86_BUILTIN_COMUGTSD): Ditto.
2054 (IX86_BUILTIN_COMUGESD): Ditto.
2055 (IX86_BUILTIN_COMORDSD): Ditto.
2056 (IX86_BUILTIN_COMUNORDSD): Ditto.
2057 (IX86_BUILTIN_COMFALSESD): Ditto.
2058 (IX86_BUILTIN_COMTRUESD): Ditto.
2059 (IX86_BUILTIN_COMEQPS): Ditto.
2060 (IX86_BUILTIN_COMNEPS): Ditto.
2061 (IX86_BUILTIN_COMLTPS): Ditto.
2062 (IX86_BUILTIN_COMLEPS): Ditto.
2063 (IX86_BUILTIN_COMGTPS): Ditto.
2064 (IX86_BUILTIN_COMGEPS): Ditto.
2065 (IX86_BUILTIN_COMUEQPS): Ditto.
2066 (IX86_BUILTIN_COMUNEPS): Ditto.
2067 (IX86_BUILTIN_COMULTPS): Ditto.
2068 (IX86_BUILTIN_COMULEPS): Ditto.
2069 (IX86_BUILTIN_COMUGTPS): Ditto.
2070 (IX86_BUILTIN_COMUGEPS): Ditto.
2071 (IX86_BUILTIN_COMORDPS): Ditto.
2072 (IX86_BUILTIN_COMUNORDPS): Ditto.
2073 (IX86_BUILTIN_COMFALSEPS): Ditto.
2074 (IX86_BUILTIN_COMTRUEPS): Ditto.
2075 (IX86_BUILTIN_COMEQPD): Ditto.
2076 (IX86_BUILTIN_COMNEPD): Ditto.
2077 (IX86_BUILTIN_COMLTPD): Ditto.
2078 (IX86_BUILTIN_COMLEPD): Ditto.
2079 (IX86_BUILTIN_COMGTPD): Ditto.
2080 (IX86_BUILTIN_COMGEPD): Ditto.
2081 (IX86_BUILTIN_COMUEQPD): Ditto.
2082 (IX86_BUILTIN_COMUNEPD): Ditto.
2083 (IX86_BUILTIN_COMULTPD): Ditto.
2084 (IX86_BUILTIN_COMULEPD): Ditto.
2085 (IX86_BUILTIN_COMUGTPD): Ditto.
2086 (IX86_BUILTIN_COMUGEPD): Ditto.
2087 (IX86_BUILTIN_COMORDPD): Ditto.
2088 (IX86_BUILTIN_COMUNORDPD): Ditto.
2089 (IX86_BUILTIN_COMFALSEPD): Ditto.
2090 (IX86_BUILTIN_COMTRUEPD): Ditto.
2091 (IX86_BUILTIN_PCOMEQUB): Ditto.
2092 (IX86_BUILTIN_PCOMNEUB): Ditto.
2093 (IX86_BUILTIN_PCOMLTUB): Ditto.
2094 (IX86_BUILTIN_PCOMLEUB): Ditto.
2095 (IX86_BUILTIN_PCOMGTUB): Ditto.
2096 (IX86_BUILTIN_PCOMGEUB): Ditto.
2097 (IX86_BUILTIN_PCOMFALSEUB): Ditto.
2098 (IX86_BUILTIN_PCOMTRUEUB): Ditto.
2099 (IX86_BUILTIN_PCOMEQUW): Ditto.
2100 (IX86_BUILTIN_PCOMNEUW): Ditto.
2101 (IX86_BUILTIN_PCOMLTUW): Ditto.
2102 (IX86_BUILTIN_PCOMLEUW): Ditto.
2103 (IX86_BUILTIN_PCOMGTUW): Ditto.
2104 (IX86_BUILTIN_PCOMGEUW): Ditto.
2105 (IX86_BUILTIN_PCOMFALSEUW): Ditto.
2106 (IX86_BUILTIN_PCOMTRUEUW): Ditto.
2107 (IX86_BUILTIN_PCOMEQUD): Ditto.
2108 (IX86_BUILTIN_PCOMNEUD): Ditto.
2109 (IX86_BUILTIN_PCOMLTUD): Ditto.
2110 (IX86_BUILTIN_PCOMLEUD): Ditto.
2111 (IX86_BUILTIN_PCOMGTUD): Ditto.
2112 (IX86_BUILTIN_PCOMGEUD): Ditto.
2113 (IX86_BUILTIN_PCOMFALSEUD): Ditto.
2114 (IX86_BUILTIN_PCOMTRUEUD): Ditto.
2115 (IX86_BUILTIN_PCOMEQUQ): Ditto.
2116 (IX86_BUILTIN_PCOMNEUQ): Ditto.
2117 (IX86_BUILTIN_PCOMLTUQ): Ditto.
2118 (IX86_BUILTIN_PCOMLEUQ): Ditto.
2119 (IX86_BUILTIN_PCOMGTUQ): Ditto.
2120 (IX86_BUILTIN_PCOMGEUQ): Ditto.
2121 (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
2122 (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
2123 (IX86_BUILTIN_PCOMEQB): Ditto.
2124 (IX86_BUILTIN_PCOMNEB): Ditto.
2125 (IX86_BUILTIN_PCOMLTB): Ditto.
2126 (IX86_BUILTIN_PCOMLEB): Ditto.
2127 (IX86_BUILTIN_PCOMGTB): Ditto.
2128 (IX86_BUILTIN_PCOMGEB): Ditto.
2129 (IX86_BUILTIN_PCOMFALSEB): Ditto.
2130 (IX86_BUILTIN_PCOMTRUEB): Ditto.
2131 (IX86_BUILTIN_PCOMEQW): Ditto.
2132 (IX86_BUILTIN_PCOMNEW): Ditto.
2133 (IX86_BUILTIN_PCOMLTW): Ditto.
2134 (IX86_BUILTIN_PCOMLEW): Ditto.
2135 (IX86_BUILTIN_PCOMGTW): Ditto.
2136 (IX86_BUILTIN_PCOMGEW): Ditto.
2137 (IX86_BUILTIN_PCOMFALSEW): Ditto.
2138 (IX86_BUILTIN_PCOMTRUEW): Ditto.
2139 (IX86_BUILTIN_PCOMEQD): Ditto.
2140 (IX86_BUILTIN_PCOMNED): Ditto.
2141 (IX86_BUILTIN_PCOMLTD): Ditto.
2142 (IX86_BUILTIN_PCOMLED): Ditto.
2143 (IX86_BUILTIN_PCOMGTD): Ditto.
2144 (IX86_BUILTIN_PCOMGED): Ditto.
2145 (IX86_BUILTIN_PCOMFALSED): Ditto.
2146 (IX86_BUILTIN_PCOMTRUED): Ditto.
2147 (IX86_BUILTIN_PCOMEQQ): Ditto.
2148 (IX86_BUILTIN_PCOMNEQ): Ditto.
2149 (IX86_BUILTIN_PCOMLTQ): Ditto.
2150 (IX86_BUILTIN_PCOMLEQ): Ditto.
2151 (IX86_BUILTIN_PCOMGTQ): Ditto.
2152 (IX86_BUILTIN_PCOMGEQ): Ditto.
2153 (IX86_BUILTIN_PCOMFALSEQ): Ditto.
2154 (IX86_BUILTIN_PCOMTRUEQ): Ditto.
2155 (enum multi_arg_type): New enum for describing the various SSE5
2156 intrinsic argument types.
2157 (bdesc_multi_arg): New table for SSE5 intrinsics.
2158 (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
2159 (ix86_expand_multi_arg_builtin): New function for creating SSE5
2161 (ix86_expand_builtin): Add SSE5 intrinsic support.
2162 (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
2163 operand instructions.
2164 (ix86_expand_sse5_multiple_memory): New function to split the
2165 second memory reference from SSE5 instructions.
2166 (type_has_variadic_args_p): Delete in favor of stdarg_p.
2167 (ix86_return_pops_args): Use stdarg_p to determine if the function
2168 has variable arguments.
2169 (ix86_setup_incoming_varargs): Ditto.
2170 (x86_this_parameter): Ditto.
2172 * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
2174 (ix86_expand_sse5_pack): Ditto.
2175 (ix86_sse5_valid_op_p): Ditto.
2176 (ix86_expand_sse5_multiple_memory): Ditto.
2178 * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
2179 constant for SSE5 support.
2180 (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
2181 (UNSPEC_SSE5_TRUEFALSE): Ditto.
2182 (UNSPEC_SSE5_PERMUTE): Ditto.
2183 (UNSPEC_SSE5_ASHIFT): Ditto.
2184 (UNSPEC_SSE5_LSHIFT): Ditto.
2185 (UNSPEC_FRCZ): Ditto.
2186 (UNSPEC_CVTPH2PS): Ditto.
2187 (UNSPEC_CVTPS2PH): Ditto.
2188 (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
2190 (COM_FALSE_S): Ditto.
2191 (COM_FALSE_P): Ditto.
2192 (COM_TRUE_S): Ditto.
2193 (COM_TRUE_P): Ditto.
2194 (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
2195 (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
2197 (memory attribute): Ditto.
2198 (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
2199 Use SSE4_1_ROUND_* constants instead of hard coded numbers.
2200 (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
2201 (floor<mode>2): Ditto.
2202 (ceil<mode>2): Ditto.
2203 (btrunc<mode>2): Ditto.
2204 (nearbyintdf2): Ditto.
2205 (nearbyintsf2): Ditto.
2206 (sse_setccsf): Disable if SSE5.
2207 (sse_setccdf): Ditto.
2208 (sse5_setcc<mode>): New support for SSE5 conditional move.
2209 (sse5_pcmov_<mode>): Ditto.
2211 * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
2213 (SSEMODEF2P): Ditto.
2214 (ssemodesuffixf4): New mode attribute for SSE5.
2215 (ssemodesuffixf2s): Ditto.
2216 (ssemodesuffixf2c): Ditto.
2217 (sserotatemax): Ditto.
2218 (ssescalarmode): Ditto.
2219 (sse_maskcmpv4sf3): Disable if SSE5.
2220 (sse_maskcmpv2df3): Ditto.
2221 (sse_vmmaskcmpv4sf3): Ditto.
2222 (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
2223 (sse5_vmfmadd<mode>4): Ditto.
2224 (sse5_fmsub<mode>4): Ditto.
2225 (sse5_vmfmsub<mode>4): Ditto.
2226 (sse5_fnmadd<mode>4): Ditto.
2227 (sse5_vmfnmadd<mode>4): Ditto.
2228 (sse5_fnmsub<mode>4): Ditto.
2229 (sse5_vmfnmsub<mode>4): Ditto.
2230 (sse5i_fmadd<mode>4): Ditto.
2231 (sse5i_fmsub<mode>4): Ditto.
2232 (sse5i_fnmadd<mode>4): Ditto.
2233 (sse5i_fnmsub<mode>4): Ditto.
2234 (sse5i_vmfmadd<mode>4): Ditto.
2235 (sse5i_vmfmsub<mode>4): Ditto.
2236 (sse5i_vmfnmadd<mode>4): Ditto.
2237 (sse5i_vmfnmsub<mode>4): Ditto.
2238 (mulv16qi3): Add SSE5 support.
2240 (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
2241 (sse2_mulv4si3): Disable if SSE5.
2242 (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
2243 (sse4_1_roundps): Ditto.
2244 (sse4_1_roundsd): Ditto.
2245 (sse4_1_roundss): Ditto.
2246 (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
2248 (sse_maskcmpsf3): Ditto.
2249 (sse_vmmaskcmpv4sf3): Ditto.
2250 (sse2_maskcmpv2df3): Ditto.
2251 (sse2_maskcmpdf3): Ditto.
2252 (sse2_vmmaskcmpv2df3): Ditto.
2253 (sse2_eq<mode>3): Ditto.
2254 (sse2_gt<mode>3): Ditto.
2255 (sse5_pcmov_<mode>): Add SSE5 support.
2256 (vec_unpacku_hi_v16qi): Ditto.
2257 (vec_unpacks_hi_v16qi): Ditto.
2258 (vec_unpacku_lo_v16qi): Ditto.
2259 (vec_unpacks_lo_v16qi): Ditto.
2260 (vec_unpacku_hi_v8hi): Ditto.
2261 (vec_unpacks_hi_v8hi): Ditto.
2262 (vec_unpacku_lo_v8hi): Ditto.
2263 (vec_unpacks_lo_v8hi): Ditto.
2264 (vec_unpacku_hi_v4si): Ditto.
2265 (vec_unpacks_hi_v4si): Ditto.
2266 (vec_unpacku_lo_v4si): Ditto.
2267 (vec_unpacks_lo_v4si): Ditto.
2268 (sse5_pmacsww): New SSE5 intrinsic insn.
2269 (sse5_pmacssww): Ditto.
2270 (sse5_pmacsdd): Ditto.
2271 (sse5_pmacssdd): Ditto.
2272 (sse5_pmacssdql): Ditto.
2273 (sse5_pmacssdqh): Ditto.
2274 (sse5_pmacsdqh): Ditto.
2275 (sse5_pmacsswd): Ditto.
2276 (sse5_pmacswd): Ditto.
2277 (sse5_pmadcsswd): Ditto.
2278 (sse5_pmadcswd): Ditto.
2279 (sse5_pcmov_<move>): Conditional move support on SSE5.
2280 (sse5_phaddbw): New SSE5 intrinsic insn.
2281 (sse5_phaddbd): Ditto.
2282 (sse5_phaddbq): Ditto.
2283 (sse5_phaddwd): Ditto.
2284 (sse5_phaddwq): Ditto.
2285 (sse5_phadddq): Ditto.
2286 (sse5_phaddubw): Ditto.
2287 (sse5_phaddubd): Ditto.
2288 (sse5_phaddubq): Ditto.
2289 (sse5_phadduwd): Ditto.
2290 (sse5_phadduwq): Ditto.
2291 (sse5_phaddudq): Ditto.
2292 (sse5_phsubbw): Ditto.
2293 (sse5_phsubwd): Ditto.
2294 (sse5_phsubdq): Ditto.
2295 (sse5_pperm): Ditto.
2296 (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
2297 (sse5_pperm_zero_v16qi_v8hi): Ditto.
2298 (sse5_pperm_sign_v8hi_v4si): Ditto.
2299 (sse5_pperm_zero_v8hi_v4si): Ditto.
2300 (sse5_pperm_sign_v4si_v2di): Ditto.
2301 (sse5_pperm_sign_v4si_v2di): Ditto.
2302 (sse5_pperm_pack_v2di_v4si): Ditto.
2303 (sse5_pperm_pack_v4si_v8hi): Ditto.
2304 (sse5_pperm_pack_v8hi_v16qi): Ditto.
2305 (sse5_perm<mode>): New SSE5 intrinsic insn.
2306 (rotl<mode>3): Ditto.
2307 (sse5_rotl<mode>3): Ditto.
2308 (sse5_ashl<mode>3): Ditto.
2309 (sse5_lshl<mode>3): Ditto.
2310 (sse5_frcz<mode>2): Ditto.
2311 (sse5s_frcz<mode>2): Ditto.
2312 (sse5_cvtph2ps): Ditto.
2313 (sse5_cvtps2ph): Ditto.
2314 (sse5_vmmaskcmp<mode>3): Ditto.
2315 (sse5_com_tf<mode>3): Ditto.
2316 (sse5_maskcmp<mode>3): Ditto.
2317 (sse5_maskcmp_uns<mode>3): Ditto.
2318 (sse5_maskcmp_uns2<mode>3): Ditto.
2319 (sse5_pcom_tf<mode>3): Ditto.
2321 * config/i386/predicates.md (sse5_comparison_float_operator):
2322 New predicate to match the comparison operators supported by
2323 the SSE5 com instruction.
2324 (ix86_comparison_int_operator): New predicate to match just the
2325 signed int comparisons.
2326 (ix86_comparison_uns_operator): New predicate to match just the
2327 unsigned int comparisons.
2329 * doc/invoke.texi (-msse5): Add documentation.
2330 (-mfused-madd): Ditto.
2332 * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
2334 * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
2336 (x86_64-*-*): Ditto.
2338 * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
2340 * config/i386/bmmintrin.h: New file, provide common x86 compiler
2341 intrinisics for SSE5.
2343 * config/i386/smmintrin.h: Move instructions shared with SSE5 to
2346 * config/i386/mmintrin-common.h: New file, to contain common
2347 instructions between SSE4.1 and SSE5.
2349 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
2350 FOREACH_FUNCTION_ARGS to iterate over the argument list.
2351 (gen_regparm_prefix): Ditto.
2353 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
2354 FOREACH_FUNCTION_ARGS to iterate over the argument list. Use
2355 prototype_p to determine if a function is prototyped.
2357 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
2359 * c-common.c (c_common_reswords) add the alignof keyword,
2360 with same RID as __alignof and __alignof__
2362 2009-08-25 Anatoly Sokolov <aesok@post.ru>
2364 * hooks.h (hook_bool_const_int_const_int_true): Declare.
2365 * hooks.c (hook_bool_const_int_const_int_true): New function.
2366 * target.h (struct gcc_target): Add can_eliminate field.
2367 * target-def.h (TARGET_CAN_ELIMINATE): Define.
2368 (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
2369 * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
2370 * reload1.c (update_eliminables, init_elim_table): (Ditto.).
2371 (elim_table): Revise comment.
2372 * system.h (CAN_ELIMINATE): Poison.
2373 * defaults.h (CAN_ELIMINATE): Remove.
2374 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
2376 * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
2377 * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
2379 (alpha_vms_can_eliminate): Declare as static, change return type to
2381 * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
2383 * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
2384 * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
2385 (arm_can_eliminate): New function.
2387 * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
2388 * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
2389 (avr_can_eliminate): Declare as static.
2390 * config/avr/avr-protos.h (avr_can_eliminate): Remove.
2392 * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
2393 * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
2394 (bfin_can_eliminate): New function.
2396 * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
2397 * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
2398 (crx_can_eliminate): New function.
2400 * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
2401 * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
2402 (fr30_can_eliminate): New function.
2404 * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
2405 * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
2406 (frv_can_eliminate): New function.
2408 * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
2409 * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
2410 (h8300_can_eliminate): New function.
2412 * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
2413 * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
2414 (i386_can_eliminate): Declare as static, change return type to bool.
2415 * config/i386/i386-protos.h (i386_can_eliminate): Remove.
2417 * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
2418 * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
2419 (ia64_can_eliminate): New function.
2421 * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
2422 * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
2423 (iq2000_can_eliminate): New function.
2425 * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
2426 * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
2427 (m32r_can_eliminate): New function.
2429 * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
2430 * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
2431 (m68hc11_can_eliminate): New function.
2433 * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
2434 * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
2435 (m68k_can_eliminate): New function.
2437 * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
2438 * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
2439 (mep_can_eliminate): New function.
2441 * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
2442 * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
2443 (mips_can_eliminate): New function.
2445 * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
2446 * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
2447 (rs6000_can_eliminate): New function.
2449 * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
2450 * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
2451 (s390_can_eliminate): Declare as static.
2452 * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
2454 * config/score/score.h (CAN_ELIMINATE): Remove macro.
2455 * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
2456 (score_can_eliminate): New function.
2458 * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
2459 * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
2460 (sparc_can_eliminate): Declare as static.
2461 * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
2463 * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
2464 * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
2465 (xstormy16_can_eliminate): New function.
2467 * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
2468 * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
2469 (v850_can_eliminate): New function.
2471 2009-08-25 Uros Bizjak <ubizjak@gmail.com>
2473 * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
2474 (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
2475 (*movdfcc_ext[1234]): Disable for IEEE mode.
2477 2009-08-25 Eric Botcazou <ebotcazou@adacore.com>
2479 * gimplify.c (prepare_gimple_addressable): New static function.
2480 (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
2482 (gimplify_addr_expr): Invoke it similarly on the operand instead of
2483 manually fiddling with it.
2485 2009-08-25 Michael Matz <matz@suse.de>
2487 * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
2488 * dojump.c (do_jump_by_parts_greater): Take two operands instead of
2490 (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
2491 (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
2492 (do_jump): Split out code for simple binary comparisons into ...
2493 (do_jump_1): ... this, taking the individual operands and code.
2494 Change callers to helper function above accordingly.
2495 * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
2498 2009-08-25 Michael Matz <matz@suse.de>
2500 * expr.h (struct separate_ops, sepops): New type for passing
2501 around an exploded simple expression.
2502 * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
2503 Use this structure instead of expression tree.
2504 (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
2505 expression, only its type.
2506 (expand_vec_cond_expr): Take type and individual operands instead
2508 * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
2509 expand_vec_shift_expr): Change prototype accordingly.
2510 * tree-vect-stmts.c (vectorizable_condition): Change call of
2511 expand_vec_cond_expr_p to pass only type.
2512 * expr.c (do_store_flags): Change prototype and implementation
2513 to take an exploded expression.
2514 (expand_expr_real_1): New local ops initialized with details
2515 of the full expression. Use it instead of full
2516 expression in calls to do_store_flags, expand_vec_cond_expr,
2517 expand_widen_pattern_expr and expand_vec_shift_expr.
2519 2009-08-25 Michael Matz <matz@suse.de>
2521 * expr.c (expand_expr_real_1): New local treeop0, treeop1,
2522 treeop2 initialized with first three operands of the full expression.
2523 Substitute all TREE_OPERAND (exp, [012]) calls with them.
2525 2009-08-25 Kai Tietz <kai.tietz@onevision.com>
2527 * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
2528 (__gthread_objc_condition_allocate): Mark arguments as unused.
2529 (__gthread_objc_condition_deallocate): Likewise.
2530 (__gthread_objc_condition_wait): Likewise.
2531 (__gthread_objc_condition_broadcast): Likewise.
2532 (__gthread_objc_condition_signal): Likewise.
2533 (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
2534 (__gthread_objc_thread_id): Likewise.
2536 2009-08-25 Janus Weil <janus@gcc.gnu.org>
2539 * tree-pretty-print.c (print_call_name): Print the correct call name
2540 for procedure pointer components.
2542 2009-08-24 Steve Ellcey <sje@cup.hp.com>
2544 * config/ia64/ia64.c (ia64_promote_function_mode): Call
2545 default_promote_function_mode when not VMS.
2547 2009-08-24 Olivier Hainque <hainque@adacore.com>
2549 * convert.c (convert_to_integer): Don't assume an input pointer is
2550 POINTER_SIZE wide. Fetch from the type instead.
2552 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2554 * configure.ac (AC_PREREQ): Bump to 2.64.
2556 2009-08-24 Rafael Avila de Espindola <espindola@google.com>
2558 * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
2559 (process_command): Don't search standard_exec_prefix_1 and
2560 standard_exec_prefix_2.
2562 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2564 * config/arm/arm.c (output_return_instruction): Handle for
2567 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2569 * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
2571 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2573 * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
2574 (*arm_movdf_vfp): Likewise.
2576 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2578 * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
2579 (vashr<mode>3): Rename from ashr<mode>3.
2580 (vlshr<mode>3): Rename from lshr<mode>3.
2582 2009-08-24 Kai Tietz <kai.tietz@onevision.com>
2585 * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
2586 (check_format_info_main): Use scalar_identify_flag.
2587 (check_format_types): Check for scalar size identity if
2588 scalar_identify_flag is set.
2589 (printf_length_specs): Extend by new field.
2590 (asm_fprintf_length_specs): Likewise.
2591 (gcc_diag_length_specs): Likewise.
2592 (scanf_length_specs): Likewise.
2593 (strfmon_length_specs): Likewise.
2594 (gcc_gfc_length_specs): Likewise.
2595 * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
2596 (ms_printf_flag_specs): Likewise.
2597 * c-format.h (format_length_info): Add new member scalar_identity_flag.
2599 2009-08-23 Uros Bizjak <ubizjak@gmail.com>
2602 * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
2603 (*call_value_pop_1): Ditto.
2604 (*sibcall_pop_1): New insn pattern.
2605 (*sibcall_value_pop_1): Ditto.
2607 2009-08-23 Alan Modra <amodra@bigpond.net.au>
2610 * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
2613 2009-08-23 Alan Modra <amodra@bigpond.net.au>
2616 * fwprop.c (try_fwprop_subst): Allow multiple sets.
2617 (get_reg_use_in): New function.
2618 (forward_propagate_subreg): Propagate through subreg of zero_extend
2621 2009-08-22 Kaz Kojima <kkojima@gcc.gnu.org>
2623 * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
2624 * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
2626 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2628 * configure.ac: Remove --with-datarootdir, --with-docdir,
2629 --with-htmldir switches. No need to call AC_SUBST for
2630 datarootdir, docdir, htmldir any more.
2631 * configure: Regenerate.
2632 * doc/install.texi (Configuration): Document --datarootdir,
2633 --docdir, --htmldir, --pdfdir; update documentation for
2634 --infodir, --mandir.
2635 (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
2638 * aclocal.m4: Regenerate.
2639 * config.in: Regenerate.
2640 * configure: Regenerate.
2642 2009-08-21 Douglas B Rupp <rupp@gnat.com>
2643 Olivier Hainque <hainque@adacore.com>
2645 * config/ia64/ia64.c: Include libfuncs.h.
2646 (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
2647 (ia64_expand_call): Use reg 25 on VMS.
2648 (ia64_initialize_trampoline): Fix for VMS ABI.
2649 (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
2650 (ia64_function_arg): Initialize reg 25 on VMS.
2651 Fix OpenVMS ABI issues for varargs.
2652 For OpenVMS, emit the Argument Information register set in the
2653 incoming/sibcall case as well.
2654 (ia64_arg_type): New function.
2655 (ia64_function_arg_advance): Keep track of cum->words.
2656 Fix OpenVMS ABI issues for varargs.
2657 (ia64_function_value): On VMS, promote mode of non-aggregate types.
2658 (ia64_override_options): Set flag_no_common on VMS.
2659 (ia64_init_builtins): Disable FWRITE builtin.
2660 (ia64_asm_output_external): Call DO_CRTL_NAMES.
2661 (ia64_vms_init_libfuncs): Add decc$ routines.
2662 (ia64_vms_valid_pointer_mode): New function.
2663 (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
2664 (ia64_promote_function_mode): New function
2665 * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
2666 (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
2667 (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
2668 (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
2669 (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
2670 (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
2671 Suppress trailing '#' if VALUE is numeric.
2672 * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
2673 ia64_promote_function_mode.
2674 (TARGET_VALID_POINTER_MODE): Define.
2676 2009-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
2679 * config/rs6000/rs6000.c (rs6000_override_options): Use
2680 TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
2683 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
2684 reporting of vector + decimal/boolean/complex error.
2686 2009-08-21 Jakub Jelinek <jakub@redhat.com>
2688 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
2689 __vector double TYPE_DECL.
2691 2009-08-21 Richard Earnshaw <rearnsha@arm.com>
2693 * arm.h (MACHMODE): New define. Include insn-modes.h if available.
2694 (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
2695 * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
2696 to pointer to enum machine_mode. Update all callers as needed.
2698 2009-08-21 Uros Bizjak <ubizjak@gmail.com>
2700 * config/alpha/alpha.md (exception_receiver): Emit alternative
2701 GP load sequence if flag_reorder_blocks_and_partition is set.
2702 (*exception_receiver_2): Also enable when
2703 flag_reorder_blocks_and_partition is set.
2705 2009-08-20 Matt Rice <ratmice@gmail.com>
2706 Diego Novillo <dnovillo@google.com>
2708 * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
2711 2009-08-20 Richard Guenther <rguenther@suse.de>
2713 * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
2714 * c-tree.h (c_dup_lang_specific_decl): Remove.
2715 (struct lang_decl, struct lang_type): Move definitions ...
2716 * c-lang.h: ... here. New file.
2717 * c-decl.c: Include c-lang.h.
2718 (c_dup_lang_specific_decl): Remove.
2719 * c-typeck.c: Include c-lang.h.
2720 * Makefile.in (c-decl.o): Add c-lang.h dependency.
2721 (c-typeck.o): Likewise.
2722 * c-config-lang.in (gtfiles): Add c-lang.h.
2723 * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
2726 2009-08-20 Uros Bizjak <ubizjak@gmail.com>
2728 * config/alpha/alpha.c (alpha_end_function): Do not clear
2729 crtl->emit structure and free insn locators if cfun->is_thunk is true,
2730 this is now handled in generic code.
2732 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
2734 * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
2735 (s390_z10_fix_long_loop_prediction): New function.
2736 (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
2737 (s390_reorg): Walk over the INSNs and invoke
2738 s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
2740 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
2742 * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
2743 "*brx_64bit", "*brx_31bit"): New patterns.
2744 * config/s390/s390.c ('E'): New output modifier.
2746 2009-08-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2747 Richard Earnshaw <richard.earnshaw@arm.com>
2749 * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
2750 * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
2752 2009-08-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2754 * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
2756 * pa.c (emit_move_sequence): Check if address of operand1 is valid
2757 for mode mode of operand0 when doing secondary reload for SAR.
2759 2009-08-19 Jakub Jelinek <jakub@redhat.com>
2762 * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
2763 of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
2765 2009-08-19 Jason Merrill <jason@redhat.com>
2767 * doc/invoke.texi (C++ Dialect Options): Note change of minimum
2768 supported template depth in C++0x.
2770 2009-08-19 Jakub Jelinek <jakub@redhat.com>
2772 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
2773 free_after_compilation.
2774 * config/score/score7.c (score7_output_mi_thunk): Likewise.
2775 * config/score/score3.c (score3_output_mi_thunk): Likewise.
2776 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
2777 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
2778 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
2779 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
2780 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
2782 2009-08-19 Ian Lance Taylor <iant@google.com>
2784 * doc/md.texi (Insn Canonicalizations): Correct canonicalization
2785 of (plus (mult (neg B) C) A).
2787 2009-08-18 Michael Matz <matz@suse.de>
2789 * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
2790 instead of comparing TYPE_MAIN_VARIANT for equality.
2791 * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
2792 vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
2793 * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
2794 * gimplify.c (goa_lhs_expr_p): Ditto and use
2795 STRIP_USELESS_TYPE_CONVERSION.
2797 2009-08-18 Michael Matz <matz@suse.de>
2799 * tree-ssa-structalias.c (create_variable_info_for): Also mark
2800 first field in a struct.
2801 (intra_create_variable_infos): Don't deal with flag_argument_noalias.
2803 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
2805 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
2806 locators before emit_insn is called. Remove assert that
2808 (alpha_end_function): Clear crtl->emit structure and free insn
2809 locators if cfun->is_thunk is true.
2811 2009-08-18 Jason Merrill <jason@redhat.com>
2813 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
2815 * configure.ac: Test for it.
2816 * configure, config.in: Regenerate.
2817 * doc/install.texi: Document --enable-gnu-unique-object.
2819 2009-08-18 Richard Guenther <rguenther@suse.de>
2822 * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
2823 pow(x,y*z) only if x is nonnegative.
2825 2009-08-18 Jakub Jelinek <jakub@redhat.com>
2827 * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
2831 * config/rs6000/rs6000.c (rs6000_legitimize_address): For
2832 [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
2834 2009-08-17 DJ Delorie <dj@redhat.com>
2836 * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
2837 * config/m32c/prologue.md (epilogue_freit): New.
2839 * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
2840 (bank_switch_p): Likewise.
2841 (fast_interrupt_p): Likewise.
2842 (interrupt_p): Likewise.
2843 (m32c_conditional_register_usage): Round memregs size up.
2844 (need_to_save): We only need to save $a0 when we use ENTER.
2845 (interrupt_p): Check for fast_interrupt too.
2846 (bank_switch_p): New.
2847 (fast_interrupt_p): New.
2848 (m32c_attribute_table): Add bank_switch and fast_interrupt.
2849 (m32c_emit_prolog): Support bank switching and fast interrupts.
2850 * doc/extend.texi (Function Attributes): Add bank_switch and
2853 2009-08-17 Douglas B Rupp <rupp@gnat.com>
2855 * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
2856 * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
2858 2009-08-16 Douglas B Rupp <rupp@gnat.com>
2860 * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
2861 (menu): Add IA-64/VMS Options.
2862 (IA-64/VMS Options): Likewise.
2864 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
2867 * config/mips/mips.md (*lwxs): Use :P for pointer values.
2869 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
2871 * config/mips/mips-protos.h (mips_push_asm_switch): New function.
2872 (mips_pop_asm_switch): Likewise.
2873 * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
2875 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
2876 (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
2877 (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
2878 (mips_print_operand_punctuation): Use them. Check mips_noreorder
2879 instead of set_noreorder.
2880 (mips_output_function_prologue): Use the new functions.
2881 (mips_output_function_epilogue): Likewise.
2882 (mips_need_noat_wrapper_p): New function, split out from...
2883 (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
2884 Use mips_push_asm_switch and mips_pop_asm_switch.
2885 * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
2886 and mips_pop_asm_switch.
2887 (ASM_OUTPUT_REG_POP): Likewise.
2888 (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
2889 Use mips_pop_asm_switch.
2890 (mips_asm_switch): New structure.
2891 (set_noreorder, set_nomacro): Replace with...
2892 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
2893 * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
2894 instead of set_nomacro.
2895 (fix_truncsfsi2_macro): Likewise.
2896 (cprestore): Likewise.
2897 (hazard): Use mips_noreorder instead of set_noreorder.
2898 * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
2900 2009-08-16 Uros Bizjak <ubizjak@gmail.com>
2902 * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
2903 from prev_active_insn.
2905 2009-08-16 Anatoly Sokolov <aesok@post.ru>
2907 * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
2908 * config/avr/avr.c (avr_override_options): Initialize
2909 avr_current_arch variable.
2910 (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
2911 __AVR_HAVE_16BIT_SP__ according to the device type.
2912 (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
2914 (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
2915 Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
2917 2009-08-16 Dodji Seketeli <dodji@redhat.com>
2920 * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
2921 generating inlined subroutine die only. We shouldn't be
2922 called for anything else.
2923 (gen_block_die): Don't generate inline subroutine debug info for
2926 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
2928 * graphite-poly.c (print_pbb): Print PBB index.
2930 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
2933 * graphite-interchange.c (ppl_max_for_le): Moved...
2934 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
2935 * graphite-ppl.c (ppl_max_for_le): ... here. Correct the use of
2936 ppl_Pointset_Powerset_C_Polyhedron_maximize.
2937 * graphite-ppl.h (ppl_max_for_le): Declared.
2939 2009-08-14 Olatunji Ruwase <tjruwase@google.com>
2941 * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
2942 supported on all platforms.
2943 * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
2944 * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
2945 * c-pragma.c: Likewise.
2946 * target-def.h (TARGET_INITIALIZER): Remove
2947 TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
2948 * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
2950 2009-08-14 Douglas B Rupp <rupp@gnat.com>
2952 * config/ia64/fde-vms.c: New file.
2953 * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
2954 * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
2955 (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
2956 (uw_frame_state_for): Only register a personality routine if it is
2957 known to be compatible with our expectations.
2958 (_Unwind_FindEnclosingFunction, uw_frame_state_for):
2959 Declare unw_table_entry stack variable and
2960 mod all calls to _Unwind_FindTableEntry to add arg.
2961 * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
2962 (_Unwind_FindTableEntry): Add arg to prototype.
2964 2009-08-14 Eric Botcazou <ebotcazou@adacore.com>
2966 * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
2967 field 'signal_pfs_loc'.
2968 (uw_frame_state_for): Remove duplicate code dealing with leaf
2969 procedures without unwind info.
2970 If in the frame after unwinding through a signal handler, restore
2971 the AR.PFS register instead of the CFM if AR.PFS has not been saved.
2972 * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
2973 'pfs_loc' to the AR.PFS location in the signal context; instead
2974 set 'signal_pfs_loc'.
2975 Manually generate the unwind info for the AR.PFS register.
2976 (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
2977 ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
2978 (ia64_handle_unwabi): Test 'fs->unwabi' against them.
2979 Do not set 'pfs_loc' to the AR.PFS location in the signal context;
2980 instead set 'signal_pfs_loc'.
2981 Remove code preventing the AR.PFS register from being restored
2982 from the signal context.
2984 2009-08-14 Douglas B Rupp <rupp@gnat.com>
2985 Tristan Gingold <gingold@adacore.com>
2987 * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
2988 * config/ia64/t-vms: New file.
2989 * config/ia64/vms64.h: New file.
2990 * config/ia64/vms.h: New file.
2991 * config/ia64/vms-crtinit.asm: New file.
2992 * config/ia64/vms_symvec_libgcc_s.opt: New file.
2993 * config/ia64/vms-unwind.h: New file.
2995 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
2997 * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
3000 2009-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3003 * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
3005 * real.h (do_mpc_arg2): ... here.
3006 * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
3009 2009-08-14 Rafael Avila de Espindola <espindola@google.com>
3011 * final.c (add_debug_prefix_map): Don't use GC memory for
3012 old_prefix and new_prefix.
3014 2009-08-14 Richard Guenther <rguenther@suse.de>
3016 * ipa-prop.c (compute_complex_pass_through): If we cannot
3017 compute a non-varying offset for IPA_JF_ANCESTOR punt.
3019 2009-08-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3021 * c-lex.c (c_lex_with_flags): Increase size of local variable
3022 to avoid memory clobber.
3024 2009-08-14 Paolo Bonzini <bonzini@gnu.org>
3027 * config/i386/i386.c (ix86_fp_comparison_strategy):
3028 Only enable/disable sahf at function granularity.
3030 2009-08-14 Hans-Peter Nilsson <hp@axis.com>
3032 PR rtl-optimization/41064
3033 * reload1.c (reload_as_needed): Don't call extract_insn
3034 for known invalid replacements after calling
3035 validate_replace_rtx_group and verify_changes.
3037 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
3040 * config/i386/sse.md (SSEMODE124C8): New mode iterator.
3041 (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
3042 ix86_expand_fp_vcond.
3043 (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
3044 Assert that operation is supported by ix86_expand_int_vcond.
3045 (vcondu<SSEMODE124C8:mode>): Ditto.
3047 2009-08-13 DJ Delorie <dj@redhat.com>
3049 * config/i386/djgpp-stdint.h: New.
3050 * config.gcc (djgpp): Use it.
3052 2009-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
3054 * config/sh/sh.c (sh_override_options): When flag_exceptions or
3055 flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
3057 2009-08-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
3059 * tree-ssa-loop-prefetch.c
3060 (prune_ref_by_group_reuse): Enhance probabilistic analysis
3061 for long-stride pruning.
3062 (compute_miss_rate): New function to compute the probability
3063 that two memory references access different cache lines.
3065 2009-08-13 Dave Korn <dave.korn.cygwin@gmail.com>
3067 * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
3069 2009-08-13 Richard Guenther <rguenther@suse.de>
3072 * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
3073 use the constant pointer type.
3074 * gimplify.c (canonicalize_addr_expr): Canonicalize independent
3075 of CV qualifiers on the target pointer type.
3076 * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
3077 conversion check before restrict check.
3079 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
3082 * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
3084 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
3086 * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
3088 2009-08-12 Richard Guenther <rguenther@suse.de>
3090 PR tree-optimization/41011
3091 * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
3092 and reference constructing.
3094 2009-08-12 Xinliang David Li <davidxl@google.com>
3096 PR tree-optimization/41012
3097 * tree-flow.h : New external interface.
3098 * gimple-low.c (check_call_arg): Change to public function.
3099 Remove argument mismatch check in lowering.
3100 * tree-inline.h (tree_can_inline_p): Interface change.
3101 * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
3103 * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
3104 Call change to tree_can_inline_p function.
3105 (cgraph_decide_inlining_incrementally): Ditto.
3107 2009-08-12 Richard Sandiford <rdsandiford@googlemail.com>
3109 PR tree-optimization/41031
3110 * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
3111 on the partition variable rather than promote_mode on the source
3112 type. Assert that the partition variable's type has the same
3113 mode as the source value's.
3115 2009-08-12 Paolo Bonzini <bonzini@gnu.org>
3117 * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
3118 for for_return == 2.
3119 * function.c (assign_parm_setup_reg): Use for_return == 2, improve
3121 * calls.c (expand_call): Fix typo.
3122 * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
3124 * stmt.c (expand_value_return): Use promote_function_mode to copy out
3126 * targhooks.c (default_promote_function_mode): Handle for_return == 2.
3127 * config/cris/cris.c (cris_promote_function_mode): Likewise.
3128 * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
3129 * config/pa/pa.c (pa_promote_function_mode): Likewise.
3131 2009-08-12 Andrew Haley <aph@redhat.com>
3133 * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
3135 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
3138 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
3140 2009-08-12 Richard Guenther <rguenther@suse.de>
3142 * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
3143 * gimplify.c (gimplify_modify_expr): Do not use
3144 lang_hooks.types_compatible_p.
3145 * tree-ssa.c (useless_type_conversion_p): For aggregates
3146 just return false if the canonical types differ.
3148 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
3151 * sese.c (convert_for_phi_arg): New.
3152 (add_guard_exit_phis): Use convert_for_phi_arg.
3154 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
3156 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
3157 unknown subscript upper bounds.
3159 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
3160 Pranav Garg <pranav.garg2107@gmail.com>
3162 * graphite-interchange.c (gather_access_strides): Removed.
3163 (ppl_max_for_le): New.
3164 (build_linearized_memory_access): New.
3165 (memory_stride_in_loop): New.
3166 (pbb_interchange_profitable_p): Reimplemented.
3167 * graphite-ppl.h (ppl_new_id_map): New.
3168 (ppl_interchange): New.
3170 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
3172 * graphite-interchange.c (compute_subscript): Removed.
3173 (compute_array_size_cstr): Removed.
3174 (compute_array_size_poly): Removed.
3175 (compute_array_size): Removed.
3176 (gather_access_strides_poly): Removed.
3177 (gather_access_strides): Empty.
3179 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
3181 * graphite-dependences.c (dependence_polyhedron_1): Replace
3182 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
3183 (graphite_legal_transform_dr): Same.
3184 (graphite_carried_dependence_level_k): Same.
3185 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
3186 Initialize PDR_NB_SUBSCRIPTS.
3187 (print_pdr_access_layout): Replace pdr_nb_subscripts with
3189 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
3190 (PDR_NB_SUBSCRIPTS): New.
3191 (pdr_nb_subscripts): Removed.
3192 (pdr_dim): Simplified.
3193 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
3194 with PDR_NB_SUBSCRIPTS.
3196 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
3198 * graphite-interchange.c (compute_array_size): Remove use of
3200 * graphite-poly.c (new_poly_dr): Remove argument data_container.
3201 Do not initialize PDR_DATA_CONTAINER.
3202 (print_pdr): Do not print PDR_DATA_CONTAINER.
3203 * graphite-poly.h (struct poly_dr): Remove data_container field.
3204 (PDR_DATA_CONTAINER): Removed.
3205 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
3207 (build_poly_dr): Same.
3209 2009-08-12 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3210 Sebastian Pop <sebastian.pop@amd.com>
3212 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
3213 copy of the dependence polyhedron. Free the temporary objects.
3214 (graphite_carried_dependence_level_k): Free unused objects before
3217 * testsuite/gcc.dg/graphite/interchange-1.c: XFAILed.
3218 * testsuite/gcc.dg/graphite/interchange-2.c: XFAILed.
3219 * testsuite/gcc.dg/graphite/interchange-3.c: XFAILed.
3220 * testsuite/gcc.dg/graphite/interchange-4.c: XFAILed.
3221 * testsuite/gcc.dg/graphite/interchange-7.c: XFAILed.
3223 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
3225 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
3226 Early return without analyzing the data dependences if no
3227 transform has been done. Call restore_scattering if the transform
3229 (graphite-interchange.c): Same.
3230 * graphite-poly.c (print_scattering_function): Test for
3232 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
3233 (apply_poly_transforms): Do not gcc_assert that
3234 the transform is legal.
3235 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
3236 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
3237 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
3238 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
3239 * graphite-poly.h (struct poly_scattering): New.
3240 (struct poly_bb): Add original, transformed, and saved fields.
3241 Remove transformed_scattering, original_scattering,
3242 nb_local_variables and nb_scattering_transform fields.
3243 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
3244 (poly_scattering_new): New.
3245 (poly_scattering_free): New.
3246 (poly_scattering_copy): New.
3247 (store_scattering_pbb): New.
3248 (store_scattering): New.
3249 (restore_scattering_pbb): New.
3250 (restore_scattering): New.
3251 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
3252 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
3254 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
3256 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
3259 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
3261 * Makefile.in (graphite.o): Depends on PREDICT_H.
3262 * graphite.c: Include predict.h.
3263 (graphite_finalize): Call tree_estimate_probability.
3264 * predict.c (predict_loops): Do not call scev_initialize and
3266 (tree_estimate_probability_bb): New.
3267 (tree_estimate_probability): Do not initialize loops: move that
3268 code to the driver. Call tree_estimate_probability_bb.
3269 (tree_estimate_probability_driver): New.
3270 (pass_profile): Use tree_estimate_probability_driver.
3271 * predict.h (tree_estimate_probability): Declared.
3273 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
3275 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
3276 * graphite-dependences.c (graphite_legal_transform): Add time to
3277 TV_GRAPHITE_DATA_DEPS.
3278 (dependency_between_pbbs_p): Same.
3279 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
3281 2009-08-12 Andrey Belevantsev <abel@ispras.ru>
3283 PR rtl-optimization/41033
3284 * alias.c (nonoverlapping_component_refs_p): Punt when strict
3285 aliasing is disabled.
3287 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
3289 * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
3290 si_mask_operand, and_load_operand, low_bitmask_operand,
3291 and_reg_operand, and_operand): New predicates.
3292 * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
3293 * config/mips/mips.c (and_operands_ok): New function.
3294 * config/mips/mips-protos.h (and_operands_ok): Declare it.
3295 * config/mips/mips.md (move_type): Add ext_ins and logical.
3296 (type): Handle them.
3297 (and<mode>3): Use and_reg_operand as the second operand's predicate.
3298 (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
3299 shift_shift. Remove commutative constraint modifier.
3300 (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
3302 (*clear_upper32_dext): Remove define_insn_and_split.
3303 (*clear_upper32): Turn this define_insn_and_split ...
3304 (splitter for ANDing register with 0xffff_ffff): .. into this.
3306 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
3308 * combine.c (try_widen_shift_mode): Factor out code to check if an
3309 integer constant is a low-order bitmask from here ...
3310 * rtlanal.c (low_bitmask_len): ... to here.
3311 * rtl.h (low_bitmask_len): Declare.
3313 2009-08-11 Uros Bizjak <ubizjak@gmail.com>
3316 * config/alpha/alpha.md (addsi3): Remove expander.
3317 (addsi3): Rename from *addsi3_internal insn pattern.
3318 (subsi3): Remove expander.
3319 (subsi3): Rename from *subsi3_internal insn pattern.
3321 2009-08-11 Douglas B Rupp <rupp@gnat.com>
3323 * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
3326 2009-08-11 Vasiliy Fofanov <fofanov@adacore.com>
3327 Eric Botcazou <botcazou@adacore.com>
3328 Douglas B Rupp <rupp@gnat.com>
3330 * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
3331 that records that fit in 64 bits are returned by immediate value,
3332 as required by OpenVMS Calling Standard.
3333 (function_value): Adjust for above modification.
3334 (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
3335 virtual_incoming_args_rtx as base object, not next_arg.
3336 * config/alpha/vms.h: (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
3338 2009-08-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3340 * reload.c (find_reloads_subreg_address): Check the original
3341 req_equiv_mem address to detect the case where an address is
3342 not valid in the outer mode.
3344 2009-08-11 Richard Guenther <rguenther@suse.de>
3347 * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
3349 2009-08-10 Douglas B Rupp <rupp@gnat.com>
3351 * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
3352 (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
3354 2009-08-10 Olivier Hainque <hainqueu@adacore.com>
3355 Douglas B Rupp <rupp@gnat.com>
3357 * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
3358 PT_STACK when frame_pointer_needed on OpenVMS.
3359 (alpha_pv_save_size, alpha_using_fp): Remove.
3360 (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
3361 with proper processing for PT_NULL.
3362 (alpha_vms_initial_elimination_offset): New function. Support for
3363 INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
3364 (alpha_sa_size): Force procedure type to PT_STACK when
3365 frame_pointer_needed on OpenVMS.
3366 * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
3367 (alpha_using_fp): Likewise.
3368 (alpha_vms_can_eliminate): Add prototype.
3369 (alpha_vms_initial_elimination_offset): Likewise.
3370 * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
3371 Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
3373 2009-08-10 Eric Botcazou <botcazou@adacore.com>
3374 Douglas B Rupp <rupp@gnat.com>
3376 * config/alpha/alpha.c (common_object_handler): New function.
3377 (vms_attribute_table): Declare a single attribute "common_object".
3378 (vms_output_aligned_decl_common): New global function.
3379 (SECTION_VMS_OVERLAY): Delete.
3380 (SECTION_VMS_GLOBAL): Likewise.
3381 (SECTION_VMS_INITIALIZE): Likewise.
3382 (vms_asm_named_section): Remove support for above flags.
3383 (vms_section_type_flags): Delete.
3384 (TARGET_SECTION_TYPE_FLAGS): Likewise.
3385 * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
3386 * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
3387 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
3389 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
3392 * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
3393 (sub_ddmmss): Likewise.
3395 2009-08-10 Andreas Tobler <a.tobler@schweiz.org>
3398 * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
3401 2009-08-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3404 * reload1.c (reload_as_needed): Use cancel_changes to completely
3405 undo a failed replacement attempt.
3407 2009-08-10 Richard Guenther <rguenther@suse.de>
3410 * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
3411 (useless_type_conversion_p): ... here. Require pointer targets
3414 2009-08-10 Dodji Seketeli <dodji@redhat.com>
3417 * tree-inline.c (copy_statement_list): The resulting copy shouldn't
3418 loose the original type of the statement list.
3420 2009-08-09 Douglas B Rupp <rupp@gnat.com>
3422 * config/alpha/alpha.c: Include libfuncs.h
3423 (avms_asm_output_extern): New function.
3424 (alpha_init_libfuncs): Init some decc libfuncs.
3425 * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
3426 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
3427 (DO_CRTL_NAMES): Define.
3429 * config/alpha/vms64.h: (POINTERS_EXTEND_UNSIGNED): Remove undef.
3430 (LONG_TYPE_SIZE): Define.
3431 (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
3432 (SUBTARGET_SWITCHES): Define malloc64 switch.
3433 (TARGET_DEFAULT): Default MASK_MALLOC64 set.
3434 (MASK_RETURN_ADDR): Define.
3435 doc/invoke.texi (mmalloc64): Document switch.
3437 2009-08-09 Olivier Hainque <hainque@adacore.com>
3438 Douglas B Rupp <rupp@gnat.com>
3440 * config/alpha/alpha.c (struct machine_function): New flag for VMS,
3441 uses_condition_handler.
3442 (alpha_expand_builtin_establish_vms_condition_handler): New expander.
3443 (alpha_expand_builtin_revert_vms_condition_handler): New expander.
3444 (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
3445 and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
3446 (code_for_builtin): New insn codes for the new alpha_builtins.
3447 (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
3448 (alpha_sa_size): Account for uses_condition_handler.
3449 (alpha_expand_prologue): Likewise.
3450 (alpha_start_function): Likewise.
3451 (alpha_expand_epilogue): Likewise.
3452 * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
3453 establish/revert expanders.
3454 * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
3455 * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
3456 New expander, resorting to the alpha.c associated function.
3457 (builtin_revert_vms_condition_handler): Likewise.
3458 * config/alpha/vms-gcc_shell_handler.c: New file. Implements
3459 __gcc_shell_handler, the static VMS condition handler used as
3460 an indirection wrapper to the current dynamically established
3462 * config/alpha/vms-unwind.h: Complete rewrite.
3463 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
3464 * config/alpha/vms.h (MD_UNWIND_SUPPORT):
3466 2009-08-09 Eric Botcazou <botcazou@adacore.com>
3467 Douglas B Rupp <rupp@gnat.com>
3469 * config/alpha/alpha.c (alpha_links): Add 'target' field.
3470 (alpha_need_linkage): Handle aliases. Return function symbol.
3471 (alpha_use_linkage): Rename 'linkage' argument to 'func'.
3472 Use ultimate alias target for the linkage name.
3473 * config/alpha/alpha.md (movmemdi): Use the symbol returned
3474 by alpha_need_linkage for the function symbol.
3475 (setmemdi): Likewise.
3477 2009-08-09 Douglas B Rupp <rupp@gnat.com>
3479 * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
3480 * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
3481 (ASM_WEAKEN_LABEL): Define.
3482 (CRT_CALL_STATIC_FUNCTION): Define.
3483 (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
3484 (ENDFILE_SPEC): Define.
3485 (INIT_SECTION_ASM_OP): Define.
3486 * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
3487 * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
3489 (MULTILIB_OSDIRNAMES): Define.
3490 (shlib_version): Define.
3491 (SHLIB_EXT): Define.
3492 (SHLIB_OBJS): Define.
3493 (SHLIB_NAME): Define.
3494 (SHLIB_MULTILIB): Define.
3495 (SHLIB_INSTALL): Define.
3496 (SHLIB_SYMVEC): Define.
3497 (SHLIB_SYMVECX2): Define.
3498 (SHLIB_LINK): Define.
3500 2009-08-09 Douglas B Rupp <rupp@gnat.com>
3502 * config/alpha/alpha.c (alpha_initialize_trampoline):
3503 Initialize VMS trampoline IAW ABI for bounded procedure calls.
3504 (alpha_start_function): Emit transfer address on nested functions
3505 for VMS trampoline call.
3506 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
3507 since no longer used.
3508 * config/alpha/vms-tramp.asm: Remove.
3509 * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
3510 since now only data initialized at runtime.
3512 2009-08-09 Douglas B Rupp <rupp@gnat.com>
3514 * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
3515 (LINK_GCC_C_SEQUENCE_SPEC): Define.
3516 (MD_EXEC_PREFIX): Remove, no longer used.
3517 (MD_STARTFILE_PREFIX): Likewise.
3518 (INCLUDE_DEFAULTS): Likewise.
3519 * config/alpha/t-vms:
3520 (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
3522 2009-08-09 Richard Guenther <rguenther@suse.de>
3524 PR tree-optimization/41016
3525 * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
3526 (operand_precision): Remove.
3527 (integral_operand_p): Likewise.
3528 (recognize_single_bit_test): Adjust.
3530 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
3532 * c-common.c (c_fully_fold_internal): Issue a warning if a binary
3533 operation overflows. Likewise non-cast unary arithmetic.
3534 If one arm of a conditional expression is always taken,
3535 inhibit evaluation warnings for the other arm. Likewise inhibit
3536 evaluation warnings for the second && or || operand if the first
3537 operand is enough to determine the result.
3538 * c-typeck.c (build_conditional_expr): Apply the same inhibition
3540 (build_binary_op): Prevent duplicate evaluation warnings.
3542 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
3544 * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
3545 and destination have different modes, Use promote_mode to
3546 determine the signedness of the conversion. Assert that the
3547 promoted source mode matches the destination mode. Don't pass
3548 the destination and destination mode to expand_expr if the source
3549 mode is different. Simplify conversion logic.
3551 2009-08-09 Ira Rosen <irar@il.ibm.com>
3553 PR tree-optimization/41008
3554 * tree-vect-loop.c (vect_is_simple_reduction): Get operands
3555 from condition only in case it's a comparison. Adjust checks.
3557 2009-08-09 Bernd Schmidt <bernd.schmidt@analog.com>
3559 * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
3560 * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
3561 * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
3562 (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
3563 (dump_cand): Handle them.
3564 (struct iv_cand): New members COST_STEP and AINC_USE.
3565 (stmt_after_increment): Likewise.
3566 (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos. All
3567 callers changed. Use gimple_uid comparison instead of scanning.
3568 (add_candidate_1): When looking for identical candidates, take
3569 AINC_USE into account. Set it for new candidates.
3570 (force_expr_to_var_cost): Cast target_spill_cost to int.
3571 (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
3572 All callers changed. Check for availability of autoinc addressing
3573 modes, both in general for a given mode, and in the specific use case.
3574 (get_computation_cost_at): New argument CAN_AUTOINC. All callers
3576 (get_computation_cost): Likewise.
3577 (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
3578 add_autoinc_candidates): New static functions.
3579 (add_candidate): Call add_autoinc_candidates for candidates based on
3581 (find_iv_candidates): Call set_autoinc_for_original_candidates.
3582 (determine_use_iv_cost_address): If we have an autoinc candidate at
3583 the matching use, verify autoinc is possible and subtract the cost
3584 of the candidate's step from the cost.
3585 (determine_iv_cost): Record the cost of the increment in the COST_STEP
3586 member of the candidate.
3587 (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
3588 determine_use_iv_costs. Call renumber_gimple_stmt_uids_in_blocks.
3590 2009-08-09 Douglas B Rupp <rupp@gnat.com>
3592 * config.build (ia64-hp-*vms*): New target.
3593 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
3595 * config.gcc (ia64-hp-*vms*): New target.
3596 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
3598 * config.host (ia64-hp-*vms*): New target.
3599 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
3602 2009-08-08 Richard Guenther <rguenther@suse.de>
3604 PR tree-optimization/40991
3605 * tree-ssa-pre.c (eliminate): Delay purging EH edges.
3607 2009-08-08 Richard Sandiford <rdsandiford@googlemail.com>
3609 * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
3610 mode check. Do truncations in an integer mode.
3611 (force_to_mode): Handle subregs for all mode types. Only do
3612 arithmetic simplifications on integer modes.
3614 2009-08-07 Richard Guenther <rguenther@suse.de>
3616 PR tree-optimization/40999
3617 * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
3618 (maybe_fold_reference): Lookup constant initializers.
3619 (fold_gimple_assign): Likewise.
3621 2009-08-07 Richard Guenther <rguenther@suse.de>
3623 * tree-ssa.c (useless_type_conversion_p_1): Only for types
3624 that require structural equality defer to the langhook.
3626 2009-08-07 Martin Jambor <mjambor@suse.cz>
3628 * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
3630 (struct ipa_pass_through_data): New type.
3631 (struct ipa_ancestor_jf_data): New type.
3632 (union jump_func_value): Removed field formal_id, added fields
3633 pass_through and ancestor.
3634 (struct ipa_param_call_note): Changed type of formal_id to int from
3636 * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
3637 operations jump functions and ancestor jump functions.
3638 (compute_complex_pass_through): New function.
3639 (compute_scalar_jump_functions): Call compute_complex_pass_through,
3640 reflect changes in the jump function strucutre.
3641 (update_jump_functions_after_inlining): Ignore complex pass-through
3642 and ancestor jump functions.
3643 * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
3644 polynomial pass-through with operation jump functions.
3646 2009-08-07 Jakub Jelinek <jakub@redhat.com>
3648 * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
3649 fde->dw_fde_begin as begin label instead of hot/cold label.
3650 Use LLSDAC label instead of LLSDA for second section lsda.
3651 (dwarf2out_do_cfi_startproc): Add SECOND argument. Use LLSDAC
3652 label instead of LLSDA if it is true.
3653 (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
3655 * except.c (add_call_site, dw2_size_of_call_site_table): Add
3656 SECTION argument. Use it as index into crtl->eh.call_site_record
3658 (dw2_output_call_site_table): Likewise. Add CS_FORMAT argument,
3659 use it to determine how to print table entries instead of using
3660 #ifdef HAVE_AS_LEB128. For SECTION > 0 use hot resp. cold
3661 label instead of normal begin label as base.
3662 (sjlj_assign_call_site_values): Adjust add_call_site caller.
3663 (convert_to_eh_region_ranges): When doing hot/cold partitioning,
3664 ensure no EH range spans between sections and that landing pads
3665 are always in the corresponding section.
3666 (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
3667 for crtl->eh.call_site_record being an array rather than scalar.
3668 (output_one_function_exception_table): New function, copied
3669 from output_function_exception_table. Adjust
3670 dw2_size_of_call_site_table, dw2_output_call_site_table
3671 callers. For SECOND section use *C suffixed labels.
3672 (output_function_exception_table): Call
3673 output_one_function_exception_table and, when doing hot/cold
3674 partitioning, also another time for the second section.
3675 * opts.c: Include except.h.
3676 (decode_options): Allow -freorder-blocks-and-partition with
3677 exceptions, unless SJLJ or TARGET_UNWIND_INFO.
3678 * Makefile.in (opts.o): Depend on $(EXCEPT_H).
3679 * function.h (struct rtl_eh): Change call_site_record from
3680 scalar into array of 2 elements.
3682 2009-08-07 Martin Jambor <mjambor@suse.cz>
3684 * ipa-prop.c (count_formal_params_1): New function.
3685 (ipa_get_vector_of_formal_parms): New function.
3686 (get_vector_of_formal_parm_types): New function.
3687 (ipa_modify_formal_parameters): New function.
3688 (ipa_modify_call_arguments): New function.
3689 (index_in_adjustments_multiple_times_p): New function.
3690 (ipa_combine_adjustments): New function.
3691 (ipa_dump_param_adjustments): New function.
3692 * ipa-prop.h (struct ipa_parm_adjustment): New type.
3693 (ipa_get_vector_of_formal_parms): Declare.
3694 (ipa_modify_formal_parameters): Declare.
3695 (ipa_modify_call_arguments): Declare.
3696 (ipa_combine_adjustments): Declare.
3697 (ipa_dump_param_adjustments): Declare.
3698 (build_ref_for_offset): Declare.
3699 * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
3700 * tree-sra.c: Include ipa-prop.c.
3701 (build_ref_for_offset): Make public.
3703 2009-08-06 Neil Vachharajani <nvachhar@gmail.com>
3705 * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
3707 2009-08-06 Thomas Schwinge <tschwinge@gnu.org>
3709 * gcc/doc/extend.texi (__builtin_extract_return_address)
3710 (__builtin_frob_return_address): Document.
3712 2009-08-06 Paul Brook <paul@codesourcery.com>
3714 * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
3715 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
3716 implementation on ARMv6-M.
3718 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
3720 * doc/extend.texi (pcs): Document new attribute for ARM.
3722 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
3724 * arm.c (pcs_attribute_args): Comment out unsupported attribute
3727 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
3729 * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
3732 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
3734 * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
3736 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
3738 Merge ARM/hard_vfp_branch to trunk.
3740 2009-08-04 Richard Earnshaw <rearnsha@arm.com>
3742 * arm.c (libcall_eq): New function.
3743 (libcall_hash): New function.
3744 (add_libcall): New function.
3745 (arm_libcall_uses_aapcs_base): New function.
3746 (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
3747 libcalls using the base PCS.
3748 (arm_init_cumulative_args): Likewise.
3750 2009-07-20 Joseph Myers <joseph@codesourcery.com>
3752 * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
3753 Use base ABI for conversion libfuncs between HFmode and SFmode.
3755 2009-05-12 Joseph Myers <joseph@codesourcery.com>
3757 * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
3758 V4SImode as representatives of all 64-bit and 128-bit vector
3759 types. Allow vector types without vector modes.
3760 (aapcs_vfp_is_call_or_return_candidate): Handle vector types
3761 without vector modes like BLKmode.
3762 (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
3763 BLKmode. Avoid unsupported vector modes or TImode moves for
3765 (aapcs_vfp_allocate_return_reg): Likewise.
3766 (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
3767 V8QImode if TARGET_NEON || TARGET_IWMMXT.
3769 2009-05-12 Joseph Myers <joseph@codesourcery.com>
3771 * config/arm/arm.c (arm_handle_pcs_attribute): New.
3772 (arm_get_pcs_model): Pass attribute arguments to
3773 arm_pcs_from_attribute.
3774 (arm_init_cumulative_args): Use base AAPCS for conversions from
3775 floating-point types to DImode.
3776 (arm_attribute_table): Add pcs attribute.
3777 (arm_handle_pcs_attribute): New.
3778 * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
3779 conversions from floating-point types to DImode, also declare them
3780 to use base AAPCS and declare functions they call to use base
3781 AAPCS and their RTABI names.
3783 2009-05-12 Joseph Myers <joseph@codesourcery.com>
3785 * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
3786 -mfloat-abi=hard not being supported for VFP.
3788 2009-05-11 Kazu Hirata <kazu@codesourcery.com>
3790 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
3791 SYMBOL_REF to hard_libcall_value.
3793 2009-03-05 Joseph Myers <joseph@codesourcery.com>
3794 Richard Earnshaw <rearnsha@arm.com>
3796 * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
3797 has been put on the stack, all remaining co-processory arguments for
3798 that co-processor also go on the stack.
3800 2009-03-05 Joseph Myers <joseph@codesourcery.com>
3802 * config/arm/arm.c (arm_return_in_memory): Handle returning
3803 vectors of suitable size in registers also for AAPCS case.
3805 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
3807 * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
3809 2008-12-09 Richard Earnshaw <rearnsha@arm.com>
3811 ARM Hard-VFP calling convention
3812 * target-def.h (TARGET_LIBCALL_VALUE): New hook.
3813 * target.h (gcc_target): Add libcall_value to table of call hooks.
3814 * targhooks.h (default_libcall_value): Default implementation.
3815 * targhooks.c (default_libcall_value): Likewise.
3816 * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
3817 * optabs.c (expand_unop): Use it.
3818 * expr.h (hard_libcall_value): Pass the function RTX through.
3819 * calls.c (emit_library_call_value_1): Update call to
3821 * explow.c (hard_libcall_value): Use new target hook.
3822 * testsuite/lib/target-supports.exp
3823 (check_effective_target_arm_hard_vfp_ok): New hook.
3824 (check_effective_target_arm_neon_ok): Improve test for neon
3826 * testsuite/gcc.target/arm/eabi1.c: Only run test in base variant.
3827 * config/arm/arm.c: Include cgraph.h
3828 (TARGET_FUNCTION_VALUE): Override default hook.
3829 (arm_pcs_default): New variable.
3830 (arm_override_options): Don't fault hard calling convention with VFP.
3831 Add support for AAPCS variants.
3832 (arm_function_value): Make static. Handle AAPCS variants.
3833 (arm_libcall_value): New function.
3834 (arm_apply_result_size): Handle VFP registers in results.
3835 (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
3837 (pcs_attribute_args): New variable.
3838 (arm_pcs_from_attribute): New function.
3839 (arm_get_pcs_model): New function.
3840 (aapcs_vfp_cum_init): New function.
3841 (aapcs_vfp_sub_candidate): New function.
3842 (aapcs_vfp_is_return_candidate): New function.
3843 (aapcs_vfp_is_call_candidate): New function.
3844 (aapcs_vfp_allocate): New function.
3845 (aapcs_vfp_allocate_return_reg): New function.
3846 (aapcs_vfp_advance): New function.
3847 (aapcs_cp_arg_layout): New variable.
3848 (aapcs_select_call_coproc): New function.
3849 (aapcs_select_return_coproc): New function.
3850 (aapcs_allocate_return_reg): New function.
3851 (aapcs_libcall_value): New function.
3852 (aapcs_layout_arg): New function.
3853 (arm_init_cumulative_args): Initialize AAPCS args data.
3854 (arm_function_arg): Handle AAPCS variants using new interface.
3855 (arm_arg_parital_bytes): Likewise.
3856 (arm_function_arg_advance): New function.
3857 (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
3858 calling conventions.
3859 (arm_setup_incoming_varargs): Handle new AAPCS args data.
3860 * arm.h (NUM_VFP_ARG_REGS): Define.
3861 (LIBCALL_VALUE): Update.
3862 (FUNCTION_VALUE): Delete.
3863 (FUNCTION_VALUE_REGNO_P): Add VFP regs.
3864 (arm_pcs): New enum.
3865 (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
3866 (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
3867 (FUNCTION_ARG_REGNO_P): Add VFP regs.
3868 * arm-protos.h (arm_function_arg_advance): Add.
3869 (aapcs_libcall_value): Add.
3870 (arm_function_value): Delete.
3872 2009-08-06 Uros Bizjak <ubizjak@gmail.com>
3873 H.J. Lu <hongjiu.lu@intel.com>
3876 * config/i386/i386.c (standard_sse_mode_p): Remove.
3877 (standard_sse_constant_p): Return 2 for integer mode
3878 vector_all_ones_operand when SSE2 is enabled.
3879 (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
3880 (ix86_expand_vector_move): Do not check for negative values from
3881 standard_sse_constant_p.
3883 2009-08-06 Richard Guenther <rguenther@suse.de>
3885 * tree-ssa.c (useless_type_conversion_p_1): Make function and
3886 array type comparisons frontend independent.
3887 * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
3888 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
3889 out array reference lower bound and element size operands.
3890 (ao_ref_init_from_vn_reference): Properly compute the offset
3891 for ARRAY_RANGE_REF.
3892 (vn_reference_fold_indirect): Fill out array reference lower
3893 bound and element size operands.
3894 * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
3895 a non gimple valued reference operand which can happen for
3896 array reference lower bound or element size.
3897 (create_component_ref_by_pieces_1): Properly generate the
3898 element size operand for array references.
3900 2009-08-06 Richard Guenther <rguenther@suse.de>
3902 PR tree-optimization/40964
3903 * tree.c (iterative_hash_host_wide_int): Export.
3904 * tree.h (iterative_hash_host_wide_int): Declare.
3905 * tree-ssa-structalias.c (heapvar_map): New struct.
3906 (heapvar_map_eq): New function.
3907 (heapvar_map_hash): Likewise.
3908 (heapvar_lookup): Adjust.
3909 (heapvar_insert): Likewise.
3910 (make_constraint_from_heapvar): Allow multiple heap variables
3911 per decl at different offsets.
3912 (init_alias_heapvars): Adjust.
3914 2009-08-04 David Daney <ddaney@caviumnetworks.com>
3916 * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
3917 * mips_output_sync_loop (mips_output_sync_loop): Only emit
3918 trailing sync if TARGET_SYNC_AFTER_SC.
3920 2009-08-05 David Daney <ddaney@caviumnetworks.com>
3922 * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
3923 compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
3924 sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
3925 sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
3926 sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
3927 sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
3928 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
3929 sync_new_nand<mode>, sync_lock_test_and_set<mode>,
3930 test_and_set_12): Rewrite calls to mips_output_sync_loop.
3931 * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
3932 the prototype declaration match the definition.
3933 * gcc/config/mips/mips.c (mips_output_sync_loop): Emit sync
3934 instructions explicitly. Add barrier_before and operands
3936 * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
3937 MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
3938 MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
3939 MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
3940 MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
3941 MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
3943 2009-08-05 Andrew Pinski <pinskia@gmail.com>
3945 * tree-ssa-alias.c: Fix intervals to use [) syntax.
3947 2009-08-05 Uros Bizjak <ubizjak@gmail.com>
3948 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
3951 * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
3954 2009-08-05 Jakub Jelinek <jakub@redhat.com>
3956 PR rtl-optimization/40924
3957 * dse.c (canon_address): Before calling cselib_expand_value_rtx
3958 make sure canon_rtx (mem_address) isn't simpler than
3959 canon_rtx (expanded_mem_address).
3961 2009-08-05 Li Feng <nemokingdom@gmail.com>
3963 * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
3965 (build_scop_drs): Build alias set for each SCoP.
3967 2009-08-04 Sandra Loosemore <sandra@codesourcery.com>
3969 * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
3970 * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
3971 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
3972 (MIPS_ARCH_FLOAT_SPEC): Likewise.
3973 (BASE_DRIVER_SELF_SPECS): Likewise.
3975 2009-08-04 Andrew Pinski <pinskia@gmail.com>
3977 * tree-ssa-alias.c: Fix some comment typos.
3979 2009-08-04 Kaz Kojima <kkojima@gcc.gnu.org>
3981 * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
3982 ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
3984 2009-08-03 Janis Johnson <janis187@us.ibm.com>
3987 * simplify-rtx.c (simplify_binary_operation_1): Disable
3988 simplifications for decimal float operations.
3990 2009-08-03 Jakub Jelinek <jakub@redhat.com>
3993 * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
3994 operand of INDIRECT_REF.
3996 2009-08-03 Uros Bizjak <ubizjak@gmail.com>
3998 * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
3999 constants referencing TLS symbols.
4001 2009-08-03 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
4003 * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
4004 __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
4006 2009-08-03 Richard Guenther <rguenther@suse.de>
4008 * tree.c (make_vector_type): Build a main variant first,
4009 get the canonical one and then build the variant.
4010 * tree-ssa.c (useless_type_conversion_p_1): Handle
4012 (useless_type_conversion_p): Conversions to pointers to
4013 incomplete record types are useless.
4015 2009-08-03 Richard Guenther <rguenther@suse.de>
4017 * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
4018 file will be created.
4019 * omp-low.c (pass_diagnose_omp_blocks): Likewise.
4020 * toplev.c (compile_file): Adjust comment.
4022 2009-08-03 Kaz Kojima <kkojima@gcc.gnu.org>
4024 * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
4025 * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
4026 (TARGET_PROMOTE_FUNCTION_MODE): Define.
4027 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
4028 (sh_promote_function_mode): Fix typo.
4030 2009-08-03 Andreas Krebbel <krebbel1@de.ibm.com>
4032 * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
4034 2009-08-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4036 * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
4037 declaration arguments.
4039 2009-08-02 Uros Bizjak <ubizjak@gmail.com>
4041 * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
4042 of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
4043 (ix86_split_ashl): Ditto.
4044 (ix86_expand_vector_init_one_nonzero): Ditto.
4045 (ix86_expand_vector_set): Ditto.
4046 (ix86_expand_reduc_v4sf): Ditto.
4048 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
4050 * explow.c (promote_function_mode): Remove assert.
4051 * config/sh/sh.c (sh_promote_function_mode): Declare.
4053 2009-08-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4055 * config/pa/pa.c (pa_promote_function_mode): Declare.
4056 Change to static. Fix promote_mode call.
4058 * gthr-dce.h (CONST_CAST2): Define if not defined.
4059 (__gthread_setspecific): Use CONST_CAST2 to fix warning.
4061 * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
4063 2009-08-01 Paolo Bonzini <bonzini@gnu.org>
4065 * expr.c (store_constructor): Use promote_decl_mode. Remove
4066 now write-only variable unsignedp.
4067 (expand_expr_real_1): Use promote_decl_mode.
4068 * expr.h (promote_function_mode, promote_decl_mode): New.
4069 (promote_mode): Remove last argument.
4070 * function.c (assign_temp): Drop last argument of promote_mode.
4071 (assign_parm_find_data_types): Use promote_function_mode.
4072 (assign_parm_setup_reg): Likewise.
4073 (expand_function_end): Use promote_function_mode.
4074 * calls.c (initialize_argument_information): Use promote_function_mode.
4075 (precompute_arguments): Use promote_mode instead of checking if
4076 only PROMOTE_FUNCTION_MODE is defined.
4077 (expand_call): When making sibcall decisions, use promote_function_mode.
4078 Below, remove an if for targetm.calls.promote_function_return and
4079 and use promote_function_mode.
4080 (emit_library_call_value_1): Use promote_function_mode, fix bug
4081 where promote_mode was passed FOR_CALL == 0 for a return value in an
4083 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
4084 * explow.c (promote_function_mode, promote_decl_mode): New.
4085 (promote_mode): Keep only the FOR_CALL == 0 case.
4086 * combine.c (setup_incoming_promotion): Remove test of
4087 promote_function_args. Use promote_function_mode.
4088 * stmt.c (expand_value_return): Use promote_decl_mode.
4089 (expand_decl): Use promote_decl_mode.
4091 * expr.c (store_constructor): Use promote_decl_mode. Remove
4092 now write-only variable unsignedp.
4093 (expand_expr_real_1): Use promote_decl_mode.
4094 * expr.h (promote_function_mode, promote_decl_mode): New.
4095 (promote_mode): Remove last argument.
4096 * function.c (assign_temp): Drop last argument of promote_mode.
4097 (assign_parm_find_data_types): Use promote_function_mode.
4098 (assign_parm_setup_reg): Likewise.
4099 (expand_function_end): Use promote_function_mode.
4100 * calls.c (initialize_argument_information): Use promote_function_mode.
4101 (precompute_arguments): Use promote_mode instead of checking if
4102 only PROMOTE_FUNCTION_MODE is defined.
4103 (expand_call): When making sibcall decisions, use promote_function_mode.
4104 Below, remove an if for targetm.calls.promote_function_return and
4105 and use promote_function_mode.
4106 (emit_library_call_value_1): Use promote_function_mode, fix bug
4107 where promote_mode was passed FOR_CALL == 0 for a return value in an
4109 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
4110 * explow.c (promote_function_mode, promote_decl_mode): New.
4111 (promote_mode): Keep only the FOR_CALL == 0 case.
4112 * combine.c (setup_incoming_promotion): Remove test of
4113 promote_function_args. Use promote_function_mode.
4114 * stmt.c (expand_value_return): Use promote_decl_mode.
4115 (expand_decl): Use promote_decl_mode.
4117 * explow.c (promote_function_mode): Just call the target hook.
4118 * targhooks.c (default_promote_function_mode,
4119 default_promote_function_mode_always_promote): New.
4120 * targhooks.h (default_promote_function_mode,
4121 default_promote_function_mode_always_promote): Declare.
4122 * target.h (promote_function_args, promote_function_return): Remove.
4123 (promote_function_mode): New.
4124 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
4125 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
4126 (TARGET_PROMOTE_FUNCTION_MODE): New.
4127 (TARGET_CALLS): Adjust.
4128 * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
4129 TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
4131 * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
4132 * config/s390/s390.c (s390_promote_function_mode): ... here,
4133 with pointer handling.
4134 (TARGET_PROMOTE_FUNCTION_MODE): Define.
4135 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
4137 * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
4138 * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
4139 with pointer handling.
4140 (TARGET_PROMOTE_FUNCTION_MODE): Define.
4141 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
4143 * config/sh/sh-protos.h (sh_promote_function_mode): New.
4144 * config/sh/sh.c (sh_promote_function_mode): New.
4145 (TARGET_PROMOTE_FUNCTION_MODE): Define.
4146 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
4148 * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
4149 * config/cris/cris.c (cris_promote_function_mode): ... here.
4150 (TARGET_PROMOTE_FUNCTION_MODE): Define.
4151 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
4153 * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
4154 * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
4155 (TARGET_PROMOTE_FUNCTION_MODE): Define.
4156 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
4158 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
4159 * config/arm/arm.c (arm_promote_function_mode): ... here, without
4160 complex type handling.
4161 (TARGET_PROMOTE_FUNCTION_MODE): Define.
4162 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
4164 * config/pa/pa.c (pa_promote_function_mode): New.
4165 (TARGET_PROMOTE_FUNCTION_MODE): Define.
4166 (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
4168 * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
4169 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
4170 (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
4171 * config/xtensa/xtensa.c: Likewise.
4172 * config/stormy16/stormy16.c: Likewise.
4173 * config/iq2000/iq2000.c: Likewise.
4174 * config/rs6000/rs6000.c: Likewise.
4175 * config/picochip/picochip.c: Likewise.
4176 * config/arc/arc.c: Likewise.
4177 * config/mcore/mcore.c: Likewise.
4178 * config/score/score.c: Likewise.
4179 * config/mips/mips.c: Likewise.
4180 * config/bfin/bfin.c: Likewise.
4181 * config/ia64/ia64.c: Likewise (disabled though).
4183 * config/frv/frv.h: Remove pointless remark.
4185 * doc/tm.texi (PROMOTE_FUNCTION_MODE,
4186 TARGET_PROMOTE_FUNCTION_ARGS,
4187 TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
4188 (TARGET_PROMOTE_FUNCTION_MODE): ... this.
4190 2009-08-01 Sebastian Pop <sebastian.pop@amd.com>
4192 * doc/invoke.texi (-fgraphite-force-parallel): Renamed
4193 -floop-parallelize-all.
4194 * toplev.c (process_options): Rename flag_graphite_force_parallel to
4195 flag_loop_parallelize_all.
4196 * tree-ssa-loop.c (gate_graphite_transforms): Same.
4197 * graphite.c (graphite_transform_loops): Same.
4199 * graphite-poly.c (apply_poly_transforms): Same.
4201 2009-07-31 Richard Earnshaw <rearnsha@arm.com>
4203 PR tree-optimization/40914
4204 * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
4205 if set, then check the delta field of the PMF record.
4206 (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
4207 (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
4208 call is stored in the delta.
4210 2009-07-31 Adam Nemet <anemet@caviumnetworks.com>
4212 * config/mips/mips.md (*clear_upper32_dext): New pattern.
4214 2009-07-31 Uros Bizjak <ubizjak@gmail.com>
4216 * config/i386/bsd.h (ASM_BYTE): New define.
4217 * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
4218 * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
4219 .byte. Use fputs or putc instead of fprintf where appropriate.
4220 * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte. Use
4221 fputs or putc instead of fprintf where appropriate.
4222 * config/i386/i386elf.h: Ditto.
4223 * config/i386/sysv4.h: Ditto.
4225 * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
4226 * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
4227 (*tls_global_dynamic_64): Ditto.
4229 2009-07-31 Christian Bruel <christian.bruel@st.com>
4231 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
4233 2009-07-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4235 * config/arm/arm.c (arm_arm_address_cost): Fix typo.
4236 Remove dead code for MINUS.
4238 2009-07-31 Anthony Green <green@moxielogic.com>
4240 * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
4242 (moxie_expand_epilogue): Ditto for epilogue.
4243 (moxie_setup_incoming_varargs): ABI change. Use 5 registers for
4245 (moxie_function_arg): Ditto.
4246 (moxie_pass_by_reference): Ditto.
4247 (moxie_arg_partial_bytes): Ditto.
4248 * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
4249 (FUNCTION_ARG_ADVANCE) Ditto.
4250 (REG_PARM_STACK_SPACE) Ditto.
4251 (FUNCTION_ARG_REGNO_P) Dito.
4253 * config.gcc: Add moxie linux config support.
4254 * gcc/config/moxie/uclinux.h: New file.
4256 2009-07-31 DJ Delorie <dj@redhat.com>
4258 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
4259 (UNSPECV_SP_SWITCH_E): New.
4260 (sp_switch_1): Change to an unspec.
4261 (sp_switch_2): Change to an unspec. Don't use post-inc when we
4263 * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
4264 reference the new stack's address
4266 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
4268 * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
4269 graphite-clast-to-gimple.o, graphite-dependences.o,
4270 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
4271 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
4272 (graphite-blocking.o,
4273 graphite-clast-to-gimple.o, graphite-dependences.o,
4274 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
4275 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
4276 * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
4277 * cfgloop.h (struct loop): Add can_be_parallel field.
4278 * common.opt (fgraphite-identity): Moved up.
4279 (fgraphite-force-parallel): New flag.
4280 * graphite.c: Rewrite.
4281 * graphite.h: Rewrite.
4282 * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
4284 * toplev.c (graphite_out_file): New file descriptor.
4285 (graphite_in_file): New.
4286 (process_options): flag_graphite_force_parallel cannot be used without
4288 * tree-ssa-loop.c: Include toplev.h.
4289 (gate_graphite_transforms): Enable flag_graphite for
4290 flag_graphite_force_parallel.
4292 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
4294 * ChangeLog.graphite: New.
4295 * graphite-blocking.c: New.
4296 * graphite-clast-to-gimple.c: New.
4297 * graphite-clast-to-gimple.h: New.
4298 * graphite-dependences.c: New.
4299 * graphite-dependences.h: New.
4300 * graphite-interchange.c: New.
4301 * graphite-poly.c: New.
4302 * graphite-poly.h: New.
4303 * graphite-ppl.c: New.
4304 * graphite-ppl.h: New.
4305 * graphite-scop-detection.c: New.
4306 * graphite-scop-detection.h: New.
4307 * graphite-sese-to-poly.c: New.
4308 * graphite-sese-to-poly.h: New.
4312 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
4314 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
4315 * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
4317 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
4319 * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
4320 (scev_is_linear_expression): Return false if the evolution is not
4321 affine multivariate.
4323 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
4325 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
4326 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
4328 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
4330 * tree-data-ref.c (debug_data_references): New.
4331 (debug_data_reference): New.
4332 * tree-data-ref.h (debug_data_references): Declared.
4333 (debug_data_reference): Declared.
4335 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
4337 * tree-data-ref.c (stmt_simple_memref_p: Removed.
4338 * tree-data-ref.h (scop_p): Removed.
4339 (struct data_reference): Remove field scop.
4341 (stmt_simple_memref_p): Removed.
4343 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
4345 * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
4346 * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
4349 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
4351 * doc/invoke.texi (-fgraphite-force-parallel): Documented.
4353 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
4355 * doc/invoke.texi (-fgraphite-identity): Documented.
4357 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
4359 * tree-scalar-evolution.c: Fix comment.
4360 (instantiate_scev_1): Return unknow from scev instantiation if the
4361 result is not above instantiate_below.
4363 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
4365 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
4366 static anymore. Instantiate the symbols that may have been introduced
4368 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
4371 2009-07-30 DJ Delorie <dj@redhat.com>
4373 * config/mep/mep.c (mep_asm_init_sections): Add section flags and
4374 .vliw directive to VLIW sections.
4376 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4378 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
4380 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
4381 (AUTOHEADER): New variable.
4382 ($(srcdir)/cstamp-h.in): Use it.
4384 2009-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
4385 Pat Haugen <pthaugen@us.ibm.com>
4386 Revital Eres <ERES@il.ibm.com>
4388 * config/rs6000/vector.md (VEC_F): Add VSX support.
4392 (vector_load_<mode>): Ditto.
4393 (vector_store_<mode>): Ditto.
4394 (vector GPR move split): Ditto.
4395 (vec_reload_and_plus_<mptrsize>): Ditto.
4396 (vec_reload_and_reg_<mptrsize>): Ditto.
4397 (add<mode>3): Ditto.
4398 (sub<mode>3): Ditto.
4399 (mul<mode>3): Ditto.
4400 (neg<mode>2): Ditto.
4401 (abs<mode>2): Ditto.
4402 (smin<mode>3): Ditto.
4403 (smax<mode>3): Ditto.
4404 (vector_eq<mode>): Ditto.
4405 (vector_gt<mode>): Ditto.
4406 (vector_ge<mode>): Ditto.
4407 (vector_gtu<mode>): Ditto.
4408 (vector_select_<mode>_uns): Ditto.
4409 (vector_eq_<mode>_p): Ditto.
4410 (vector_gt_<mode>_p): Ditto.
4411 (vector_ge_<mode>_p): Ditto.
4412 (vector_gtu_<mode>_p): Ditto.
4413 (cr6_test_for_zero): Ditto.
4414 (cr6_test_for_zero_reverse): Ditto.
4415 (cr6_test_for_lt): Ditto.
4416 (cr6_test_for_lt_reverse): Ditto.
4417 (xor<mode>3): Ditto.
4418 (ior<mode>3): Ditto.
4419 (and<mode>3): Ditto.
4420 (one_cmpl<mode>2): Ditto.
4421 (nor<mode>2): Ditto.
4422 (andc<mode>2): Ditto.
4423 (float<VEC_int<mode>2): Ditto.
4424 (unsigned_float<VEC_int><mode>2): Ditto.
4425 (fix_trunc<mode><VEC_int>2): Ditto.
4426 (fixuns_trunc<mode><VEC_int>2): Ditto.
4428 (vec_set<mode>): Ditto.
4429 (vec_extract<mode>): Ditto.
4430 (vec_interleave_highv4sf): Ditto.
4431 (vec_interleave_lowv4sf): Ditto.
4432 (vec_realign_load_<mode>): Ditto.
4433 (vec_shl_<mode>): Ditto.
4434 (vec_shr_<mode>): Ditto.
4435 (div<mode>3): New patterns for VSX.
4436 (vec_interleave_highv2df): Ditto.
4437 (vec_interleave_lowv2df): Ditto.
4438 (vec_pack_trunc_v2df): Ditto.
4439 (vec_pack_sfix_trunc_v2df): Ditto.
4440 (vec_pack_ufix_trunc_v2df): Ditto.
4441 (vec_unpacks_hi_v4sf): Ditto.
4442 (vec_unpacks_lo_v4sf): Ditto.
4443 (vec_unpacks_float_hi_v4si): Ditto.
4444 (vec_unpacks_float_lo_v4si): Ditto.
4445 (vec_unpacku_float_hi_v4si): Ditto.
4446 (vec_unpacku_float_lo_v4si): Ditto.
4447 (movmisalign<mode>): Ditto.
4448 (vector_ceil<mode>2): New patterns for vectorizing math library.
4449 (vector_floor<mode>2): Ditto.
4450 (vector_btrunc<mode>2): Ditto.
4451 (vector_copysign<mode>3): Ditto.
4453 * config/rs6000/predicates.md (easy_vector_constant_msb): New
4454 predicate for setting the high bit in each word, used for copysign.
4456 * config/rs6000/ppc-asm.h (f19): Whitespace.
4457 (f32-f63): Define if VSX.
4458 (v0-v31): Define if Altivec.
4459 (vs0-vs63): Define if VSX.
4461 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
4463 * config/rs6000/power7.md: New file, provide tuning parameters for
4466 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
4467 (rs6000_cpu_cpp_builtins): Ditto.
4468 (altivec_overloaded_builtins): Ditto.
4469 (altivec_resolve_overloaded_builtin): Ditto.
4471 * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
4472 debug switch to disable vectorizing simple math builtin
4475 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
4476 Vectorize simple math builtin functions.
4477 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
4478 hook to vectorize math builtins.
4479 (rs6000_override_options): Enable -mvsx on -mcpu=power7.
4480 (rs6000_builtin_conversion): Add VSX/power7 support.
4481 (rs6000_builtin_vec_perm): Ditto.
4482 (vsplits_constant): Add support for loading up a vector constant
4483 with just the high bit set in each part.
4484 (rs6000_expand_vector_init): Add VSX/power7 support.
4485 (rs6000_expand_vector_set): Ditto.
4486 (rs6000_expand_vector_extract): Ditto.
4487 (rs6000_emit_move): Ditto.
4488 (bdesc_3arg): Ditto.
4489 (bdesc_2arg): Ditto.
4490 (bdesc_1arg): Ditto.
4491 (rs6000_expand_ternop_builtin): Ditto.
4492 (altivec_expand_builtin): Ditto.
4493 (rs6000_expand_unop_builtin): Ditto.
4494 (rs6000_init_builtins): Ditto.
4495 (altivec_init_builtins): Ditto.
4496 (builtin_function_type): Ditto.
4497 (rs6000_common_init_builtins): Ditto.
4498 (rs6000_handle_altivec_attribute); Ditto.
4499 (rs6000_mangle_type): Ditto.
4500 (rs6000_vector_mode_supported_p): Ditto.
4501 (rs6000_mode_dependent_address): Altivec addresses with AND -16
4504 * config/rs6000/vsx.md: New file for VSX support.
4506 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
4507 identifing values with just the most significant bit set.
4508 (enum rs6000_builtins): Add builtins for VSX. Add simple math
4509 vectorized builtins.
4511 * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
4512 (UNSPEC_VRFIM): Delete.
4513 (splitter for loading up vector with most significant bit): New
4514 splitter for vectorizing copysign.
4515 (altivec_vrfiz): Rename from altivec_fturncv4sf2. Add support for
4516 vectorizing simple math functions.
4517 (altivec_vrfip): Add support for vectorizing simple math functions.
4518 (altivec_vrfim): Ditto.
4519 (altivec_copysign_v4sf3): New insn for Altivec copysign support.
4521 * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
4522 (power7.md, vsx.md): Include for power7 support.
4523 (copysigndf3): Use VSX instructions if -mvsx.
4524 (negdf2_fpr): Ditto.
4525 (absdf2_fpr): Ditto.
4526 (nabsdf2_fpr): Ditto.
4527 (adddf3_fpr): Ditto.
4528 (subdf3_fpr): Ditto.
4529 (muldf3_fpr): Ditto.
4530 (divdf3_fpr): Ditto.
4531 (fix_truncdfdi2_fpr): Ditto.
4532 (cmpdf_internal1): Ditto.
4533 (fred, fred_fpr): Convert into expander/insn to add VSX support.
4534 (btruncdf2, btruncdf2_fpr): Ditto.
4535 (ceildf2, ceildf2_fpr): Ditto.
4536 (floordf2, floordf2_fpr): Ditto.
4537 (floatdidf2, floatdidf2_fpr): Ditto.
4538 (fmadddf4_fpr): Name insn. Use VSX instructions if -mvsx.
4539 (fmsubdf4_fpr): Ditto.
4540 (fnmadddf4_fpr_1): Ditto.
4541 (fnmadddf4_fpr_2): Ditto.
4542 (fnmsubdf4_fpr_1): Ditto.
4543 (fnmsubdf4_fpr_2): Ditto.
4544 (fixuns_truncdfdi2): Add expander for VSX support.
4545 (fix_truncdfdi2): Ditto.
4546 (fix_truncdfsi2): Ditto.
4548 (btruncsf2): Whitespace.
4549 (movdf_hardfloat32): Add support for VSX registers.
4550 (movdf_softfloat32): Ditto.
4551 (movdf_hardfloat64): Ditto.
4552 (movdf_hardfloat64_mfpgpr): Ditto.
4553 (movdf_softfloat64): Ditto.
4554 (movti splitters): Add check for vector registers supporting
4555 TImode in the future.
4556 (bpermd): Add power7 bpermd instruction.
4558 * config/rs6000/altivec.h (vec_div): Define if VSX.
4562 (vec_nearbyint): Ditto.
4565 (all predicates): Use the generic builtin function, and not the V4SF
4566 specific function so that the predicates will work with VSX's V2DF.
4570 * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
4571 Document new VSX functions and types.
4573 * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
4576 * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
4577 "wa", and "j" constraints. Modify "v" to talk about Altivec
4578 instead of just vector.
4580 2009-07-30 Andrew MacLeod <amacleod@redhat.com>
4583 * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
4584 location for phi arguments.
4585 (rewrite_update_phi_arguments): Find locations for reaching defs.
4586 * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
4587 Add location to add_phi_arg calls.
4588 * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
4589 * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
4590 split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
4591 * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
4592 create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
4593 * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
4594 * tree-phinodes.c (make_phi_node): Initialize location.
4595 (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
4596 (add_phi_arg): Add location parameter.
4597 (remove_phi_arg_num): Move location when moving phi argument.
4598 * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
4600 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
4601 slpeel_update_phi_nodes_for_guard1,
4602 slpeel_update_phi_nodes_for_guard2,
4603 slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
4604 vect_loop_versioning): Set locations.
4605 * tree-parloops.c (create_phi_for_local_result,
4606 transform_to_exit_first_loop, create_parallel_loop): Add locations.
4607 * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
4608 * tree-vect-loop.c (get_initial_def_for_induction,
4609 vect_create_epilog_for_reduction, vect_finalize_reduction): Add
4611 * tree-flow-inline.h (gimple_phi_arg_location): New. Return locus.
4612 (gimple_phi_arg_location_from_edge): New. Return locus from an edge.
4613 (gimple_phi_arg_set_location): New. Set locus.
4614 (gimple_phi_arg_has_location): New. Check for locus.
4615 (redirect_edge_var_map_location): New. Return locus from var_map.
4616 * tree-vect-data-refs.c (vect_setup_realignment): Set location.
4617 * tree-ssa-phiopt.c (conditional_replacement): Set locus when
4618 combining PHI arguments.
4619 (cond_store_replacement): Set location.
4620 * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
4621 * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
4622 scop_add_exit_phis_edge): Add locations.
4623 * tree-cfgcleanup.c (remove_forwarder_block,
4624 remove_forwarder_block_with_phi): Add locations.
4625 * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
4626 * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
4628 * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
4629 * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
4630 flush_pending_stmts): Add source location.
4631 * lambda-code.c (perfect_nestify): Maintain location stack with argument
4632 stack to preserve locations.
4633 * tree-vect-stmts.c (vectorizable_load): Add location.
4634 * tree-inline.c (copy_phis_for_bb): Copy locus.
4635 (setup_one_parameter): Add call locus to inlined parameter stmts.
4636 (initialize_inlined_parameters): Pass in call location as parameter
4638 (tree_function_versioning): Pass location to setup_one_parameter.
4639 * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
4640 * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
4641 copy and edge lists.
4642 (insert_partition_copy_on_edge, insert_value_copy_on_edge,
4643 insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
4644 locus parameter and override the stmt default if provided.
4645 (new_elim_graph, clear_elim_graph, delete_elim_graph,
4646 elim_graph_add_edge, elim_graph_remove_succ_edge,
4647 FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
4648 elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
4649 eliminate_phi): Add locus info in elimination graph for each edge and
4651 (insert_backedge_copies): Copy locus if present.
4652 * tree-flow.h (struct _edge_var_map): Add locus field.
4653 * tree-switch_conversions.c (fix_phi_nodes): Add locations.
4654 * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
4655 add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
4657 * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
4659 2009-07-30 Martin Jambor <mjambor@suse.cz>
4661 PR tree-optimization/40570
4662 * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
4665 2009-07-30 Razya Ladelsky <razya@il.ibm.com>
4667 * ssa-loop-manip.c: Include langhooks.h.
4668 (rewrite_phi_with_iv): New.
4669 (rewrite_all_phi_nodes_with_iv): New.
4670 (canonicalize_loop_ivs): Move here from tree-parloops.c.
4671 Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
4672 * tree-parloops.c (loop_parallel_p): Move out all conditions
4673 except dependency check.
4674 (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
4675 (gen_parallel_loop): Call canonicalize_loop_ivs without
4676 reduction_list argument.
4677 (build_new_reduction): New.
4678 (gather_scalar_reductions): New.
4679 (try_get_loop_niter): New.
4680 (try_create_reduction_list): New.
4681 (parallleize_loops): Change the parallel conditions check.
4682 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
4683 * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
4685 2009-07-30 Dave Korn <dave.korn.cygwin@gmail.com>
4687 * opt-functions.awk (opt_args): Allow argument to be enclosed in
4689 * doc/options.texi (Option properties): Mention new quoting syntax.
4691 2009-07-29 Douglas B Rupp <rupp@gnat.com>
4693 * config/alpha/alpha.c (alpha_start_function):
4694 Handle VMS_DEBUG_MAIN_POINTER
4695 * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
4696 * doc/invoke.texi: Document -mdebug-main switch.
4698 2009-07-29 Richard Henderson <rth@redhat.com>
4700 * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
4701 (cgraph_create_edge_including_clones): Likewise.
4702 * tree-inline.c (copy_bb): Operate on the correct edges
4703 when updating the callgraph.
4705 2009-07-29 Douglas B Rupp <rupp@gnat.com>
4707 * config/alpha/vms-cc.c: Deleted.
4708 * config/alpha/vms-ld.c: Deleted.
4709 * config/alpha/t-vms64: Moved to config/vms
4710 * config/alpha/vms-crt0-64.c: Moved to config/vms
4711 * config/alpha/vms-crt0.c: Moved to config/vms
4712 * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
4713 * config/alpha/vms-psxcrt0.c: Moved to config/vms
4714 * config/alpha/xm-vms.h: Moved to config/vms
4715 * config/alpha/x-vms: Moved to config/vms
4716 * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
4718 * config/vms/t-vms: Moved here from config/alpha. Alpha specific
4719 parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
4721 * config/vms/t-vms64: Moved here from config/alpha
4722 * config/vms/vms-crt0-64.c: Moved here from config/alpha.
4723 (argc,argv,envp): Enforce 32bit malloc'ing.
4724 * config/vms/vms-psxcrt0-64.c: Likewise.
4725 * config/vms/vms-crt0.c: Moved here from config/alpha.
4726 * config/vms/vms-psxcrt0.c: Likewise.
4727 * config/vms/vms-crtl-64.h: New file.
4728 * config/vms/vms-crtl.h: New file.
4729 * config/vms/vms.opt: New file.
4730 * config/vms/xm-vms64.h: New file.
4731 * config/vms/xm-vms.h: Moved here from config/alpha.
4732 (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
4734 * config/vms/x-vms: Moved here from config/alpha.
4735 (version, VMS_EXTRA_PARTS): Moved to t-vms.
4736 (vms-ld.o, vms-cc.o): Removed.
4737 (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
4739 2009-07-29 Douglas B Rupp <rupp@gnat.com>
4741 * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
4742 correct stack (obvious VMS fix).
4744 2009-07-29 Douglas B Rupp <rupp@gnat.com>
4746 * dwarf2out.c (output_file_names): Output VMS style file name, size,
4747 date, version info if VMS_DEBUGGING_INFO defined.
4748 * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
4749 size, date calculating code moved here.
4751 2009-07-29 Paul Brook <paul@codesourcery.com>
4753 * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
4756 2009-07-29 Uros Bizjak <ubizjak@gmail.com>
4759 * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
4760 to DImode when generating insq_le insn.
4762 2009-07-28 Douglas B Rupp <rupp@gnat.com>
4764 * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
4765 New macro set for VMS_DEBUGGGING_INFO.
4766 (AT_string_form): Use it.
4768 2009-07-28 DJ Delorie <dj@redhat.com>
4770 * config/mep/mep.c (vtext_section): New.
4771 (vftext_section): New.
4772 (ftext_section): New.
4773 (mep_select_section): Add support for functions.
4774 (mep_unique_section): Likewise.
4775 (mep_asm_init_sections): Likewise.
4776 (mep_encode_section_info): Remove it from here.
4778 * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
4780 2009-07-28 Paolo Bonzini <bonzinI@gnu.org>
4782 * tree.h (TREE_DEPRECATED): Document it is used for types too.
4783 (TYPE_VECTOR_OPAQUE): Use default_def_flag
4785 2009-07-28 Douglas B Rupp <rupp@gnat.com>
4787 * dwarf2out.c (output_file_names): Test new macro
4788 DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
4789 (add_comp_dir_attribute): Likewise.
4791 2009-07-28 Kai Tietz <kai.tietz@onevision.com>
4793 * config/i386/mingw-w64.h (LINK_SPEC): Add
4794 separating space between commands.
4796 2009-07-28 Jan Hubicka <jh@suse.cz>
4798 PR tree-optimization/40759
4799 * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
4802 2009-07-27 DJ Delorie <dj@redhat.com>
4804 * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
4805 types are dword-aligned.
4806 (mep_expand_va_start): Likewise.
4808 2009-07-27 Olivier Hainque <hainque@adacore.com>
4809 Douglas B Rupp <rupp@gnat.com>
4811 * convert.c (convert_to_pointer): Don't assume the target
4812 pointer type is POINTER_SIZE long. Fetch its precision instead.
4814 2009-07-27 Douglas B Rupp <rupp@gnat.com>
4816 * system.h (fopen): Undefine if macro.
4818 2009-07-27 Jakub Jelinek <jakub@redhat.com>
4820 * dwarf2out.c (output_cfi_p): Removed.
4821 (output_cfis): New function.
4822 (output_fde): New function, split from output_call_frame_info.
4823 (output_call_frame_info): Use it.
4824 (dwarf2out_switch_text_section): Use output_cfis.
4826 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
4828 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
4829 TARGET_BI_ARCH is specified without enabling SJLJ.
4830 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
4831 if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
4833 2009-07-26 Mikael Pettersson <mikpe@it.uu.se>
4835 * arm.md (negdi2): Use DImode if forcing a value into a register.
4837 2009-07-26 Ira Rosen <irar@il.ibm.com>
4839 PR tree-optimization/40801
4840 * tree-vect-stmts.c (vectorizable_call): Get previous copy
4841 of vector operand from the previous copy of vector statement.
4842 Pass the correct definition type value to
4843 vect_get_vec_def_for_stmt_copy().
4845 2009-07-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4847 * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
4848 const char ** conversion.
4850 2009-07-25 David Daney <ddaney@caviumnetworks.com>
4852 * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
4853 fancy_abort() if !ENABLE_ASSERT_CHECKING.
4854 (gcc_unreachable): Invoke __builtin_unreachable() if
4855 !ENABLE_ASSERT_CHECKING.
4857 2009-07-25 David Daney <ddaney@caviumnetworks.com>
4859 PR rtl-optimization/40445
4860 * emit-rtl.c (next_nonnote_insn_bb): New function.
4861 * rtl.h (next_nonnote_insn_bb): Declare new function.
4862 * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
4863 with no successors that is the successor of the ENTRY_BLOCK.
4864 Continue from the top after removing an empty fallthrough block.
4865 * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
4866 of next_nonnote_insn.
4868 2009-07-25 David Daney <ddaney@caviumnetworks.com>
4870 * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
4872 2009-07-25 Martin Jambor <mjambor@suse.cz>
4874 * c-common.c (c_common_attribute_table): New element for noclone.
4875 (handle_noclone_attribute): New function. Forward-declare.
4876 * tree-inline.c (tree_versionable_function_p): Check for noclone
4878 * doc/extend.texi (Labels as Values): Document need for noclone.
4879 (Function Attributes): Document noclone attribute.
4881 2009-07-25 Jakub Jelinek <jakub@redhat.com>
4883 PR rtl-optimization/34999
4884 * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
4885 and dw_fde_switched_cold_to_hot fields.
4886 (output_cfi_p): New function.
4887 (output_call_frame_info): If fde->dw_fde_switched_sections,
4888 output 2 FDEs instead of one with corrupted header.
4889 (dwarf2out_do_cfi_startproc): New function.
4890 (dwarf2out_begin_prologue): Use it. Initialize fde->dw_fde_switch_cfi
4891 and fde->dw_fde_switched_cold_to_hot.
4892 (dwarf2out_switch_text_section): Compute
4893 fde->dw_fde_switched_cold_to_hot. Switch to new text section here.
4894 If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
4895 dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
4896 Otherwise, compute fde->dw_fde_switch_cfi.
4898 2009-07-24 Cary Coutant <ccoutant@google.com>
4900 * tree-cfg.c (assign_discriminator): Add explicit parentheses.
4902 2009-07-24 Cary Coutant <ccoutant@google.com>
4904 * cfghooks.c (split_block): Copy discriminator to new block.
4905 * tree-cfg.c (assign_discriminator): Check location of last
4906 instruction in block as well as first.
4908 2009-07-24 Uros Bizjak <ubizjak@gmail.com>
4910 * config/i386/linux.c: Use fputs or putc instead of fprintf
4912 * config/i386/gas.h: Ditto.
4913 * config/i386/x86-64.h: Ditto.
4914 * config/i386/att.h: Ditto.
4916 2009-07-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4918 * expmed.c (emit_store_flag): Use a recursive call to optimize the
4921 2009-07-24 Martin Jambor <mjambor@suse.cz>
4923 * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
4924 (ipa_push_func_to_list_1): Declare.
4925 (ipa_push_func_to_list): New function.
4927 * ipa-prop.c (ipa_push_func_to_list_1): New function.
4928 (ipa_init_func_list): Call ipa_push_func_to_list_1.
4929 (ipa_push_func_to_list): Removed.
4930 (ipa_pop_func_from_list): Clear node_enqueued flag.
4932 2009-07-24 Andreas Krebbel <krebbel1@de.ibm.com>
4934 * config/s390/s390.c (override_options): Default
4935 max-unrolled-insns to 100 for z10 tuning.
4937 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
4939 * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
4940 tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
4941 tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
4942 tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
4943 tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
4944 tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
4945 lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
4947 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
4949 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
4950 use default set in mingw32.h header.
4951 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
4952 64-bit /mingw/include path.
4953 (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
4956 2009-07-23 Neil Vachharajani <nvachhar@google.com>
4958 PR rtl-optimization/40209
4959 * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
4961 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
4963 * config/i386/i386.c: Use ASM_LONG instead of .long. Concatenate
4964 ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
4965 with the rest of string where appropriate. Use fputs or putc
4966 instead of fprintf where appropriate.
4968 2009-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4969 Pat Haugen <pthaugen@us.ibm.com>
4970 Revital Eres <ERES@il.ibm.com>
4972 * config/rs6000/vector.md: New file. Move most of the vector
4973 expander support here from altivec.md to allow for the VSX vector
4974 unit in the future. Add support for secondary_reload patterns.
4975 Rewrite the patterns for vector comparison, and vector comparison
4976 predicate instructions so that the RTL expresses the desired
4977 behavior, instead of using unspec.
4979 * config/rs6000/constraints.md ("f" constraint): Use
4980 rs6000_constraints to hold the precalculated register class.
4981 ("d" constraint): Ditto.
4982 ("wd" constraint): New constraint for VSX.
4983 ("wf" constraint): Ditto.
4984 ("ws" constraint): Ditto.
4985 ("wa" constraint): Ditto.
4986 ("wZ" constraint): Ditto.
4987 ("j" constraint): Ditto.
4989 * config/rs6000/predicates.md (vsx_register_operand): New
4991 (vfloat_operand): New predicate for vector.md.
4992 (vint_operand): Ditto.
4993 (vlogical_operand): Ditto.
4994 (easy_fp_constant): If VSX, 0.0 is an easy constant.
4995 (easy_vector_constant): Add VSX support.
4996 (altivec_indexed_or_indirect_operand): New predicate for
4997 recognizing Altivec style memory references with AND -16.
4999 * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
5000 for vector secondary reload support.
5001 (rs6000_vector_reg_class): Delete, replacing it with
5003 (rs6000_vsx_reg_class): Ditto.
5004 (rs6000_constraints): New array to hold the register classes of
5005 each of the register constraints that can vary at runtime.
5006 (builtin_mode_to_type): New static array for builtin function type
5008 (builtin_hash_table): New static hash table for builtin function
5010 (TARGET_SECONDARY_RELOAD): Define target hook.
5011 (TARGET_IRA_COVER_CLASSES): Ditto.
5012 (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
5013 registers are 128 bits if VSX memory reference instructions are used.
5014 (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
5016 (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
5017 (rs6000_debug_reg_global): Move -mdebug=reg statements here.
5018 Print several of the scheduling related parameters.
5019 (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
5020 rs6000_constraints instead of rs6000_vector_reg_class. Move
5021 -mdebug=reg code to rs6000_debug_reg_global. Add support for
5022 -mvsx-align-128 debug switch. Drop testing float_p if VSX or
5023 Altivec. Add VSX support. Setup for secondary reload support on
5024 Altivec/VSX registers.
5025 (rs6000_override_options): Make power7 set the scheduling groups
5026 like the power5. Add support for new debug switches to override
5027 the scheduling defaults. Temporarily disable -mcpu=power7 from
5028 setting -mvsx. Add support for debug switches -malways-hint,
5029 -msched-groups, and -malign-branch-targets.
5030 (rs6000_buitlin_conversion): Add support for returning unsigned
5031 vector conversion functions to fix regressions due to stricter
5033 (rs6000_builtin_mul_widen_even): Ditto.
5034 (rs6000_builtin_mul_widen_odd): Ditto.
5035 (rs6000_builtin_vec_perm): Ditto.
5036 (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
5037 (rs6000_expand_vector_init): Initial VSX support for using xxlxor
5039 (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
5041 (bdesc_3arg): Add builtins for unsigned types. Add builtins for
5042 VSX types for bit operations. Changes to accomidate vector.md.
5043 (bdesc_2arg): Ditto.
5044 (bdesc_1arg): Ditto.
5045 (struct builtin_description_predicates): Rewrite predicate
5046 handling so that RTL describes the operation, instead of passing
5047 the instruction to be used as a string argument.
5048 (bdesc_altivec_preds): Ditto.
5049 (altivec_expand_predicate_builtin): Ditto.
5050 (altivec_expand_builtin): Ditto.
5051 (rs6000_expand_ternop_builtin): Use a switch instead of an if
5052 statement for vsldoi support.
5053 (altivec_expand_ld_builtin): Change to use new names from vector.md.
5054 (altivec_expand_st_builtin): Ditto.
5055 (paired_expand_builtin): Whitespace changes.
5056 (rs6000_init_builtins): Add V2DF/V2DI types. Initialize the
5057 builtin_mode_to_type table for secondary reload. Call
5058 builtin_function_type to build random builtin functions.
5059 (altivec_init_builtins): Change to use builtin_function_type to
5060 create builtin function types dynamically as we need them.
5061 (builtin_hash_function): New support for hashing the tree types
5062 for builtin function as we need it, rather than trying to build
5063 all of the trees that we need. Add initial preliminary VSX support.
5064 (builtin_function_type): Ditto.
5065 (builtin_function_eq): Ditto.
5066 (builtin_hash_struct): Ditto.
5067 (rs6000_init_builtins): Ditto.
5068 (rs6000_common_init_builtins): Ditto.
5069 (altivec_init_builtins): Ditto.
5070 (rs6000_common_init_builtins): Ditto.
5071 (enum reload_reg_type): New enum for simplifing reg classes.
5072 (rs6000_reload_register_type): Simplify register classes into GPR,
5073 Vector, and other registers. Altivec and VSX addresses in reload.
5074 (rs6000_secondary_reload_inner): Ditto.
5075 (rs6000_ira_cover_classes): New target hook, that returns the
5076 appropriate cover classes, based on -mvsx being used or not.
5077 (rs6000_secondary_reload_class): Add VSX support.
5078 (get_vec_cmp_insn): Delete, rewrite vector conditionals.
5079 (get_vsel_insn): Ditto.
5080 (rs6000_emit_vector_compare): Rewrite vector conditional support
5081 so that where we can, we use RTL operators, instead of blindly use
5083 (rs6000_emit_vector_select): Ditto.
5084 (rs6000_emit_vector_cond_expr): Ditto.
5085 (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
5086 (create_TOC_reference): Add -mdebug=addr support.
5087 (emit_frame_save): VSX loads/stores need register indexed addressing.
5089 * config/rs6000/rs6000.md: Include vector.md.
5091 * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
5093 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5094 support for V2DI, V2DF in logical, permute, select operations.
5096 * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
5097 switch for vsx/power7.
5098 (-mvsx-scalar-memory): Ditto.
5099 (-mvsx-align-128): Ditto.
5100 (-mallow-movmisalign): Ditto.
5101 (-mallow-df-permute): Ditto.
5102 (-msched-groups): Ditto.
5103 (-malways-hint): Ditto.
5104 (-malign-branch-targets): Ditto.
5106 * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
5108 (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
5109 (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
5110 (rs6000_vector_reg_class): Delete.
5111 (rs6000_vsx_reg_class): Ditto.
5112 (enum rs6000_reg_class_enum): New enum for the constraints that
5113 vary based on target switches.
5114 (rs6000_constraints): New array to hold the register class for all
5115 of the register constraints that vary based on the switches used.
5116 (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
5117 (enum rs6000_builtins): Add unsigned varients for the builtin
5118 declarations returned by target hooks for expanding multiplies,
5119 select, and permute operations. Add VSX builtins.
5120 (enum rs6000_builtin_type_index): Add entries for VSX.
5121 (V2DI_type_node): Ditto.
5122 (V2DF_type_node): Ditto.
5123 (unsigned_V2DI_type_node): Ditto.
5124 (bool_long_type_node): Ditto.
5125 (intDI_type_internal_node): Ditto.
5126 (uintDI_type_internal_node): Ditto.
5127 (double_type_internal_node): Ditto.
5129 * config/rs6000/altivec.md (whole file): Move all expanders to
5130 vector.md from altivec.md. Rename insn matching functions to be
5132 (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
5133 (altivec_vcmp*): Ditto.
5134 (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
5135 (VM): New iterator for moves that includes the VSX types.
5136 (altivec_vperm_<mode>): Add VSX types. Add unsigned types.
5137 (altivec_vperm_<mode>_uns): New, for unsigned types.
5138 (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
5139 (altivec_eq<mode>): Ditto.
5140 (altivec_gt<mode>): Ditto.
5141 (altivec_gtu<mode>): Ditto.
5142 (altivec_eqv4sf): Ditto.
5143 (altivec_gev4sf): Ditto.
5144 (altivec_gtv4sf): Ditto.
5145 (altivec_vcmpbfp_p): Ditto.
5147 2009-07-23 Richard Earnshaw <rearnsha@arm.com>
5149 * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
5152 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
5155 * config/i386/i386.c (output_387_ffreep): Rewrite to use
5156 ASM_SHORT instead of .word.
5157 * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
5158 instead of .word in asm template.
5160 2009-07-22 Vladimir Makarov <vmakarov@redhat.com>
5163 * ira-lives.c (bb_has_abnormal_call_pred): New function.
5164 (process_bb_node_lives): Use it.
5166 * ira.c (setup_cover_and_important_classes): Don't setup
5167 ira_important_class_nums. Add cover classes to the end of
5169 (cover_class_order, comp_reg_classes_func, reorder_important_classes):
5171 (find_reg_class_closure): Use reorder_important_classes.
5173 * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
5175 * config/i386/i386.c (i386_ira_cover_classes): New function.
5176 (TARGET_IRA_COVER_CLASSES): Redefine.
5178 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
5179 importance of order of cover classes in the array.
5181 2009-07-22 Diego Novillo <dnovillo@google.com>
5183 * tree-pass.h (TDF_EH): Define.
5184 * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
5185 contains TDF_EH, print the EH region number holding GS.
5186 * tree-dump.c (dump_options): Add "eh".
5187 * doc/invoke.texi: Document it.
5189 2009-07-22 Doug Kwan <dougkwan@google.com>
5191 * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
5193 2009-07-22 Michael Matz <matz@suse.de>
5195 PR tree-optimization/35229
5196 PR tree-optimization/39300
5198 * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
5199 (inhibit_phi_insertion): New function.
5200 (insert_into_preds_of_block): Call it for REFERENCEs.
5201 (init_pre): Initialize and finalize scalar evolutions.
5202 * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
5204 2009-07-22 Uros Bizjak <ubizjak@gmail.com>
5206 * config/i386/predicates.md (zero_extended_scalar_load_operand):
5207 Use CONST_VECTOR_NUNITS to determine number of elements.
5209 2009-07-22 Andreas Krebbel <krebbel1@de.ibm.com>
5211 * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
5212 (U, W): Constraints are now deprecated and will be removed if we
5214 * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
5216 ("prefetch"): Add the stcmh instruction for prefetching.
5217 * config/s390/s390.c (s390_symref_operand_p): Function moved. No
5219 (s390_short_displacement): Return always true if compiling for
5220 machines not providing the long displacement facility.
5221 (s390_mem_constraint): Support the new constraint letter Z.
5222 (s390_check_qrst_address): New function.
5224 2009-07-21 DJ Delorie <dj@redhat.com>
5226 * config/mep/mep.c (mep_legitimize_arg): Leave control registers
5229 2009-07-21 Jason Merrill <jason@redhat.com>
5231 * c-common.c (max_tinst_depth): Increase default to 1024.
5233 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
5235 * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
5236 (vec_unpacku_float_lo_v4si): Ditto.
5238 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
5241 * config/i386/sse.md (sse2_cvtudq2ps): New expander.
5242 (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
5243 (builtin_description): Add __builtin_ia32_cvtudq2ps.
5244 (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
5246 2009-07-21 Jakub Jelinek <jakub@redhat.com>
5248 PR tree-optimization/40813
5249 * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
5252 2009-07-21 Kaz Kojima <kkojima@gcc.gnu.org>
5254 * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
5255 with a NOP_EXPR if needed.
5257 2009-07-21 Paul Brook <paul@codesourcery.com>
5259 * tree-vectorizer.c (increase_alignment): Handle nested arrays.
5260 Terminate debug dump with newline.
5262 2009-07-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5264 * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
5265 Cast "1" to unsigned HOST_WIDE_INT.
5266 (compute_zdepdi_operands): Limit maximum length to 64 bits. Limit
5267 deposit length to the maximum length - lsb. Extend length if
5268 HOST_BITS_PER_WIDE_INT is 32.
5270 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
5272 * cgraph.h (constant_pool_htab): New function.
5273 (constant_descriptor_tree): Move from varasm.c.
5274 * varasm.c (constant_pool_htab): New function.
5275 (constant_descriptor_tree): Move to cgraph.h.
5277 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
5279 * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
5281 2009-07-20 Shujing Zhao <pearly.zhao@oracle.com>
5283 * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
5286 2009-07-20 Xinliang David Li <davidxl@google.com>
5288 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
5290 2009-07-20 Adam Nemet <anemet@caviumnetworks.com>
5292 * config/mips/mips.md (move_type): Add arith.
5293 (type): Handle arith.
5294 (zero_extendsidi2): Rename this into ...
5295 (*zero_extendsidi2): ... this. Don't match if ISA_HAS_EXT_INS.
5296 (zero_extendsidi2): New expander.
5297 (*zero_extendsidi2_dext): New pattern.
5299 2009-07-20 Nick Clifton <nickc@redhat.com>
5301 * config.gcc (mips64-*-*): Add definition of tm_defines in order
5302 to set MIPS_ABI_DEFAULT.
5303 * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
5305 2009-07-20 Jakub Jelinek <jakub@redhat.com>
5307 * tree-object-size.c (addr_object_size): Handle unions with
5308 array in it as last field of structs in __bos (, 1) as __bos (, 0).
5310 PR tree-optimization/40792
5311 * tree.c (build_function_type_skip_args): Remove bogus assert.
5313 2009-07-20 Jan Hubicka <jh@suse.cz>
5314 Martin Jambor <mjambor@suse.cz>
5316 * cgraph.h (combined_args_to_skip): New field.
5317 * cgraph.c (cgraph_create_virtual_clone): Properly handle
5318 combined_args_to_skip and args_to_skip.
5319 * tree-inline.c (update_clone_info): New function.
5320 (tree_function_versioning): Call update_clone_info.
5321 * cgraphunit.c: (cgraph_materialize_clone): Dump materialized
5323 (cgraph_materialize_all_clones): More extensive dumping, working
5324 with combined_args_to_skip rather than args_to_skip.
5326 2009-07-20 Ira Rosen <irar@il.ibm.com>
5328 * tree-vectorizer.h (vectorizable_condition): Add parameters.
5329 * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
5330 (get_initial_def_for_reduction): Likewise.
5331 (vectorizable_reduction): Skip the check of first operand in case
5332 of COND_EXPR. Add check that it is outer loop vectorization if
5333 nested cycle was detected. Call vectorizable_condition() for
5334 COND_EXPR. If reduction epilogue cannot be created do not fail for
5335 nested cycles (if it is not double reduction). Assert that there
5336 is only one type in the loop in case of COND_EXPR. Call
5337 vectorizable_condition() to vectorize COND_EXPR.
5338 * tree-vect-stmts.c (vectorizable_condition): Update comment.
5339 Add parameters. Allow nested cycles if called from
5340 vectorizable_reduction(). Use reduction vector variable if provided.
5341 (vect_analyze_stmt): Call vectorizable_reduction() before
5342 vectorizable_condition().
5343 (vect_transform_stmt): Update call to vectorizable_condition().
5345 2009-07-20 Christian Bruel <christian.bruel@st.com>
5347 * config/sh/sh.opt (-mfmovd): Resurrect and document.
5348 * doc/invoke.texi (-mfmovd): Likewise.
5349 * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
5351 2009-07-20 Jan Hubicka <jh@suse.cz>
5353 * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
5354 when handling SSA name.
5356 2009-07-19 Jan Hubicka <jh@suse.cz>
5358 PR tree-optimization/40676
5359 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
5360 virtual PHIs in empty BBs.
5362 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
5364 * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
5365 re-expanded the compound use gen_lowpart instead to convert to the
5368 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
5370 * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
5371 OUTER_CONST arguments.
5372 <LSHIFTRT>: Use them to allow widening if the bits shifted in from
5373 the new wider mode will be masked off.
5374 (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
5376 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
5378 * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
5379 high-order bits are zero.
5381 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
5383 * combine.c (simplify_shift_const_1): Split code to determine
5385 (try_widen_shift_mode): ... here. Allow widening for ASHIFTRT if the
5386 new bits shifted in are identical to the old sign bit.
5388 2009-07-18 Richard Guenther <rguenther@suse.de>
5391 * gimplify.c (gimplify_call_expr): Reject code using results from
5392 functions returning void.
5394 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
5396 * doc/md.texi: Document the new PowerPC "es" constraint.
5397 Document that "m" can include automodified addresses on this target,
5398 and explain how %U must be used. Extend the "Q" and "Z" documentation
5399 to suggest "es" as well as "m".
5400 * config/rs6000/constraints.md (es): New memory constraint.
5401 (Q, Z): Update strings to match new documentation.
5403 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
5405 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
5406 offset from virtual_stack_vars_rtx and arg_pointer_rtx.
5407 * config/rs6000/predicates.md (volatile_mem_operand): Use
5408 offsettable_nonstrict_memref_p.
5409 * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
5410 (*floatunssidf2_internal): Likewise.
5411 (*fix_truncdfsi2_internal): Likewise.
5412 (*fix_trunctfsi2_internal): Likewise.
5414 2009-07-17 Anatoly Sokolov <aesok@post.ru>
5416 * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
5418 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
5420 2009-07-17 Richard Guenther <rguenther@suse.de>
5423 * tree-pass.h (pass_diagnose_omp_blocks): Declare.
5424 (pass_warn_unused_result): Likewise.
5425 (TODO_set_props): Remove.
5426 * omp-low.c (diagnose_omp_structured_block_errors): Change to
5428 (pass_diagnose_omp_blocks): Define.
5429 * c-decl.c (pop_file_scope): Do not finalize the CU here.
5430 (c_gimple_diagnostics_recursively): Remove.
5431 (finish_function): Do not call it.
5432 (c_write_global_declarations): Continue after errors.
5433 Finalize the CU here.
5434 * c-gimplify.c (c_genericize): Do not gimplify here.
5435 * c-common.c (c_warn_unused_result): Move ...
5436 * tree-cfg.c (do_warn_unused_result): ... here.
5437 (run_warn_unused_result): New function.
5438 (gate_warn_unused_result): New function.
5439 (pass_warn_unused_result): New pass.
5440 * c-common.h (c_warn_unused_result): Remove.
5441 * flags.h (flag_warn_unused_result): Declare.
5442 * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
5443 * opts.c (flag_warn_unused_result): Initialize to false.
5444 * toplev.c (compile_file): Add comment.
5445 * omp-low.c (create_omp_child_function): Do not register
5446 the function with the frontend.
5447 (diagnose_omp_structured_block_errors): Prepare to be
5448 called as optimization pass.
5449 (gate_diagnose_omp_blocks): New function.
5450 (pass_diagnose_omp_blocks): New pass.
5451 * cgraph.h (cgraph_optimize): Remove.
5452 (cgraph_analyze_function): Likewise.
5453 * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
5454 * cgraphunit.c (cgraph_lower_function): Lower nested functions
5455 before their parents here.
5456 (cgraph_finalize_function): Not here.
5457 (cgraph_analyze_function): Gimplify functions here.
5458 (cgraph_finalize_compilation_unit): Continue after errors.
5459 Optimize the callgraph from here.
5460 (cgraph_optimize): Make static.
5461 * langhooks.c (write_global_declarations): Finalize the CU.
5462 * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
5463 (gimplify_function_tree): Assert we gimplify only once.
5464 Set PROP_gimple_any property.
5465 * tree-nested.c (gimplify_all_functions): New function.
5466 (lower_nested_functions): Gimplify all nested functions.
5467 * gimple.h (diagnose_omp_structured_block_errors): Remove.
5468 * passes.c (init_optimization_passes): Add pass_warn_unused_result
5469 and pass_diagnose_omp_blocks after gimplification. Do not
5470 set TODO_set_props on all_lowering_passes.
5471 (execute_one_pass): Do not handle TODO_set_props.
5472 * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
5473 (gimplify.o): Add tree-pass.h dependency.
5474 * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
5475 (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
5476 (unsave_r): Likewise.
5477 * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
5480 2009-07-17 Sandra Loosemore <sandra@codesourcery.com>
5482 * doc/service.texi (Service): Restore previously removed link,
5483 which isn't broken after all.
5485 2009-07-17 Richard Guenther <rguenther@suse.de>
5487 PR tree-optimization/40321
5488 * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
5489 PHI nodes to the maximal set.
5490 (make_values_for_phi): Add PHI arguments to the maximal set.
5491 (execute_pre): Dump PHI_GEN and the maximal set.
5493 2009-07-17 Jakub Jelinek <jakub@redhat.com>
5496 * gimplify.c (gimplify_conversion): Don't change non-conversions into
5499 2009-07-16 Sandra Loosemore <sandra@codesourcery.com>
5501 * doc/extend.texi (Nested Functions): Replace broken link with
5503 * doc/service.texi (Service): Remove broken link.
5505 2009-07-16 H.J. Lu <hongjiu.lu@intel.com>
5508 * builtins.c (expand_builtin_memcmp): Use loc instead of
5509 EXPR_LOCATION (exp).
5510 (expand_builtin_strncmp): Likewise.
5512 2009-07-17 Aldy Hernandez <aldyh@redhat.com>
5513 Manuel López-Ibáñez <manu@gcc.gnu.org>
5516 * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
5517 builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
5518 tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
5519 c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
5520 calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
5521 tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
5522 tree-inline.c, c-common.c, c-common.h, gimple.c,
5523 tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
5524 convert.c: Add location argument to fold_{unary,binary,ternary},
5525 fold_build[123], build_call_expr, build_size_arg,
5526 build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
5527 fold_build1_initializer, fold_build2_initializer,
5528 fold_build3_initializer, fold_build_call_array,
5529 fold_build_call_array_initializer, fold_single_bit_test,
5530 omit_one_operand, omit_two_operands, invert_truthvalue,
5531 fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
5532 combine_comparisons, fold_builtin_*, fold_call_expr,
5533 build_range_check, maybe_fold_offset_to_address, round_up,
5536 2009-07-16 Jason Merrill <jason@redhat.com>
5539 * c-common.c (c_common_reswords): Add __is_standard_layout
5541 * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
5542 * doc/implement-cxx.texi: New.
5543 * doc/gcc.texi: Include it.
5545 2009-07-16 DJ Delorie <dj@redhat.com>
5547 * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
5548 compares that may be indirectly affected by previous instructions.
5550 2009-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5552 * builtins.c (do_mpc_arg2): New.
5553 (fold_builtin_2): Fold builtin cpow.
5554 * real.h (HAVE_mpc_pow): New.
5556 2009-07-16 Bingfeng Mei <bmei@broadcom.com>
5558 * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
5559 comparison to skip unprofitable schedule
5561 2009-07-16 Simon Baldwin <simonb@google.com>
5563 * gcc.c (option_map): New flag -no-canonical-prefixes.
5564 * (display_help): Print help text for new flag.
5565 * (process_command): Move options translation and language specifics
5566 and handle new flag early. Use it to set a function pointer to a
5567 prefix builder. Replace make_relative_prefix calls with calls to
5568 the function pointed to. Ignore new flag in regular options handling.
5569 * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
5571 2009-07-15 DJ Delorie <dj@redhat.com>
5573 * config/mep/mep.md (sibcall_internal): Change register to avoid
5575 (sibcall_value_internal): Likewise.
5577 2009-07-15 Eric Botcazou <ebotcazou@adacore.com>
5579 PR rtl-optimization/40710
5580 * resource.c (mark_target_live_regs): Reset DF problem to LR.
5582 2009-07-15 Adam Nemet <anemet@caviumnetworks.com>
5584 * config/mips/mips.md (*extenddi_truncate<mode>,
5585 *extendsi_truncate<mode>): Change type attribute to move_type
5586 with shift_shift. Split out code handling exts from here ...
5587 (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
5589 (*extendhi_truncateqi): Change type attribute to move_type with
5590 shift_shift. Split out code handling exts from here ...
5591 (*extendhi_truncateqi_exts): ... to this new pattern.
5593 2009-07-15 Uros Bizjak <ubizjak@gmail.com>
5595 * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
5596 instead of "and" with inverted sign bit mask value. Use
5597 "nonimmediate_operand" for operand 1 and operand 2 predicate.
5598 Allocate registers only for operand 4 and operand 5.
5600 2009-07-15 Jakub Jelinek <jakub@redhat.com>
5603 * fold-const.c (fold_cond_expr_with_comparison): When folding
5604 < and <= to MIN, make sure the MIN uses the same type as the
5605 comparison's operands.
5607 2009-07-15 Richard Earnshaw <rearnsha@arm.com>
5609 * arm.md (ior_xor): New code iterator.
5610 (split for ior/xor with shift and zero-extend): New split pattern.
5611 * arm/predicates.md (subreg_lowpart_operator): New special predicate.
5613 2009-07-15 Richard Guenther <rguenther@suse.de>
5615 * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
5618 2009-07-15 Richard Guenther <rguenther@suse.de>
5621 * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
5623 2009-07-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5625 * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
5626 handle 2.6.30 kernel.
5628 2009-07-15 DJ Delorie <dj@redhat.com>
5630 * config/mep/mep.md (sibcall_internal): Change register to allow
5631 for 24-bit addresses.
5632 (sibcall_value_internal): Likewise.
5634 2009-07-14 Ghassan Shobaki <ghassan.shobaki@amd.com>
5636 * doc/invoke.texi: Added descriptions of the scheduling heuristics
5637 that are enabled/disabled by the flags introduced by a previous patch.
5639 2009-07-14 DJ Delorie <dj@redhat.com>
5641 * config/mep/mep.md (sibcall_internal): Include non-toggling
5643 (sibcall_value_internal): Likewise.
5645 2009-07-14 Taras Glek <tglek@mozilla.com>
5646 Rafael Espindola <espindola@google.com>
5648 * doc/sourcebuild.texi: Document install-plugin target.
5649 * configure.ac: Added install-plugin target to language makefiles.
5650 * configure: Regenerate.
5651 * Makefile.in: (install-plugin): Install more headers,
5652 depend on lang.install-plugin.
5654 2009-07-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5656 * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
5659 2009-07-14 DJ Delorie <dj@redhat.com>
5661 * config/mep/mep.c (mep_vliw_jmp_match): New function.
5662 * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
5663 * config/mep/mep.md (sibcall_internal): Change test from
5664 mep_vliw_mode_match to mep_vliw_jmp_match.
5665 (sibcall_value_internal): Likewise.
5667 2009-07-14 Uros Bizjak <ubizjak@gmail.com>
5669 * config/i386/sse.md (copysign<mode>3): New expander.
5670 * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
5671 * config/i386/i386.c (ix86_build_signbit_mask): Make public.
5672 Use ix86_build_const_vector.
5673 (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
5674 IX86_BUILTIN_CPYSGNPD.
5675 (builtin_description): Add __builtin_ia32_copysignps and
5676 __builtin_ia32_copysignpd.
5677 (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
5678 and BUILT_IN_COPYSIGNF.
5680 2009-07-13 Jason Merrill <jason@redhat.com>
5682 * builtins.c (can_trust_pointer_alignment): New fn.
5683 (get_pointer_alignment): Factor it out from here.
5684 * tree.h: Declare it.
5686 2009-07-14 David Edelsohn <edelsohn@gnu.org>
5688 * config/rs6000/predicates.md (offsettable_mem_operand): Test
5691 2009-07-14 Dodji Seketeli <dodji@redhat.com>
5695 * dwarf2.out.c (gen_type_die_with_usage): Added comment.
5697 2009-07-14 Richard Guenther <rguenther@suse.de>
5698 Andrey Belevantsev <abel@ispras.ru>
5701 * cfgexpand.c (partition_stack_vars): Do not bother to update
5702 alias information when not optimizing.
5704 2009-07-14 Richard Guenther <rguenther@suse.de>
5705 Andrey Belevantsev <abel@ispras.ru>
5707 * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
5708 (pt_solution_set): Likewise.
5709 * tree-ssa-alias.c (refs_may_alias_p_1): Export.
5710 * tree-ssa-structalias.c (pt_solution_set): New function.
5711 * final.c (rest_of_clean_state): Free SSA data structures.
5712 * print-rtl.c (print_decl_name): Remove.
5713 (print_mem_expr): Implement in terms of print_generic_expr.
5714 * alias.c (ao_ref_from_mem): New function.
5715 (rtx_refs_may_alias_p): Likewise.
5716 (true_dependence): Query alias-export info.
5717 (canon_true_dependence): Likewise.
5718 (write_dependence_p): Likewise.
5719 * tree-dfa.c (get_ref_base_and_extent): For void types leave
5721 * emit-rtl.c (component_ref_for_mem_expr): Remove.
5722 (mem_expr_equal_p): Use operand_equal_p.
5723 (set_mem_attributes_minus_bitpos): Do not use
5724 component_ref_for_mem_expr.
5725 * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
5726 (update_alias_info_with_stack_vars): Likewise.
5727 (partition_stack_vars): Call update_alias_info_with_stack_vars.
5728 * tree-ssa.c (delete_tree_ssa): Do not release SSA names
5729 explicitly nor clear stmt operands.
5730 Free the decl-to-pointer map.
5731 * tree-optimize.c (execute_free_datastructures): Do not free
5732 SSA data structures here.
5733 * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
5734 * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
5735 (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
5737 (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
5739 2009-07-13 DJ Delorie <dj@redhat.com>
5741 * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
5742 unrolling at the right iteration count.
5744 * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
5747 2009-07-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
5749 * haifa-sched.c (rank_for_schedule): Introduced flags to
5750 enable/disable individual scheduling heuristics.
5751 * common.opt: Introduced flags to enable/disable individual
5752 heuristics in the scheduler.
5753 * doc/invoke.texi: Introduced flags to enable/disable individual
5754 heuristics in the scheduler.
5756 2009-07-13 Kai Tietz <kai.tietz@onevision.com>
5758 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
5759 config/i386/mingw-tls.c.
5760 * config/i386/mingw-tls.c: Removed.
5762 2009-07-13 Ira Rosen <irar@il.ibm.com>
5764 * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
5765 checks access only relevant statements.
5766 (vectorizable_reduction): Likewise.
5768 2009-07-12 Kai Tietz <kai.tietz@onevision.com>
5770 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
5771 just for 32-bit case.
5773 2009-07-12 Jan Hubicka <jh@suse.cz>
5775 PR tree-optimization/40585
5776 * except.c (expand_resx_expr): When there already is resume
5777 instruction, produce linked list.
5778 (build_post_landing_pads): Assert that resume is empty.
5779 (connect_post_landing_pads): Handle resume lists.
5780 (dump_eh_tree): Dump resume list.
5782 2009-07-12 Ira Rosen <irar@il.ibm.com>
5784 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
5785 with additional argument.
5786 * tree-vectorizer.h (enum vect_def_type): Add
5787 vect_double_reduction_def.
5788 (vect_is_simple_reduction): Add argument.
5789 * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
5791 (vect_analyze_scalar_cycles_1): Detect double reduction. Call
5792 vect_is_simple_reduction with additional argument.
5793 (vect_analyze_loop_operations): Handle exit phi nodes in case of
5795 (reduction_code_for_scalar_code): Handle additional codes by
5796 returning ERROR_MARK for them. Fix comment and indentation.
5797 (vect_is_simple_reduction): Fix comment, add argument to specify
5798 double reduction. Detect double reduction.
5799 (get_initial_def_for_induction): Fix indentation.
5800 (get_initial_def_for_reduction): Fix comment and indentation.
5801 Handle double reduction. Create initial definitions that do not
5802 require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
5803 (vect_create_epilog_for_reduction): Fix comment, add argument to
5804 handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
5805 epilogue result extraction. Create double reduction phi node and
5806 replace relevant uses.
5807 (vectorizable_reduction): Call vect_is_simple_reduction with
5808 additional argument. Fix indentation. Update epilogue code treatment
5809 according to the changes in reduction_code_for_scalar_code. Check
5810 for double reduction. Call vect_create_epilog_for_reduction with
5811 additional argument.
5812 * tree-vect-stmts.c (process_use): Handle double reduction, update
5814 (vect_mark_stmts_to_be_vectorized): Handle double reduction.
5815 (vect_get_vec_def_for_operand): Likewise.
5817 2009-07-12 Danny Smith <dansmister@gmail.com>
5819 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
5820 dllexport if !TREE_PUBLIC.
5821 (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
5823 2009-07-11 Anatoly Sokolov <aesok@post.ru>
5825 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
5826 (avr_extra_arch_macro) Remove declatation.
5827 * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
5828 (avr_extra_arch_macro) Declare as static.
5829 * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
5831 2009-07-11 Jan Hubicka <jh@suse.cz>
5834 * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
5836 2009-07-11 Jakub Jelinek <jakub@redhat.com>
5839 * dwarf2out.c (dw_fde_struct): Add in_std_section and
5840 cold_in_std_section bits.
5841 (dwarf2out_begin_prologue): Initialize them.
5842 (dwarf2out_finish): Don't emit FDE range into .debug_ranges
5843 if already covered by text_section or cold_text_section range.
5845 PR rtl-optimization/40667
5846 * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
5847 * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
5848 * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
5849 * config/i386/i386.c (ix86_minimum_alignment): New function.
5850 * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
5851 * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
5852 * emit-rtl.c (gen_reg_rtx): Likewise.
5853 * function.c (assign_parms): Likewise. If nominal_type needs
5854 bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
5855 rather than passed_type's alignment.
5858 * function.c (assign_parm_setup_stack): Adjust
5859 MEM_OFFSET (data->stack_parm) if promoted_mode is different
5860 from nominal_mode on big endian.
5862 2009-07-11 Paolo Bonzini <bonzini@gnu.org>
5864 * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
5866 2009-07-10 DJ Delorie <dj@redhat.com>
5868 * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
5870 2009-07-10 Mark Mitchell <mark@codesourcery.com>
5872 * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
5874 (thumb2_cbnz): Likewise.
5876 2009-07-10 David Daney <ddaney@caviumnetworks.com>
5879 * config.gcc (supported_defaults): Add synci.
5880 (with_synci): Add validation.
5881 (all_defaults): Add synci.
5882 * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
5885 * config/mips/mips.opt (msynci): New option.
5886 * config/mips/mips.c (mips_override_options): Warn on use of
5887 -msynci for targets that do now support it.
5888 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
5890 * gcc/doc/invoke.texi (-msynci): Document the new option.
5891 * doc/install.texi (--with-synci): Document the new option.
5893 2009-07-10 Richard Guenther <rguenther@suse.de>
5895 PR tree-optimization/40496
5896 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
5897 the PHI result with a compatible type.
5899 2009-07-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
5903 * c.opt (Wunused-result): New.
5904 * doc/invoke.texi: Document it.
5905 * c-common.c (c_warn_unused_result): Use it.
5907 2009-07-09 DJ Delorie <dj@redhat.com>
5909 * targhooks.c (default_target_can_inline_p): Rename from
5910 default_target_option_can_inline_p.
5911 * targhooks.h (default_target_can_inline_p): Likewise.
5912 * target-def.h (TARGET_CAN_INLINE_P): Rename from
5913 TARGET_OPTION_CAN_INLINE_P.
5914 * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
5915 * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
5916 (mep_target_can_inline_p): Rename from
5917 mep_target_option_can_inline_p.
5920 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
5921 registers used to pass vectors.
5923 * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
5925 2009-07-09 Tom Tromey <tromey@redhat.com>
5927 * unwind-dw2-fde-darwin.c: Include dwarf2.h.
5928 * config/mmix/mmix.c: Include dwarf2.h.
5929 * config/rs6000/darwin-fallback.c: Include dwarf2.h.
5930 * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
5931 * config/sh/sh.c: Include dwarf2.h.
5932 * config/i386/i386.c: Include dwarf2.h.
5933 * Makefile.in (DWARF2_H): Remove 'elf'.
5934 * except.c: Include dwarf2.h.
5935 * unwind-dw2.c: Include dwarf2.h.
5936 * dwarf2out.c: Include dwarf2.h.
5937 * unwind-dw2-fde-glibc.c: Include dwarf2.h.
5938 * unwind-dw2-fde.c: Include dwarf2.h.
5939 * dwarf2asm.c: Include dwarf2.h.
5941 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
5943 * haifa-sched.c (insn_finishes_cycle_p): New static function.
5944 (max_issue): Use it.
5945 * sched-int.h (struct sched_info: insn_finishes_block_p): New
5947 * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
5948 (region_sched_info): Update.
5949 * sched-ebb.c (ebb_sched_info): Update.
5950 * modulo-sched.c (sms_sched_info): Update.
5951 * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
5953 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
5955 * varasm.c (build_constant_desc): Don't share RTL in pool entries.
5957 2009-07-09 Basile Starynkevitch <basile@starynkevitch.net>
5959 * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
5961 2009-07-09 Jakub Jelinek <jakub@redhat.com>
5964 * fold-const.c (fold_cond_expr_with_comparison): Don't replace
5965 arg1 with arg01 if arg1 is already INTEGER_CST.
5967 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
5969 * simplify-rtx.c (simplify_binary_operation_1) <AND>:
5970 Transform (and (truncate)) into (truncate (and)).
5972 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
5974 * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
5975 creating LHS paradoxical subregs. Fix surrounding returns to
5976 use NULL_RTX rather than 0.
5978 2009-07-08 DJ Delorie <dj@redhat.com>
5980 * config/mep/mep.c: (mep_option_can_inline_p): New.
5981 (TARGET_OPTION_CAN_INLINE_P): Define.
5983 2009-07-08 Mark Wielaard <mjw@redhat.com>
5986 * dwarf2out.c (add_data_member_location_attribute): When we have
5987 only a constant offset don't emit a new location description using
5988 DW_OP_plus_uconst, but just add the constant with add_AT_int, when
5991 2009-07-08 Richard Henderson <rth@redhat.com>
5994 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
5995 (enum reg_class): Add CLOBBERED_REGS.
5996 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
5997 * config/i386/i386.c (ix86_conditional_register_usage): Moved
5998 from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
5999 (ix86_function_ok_for_sibcall): Tidy. Disallow MS->SYSV sibcalls.
6000 (ix86_expand_call): Use sibcall_insn_operand when needed. Don't
6001 force 64-bit sibcalls into R11.
6002 * config/i386/constraints.md (U): New constraint.
6003 * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
6004 (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
6005 (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
6007 2009-07-08 Shujing Zhao <pearly.zhao@oracle.com>
6009 * basic-block.h (dump_regset, debug_regset): Remove duplicate
6011 * c-objc-common.h (c_initialize_diagnostics): Ditto.
6012 * ebitmap.h (dump_ebitmap): Ditto.
6013 * optabs.h (optab_libfunc): Ditto.
6014 * tree.h (tree_expr_nonzero_warnv_p): Ditto.
6015 * tree-flow.h (vect_can_force_dr_alignment_p,
6016 get_vectype_for_scalar_type): Ditto.
6017 (vectorize_loops): Move prototype to ...
6018 * tree-vectorizer.h: ... here. Also, adjust comment.
6019 (vect_set_verbosity_level): Remove duplicate prototype.
6020 * tree-ssa-loop.c: Include tree-vectorizer.h.
6021 * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
6023 2009-07-08 Nick Clifton <nickc@redhat.com>
6025 * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
6028 2009-07-08 DJ Delorie <dj@redhat.com>
6030 * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
6031 cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
6032 cpmovtocc_P0S_P1): Mark volatile. Note which registers are
6034 * config/mep/intrinsics.md: Regenerated.
6035 * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
6036 registers when asm() or calls are detected.
6038 2009-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
6041 * gimplify.c (gimplify_expr): Propagate no_warning flag when
6043 * gimple (gimple_build_call_from_tree): Likewise.
6044 * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
6045 no_warning flag before warning.
6047 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
6049 * tree.c (set_expr_locus): Remove.
6050 * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
6051 * c-typeck.c (c_finish_stmt_expr): Replace EXPR_LOCUS by
6053 * gimplify.c (internal_get_tmp_var): Likewise.
6054 (gimplify_call_expr): Likewise.
6055 (gimplify_one_sizepos): Likewise.
6057 2009-07-07 Eric Botcazou <ebotcazou@adacore.com>
6060 * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
6061 to variables for debugging purposes.
6063 2009-06-23 Mark Loeser <mark@halcy0n.com>
6066 * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
6068 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
6070 * pretty-print.c (pp_base_format): Remove %J.
6071 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
6072 gcc_cxxdiag_char_table): Likewise.
6073 (init_dynamic_diag_info): Likewise.
6075 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
6077 * pretty-print.c (pp_base_format): Remove %H.
6078 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
6079 gcc_cxxdiag_char_table): Likewise.
6080 (init_dynamic_diag_info): Likewise.
6081 * config/mep/mep.c (mep_select_section): Likewise.
6083 2009-07-07 Duncan Sands <baldrick@free.fr>
6085 * final.c (pass_clean_state): Give the pass a name.
6086 * passes.c (pass_rest_of_compilation): Likewise.
6087 * tree-optimize.c (pass_all_optimizations): Likewise.
6089 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
6091 * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
6092 an extra 'decl' for error_at.
6094 2009-07-07 Jakub Jelinek <jakub@redhat.com>
6097 * tree-tailcall.c (adjust_return_value_with_ops,
6098 create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
6099 if it has complex or vector type.
6101 2009-07-07 Olivier Hainque <hainque@adacore.com>
6103 * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
6106 2009-07-07 Basile Starynkevitch <basile@starynkevitch.net>
6108 * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
6110 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
6112 * cgraphunit.c: Replace %J by an explicit location. Update all calls.
6113 * c-decl.c: Likewise.
6114 * function.c: Likewise.
6115 * varasm.c: Likewise.
6116 * tree-ssa.c: Likewise.
6117 * c-common.c: Likewise.
6118 * tree-cfg.c: Likewise.
6119 * config/spu/spu.c: Likewise.
6120 * config/ia64/ia64.c: Likewise.
6121 * config/v850/v850.c: Likewise.
6123 2009-07-06 DJ Delorie <dj@redhat.com>
6125 * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
6126 * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
6127 unspecified accesses to control registers.
6128 * config/mep/intrinsics.md: Regenerate.
6129 * config/mep/intrinsics.h: Regenerate.
6130 * config/mep/mep-intrin.h: Regenerate.
6132 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
6134 * c-lex.c: Replace %H by an explicit location. Update all calls.
6135 * c-common.c: Likewise.
6136 * c-decl.c: Likewise.
6137 * c-typeck.c: Likewise.
6138 * fold-const.c: Likewise.
6139 * gimplify.c: Likewise.
6141 * tree-cfg.c: Likewise.
6142 * tree-ssa-loop-niter.c: Likewise.
6143 * tree-vrp.c: Likewise.
6144 * value-prof.c: Likewise.
6146 2009-07-06 Diego Novillo <dnovillo@google.com>
6148 * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
6149 if it has one. Handle cases where VAR does not have an
6150 annotation or cfun is NULL.
6152 2009-07-06 Diego Novillo <dnovillo@google.com>
6154 * tree.c: Include debug.h.
6155 (initialize_tree_contains_struct): New.
6156 (init_ttree): Call it.
6157 (tree_node_structure_for_code): Factor out of ...
6158 (tree_node_structure): ... here.
6159 * treestruct.def (TS_PHI_NODE): Remove.
6160 (TS_GIMPLE_STATEMENT): Remove.
6162 2009-07-06 Diego Novillo <dnovillo@google.com>
6164 * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
6165 (debug_tree_chain): Handle cycles.
6167 2009-07-06 Nick Clifton <nickc@redhat.com>
6168 DJ Delorie <dj@redhat.com>
6170 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
6171 __FMOVD_ENABLED__ is defined.
6173 (TARGET_FMOVD): Provide a default definition.
6174 (MASK_FMOVD): Likewise.
6175 (TARGET_CPU_CPP_BUILTINS): Define
6176 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
6177 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
6178 two fmov instructions depending upon whether TARGET_FMOVD is enabled.
6179 (split for DF load from memory into register): Also handle
6180 MEMs which consist of REG+DISP addressing.
6181 (split for DF store from register to memory): Likewise.
6182 (movsf_ie): Always use single fp_mode.
6183 * config/sh/sh.c (sh_override_options): Do not automatically
6184 enable TARGET_MOVD for the SH2A when supporting doubles - leave
6185 that to the -mfmovd command line switch.
6186 (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
6187 (fldi_ok): Always allow.
6188 * config/sh/sh.opt (mfmovd): Remove this switch.
6189 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
6191 2009-07-06 J"orn Rennecke <joern.rennecke@arc.com>
6192 Kaz Kojima <kkojima@gcc.gnu.org>
6194 PR rtl-optimization/30807
6195 * postreload.c (reload_combine): For every new use of REG_SUM,
6196 record the use of BASE.
6198 2009-07-06 Jan Hubicka <jh@suse.cz>
6200 * params.def: Revert my accidental commit at 2009-06-30.
6202 2009-07-04 Ian Lance Taylor <iant@google.com>
6205 * config/i386/msformat-c.c (mingw_format_attributes): Declare as
6207 (mingw_format_attribute_overrides): Likewise.
6209 2009-07-04 Jakub Jelinek <jakub@redhat.com>
6212 * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
6213 don't check cfa.reg. Instead of cfa.indirect use
6214 fde && fde->drap_reg != INVALID_REGNUM test.
6216 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
6218 * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
6220 2009-07-03 Vladimir Makarov <vmakarov@redhat.com>
6223 * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
6225 2009-07-03 Richard Guenther <rguenther@suse.de>
6227 PR tree-optimization/40640
6228 * tree-switch-conversion.c (build_arrays): Perform arithmetic
6231 2009-07-03 Jan Hubicka <jh@suse.cz>
6233 * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
6234 for size, reduce amount of inlining.
6236 2009-07-03 Richard Guenther <rguenther@suse.de>
6239 * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
6240 if t +- x is known to not overflow and the conversion widens the
6242 * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
6244 2009-07-03 Jan Hubicka <jh@suse.cz>
6246 * ipa-pure-const.c (analyze): Update loop optimizer init.
6247 * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
6248 try_remove_empty_loop, remove_empty_loops): Remove.
6249 * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
6250 * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
6251 to mark regular loops as neccesary.
6252 (degenerate_phi_p): New function.
6253 (propagate_necessity, remove_dead_phis): Use it.
6254 (forward_edge_to_pdom): Likewise.
6255 (eliminate_unnecessary_stmts): Take care to remove uses of results of
6256 virtual PHI nodes that became unreachable.
6257 (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
6258 * tree-flow.h (remove_empty_loops): Remove.
6259 * passes.c (init_optimization_passes): Remove.
6261 2009-07-03 Uros Bizjak <ubizjak@gmail.com>
6263 * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
6264 can_create_pseudo_p.
6265 (*fix_trunc<mode>_i387_1): Ditto.
6266 (*floathi<mode>2_1): Ditto.
6267 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
6268 (*fistdi2_1): Ditto.
6269 (*fist<mode>2_1): Ditto.
6270 (frndintxf2_floor): Ditto.
6271 (*fist<mode>2_floor_1): Ditto.
6272 (frndintxf2_ceil): Ditto.
6273 (*fist<mode>2_ceil_1): Ditto.
6274 (frndintxf2_trunc): Ditto.
6275 (frndintxf2_mask_pm): Ditto.
6276 (fxam<mode>2_i387_with_temp): Ditto.
6277 * config/i386/sse.md (mulv16qi3): Ditto.
6278 (*sse2_mulv4si3): Ditto.
6280 (sse4_2_pcmpestr): Ditto.
6281 (sse4_2_pcmpistr): Ditto.
6283 2009-07-03 Jan Hubicka <jh@suse.cz>
6285 * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
6286 (mark_stmt_necessary): Set it.
6287 (mark_operand_necessary): Set it.
6288 (mark_control_dependent_edges_necessary): Set it.
6289 (mark_virtual_phi_result_for_renaming): New function.
6290 (get_live_post_dom): New function.
6291 (forward_edge_to_pdom): New function.
6292 (remove_dead_stmt): Fix handling of control dependences.
6293 (tree_dce_init): Init new bitmap.
6294 (tree_dce_done): Free it.
6296 2009-07-02 Richard Guenther <rguenther@suse.de>
6299 * tree-ssa-structalias.c (new_var_info): Initialize
6302 2009-07-02 Jan Hubicka <jh@suse.cz>
6304 * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
6307 2009-07-02 Paolo Bonzini <bonzini@gnu.org>
6309 * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
6310 instead of recomputing it. Adjust calls.
6311 (emit_store_flag): Adjust recursive calls.
6313 2009-07-02 Richard Guenther <rguenther@suse.de>
6315 * tree-ssa-live.c (remove_unused_locals): Do not remove
6317 * tree-ssa-structalias.c (handle_lhs_call): Delay setting
6318 of DECL_EXTERNAL for HEAP variables.
6319 (compute_points_to_sets): Set DECL_EXTERNAL for escaped
6320 HEAP variables. Do not adjust RESTRICT vars.
6321 (find_what_var_points_to): Nobody cares if something
6324 2009-07-02 Ben Elliston <bje@au.ibm.com>
6326 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
6327 pc_low and pc_high declarations to the top of the function.
6329 2009-07-01 DJ Delorie <dj@redhat.com>
6331 * config/mep/mep.c (mep_handle_option): Leave IVC2 control
6333 (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
6334 * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
6335 unspecified accesses to control registers.
6336 * config/mep/intrinsics.md: Regenerate.
6337 * config/mep/intrinsics.h: Regenerate.
6338 * config/mep/mep-intrin.h: Regenerate.
6340 2009-07-01 Anthony Green <green@moxielogic.com>
6342 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
6343 instruction when possible.
6344 (moxie_expand_prologue): Ditto. Also, save an instruction and
6345 some complexity by popping off of $r12 instead of $sp.
6346 * config/moxie/moxie.md (movsi_pop): Don't assume $sp. Take two
6349 2009-07-01 Richard Henderson <rth@redhat.com>
6352 * function.c (reposition_prologue_and_epilogue_notes): If epilogue
6353 contained no insns, reposition note before last insn.
6355 2009-07-01 Richard Henderson <rth@redhat.com>
6358 * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
6359 DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
6361 2009-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
6364 * config/rs6000/rs6000.c (print_operand): Undo change that breaks
6365 darwin9 for printing reg addresses with %y.
6367 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
6369 * combine.c (force_to_mode): Handle TRUNCATE. Factor out
6370 truncation from operands in binary operations.
6372 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
6375 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
6376 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
6377 subreg of op0 to the original op0.
6379 * expmed.c (store_bit_field_1): Use a temporary as the destination
6380 instead of a paradoxical subreg when we need to truncate the result.
6382 2009-07-01 DJ Delorie <dj@redhat.com>
6384 * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
6385 names to VLIW variants.
6386 (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
6387 * config/mep/intrinsics.md: Regenerate.
6388 * config/mep/intrinsics.h: Regenerate.
6389 * config/mep/mep-intrin.h: Regenerate.
6391 2009-07-01 Jakub Jelinek <jakub@redhat.com>
6394 * jump.c (returnjump_p): Revert last patch.
6395 * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
6397 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6400 * pa.md (casesi32p): Use jump table label to determine the offset
6402 (casesi64p): Likewise.
6404 * pa.c (forward_branch_p): Return bool type. Use instruction
6405 addresses when available. Assert that INSN has a jump label.
6406 (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
6409 2009-07-01 Richard Guenther <rguenther@suse.de>
6411 PR tree-optimization/19831
6412 * tree-ssa-dce.c (propagate_necessity): Calls to functions
6413 that only act as barriers do not make any previous stores necessary.
6414 * tree-ssa-structalias.c (handle_lhs_call): Delay making
6415 HEAP variables global, do not add a constraint from nonlocal.
6416 (find_func_aliases): Handle escapes through return statements.
6417 (compute_points_to_sets): Make escaped HEAP variables global.
6419 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
6422 * expmed.c (emit_store_flag): Perform a conversion if necessary,
6423 after reducing a DImode cstore to SImode.
6425 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
6427 * expr.c (expand_expr_real_1): Reinstate fallthrough to
6428 TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
6430 2009-07-01 Maciej W. Rozycki <macro@linux-mips.org>
6432 * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro. Set to 1.
6433 * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro. Redefine the
6435 * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
6436 and umod_optab if TARGET_BSD_DIVMOD.
6437 * config/vax/lib1funcs.asm: New file.
6438 * config/vax/t-linux: New file.
6439 * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
6441 2009-06-30 Jakub Jelinek <jakub@redhat.com>
6444 * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
6445 to type arguments that have void type.
6448 * dwarf2out.c (gen_formal_parameter_die): Call
6449 equate_decl_number_to_die if node is different from origin.
6451 2009-06-30 Anthony Green <green@moxielogic.com>
6453 Clean up moxie port for --enable-build-with-cxx.
6454 * config/moxie/moxie.c (moxie_function_value): First two
6455 parameters are const_tree, not tree.
6456 * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
6457 (REG_CLASS_NAMES): Ditto.
6458 (REGNO_REG_CLASS): Ditto.
6459 * config/moxie/moxie-protos.h (moxie_override_options): Declare.
6460 (moxie_function_value): Fix constyness of arguments.
6462 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
6464 * cgraphunit.c (cgraph_finalize_compilation_unit): Call
6465 finalize_size_functions before further processing.
6466 * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
6467 (variable_size): Call self_referential_size on size expressions
6468 that contain a PLACEHOLDER_EXPR.
6469 (size_functions): New static variable.
6470 (copy_self_referential_tree_r): New static function.
6471 (self_referential_size): Likewise.
6472 (finalize_size_functions): New global function.
6473 * tree.c: Include tree-inline.h.
6474 (push_without_duplicates): New static function.
6475 (find_placeholder_in_expr): New global function.
6476 (substitute_in_expr) <tcc_declaration>: Return the replacement object
6478 <tcc_expression>: Likewise.
6479 <tcc_vl_exp>: If the replacement object is a constant, try to inline
6480 the call in the expression.
6481 * tree.h (finalize_size_functions): Declare.
6482 (find_placeholder_in_expr): Likewise.
6483 (FIND_PLACEHOLDER_IN_EXPR): New macro.
6484 (substitute_placeholder_in_expr): Update comment.
6485 * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
6487 (copy_tree_body_r): Likewise.
6488 (copy_tree_body): New static function.
6489 (maybe_inline_call_in_expr): New global function.
6490 * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
6491 (maybe_inline_call_in_expr): Declare.
6492 * Makefile.in (tree.o): Depend on TREE_INLINE_H.
6493 (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
6496 2009-06-30 Richard Guenther <rguenther@suse.de>
6498 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
6500 (propagate_necessity): Do not mark reaching defs of stores
6503 2009-06-30 Jan Hubicka <jh@suse.cz>
6505 * cfgloopanal.c (check_irred): Move into ...
6506 (mark_irreducible_loops): ... here; return true if ireducible
6508 * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
6509 (analyze_function): Try to prove loop finiteness.
6510 * cfgloop.h (mark_irreducible_loops): Update prototype.
6511 * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
6513 2009-06-30 Basile Starynkevitch <basile@starynkevitch.net>
6515 * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
6517 2009-06-30 Ira Rosen <irar@il.ibm.com>
6519 PR tree-optimization/40542
6520 * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
6523 2009-06-30 Martin Jambor <mjambor@suse.cz>
6525 PR tree-optimization/40582
6526 * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
6527 than useless_type_conversion_p.
6528 (generate_subtree_copies): Increment sra_stats.subtree_copies at a
6531 2009-06-30 Martin Jambor <mjambor@suse.cz>
6534 * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
6536 2009-06-30 Richard Guenther <rguenther@suse.de>
6538 * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
6539 use ao_ref references.
6540 (walk_aliased_vdefs): Likewise.
6541 * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
6542 * tree-ssa-dce.c (struct ref_data): Remove.
6543 (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
6544 (mark_aliased_reaching_defs_necessary): Adjust.
6545 (mark_all_reaching_defs_necessary_1): Likewise.
6547 2009-06-30 Paolo Bonzini <bonzini@gnu.org>
6550 * expmed.c (emit_cstore): New name of emit_store_flag_1.
6551 (emit_store_flag_1): Extract from emit_store_flag, adjust
6552 calls to (what now is) emit_cstore.
6553 (emit_store_flag): Call emit_store_flag_1 and also use it
6554 for what used to be recursive calls.
6556 2009-06-30 Wei Guozhi <carrot@google.com>
6559 * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
6560 if the target bb post dominates from bb.
6561 * config/i386/i386.c (memory_address_length): Check existence of base
6562 register before using it.
6564 2009-06-30 Nick Clifton <nickc@redhat.com>
6565 DJ Delorie <dj@redhat.com>
6567 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
6568 __FMOVD_ENABLED__ is defined.
6570 (TARGET_FMOVD): Provide a default definition.
6571 (MASK_FMOVD): Likewise.
6572 (TARGET_CPU_CPP_BUILTINS): Define
6573 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
6574 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
6575 two fmov instructions depending upon whether TARGET_FMOVD is
6577 (split for DF load from memory into register): Also handle
6578 MEMs which consist of REG+DISP addressing.
6579 (split for DF store from register to memory): Likewise.
6580 * config/sh/sh.opt (mfmovd): Remove this switch.
6581 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
6582 * config/sh/sh.c (sh_override_options): Do not automatically
6583 enable TARGET_MOVD for the SH2A when supporting doubles - leave
6584 that to the -mfmovd command line switch.
6586 * config/sh/sh.c (broken_move): Do not restrict fldi test to only
6588 (fldi_ok): Always allow.
6589 * config/sh/sh.md (movsf_ie): Always use single fp_mode.
6591 2009-06-29 DJ Delorie <dj@redhat.com>
6593 * doc/install.texi (mep-x-elf): Correct chip's full name.
6595 2009-06-29 H.J. Lu <hongjiu.lu@intel.com>
6597 * doc/extend.texi: Fix typo.
6599 2009-06-29 Tom Tromey <tromey@redhat.com>
6602 * Makefile.in (DWARF2_H): New variable.
6604 (dwarf2out.o): Likewise.
6605 (dwarf2asm.o): Likewise.
6606 * config/i386/t-i386: Use DWARF2_H.
6607 * except.c: Include elf/dwarf2.h.
6608 * unwind-dw2.c: Include elf/dwarf2.h.
6609 * dwarf2out.c: Include elf/dwarf2.h.
6610 (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
6611 <dtprel>: New field.
6612 (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
6613 (size_of_loc_descr): Likewise.
6614 (output_loc_operands_raw): Likewise.
6615 (output_loc_operands): Handle new dtprel field.
6616 (loc_checksum): Update.
6617 (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
6618 * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
6619 * unwind-dw2-fde.c: Include elf/dwarf2.h.
6620 * dwarf2asm.c: Include elf/dwarf2.h.
6621 * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
6622 * config/mmix/mmix.c: Include elf/dwarf2.h.
6623 * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
6624 * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
6625 * config/sh/sh.c: Include elf/dwarf2.h.
6626 * config/i386/i386.c: Include elf/dwarf2.h.
6628 2009-06-29 DJ Delorie <dj@redhat.com>
6630 * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
6632 * doc/extend.texi: Add MeP attributes and pragmas.
6633 * doc/invoke.text: Add MeP Options.
6634 * doc/contrib.texi: Add MeP contribution.
6635 * doc/md.texi: Add MeP constraints.
6636 * doc/install.texi: Add MeP target.
6638 2009-06-30 Anatoly Sokolov <aesok@post.ru>
6640 * target.h (struct gcc_target): Add frame_pointer_required field.
6641 * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
6642 (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
6643 * ira.c (setup_eliminable_regset): Use frame_pointer_required target
6645 * reload1.c (update_eliminables): (Ditto.).
6646 * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
6647 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
6648 (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
6650 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
6652 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
6653 * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
6654 (arm_frame_pointer_required): New function.
6656 * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
6657 * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
6658 (avr_frame_pointer_required_p): Declare as static.
6659 * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
6661 * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
6662 * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
6663 (bfin_frame_pointer_required): Make as static, change return type
6665 * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
6667 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
6668 * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
6669 (cris_frame_pointer_required): New function.
6671 * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
6673 * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
6674 * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
6675 (fr30_frame_pointer_required): New function.
6677 * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
6678 * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
6679 (frv_frame_pointer_required): Make as static, change return type
6681 * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
6683 * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
6684 * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
6685 (ix86_frame_pointer_required): Make as static, change return type to
6687 * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
6689 * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
6690 * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
6692 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
6694 * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
6696 * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
6698 * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
6699 * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
6700 (mips_frame_pointer_required): Make as static.
6701 * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
6703 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
6704 * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
6705 (mmix_frame_pointer_required): Mew function.
6707 * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
6708 * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
6710 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
6712 * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
6714 * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
6716 * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
6717 (CAN_ELIMINATE): Redefine.
6718 * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
6719 (sparc_frame_pointer_required): New function.
6720 (sparc_can_eliminate): New function.
6721 * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
6723 * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
6724 * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
6726 * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
6727 * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
6728 (xtensa_frame_pointer_required): Make as static, change return type
6730 * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
6733 2009-06-29 Olatunji Ruwase <tjruwase@google.com>
6735 * doc/plugins.texi: Document PLUGIN_START_UNIT.
6736 * toplev.c (compile_file): Call PLUGIN_START_UNIT.
6737 * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
6738 * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
6739 (register_callback): Handle PLUGIN_START_UNIT.
6740 (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
6742 2009-06-29 Eric Botcazou <ebotcazou@adacore.com>
6744 * tree.c (process_call_operands): Propagate TREE_READONLY from the
6746 (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
6747 (build3_stat): Propagate TREE_READONLY for COND_EXPR.
6749 2009-06-29 Daniel Jacobowitz <dan@codesourcery.com>
6751 * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
6754 2009-06-29 Uros Bizjak <ubizjak@gmail.com>
6756 * doc/extend.texi (Additional Floating Types): __float128 is also
6757 supported on i386 targets.
6759 2009-06-29 Richard Guenther <rguenther@suse.de>
6762 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
6764 (pt_solutions_same_restrict_base): Declare.
6765 * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
6767 (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
6768 (make_constraint_from, make_copy_constraint): Move earlier.
6769 (make_constraint_from_heapvar): New function.
6770 (make_constraint_from_restrict): Likewise.
6771 (handle_lhs_call): Use it.
6772 (find_func_aliases): Use it to track conversions to restrict
6774 (struct fieldoff): Add only_restrict_pointers flag.
6775 (push_fields_onto_fieldstack): Initialize it.
6776 (create_variable_info_for): Track global restrict qualified pointers.
6777 (intra_create_variable_infos): Use make_constraint_from_heapvar.
6778 Track restrict qualified pointer arguments.
6779 (set_uids_in_ptset): Use varinfo is_global_var flag.
6780 (find_what_var_points_to): Set the vars_contains_restrict flag.
6781 Always create the points-to solution for sets including restrict tags.
6782 (pt_solutions_same_restrict_base): New function.
6783 * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
6784 qualified pointers use pt_solutions_same_restrict_base as
6785 additional source for disambiguation.
6787 2009-06-29 Richard Guenther <rguenther@suse.de>
6790 * alias.c (find_base_decl): Remove.
6791 (get_deref_alias_set_1): Remove restrict handling.
6792 * c-common.c (c_apply_type_quals_to_decl): Do not set
6793 DECL_POINTER_ALIAS_SET.
6794 * gimplify.c (find_single_pointer_decl_1): Remove.
6795 (find_single_pointer_decl): Likewise.
6796 (internal_get_tmp_var): Remove restrict handling.
6797 (gimple_regimplify_operands): Likewise.
6798 * omp-low.c (expand_omp_atomic_pipeline): Do not set
6799 DECL_POINTER_ALIAS_SET. Use ref-all pointers.
6800 * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
6801 * tree.c (restrict_base_for_decl): Remove.
6802 (init_ttree): Do not allocate it.
6803 (make_node_stat): Do not set DECL_POINTER_ALIAS_SET. Set
6804 LABEL_DECL_UID for label decls.
6805 (copy_node_stat): Do not copy restrict information.
6806 (decl_restrict_base_lookup): Remove.
6807 (decl_restrict_base_insert): Likewise.
6808 (print_restrict_base_statistics): Likewise.
6809 (dump_tree_statistics): Do not call print_restrict_base_statistics.
6810 * tree.h (DECL_POINTER_ALIAS_SET): Remove.
6811 (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
6812 (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
6813 (LABEL_DECL_UID): Adjust.
6814 (DECL_BASED_ON_RESTRICT_P): Remove.
6815 (DECL_GET_RESTRICT_BASE): Likewise.
6816 (SET_DECL_RESTRICT_BASE): Likewise.
6817 (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
6819 * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
6820 instead of DECL_POINTER_ALIAS_SET.
6821 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
6822 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
6823 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
6825 2009-06-29 Richard Guenther <rguenther@suse.de>
6827 PR tree-optimization/40579
6828 * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
6829 the IL to simplify has constants that overflowed.
6831 2009-06-28 Uros Bizjak <ubizjak@gmail.com>
6833 PR tree-optimization/40550
6834 * tree-vect-generic.c (expand_vector_operations_1): Compute in
6835 vector_compute_type only when the size of vector_compute_type is
6836 less than the size of type.
6838 2009-06-28 Eric Botcazou <ebotcazou@adacore.com>
6840 * fold-const.c (contains_label_1): Fix comments.
6841 (contains_label_p): Do not walk trees multiple time.
6843 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
6845 * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
6846 * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
6847 cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
6848 ix86_fp_comparison_operator.
6849 (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
6850 *fp_jcc_2_sse, *fp_jcc_2_387): Delete
6851 (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
6852 *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
6853 !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
6854 to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
6855 (related splits): Change predicate to ix86_fp_comparison_operator.
6856 * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
6857 instead of ix86_fp_comparison_codes.
6858 (ix86_trivial_fp_comparison_operator,
6859 ix86_fp_comparison_operator): New.
6860 * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
6861 (ix86_expand_compare): Eliminate last two parameters.
6862 (ix86_fp_jump_nontrivial_p): Kill.
6863 * config/i386/i386.c (put_condition_code): Eliminate call to
6864 ix86_fp_comparison_codes and subsequent assertion.
6865 (ix86_fp_comparison_codes): Eliminate.
6866 (ix86_fp_swap_condition): New.
6867 (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
6868 ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
6869 into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
6870 (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
6871 and ix86_fp_swap_condition.
6872 (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
6873 Use ix86_fp_comparison_strategy.
6874 (ix86_expand_compare): Likewise. Eliminate last two arguments.
6875 (ix86_fp_jump_nontrivial_p): Eliminate.
6876 (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple. Adjust
6877 call to ix86_expand_compare.
6878 (ix86_split_fp_branch, ix86_expand_setcc,
6879 ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
6880 ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
6882 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
6884 * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
6885 related to jump_clobbers.
6886 * config/arm/arm.md (conds): Remove jump_clob case.
6887 (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
6888 splits): Change comparison_operator to arm_comparison_operator.
6889 (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
6892 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
6894 * dojump.c (do_compare_rtx_and_jump): Try swapping the
6895 condition for floating point modes.
6896 * expmed.c (emit_store_flag_1): Move here a bigger part
6898 (emit_store_flag): Try swapping the condition for floating point
6900 * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
6902 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
6904 * expr.c (expand_expr_real_1): Just use do_store_flag.
6905 (do_store_flag): Drop support for TRUTH_NOT_EXPR. Use
6906 emit_store_flag_force.
6907 * expmed.c (emit_store_flag_force): Copy here trick
6908 previously in expand_expr_real_1. Try reversing the comparison.
6909 (emit_store_flag_1): Work if target is NULL.
6910 (emit_store_flag): Work if target is NULL, using the result mode
6911 from the comparison. Use split_comparison, restructure final part
6912 to simplify conditionals.
6914 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
6916 * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
6917 * dojump.c (do_jump): Change handling of floating-point
6918 ops to use just do_compare_and_jump.
6919 (split_comparison): New.
6920 (do_compare_rtx_and_jump): Add here logic coming previously
6921 in do_jump, using split_comparison.
6923 2009-06-27 H.J. Lu <hongjiu.lu@intel.com>
6926 * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
6928 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
6930 * tree-ssa-alias.c: Fix unintentional commit.
6932 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
6934 * passes.c (execute_one_pass): Fix unintentional commit.
6936 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
6938 * df-problems.c (df_set_seen, df_unset_seen): Delete.
6939 (df_rd_local_compute, df_md_local_compute): Inline them.
6941 (df_md_scratch): New.
6942 (df_md_alloc, df_md_free): Allocate/free it.
6943 (df_md_local_compute): Only include live registers in init.
6944 (df_md_transfer_function): Prune the in-set computed by
6945 the confluence function, and the gen-set too.
6947 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
6949 PR rtl-optimization/26854
6950 * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
6951 * df-problems.c (df_rd_add_problem): Fix comment.
6952 (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
6953 df_md_simulate_artificial_defs_at_top,
6954 df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
6955 df_md_bb_local_compute, df_md_local_compute, df_md_reset,
6956 df_md_transfer_function, df_md_init, df_md_confluence_0,
6957 df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
6958 problem_MD, df_md_add_problem): New.
6959 * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
6960 df_md_get_bb_info): New.
6961 (DF_LAST_PROBLEM_PLUS1): Adjust.
6963 * Makefile.in (fwprop.o): Include domwalk.h.
6964 * fwprop.c: Include domwalk.h.
6965 (reg_defs, reg_defs_stack): New.
6966 (bitmap_only_bit_between): Remove.
6967 (process_defs): New.
6968 (process_uses): Use reg_defs and local_md instead of
6969 bitmap_only_bit_between and local_rd.
6970 (single_def_use_enter_block): New, from build_single_def_use_links.
6971 (single_def_use_leave_block): New.
6972 (build_single_def_use_links): Remove code moved to
6973 single_def_use_enter_block, invoke domwalk.
6974 (use_killed_between): Adjust comment.
6976 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
6978 * bitmap.h (bitmap_ior_and_into): New.
6979 * bitmap.c (bitmap_ior_and_into): New.
6981 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
6983 * domwalk.h (struct dom_walk_data): Remove all callbacks except
6984 before_dom_children_before_stmts and after_dom_children_after_stmts.
6985 Rename the two remaining callbacks to just before_dom_children and
6986 after_dom_children. Remove other GIMPLE statement walking bits.
6987 * domwalk.c (walk_dominator_tree): Remove now unsupported features.
6988 * graphite.c: Do not include domwalk.h.
6989 * tree-into-ssa.c (interesting_blocks): New global.
6990 (struct mark_def_sites_global_data): Remove it and names_to_rename.
6991 (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
6992 rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
6993 now that they're not domwalk callbacks.
6994 (rewrite_initialize_block): Rename to...
6995 (rewrite_enter_block): ... this, place after called functions. Test
6996 interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
6997 (rewrite_finalize_block): Rename to...
6998 (rewrite_leave_block): ... this, place after called functions.
6999 (rewrite_update_init_block): Rename to...
7000 (rewrite_update_enter_block): ... this, place after called functions.
7001 Test interesting_blocks, call rewrite_update_stmt and
7002 rewrite_update_phi_arguments.
7003 (rewrite_update_fini_block): Rename to...
7004 (rewrite_leave_block): ... this, place after called functions.
7005 (rewrite_blocks): Remove last argument, simplify initialization of
7007 (mark_def_sites_initialize_block): Rename to...
7008 (mark_def_sites_block): ... this, call mark_def_sites.
7009 (mark_def_sites_blocks): Remove argument, simplify initialization of
7011 (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
7012 (update_ssa): Likewise.
7013 * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
7015 (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
7016 (dom_opt_initialize_block): Rename to...
7017 (dom_opt_enter_block): ... this, place after called functions. Walk
7018 statements here, inline propagate_to_outgoing_edges.
7019 (dom_opt_finalize_block): Rename to...
7020 (dom_opt_leave_block): ... this, place after called functions.
7021 * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
7023 (dse_enter_block, dse_record_phi): New.
7024 (dse_record_phis): Delete.
7025 (dse_finalize_block): Rename to...
7026 (dse_leave_block): ... this.
7027 (tree_ssa_dse): Simplify initialization of walk_data.
7028 * tree-ssa-loop-im.c (determine_invariantness, move_computations):
7029 Adjust initialization of walk_data.
7030 * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
7031 * tree-ssa-loop-phiopt.c (get_non_trapping):
7032 Adjust initialization of walk_data.
7033 * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
7034 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
7035 it's not a domwalk callback.
7036 (uncprop_initialize_block): Rename to...
7037 (dse_enter_block): ... this, call uncprop_into_successor_phis.
7038 (dse_finalize_block): Rename to...
7039 (dse_leave_block): ... this.
7040 (tree_ssa_uncprop): Simplify initialization of walk_data.
7041 * Makefile.in: Adjust dependencies.
7043 2009-06-27 Richard Earnshaw <rearnsha@arm.com>
7045 * arm.md (casesi): Fix test for Thumb1.
7046 (thumb1_casesi_internal_pic): Likewise.
7047 (thumb1_casesi_dispatch): Likewise.
7049 2009-06-26 Daniel Gutson <dgutson@codesourcery.com>
7051 * config/arm/arm-cores.def: Added core cortex-m0.
7052 * config/arm/arm-tune.md: Regenerated.
7053 * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
7055 2009-06-26 DJ Delorie <dj@redhat.com>
7057 * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
7059 * config/mep/mep.c (mep_bundle_insns): Account for the fact that
7060 the scheduler doesn't tag jump insns.
7062 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
7064 * c-decl.c (merge_decls): Re-indent.
7066 2009-06-26 Janis Johnson <janis187@us.ibm.com>
7069 * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
7070 Special-case decimal float constants.
7072 2009-06-26 Richard Henderson <rth@redhat.com>
7074 * function.h (struct function): Add cannot_be_copied_reason,
7075 and cannot_be_copied_set.
7076 * tree-inline.c (has_label_address_in_static_1): Rename from
7077 inline_forbidden_p_2; don't set inline_forbidden_reason here.
7078 (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
7079 don't set inline_forbidden_reason.
7080 (copy_forbidden): New function, split out of inline_forbidden_p.
7081 (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
7082 (inline_forbidden_p): Use copy_forbidden.
7083 (tree_versionable_function_p): Likewise.
7084 (inlinable_function_p): Merge into tree_inlinable_function_p.
7085 (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
7086 * ipa-cp.c (ipcp_versionable_function_p): New function.
7087 (ipcp_cloning_candidate_p): Use it.
7088 (ipcp_node_modifiable_p): Likewise.
7090 2009-06-26 Olatunji Ruwase <tjruwase@google.com>
7092 * builtins.c (expand_builtin_alloca): Handle builtin alloca
7093 that is marked not to be inlined. Remove flag_mudflap use.
7094 * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
7095 (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
7097 2009-06-26 Steve Ellcey <sje@cup.hp.com>
7100 * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
7101 * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
7103 2009-06-26 Kai Tietz <kai.tietz@onevision.com>
7105 * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
7107 (__mingwthr_remove_key_dtor): Likewise.
7109 2009-06-26 Richard Guenther <rguenther@suse.de>
7111 * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
7113 2009-06-26 Steven Bosscher <steven@gcc.gnu.org>
7116 * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
7117 try the non-cond_exec path also.
7119 2009-06-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7122 * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
7123 (output_cbranch): Use new functions.
7124 (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
7127 2009-06-25 Michael Meissner <meissner@linux.vnet.ibm.com>
7128 Pat Haugen <pthaugen@us.ibm.com>
7129 Revital Eres <ERES@il.ibm.com>
7131 * config/rs6000/rs6000.c (print_operand): Correct lossage message
7132 for %c error. Add %x support to print VSX registers as a unified
7133 register set, instead of separate float and altivec registers.
7134 Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
7135 %y case, and add support for VSX pre-modify addresses.
7136 (output_toc): Add assert for CONST containing an integer constant
7138 (rs6000_adjust_cost): Add POWER7 support.
7139 (insn_must_be_first_in_group): Ditto.
7140 (insn_must_be_last_in_group): Ditto.
7141 (rs6000_emit_popcount): Ditto.
7142 (rs6000_vector_mode_supported_p): Ditto.
7144 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
7145 Change some of the functions called by macros to being called
7146 through a pointer, so debug functions can be inserted if
7147 -mdebug=addr or -mdebug=cost.
7148 (rs6000_preferred_reload_class_ptr): Ditto.
7149 (rs6000_secondary_reload_class_ptr): Ditto.
7150 (rs6000_secondary_memory_needed_ptr): Ditto.
7151 (rs6000_cannot_change_mode_class_ptr): Ditto.
7152 (rs6000_secondary_reload_inner): Ditto.
7153 (rs6000_legitimize_reload_address): Ditto.
7154 (rs6000_legitimize_reload_address_ptr): Ditto.
7155 (rs6000_mode_dependent_address): Ditto.
7156 (rs6000_mode_dependent_address_ptr): Ditto.
7158 * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
7159 function to return true if the mode allows reg + integer
7161 (virtual_stack_registers_memory_p): New function to return true if
7162 the address refers to a virtual stack register.
7163 (rs6000_legitimate_offset_address_p): Move code to say whether a
7164 mode supports reg+int addressing to reg_offset_addressing_ok_p and
7166 (rs6000_legitimate_address_p): Add checks for modes that only can
7167 do reg+reg addressing. Start adding VSX support.
7168 (rs6000_legitimize_reload_address): Ditto.
7169 (rs6000_legitimize_address): Ditto.
7170 (rs6000_debug_legitimate_address_p): New debug functions for
7171 -mdebug=addr and -mdebug=cost.
7172 (rs6000_debug_rtx_costs): Ditto.
7173 (rs6000_debug_address_costs): Ditto.
7174 (rs6000_debug_adjust_cost): Ditto.
7175 (rs6000_debug_legitimize_address): Ditto.
7176 (rs6000_legitimize_reload_address_ptr): Point to call normal
7177 function or debug function. Make functions called via pointer
7179 (rs6000_mode_dependent_address_ptr): Ditto.
7180 (rs6000_secondary_reload_class_ptr): Ditto.
7181 (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
7182 (rs6000_emit_move): Add -mdebug=addr support. Change an abort
7183 into a friendlier error.
7184 (rs6000_init_builtins): Add initial VSX support.
7185 (rs6000_adjust_cost): Fix some spacing issues.
7187 * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
7188 (REG_CLASS_NAMES): Ditto.
7189 (REG_CLASS_CONTENTS): Ditto.
7190 (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
7191 pointer, to add -mdebug=addr support.
7192 (CANNOT_CHANGE_MODE_CLASS): Ditto.
7193 (SECONDARY_RELOAD_CLASS): Call through a pointer to add
7194 -mdebug=addr support.
7195 (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
7196 (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
7197 (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
7199 * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
7201 (bswapsi*): Set attribute types for load/store. Add combiner
7202 patterns to eliminate zero extend on 64-bit.
7203 (bswapdi*): Add support for swapping 64-bit values. Use ldbrx and
7204 stdbrx if the hardware supports those instructions.
7206 2009-06-25 Ian Lance Taylor <iant@google.com>
7208 * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
7209 (Link Options): Document -static-libstdc++.
7211 2009-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
7214 * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
7215 DATA_ALIGNMENT instead.
7217 2009-06-25 Richard Guenther <rguenther@suse.de>
7219 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
7220 indirect references against the callused/escaped solutions.
7221 (call_may_clobber_ref_p_1): Likewise.
7223 2009-06-25 Martin Jambor <mjambor@suse.cz>
7225 PR tree-optimization/40493
7226 * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
7227 (enum unscalarized_data_handling): New type.
7228 (handle_unscalarized_data_in_subtree): Return what has been done.
7229 (load_assign_lhs_subreplacements): Handle left flushes differently.
7230 (sra_modify_assign): Use unscalarized_data_handling, simplified
7231 condition determining whether to remove the statement.
7233 2009-06-25 Basile Starynkevitch <basile@starynkevitch.net>
7235 * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
7236 excerpt - @ should be doubled for texinfo.
7238 2009-06-24 Ian Lance Taylor <iant@google.com>
7240 * config/arc/arc.c: Include "df.h".
7241 (arc_attribute_table): Make static. Move higher in file.
7242 (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
7243 (output_shift): Initialize n later to avoid warning.
7244 * config/arm/arm.c (arm_attribute_table): Make static. Move
7246 * config/avr/avr.c (avr_attribute_table): Make static. Move
7248 (reg_class_tab): Change array type from int to enum reg_class.
7249 (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
7251 (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
7252 (lshrhi3_out): Likewise.
7253 (class_likely_spilled_p): Change return type to bool.
7254 (avr_rtx_costs): Use local code variable with enum type.
7255 * config/avr/avr.md (movmemhi): Use add_reg_note.
7256 (andhi3, andsi3): Don't use AS2 with "and".
7257 (iorhi3, iorsi3): Don't use AS2 with "or".
7258 * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
7259 * config/crx/crx.c: Include "df.h".
7260 (crx_attribute_table): Make static.
7261 * config/m32r/m32r.c: Include "df.h".
7262 (m32r_attribute_table): Make static. Move higher in file.
7263 (pop): Use add_reg_note.
7264 (block_move_call): Change 0 to LCT_NORMAL in function call.
7265 * config/m32r/m32r.md (movsi_insn): Remove unused local value.
7266 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
7267 * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
7268 declare, not just when TREE_CODE is defined.
7269 * config/m68hc11/m68hc11.c: Include "expr.h".
7270 (m68hc11_attribute_table): Make static. Move higher in file.
7271 (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
7273 (m68hc11_register_indirect_p): Likewise.
7274 (m68hc11_function_arg_padding): Change return type to enum
7276 (emit_move_after_reload): Use add_reg_note.
7277 (m68hc11_emit_logical): Change code parameter to enum rtx_code.
7278 (m68hc11_split_logical): Likewise.
7279 (m68hc11_rtx_costs): Add local code_and outer_code variables with
7281 * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
7282 to VOIDmode in function call.
7283 * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
7285 (m68hc11_split_logical): Update declaration.
7286 (m68hc11_function_arg_padding): Update declaration.
7287 * config/mcore/mcore.c (regno_reg_class): Change form array of int
7288 to array of enum reg_class.
7289 (mcore_attribute_table): Make static. Move higher in file.
7290 (mcore_rtx_costs): Add cast to enum type.
7291 * config/mcore/mcore.h (regno_reg_class): Update declaration.
7292 (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
7293 * config/sh/sh.c (sh_attribute_table): Make static. Move higher
7295 * config/sh/predicates.md (trapping_target_operand): Rename and to
7297 * config/sparc/sparc.c (sparc_attribute_table): Make static. Move
7299 * config/spu/spu.c (spu_attribute_table): Make static. Move
7301 * config/v850/v850.c (v850_attribute_table): Make static. Move
7303 (v850_rtx_costs): Use local code with enum type.
7304 (expand_epilogue): Add cast.
7305 * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
7307 2009-06-23 Takashi YOSHII <yoshii.takashi@renesas.com>
7310 * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
7311 -m2a-single-only and -m2a-nofpu.
7312 * config/sh/sh.opt: Document m2a generates FPU code.
7314 2009-06-24 Anatoly Sokolov <aesok@post.ru>
7316 * defaults.h (CAN_ELIMINATE): Provide default.
7317 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
7318 * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
7319 * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
7320 * config/spu/spu.h (CAN_ELIMINATE): Delete.
7321 * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
7322 * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
7323 * config/cris/cris.h (CAN_ELIMINATE): Delete.
7324 * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
7325 * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
7326 * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
7328 2009-06-24 DJ Delorie <dj@redhat.com>
7330 * mep-ext-cop.cpu: Fix copyright notice.
7331 * mep-default: Fix copyright notice.
7332 * mep-core: Fix copyright notice.
7333 * mep: Fix copyright notice.
7334 * mep-ivc2: Fix copyright notice.
7335 * mep-c5: Fix copyright notice.
7337 2009-06-24 Denis Chertykov <chertykov@gmail.com>
7339 * doc/contrib.texi (Contributors):
7341 2009-06-24 Andreas Krebbel <krebbel1@de.ibm.com>
7344 * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
7345 src and dst operands if necessary.
7347 2009-06-23 DJ Delorie <dj@redhat.com>
7350 * config.gcc: Add mep support.
7351 * recog.c: Resurrect validate_replace_rtx_subexp().
7352 * recog.h: Likewise.
7353 * config/mep/: Add new port:
7354 * config/mep/constraints.md: New file.
7355 * config/mep/default.h: New file.
7356 * config/mep/intrinsics.h: New file.
7357 * config/mep/intrinsics.md: New file.
7358 * config/mep/ivc2-template.h: New file.
7359 * config/mep/mep-c5.cpu: New file.
7360 * config/mep/mep-core.cpu: New file.
7361 * config/mep/mep-default.cpu: New file.
7362 * config/mep/mep-ext-cop.cpu: New file.
7363 * config/mep/mep-intrin.h: New file.
7364 * config/mep/mep-ivc2.cpu: New file.
7365 * config/mep/mep-lib1.asm: New file.
7366 * config/mep/mep-lib2.c: New file.
7367 * config/mep/mep-pragma.c: New file.
7368 * config/mep/mep-protos.h: New file.
7369 * config/mep/mep-tramp.c: New file.
7370 * config/mep/mep.c: New file.
7371 * config/mep/mep.cpu: New file.
7372 * config/mep/mep.h: New file.
7373 * config/mep/mep.md: New file.
7374 * config/mep/mep.opt: New file.
7375 * config/mep/predicates.md: New file.
7376 * config/mep/t-mep: New file.
7378 2009-06-23 Ian Lance Taylor <iant@google.com>
7380 * configure.ac: Invoke AC_PROG_CXX. Separate C specific warnings
7381 from loose_warn into c_loose_warn and from strict_warn into
7382 c_strict_warn. Set and substitute warn_cxxflags. Check for
7383 --enable-build-with-cxx. Set and substitute
7384 ENABLE_BUILD_WITH_CXX. Set and substitute HOST_LIBS.
7385 * Makefile.in (CXXFLAGS): New variable.
7386 (C_LOOSE_WARN, C_STRICT_WARN): New variables.
7387 (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN). Add $(C_STRICT_WARN) if
7388 the default is the same as $(STRICT_WARN).
7389 (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
7390 (CXX): New variable.
7391 (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
7392 (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
7393 (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
7394 (HOST_LIBS): New variable.
7395 (GCC_CFLAGS): Add $(C_LOOSE_WARN).
7396 (ALL_CXXFLAGS): New variable.
7397 (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
7398 * doc/install.texi (Configuration): Document
7399 --enable-build-with-cxx, --with-stage1-ldflags,
7400 --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
7401 * configure: Rebuild.
7403 2009-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7405 * config/arm/arm.c (arm_override_options): Fix braces and formatting
7406 from previous commit.
7408 2009-06-23 Ian Lance Taylor <iant@google.com>
7410 * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
7412 2009-06-23 Ian Lance Taylor <iant@google.com>
7414 * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
7415 with ATTRIBUTE_UNUSED.
7417 2009-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
7418 Pat Haugen <pthaugen@us.ibm.com>
7419 Revital Eres <eres@il.ibm.com>
7421 * config.in (HAVE_AS_POPCNTD): Add default definition.
7422 (HAVE_AS_LWSYNC): Ditto.
7424 * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
7426 (gcc_cv_as_powerpc_cmpb): Ditto.
7427 (gcc_cv_as_powerpc_dfp): Ditto.
7428 (gcc_cv_as_powerpc_vsx): Ditto.
7429 (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
7430 supporting the popcntd/lwsync instructions.
7431 (gcc_cv_as_powerpc_lwsync): Ditto.
7432 * configure: Regenerate.
7434 * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
7435 -mcpu=native and -mcpu=power7.
7436 * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
7438 * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
7439 a variable instead of a mask to reduce the number of mask bits.
7440 * config/rs6000/sysv4.opt (-mbit-align): Ditto.
7441 (-mbit-word): Ditto.
7442 (-mregnames): Ditto.
7443 * config/rs6000/rs6000.opt (-mupdate): Ditto.
7444 (-mfused-madd): Ditto.
7446 * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
7448 (-mvsx): New switch for VSX instructions.
7449 (-misel): Move from a variable to a mask to allow it to be set by
7452 * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
7453 function declaration to an array declaration.
7454 (rs6000_hard_regno_nregs): New external array declaration.
7456 * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
7457 files included by rs6000.md.
7459 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
7460 SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
7462 * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
7464 (rs6000_debug_reg): New -mdebug= variables.
7465 (rs6000_debug_addr): Ditto.
7466 (rs6000_debug_cost): Ditto.
7467 (rs6000_pmode): New variable to hold Pmode.
7468 (rs6000_pointer_size): New variable to hold POINTER_SIZE.
7469 (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
7470 calculated at compiler start.
7471 (rs6000_hard_regno_nregs): Change function to an array which holds
7472 HARD_REGNO_NREGS calculated at compiler start.
7473 (rs6000_explicit_options): Delete isel field.
7474 (rs6000_vector_unit): New array to hold which vector unit
7475 supports arithmetic options for a given type.
7476 (rs6000_vector_mem): New array to hold which vector unit supports
7477 memory reference operations for a given type.
7478 (rs6000_vector_align): New array to given the alignment of each
7480 (power7_cost): New basic costs for power7.
7481 (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
7482 (rs6000_hard_regno_nregs_internal): New function, moved from
7483 HARD_REGNO_NREGS, to calculate the number of registers each hard
7484 register takes for each type.
7485 (rs6000_debug_reg_print): New function for -mdebug=reg support.
7486 (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
7487 (+rs6000_init_hard_regno_mode_ok): New function, move calculation
7488 of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
7489 unit information here so it is calculated once at compiler startup
7491 (rs6000_override_options): Make -misel a target mask. Add more
7492 power7 target masks. Setup Pmode and POINTER_SIZE. Add initial
7493 VSX support. Add support for -mdebug=reg, -mdebug=addr, and
7495 (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
7496 (rs6000_handle_option): Move -misel from variable to target mask.
7497 (rs6000_builtin_mask_for_load): Add VSX support.
7498 (rs6000_conditional_register_usage): Ditto.
7499 (USE_ALTIVEC_FOR_ARG_P): Ditto.
7500 (function_arg_boundary): Ditto.
7501 (rs6000_expand_builtin): Ditto.
7502 (def_builtin): Make abort message a little friendlier.
7503 (rs6000_emit_int_cmove): Add support for 64-bit isel.
7505 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
7506 assembler support the popcntd instruction instead of a vsx
7507 instruction to enable power7 support.
7508 (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
7509 (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
7510 option to the assembler if -mcpu=native.
7511 (ASM_CPU_NATIVE_SPEC): Ditto.
7512 (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
7514 (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
7515 the lwsync instruction.
7516 (enum processor_type): Add PROCESSOR_POWER7.
7517 (rs6000_debug_reg): New -mdebug= options.
7518 (rs6000_debug_addr): Ditto.
7519 (rs6000_debug_cost): Ditto.
7520 (rs6000_isel): Delete.
7521 (enum rs6000_vector): New enum to say what vector unit we have.
7522 (VECTOR_UNIT_*): New macros to say which vector unit has
7523 arithmetic operations for a given type.
7524 (VECTOR_MEM_*): New macros to say which vector unit has memory
7525 operations for a given type.
7526 (TARGET_LDBRX): Whether the machine supports the ldbrx
7528 (TARGET_ISEL): Delete, -misel moved to be a mask.
7529 (TARGET_ISEL64): New macro for 64-bit isel support.
7530 (UNITS_PER_VSX_WORD): New macro.
7531 (POINTER_SIZE): Move to be an external variable, rather than
7532 calculating whether we are generating 32 ot 64-bit code.
7534 (STACK_BOUNDARY): Add VSX support.
7535 (LOCAL_ALIGNMENT): Ditto.
7536 (SLOW_UNALIGNED_ACCESS): Ditto.
7537 (VSX_REGNO_P): New macro for VSX support.
7538 (VFLOAT_REGNO_P): Ditto.
7539 (VINT_REGNO_P): Ditto.
7540 (VLOGICAL_REGNO_P): Ditto.
7541 (VSX_VECTOR_MODE): Ditto.
7542 (VSX_SCALAR_MODE): Ditto.
7544 (VSX_MOVE_MODE): Ditto.
7545 (VSX_REG_CLASS_P): Ditto.
7546 (HARD_REGNO_NREGS): Instead of calling a function, use an array
7548 (UNITS_PER_SIMD_WORD): Add VSX support.
7549 (MODES_TIEABLE_P): Ditto.
7550 (STARTING_FRAME_OFFSET): Ditto.
7551 (STACK_DYNAMIC_OFFSET): Ditto.
7552 (EPILOGUE_USES): Ditto.
7553 (REGNO_REG_CLASS): Move to array lookup.
7554 (CLASS_MAX_NREGS): Ditto.
7555 (rs6000_vector_reg_class): Add declaration.
7556 (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
7557 overlap with the floating point and Altivec registers.
7559 * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
7561 * config/rs6000/driver-rs6000.c (asm_names): New static array to
7562 give the appropriate asm switches if -mcpu=native.
7563 (host_detect_local_cpu): Add support for "asm".
7564 (host_detect_local_cpu): Follow GNU code guidelines for name.
7566 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
7567 -mbit-word to a variable instead of being a target mask.
7569 * config/rs6000/sync.md (lwsync): If the assembler supports it,
7570 emit the lwsync instruction instead of emitting the instruction as
7571 an integer constant.
7573 * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
7574 fixuns_trundfsi2, move expander into rs6000.md.
7576 * config/rs6000/rs6000.md (cpu): Add power7.
7577 (sel, *ptrsize): New mode attributes for 32/64-bit isel.
7578 (logical predicate patterns): Change the single instruction
7579 primitives that set CR0 to be fast_compare instead of compare.
7581 (popcntwsi2): Add support for ISA 2.06 popcount instructions.
7582 (popcntddi2): Ditto.
7583 (popcount<mode>): Ditto.
7584 (floating multiply/add insns): Name the floating point
7586 (isel_signed_<mode>): Add support for -misel on 64-bit systems.
7587 (isel_unsigned_<mode>): Ditto.
7588 (fixuns_trundfsi2): Move expander here from spe.md.
7589 (smindi3): Define if we have -misel on 64-bit systems.
7594 2009-06-23 Anatoly Sokolov <aesok@post.ru>
7596 * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
7598 * config/avr/avr.c (avr_current_device): New variable.
7599 (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
7600 (avr_arch, mcu_type_s): Move to avr.h.
7601 * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
7602 default_data_section_start fields.
7603 (avr_arch): Moved from avr.c.
7604 (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
7605 library_name fields.
7606 (avr_current_device, avr_mcu_types, avr_arch_types,
7607 avr_device_to_arch, avr_device_to_data_start,
7608 avr_device_to_startfiles, avr_device_to_devicelib): Declare.
7609 (EXTRA_SPEC_FUNCTIONS): Define.
7610 (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
7611 options mapping. Use device_to_arch and device_to_data_start insted.
7612 (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
7613 (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
7614 * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
7615 * config/avr/driver-avr.c: New file.
7616 * config/avr/avr-devices.c: New file.
7618 2009-06-23 Jakub Jelinek <jakub@redhat.com>
7620 * var-tracking.c (unshare_variable): Force initialized to
7621 be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
7622 (set_variable_part): Likewise.
7623 (struct variable_union_info): Remove pos_src field.
7624 (vui_vec, vui_allocated): New variables.
7625 (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
7626 unconditionally. Avoid XCVECNEW/free for every sorting, for dst_l
7627 == 1 use a simpler sorting algorithm. Compute pos field right
7628 away, don't fill in pos_src. For dst_l == 2 avoid qsort.
7629 Avoid quadratic comparison if !flag_var_tracking_uninit.
7630 (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
7631 unshare_variable unconditionally.
7632 (dataflow_set_different_2): Removed.
7633 (dataflow_set_different): Don't traverse second hash table.
7634 (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
7635 unconditionally to var_reg_set or var_mem_set.
7636 (emit_notes_in_bb): Likewise.
7637 (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
7639 (emit_note_insn_var_location): Don't set initialized to
7640 VAR_INIT_STATUS_INITIALIZED early.
7641 (vt_finalize): Free vui_vec if needed, clear vui_vec and
7643 * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
7645 * tree-object-size.c (addr_object_size): Instead of checking
7646 for non-NULL TREE_CHAIN of the FIELD_DECL check that there
7647 are no FIELD_DECLs following it.
7649 2009-06-23 Andreas Krebbel <krebbel1@de.ibm.com>
7651 * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
7652 order to match bswaps with signed source operands.
7654 2009-06-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7656 * sdbout.c (sdbout_one_type): Fix braces in switch.
7658 2009-06-23 Richard Guenther <rguenther@suse.de>
7660 * tree-ssa-structalias.c (struct variable_info): Add is_global_var
7662 (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
7663 readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
7664 var_callused, callused_tree, var_storedanything, storedanything_tree,
7665 var_integer, integer_tree): Remove global variables.
7666 (new_var_info): Do not pass new id, append the new var to the
7667 global variable vector.
7668 (do_ds_constraint): Use is_global_var member of the variable-info.
7669 (new_scalar_tmp_constraint_exp): Adjust.
7670 (create_function_info_for): Likewise.
7671 (create_variable_info_for): Likewise.
7672 (find_what_var_points_to): Remove dead code.
7673 (init_base_vars): Simplify.
7674 (compute_points_to_sets): Adjust.
7676 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
7678 * combine.c (try_combine): Dump information about the insns we're
7681 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
7683 * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
7684 check when calling force_to_mode on TRUNCATE's operand.
7686 2009-06-22 Ian Lance Taylor <iant@google.com>
7688 * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
7690 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
7692 * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
7694 2009-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7696 * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
7697 override library linkage flags such as -static-libgcc or
7700 2009-06-22 Maxim Kuvyrkov <maxim@codesourcery.com>
7702 * config/m68k/m68k-devices.def: Add line for MCF5221x.
7704 2009-06-22 Ian Lance Taylor <iant@google.com>
7706 * config/linux.opt: Put mglibc ahead of muclibc.
7708 * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
7709 for duplicate decls.
7711 2009-06-22 Matthias Klose <doko@ubuntu.com>
7713 * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
7715 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
7718 * c-parser.c (c_parser_objc_message_args): Return error_mark_node
7719 instead of NULL if a parser error occurs.
7721 2009-06-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7723 * dwarf2out.c (dwarf2_debug_hooks): Initialize
7724 non-DWARF2_DEBUGGING_INFO version.
7726 2009-06-22 Kai Tietz <kai.tietz@onevision.com>
7728 * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
7729 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
7731 * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
7732 (LIBGCC2_TF_CEXT): Define.
7735 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7738 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
7740 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7742 * config/arm/arm.c (arm_override_options): Disable
7743 -mcaller-super-interworking and -mcallee-super-interworking.
7744 * doc/invoke.texi (ARM Options): Document this.
7746 2009-06-22 Nathan Sidwell <nathan@codesourcery.com>
7748 * config/arm/arm.c (arm_print_operand): Deal with HIGH.
7749 * config/arm/constraints.md (j): New constraint for movw operands.
7750 (N): Remove thumb2 meaning.
7751 * config/arm/arm.md (*arm_movw): Delete.
7752 (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
7753 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
7754 * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
7756 2009-06-22 Martin Jambor <mjambor@suse.cz>
7758 PR tree-optimization/40492
7759 * tree-sra.c (sra_modify_assign): Pass zero offsets to
7760 build_ref_for_offset.
7762 2009-06-22 Shujing Zhao <pearly.zhao@oracle.com>
7764 * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
7765 JUMP_TABLE_DATA_P predicates where applicable.
7766 * auto-inc-dec.c: Ditto.
7767 * builtins.c: Ditto.
7768 * caller-save.c: Ditto.
7770 * cfgcleanup.c: Ditto.
7771 * cfglayout.c: Ditto.
7774 * combine-stack-adj.c: Ditto.
7780 * dwarf2asm.c: Ditto.
7781 * dwarf2out.c: Ditto.
7782 * emit-rtl.c: Ditto.
7788 * function.c: Ditto.
7791 * genpreds.c: Ditto.
7792 * genrecog.c: Ditto.
7794 * ira-costs.c: Ditto.
7795 * ira-lives.c: Ditto.
7798 * lower-subreg.c: Ditto.
7799 * modulo-sched.c: Ditto.
7801 * postreload.c: Ditto.
7802 * print-rtl.c: Ditto.
7811 * sched-vis.c: Ditto.
7813 * sel-sched-ir.c: Ditto.
7814 * simplify-rtx.c: Ditto.
7815 * targhooks.c: Ditto.
7816 * var-tracking.c: Ditto.
7817 * vmsdbgout.c: Ditto.
7819 2009-06-22 Matthias Klose <doko@ubuntu.com>
7821 * Makefile.in (install-plugin): Always use DESTDIR.
7823 2009-06-22 Olivier Hainque <hainque@adacore.com>
7825 * config/pa/pa.c (output_call): Don't optimize post call jumps
7826 into return address adjustments if the call may throw.
7828 2009-06-21 Richard Earnshaw <rearnsha@arm.com>
7830 * arm.c (thumb1_output_casesi): New function.
7831 * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
7832 optimizing for size or PIC.
7833 (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
7834 * arm.md (UNSPEC_THUMB1_CASESI): New constant.
7835 (casesi): Handle Thumb-1 when optimizing for size or PIC.
7836 (thumb1_casesi_internal_pic): New expand rule.
7837 (thumb1_casesi_dispatch): New pattern.
7838 * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
7840 * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
7841 in the text seciton when PIC or optimizing for size.
7842 * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
7843 * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
7844 preservation properties of code.
7845 (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
7846 (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
7847 (__gnu_thumb1_case_si): New function.
7848 * t-arm (LIB1ASMSRC): Define here.
7849 (LIB1ASMFUNCS): Add some common functions.
7850 * t-arm-elf (LIB1ASMSRC): Delete.
7851 (LIB1ASMFUNCS): Append to existing set.
7852 * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
7853 * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
7854 * t-symbian (LIB1ASMFUNCS): Likewise.
7855 * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
7856 * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
7858 2009-06-21 Richard Guenther <rguenther@suse.de>
7860 PR tree-optimization/38729
7861 * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
7862 to loops with a single exit if -fno-expensive-optimizations.
7864 2009-06-21 Jakub Jelinek <jakub@redhat.com>
7866 * var-tracking.c (struct shared_hash_def, shared_hash): New types.
7867 (dataflow_set): Change vars type from htab_t to shared_hash.
7868 (shared_hash_pool, empty_shared_hash): New variables.
7869 (vars_clear): Removed.
7870 (shared_hash_shared, shared_hash_htab, shared_hash_copy,
7871 shared_hash_find_slot_unshare, shared_hash_find_slot,
7872 shared_hash_find_slot_noinsert, shared_hash_find): New
7874 (shared_hash_unshare, shared_hash_destroy): New functions.
7875 (unshare_variable): Unshare set->vars if shared, use
7877 (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
7878 (get_init_value, find_src_set_src, dump_dataflow_set,
7879 clobber_variable_part, emit_notes_for_differences): Use
7881 (dataflow_set_init): Remove second argument, set vars to
7882 empty_shared_hash instead of creating a new htab.
7883 (dataflow_set_clear): Call shared_hash_destroy and set vars
7884 to empty_shared_hash instead of calling vars_clear.
7885 (dataflow_set_copy): Don't call vars_copy, instead just share
7886 the src htab with dst.
7887 (variable_union): Use shared_hash_*, use initially NO_INSERT
7888 lookup if set->vars is shared. Don't keep slot cleared before
7889 calling unshare_variable. Unshare set->vars if needed.
7890 Even ->refcount == 1 vars must be unshared if set->vars is shared
7891 and var needs to be modified.
7892 (variable_canonicalize): New function.
7893 (dataflow_set_union): If dst->vars is empty, just share src->vars
7894 with dst->vars and traverse with variable_canonicalize to canonicalize
7895 and unshare what is needed.
7896 (dataflow_set_different): If old_set and new_set use the same shared
7897 htab, they aren't different. If number of htab elements is different,
7898 htabs are different. Use shared_hash_*.
7899 (dataflow_set_destroy): Call shared_hash_destroy instead of
7901 (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
7902 second argument to dataflow_set_init.
7903 (vt_initialize): Likewise. Initialize shared_hash_pool and
7904 empty_shared_hash, move bb in/out initialization afterwards.
7905 Use variable_htab_free instead of NULL as changed_variables del hook.
7906 (variable_was_changed): Change type of second argument to pointer to
7907 dataflow_set. When inserting var into changed_variables, bump
7908 refcount. Unshare set->vars if set is shared htab and slot needs to
7910 (set_variable_part): Use shared_hash_*, use initially NO_INSERT
7911 lookup if set->vars is shared. Unshare set->vars if needed.
7912 Even ->refcount == 1 vars must be unshared if set->vars is shared
7913 and var needs to be modified. Adjust variable_was_changed caller.
7914 (delete_variable_part): Use shared_hash_*. Even ->refcount == 1
7915 vars must be unshared if set->vars is shared and var needs to be
7916 modified. Adjust variable_was_changed caller.
7917 (emit_note_insn_var_location): Don't pool_free var.
7918 (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
7920 (vt_finalize): Call htab_delete on empty_shared_hash->htab and
7921 free_alloc_pool on shared_hash_pool.
7923 2009-06-20 Anthony Green <green@moxielogic.com>
7925 * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
7926 * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
7928 2009-06-20 Richard Guenther <rguenther@suse.de>
7930 * tree-ssa-structalias.c (find_func_aliases): For memset use
7931 a constraint from NULL if we memset to zero.
7932 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
7933 we explicitly handle that do not read from memory.
7934 (call_may_clobber_ref_p_1): Properly handle builtins that may
7937 2009-06-20 Richard Guenther <rguenther@suse.de>
7939 PR tree-optimization/40495
7940 * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
7941 (new_scalar_tmp_constraint_exp): New function.
7942 (process_constraint): Do not create temporary decls.
7943 (process_all_all_constraints): Likewise.
7944 (handle_const_call): Likewise.
7945 (create_function_info_for): Do not set decl.
7947 2009-06-19 Ian Lance Taylor <iant@google.com>
7949 * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
7950 (rs6000_attribute_table): Make static; move before use.
7952 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
7954 * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
7955 <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
7956 Propagate the TREE_READONLY flag without overwriting it.
7957 (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
7958 Propagate the TREE_READONLY flag onto the result.
7959 (process_call_operands): Move around. Use correct constant value.
7961 2009-06-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7964 * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
7965 * config/arm/arm.md: Likewise.
7967 2009-06-19 Ian Lance Taylor <iant@google.com>
7969 * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
7970 to GIMPLE_ERROR_MARK.
7972 * c-typeck.c (build_conditional_expr): Add op1_original_type and
7973 op2_original_type parameters. Warn about using different enum types.
7974 * c-parser.c (c_parser_conditional_expression): Pass original
7975 types to build_conditional_expr.
7976 * c-tree.h (build_conditional_expr): Update declaration.
7978 2009-06-19 Ian Lance Taylor <iant@google.com>
7980 * config/i386/i386.c (ix86_function_specific_save): Test that
7981 fields match values, rather than testing the values are in a
7984 2009-06-19 Richard Guenther <rguenther@suse.de>
7986 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
7988 (ptr_derefs_may_alias_p): Likewise.
7989 (ptr_deref_may_alias_ref_p_1): New function.
7990 (ptr_deref_may_alias_ref_p): Likewise.
7991 (ref_maybe_used_by_call_p_1): Handle builtins that are not
7992 covered by looking at the ESCAPED solution.
7993 (call_may_clobber_ref_p_1): Likewise.
7994 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
7995 Handle NULL_TREE offset. Do not produce redundant constraints.
7996 (process_all_all_constraints): New helper function.
7997 (do_structure_copy): Use it.
7998 (handle_lhs_call): Likewise.
7999 (find_func_aliases): Handle some builtins with pointer arguments
8000 and/or return values explicitly.
8002 2009-06-19 Ian Lance Taylor <iant@google.com>
8004 * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
8006 2009-06-19 Ian Lance Taylor <iant@google.com>
8008 * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
8010 2009-06-19 Ian Lance Taylor <iant@google.com>
8012 * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
8013 * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
8016 * c-decl.c (finish_decl): If -Wc++-compat, warn about
8017 uninitialized const.
8019 2009-06-19 Ian Lance Taylor <iant@google.com>
8021 * dse.c (struct store_info): Rename bitmap field to bmap. Change
8024 * c-decl.c (in_struct, struct_types): Remove.
8025 (struct c_binding): Add in_struct field.
8026 (c_binding_ptr): Define type, along with VEC.
8027 (struct c_struct_parse_info): Define.
8028 (struct_parse_info): New static variable.
8029 (bind): Initialize in_struct field.
8030 (start_struct): Remove enclosing_in_struct and
8031 enclosing_struct_types parameters. Add
8032 enclosing_struct_parse_info parameter. Change all callers. Set
8033 struct_parse_info rather than in_struct and struct_types.
8034 (grokfield): If -Wc++-compat and there is a symbol binding for the
8035 field name, set the in_struct flag and push it on the
8036 struct_parse_info->fields vector.
8037 (warn_cxx_compat_finish_struct): New static function.
8038 (finish_struct): Remove enclosing_in_struct and
8039 enclosing_struct_types parameters. Add
8040 enclosing_struct_parse_info parameter. Change all callers. Don't
8041 set C_TYPE_DEFINED_IN_STRUCT here. Call
8042 warn_cxx_compat_finish_struct. Free struct_parse_info and set to
8043 parameter. Only push on struct_types if warn_cxx_compat.
8044 (finish_enum): Only push on struct_types if warn_cxx_compat.
8045 (declspecs_add_type): Add loc parameter. Change all callers.
8046 Change all error calls to error_at. Pass loc, not input_location,
8047 to pedwarn calls. Warn if -Wc++-compat and a typedef name is
8048 defined in a struct. If -Wc++-compat and parsing a struct, record
8049 that a typedef name was used.
8050 * c-parser.c (c_parser_declspecs): Get location to pass to
8052 (c_parser_struct_or_union_specifier): Update calls to start_struct
8054 * c-tree.h (struct c_struct_parse_info): Declare.
8055 (finish_struct, start_struct): Update declarations.
8056 (declspecs_add_type): Update declaration.
8058 2009-06-19 Ian Lance Taylor <iant@google.com>
8060 * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
8061 variable with an anonymous type.
8063 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
8065 * see.c: Remove for real.
8067 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
8069 * optabs.h (enum optab_index): Add new OTI_significand.
8070 (significand_optab): Define corresponding macro.
8071 * optabs.c (init_optabs): Initialize significand_optab.
8072 * genopinit.c (optabs): Implement significand_optab using
8073 significand?f2 patterns.
8074 * builtins.c (expand_builtin_mathfn): Handle
8075 BUILT_IN_SIGNIFICAND{,F,L}.
8076 (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
8077 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
8079 * config/i386/i386.md (significandxf2, significand<mode>2): New
8080 expanders to implement significandf, significand and significandl
8081 built-ins as inline x87 intrinsics.
8083 2009-06-18 Anatoly Sokolov <aesok@post.ru>
8085 * config/avr/avr.c (avr_override_options): Remove setting value of
8086 PARAM_INLINE_CALL_COST.
8088 2009-06-18 Richard Henderson <rth@redhat.com>
8091 * tree-pass.h (TDF_ASMNAME): New.
8092 * tree-dump.c (dump_options): Add asmname.
8093 * doc/invoke.texi: Document it.
8095 * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
8096 (dump_decl_name): ...here.
8097 (dump_function_name): New flags arg; mind TDF_ASMNAME.
8098 (dump_generic_node): Update dump_function_name calls.
8099 (print_call_name): New flags arg; update all dump calls.
8100 * diagnostic.h (print_call_name): Update.
8101 * gimple-pretty-print.c (dump_gimple_call): Update.
8103 2009-06-18 H.J. Lu <hongjiu.lu@intel.com>
8106 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
8108 2009-06-18 Diego Novillo <dnovillo@google.com>
8110 * doc/plugins.texi: Document plugin_is_GPL_compatible.
8111 * plugin.c (str_license): Declare.
8112 (try_init_one_plugin): Assert that the symbol
8113 'plugin_is_GPL_compatible' exists.
8115 2009-06-18 Sergei Dyshel <sergeid@il.ibm.com>
8118 * Makefile.in (OBJS-common): Remove see.o.
8120 * common.opt (fsee): Mark as preserved for backward compatibility.
8121 * opts.c (common_handle_option): Add OPT_fsee to the backward
8122 compatibility section.
8123 * passes.c (init_optimization_passes, pass_see): Remove pass.
8124 * timevar.def (TV_SEE): Remove.
8125 * tree-pass.h (pass_see): Remove declaration.
8126 * doc/invoke.texi (-fsee): Remove documentation.
8128 2009-06-18 Martin Jambor <mjambor@suse.cz>
8130 * tree-sra.c: Include statistics.h
8131 (sra_stats): New variable.
8132 (sra_initialize): Clear sra_stats.
8133 (create_access_replacement): Increment sra_stats.replacements.
8134 (get_access_replacement): Do not return twice.
8135 (analyze_all_variable_accesses): Increment statistics counter by the
8136 number of scalarized aggregates.
8137 (generate_subtree_copies): Increment sra_stats.subtree_copies.
8138 (sra_modify_expr): Increment sra_stats.exprs.
8139 (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
8140 (sra_modify_assign): Increment sra_stats.exprs,
8141 sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
8142 (perform_intra_sra): Update statistics counters.
8143 * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
8145 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
8147 * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
8148 (arm_scalar_mode_supported_p): New function.
8150 2009-06-18 Paul Brook <paul@codesourcery.com>
8151 Sandra Loosemore <sandra@codesourcery.com>
8153 * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
8154 (__extendhfsf2, __truncsfhf2): Define.
8155 * config/arm/fp16.c: New file.
8156 * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
8157 * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
8159 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
8161 * doc/extend.texi (Half-Precision): New section.
8162 * doc/invoke.texi (Option Summary): List -mfp16-format.
8163 (ARM Options): List neon-fp16 as -mfpu value. Document -mfp16-format.
8164 * config/arm/arm.opt (mfp16-format=): New.
8165 * config/arm/arm.c: Include intl.h.
8166 (TARGET_INVALID_PARAMETER_TYPE): Redefine.
8167 (TARGET_INVALID_RETURN_TYPE): Redefine.
8168 (TARGET_PROMOTED_TYPE): Redefine.
8169 (TARGET_CONVERT_TO_TYPE): Redefine.
8170 (arm_fp16_format): Define.
8171 (all_fpus): Add entry for neon-fp16.
8172 (fp_model_for_fpu): Likewise.
8173 (struct fp16_format): Declare.
8174 (all_fp16_formats): Define.
8175 (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
8177 (arm_override_options): Set arm_fp16_format. Call sorry for fp16
8179 (arm_legitimate_index_p): Treat HFmode like HImode.
8180 (thumb1_legitimate_address_p): Make it recognize HFmode constants.
8181 (coproc_secondary_reload_class): Special-case HFmode.
8182 (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
8183 (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
8184 (arm_init_fp16_builtins): New.
8185 (arm_init_builtins): Call it.
8186 (arm_invalid_parameter_type): New.
8187 (arm_invalid_return_type): New.
8188 (arm_promoted_type): New.
8189 (arm_convert_to_type).
8190 (arm_file_start): Deal with neon-fp16 as fpu_name. Emit tag for fp16
8192 (arm_emit_fp16_const): New function.
8193 (arm_mangle_type): Mangle __fp16 as "Dh".
8194 * config/arm/arm.h (TARGET_VFPD32): Make it know about
8196 (TARGET_NEON_FP16): New.
8197 (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
8198 (enum fputype): Add FPUTYPE_NEON_FP16.
8199 (enum arm_fp16_format_type): Declare.
8200 (arm_fp16_format): Declare.
8201 (LARGEST_EXPONENT_IS_NORMAL): Define.
8202 * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
8203 * config/arm/arm-modes.def (HFmode): Define.
8204 * config/arm/vfp.md: (*movhf_vfp): New.
8207 * config/arm/arm.md: (fpu): Add neon_fp16.
8208 (floatsihf2, floatdihf2): New.
8209 (fix_trunchfsi2, fix_trunchfdi2): New.
8213 (*arm32_movhf): New.
8214 (*thumb1_movhf): New.
8215 (consttable_2): Add check for HFmode constants.
8216 (consttable_4): Handle HFmode constants.
8218 2009-06-18 Uros Bizjak <ubizjak@gmail.com>
8220 * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
8222 2009-06-17 Olivier Hainque <hainque@adacore.com>
8224 * collect2.c (main): Use CONST_CAST2 to perform char ** to
8225 const char ** conversion in AIX specific section.
8227 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
8229 * config/i386/i386.c (ix86_special_builtin_type): Remove
8230 UINT64_FTYPE_PINT. Add UINT64_FTYPE_PUNSIGNED.
8231 (bdesc_special_args): Updated.
8232 (ix86_init_mmx_sse_builtins): Likewise.
8233 (ix86_expand_special_args_builtin): Likewise.
8235 2009-06-17 Richard Henderson <rth@redhat.com>
8237 * tree-pretty-print.c (maybe_dump_asm_name): New.
8238 (dump_decl_name): Use it.
8239 (PRINT_FUNCTION_NAME): Merge into...
8240 (dump_function_name): ... here. Use maybe_dump_asm_name.
8242 2009-06-17 Cary Coutant <ccoutant@google.com>
8244 * dbxout.c (dbxout_source_line): Add is_stmt parameter.
8246 * debug.c (struct gcc_debug_hooks): Change placeholder for
8248 (debug_nothing_int_charstar_int): Replaced by...
8249 (debug_nothing_int_charstar_int_bool): ...this.
8250 * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
8251 source_line prototype.
8252 (debug_nothing_int_charstar_int): Replaced by...
8253 (debug_nothing_int_charstar_int_bool): ...this.
8254 * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
8255 * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
8256 Output is_stmt operand when necessary.
8257 * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
8258 (notice_source_line): Add is_stmt parameter.
8259 * sdbout.c (sdbout_source_line): Add is_stmt parameter.
8260 * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
8262 * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
8263 * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
8265 2009-06-17 Ian Lance Taylor <iant@google.com>
8267 * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
8269 (struct store_by_pieces_d): Rename from store_by_pieces. Change
8272 2009-06-17 Adam Nemet <anemet@caviumnetworks.com>
8274 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
8275 STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
8276 tree_strip_sign_nop_conversions and
8277 tree_ssa_strip_useless_type_conversions rather than stripping
8278 the operations here.
8279 (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
8281 * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
8282 * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
8283 * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
8284 tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
8287 2009-06-17 Michael Eager <eager@eagercon.com>
8289 * config/rs6000/constraints.md (register_constraint "d"): New.
8290 * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
8291 truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
8292 *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
8293 *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
8294 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
8295 divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
8296 fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
8297 * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
8298 __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
8299 __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
8301 * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
8302 *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
8303 *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
8304 *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
8305 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
8306 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
8307 stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
8308 *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
8309 *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
8310 trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
8311 *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
8312 *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
8313 *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
8314 * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
8316 2009-06-16 Ian Lance Taylor <iant@google.com>
8318 * profile.c (total_num_never_executed): Don't define.
8319 (compute_branch_probabilities): Don't count or print
8321 (init_branch_prob): Don't set total_num_never_executed.
8322 (end_branch_prob): Don't print total_num_never_executed.
8324 2009-06-17 David Daney <ddaney@caviumnetworks.com>
8326 * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
8328 2009-06-17 David Edelsohn <edelsohn@gnu.org>
8330 * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
8331 (nabstd2_fpr): Same.
8333 2009-06-17 Steve Ellcey <sje@cup.hp.com>
8335 * expr.c (expand_assignment): Change complex type check.
8337 2009-06-17 Basile Starynkevitch <basile@starynkevitch.net>
8339 * doc/plugins.texi (Building GCC plugins): Added new section.
8341 2009-06-17 Ian Lance Taylor <iant@google.com>
8343 * c-pch.c (get_ident): Don't set size of templ array.
8344 (pch_init): Don't set size of partial_pch array.
8346 * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
8347 string constant to intialize an array whose size is the length of
8350 2009-06-17 Richard Guenther <rguenther@suse.de>
8352 PR tree-optimization/40389
8353 * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
8354 to addressable types.
8355 * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
8357 2009-06-17 Richard Guenther <rguenther@suse.de>
8360 * tree-chrec.h (build_polynomial_chrec): If we cannot determine
8361 if there is no evolution of left in the loop bail out.
8362 * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
8363 chrec_fold_multiply.
8365 2009-06-16 J"orn Rennecke <joern.rennecke@arc.com>
8366 Janis Johnson <janis187@us.ibm.com>
8369 * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
8370 for the symbol ref of a constant that is the source of a move
8371 - nor for any other not-obvious-label-ref constants.
8373 2009-06-16 Olatunji Ruwase <tjruwase@google.com>
8375 * plugin.c (position_pass): Skip newly inserted pass during list
8376 traversal to avoid repeated insertion.
8378 2009-06-16 Ian Lance Taylor <iant@google.com>
8380 * vec.h (VEC_stack_alloc): Define different version if
8381 GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
8382 (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
8383 (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
8384 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
8386 2009-06-16 H.J. Lu <hongjiu.lu@intel.com>
8388 * config.gcc (extra_headers): Add ia32intrin.h for x86.
8390 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
8391 IX86_BUILTIN_BSRDI. IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
8392 IX86_BUILTIN_RDTSCP. IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
8393 IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
8394 (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
8395 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
8396 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
8397 (bdesc_special_args): Add __builtin_ia32_rdtsc and
8398 __builtin_ia32_rdtscp.
8399 (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
8400 __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
8401 and __builtin_ia32_rorhi.
8402 (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
8403 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
8404 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
8405 (ix86_expand_args_builtin): Likewise.
8406 (ix86_expand_special_args_builtin): Likewise.
8408 * config/i386/i386.md (UNSPECV_RDTSCP): New.
8409 (UNSPECV_RDTSC): Likewise.
8410 (UNSPECV_RDPMC): Likewise.
8411 (*bsr): Renamed to ...
8413 (*bsr_rex64): Renamed to ...
8417 (*rdpmc_rex64): Likewise.
8420 (*rdtsc_rex64): Likewise.
8422 (*rdtscp): Likewise.
8423 (*rdtscp_rex64): Likewise.
8425 * config/i386/ia32intrin.h: New.
8427 * config/i386/x86intrin.h: Include <ia32intrin.h>.
8429 2009-06-16 Ian Lance Taylor <iant@google.com>
8431 * ira-build.c (copy_info_to_removed_store_destinations):
8432 Initialize parent_a.
8434 2009-06-16 Ian Lance Taylor <iant@google.com>
8436 * c-decl.c (grokdeclarator): Change size_varies to bool.
8438 2009-06-16 Ian Lance Taylor <iant@google.com>
8440 * sel-sched.c: Make forward declarations of move_op_hooks and
8441 fur_hooks explicitly extern.
8443 2009-06-16 Ian Lance Taylor <iant@google.com>
8445 * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
8446 * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
8448 2009-06-16 Ian Lance Taylor <iant@google.com>
8450 * resource.c (mark_referenced_resources): Change
8451 include_delayed_effects parameter to bool. Change all callers.
8452 (mark_end_of_function_resources): Likewise.
8453 * reorg.c (insn_references_resource_p): Likewise.
8454 (insn_sets_resource_p): Likewise.
8455 * resource.h (mark_referenced_resources): Update declaration.
8456 (mark_end_of_function_resources): Update declaration.
8458 2009-06-16 David Edelsohn <edelsohn@gnu.org>
8460 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
8462 2009-06-16 David Edelsohn <edelsohn@gnu.org>
8464 * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
8465 GCC can bootstrap on AIX with GNU Binutils 2.20.
8467 2009-06-16 Ian Lance Taylor <iant@google.com>
8469 * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
8471 2009-06-16 Ian Lance Taylor <iant@google.com>
8473 * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
8474 inline, not extern inline.
8475 (exact_log2): Likewise.
8476 * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
8478 (exact_log2): Likewise, but don't test CTZ_HWI.
8480 2009-06-16 Ian Lance Taylor <iant@google.com>
8482 * bitmap.c (bitmap_clear): Don't declare as inline.
8483 * gimple.c (gimplify_assign): Likewise.
8484 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
8485 * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
8486 (sched_scan_info): Remove duplicate definition.
8488 2009-06-16 Ian Lance Taylor <iant@google.com>
8490 * c-common.c (skip_evaluation): Don't define.
8491 (c_inhibit_evaluation_warnings): Define global variable.
8492 (overflow_warning): Check c_inhibit_evaluation_warnings rather
8493 than skip_evaluation.
8494 (convert_and_check, warn_for_div_by_zero): Likewise.
8495 * c-common.h (skip_evaluation): Don't declare.
8496 (c_inhibit_evaluation_warnings): Declare.
8497 * c-parser.c (c_parser_typeof_specifier): Set
8498 c_inhibit_evaluation_warnings rather than skip_evaluation.
8499 (c_parser_conditional_expression): Likewise.
8500 (c_parser_binary_expression): Likewise.
8501 (c_parser_sizeof_expression): Likewise.
8502 (c_parser_alignof_expression): Likewise.
8503 * c-typeck.c (build_indirect_ref): Check
8504 c_inhibit_evaluation_warnings rather than skip_evaluation.
8505 (build_conditional_expr, build_binary_op): Likewise.
8507 2009-06-16 Richard Guenther <rguenther@suse.de>
8509 * tree-ssa-alias.c (is_escape_site): Remove.
8510 * tree-ssa-alias.h (enum escape_type): Remove.
8511 (is_escape_site): Likewise.
8512 * tree-ssa-structalias.c (find_func_aliases): Handle escapes
8513 via casts and asms without deferring to is_escape_site.
8515 2009-06-16 Jakub Jelinek <jakub@redhat.com>
8518 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
8519 use gen_lowpart if op0 has complex mode.
8521 2009-06-16 Richard Guenther <rguenther@suse.de>
8523 * tree-ssa-structalias.c (do_ds_constraint): Stores in global
8524 variables add them to ESCAPED.
8525 (find_func_aliases): Do not make all indirectly stored values escaped.
8527 2009-06-16 Rafael Avila de Espindola <espindola@google.com>
8529 * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
8532 2009-06-16 Martin Jambor <mjambor@suse.cz>
8534 PR tree-optimization/40432
8535 * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
8536 check whether we need to force gimple register operand.
8538 2009-06-16 Martin Jambor <mjambor@suse.cz>
8540 PR tree-optimization/40413
8541 * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
8542 build_ref_for_offset.
8543 (propagate_subacesses_accross_link): Fix a typo in a comment.
8545 2009-06-16 Ira Rosen <irar@il.ibm.com>
8547 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
8548 with additional parameter.
8549 * tree-vectorizer.h (enum vect_def_type): Add new value
8551 (enum vect_relevant): Add comments.
8552 (vect_is_simple_reduction): Add new argument.
8553 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
8554 Detect nested cycles.
8555 (vect_is_simple_reduction): Update documentation, add an argument to
8556 distinguish inner-loop reduction from nested cycle, detect nested
8557 cycles, fix printings and indentation, don't swap operands in case
8559 (get_initial_def_for_reduction): Handle subtraction.
8560 (vect_create_epilog_for_reduction): Add new argument to specify
8562 (vect_finalize_reduction): Handle subtraction, fix comments.
8563 (vectorizable_reduction): Handle nested cycles. In case of nested
8564 cycle keep track of the reduction variable position. Call
8565 vect_is_simple_reduction with additional parameter. Use original
8566 statement code in reduction epilogue for nested cycle. Call
8567 vect_create_epilog_for_reduction with additional parameter.
8568 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
8569 inner-loop vectorization.
8570 (vect_recog_widen_sum_pattern): Likewise.
8571 * tree-vect-stmts.c (process_use): Distinguish between nested cycles
8573 (vect_mark_stmts_to_be_vectorized): Likewise.
8574 (vect_get_vec_def_for_operand): Handle nested cycles.
8576 2009-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8578 * doc/invoke.texi (Debugging Options): Fix option index entries
8579 for -fdump-statistics, -frandom-seed add entries for
8580 -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
8581 (FRV Options): Fix entries for -mTLS, -mtls.
8582 (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
8583 (i386 and x86-64 Options): Fix entry for -mno-red-zone.
8584 (M68hc1x Options): Fix @itemx for -mnominmax.
8585 (MCore Options): Fix entry for -mno-lsim.
8586 (MMIX Options): Fix entry for -mabi=mmixware.
8587 (PDP-11 Options): Fix entry for -mbcopy-builtin.
8589 2009-06-16 Basile Starynkevitch <basile@starynkevitch.net>
8591 * doc/plugins.texi (Interacting with the GCC Garbage Collector):
8592 Mention the plugin mode of gengtype.
8593 * doc/gty.texi (Source Files Containing Type Information): Likewise.
8594 * gengtype.c: Updated copyright.
8595 (plugin_files, nb_plugin_files) Added new static variables.
8596 (measure_input_list) Care about plugin_files.
8597 (write_rtx_next): Added early return in plugin mode.
8598 (create_file): Updated copyright year in generated file. Added
8600 (oprintf): Added early return if NULL outf.
8601 (get_output_file_with_visibility): Care of plugin_files.
8602 (get_output_file_name): May return null.
8603 (write_local): Added early return.
8604 (put_mangled_filename): Ditto.
8605 (finish_root_table): Added check for base_files.
8606 (write_roots): Care about null when plugins.
8607 (main): Added plugin mode.
8609 2009-06-15 Ian Lance Taylor <iant@google.com>
8611 * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
8612 * gcov.c (read_count_file): Add braces around variables declared
8615 * c.opt (Wjump-misses-init): New warning.
8616 * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
8617 -Wall and -Wc++-compat if not already set.
8618 (c_common_post_options): Clear warn_jump_misses_init if it was not
8620 * c-decl.c (struct c_binding): Change type field to a union with
8621 new label field. Make it the first field in the struct. Update
8622 references to type to use u.type instead.
8623 (struct c_spot_bindings): Define.
8624 (struct c_goto_bindings): Define.
8625 (c_goto_bindings_p): Define, along with VECs.
8626 (struct c_label_vars): Define.
8627 (struct c_scope): Add has_label_bindings field.
8628 (bind_label, set_spot_bindings): New static functions.
8629 (decl_jump_unsafe, update_spot_bindings): New static functions.
8630 (update_label_decls): New static function.
8631 (pop_scope): Call update_label_decls. Don't call c_end_vm_scope.
8632 Update binding u.label field to shadowed field.
8633 (c_binding_start_stmt_expr): New function.
8634 (c_binding_end_stmt_expr): New function.
8635 (pushdecl): Don't call c_begin_vm_scope.
8636 (make_label): Add defining and p_label_vars parameters. Change
8638 (lookup_label): Correct test for whether a label has not yet been
8639 defined. Call bind_label rather than bind.
8640 (warn_about_goto): New static function.
8641 (lookup_label_for_goto): New function.
8642 (declare_label): Call bind_label rather than bind.
8643 (check_earlier_gotos): New static function.
8644 (define_label): Don't give errors about jumping into statement
8645 expressions or scopes of variably modified types. Call
8646 set_spot_bindings and check_earlier_gotos. Call bind_label
8647 instead of bind. Don't set label_context_stack_se or
8648 label_context_stack_vm.
8649 (c_get_switch_bindings): New function.
8650 (c_release_switch_bindings): New function.
8651 (c_check_switch_jump_warnings): New function.
8652 (start_function): Don't set label_context_stack_se or
8653 label_context_stack_vm.
8654 (finish_function): Likewise.
8655 * c-typeck.c (label_context_stack_se): Don't define.
8656 (label_context_stack_vm): Don't define.
8657 (c_finish_goto_label): Call lookup_label_for_goto rather than
8658 lookup_label. Don't give errors about jumping into a statement
8659 expression or the scope of a variably modified type. Don't set
8660 label_context_stack_se or label_context_stack_vm.
8661 (struct c_switch): Remove blocked_stmt_expr and blocked_vm
8662 fields. Add bindings field.
8663 (c_start_case): Don't set deleted fields. Set bindings field.
8664 (do_case): Rework order of tests. Don't check blocked_stmt_expr
8665 or blocked_vm. Call c_check_switch_jump_warnings.
8666 (c_finish_case): Don't test blocked_stmt_expr field. Call
8667 c_release_switch_bindings.
8668 (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
8669 c_switch_stack. Don't walk label_context_stack_se labels. Don't
8670 set label_context_stack_se. Call c_bindings_start_stmt_expr.
8671 (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
8672 c_switch_stack. Don't walk label_context_stack_se labels. Don't
8673 set label_context_stack_se. Call c_bindings_end_stmt_expr.
8674 (c_begin_vm_scope, c_end_vm_scope): Don't define.
8675 * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
8676 (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
8677 (C_DECL_UNJUMPABLE_VM): Don't define.
8678 (C_DECL_UNDEFINABLE_VM): Don't define.
8679 (struct c_label_list): Don't define.
8680 (struct c_label_context_se): Don't define.
8681 (struct c_label_context_vm): Don't define.
8682 (struct c_spot_bindings): Declare.
8683 (c_bindings_start_stmt_expr): Declare.
8684 (c_bindings_end_stmt_expr): Declare.
8685 (lookup_label_for_goto): Declare.
8686 (c_get_switch_bindings, c_release_switch_bindings): Declare.
8687 (c_check_switch_jump_warnings): Declare.
8688 (label_context_stack_se, label_context_stack_vm): Don't declare.
8689 (c_finish_goto_label): Update declaration.
8690 (c_begin_vm_scope, c_end_vm_scope): Don't declare.
8691 * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
8692 (Warning Options): Document -Wjump-misses-init.
8694 2009-06-15 Jakub Jelinek <jakub@redhat.com>
8696 * tree-object-size.c (addr_object_size): Fix a pasto in the last
8699 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
8701 * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
8703 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
8705 * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
8707 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
8709 * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
8711 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
8713 * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
8714 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
8715 * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
8716 * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
8717 * dwarf2asm.c (dw2_force_const_mem): Update call to
8719 * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
8720 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
8721 * langhooks.c (lhd_comdat_group): Remove.
8722 * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
8723 * tree.h (DECL_COMDAT_GROUP): New.
8724 (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
8725 (tree_decl_with_vis): Add comdat_group. Remove one_only.
8726 (make_decl_one_only): Change signature.
8727 * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
8729 (make_decl_one_only): Change signature.
8730 (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
8732 2009-06-15 Richard Guenther <rguenther@suse.de>
8735 * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
8737 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8739 * tree-ssa-math-opts.c: Remove extra divide.
8741 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8743 * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
8745 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8747 * passes.c: Add bswap pass.
8748 * tree-pass.h: Add pass_optimize_bswap declaration.
8749 * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
8750 Include rtl.h, expr.h and optabs.h for optab_handler check.
8751 (struct symbolic_number, pass_optimize_bswap): New definition.
8752 (do_shift_rotate, verify_symbolic_number_p): New functions.
8753 (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
8754 (gate_optimize_bswap): New function.
8755 * tree.c (widest_int_cst_value): New function.
8756 * tree.h (widest_int_cst_value): Prototype added.
8758 2009-06-14 Steven Bosscher <steven@gcc.gnu.org>
8760 * cfgcleanup.c (old_insns_match_p): Remove code to substitute
8761 REG_EQUAL/REG_EQUIV notes.
8763 2009-06-14 Richard Guenther <rguenther@suse.de>
8766 * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
8767 has its address taken if NRV was applied and it is addressable.
8768 * tree-ssa-structalias.c (get_constraint_for_address_of): New
8769 function split out from ...
8770 (get_constraint_for_1): ... here.
8771 (handle_rhs_call): Use it to mark the return slot escaped if
8772 it is addressable and NRV was applied.
8774 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
8776 * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
8777 Change first argument type to location_t.
8778 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
8779 Do not set input_location.
8780 Use loc instead of input_location throughout.
8782 2009-06-13 Richard Guenther <rguenther@suse.de>
8784 PR tree-optimization/40421
8785 * tree-predcom.c (should_unroll_loop_p): Remove.
8786 (tree_predictive_commoning_loop): Use can_unroll_loop_p.
8788 2009-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
8790 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8791 Add location argument.
8793 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
8795 * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
8797 * config/s390/s390.c (s390_build_builtin_va_list): Same.
8798 (s390_gimplify_va_arg): Pass location to create_artificial_label.
8799 * config/spu/spu-protos.h: Add location to
8800 spu_resolve_overloaded_builtin.
8801 * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
8802 spu_build_builtin_va_list.
8803 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
8804 argument. Pass location to build_function_call_vec.
8805 * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
8807 (emit_fpu_switch): Same.
8808 (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
8809 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
8810 to build_decl and create_artificial_label.
8811 (xtensa_gimplify_va_arg_expr): Same.
8812 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
8813 (xstormy16_gimplify_va_arg_expr): Same.
8814 * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
8815 * config/arm/arm.c (arm_build_builtin_va_list): Same.
8816 * config/mips/mips.c (mips_build_builtin_va_list): Same.
8817 (mips16_build_function_stub): Same.
8818 (mips16_build_call_stub): Same.
8820 2009-06-13 Richard Earnshaw <rearnsha@arm.com>
8823 * arm/constraints.md (Pa, Pb): New constraints.
8824 * arm/arm.md (thumb1_addsi3): Support more complex additions. Add a
8825 split pattern to deal with them.
8827 2009-06-13 Joerg Sonnenberger <joerg@britannica.bec.de>
8829 * doc/invoke.texi: Add missing option -Wp,OPTION in list,
8830 fix index entry for -Xpreprocessor.
8832 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
8834 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8835 Add location argument to build_decl call.
8836 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
8837 (rs6000_init_builtins): Same.
8838 (spe_init_builtins): Same.
8839 (rs6000_gimplify_va_arg): Add location argument to
8840 create_artificial_label call.
8842 2009-06-12 Steven Bosscher <steven@gcc.gnu.org>
8844 * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
8845 * combine-stack-adj.c (pass_stack_adjustments): Use it.
8846 * Makefile.in: Fix GGC dependency for gcse.o.
8848 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
8850 * tree-pretty-print.c (dump_generic_node): Dump column numbers.
8851 * gimple-pretty-print.c (dump_gimple_stmt): Same.
8852 * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
8854 * c-parser.c (c_parser_binary_expression): Use current column while
8855 building binary operations.
8856 * common.opt (fshow-column): Enable by default.
8857 * tree-vrp.c (check_array_ref): Use warning_at.
8858 (check_array_bounds): Use location from call back if expr has no
8860 * tree.h: Add location argument to maybe_fold_*.
8861 * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
8862 (maybe_fold_offset_to_array_ref): Add location argument and use it.
8863 (maybe_fold_offset_to_component_ref): Same.
8864 (maybe_fold_offset_to_reference): Same.
8865 (maybe_fold_offset_to_address): Same.
8866 (maybe_fold_stmt_indirect): Same.
8867 (maybe_fold_stmt_addition): Same.
8868 (fold_stmt_r): Pass location to maybe_fold_*.
8869 (fold_gimple_assign): Same.
8870 * c-tree.h: Add location argument to finish_decl,
8871 default_function_array_conversion, store_init_value.
8872 * c-decl.c (define_label): Use error_at.
8873 (c_make_fname_decl): Pass location to finish_decl.
8874 (finish_decl): New location argument.
8875 (build_compound_literal): Pass location to store_init_value.
8876 (grokdeclarator): Pass location to finish_decl.
8878 * c-typeck.c (array_to_pointer_conversion): New location argument.
8879 (function_to_pointer_conversion): Same.
8880 (default_function_array_conversion): Same.
8881 (parser_build_unary_op): Pass location to overflow_warning.
8882 (parser_build_binary_op): Same. Use warning_at.
8883 (build_unary_op): Pass location to array_to_pointer_conversion.
8884 (build_c_cast): Pass location to digest_init.
8885 (build_modify_expr): New location argument.
8886 (convert_for_assignment): Same.
8887 (store_init_value): Same.
8888 (digest_init): Same.
8889 (output_init_element): Pass location to digest_init and
8890 array_to_pointer_conversion.
8891 (c_finish_return): Pass location to convert_for_assignment.
8892 * gimplify.c (gimplify_conversion): Pass location to
8893 maybe_fold_offset_to_address.
8894 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
8895 to maybe_fold_stmt_addition.
8896 * c-omp.c (c_finish_omp_atomic): Pass new location to
8898 (c_finish_omp_for): Same.
8899 * c-common.c (overflow_warning): New argument.
8900 * c-common.h: New argument to build_modify_expr, overflow_warning.
8901 * c-parser.c (c_parser_declaration_or_fndef): Pass location to
8903 (c_parser_initializer): Pass location to
8904 default_function_array_conversion.
8905 (c_parser_initelt): Same.
8906 (c_parser_initval): Same.
8907 (c_parser_asm_operands): Same.
8908 (c_parser_expr_no_commas): Same. Pass location to build_modify_expr.
8909 (c_parser_conditional_expression): Same.
8910 (c_parser_binary_expression): Add location info to stack. Use it.
8911 (c_parser_unary_expression): Pass location to
8912 default_function_array_conversion, parser_build_unary_op,
8913 build_indirect_ref, c_parser_postfix_expression_after_primary.
8914 (c_parser_postfix_expression_after_primary): New location argument.
8916 (c_parser_expression_conv): Pass location to
8917 default_function_array_conversion.
8918 (c_parser_expr_list): Same.
8919 (c_parser_omp_atomic): Same.
8920 (c_parser_omp_for_loop): Same.
8921 * c-tree.h: (struct c_declarator): Add comment to id_loc.
8922 (build_array_declarator): New argument.
8923 * c-decl.c (build_array_declarator): Add location argument.
8924 (grokdeclarator): Set id_loc for cdk_array.
8925 * c-parser.c (c_parser_direct_declarator_inner): Pass location to
8926 build_array_declarator.
8927 * tree.c (build_omp_clause): Add location argument.
8928 * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
8929 (OMP_CLAUSE_LOCATION): New macro.
8930 (struct tree_omp_clause): Add location field.
8931 (build_omp_clause): Add argument.
8932 * testsuite/gcc.dg/gomp/for-1.c: Fix column.
8933 * cp/pt.c (tsubst_omp_for_iterator): Pass location to
8935 * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
8936 (cp_parser_omp_clause_collapse): Same.
8937 (cp_parser_omp_clause_default): Same.
8938 (cp_parser_omp_clause_if): Same.
8939 (cp_parser_omp_clause_nowait): Same.
8940 (cp_parser_omp_clause_num_threads): Same.
8941 (cp_parser_omp_clause_ordered): Same.
8942 (cp_parser_omp_clause_schedule): Same.
8943 (cp_parser_omp_clause_untied): Same.
8944 (cp_parser_omp_for_loop): Same.
8945 (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
8946 * c-tree.h (c_start_case): Add location argument.
8947 (c_process_expr_stmt): Same.
8948 (c_finish_goto_*): Same.
8949 * tree-parloops.c (initialize_reductions): Pass location to
8951 (create_parallel_loop): Same.
8952 * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
8953 (gfc_trans_omp_reduction_list): Same.
8954 (gfc_trans_omp_clauses): Same.
8955 (gfc_trans_omp_do): Same.
8956 * c-typeck.c (c_finish_goto_label): Same.
8957 (c_finish_goto_ptr): New location argument.
8958 (c_start_case): Same.
8959 (emit_side_effect_warnings): Same.
8960 (c_process_expr_stmt): Same.
8961 (c_finish_stmt_expr): Same.
8962 (c_finish_omp_clauses): Use error_at instead of error.
8963 * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
8965 * c-omp.c (c_split_parallel_clauses): New location argument.
8966 * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
8967 to build_omp_clause.
8968 (convert_local_reference_stmt): Same.
8969 (convert_gimple_call): Same.
8970 * c-common.h (c_split_parallel_clauses): New argument.
8971 * c-parser.c (c_parser_statement_after_labels): Pass location to
8972 c_finish_goto_label.
8973 (c_parser_switch_statement): Pass location to c_start_case.
8974 (c_parser_for_statement): Pass location to c_finish_expr_stmt,
8975 and c_process_expr_stmt.
8976 (c_parser_omp_variable_list): Add location argument.
8977 (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
8978 (c_parser_omp_clause_default): Same.
8979 (c_parser_omp_clause_if): Same.
8980 (c_parser_omp_clause_num_threads): Same.
8981 (-c_parser_omp_clause_ordered): Same.
8982 (c_parser_omp_clause_reduction): Pass location to
8983 c_parser_omp_variable_list.
8984 (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
8985 (c_parser_omp_clause_untied): Same.
8986 (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
8987 (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
8989 * c-tree.h (check_for_loop_decls, undeclared_variable,
8990 build_component_ref, build_array_ref, build_external_ref,
8991 c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
8992 build_conditional_expr, build_compound_expr, c_cast_expr,
8993 build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
8994 c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
8996 * c-semantics.c (build_stmt): Same.
8997 (build_case_label): Same.
8998 * c-decl.c (c_finish_incomplete_decl): Pass location on down.
8999 (undeclared_variable): New argument.
9001 (lookup_label): Pass location on down.
9002 (define_label): Same.
9003 (finish_decl): Same.
9004 (build_compound_literal): Same.
9005 (finish_struct): Same.
9006 (finish_function): Do not set location here.
9007 (check_for_loop_decls): New argument.
9008 * tree.c (save_expr): Set location.
9009 (build_empty_stmt): New argument.
9010 * tree.h (build_empty_stmt): New argument to build_empty_stmt.
9011 (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
9012 * builtins.c (gimplify_va_arg_expr): Use locations.
9013 (expand_builtin_sync_operation): Same.
9014 * c-typeck.c (build_component_ref): New argument.
9015 (build_array_ref): Same.
9016 (build_external_ref): Same.
9017 (c_expr_sizeof_expr): Same.
9018 (c_expr_sizeof_type): Same.
9019 (parser_build_unary_op): Same.
9020 (build_conditional_expr): Same.
9021 (build_compound_expr): Pass location on down.
9022 (build_compound_expr): New argument.
9023 (build_c_cast): Same.
9024 (c_cast_expr): Same.
9025 (build_asm_expr): Same.
9026 (c_finish_return): Same.
9027 (c_process_expr_stmt): Pass location on down.
9028 (c_finish_stmt_expr): New argument.
9029 (push_clenaup): Same.
9030 (c_finish_omp_parallel): Same.
9031 (c_finish_omp_task): Same.
9032 * gimplify.c (gimplify_call_expr): Pass location on down.
9033 * c-omp.c (c_finish_omp_master): New argument.
9034 (c_finish_omp_critical): Same.
9035 (c_finish_omp_ordered): Same.
9036 (c_finish_omp_barrier): Same.
9037 (-c_finish_omp_taskwait): Same.
9038 (c_finish_omp_atomic): Same.
9039 (c_finish_omp_flush): Same.
9040 * tree-inline.c (copy_tree_body_r): Pass location on down.
9041 (inline_forbidden_p): Remove use of input_location.
9042 * c-gimplify.c (c_build_bind_expr): New argument.
9043 * c-common.c (c_common_truthvalue_conversion): Pass location on down.
9044 (c_sizeof_or_alignof_type): New argument.
9045 (c_alignof_expr): Same.
9046 (build_va_arg): Same.
9047 (c_add_case_label): Same.
9048 * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
9049 c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
9050 c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
9051 c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
9052 c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
9053 c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
9055 * stub-objc.c (objc_build_selector_expr): Same.
9056 (objc_build_throw_stmt): Same.
9057 * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
9058 (c_parser_initelt): Same.
9059 (c_parser_compound_statement): Same.
9060 (c_parser_compound_statement_nostart): Same.
9061 (c_parser_label): Same.
9062 (c_parser_statement_after_labels): Same.
9063 (c_parser_if_body): Same.
9064 (c_parser_else_body): Same.
9065 (c_parser_if_statement): Same.
9066 (c_parser_switch_statement): Same.
9067 (c_parser_while_statement): Same.
9068 (c_parser_do_statement): Same.
9069 (c_parser_for_statement): Same.
9070 (c_parser_asm_statement): Same.
9071 (c_parser_conditional_expression): Same.
9072 (c_parser_binary_expression): Same.
9073 (c_parser_cast_expression): Same.
9074 (c_parser_unary_expression): Same.
9075 (c_parser_sizeof_expression): Same.
9076 (c_parser_alignof_expression): Same.
9077 (c_parser_postfix_expression): Same.
9078 (c_parser_expression): Same.
9079 (c_parser_objc_receiver): Same.
9080 (c_parser_omp_variable_list): Same.
9081 (c_parser_omp_structured_block): Same.
9082 (c_parser_omp_atomic): New argument.
9083 (c_parser_omp_barrier): Same.
9084 (c_parser_omp_critical): Same.
9085 (c_parser_omp_flush): Pass location on down.
9086 (c_parser_omp_for_loop): New argument.
9087 (c_parser_omp_for): Same.
9088 (c_parser_omp_master): Same.
9089 (c_parser_omp_ordered): Same.
9090 (c_parser_omp_sections_scope): Same.
9091 (c_parser_omp_sections): Same.
9092 (c_parser_omp_parallel): Same.
9093 (c_parser_omp_single): Same.
9094 (c_parser_omp_task): Same.
9095 (c_parser_omp_taskwait): Pass location on down.
9096 (c_parser_omp_construct): Same.
9097 (c_parser_omp_threadprivate): Same.
9098 * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
9099 builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
9100 tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
9101 c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
9102 c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
9103 emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
9104 rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
9105 tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
9106 config/i386/i386.c, stmt.c:
9107 Add location argument to the following function definitions and/or
9108 function calls: build_decl, objcp_start_struct, objcp_finish_struct,
9109 start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
9110 cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
9111 build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
9112 do_case, c_finish_bc_stmt, build_compound_literal,
9113 build_function_call.
9114 * c-decl.c (build_compound_literal): Add location argument.
9115 Make all diagnostic calls use location.
9116 (start_struct): Same.
9117 (finish_struct): Same.
9119 (build_enumerator): Same.
9120 (start_function): Same.
9121 (grokdeclarator): Make all diagnostic calls use location.
9122 (store_parm_decls_oldstyle): Same.
9123 * c-typeck.c (build_function_call): Add location argument.
9124 Make all diagnostic calls use location.
9126 (c_finish_bc_stmt): Same.
9127 * tree-nested.c (get_trampoline_type): Add argument.
9128 Pass location to build_decl.
9129 (lookup_tramp_for_decl): Pass location to get_trampoline_type.
9130 * rtl.h (RTL_LOCATION): New.
9131 * c-common.c (c_add_case_label): Add location argument.
9132 Make all diagnostic calls use location.
9133 * c-common.h: Add location argument to make_fname_decl, do_case,
9134 c_add_case_label, build_function_call, resolve_overloaded_builtin.
9135 * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
9136 Set it appropriately for every case. Pass enum_loc to start_enum
9137 call. Pass value_loc first to build_enumerator. Pass enum_loc to
9139 (c_parser_struct_or_union_specifier): Save location. Use it for
9140 start_struct, finish_struct, and parser_xref_tag.
9142 2009-06-12 Ian Lance Taylor <iant@google.com>
9144 * fold-const.c (fold_unary): Rename local variable and to and_expr.
9146 * c-opts.c (c_common_handle_option): For -Wc++-compat set
9147 cpp_opts->warn_cxx_operator_names.
9149 2009-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
9152 * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
9153 is returns NULL and OP is a VCE, look through the VCE.
9155 2009-06-12 Ian Lance Taylor <iant@google.com>
9158 * collect2.c (main): Use CONST_CAST2 in code inside #if
9159 LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
9161 2009-06-12 Joey Ye <joey.ye@intel.com>
9164 * cfgexpand.c (get_decl_align_unit): Update
9165 max_used_stack_slot_alignment with align instead of
9166 stack_alignment_needed.
9168 * function.c (assign_stack_local_1): Update
9169 max_used_stack_slot_alignment with alignment_in_bits instead
9170 of stack_alignment_needed.
9171 (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
9174 2009-06-12 Jakub Jelinek <jakub@redhat.com>
9176 * dwarf2out.c (last_var_location_insn): New variable.
9177 (dwarf2out_end_epilogue): Clear last_var_location_insn.
9178 (dwarf2out_var_location): Don't record anything after last real
9179 insn. Only change labels if there were any real instructions
9180 in between last note and this one, or if changed sections.
9182 2009-06-11 Richard Henderson <rth@redhat.com>
9184 * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
9185 note when storing the frame pointer in a register.
9186 (FRP): Don't redefine to nothing for epilogue.
9187 (alpha_expand_epilogue): Mark register and sp restores.
9188 (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
9190 * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
9191 when gen_lowpart is needed.
9193 2009-06-11 Richard Henderson <rth@redhat.com>
9195 * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
9197 * dwarf2out.c (need_data_align_sf_opcode): New.
9198 (div_data_align): Move earlier.
9199 (def_cfa_1, reg_save): Use it.
9201 2009-06-11 H.J. Lu <hongjiu.lu@intel.com>
9203 * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
9204 (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
9205 (ix86_handle_option): Handle OPT_mcrc32.
9206 (ix86_target_string): Add -mcrc32.
9207 (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
9209 * config/i386/i386.h (TARGET_CRC32): New.
9211 * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
9212 (sse4_2_crc32di): Likewise.
9214 * config/i386/i386.opt (mcrc32): New.
9216 * doc/invoke.texi: Document -mcrc32.
9218 2009-06-11 Richard Henderson <rth@redhat.com>
9220 * common.opt (gdwarf-): Accept a version number.
9221 * doc/invoke.texi (gdwarf-): Update docs.
9222 * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
9223 * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
9224 version level, and record it.
9226 * dwarf2.h (DW_CIE_VERSION): Remove.
9227 * dwarf2out.c (DWARF_VERSION): Remove.
9228 (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
9229 (output_call_frame_info): Use CIE version 3 for dwarf3,
9230 or if the return register column is out of range for version 1.
9231 (dwarf_stack_op_name): Add all dwarf3 values.
9232 (DEBUG_PUBTYPES_SECTION): New.
9233 (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
9234 encoding change for dwarf3.
9235 (output_die) [dw_val_class_die_ref]: Likewise.
9236 (output_compilation_unit_header): Emit correct version for dwarf3.
9237 (output_line_info): Likewise.
9238 (output_pubnames): Update for DWARF_VERSION removal.
9239 (output_aranges): Likewise.
9240 (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
9241 (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
9242 (dwarf2out_finish): Likewise.
9244 2009-06-11 David Daney <ddaney@caviumnetworks.com>
9246 * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
9249 2009-06-11 David Daney <ddaney@caviumnetworks.com>
9252 * doc/extend.texi ( __builtin_unreachable): Document new builtin.
9253 * builtins.c (expand_builtin_unreachable): New function.
9254 (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
9255 * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
9256 * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
9258 * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
9259 searching for missing barriers.
9261 2009-06-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9263 * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
9264 when -fprofile-generate* was passed.
9265 * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
9267 2009-06-11 Anthony Green <green@moxielogic.com>
9269 * config/moxie/moxie.md: Define length attribute for all instructions.
9271 (*b<cond:code>): Support limited branch ranges for new PC-relative
9272 branch instructions.
9273 * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
9275 2009-06-11 Jakub Jelinek <jakub@redhat.com>
9277 * config/i386/i386.c (min_insn_size): Use get_attr_length
9278 for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
9281 * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
9282 instead of emit_insn_before.
9284 2009-06-10 Ian Lance Taylor <iant@google.com>
9287 * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
9290 2009-06-10 Revital Eres <eres@il.ibm.com>
9292 * passes.c (init_optimization_passes): Reschedule
9293 predictive-commoning pass before complete unroll pass.
9295 2009-06-10 Martin Jambor <mjambor@suse.cz>
9297 * cgraph.c (cgraph_node_can_be_local_p): New function.
9298 (cgraph_make_node_local): New function.
9299 * cgraph.h (cgraph_node_can_be_local_p): Declare.
9300 (cgraph_make_node_local): Declare.
9302 2009-06-10 Nathan Froyd <froydnj@codesourcery.com>
9304 * tree.h (tree_base): Add packed_flag and user_align fields.
9305 Decrease size of spare field.
9306 (TYPE_USER_ALIGN): Use user_align from tree_base.
9307 (DECL_USER_ALIGN): Likewise.
9308 (TYPE_PACKED): Use packed_flag from tree_base.
9309 (DECL_PACKED): Likewise.
9310 (tree_type): Delete packed_flag and user_align fields. Widen
9311 precision field. Widen mode field and shuffle fields to align
9312 mode on an 8-bit boundary.
9313 (tree_decl_common): Delete decl_flag_1 and user_align fields.
9314 Renumber decl_flag_* fields. Fix comments. Widen
9315 decl_common_unused field.
9316 (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
9317 (DECL_EXTERNAL): Likewise.
9318 (DECL_BIT_FIELD): Likewise.
9319 (DECL_NONADDRESSABLE_P): Likewise.
9320 (TYPE_DECL_SUPRESS_DEBUG): Likewise.
9321 * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
9323 2009-06-10 Ian Lance Taylor <iant@google.com>
9325 * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
9326 (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
9327 (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
9328 (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
9329 (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
9330 DEF_VEC_ALLOC_FUNC_P.
9331 (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
9332 (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
9333 DEF_VEC_ALLOC_FUNC_O.
9334 (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
9335 (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
9336 DEF_VEC_ALLOC_FUNC_I.
9337 (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
9338 (vec_stack_p_reserve_exact_1): Declare.
9339 (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
9340 (vec_stack_free): Declare.
9341 (VEC_stack_alloc): Define.
9342 (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
9343 (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
9344 (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
9345 * vec.c (void_p): New type. Call DEF_VEC_P and DEF_VEC_ALLOC_P
9347 (stack_vecs): New static variable.
9348 (vec_stack_p_reserve_exact_1): New function.
9349 (vec_stack_o_reserve_1): New static function.
9350 (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
9351 (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
9352 (vec_stack_free): New function.
9353 * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
9354 (VEC_df_ref_stack_alloc): Define.
9355 (df_mw_hardreg_ptr): New type. Use DEF_VEC_P and
9356 DEF_VEC_ALLOC_P_STACK.
9357 (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
9358 (struct df_collection_rec): Change _vec fields to VEC. Remove
9360 (df_free_collection_rec): Adjust for new fields.
9361 (df_insn_rescan): Use new df_collection_rec fields.
9362 (df_notes_rescan, df_canonize_collection_rec): Likewise.
9363 (df_ref_create_structure, df_ref_record): Likewise.
9364 (df_get_conditional_uses, df_get_call_refs): Likewise.
9365 (df_insn_refs_collect, df_bb_refs_collect): Likewise.
9366 (df_bb_refs_record, df_record_entry_block_defs): Likewise.
9367 (df_record_exit_block_uses, df_bb_verify): Likewise.
9368 (df_swap_refs): Change ref_vec parameter to VEC. Change all callers.
9369 (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
9370 Remove count parameter. Change return type to void. Change all
9372 (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
9373 Remove count parameter. Change return type to void. Change all
9375 (df_install_refs): Change old_vec parameter to VEC. Remove count
9376 parameter. Change all callers.
9377 (df_install_mws): Change old_vec parameter to VEC. Remove count
9378 parameter. Change all callers.
9379 (df_refs_verify): Change new_rec parameter to VEC. Change call
9381 (df_mws_verify): Likewise.
9383 2009-06-10 Alexandre Oliva <aoliva@redhat.com>
9385 * gcc.c (compare_files): Cast munmap argumento to caddr_t.
9387 2009-06-10 H.J. Lu <hongjiu.lu@intel.com>
9389 * doc/extend.texi: Add description for __builtin_ia32_crc32di.
9391 2009-06-10 Anthony Green <green@moxielogic.com>
9393 * config/moxie/crti.asm: New file.
9394 * config/moxie/crtn.asm: New file.
9395 * config/moxie/moxie.c: New file.
9396 * config/moxie/moxie.h: New file.
9397 * config/moxie/sfp-machine.h: New file.
9398 * config/moxie/moxie-protos.h: New file.
9399 * config/moxie/t-moxie: Created.
9400 * config/moxie/t-moxie-softfp: Created.
9401 * config/moxie/moxie.md: Created.
9402 * config/moxie/constraints.md: Created.
9403 * config.gcc: Add moxie support.
9404 * doc/md.texi (Machine Constraints): Add moxie constraints.
9405 * doc/contrib.texi (Contributors): Mention moxie port.
9406 * doc/install.texi (Specific): Mention the moxie port.
9408 2009-06-09 Ian Lance Taylor <iant@google.com>
9410 * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
9412 * optabs.c (optab_table): Only use designated initializers if
9413 HAVE_DESIGNATED_INITIALIZERS is defined.
9414 (convert_optab_table): Likewise.
9415 (init_optabs): Always call init_insn_codes if
9416 HAVE_DESIGNATED_INITIALIZERS is not defined.
9418 2009-06-09 Ian Lance Taylor <iant@google.com>
9420 * targhooks.c (default_builtin_vectorized_function): Change fn
9421 parameter to unsigned int.
9422 (default_builtin_vectorized_conversion): Change code parameter to
9424 (default_builtin_reciprocal): Change fn parameter to unsigned int.
9425 * targhooks.h: Update declarations.
9426 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
9427 parameter to unsigned int.
9429 * c-typeck.c (comptypes_check_enum_int): New static function.
9430 (comptypes_internal): Add enum_and_int_p parameter. Change all
9432 (comp_target_types): Add location parameter. Change all callers.
9433 (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
9435 (function_types_compatible_p, type_lists_compatible_p): Likewise.
9436 (build_conditional_expr): Add colon_loc parameter. Change all
9438 (convert_for_assignment): Add location parameter. Change all callers.
9439 * c-parser.c (c_parser_conditional_expression): Pass location of
9440 colon to build_conditional_expr.
9441 * c-tree.h (build_conditional_expr): Update declaration.
9443 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
9445 * graphite.c: Revert previous patch.
9447 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
9450 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
9452 2009-06-09 Ghassan Shobaki <ghassan.shobaki@amd.com>
9454 * tree-ssa-loop-prefetch.c
9455 (loop_prefetch_arrays): Fixed a portability problem in printf format
9458 2009-06-09 Martin Jambor <mjambor@suse.cz>
9460 PR tree-optimization/40351
9461 * tree-sra.c (propagate_subacesses_accross_link): Check that a
9462 refrence to a potential artifical subaccess can be constructed.
9464 2009-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
9466 * config/sh/sh-protos.h (sh_optimization_options): Declare.
9467 (sh_override_options): Likewise.
9468 * config/sh/sh.c: Include params.h.
9469 (sh_optimization_options): New.
9470 (sh_override_options): Likewise.
9471 * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
9472 (OVERRIDE_OPTIONS): Use sh_override_options.
9474 2009-06-08 Jakub Jelinek <jakub@redhat.com>
9476 * dwarf2out.c (emit_cfa_remember): New variable.
9477 (add_fde_cfi): If emit_cfa_remember, recurse to add
9478 DW_CFA_remember_state first.
9479 (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
9480 instead just set emit_cfa_remember.
9482 2009-06-08 Jan Hubicka <jh@suse.cz>
9485 * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
9487 2009-06-08 Jan Hubicka <jh@suse.cz>
9490 * cgraphunit.c (save_inline_function_body): Do not copy transform
9491 hooks for saved inline bodies.
9492 * ipa-passes.c (do_per_function): Do not add the hoks multiple times
9495 2009-06-08 Adam Nemet <anemet@caviumnetworks.com>
9497 * jump.c (returnjump_p): Handle delayed branches. Add missing
9500 2009-06-08 Jan Hubicka <jh@suse.cz>
9503 * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
9504 original node might've been modified.
9505 * tree-inline.c (copy_bb): Do not assume that all clones are the same.
9507 2009-06-08 Jakub Jelinek <jakub@redhat.com>
9509 * tree-object-size.c (addr_object_size): Add OSI argument.
9510 Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
9511 (compute_builtin_object_size, expr_object_size): Adjust callers.
9512 (plus_stmt_object_size): Call addr_object_size instead of
9513 compute_builtin_object_size.
9515 2009-06-08 Ghassan Shobaki <ghassan.shobaki@amd.com>
9516 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
9518 * tree-ssa-loop-prefetch.c
9519 (gather_memory_references): Introduced a counter for the number of
9521 (anything_to_prefetch_p): Introduced a counter for the number of
9523 (is_loop_prefetching_profitable): New function with a cost model
9525 (loop_prefetch_arrays): Use the new cost model to determine if
9526 prefetching is profitable.
9527 * params.def (MIN_INSN_TO_PREFETCH_RATIO,
9528 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
9529 * params.h (MIN_INSN_TO_PREFETCH_RATIO,
9530 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
9531 * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
9532 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
9534 2009-06-08 Michael Matz <matz@suse.de>
9537 * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
9538 partitions use the same.
9539 (expand_one_var): Deal with DECL_RTL sometimes begin set also
9540 for basevars of SSA_NAMEs.
9541 (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
9542 to not expand them twice.
9543 (gimple_expand_cfg): Clear DECL_RTL for those decls that have
9546 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
9548 * common.opt (fcompare-debug=, fcompare-debug-second): New.
9549 (fdump-final-insns=, gtoggle): New.
9550 * doc/invoke.texi: Document them.
9551 * final.c (rest_of_clean_state): Dump final insn stream.
9552 * gcc.c (invoke_as): Hook in -fcompare-debug.
9553 (static_spec_functions): Add compare-debug-dump-opt,
9554 compare-debug-self-opt and compare-debug-auxbase-opt.
9555 (compare_debug, compare_debug_second, compare_debug_opt): New.
9556 (switches_debug_check, n_switches_debug_check): New.
9557 (debug_auxbase_opt, debug_check_temp_file): New.
9558 (process_command): Handle -fno-compare-debug, -fcompare-debug and
9560 (do_self_spec): Handle arguments after switches.
9561 (do_spec_1): Add .gk extension to temp file basenames for compare.
9562 (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
9563 (cc1_options): Use it instead of normal auxbase computation for
9564 the second compare-debug compilation.
9565 (compare_files): New.
9566 (main): Set up and implement compare debug mode.
9567 (compare_debug_dump_opt_spec_function): New.
9568 (compare_debug_self_opt_spec_function): New.
9569 (compare_debug_auxbase_opt_spec_function): New.
9570 * toplev.c (process_options): Handle flag_gtoggle,
9571 flag_dump_final_insns.
9572 * coverage.c (coverage_begin_output): Don't overwrite .gcno file
9573 during -fcompare-debug-second compilation.
9575 2009-06-07 Ian Lance Taylor <iant@google.com>
9577 * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
9578 * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
9580 * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
9581 with no default node. Change warning with %H to warning_at.
9582 Don't clear warn_switch around case checking.
9583 * doc/invoke.texi (Warning Options): Clarify distinction between
9584 -Wswitch and -Wswitch-enum.
9586 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9588 * tree-pass.h (TODO_update_ssa_any): Document internal use only.
9590 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9592 * gbl-ctors.h: Add header guard.
9594 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9596 * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
9597 sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
9598 vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
9599 vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
9600 prototypes for removed functions.
9601 (expressions_equal_p): Move to ...
9602 * tree-ssa-sccvn.h: ... here and ...
9603 * matrix-reorg.c: ... adjust includes.
9605 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9607 * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
9609 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9611 * c-decl.c (finish_decl): Use bool for variable was_incomplete.
9612 (finish_function): Remove erroneous whitespace.
9614 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9616 * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
9617 (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
9619 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9621 * errors.c (internal_error): Commentary typo fix.
9622 * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
9623 * tree-ssa-pre.c: Ditto.
9625 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9627 * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
9628 them is supposed to hold actual statements.
9630 2009-06-06 Ian Lance Taylor <iant@google.com>
9632 * doc/extend.texi (Attribute Syntax): Document that C++ labels on
9633 empty statements can now have attributes.
9635 2009-06-05 Shujing Zhao <pearly.zhao@oracle.com>
9637 * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
9638 * config/mips/mips.md: Ditto.
9640 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
9642 * config/rs6000/eabi.asm (__eabi_convert): Don't define if
9644 (__eabi_uconvert): Likewise.
9646 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
9648 * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
9649 CFI_* definitions with IN_GCC.
9651 2009-06-05 David Edelsohn <edelsohn@gnu.org>
9653 * xcoffout.h (xcoffout_source_line): Update prototype.
9655 2009-06-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9657 * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
9658 mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
9660 2009-06-05 Jakub Jelinek <jakub@redhat.com>
9663 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
9664 inlined_function_outer_scope_p blocks for artificial inlines
9666 * tree.c (tree_nonartificial_location): Rewrite using
9667 block_nonartificial_location.
9669 2009-06-05 Revital Eres <eres@il.ibm.com>
9670 Leehod Baruch <leehod@il.ibm.com>
9672 * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
9673 (expand_expr_real_1): Remove comment.
9674 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9675 Vectorize misaligned access when the target supports it.
9676 (vect_supportable_dr_alignment): Check for unaligned access support.
9677 * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
9680 2009-06-05 Julian Brown <julian@codesourcery.com>
9682 * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
9683 * config/arm/ieee754-sf.S (cmpsf2): Likewise.
9685 2009-06-05 Richard Guenther <rguenther@suse.de>
9688 * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
9691 2009-06-05 Jakub Jelinek <jakub@redhat.com>
9693 * config/s390/s390.c (global_not_special_regno_p): New static inline.
9694 (save_gprs): Don't tell unwinder when a global register is saved.
9695 (s390_emit_epilogue): Emit needed epilogue unwind info.
9697 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
9699 * dwarf2out.c (deferred_asm_name): New.
9700 (add_name_and_src_coords_attributes): Defer creation of
9701 DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
9703 (move_linkage_attr): New.
9704 (dwarf2out_finish): Revisit deferrals and emit attributes at the
9707 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
9709 * tree-nested.c (finalize_nesting_tree_1): Declare the
9710 frame_decl in the binding tree.
9712 2009-06-04 Cary Coutant <ccoutant@google.com>
9714 * basic-block.h (struct basic_block_def): Add discriminator field.
9715 * dbxout.c (dbxout_source_line): Add new parameter. Change all
9717 * debug.c (do_nothing_debug_hooks): Add additional entry.
9718 (debug_nothing_int_charstar_int): New function.
9719 * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
9720 (debug_nothing_int_charstar_int): New declaration.
9721 * dwarf2out.c (dwarf2out_source_line): Add new parameter. Write
9722 discriminator value in .loc directive.
9723 * final.c (last_discriminator): New variable.
9724 (discriminator): New variable.
9725 (final_start_function): Initialize above variables, pass current
9726 discriminator to debug hook.
9727 (notice_source_line): Check for discriminator change.
9728 * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
9729 * sdbout.c (sdbout_source_line): New parameter.
9730 * tree-cfg.c (struct locus_discrim_map): New structure type.
9731 (discriminator_per_locus): New hash table.
9732 (build_gimple_cfg): Allocate and free discriminator hash table.
9733 (make_edges): Call assign_discriminator.
9734 (locus_map_hash): New function.
9735 (locus_map_eq): New function.
9736 (next_discriminator_for_locus): New function.
9737 (same_line_p): New function.
9738 (assign_discriminator): New function.
9739 (make_cond_expr_edges): Call assign_discriminator.
9740 (make_gimple_switch_edges): Likewise.
9741 (first_non_label_stmt): New function.
9742 * vmsdbgout.c (vmsdbgout_source_line): Add new parameter. Change
9744 * xcoffout.c (xcoffout_source_line): Add new parameter.
9746 * configure.ac (gcc_cv_as_discriminator): New configury check for
9747 gas support for discriminator.
9748 * configure: Regenerate.
9749 * config.in: Regenerate.
9751 2009-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9753 * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
9754 val after checking for integers.
9756 2009-06-04 Uros Bizjak <ubizjak@gmail.com>
9758 * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
9760 (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
9761 (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
9762 (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
9763 * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
9764 X64_REGPARM_MAX. Use X86_64_MS_SSE_REGPARM_MAX instead of
9765 X64_SSE_REGPARM_MAX.
9766 * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
9767 X64_SSE_REGPARM_MAX.
9769 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
9771 * gcc.c (report_times_to_file): New.
9772 (execute): Implement it.
9773 (process_command): Support -time=.
9774 * doc/invoke.texi: Document it.
9776 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
9778 * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
9779 that have value exprs.
9781 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
9783 * dwarf2asm.c (dw2_force_const_mem): Defer creation of
9784 declarations for constants until...
9785 (dw2_output_indirect_constant_1): ... this point.
9787 2009-06-04 Richard Earnshaw <rearnsha@arm.com>
9790 * arm.md (arm_addsi3): Don't try to split an add with an
9791 eliminable register until after reload has completed.
9793 2009-06-03 Ian Lance Taylor <iant@google.com>
9795 * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
9796 * genattrtab.c (write_length_unit_log): Likewise.
9797 * genchecksum.c (dosum): Likewise.
9798 * gengtype.c (write_rtx_next): Likewise.
9799 (finish_root_table, write_roots): Likewise.
9800 * gimple.c (gimple_ops_offset_): Likewise.
9801 * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
9802 * config/arc/arc.c (arc_attribute_table): Likewise.
9803 * config/arm/arm.c (arm_attribute_table): Likewise.
9804 * config/avr/avr.c (avr_attribute_table): Likewise.
9805 * config/crx/crx.c (crx_attribute_table): Likewise.
9806 * config/m32r/m32r.c (m32r_attribute_table): Likewise.
9807 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
9808 * config/mcore/mcore.c (mcore_attribute_table): Likewise.
9809 * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
9810 * config/sh/sh.c (sh_attribute_table): Likewise.
9811 * config/sparc/sparc.c (sparc_attribute_table): Likewise.
9812 * config/spu/spu.c (spu_attribute_table): Likewise.
9813 * config/v850/v850.c (v850_attribute_table): Likewise.
9815 * config/alpha/alpha.c (vms_attribute_table): Make static.
9816 * config/bfin/bfin.c (bfin_attribute_table): Likewise.
9817 * config/h8300/h8300.c (h8300_attribute_table): Likewise.
9818 * config/mips/mips.c (mips_attribute_table): Likewise.
9820 * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
9822 (cc1-checksum.o): Likewise.
9824 2009-06-03 Steve Ellcey <sje@cup.hp.com>
9826 * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
9828 2009-06-03 Jakub Jelinek <jakub@redhat.com>
9830 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
9831 insn if it is changing sp. Use gen_add3_insn instead of
9832 conditionally gen_addsi3 and gen_adddi3.
9833 (offset_below_red_zone_p): New static inline function.
9834 (rs6000_emit_epilogue): Emit needed epilogue unwind info.
9835 Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
9836 * config/rs6000/ppc-asm.h: Include auto-host.h.
9837 (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
9838 CFI_RESTORE): Define.
9839 * config/rs6000/crtresxgpr.asm: Add unwind info.
9840 * config/rs6000/crtresxfpr.asm: Likewise.
9841 * config/rs6000/crtresgpr.asm: Likewise.
9842 * config/rs6000/crtresfpr.asm: Likewise.
9843 * config/rs6000/crtsavgpr.asm: Likewise.
9844 * config/rs6000/crtsavfpr.asm: Likewise.
9846 * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
9847 argument of DWARF2_FRAME_REG_OUT macros.
9849 2009-06-03 Julian Brown <julian@codesourcery.com>
9851 * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
9852 words or less (including TImode) in core registers.
9854 2009-06-03 Richard Guenther <rguenther@suse.de>
9857 * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
9859 2009-06-03 Andrey Belevantsev <abel@ispras.ru>
9861 * statistics.c (statistics_counter_event): Do not record event
9862 in pass dump if its number == -1.
9863 (curr_statistics_hash): Add assert that we never get passes
9864 with static number == -1.
9866 2009-06-03 Richard Guenther <rguenther@suse.de>
9867 Andrey Belevantsev <abel@ispras.ru>
9869 * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
9870 non-BLKmode arrays addressable.
9872 2009-06-03 Maxim Kuvyrkov <maxim@codesourcery.com>
9874 * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
9875 * config/m68k/m68k.h: ... here.
9876 * testsuite/gcc.dg/falign-labels.c (dg-options): Don't restrict for
9879 2009-06-03 Martin Jambor <mjambor@suse.cz>
9881 PR tree-optimization/40323
9882 * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
9885 2009-06-03 Richard Guenther <rguenther@suse.de>
9887 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
9890 2009-06-03 Shujing Zhao <pearly.zhao@oracle.com>
9892 * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
9893 JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
9894 JUMP_TABLE_DATA_P where applicable.
9895 * config/sh/sh.c: Ditto.
9896 * config/sh/sh.h: Ditto.
9897 * config/sh/sh.md: Ditto.
9898 * config/sh/symbian.c: Ditto.
9900 2009-06-03 Uros Bizjak <ubizjak@gmail.com>
9902 * config/i386/driver-i386.c (describe_cache): Optimize
9903 concatenation of strings. Use snprintf instead of sprintf.
9904 (host_detect_local_cpu): Ditto. Ignore -march and -mtune for native
9905 target when not compiling with GCC.
9907 2009-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
9909 * config/sh/sh.c: Revert last change.
9910 (sh_expand_epilogue): Emit a blockage insn before the frame
9911 pointer adjustment unconditionally.
9913 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
9915 * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
9916 * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
9917 * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
9918 * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
9919 to COLLECT_GCC_OPTIONS.
9921 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
9923 * collect2.c (target_system_root): New variable.
9924 (main): Handle --sysroot=.
9925 (ignore_library): Strip the sysroot from the library path.
9927 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
9929 * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
9930 (collect2.o): Depend on collect2-aix.h.
9931 (collect2-aix.o): New rule.
9932 * collect2-aix.h: New file.
9933 * collect2-aix.c: Likewise.
9934 * collect2.c: Include collect2-aix.h. Don't undefine
9935 OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
9936 Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
9937 Use TARGET_AIX_VERSION instead of _AIX51.
9938 * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
9939 * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
9940 * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
9941 * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
9942 * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
9944 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
9946 * collect2.c (ignore_library): Avoid premature post-increment
9949 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
9951 * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
9952 * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
9953 !CROSS_DIRECTORY_STRUCTURE alternative and use it for
9954 CROSS_DIRECTORY_STRUCTURE too.
9955 (LINK_LIBG_SPEC): Likewise.
9956 (LIB_SPEC): Add %R to sysroot paths.
9957 * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
9958 (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
9959 * config/rs6000/aix51.h: As for aix43.h.
9960 * config/rs6000/aix52.h: Likewise.
9961 * config/rs6000/aix53.h: Likewise.
9962 * config/rs6000/aix61.h: Likewise.
9963 * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
9964 to the beginning of sysroot paths.
9966 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
9968 * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
9969 INSN_LISTs that are out of the REG_NOTE range.
9971 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
9973 * loop-unroll.c (struct iv_to_split): Add pointer to next.
9974 (struct var_to_expand): Likewise.
9975 (struct opt_info): Add head and tail for linked lists of the above.
9976 (analyze_insn_to_expand_var): Initialize next.
9977 (analyze_iv_to_split_insn): Likewise.
9978 (analyze_insns_in_loop): Create linked lists.
9979 (allocate_basic_variable): Simplify for use without hash table.
9980 (insert_var_expansion_initialization): Likewise, make it type-safer.
9981 (combine_var_copies_in_loop_exit): Likewise.
9982 (apply_opt_in_copies): Walk lists rather than hash tables.
9983 (release_var_copies): Simplified and inlined by hand into...
9984 (free_opt_info): ... this function.
9986 2009-06-02 Richard Guenther <rguenther@suse.de>
9988 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
9991 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
9993 * cfgexpand.c (gimple_expand_cfg): Discard the source location
9994 only for builtins that are not overridden.
9996 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
9998 * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
10001 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
10003 * df-core.c (df_ref_debug): Honor -fdump-noaddr.
10005 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
10007 * combine.c (move_deaths): Compare LUIDs within the same BB only.
10009 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
10011 * common.opt (fdump-unnumbered-links): New.
10012 * doc/invoke.texi (-fdump-unnumbered-links): Document it.
10013 * print-rtl.c (flag_dump_unnumbered_links): New.
10014 (print_rtx): Test it.
10016 2009-06-02 Richard Earnshaw <rearnsha@arm.com>
10018 * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
10019 push/pop multiple to 8-byte alignment.
10021 2009-06-01 Jakub Jelinek <jakub@redhat.com>
10023 * config/i386/i386.c (queued_cfa_restores): New static variable.
10024 (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
10026 (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
10027 (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
10028 Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
10029 Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
10030 note unconditionally.
10031 (ix86_emit_restore_regs_using_mov): Likewise.
10032 (ix86_emit_restore_sse_regs_using_mov): Likewise.
10033 (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
10034 it through to ix86_emit_restore_reg_using_pop.
10035 (ix86_emit_leave): Add RED_OFFSET argument. Call
10036 ix86_add_queued_cfa_restore_notes. Call ix86_add_cfa_restore_note
10037 instead of adding REG_CFA_OFFSET note unconditionally.
10038 (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
10039 the above functions. Call ix86_add_queued_cfa_restore_notes when
10042 * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
10043 force output of the label even for dwarf2out_do_cfi_asm.
10044 (add_fde_cfi): If -g2 and above and cfi might change CFA,
10045 force creation of CFI label and chain DW_CFA_set_loc jumping to it
10046 for convert_cfa_to_fb_loc_list. Adjust other dwarf2out_cfi_label
10048 (dwarf2out_stack_adjust, dwarf2out_frame_debug,
10049 dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
10050 dwarf2out_cfi_label callers.
10051 * tree.h (dwarf2out_cfi_label): Adjust prototype.
10052 * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
10053 Adjust dwarf2out_cfi_label callers.
10054 * config/vax/vax.c (vax_output_function_prologue): Likewise.
10056 * config/i386/i386.h (struct machine_cfa_state,
10057 struct machine_function): Guard with ifndef USED_FOR_TARGET
10058 instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
10061 * emutls.c (__emutls_get_address): Change arr->size to mean number
10062 of allocated arr->data entries instead of # of slots + 1.
10064 PR middle-end/40316
10065 * recog.c (peep2_reinit_state): New function.
10066 (peephole2_init_state): Use it at the end of a basic block and also
10067 when seeing a RTX_FRAME_RELATED_P insn.
10069 2009-06-01 Steve Ellcey <sje@cup.hp.com>
10071 * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
10072 fixuns_truncrfdi2): New.
10073 (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
10074 *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
10075 *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
10076 *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
10077 *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
10078 *recip_approx): Remove.
10079 (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
10080 moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
10081 divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
10083 * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
10086 2009-06-01 Ian Lance Taylor <iant@google.com>
10088 * attribs.c (register_attribute): Use CONST_CAST.
10089 * collect2.c (main): Use CONST_CAST2.
10090 (scan_prog_file): Likewise.
10091 * gcc.c (process_command, main): Likewise.
10092 * toplev.c (toplev_main): Likewise.
10094 * c-typeck.c (handle_warn_cast_qual): New static function,
10095 partially broken out of build_c_cast.
10096 (build_c_cast): Call handle_warn_cast_qual.
10097 * doc/invoke.texi (Warning Options): Document new effect of
10100 2009-06-01 Aldy Hernandez <aldyh@redhat.com>
10102 * diagnostic.c (diagnostic_build_prefix): Always print columns.
10103 (diagnostic_report_current_module): Print columns.
10104 * common.opt (flag_show_column): Enable by default.
10106 2009-06-01 Luis Machado <luisgpm@br.ibm.com>
10108 * alias.c (find_base_term): Check for NULL term before returning.
10110 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
10112 Revert due to PR40320:
10113 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
10114 * calls.c (emit_library_call_value_1): Don't force_operand for move
10117 2009-06-01 Olivier Hainque <hainque@adacore.com>
10118 Eric Botcazou <ebotcazou@adacore.com>
10120 * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
10121 to be processed as a bitfield for constructor output purposes.
10122 * output.h (initializer_constant_valid_for_bitfield_p): Declare
10124 * varasm.c (oc_local_state): New type, output_constructor
10125 local state to support communication with helpers.
10126 (oc_outer_state): New type, output_constructor outer state of
10127 relevance in recursive calls.
10128 (output_constructor_array_range): New output_constructor helper,
10129 extracted code for an array range element.
10130 (output_constructor_regular_field): New output_constructor helper,
10131 extracted code for an element that is not a bitfield.
10132 (output_constructor_bitfield): New output_constructor helper,
10133 extracted code for a bitfield element. Accept an OUTER state
10134 argument for recursive processing. Recurse on record or array
10135 CONSTRUCTOR values, possibly past noop conversions.
10136 (initializer_constant_valid_for_bitfield_p): New predicate. Whether
10137 VALUE is a valid constant-valued expression for use in a static
10138 bit-field initializer.
10139 (output_constructor): Rework to use helpers. Accept and honor an
10140 OUTER state argument for recursive calls. Return total size. Be
10141 prepared for nested constructors initializing bitfields.
10142 (output_constant): Feed OUTER in calls to output_constructor.
10144 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
10146 * calls.c (emit_library_call_value_1): Don't force_operand for move
10149 2009-06-01 Nick Clifton <nickc@redhat.com>
10151 * doc/invoke.texi (IA-64 Options): Fix typo.
10153 2009-06-01 Ira Rosen <irar@il.ibm.com>
10155 PR tree-optimization/39129
10156 * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
10158 (vect_do_peeling_for_loop_bound): Use
10159 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
10160 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
10161 (vect_loop_versioning): Likewise.
10162 (vect_create_cond_for_alias_checks): Fix indentation.
10163 * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
10165 (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
10166 (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
10167 * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
10168 "control flow in loop".
10169 (vect_estimate_min_profitable_iters): Use
10170 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
10171 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
10172 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
10173 (vect_create_data_ref_ptr): Don't mention array dimension in printing.
10174 * tree-vect-stmts.c (vectorizable_store): Replace the check that the
10175 statement belongs to a group of strided accesses with the exact code
10177 (vectorizable_load): Likewise.
10178 * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
10179 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
10181 2009-06-01 Gerald Pfeifer <gerald@pfeifer.com>
10183 * config/freebsd-stdint.h: New file.
10184 * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
10185 Add freebsd-stdint.h to tm_file.
10187 2009-06-01 Richard Earnshaw <rearnsha@arm.com>
10189 * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
10190 (thumb2_extendhidi2): Likewise.
10192 2009-05-31 Ian Lance Taylor <iant@google.com>
10194 * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
10196 2009-05-31 Ian Lance Taylor <iant@google.com>
10198 * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
10199 (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
10200 (ipa-reference.o): Depend upon gt-ipa-reference.h.
10202 2009-05-31 Jason Merrill <jason@redhat.com>
10204 * tree-pretty-print.c (print_call_name): Take the callee, not the
10205 call itself. Make non-static. Use dump_function_name for functions.
10206 (dump_generic_node): Adjust.
10207 * diagnostic.h: Declare print_call_name.
10208 * gimple-pretty-print.c (dump_gimple_call): Use it.
10210 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
10212 * config/sh/sh.md (ashldi3_std): New define_expand.
10215 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
10218 * config/sh/sh.c: Include debug.h.
10219 (sh_expand_epilogue): Emit a blockage insn before the frame
10220 pointer adjustment also when dwarf2out_do_frame returns true.
10222 2009-05-31 Richard Earnshaw <rearnsha@arm.com>
10224 * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
10225 (thumb2_extendqidi2): New pattern.
10227 2009-05-31 Ira Rosen <irar@il.ibm.com>
10229 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
10230 mark phis for renaming.
10231 * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
10232 (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
10233 Call mark_sym_for_renaming.
10234 * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
10235 * tree-vect-loop.c (vect_transform_loop): Remove
10236 vect_memsyms_to_rename initialization and a call to
10237 mark_set_for_renaming.
10239 2009-05-31 Jakub Jelinek <jakub@redhat.com>
10241 PR middle-end/40304
10242 * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
10243 frame related even if !set_cfa && style < 0.
10245 2009-05-30 Kai Tietz <kai.tietz@onevision.com>
10247 * config/i386/mingw-tls.c: New file.
10248 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
10249 * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
10250 defining _WIN32 but not __CYGWIN__.
10252 2009-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10254 * configure.ac: Add MPC support.
10256 * config.in, configure: Regenerate.
10258 2009-05-29 Richard Henderson <rth@redhat.com>
10260 * cfgcleanup.c (try_crossjump_to_edge): Only skip past
10261 NOTE_INSN_BASIC_BLOCK.
10262 * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
10263 Duplicate NOTE_INSN_EPILOGUE_BEG notes.
10264 * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
10266 * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
10268 (add_cfi): Disable check redefining cfa away from drap.
10269 (lookup_cfa_1): Add remember argument; handle remember/restore.
10270 (lookup_cfa): Pass remember argument.
10271 (cfa_remember): New.
10272 (compute_barrier_args_size_1): Remove sibcall check.
10273 (dwarf2out_frame_debug_def_cfa): New.
10274 (dwarf2out_frame_debug_adjust_cfa): New.
10275 (dwarf2out_frame_debug_cfa_offset): New.
10276 (dwarf2out_frame_debug_cfa_register): New.
10277 (dwarf2out_frame_debug_cfa_restore): New.
10278 (dwarf2out_frame_debug): Handle REG_CFA_* notes.
10279 (dwarf2out_begin_epilogue): New.
10280 (dwarf2out_frame_debug_restore_state): New.
10281 (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
10282 DW_CFA_restore_state.
10283 (output_cfi_directive): Likewise.
10284 (convert_cfa_to_fb_loc_list): Likewise.
10285 (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
10286 * dwarf2out.h: Update.
10287 * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
10288 (copy_insn_1): Early out for null.
10289 * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
10290 and dwarf2out_frame_debug_restore_state.
10291 * function.c (prologue, epilogue, sibcall_epilogue): Remove.
10292 (prologue_insn_hash, epilogue_insn_hash): New.
10293 (free_after_compilation): Adjust freeing accordingly.
10294 (record_insns): Create hash table if needed; push insns into
10295 hash instead of array.
10296 (maybe_copy_epilogue_insn): New.
10297 (contains): Search hash table instead of array.
10298 (sibcall_epilogue_contains): Remove.
10299 (thread_prologue_and_epilogue_insns): Split eh_return insns
10300 and mark them as epilogues.
10301 (reposition_prologue_and_epilogue_notes): Rewrite epilogue
10302 scanning in terms of basic blocks.
10303 * insn-notes.def (CFA_RESTORE_STATE): New.
10304 * jump.c (returnjump_p_1): Accept EH_RETURN.
10305 (eh_returnjump_p_1, eh_returnjump_p): New.
10306 * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
10307 CFA_REGISTER, CFA_RESTORE): New.
10308 * rtl.def (EH_RETURN): New.
10309 * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
10311 * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
10312 (eh_return_internal): Use eh_return rtx; split w/ epilogue.
10314 * config/i386/i386.c (gen_push): Update cfa state.
10315 (pro_epilogue_adjust_stack): Add set_cfa argument. When true,
10316 add a CFA_ADJUST_CFA note.
10317 (ix86_dwarf_handle_frame_unspec): Remove.
10318 (ix86_expand_prologue): Update cfa state.
10319 (ix86_emit_restore_reg_using_pop): New.
10320 (ix86_emit_restore_regs_using_pop): New.
10321 (ix86_emit_leave): New.
10322 (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
10323 (ix86_expand_epilogue): Add notes for unwinding the epilogue.
10324 * config/i386/i386.h (struct machine_cfa_state): New.
10325 (ix86_cfa_state): New.
10326 * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
10327 (eh_return_internal): Merge from eh_return_<mode>,
10328 use eh_return rtx, split w/ epilogue.
10330 2009-05-29 Ian Lance Taylor <iant@google.com>
10332 * builtins.c (validate_gimple_arglist): Don't use va_arg with
10334 * calls.c (emit_library_call_value_1): Likewise.
10336 * c-typeck.c (c_build_va_arg): New function.
10337 * c-tree.h (c_build_va_arg): Declare.
10338 * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
10339 instead of build_va_arg.
10341 2009-05-29 Eric Botcazou <ebotcazou@adacore.com>
10343 * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
10344 (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
10345 (ptr_difference_cost): Use affine combinations to compute it.
10346 (difference_cost): Likewise.
10347 (get_computation_cost_at): Compute more accurate cost for addresses
10348 if the ratio is a multiplier allowed in addresses.
10349 For non-addresses, consider that an additional offset or symbol is
10352 2009-05-29 Jakub Jelinek <jakub@redhat.com>
10354 * config/i386/i386.c (ix86_decompose_address): Avoid useless
10355 0 displacement. Add 0 displacement if base is %[er]bp or %r13.
10357 * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
10358 TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
10359 (prefix_rex): For UNIT_MMX don't imply the prefix by default
10361 (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
10362 to 1 for TYPE_SSE{IADD1,CVT1}.
10363 (prefix_vex_imm8): Removed.
10364 (length_vex): Only pass 1 as second argument to
10365 ix86_attr_length_vex_default if prefix_extra is 0.
10366 (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
10367 (length): For prefix vex computation use length_immediate
10368 attribute instead of prefix_vex_imm8.
10369 (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
10370 addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
10371 *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
10372 *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
10373 (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
10374 *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
10375 a space in between the operands.
10376 (*anddi_1_rex64, *andsi_1): Likewise. Override prefix_rex to 1
10377 if one operand is 0xff and the other one si, di, bp or sp.
10378 (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
10379 other one si, di, bp or sp.
10380 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
10381 (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
10382 type and mode attributes.
10383 (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
10384 (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
10385 prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
10386 (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
10387 prefix_data16 attribute iff MODE_DF.
10388 (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
10389 (fix_trunc<mode>di_sse): Set prefix_rex attribute.
10390 (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
10391 constm128_operand in length_immediate computation.
10392 (*addhi_4): Likewise. Fix mode attribute to MODE_HI.
10393 (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
10394 (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
10395 length_immediate attribute to 1.
10396 (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
10397 (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
10398 for certain alternatives.
10399 (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
10400 prefix_data16 attribute if MODE_V1DF.
10401 (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
10402 length_immediate to 1.
10403 (set_got_rex64, set_rip_rex64): Remove length attribute, set
10404 length_address to 4, set mode attribute to MODE_DI.
10405 (set_got_offset_rex64): Likewise. Set length_immediate to 0.
10406 (fxam<mode>2_i387): Set length attribute to 4.
10407 (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
10408 *prefetch_3dnow_rex): Override length_address attribute.
10409 (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
10411 * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
10412 (constm128_operand): Removed.
10413 * config/i386/i386.c (memory_address_length): For
10414 disp && !index && !base in 64-bit mode account for SIB byte if
10415 print_operand_address can't optimize disp32 into disp32(%rip)
10416 and UNSPEC doesn't imply (%rip) addressing. Add 1 to length
10417 for fs: or gs: segment.
10418 (ix86_attr_length_immediate_default): When checking if shortform
10419 is possible, truncate immediate to the length of the non-shortened
10421 (ix86_attr_length_address_default): Ignore MEM_P operands
10423 (ix86_attr_length_vex_default): Only check for DImode on
10424 GENERAL_REG_P operands.
10425 * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
10426 prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
10427 (sse_cvttps2pi): Clear prefix_rep attribute.
10428 (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
10430 (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
10431 (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
10432 *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
10433 iff operand 2 is const_int_operand.
10434 (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
10435 sse2_shufpd_<mode>): Set length_immediate attribute to 1.
10436 (sse2_pshufd_1): Likewise. Set prefix attribute to maybe_vex
10438 (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
10440 (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
10441 prefix_data16 attribute for movlpd and movhpd instructions.
10442 (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise. Override
10443 length_immediate for shufpd instruction.
10444 (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
10445 (avx_cmpp<avxmodesuffixf2c><mode>3,
10446 avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
10447 <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
10448 avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
10449 *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
10450 (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
10451 (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
10452 (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
10453 prefix_data16 attribute for the first alternative to 1.
10454 (*avx_loadlps): Override length_immediate for the first alternative.
10455 (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
10456 attributes for second alternative.
10457 (*vec_concatv2sf_sse4_1): Override length_immediate and
10458 prefix_data16 attributes for second alternative.
10459 (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
10460 vec_extract_hi_<mode>, vec_extract_lo_v16hi,
10461 vec_extract_hi_v16hi, vec_extract_lo_v32qi,
10462 vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
10463 (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
10464 prefix_data16 and length_immediate to 1.
10465 (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
10467 (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
10468 prefix_extra attribute for variants that don't have 0f prefix alone.
10469 (*avx_pinsr<ssevecsize>): Likewise. Set length_immediate to 1.
10470 (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
10471 *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
10472 *sse4_1_pextrd): Set length_immediate to 1.
10473 (*sse4_1_pinsrd): Likewise. Set prefix_extra to 1.
10474 (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
10476 (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
10477 *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
10478 length_immediate to 1 for second alternative.
10479 (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
10480 prefix_extra and length_immediate attributes for the first
10482 (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
10484 (*vec_concatv2di_rex64_sse4_1): Likewise. Override prefix_rex
10485 to 1 for the first and third alternative.
10486 (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
10488 (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
10490 (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
10492 (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
10493 *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
10494 *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
10495 *avx_psign<mode>3): Set prefix_extra attribute to 1.
10496 (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
10497 ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
10498 ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
10499 ssse3_psign<mode>3): Override prefix_rex attribute.
10500 (*avx_palignrti): Override prefix_extra and length_immediate to 1.
10501 (ssse3_palignrti): Override length_immediate to 1.
10502 (ssse3_palignrdi): Override length_immediate to 1, override
10503 prefix_rex attribute.
10504 (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
10505 (sse4a_extrqi): Override length_immediate to 2.
10506 (sse4a_insertqi): Likewise. Override prefix_data16 to 0.
10507 (sse4a_insertq): Override prefix_data16 to 0.
10508 (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
10509 avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
10510 avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
10511 *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
10512 avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
10513 and length_immediate to 1.
10514 (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
10515 sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
10516 sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
10517 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
10518 and length_immediate to 1.
10519 (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
10520 (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
10521 (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
10522 avx_ptest256): Override prefix_extra to 1.
10523 (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
10524 Override prefix_data16 and length_immediate to 1.
10525 (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
10526 sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
10527 sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
10528 sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
10529 prefix_data16 to 0 and prefix_extra to 2.
10530 (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
10531 (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
10533 (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
10534 sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
10535 Override prefix_data16 and prefix_rep to 0, length_immediate to 1
10536 and prefix_extra to 2.
10537 (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
10538 prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
10539 (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
10540 avx_vpermilvar<mode>3,
10541 avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
10542 avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
10543 avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
10544 avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
10545 Override prefix_extra to 1.
10546 (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
10547 (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
10548 vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
10549 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
10550 prefix_extra and length_immediate to 1.
10551 (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
10553 (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
10554 to 1 for the first alternative.
10555 * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
10556 prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
10558 (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
10559 *movv2sf_internal_avx, *movv2sf_internal): Override
10560 prefix_rep attribute for certain alternatives.
10561 (*mov<mode>_internal): Override prefix_rep or prefix_data16
10562 attributes for certain alternatives.
10563 (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
10564 attributes for certain alternatives.
10565 (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
10566 *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
10567 mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
10568 mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
10569 *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
10570 mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
10571 mmx_pswapdv2si2): Set prefix_extra attribute to 1.
10572 (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
10573 length_immediate to 1 if operand 2 is const_int_operand.
10574 (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
10575 *vec_extractv2si_1): Set length_immediate attribute to 1.
10576 (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
10577 using old 3DNOW insn rather than SSE/3DNOW_A.
10578 (mmx_emms, mmx_femms): Clear modrm attribute.
10580 2009-05-29 Martin Jambor <mjambor@suse.cz>
10582 * tree-sra.c: New implementation of SRA.
10584 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
10585 (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
10586 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
10587 * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
10588 (SRA_MAX_STRUCTURE_COUNT): Removed.
10589 (SRA_FIELD_STRUCTURE_RATIO): Removed.
10590 * doc/invoke.texi (sra-max-structure-size): Removed.
10591 (sra-field-structure-ratio): Removed.
10593 2009-05-29 Jakub Jelinek <jakub@redhat.com>
10595 PR middle-end/40291
10596 * builtins.c (expand_builtin_memcmp): Convert len to sizetype
10599 2009-05-29 Andrey Belevantsev <abel@ispras.ru>
10601 PR rtl-optimization/40101
10602 * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
10603 seqno. Adjust comment.
10604 * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
10605 inserting bookkeeping before a jump, the jump is not scheduled.
10606 When no positive seqno found, provide a value. Add comment.
10608 2009-05-29 Richard Guenther <rguenther@suse.de>
10610 * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
10611 short-cutting on the first component.
10613 2009-05-29 Jakub Jelinek <jakub@redhat.com>
10615 PR middle-end/39958
10616 * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
10617 for trees other than decls/types.
10619 2009-05-29 Richard Guenther <rguenther@suse.de>
10621 * tree-ssa-operands.c (get_expr_operands): Do not handle
10622 INDIRECT_REFs in the handled-component case. Remove
10623 unused get_ref_base_and_extent case.
10624 * tree-dfa.c (get_ref_base_and_extent): Avoid calling
10625 tree_low_cst and host_integerp where possible.
10626 * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
10627 codes for equivalence.
10628 * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
10630 2009-05-29 David Billinghurst <billingd@gcc.gnu.org>
10632 * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
10633 to tmake_file for i[34567]86-*-cygwin*.
10635 2009-05-29 Jakub Jelinek <jakub@redhat.com>
10638 * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
10639 (altivec_categorize_keyword, init_vector_keywords,
10640 rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
10643 2009-05-29 Kai Tietz <kai.tietz@onevision.com>
10645 * tree.c (handle_dll_attribute): Check if node is
10646 of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
10648 2009-05-29 Richard Earnshaw <rearnsha@arm.com>
10650 * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
10652 (thumb2_zero_extendqidi2): Likewise.
10654 2009-05-28 Kaz Kojima <kkojima@gcc.gnu.org>
10656 * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
10657 instead of gen_movrt.
10658 * config/sh/sh.md (movrt): Remove.
10660 2009-05-28 Steve Ellcey <sje@cup.hp.com>
10662 * doc/invoke.texi (IA-64 Options):
10663 Add -msdata, -mfused-madd, -mno-inline-float-divide,
10664 -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
10665 -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
10666 -msched-prefer-non-control-spec-insns,
10667 -msched-stop-bits-after-every-cycle,
10668 -msched-count-spec-in-critical-path,
10669 -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
10670 -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
10671 Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
10672 and -msched-spec-verbose.
10674 2009-05-28 Joseph Myers <joseph@codesourcery.com>
10676 * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
10677 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
10679 * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
10681 2009-05-28 Richard Guenther <rguenther@suse.de>
10683 * tree-ssa-alias.c (ao_ref_init): New function.
10684 (ao_ref_base): Likewise.
10685 (ao_ref_base_alias_set): Likewise.
10686 (ao_ref_alias_set): Likewise.
10687 (refs_may_alias_p_1): Change signature.
10688 (refs_may_alias_p): Adjust.
10689 (refs_anti_dependent_p): Likewise.
10690 (refs_output_dependent_p): Likewise.
10691 (call_may_clobber_ref_p_1): Change signature.
10692 (call_may_clobber_ref_p): Adjust.
10693 (stmt_may_clobber_ref_p_1): New function split out from ...
10694 (stmt_may_clobber_ref_p): ... here.
10695 (maybe_skip_until): Adjust signature.
10696 (get_continuation_for_phi): Likewise.
10697 (walk_non_aliased_vuses): Likewise.
10698 * tree-ssa-alias.h (struct ao_ref_s): New structure type.
10699 (ao_ref_init): Declare.
10700 (ao_ref_base): Likewise.
10701 (ao_ref_alias_set): Likewise.
10702 (stmt_may_clobber_ref_p_1): Likewise.
10703 (walk_non_aliased_vuses): Adjust.
10704 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
10705 (get_ref_from_reference_ops): remove.
10706 (vn_reference_lookup_2): Adjust signature.
10707 (vn_reference_lookup_3): Do not re-build trees. Handle unions.
10708 (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
10709 (vn_reference_lookup): Adjust.
10710 (vn_reference_insert): Likewise.
10711 (vn_reference_insert_pieces): Adjust signature.
10712 (visit_reference_op_call): Adjust.
10713 * tree-ssa-pre.c (get_expr_type): Simplify.
10714 (phi_translate_1): Adjust.
10715 (compute_avail): Likewise.
10716 (translate_vuse_through_block): Do not re-build trees.
10717 (value_dies_in_block_x): Likewise.
10718 * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
10720 (vn_reference_lookup_pieces): Adjust declaration.
10721 (vn_reference_insert_pieces): Likewise.
10723 2009-05-28 Benjamin Kosnik <bkoz@redhat.com>
10725 * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
10726 with checking disabled.
10728 2009-05-28 Dave Korn <dave.korn.cygwin@gmail.com>
10732 * configure.ac (HAVE_GAS_ALIGNED_COMM): Add autoconf test and
10733 macro definition for support of three-operand format aligned
10734 .comm directive in assembler on cygwin/pe/mingw target OS.
10735 * configure: Regenerate.
10736 * config.h: Regenerate.
10738 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Use
10739 aligned form of .comm directive if -mpe-aligned-commons is in effect.
10740 * config/i386/cygming.opt (-mpe-aligned-commons): Add new option.
10742 * doc/invoke.texi (-mpe-aligned-commons): Document new target option.
10743 * doc/tm.texi (ASM_OUTPUT_COMMON): Document zero size commons.
10745 2009-05-28 Ira Rosen <irar@il.ibm.com>
10747 PR tree-optimization/40254
10748 * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
10749 in analysis of basic blocks.
10751 2009-05-28 Adam Nemet <anemet@caviumnetworks.com>
10753 PR middle-end/33699
10754 * target.h (struct gcc_target): Fix indentation. Add const_anchor.
10755 * target-def.h (TARGET_CONST_ANCHOR): New macro.
10756 (TARGET_INITIALIZER): Use it.
10757 * cse.c (CHEAPER): Move it up to the other macros.
10758 (insert): Rename this ...
10759 (insert_with_costs): ... to this. Add cost parameters. Update
10761 (insert): New function. Call insert_with_costs.
10762 (compute_const_anchors, insert_const_anchor, insert_const_anchors,
10763 find_reg_offset_for_const, try_const_anchors): New functions.
10764 (cse_insn): Call try_const_anchors. Adjust cost of src_related
10765 when using a const-anchor. Call insert_const_anchors.
10766 * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
10767 * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
10769 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
10771 * tree-inline.c (remap_decls): Enable nonlocalized variables
10772 when not optimizing.
10774 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
10776 * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
10777 Simplify other tests involving optimize.
10779 2009-05-27 Tom Tromey <tromey@redhat.com>
10781 * unwind-dw2.c (_Unwind_DebugHook): New function.
10782 (uw_install_context): Call _Unwind_DebugHook.
10784 2009-05-27 Tom Tromey <tromey@redhat.com>
10786 * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
10788 2009-05-27 Ian Lance Taylor <iant@google.com>
10790 * Makefile.in (LINKER, LINKER_FLAGS): Define.
10791 (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
10792 (ALL_LINKERFLAGS): Define.
10793 (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
10794 (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
10795 (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
10796 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
10797 (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
10798 $(LINKER_FOR_BUILD).
10799 (build/gcov-iov$(build_exeext)): Likewise.
10801 2009-05-27 Julian Brown <julian@codesourcery.com>
10803 * gcse.c (target.h): Include.
10804 (can_assign_to_reg_without_clobbers_p): Check that the target allows
10805 copy of argument to a pseudo register.
10807 2009-05-27 Diego Novillo <dnovillo@google.com>
10809 * tree-ssa-live.c (dump_scope_block): Document arguments.
10810 (dump_scope_blocks): Document.
10811 (debug_scope_blocks): New.
10812 * tree-flow.h (debug_scope_blocks): Declare.
10814 2009-05-21 Denis Chertykov <denisc@overta.ru>
10816 * doc/contrib.texi (Contributors): Add myself to the list.
10818 2009-05-27 Olivier Hainque <hainque@adacore.com>
10820 * expr.c (target_align): New function. Alignment the TARGET of an
10821 assignment may be assume to have.
10822 (highest_pow2_factor_for_target): Use it instead of relying on
10823 immediate tree attributes of TARGET, not necessarily honored when
10824 intermediate bitfields are involved.
10826 2009-05-27 H.J. Lu <hongjiu.lu@intel.com>
10829 * config/i386/driver-i386.c (host_detect_local_cpu): Support
10830 AVX, SSE4, AES, PCLMUL and POPCNT.
10832 2009-05-27 Diego Novillo <dnovillo@google.com>
10834 * tree-pretty-print.c (dump_location): New.
10835 (dump_generic_node): Call it.
10836 Factor code to handle BLOCK nodes ...
10837 (dump_block_node): ... here.
10839 2009-05-27 Rafael Avila de Espindola <espindola@google.com>
10841 * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
10843 * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
10845 * gcc-plugin.h: Include config.h and system.h.
10846 (IN_GCC): Define if not defined.
10848 2009-05-27 Hans-Peter Nilsson <hp@axis.com>
10850 PR middle-end/40249
10851 * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
10854 2009-05-27 Shujing Zhao <pearly.zhao@oracle.com>
10856 * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
10858 * config/m32r/m32r.h: Ditto.
10859 * config/m32r/m32r.md: Ditto.
10860 * config/m32r/predicates.md: Ditto.
10862 2009-05-27 Alexandre Oliva <aoliva@redhat.com>
10864 * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
10866 2009-05-26 Basile Starynkevitch <basile@starynkevitch.net>
10869 (Loading plugins): typo.
10870 (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
10871 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
10872 (Interacting with the GCC Garbage Collector): Added new section.
10873 (Giving information about a plugin): Added new section for
10875 * ggc.h (ggc_register_root_tab): Added declaration.
10876 * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
10877 (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
10878 (register_callback): Improved comment in declaration.
10879 * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
10880 (extra_root_vec) Added static variable for dynamic roots registration.
10881 (ggc_register_root_tab) Added new routine.
10882 (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
10883 PLUGIN_GGC_MARKING event.
10884 * ggc-zone.c: Include plugin.h.
10885 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
10886 * ggc-page.c: Include plugin.h.
10887 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
10888 * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
10889 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
10890 (register_callback): check lack of callbacks for
10891 pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
10892 PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
10893 (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
10894 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
10895 * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
10896 dependency on plugin.h.
10897 (plugin.o): Added dependency on ggc.h...
10899 2009-05-26 Richard Guenther <rguenther@suse.de>
10901 PR middle-end/40248
10903 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
10904 with mismatched comparison modes.
10906 * expr.c (expand_expr_real_1): Expand the operand of a
10907 VIEW_CONVERT_EXPR in its natural mode.
10909 2009-05-26 Ian Lance Taylor <iant@google.com>
10911 * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
10912 (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
10913 (ALL_COMPILERFLAGS): Define.
10914 (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
10915 (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
10916 (collect2$(exeext), collect2.o): Likewise.
10917 (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
10918 (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
10919 ($(out_object_file), mips-tfile, mips-tdump): Likewise.
10920 (libbackend.o, intl.o, cppdefault.o): Likewise.
10921 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
10922 (build/%.o): Use $(COMPILER_FOR_BUILD).
10923 (build/gen%$(build_exeext)): Likewise.
10924 (build/gcov-iov$(build_exeext)): LIkewise.
10925 * config/t-darwin (darwin.o): Use $(COMPILER).
10926 (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
10927 * config/t-sol2 (sol2-c.o): Likewise.
10928 (sol2.o): Likewise.
10929 * config/t-vxworks (vxworks.o): Likewise.
10930 * config/x-darwin (host-darwin.o): Likewise.
10931 * config/x-hpux (host-hpux.o): Likewise.
10932 * config/x-linux (host-linux.o): Likewise.
10933 * config/x-solaris (host-solaris.o): Likewise.
10934 * config/alpha/x-alpha (driver-alpha.o): Likewise.
10935 * config/arm/t-arm (arm-c.o): Likewise.
10936 * config/arm/t-pe (pe.o): Likewise.
10937 * config/arm/t-wince-pe (pe.o): Likewise.
10938 * config/i386/t-cygming (winnt.o): Likewise.
10939 (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
10940 * config/i386/t-cygwin (cygwin1.o): Likewise.
10941 (cygwin2.o): Likewise.
10942 * config/i386/t-i386 (i386-c.o): Likewise.
10943 * config/i386/t-interix (winnt.o): Likewise.
10944 * config/i386/t-netware (netware.o): Likewise.
10945 * config/i386/t-nwld (nwld.o): Likewise.
10946 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
10947 * config/i386/x-i386 (driver-i386.o): Likewise.
10948 * config/i386/x-cygwin (host-cygwin.o): Likewise.
10949 * config/i386/x-mingw32 (host-mingw32.o): Likewise.
10950 * config/ia64/t-ia64 (ia64-c.o): Likewise.
10951 * config/m32c/t-m32c (m32c-pragma.o): Likewise.
10952 * config/mips/x-native (driver-native.o): Likewise.
10953 * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
10954 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
10955 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
10956 * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
10957 * config/score/t-score-elf (score7.o): Likewise.
10958 (score3.o): Likewise.
10959 * config/sh/t-sh (sh-c.o): Likewise.
10960 * config/sh/t-symbian (sh-c.o): Likewise.
10961 (symbian.o): Likewise.
10962 * config/spu/t-spu-elf (spu-c.o): Likewise.
10963 * config/v850/t-v850 (v850-c.o): Likewise.
10964 * config/v850/t-v850e (v850-c.o): Likewise.
10966 2009-05-26 Richard Guenther <rguenther@suse.de>
10968 PR tree-optimization/40122
10969 * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
10970 VECTOR_CSTs if possible.
10971 (fold_gimple_assign): Likewise.
10973 2009-05-26 Richard Guenther <rguenther@suse.de>
10975 PR middle-end/40252
10976 * fold-const.c (fold_binary): Use the correct types for building
10979 2009-05-26 Richard Guenther <rguenther@suse.de>
10981 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
10982 redundant calls to merge_alias_info.
10983 (bump_vector_ptr): Likewise.
10984 * tree-ssa-copy.c (merge_alias_info): Remove.
10985 (replace_exp_1): Remove call to merge_alias_info.
10986 (propagate_tree_value): Likewise.
10987 (fini_copy_prop): Propagate points-to info.
10988 * tree-flow.h (merge_alias_info): Remove.
10990 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
10992 * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
10994 2009-05-25 Jan Hubicka <jh@suse.cz>
10996 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
10997 * cgraph.h (struct inline_summary): New filed self_wize,
10998 size_inlining_benefit, self_time and time_inlining_benefit.
10999 (struct cgraph_global_info): Replace insns by time ans size fields.
11000 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
11001 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
11002 (ipcp_update_callgraph): Do not touch function bodies.
11003 * ipa-inline.c: Include except.h
11004 (MAX_TIME): New constant.
11005 (overall_insns): Remove.
11006 (leaf_node_p): New.
11007 (overall_size, max_benefit): New static variables.
11008 (cgraph_estimate_time_after_inlining): New function.
11009 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
11010 (cgraph_clone_inlined_nodes): Update size.
11011 (cgraph_mark_inline_edge): Update size.
11012 (cgraph_estimate_growth): Use size info.
11013 (cgraph_check_inline_limits): Check size.
11014 (cgraph_default_inline_p): Likewise.
11015 (cgraph_edge_badness): Compute badness based on benefit and size cost.
11016 (cgraph_decide_recursive_inlining): Check size.
11017 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
11019 (cgraph_decide_inlining): Likewise.
11020 (cgraph_decide_inlining_incrementally): Likewise; honor
11021 PARAM_EARLY_INLINING_INSNS.
11022 (likely_eliminated_by_inlining_p): New predicate.
11023 (estimate_function_body_sizes): New function.
11024 (compute_inline_parameters): Use it.
11025 * except.c (must_not_throw_labels): New function.
11026 * except.h (must_not_throw_labels): Declare.
11027 * tree-inline.c (init_inline_once): Kill inlining_weigths
11028 * tree-ssa-structalias.c: Avoid uninitialized warning.
11029 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
11030 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
11031 (PARAM_INLINE_CALL_COST): Remove.
11032 (PARAM_EARLY_INLINING_INSNS): New.
11034 2009-05-25 Richard Guenther <rguenther@suse.de>
11036 PR tree-optimization/36327
11037 * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
11038 callback for reference translation or lookup at the point of may-defs.
11039 * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
11040 * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
11041 for union COMPONENT_REFs.
11042 (vn_reference_lookup_3): New callback. Lookup from memset
11043 and CONSTRUCTOR assignment, translate through struct copies.
11044 (vn_reference_lookup_pieces): Make sure to not free the
11045 passed operands array. Adjust walk_non_aliased_vuses call.
11046 (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
11047 make sure we do not leak memory.
11049 2009-05-25 Richard Guenther <rguenther@suse.de>
11051 * tree-ssa-alias.h (dump_points_to_solution): Declare.
11052 * tree-inline.c (expand_call_inline): Reset the escaped and
11053 callused solutions.
11054 * tree-ssa-structalias.c (pass_build_ealias): New.
11055 * tree-pass.h (pass_build_ealias): Declare.
11056 * passes.c (init_optimization_passes): Add PTA during
11057 early optimizations.
11058 * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
11059 and CALLUSED solutions.
11060 (dump_points_to_solution): New function, split out from ...
11061 (dump_points_to_info_for): ... here.
11062 * tree-parloops.c (parallelize_loops): Reset the escaped and
11063 callused solutions.
11065 2009-05-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11068 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
11069 * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
11071 2009-05-25 Ira Rosen <irar@il.ibm.com>
11073 PR tree-optimization/40238
11074 * tree-vect-stmts.c (vect_init_vector): Insert initialization
11075 statements after basic block's labels.
11076 * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
11077 to free the allocated memory.
11079 2009-05-24 Kaz Kojima <kkojima@gcc.gnu.org>
11081 * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
11082 return address with a USE.
11084 2009-05-24 Richard Guenther <rguenther@suse.de>
11086 PR middle-end/40233
11087 * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
11088 array type from the main variant of the inner type.
11090 2009-05-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11092 * config/vax/vax-protos.h (legitimate_constant_address_p): Change
11093 definition to bool (from int) to un-break build.
11094 (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
11096 2009-05-24 Paolo Bonzini <bonzini@gnu.org>
11098 * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
11099 discard_stmt_changes): Delete.
11100 * tree-ssa-operands.c (scb_stack): Delete.
11101 (init_ssa_operands): Do not initialize it.
11102 (fini_ssa_operands): Do not free it.
11103 (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
11105 * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
11106 update_stmt, remove the others. Fix comments.
11107 * tree-dfa.c (optimize_stack_restore): Likewise.
11108 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
11109 * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
11110 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
11111 * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
11113 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
11114 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
11115 (dom_opt_finalize_block): Likewise, adjusting access to
11117 (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
11118 (stmts_to_rescan): Change item type to gimple.
11119 (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
11121 2009-05-24 Ira Rosen <irar@il.ibm.com>
11123 * doc/passes.texi (Tree-SSA passes): Document SLP pass.
11124 * tree-pass.h (pass_slp_vectorize): New pass.
11125 * params.h (SLP_MAX_INSNS_IN_BB): Define.
11126 * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
11127 * tree-vectorizer.c (timevar.h): Include.
11128 (user_vect_verbosity_level): Declare.
11129 (vect_location): Fix comment.
11130 (vect_set_verbosity_level): Update user_vect_verbosity_level
11131 instead of vect_verbosity_level.
11132 (vect_set_dump_settings): Add an argument. Ignore user defined
11133 verbosity if dump flags require higher level of verbosity. Print to
11134 stderr only for loop vectorization.
11135 (vectorize_loops): Update call to vect_set_dump_settings.
11136 (execute_vect_slp): New function.
11137 (gate_vect_slp): Likewise.
11138 (struct gimple_opt_pass pass_slp_vectorize): New.
11139 * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
11140 access its members.
11141 (vec_info_for_bb): New function.
11142 (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
11143 (VECTORIZATION_ENABLED): New macro.
11144 (SLP_ENABLED, SLP_DISABLED): Likewise.
11145 (vect_is_simple_use): Add bb_vec_info argument.
11146 (new_stmt_vec_info, vect_analyze_data_ref_dependences,
11147 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
11148 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
11149 vect_schedule_slp, vect_analyze_slp): Likewise.
11150 (vect_analyze_stmt): Add slp_tree argument.
11151 (find_bb_location): Declare.
11152 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
11153 * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
11154 (vect_analyze_loop_operations, vect_analyze_loop,
11155 get_initial_def_for_induction, vect_create_epilog_for_reduction,
11156 vect_finalize_reduction, vectorizable_reduction,
11157 vectorizable_live_operation, vect_transform_loop): Likewise.
11158 * tree-data-ref.c (dr_analyze_innermost): Update comment,
11159 skip evolution analysis if analyzing a basic block.
11160 (dr_analyze_indices): Likewise.
11161 (initialize_data_dependence_relation): Skip the test whether the
11162 object is invariant for basic blocks.
11163 (compute_all_dependences): Skip dependence analysis for data
11164 references in basic blocks.
11165 (find_data_references_in_stmt): Don't fail in case of invariant
11166 access in basic block.
11167 (find_data_references_in_bb): New function.
11168 (find_data_references_in_loop): Move code to
11169 find_data_references_in_bb and add a call to it.
11170 (compute_data_dependences_for_bb): New function.
11171 * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
11172 * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
11174 (vect_analyze_data_ref_dependence): Check for interleaving in case of
11175 unknown dependence in basic block and fail in case of dependence in
11177 (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
11178 dependence instances from either loop or basic block vectorization
11180 (vect_compute_data_ref_alignment): Check if it is loop vectorization
11181 before calling nested_in_vect_loop_p.
11182 (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
11183 dependence instances from either loop or basic block vectorization
11185 (vect_verify_datarefs_alignment): Likewise.
11186 (vect_enhance_data_refs_alignment): Adjust function calls.
11187 (vect_analyze_data_refs_alignment): Likewise.
11188 (vect_analyze_group_access): Fix printing. Skip different checks if
11189 DR_STEP is 0. Keep strided stores either in loop or basic block
11190 vectorization data structure. Fix indentation.
11191 (vect_analyze_data_ref_access): Fix comments, allow zero step in
11193 (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
11194 dependence instances from either loop or basic block vectorization
11196 (vect_analyze_data_refs): Update comment. Call
11197 compute_data_dependences_for_bb to analyze basic blocks.
11198 (vect_create_addr_base_for_vector_ref): Check for outer loop only in
11199 case of loop vectorization. In case of basic block vectorization use
11200 data-ref itself as a base.
11201 (vect_create_data_ref_ptr): In case of basic block vectorization:
11202 don't advance the pointer, add new statements before the current
11203 statement. Adjust function calls.
11204 (vect_supportable_dr_alignment): Support only aligned accesses in
11205 basic block vectorization.
11206 * common.opt (ftree-slp-vectorize): New flag.
11207 * tree-vect-patterns.c (widened_name_p): Adjust function calls.
11208 (vect_pattern_recog_1): Likewise.
11209 * tree-vect-stmts.c (process_use): Likewise.
11210 (vect_init_vector): Add new statements in the beginning of the basic
11211 block in case of basic block SLP.
11212 (vect_get_vec_def_for_operand): Adjust function calls.
11213 (vect_finish_stmt_generation): Likewise.
11214 (vectorizable_call): Add assert that it is loop vectorization, adjust
11216 (vectorizable_conversion, vectorizable_assignment): Likewise.
11217 (vectorizable_operation): In case of basic block SLP, take
11218 vectorization factor from statement's type and skip the relevance
11219 check. Adjust function calls.
11220 (vectorizable_type_demotion): Add assert that it is loop
11221 vectorization, adjust function calls.
11222 (vectorizable_type_promotion): Likewise.
11223 (vectorizable_store): Check for outer loop only in case of loop
11224 vectorization. Adjust function calls. For basic blocks, skip the
11225 relevance check and don't advance pointers.
11226 (vectorizable_load): Likewise.
11227 (vectorizable_condition): Add assert that it is loop vectorization,
11228 adjust function calls.
11229 (vect_analyze_stmt): Add argument. In case of basic block SLP, check
11230 that it is not reduction, get vector type, call only supported
11231 functions, skip loop specific parts.
11232 (vect_transform_stmt): Check for outer loop only in case of loop
11234 (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
11235 (vect_is_simple_use): Fix comment, add new argument, fix conditions
11236 for external definition.
11237 * passes.c (pass_slp_vectorize): New pass.
11238 * tree-vect-slp.c (find_bb_location): New function.
11239 (vect_get_and_check_slp_defs): Add argument, adjust function calls,
11240 check for patterns only in loops.
11241 (vect_build_slp_tree): Add argument, adjust function calls, fail in
11242 case of multiple types in basic block SLP.
11243 (vect_mark_slp_stmts_relevant): New function.
11244 (vect_supported_load_permutation_p): Fix comment.
11245 (vect_analyze_slp_instance): Add argument. In case of basic block
11246 SLP, take vectorization factor from statement's type, check that
11247 unrolling factor is 1. Adjust function call. Save SLP instance in
11248 either loop or basic block vectorization structure. Return FALSE,
11250 (vect_analyze_slp): Add argument. Get strided stores groups from
11251 either loop or basic block vectorization structure. Return FALSE
11252 if basic block SLP failed.
11253 (new_bb_vec_info): New function.
11254 (destroy_bb_vec_info, vect_slp_analyze_node_operations,
11255 vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
11256 (vect_schedule_slp): Add argument. Get SLP instances from either
11257 loop or basic block vectorization structure. Set vectorization factor
11258 to be 1 for basic block SLP.
11259 (vect_slp_transform_bb): New function.
11260 * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
11262 2009-05-23 Mark Mitchell <mark@codesourcery.com>
11264 * final.c (shorten_branches): Do not align labels for jump tables.
11265 (final_scan_insn): Use JUMP_TABLE_DATA_P.
11267 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
11269 * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
11270 Remove outdated reference to flow.c and fix nits.
11271 * doc/gccint.texi: Tweak RTL description.
11272 * doc/rtl.texi: Likewise.
11274 2009-05-23 Denis Chertykov <chertykov@gmail.com>
11276 * config/avr/avr.c: Change my email address.
11277 * config/avr/avr.h: Likewise.
11278 * config/avr/avr.md: Likewise.
11279 * config/avr/avr-protos.h: Likewise.
11280 * config/avr/libgcc.S: Likewise.
11282 2009-05-22 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
11284 * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
11285 (spu_split_load, spu_split_store): Change return type to int.
11286 (spu_split_convert): Declare.
11287 * config/spu/predicates.md (spu_mem_operand): Remove.
11288 (spu_mov_operand): Update.
11289 (spu_dest_operand, shiftrt_operator, extend_operator): Define.
11290 * config/spu/spu.c (regno_aligned_for_load): Remove.
11291 (reg_aligned_for_addr, spu_expand_load): Define.
11292 (spu_expand_extv): Reimplement and handle MEM.
11293 (spu_expand_insv): Handle MEM.
11294 (spu_sched_reorder): Handle insn's with length 0.
11295 (spu_legitimate_address_p): Reimplement.
11296 (store_with_one_insn_p): Return TRUE for any mode with size
11297 larger than 16 bytes.
11298 (address_needs_split): Define.
11299 (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
11301 (spu_convert_move): Define.
11302 (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
11303 (spu_split_store): Change all MEM's to TImode.
11304 (spu_init_expanders): Preallocate registers that correspond to
11305 LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
11307 (spu_split_convert): Define.
11308 * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
11309 (_move<mode>, _movdi, _movti): Update predicate and condition.
11310 (load, store): Change to define_split.
11311 (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
11313 (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
11314 (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
11315 define_insn_and_split of lshr<mode>3.
11316 (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
11317 (<v>ashr<mode>3_imm): Define.
11318 (extv, extzv, insv): Allow MEM operands.
11319 (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
11320 shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
11321 sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
11322 (_spu_convert2): Change to define_insn_and_split and remove the
11323 corresponding define_peephole2.
11324 (stack_protect_set, stack_protect_test, stack_protect_test_si):
11325 Change predicates to memory_operand.
11327 2009-05-22 Mark Mitchell <mark@codesourcery.com>
11329 * config/arm/thumb2.md: Add 16-bit multiply instructions.
11331 2009-05-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11333 PR tree-optimization/40219
11334 * tree.c (iterative_hash_expr): Make sure the builtin function is
11335 a normal builtin function and not a front end or back end builtin
11336 before indexing into the built_in_decls array.
11338 2009-05-22 Richard Guenther <rguenther@suse.de>
11340 PR middle-end/38964
11341 * alias.c (write_dependence_p): Do not use TBAA for answering
11342 anti-dependence or output-dependence.
11343 * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
11344 (emit_pointer_definition): Remove.
11345 (emit_alias_warning): Likewise.
11346 (find_what_var_points_to): Remove TBAA pruning code.
11347 (find_what_p_points_to): Likewise. Do not warn about strict-aliasing
11349 (compute_points_to_sets): Remove code computing the set of
11350 dereferenced pointers.
11351 * tree-data-ref.c (dr_may_alias_p): Properly use the split
11352 oracle for querying anti and output dependencies.
11353 * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
11354 if TBAA may be applied.
11355 (refs_anti_dependent_p): New function.
11356 (refs_output_dependent_p): Likewise.
11357 * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
11358 (refs_output_dependent_p): Likewise.
11359 * doc/tree-ssa.texi (Memory model): New section.
11360 * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
11361 * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
11362 * cfgexpand.c (expand_gimple_basic_block): Do not handle
11363 GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
11364 * expr.c (expand_expr_real_1): Likewise.
11365 * gimple-low.c (lower_stmt): Likewise.
11366 * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
11367 (dump_gimple_cdt): Remove.
11368 * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
11369 (gimple_size): Likewise.
11370 (walk_gimple_op): Likewise.
11371 (is_gimple_stmt): Likewise.
11372 (walk_stmt_load_store_addr_ops): Likewise.
11373 (gimple_build_cdt): Remove.
11374 * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
11375 * gimple.h (gimple_cdt_new_type): Remove.
11376 (gimple_cdt_new_type_ptr): Likewise.
11377 (gimple_cdt_set_new_type): Likewise.
11378 (gimple_cdt_location): Likewise.
11379 (gimple_cdt_location_ptr): Likewise.
11380 (gimple_cdt_set_location): Likewise.
11381 * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
11382 * tree-cfg.c (remove_useless_stmts_1): Do not handle
11383 GIMPLE_CHANGE_DYNAMIC_TYPE.
11384 (verify_types_in_gimple_stmt): Likewise.
11385 * tree-inline.c (estimate_num_insns): Likewise.
11386 (expand_call_inline): Do not copy DECL_NO_TBAA_P.
11387 (copy_decl_to_var): Likewise.
11388 (copy_result_decl_to_var): Likewise.
11389 * tree-pretty-print.c (dump_generic_node): Do not handle
11390 CHANGE_DYNAMIC_TYPE_EXPR.
11391 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
11392 * tree-ssa-operands.c (get_expr_operands): Likewise.
11393 * tree-ssa-structalias.c (struct variable_info): Remove
11394 no_tbaa_pruning member.
11395 (new_var_info): Do not set it based on DECL_NO_TBAA_P.
11396 (unify_nodes): Do not copy it.
11397 (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
11398 (dump_solution_for_var): Do not dump no_tbaa_pruning state.
11399 (set_uids_in_ptset): Do not check it.
11400 (find_what_var_points_to): Likewise.
11401 (compute_tbaa_pruning): Remove.
11402 (compute_points_to_sets): Do not call it.
11403 * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
11404 * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
11405 * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
11406 (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
11407 (DECL_NO_TBAA_P): Likewise.
11408 (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
11409 * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
11410 (expand_omp_atomic_pipeline): Do not set it.
11411 * print-tree.c (print_node): Do not dump it.
11412 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
11415 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
11418 * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
11421 2009-05-22 Mark Mitchell <mark@codesourcery.com>
11423 * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
11426 2009-05-22 Ben Elliston <bje@au.ibm.com>
11428 * Makefile.in (bversion.h, s-bversion): New targets.
11429 (TOPLEV_H): Add bversion.h.
11430 * toplev.h: Include "bversion.h".
11431 (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
11432 the __format__ attribute only if compiling with the same version
11433 of GCC as the sources (the "build version").
11435 2009-05-22 Ben Elliston <bje@au.ibm.com>
11437 * c-format.c (handle_format_attribute): Fix comment typo.
11439 2009-05-21 Steve Ellcey <sje@cup.hp.com>
11442 * config/ia64/ia64.opt (mfused-madd): New.
11443 * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
11444 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
11445 * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
11446 madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
11447 nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
11448 msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
11449 nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
11450 * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
11451 instruction if !TARGET_FUSED_MADD.
11452 (fpma, fpms): Remove colon from name.
11454 2009-05-22 Richard Guenther <rguenther@suse.de>
11456 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
11457 TMR_ORIGINAL. Always either record TMR_SYMBOL or TMR_BASE.
11458 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
11460 (create_expression_by_pieces): Only convert if necessary.
11461 * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
11462 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
11464 2009-05-21 Adam Nemet <anemet@caviumnetworks.com>
11466 * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
11467 regular pattern from a template and rename it ...
11468 (*extzv_truncsi_exts): ... to this.
11470 2009-05-21 Richard Guenther <rguenther@suse.de>
11472 * cgraph.h (struct cgraph_node): Remove inline_decl member.
11473 * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
11474 (cgraph_default_inline_p): Likewise.
11475 (cgraph_decide_inlining_incrementally): Likewise.
11477 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
11478 Uros Bizjak <ubizjak@gmail.com>
11480 * config/i386/cpuid.h (bit_MOVBE): New.
11482 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
11484 * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
11485 (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
11486 (ix86_handle_option): Handle OPT_mmovbe.
11487 (ix86_target_string): Add -mmovbe.
11488 (pta_flags): Add PTA_MOVBE.
11489 (processor_alias_table): Add PTA_MOVBE to "atom".
11490 (override_options): Handle PTA_MOVBE.
11492 * config/i386/i386.h (TARGET_MOVBE): New.
11494 * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
11495 (*bswapsi_movbe): New.
11496 (*bswapdi_movbe): Likewise.
11497 (bswapdi2): Renamed to ...
11498 (*bswapdi_1): This.
11499 (bswapdi2): New expander.
11501 * config/i386/i386.opt (mmovbe): New.
11503 * doc/invoke.texi: Document -mmovbe.
11505 2009-05-21 Taras Glek <tglek@mozilla.com>
11507 * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
11508 * gcc-plugin.h (plugin_init): Updated signature.
11509 * gcc-plugin.h (plugin_name_args): Moved to this header.
11510 * doc/plugins.texi (plugin_init): Updated documention to reflect
11512 * doc/plugins.texi (plugin_name_args): Added to documention.
11514 2009-05-21 Mark Mitchell <mark@codesourcery.com>
11516 * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
11517 (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
11519 2009-05-21 Shujing Zhao <pearly.zhao@oracle.com>
11521 * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
11522 JUMP_TABLE_DATA_P predicates where applicable.
11523 * config/i386/predicates.md: Ditto.
11524 * config/i386/sse.md: Ditto.
11526 2009-05-21 Jakub Jelinek <jakub@redhat.com>
11528 * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
11529 operand2 -128 override length_immediate attribute to 1.
11530 * config/i386/predicates.md (constm128_operand): New predicate.
11532 * config/i386/i386.c (memory_address_length): Handle %r12
11533 the same as %rsp and %r13 the same as %rbp. For %rsp and %rbp
11535 (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
11536 mode look through optional ZERO_EXTEND and SUBREG.
11537 * config/i386/i386.md (R12_REG): New define_constant.
11538 (prefix_data16): For sse unit set also for MODE_TI insns.
11539 (prefix_rex): For -m32 always return 0. For TYPE_IMOVX
11540 insns set if operand 1 is ext_QIreg_operand.
11541 (modrm): For TYPE_IMOV clear only if not MODE_DI. For
11542 TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
11544 (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
11545 mode from MODE_DI to MODE_SI.
11546 (movdi_1_rex64): Override modrm and length_immediate attributes
11547 only for movabs (TYPE_IMOV, alternative 2).
11548 (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
11549 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
11550 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
11551 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
11552 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
11553 prefix_rex attribute if DImode.
11554 (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
11555 *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
11556 *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
11557 *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
11558 attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
11559 (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
11560 Likewise. For TYPE_IMOV clear length_immediate attribute.
11561 (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
11562 *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
11563 *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
11564 *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
11565 *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
11566 or one operand TYPE_ISHIFT.
11567 (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
11568 *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
11569 *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
11570 *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
11571 *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
11572 *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
11573 *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
11574 *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
11575 *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
11576 *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
11577 *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
11578 *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
11579 *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
11580 *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
11581 *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
11582 *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
11583 *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
11584 set mode attribute, don't override length attribute.
11585 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
11587 (return_internal_long): Set length attribute to 2 instead of 1.
11588 (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
11589 *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
11590 prefix_rex attribute.
11591 * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
11593 (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
11595 2009-05-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11597 * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
11599 2009-05-20 Ian Lance Taylor <iant@google.com>
11601 * tree.c (build_tree_list_vec_stat): New function.
11602 (ctor_to_vec): New function.
11603 (build_nt_call_vec): New function.
11604 (build_call_array): Change args to be a const pointer.
11605 (build_call_vec): New function.
11606 * tree.h (build_nt_call_vec): Declare.
11607 (build_tree_list_vec_stat): Declare.
11608 (build_tree_list_vec): Define.
11609 (build_call_array): Update declaration.
11610 (build_call_vec): Declare.
11611 (ctor_to_vec): Declare.
11612 * c-common.c (tree_vector_cache): New static variable.
11613 (make_tree_vector): New function.
11614 (release_tree_vector): New function.
11615 (make_tree_vector_single): New function.
11616 (make_tree_vector_copy): New function.
11617 * c-common.h (tree_vector_cache, make_tree_vector): Declare.
11618 (make_tree_vector_single, make_tree_vector_copy): Declare.
11619 * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
11620 (c_parser_expr_list): Don't manage cache here, instead call
11622 (c_parser_release_expr_list): Remove static function.
11623 (c_parser_vec_to_tree_list): Remove static function.
11624 (c_parser_attributes): Call build_tree_list_vec instead of
11625 c_parser_vec_to_tree_list. Call release_tree_vector instead of
11626 c_parser_release_expr_list.
11627 (c_parser_postfix_expression_after_primary): Likewise.
11628 (c_parser_objc_keywordexpr): Likewise.
11630 2009-05-20 Sandra Loosemore <sandra@codesourcery.com>
11632 * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
11633 TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
11634 TARGET_CONVERT_TO_TYPE.
11635 * hooks.c (hook_tree_const_tree_null): Define.
11636 * hooks.h (hook_tree_const_tree_null): Declare.
11637 * target.h (struct gcc_target): Add invalid_parameter_type,
11638 invalid_return_type, promoted_type, and convert_to_type fields.
11639 * target-def.h: (TARGET_INVALID_PARAMETER_TYPE): Define.
11640 (TARGET_INVALID_RETURN_TYPE): Define.
11641 (TARGET_PROMOTED_TYPE): Define.
11642 (TARGET_CONVERT_TO_TYPE): Define.
11643 (TARGET_INITIALIZER): Update for new fields.
11644 * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
11645 (grokparms): Check targetm.invalid_parameter_type.
11646 * c-typeck.c (default_conversion): Check targetm.promoted_type.
11647 * c-convert.c (convert): Check targetm.convert_to_type.
11649 2009-05-20 Adam Nemet <anemet@caviumnetworks.com>
11651 * config/mips/mips.md (*extenddi_truncate<mode>,
11652 *extendsi_truncate<mode>): Emit exts if supported. Add attribute
11654 (*extendhi_truncateqi): New define_insn_and_sptit.
11656 2009-05-20 Jakub Jelinek <jakub@redhat.com>
11658 PR middle-end/40204
11659 * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
11660 recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
11662 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
11664 * fold-const.c (build_fold_addr_expr_with_type): Take the address of
11665 the operand of VIEW_CONVERT_EXPR.
11667 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
11669 * config/i386/driver-i386.c (host_detect_local_cpu): Check
11670 extended family and model for Intel processors. Support Intel Atom.
11672 2009-05-20 Olivier Hainque <hainque@adacore.com>
11674 * gstab.h (stab_code_type): Define, to be used instead of the
11675 __stab_debug_code enum, made anonymous. Add 2009 to the copyright
11677 * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
11678 occurrences by stab_code_type.
11679 * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
11681 2009-05-20 Martin Jambor <mjambor@suse.cz>
11683 * tree-flow.h (insert_edge_copies_seq): Undeclare.
11684 (sra_insert_before): Likewise.
11685 (sra_insert_after): Likewise.
11686 (sra_init_cache): Likewise.
11687 (sra_type_can_be_decomposed_p): Likewise.
11688 * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
11689 * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
11690 (sra_insert_before): Likewise.
11691 (sra_insert_after): Likewise.
11692 (sra_init_cache): Likewise.
11693 (insert_edge_copies_seq): Made static and moved upwards.
11695 * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
11698 * tree-flow-inline.h (contains_view_convert_expr_p): New function.
11700 * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
11701 (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
11704 2009-05-20 Richard Guenther <rguenther@suse.de>
11706 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
11707 with mismatched comparison modes.
11709 2009-05-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11711 * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
11712 (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
11713 * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
11714 with shifts for Thumb2.
11715 (orsi_notsi): New for orn.
11716 (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
11717 (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
11718 * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
11719 (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
11720 Don't invert remainder for IOR.
11722 2009-05-19 Zdenek Dvorak <ook@ucw.cz>
11724 PR tree-optimization/40087
11725 * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
11726 number_of_iterations_ne): Rename never_infinite argument.
11727 (number_of_iterations_lt_to_ne, number_of_iterations_lt,
11728 number_of_iterations_le): Handle pointer-type ivs when
11729 exit_must_be_taken is false.
11730 (number_of_iterations_cond): Do not always assume that
11731 exit_must_be_taken if the control variable is a pointer.
11733 2009-05-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
11735 * c-typeck.c (build_binary_op): Allow % on integal vectors.
11736 * doc/extend.texi (Vector Extension): Document that % is allowed too.
11738 2009-05-19 H.J. Lu <hongjiu.lu@intel.com>
11740 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
11741 ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
11743 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
11746 * c.opt (Wlogical-op): Disabled by default.
11747 * c-opt (c_common_post_options): Do not enable Wlogical-op with
11749 * doc/invoke.texi (Wlogical-op): Likewise.
11751 2009-05-19 Eric Botcazou <ebotcazou@adacore.com>
11753 * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
11755 <PLUS_EXPR>: Strip useless type conversions instead of type nops.
11756 Propagate the type of the first operand.
11757 <ASSERT_EXPR>: Simplify.
11758 (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
11759 Rewrite using the RHS code as discriminant.
11760 <NOP_EXPR>: Turn into CASE_CONVERT.
11761 <PLUS_EXPR>: Propagate the type of the first operand.
11763 2009-05-19 Steve Ellcey <sje@cup.hp.com>
11765 * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
11766 (ia64_dconst_0_375): New.
11767 * config/ia64/ia64.c (ia64_override_options): Remove
11768 -minline-sqrt-min-latency warning.
11769 (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
11770 (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
11771 * config/ia64/ia64.md (*sqrt_approx): Remove.
11772 (sqrtsf2): Remove #if 0.
11773 (sqrtsf2_internal_thr): Rewrite and move to div.md.
11774 (sqrtdf): Remove assert.
11775 (sqrtdf2_internal_thr): Rewrite and move to div.md.
11776 (sqrtxf2): Remove #if 0.
11777 (sqrtxf2_internal_thr): Rewrite and move to div.md.
11778 * div.md (sqrt_approx_rf): New.
11779 (sqrtsf2_internal_thr): New implementation.
11780 (sqrtsf2_internal_lat): New.
11781 (sqrtdf2_internal_thr: New implementation.
11782 (sqrtxf2_internal): New implementation.
11784 2009-05-19 Francois-Xavier Coudert <fxcoudert@gmail.com>
11785 Hans-Peter Nilsson <hp@axis.com>
11787 * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
11788 (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
11789 (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
11790 (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
11791 (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
11792 (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
11793 (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
11794 (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
11795 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
11796 (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
11797 * c-common.c: ...from here.
11799 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
11801 * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
11803 2009-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11805 * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
11807 2009-05-19 Ben Elliston <bje@au.ibm.com>
11809 * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
11810 assignments with memcpy calls.
11811 (add_fdes): Likewise.
11812 (binary_search_unencoded_fdes): Likewise.
11813 (linear_search_fdes): Eliminate type puns.
11815 2009-05-19 Richard Guenther <rguenther@suse.de>
11817 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
11818 not falsely claim to have propagated into all uses.
11820 2009-05-19 Ben Elliston <bje@au.ibm.com>
11822 * doc/invoke.texi (C Dialect Options): Update OpenMP specification
11825 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
11827 * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
11828 * config/sh/sh.c (sh_legitimate_address_p): Make static.
11829 (TARGET_LEGITIMATE_ADDRESS_P): New.
11830 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
11831 * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
11833 2009-05-18 Dodji Seketeli <dodji@redhat.com>
11836 * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
11837 child of the containing namespace's DIE.
11839 2009-05-18 Adam Nemet <anemet@caviumnetworks.com>
11841 * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
11842 *zero_extendhi_truncqi): Move after the zero_extend patterns.
11843 (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
11846 2009-05-18 H.J. Lu <hongjiu.lu@intel.com>
11849 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
11850 gen_align with gen_pad.
11851 (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
11852 #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
11854 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
11855 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
11857 * config/i386/i386.md (align): Renamed to ...
11858 (pad): This. Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
11859 ASM_OUTPUT_MAX_SKIP_PAD.
11861 2009-05-18 Andreas Schwab <schwab@linux-m68k.org>
11863 * config.gcc: Fix variable syntax.
11866 * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
11867 before calling exact_log2.
11868 (output_iorsi3): Likewise.
11869 (output_xorsi3): Likewise.
11871 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
11873 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
11874 for the none zero constant operand except for EQ and NE
11875 comprisons even when the first operand is R0.
11877 2009-05-18 Andreas Krebbel <krebbel1@de.ibm.com>
11879 * config/s390/2064.md: Remove trailing whitespaces.
11880 * config/s390/2084.md: Likewise.
11881 * config/s390/constraints.md: Likewise.
11882 * config/s390/fixdfdi.h: Likewise.
11883 * config/s390/libgcc-glibc.ver: Likewise.
11884 * config/s390/s390-modes.def: Likewise.
11885 * config/s390/s390-protos.h: Likewise.
11886 * config/s390/s390.c: Likewise.
11887 * config/s390/s390.h: Likewise.
11888 * config/s390/s390.md: Likewise.
11889 * config/s390/tpf-unwind.h: Likewise.
11891 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
11893 * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
11895 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
11898 * configure.ac (m68k-*-*): Check if binutils support TLS.
11899 * configure: Regenerate.
11900 * config/m68k/predicates.md (symbolic_operand): Extend comment.
11901 * config/m68k/constraints.md (Cu): New constraint.
11902 * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
11903 (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
11904 (movsi): Handle TLS symbols.
11905 (addsi3_5200): Handle XTLS symbols, indent.
11906 * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
11907 (m68k_tls_reference_p): Declare.
11908 (m68k_legitimize_address): Declare.
11909 (m68k_unwrap_symbol): Declare.
11910 * config/m68k/m68k.opt (mxtls): New option.
11911 * config/m68k/m68k.c (ggc.h): Include.
11912 (m68k_output_dwarf_dtprel): Implement hook.
11913 (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
11914 (m68k_expand_prologue): Load GOT pointer when function needs it.
11915 (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
11916 (m68k_legitimate_constant_address_p): Same.
11917 (m68k_decompose_address): Handle TLS references.
11918 (m68k_get_gp): New static function.
11919 (enum m68k_reloc): New contants.
11920 (TLS_RELOC_P): New macro.
11921 (m68k_wrap_symbol): New static function.
11922 (m68k_unwrap_symbol): New function.
11923 (m68k_final_prescan_insn_1): New static function.
11924 (m68k_final_prescan_insn): New function.
11925 (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
11927 (legitimize_pic_address): Handle TLS references..
11928 (m68k_tls_get_addr, m68k_get_tls_get_addr)
11929 (m68k_libcall_value_in_a0_p)
11930 (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
11931 (m68k_call_m68k_read_tp): Helper variables and functions for ...
11932 (m68k_legitimize_tls_address): Handle TLS references.
11933 (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
11935 (m68k_legitimize_address): Handle TLS symbols.
11936 (m68k_get_reloc_decoration): New static function.
11937 (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
11939 (m68k_output_dwarf_dtprel): Implement hook.
11940 (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
11941 (m68k_libcall_value): Return result in A0 instead of D0 when asked by
11942 m68k_call_* routines.
11943 (sched_attr_op_type): Handle TLS symbols.
11944 (gt-m68k.h): Include.
11945 * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
11946 (LEGITIMATE_PIC_OPERAND_P): Support TLS.
11948 2009-05-18 Martin Jambor <mjambor@suse.cz>
11950 * ipa-prop.c (ipa_check_stmt_modifications): Removed.
11951 (visit_store_addr_for_mod_analysis): New function.
11952 (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
11953 (determine_cst_member_ptr): Use gimple_assign_single_p.
11954 (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
11955 (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
11956 operands. Don't check number of operands of a NOP_EXPR.
11958 2009-05-18 Eric Fisher <joefoxreal@gmail.com>
11960 * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
11962 2009-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
11965 * c-common.c (warn_logical_operator): Don't warn if one of
11966 expression isn't always true or false.
11968 2009-05-17 Kai Tietz <kai.tietz@onevision.com>
11970 * config/i386/biarch32.h: New file.
11971 * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
11973 2009-05-17 Adam Nemet <anemet@caviumnetworks.com>
11975 * config/mips/mips.md (*zero_extend<mode>_trunchi,
11976 *zero_extend<mode>_truncqi): Merge these into ...
11977 (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
11978 Name the pattern following this as *zero_extendhi_truncqi.
11980 2009-05-16 Brad Lucier <lucier@math.purdue.edu>
11982 PR middle-end/39301
11983 * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
11984 * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
11985 (output_info): Make field HOST_WIDEST_INT.
11986 (print_statistics): Use HOST_WIDEST_INT_PRINT.
11987 (dump_bitmat_statistics): Same.
11989 2009-05-16 Francois-Xavier Coudert <fxcoudert@gmail.com>
11991 * config.gcc (use_gcc_stdint): Set to wrap.
11992 * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
11993 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
11994 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
11995 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
11996 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
11997 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
11998 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
11999 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
12001 2009-05-16 Joseph Myers <joseph@codesourcery.com>
12003 * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
12005 * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
12006 Move definitions earlier.
12007 (OPT_ARCH64, OPT_ARCH32): Define.
12008 (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
12011 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
12014 * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
12017 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
12019 * arm.md (movdi2): Copy non-reg values to DImode registers.
12021 2009-05-16 Jakub Jelinek <jakub@redhat.com>
12024 * final.c (label_to_max_skip): New function.
12025 (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
12026 CODE_LABEL_NUMBER <= max_labelno.
12027 * output.h (label_to_max_skip): New prototype.
12028 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
12029 (ix86_avoid_jump_mispredicts): ... this. Don't define if
12030 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined. Update comment.
12031 Handle CODE_LABELs with >= 16 byte alignment or with
12032 max_skip == (1 << align) - 1.
12033 (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
12034 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
12037 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
12038 .p2align 3 if MAX_SKIP is smaller than 7.
12039 * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
12041 2009-05-15 Ian Lance Taylor <iant@google.com>
12043 * alias.c (struct alias_set_entry_d): Rename from struct
12044 alias_set_entry. Change all uses.
12045 * except.c (struct call_site_record_d): Rename from struct
12046 call_site_record. Change all uses.
12047 * except.h (struct eh_region_d): Rename from struct eh_region.
12049 * gcse.c (struct hash_table_d): Rename from struct hash_table.
12051 * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
12052 ivtype_map_elt. Change all uses.
12053 (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
12055 (struct ifsese_d): Rename fromstruct ifsese. Change all uses.
12056 * graphite.h (struct name_tree_d): Rename from struct name_tree.
12058 (struct sese_d): Rename from struct sese. Change all uses.
12059 * omega.h (struct eqn_d): Rename from struct eqn. Change all uses.
12060 (struct omega_pb_d): Rename from struct omega_pb. Change all uses.
12061 * optabs.h (struct optab_d): Rename from struct optab. Change all
12063 (struct convert_optab_d): Rename from struct convert_optab.
12065 * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
12066 ipa_opt_pass. Change all uses.
12067 * tree-predcom.c (struct dref_d): Rename from struct dref. Change
12070 * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
12071 defined as a typedef.
12072 (grokdeclarator): If -Wc++-compat, warn if a typedef is already
12075 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
12078 * fold-const.c (make_range,build_range_check,merge_ranges): Move
12080 (merge_ranges): Returns bool.
12081 * tree.h (make_range): .. to here.
12082 (build_range_check): Likewise.
12083 (merge_ranges): Likewise. Renamed from merge_ranges.
12084 * c-typeck.c (parser_build_binary_op): Update calls to
12085 warn_logical_operator.
12086 * c-common.c (warn_logical_operator): Add new warning.
12087 * c-common.h (warn_logical_operator): Update declaration.
12089 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
12091 * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
12093 2009-05-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12095 * doc/install.texi: Document MPC requirements, flags etc.
12097 * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
12098 (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
12099 Evaluate constant arguments.
12100 (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
12101 (fold_builtin_1): Likewise, also evaluate constant arguments.
12102 Remove superfluous break.
12103 (do_mpc_ckconv): New.
12104 * real.h: Include mpc.h.
12105 * toplev.c (print_version): Output MPC version info if available.
12107 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
12109 * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
12111 2009-05-15 H.J. Lu <hongjiu.lu@intel.com>
12113 * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
12116 2009-05-15 Jan Hubicka <jh@suse.cz>
12118 * doc/invoke.texi (max-early-inliner-iterations): New flag.
12119 * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
12120 (try_inline): Fix return value.
12121 (cgraph_decide_inlining_incrementally): Honor new value.
12122 (cgraph_early_inlining): Handle indirect inlining.
12123 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
12125 2009-05-15 Jan Hubicka <jh@suse.cz>
12127 * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
12128 * cgraphunit.c (cgraph_finalize_function): Set it.
12129 (cgraph_expand_function): Use it.
12131 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
12133 * real.c (encode_ieee_half): Define.
12134 (decode_ieee_half): Define.
12135 (ieee_half_format): Define.
12136 (arm_half_format): Define.
12137 * real.h (ieee_half_format): Declare.
12138 (arm_half_format): Declare.
12140 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
12142 * optabs.c (prepare_float_lib_cmp): Test that the comparison,
12143 swapped, and reversed optabs exist before trying to use them.
12145 2009-05-15 Paul Brook <paul@codesourcery.com>
12146 Sandra Loosemore <sandra@codesourcery.com>
12148 * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
12149 loads. Allow PRE_DEC.
12150 (output_move_neon): Handle PRE_DEC.
12151 (arm_print_operand): Add 'A' for neon structure loads.
12152 * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
12153 * config/arm/neon.md (neon_mov): Update comment.
12154 * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
12156 (Um): New constraint.
12158 2009-05-15 Jan Hubicka <jh@suse.cz>
12160 Revert the following patch until testsuite fallout is fixed:
12161 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
12162 * cgraph.h (struct inline_summary): New filed self_wize,
12163 size_inlining_benefit, self_time and time_inlining_benefit.
12164 (struct cgraph_global_info): Replace insns by time ans size fields.
12165 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
12166 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
12167 (ipcp_update_callgraph): Do not touch function bodies.
12168 * ipa-inline.c: Include except.h
12169 (MAX_TIME): New constant.
12170 (overall_insns): Remove
12171 (overall_size, max_benefit): New static variables.
12172 (cgraph_estimate_time_after_inlining): New function.
12173 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
12174 (cgraph_clone_inlined_nodes): Update size.
12175 (cgraph_mark_inline_edge): Update size.
12176 (cgraph_estimate_growth): Use size info.
12177 (cgraph_check_inline_limits): Check size.
12178 (cgraph_default_inline_p): Likewise.
12179 (cgraph_edge_badness): Compute badness based on benefit and size cost.
12180 (cgraph_decide_recursive_inlining): Check size.
12181 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
12183 (cgraph_decide_inlining): Likewise.
12184 (cgraph_decide_inlining_incrementally): Likewise; honor
12185 PARAM_EARLY_INLINING_INSNS.
12186 (likely_eliminated_by_inlining_p): New predicate.
12187 (estimate_function_body_sizes): New function.
12188 (compute_inline_parameters): Use it.
12189 * except.c (must_not_throw_labels): New function.
12190 * except.h (must_not_throw_labels): Declare.
12191 * tree-inline.c (init_inline_once): Kill inlining_weigths
12192 * tree-ssa-structalias.c: Avoid uninitialized warning.
12193 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
12194 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
12195 (PARAM_INLINE_CALL_COST): Remove.
12196 (PARAM_EARLY_INLINING_INSNS): New.
12198 2009-05-15 Richard Guenther <rguenther@suse.de>
12200 * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
12201 not TODO_update_ssa.
12203 2009-05-15 Richard Guenther <rguenther@suse.de>
12205 PR tree-optimization/39999
12206 * gimple.h (gimple_expr_type): Use the expression type looking
12207 through useless conversions.
12208 * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
12209 (vn_nary_op_insert_stmt): Likewise.
12210 (simplify_binary_expression): Likewise.
12212 2009-05-15 Richard Guenther <rguenther@suse.de>
12214 * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
12215 New options, enabled by default.
12216 * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
12218 * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
12219 * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
12220 * tree-ssa-structalias.c (gate_tree_pta): New function.
12221 (pass_build_alias): Use it.
12223 2009-05-15 Joseph Myers <joseph@codesourcery.com>
12225 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
12226 recurse on an invariant address if a conversion from a pointer
12227 type to a wider integer type is involved.
12229 2009-05-15 Jan Hubicka <jh@suse.cz>
12231 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
12232 * cgraph.h (struct inline_summary): New filed self_wize,
12233 size_inlining_benefit, self_time and time_inlining_benefit.
12234 (struct cgraph_global_info): Replace insns by time ans size fields.
12235 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
12236 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
12237 (ipcp_update_callgraph): Do not touch function bodies.
12238 * ipa-inline.c: Include except.h
12239 (MAX_TIME): New constant.
12240 (overall_insns): Remove
12241 (overall_size, max_benefit): New static variables.
12242 (cgraph_estimate_time_after_inlining): New function.
12243 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
12244 (cgraph_clone_inlined_nodes): Update size.
12245 (cgraph_mark_inline_edge): Update size.
12246 (cgraph_estimate_growth): Use size info.
12247 (cgraph_check_inline_limits): Check size.
12248 (cgraph_default_inline_p): Likewise.
12249 (cgraph_edge_badness): Compute badness based on benefit and size cost.
12250 (cgraph_decide_recursive_inlining): Check size.
12251 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
12253 (cgraph_decide_inlining): Likewise.
12254 (cgraph_decide_inlining_incrementally): Likewise; honor
12255 PARAM_EARLY_INLINING_INSNS.
12256 (likely_eliminated_by_inlining_p): New predicate.
12257 (estimate_function_body_sizes): New function.
12258 (compute_inline_parameters): Use it.
12259 * except.c (must_not_throw_labels): New function.
12260 * except.h (must_not_throw_labels): Declare.
12261 * tree-inline.c (init_inline_once): Kill inlining_weigths
12262 * tree-ssa-structalias.c: Avoid uninitialized warning.
12263 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
12264 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
12265 (PARAM_INLINE_CALL_COST): Remove.
12266 (PARAM_EARLY_INLINING_INSNS): New.
12267 doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
12268 (inline-call-cost): Remove.
12269 (early-inlining-insns): New.
12271 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
12273 * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters. Use them
12275 (print_int_cst_bounds_in_octal_p): Likewise.
12276 (dbxout_type): Adjust calls to above functions. Be prepared to deal
12278 * dwarf2out.c (base_type_die): Likewise.
12279 (is_subrange_type): Delete.
12280 (subrange_type_die): Add LOW and HIGH parameters. Use them for bounds.
12281 (modified_type_die): Call subrange_type_for_debug_p on subtypes.
12282 * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
12283 if the destination type is boolean.
12284 (build_range_check): Do not special-case subtypes.
12285 (fold_sign_changed_comparison): Likewise.
12286 (fold_unary): Likewise.
12287 * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
12288 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
12289 * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
12290 * tree.c (subrange_type_for_debug_p): New predicate based on the
12291 former is_subrange_type.
12292 * tree.h (subrange_type_for_debug_p): Declare.
12293 * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
12294 (convert_affine_scev): Remove call to above function.
12295 (chrec_convert_aggressive): Likewise.
12296 * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
12297 false for conversions involving subtypes.
12298 * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
12299 (vrp_val_min): Likewise.
12300 (needs_overflow_infinity): Likewise.
12301 (extract_range_from_unary_expr): Likewise.
12303 2009-05-15 Paolo Bonzini <bonzini@gnu.org>
12305 * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
12306 * config/frv/frv.c: Likewise.
12307 * config/s390/s390.c: Likewise.
12308 * config/sparc/sparc.h: Likewise.
12309 * config/i386/i386.h: Likewise.
12310 * config/i386/i386.c: Likewise.
12311 * config/crx/crx.c: Likewise.
12312 * config/m68hc11/m68hc11.h: Likewise.
12313 * config/iq2000/iq2000.c: Likewise.
12314 * config/mn10300/mn10300.h: Likewise.
12315 * config/mn10300/mn10300.c: Likewise.
12316 * config/m68k/m68k.c: Likewise.
12317 * config/rs6000/rs6000.c: Likewise.
12318 * config/rs6000/xcoff.h: Likewise.
12319 * config/rs6000/linux64.h: Likewise.
12320 * config/rs6000/sysv4.h: Likewise.
12321 * config/score/score3.c: Likewise.
12322 * config/score/score7.c: Likewise.
12323 * config/score/score.c: Likewise.
12324 * config/arm/arm.md: Likewise.
12325 * config/mips/mips.c: Likewise.
12326 * config/mips/mips.md: Likewise.
12327 * config/bfin/bfin.h: Likewise.
12328 * config/pa/pa.c: Likewise.
12329 * config/pa/constraints.md: Likewise.
12331 * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
12332 * config/pdp11/pdp11.c (legitimate_address_p): Delete.
12333 * config/pdp11/pdp11.h: Use memory_address_p instead.
12335 2009-05-14 Ian Lance Taylor <iant@google.com>
12337 * passes.c (finish_optimization_passes): Change i to int.
12338 * plugin.c (plugins_active_p): Change event to int.
12339 (dump_active_plugins): Likewise.
12340 * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
12342 * tree.c (tree_range_check_failed): Change c to unsigned int.
12343 (omp_clause_range_check_failed): Likewise.
12344 (build_common_builtin_nodes): Change mode to int. Add cast.
12345 * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
12346 (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
12348 * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
12349 ++ or -- with a variable of enum type.
12351 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
12354 * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
12356 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
12358 * store-motion.c: Do not include params.h
12359 * Makefile.in: Fix dependencies for various files.
12361 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
12363 * auto-inc-dec.c: Fix pass description, remove apparent
12364 accidental duplication.
12366 2009-05-14 H.J. Lu <hongjiu.lu@intel.com>
12368 PR middle-end/40147
12369 * ipa-utils.h (memory_identifier_string): Moved to ...
12370 * tree.h (memory_identifier_string): Here. Add GTY(()).
12372 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
12374 * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
12375 in the former documentation of...
12376 (GO_IF_LEGITIMATE_ADDRESS): ... this.
12377 * ira-conflicts.c (get_dup_num): Use address_operand.
12378 * targhooks.c (default_legitimate_address_p): New.
12379 * targhooks.h (default_legitimate_address_p): New.
12380 * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
12382 * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
12383 * target.h (struct target): Add legitimate_address_p.
12384 * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
12385 (TARGET_INITIALIZER): Include it.
12387 * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12388 * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
12389 * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
12390 (TARGET_LEGITIMATE_ADDRESS_P): New.
12392 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12393 (REG_OK_STRICT_P): Delete.
12394 * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
12395 (frv_legitimate_address_p_1): ... this.
12396 * config/frv/frv.c (frv_legitimate_address_p): Forward to...
12397 (frv_legitimate_address_p_1): ... the renamed old
12398 frv_legitimate_address_p.
12399 * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
12400 (TARGET_LEGITIMATE_ADDRESS_P): New.
12402 * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12403 * config/s390/s390-protos.h (legitimate_address_p): Remove.
12404 * config/s390/s390.c (legitimate_address_p): Rename to...
12405 (s390_legitimate_address_p): ... this, make static.
12406 (legitimize_address): Adjust call.
12407 (TARGET_LEGITIMATE_ADDRESS_P): New.
12408 * config/s390/constraints.md ("e"): Call strict_memory_address_p.
12410 * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12411 * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
12412 * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
12413 (TARGET_LEGITIMATE_ADDRESS_P): New.
12415 * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12416 * config/spu/spu-protos.h (spu_legitimate_address): Remove.
12417 * config/spu/spu.c (spu_legitimate_address): Rename to...
12418 (spu_legitimate_address_p): ... this, make static.
12419 (TARGET_LEGITIMATE_ADDRESS_P): New.
12421 * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12422 * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
12423 * config/sparc/sparc.c (legitimate_address_p): Rename to...
12424 (sparc_legitimate_address_p): ... this, make static and return bool.
12425 (legitimize_address): Adjust call.
12426 (TARGET_LEGITIMATE_ADDRESS_P): New.
12428 * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12429 * config/i386/i386-protos.h (legitimate_address_p): Remove.
12430 * config/i386/i386.c (legitimate_address_p): Rename to...
12431 (ix86_legitimate_address_p): ... this, make static.
12432 (constant_address_p): Move after it, adjust call.
12433 (TARGET_LEGITIMATE_ADDRESS_P): New.
12435 * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12436 * config/avr/avr-protos.h (legitimate_address_p): Remove.
12437 * config/avr/avr.c (legitimate_address_p): Rename to...
12438 (avr_legitimate_address_p): ... this, make static.
12439 (legitimize_address): Adjust call.
12440 (TARGET_LEGITIMATE_ADDRESS_P): New.
12442 * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12443 * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
12444 * config/crx/crx.c (crx_legitimate_address_p): Make static.
12445 (TARGET_LEGITIMATE_ADDRESS_P): New.
12447 * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12448 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
12449 * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
12450 (TARGET_LEGITIMATE_ADDRESS_P): New.
12452 * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12453 * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
12455 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
12457 (TARGET_LEGITIMATE_ADDRESS_P): New.
12459 * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12460 * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
12462 * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
12464 (m68hc11_legitimate_address_p): ... this, make static.
12465 (go_if_legitimate_address_internal): Rename to...
12466 (m68hc11_legitimate_address_p_1): ... this.
12467 (legitimize_address): Adjust call.
12468 (TARGET_LEGITIMATE_ADDRESS_P): New.
12470 * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12471 * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
12472 * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
12473 (TARGET_LEGITIMATE_ADDRESS_P): New.
12475 * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12476 * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
12477 * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
12478 (mn10300_legitimate_address_p): ... this, make static.
12479 (TARGET_LEGITIMATE_ADDRESS_P): New.
12481 * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12482 * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
12483 * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
12484 (TARGET_LEGITIMATE_ADDRESS_P): New.
12486 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12487 (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
12488 (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
12489 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12490 * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
12491 * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
12492 (rs6000_legitimate_address_p): ... this, make static.
12493 (TARGET_LEGITIMATE_ADDRESS_P): New.
12494 (REG_MODE_OK_FOR_BASE_P): Delete.
12495 (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
12497 * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12498 * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
12500 * config/picochip/picochip.c (picochip_legitimate_address_p): Make
12501 static, adjust types.
12502 (TARGET_LEGITIMATE_ADDRESS_P): New.
12504 * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12505 * config/score/score.c (score_address_p): Rename to...
12506 (score_legitimate_address_p): ... this.
12507 (TARGET_LEGITIMATE_ADDRESS_P): New.
12508 * config/score/score3.c (score3_address_p): Rename to...
12509 (score3_legitimate_address_p): ... this.
12510 * config/score/score7.c (score7_address_p): Rename to...
12511 (score7_legitimate_address_p): ... this.
12513 * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
12514 THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
12515 GO_IF_LEGITIMATE_ADDRESS): Delete.
12516 * config/arm/arm-protos.h (thumb1_legitimate_address_p,
12517 thumb2_legitimate_address_p): Delete.
12518 (arm_legitimate_address_p): Rename to...
12519 (arm_legitimate_address_outer_p): ... this.
12520 * config/arm/constraints.md ("Uq"): Adjust call.
12521 * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
12522 * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
12524 (arm_legitimate_address_outer_p): ... this.
12525 (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
12527 (TARGET_LEGITIMATE_ADDRESS_P): New.
12529 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12530 * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
12531 * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
12532 (TARGET_LEGITIMATE_ADDRESS_P): New.
12534 * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12535 * config/vax/vax-protos.h (legitimate_address_p): Remove.
12536 * config/vax/vax.c (legitimate_address_p): Rename to...
12537 (vax_legitimate_address_p): ... this, make static.
12538 (TARGET_LEGITIMATE_ADDRESS_P): New.
12540 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12541 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
12542 * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
12543 (TARGET_LEGITIMATE_ADDRESS_P): New.
12545 * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12546 * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
12547 * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
12548 (mmix_legitimate_address_p): ... this, make static.
12549 (TARGET_LEGITIMATE_ADDRESS_P): New.
12551 * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12552 * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
12553 * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
12554 (TARGET_LEGITIMATE_ADDRESS_P): New.
12556 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
12558 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
12559 of MODE_COMPLEX_INT.
12561 2009-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12563 * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
12564 LCT_NORMAL in function call.
12565 * mips-tdump.c (print_file_desc): Add cast to enum type.
12566 * mips-tfile.c (add_ext_symbol): Add casts to enum types.
12567 (mark_stabs): Add casts to enum types.
12568 (parse_stabs_common): Add casts to enum types.
12570 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
12572 * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
12573 Check for invalid values of LETTER.
12575 2009-05-13 Taras Glek <tglek@mozilla.com>
12577 * attribs.c (register_attribute): moved out attribute registration
12578 into register_attribute.
12579 * doc/plugins.texi: Documented register_attribute and
12581 * gcc-plugin.h: Added forward decl for register_attribute.
12582 * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
12583 * plugin.c (register_callback, invoke_plugin_callbacks): Added
12584 PLUGIN_ATTRIBUTES boilerplate.
12586 2009-05-14 Dave Korn <dave.korn.cygwin@gmail.com>
12588 * config/i386/msformat-c.c (ms_printf_length_specs): Use enumeration
12589 values even in sentinel and empty entries.
12590 (ms_printf_flag_specs): Likewise.
12591 (ms_scanf_flag_specs): Likewise.
12592 (ms_strftime_flag_specs): Likewise.
12593 (ms_print_char_table): Likewise.
12594 (ms_scan_char_table): Likewise.
12595 (ms_time_char_table): Likewise.
12597 2009-05-13 Doug Kwan <dougkwan@google.com>
12599 * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
12601 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
12603 * config/mips/mips.md (store): Add attributes for QI and HI.
12605 (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
12606 (truncdi<mode>2): ... this new pattern.
12608 2009-05-13 Brad Hards <bradh@kde.org>
12610 * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
12612 2009-05-14 Jakub Jelinek <jakub@redhat.com>
12613 Ben Elliston <bje@au.ibm.com>
12615 PR middle-end/40035
12616 * dse.c (check_mem_read_rtx): Guard against width == -1.
12618 2009-05-13 Michael Matz <matz@suse.de>
12620 PR middle-end/39976
12621 * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
12622 (trivially_conflicts_p): New function.
12623 (insert_backedge_copies): Use it.
12625 2009-05-13 Janis Johnson <janis187@us.ibm.com>
12627 * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
12628 (handle_stdc_pragma): Use new enum constant names.
12629 (handle_pragma_float_const_decimal64): Ditto.
12631 2009-05-13 Ian Lance Taylor <iant@google.com>
12633 * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
12636 2009-05-13 Nathan Sidwell <nathan@codesourcery.com>
12638 * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
12639 * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
12641 * config/m68k/m68k.h (FL_UCLINUX): Define.
12643 2009-05-13 Jan Hubicka <jh@suse.cz>
12645 * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
12647 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
12649 * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
12650 unless -fschedule-insns is specified.
12652 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
12655 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
12656 TARGET_EXPAND_CBRANCHDI4.
12657 * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
12658 * config/sh/sh.opt (mexpand-cbranchdi): Remove.
12659 (cmpeqdi): Fix comment.
12661 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
12663 * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
12664 (sh_legitimate_address_p): Likewise.
12665 * config/sh/sh.c (sh_legitimate_index_p): New.
12666 (sh_legitimate_address_p): Likewise.
12667 * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
12668 (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
12669 (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
12670 (MAYBE_BASE_REGISTER_RTX_P): New macro.
12671 (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
12672 (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
12673 (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
12674 (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
12675 (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
12677 2009-05-12 Jan Hubicka <jh@suse.cz>
12679 * tree-inline.c (estimate_operator_cost): Add operands;
12680 when division happens by constant, it is cheap.
12681 (estimate_num_insns): Loads and stores are not having cost of 0;
12682 EH magic stuff is cheap; when computing runtime cost of switch,
12683 use log2 base of amount of its cases; builtin_expect has cost of 0;
12684 compute cost for moving return value of call.
12685 (init_inline_once): Initialize time_based flags.
12686 * tree-inline.h (eni_weights_d): Add time_based flag.
12688 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
12690 * df-core.c: Update head documentation.
12692 2009-05-12 Michael Meissner <meissner@linux.vnet.ibm.com>
12695 * rs6000.c (rs6000_generate_compare): Use op1b instead of
12696 shadowing exisiting variable op1.
12698 2009-05-12 Uros Bizjak <ubizjak@gmail.com>
12701 * config/i386/driver-i386.c (processor_signatures): New enum.
12702 (SIG_GEODE): Move from vendor_signatures to processor_signatures.
12703 (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
12704 processor signature to detect geode processor.
12706 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
12710 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
12712 * optabs.c (prepare_cmp_insn): Temporarily disable test that
12713 causes spurious differences between trunk and cond-optab branch.
12715 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
12717 * dojump.c (compare_from_rtx): Delete.
12718 * expmed.c (emit_store_flag): Only try cstore_optab. Canonicalize
12719 any MODE_CC mode to the cstorecc4 pattern. Use prepare_operand, fail
12720 if the comparison does not satisfy the predicate; test predicates for
12721 operands 2 and 3 of a cstore pattern. Don't try cstore optab
12722 further if one existing pattern fails.
12723 * expr.h (compare_from_rtx): Delete.
12724 (prepare_operand): Declare it.
12725 * optabs.c: Change "lib call" to "libcall" throughout.
12726 (bcc_gen_fctn, setcc_gen_code, trap_rtx,
12727 HAVE_conditional_trap, emit_cmp_insn): Delete.
12728 (can_compare_p): Delete cmp_optab case.
12729 (prepare_float_lib_cmp): Return an rtx and a machine mode.
12730 Accept other parameters by value.
12731 (prepare_operand): Make non-static.
12732 (prepare_cmp_insn): Return an rtx and a machine mode. Accept
12733 other parameters by value. Try to widen operands here based on
12734 an optab_methods argument and looking at cbranch_optab.
12735 (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
12736 loop. Use cbranch_optab directly.
12737 (emit_cmp_and_jump_insns): Fix comment. Adjust call to
12738 prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
12740 (emit_conditional_move, emit_conditional_add): Inline what's needed
12741 of compare_from_rtx, using new prepare_cmp_insn for the rest.
12742 (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
12743 with COMPARE. Move cmov_optab and cstore_optab above
12744 with cbranch_optab, move cmp_optab down with ucmp_optab,
12745 remove tst_otpab. Do not initialize trap_rtx.
12746 (gen_cond_trap): Do it here. Use ctrap_optab. Test predicate
12747 for trap code. Do not check HAVE_conditional_trap. Use
12748 prepare_cmp_insn. Accept no predicate for operand 3.
12749 * optabs.h (OTI_cmp): Mark as used only for libcalls.
12750 (OTI_ctrap, ctrap_optab): New.
12751 (tst_optab): Delete.
12752 (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
12753 * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
12754 with lookup of ctrap_optab.
12755 * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
12757 (ctrap_optab): New.
12759 * combine.c (combine_simplify_rtx, simplify_set): Do not
12760 special case comparing against zero for cc0 machines.
12761 * simplify-rtx.c (simplify_binary_operation_1): Never remove
12762 COMPARE on cc0 machines.
12763 (simplify_relational_operation): Return a new expression when
12764 a COMPARE could be removed.
12765 * final.c (final_scan_insn): Compare cc_status values
12766 against LHS of a (compare FOO (const_int 0)) cc0 source.
12767 Also check if cc_status.value is the full compare.
12769 * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
12770 (cstoreMM4): Document.
12771 (conditional_trap): Document ctrapMM4 instead.
12772 (sync_compare_and_swapMM): Refer to cbranchcc4.
12773 (Dependent Patterns): Eliminate obsolete information referring to
12774 the old jump optimization phase.
12775 (Canonicalization): Include cbranchcc4 case, omit canonicalization
12776 of compares with 0 on cc0 machines.
12777 (Jump Patterns): Refer to MODE_CC jump patterns preferably,
12778 avoiding references to cc0. Remove text about storing operands
12780 * doc/tm.texi (Condition Codes): Include blurb on different
12781 condition code representations, separate into subsections for
12782 CC0, MODE_CC and conditional execution.
12784 * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
12785 alpha_emit_setcc): Accept operands and a machine mode.
12786 * config/alpha/alpha.c (alpha_emit_conditional_branch):
12787 Get code/op0/op1 from operands, use machine mode argument
12788 instead of alpha_compare.fp_p. Emit the branch here.
12789 (alpha_emit_setcc): Likewise, and return boolean.
12790 (alpha_emit_conditional_move): Likewise. Assert that
12791 cmp_op_mode == cmp_mode, and simplify accordingly.
12792 * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
12793 * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
12794 (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
12796 (stack probe test): Use cbranchdi4.
12797 * config/alpha/predicates.md (alpha_cbranch_operator): New.
12799 * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
12800 * config/arc/arc.h (movsicc, movsfcc): Use it.
12801 (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
12802 (cbranchsi4, cstoresi4): New.
12803 (cmpsi, bCC and sCC expanders): Remove.
12805 * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
12806 * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
12807 * config/arm/predicates.md (arm_comparison_operator): Only include
12808 floating-point operators if there is a hardware floating-point unit.
12809 * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
12810 deferring to cbranch_cc and cstore_cc respectively.
12811 (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
12812 cbranch_cc, cstore_cc): New.
12813 (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
12815 (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
12817 * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
12818 * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
12820 (adjust_insn_length): Adjust calls.
12821 (avr_reorg): Handle (compare (foo) (const_int 0)).
12822 * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
12823 (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
12824 (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
12825 (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
12827 (cbranchqi4, cbranchhi4, cbranchsi4): New.
12828 (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
12830 * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
12831 (cbranchsi4, cstorebi4, cstoresi4): New.
12832 (movbisi): This insn is duplicate, split it to zero_extend.
12833 * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
12834 (bfin_gen_compare): Do not use them. Emit VOIDmode SET, not BImode.
12835 (bfin_optimize_loop): Use cbranch expander.
12836 * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
12837 * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
12838 (bfin_bimode_comparison_operator): ... this.
12839 (bfin_direct_comparison_operator): New.
12841 * config/cris/cris.c (cris_normal_notice_update_cc): Look
12842 inside (compare FOO (const_int 0)).
12843 (cris_rtx_costs): Handle ZERO_EXTRACT.
12844 * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
12845 (*tstdi_non_v32): Fold in *cmpdi_non_v32.
12846 (*tstdi_v32): Delete.
12847 (*cmpdi_non_v32): Add M alternative for operand 1.
12848 (cmpsi, cmp<mode>): Make private.
12849 (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
12851 (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
12853 * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
12854 (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
12855 (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
12856 (cc_reg_operand): New.
12857 (any_cond): Delete.
12858 * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
12859 crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
12860 * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
12861 * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
12862 crx_expand_scond): Delete.
12864 * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
12866 * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
12867 * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
12869 * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
12870 cstoresi4, cstoresf4, cstoredf4): New.
12871 (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
12872 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
12873 Receive the entire operands array.
12874 * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
12875 * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
12876 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
12877 Get test/op0/op1 from the operands array.
12878 (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
12880 * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
12881 (h8300_expand_store): New.
12882 * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
12884 (h8300_expand_branch): Emit compare here. Adjust for new arguments.
12885 (h8300_expand_store): New.
12886 * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
12887 or do not try to produce (set (cc0) REG).
12888 (peepholes): Wrap arguments with COMPARE. Add a peephole to
12889 change a compare into a move to a scratch register. Disable some
12890 peepholes when comparing with zero.
12891 (tstsi, tsthi, tstsi, cmpqi): Make private.
12893 (bCC, sCC): Delete.
12894 (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
12897 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
12898 ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
12899 (ix86_emit_i387_log1p): Use gen_cbranchxf4.
12900 (ix86_emit_i387_log1p): Use cbranchxf2.
12901 (ix86_expand_setcc): Return void.
12902 * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
12903 * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
12904 cmp<MODEF>, cmpcc): Remove.
12905 (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
12906 cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
12907 cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
12908 (sCC and bCC expanders): Remove.
12909 (stack_protect_test): Use cbranchcc4.
12911 * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
12913 (ia64_expand_compare): Accept three rtx by reference and return void.
12914 * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
12915 (ia64_expand_compare): Replace op0/op1 with *op0/*op1. Get code
12916 from *expr. Update *expr with the BImode comparison to do.
12917 * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
12918 cmptf, bCC, sCC, conditional_trap): Delete.
12919 (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
12920 cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
12921 cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
12922 ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
12923 * config/ia64/predicates.md (ia64_cbranch_operator): New.
12925 * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
12926 type of last argument.
12927 * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
12928 (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
12929 use machine mode argument instead of branch_type. Remove dead
12930 code for floating-point comparisons.
12931 * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
12932 * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
12934 (cbranchsi4, cstoresi4): New.
12935 * config/iq2000/predicates.md (reg_or_const_operand): New.
12937 * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
12938 * config/m32c/m32c.md (any_cond, gl_cond): Delete.
12939 (b<code>_op): Rewrite to...
12940 (bcc_op): ... this, using match_operator.
12941 (s<code>_op): Rewrite to...
12942 (scc_op): ... this, using match_operator.
12943 (s<code>_24_op): Rewrite to...
12944 (scc_op_24): ... this, using match_operator.
12945 (s<code>_<mode>): Rewrite to...
12946 (cstore<mode>4): ... this, using match_operator.
12947 (s<code>_<mode>_24): Rewrite to...
12948 (cstore<mode>4_24): ... this, using match_operator.
12949 * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
12950 m32c_unpend_compare, m32c_expand_scc): Delete.
12951 * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
12952 m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
12953 (m32c_expand_movcc): Change NE to EQ if necessary.
12954 (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
12956 * config/m32r/m32r-protos.h (gen_cond_store): New.
12957 * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
12958 (gen_cond_store): New, from sCC patterns.
12959 (m32r_expand_block_move): Use cbranchsi4.
12960 * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
12961 * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
12962 (cbranchsi4, cstoresi4): New.
12964 * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
12966 (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
12967 (m68hc11_notice_update_cc): Look into a compare with 0.
12968 * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
12970 * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
12971 cmphi, cmpqi, bCC): Delete.
12972 (cbranchsi4, cbranchhi4, cbranchqi4): New.
12973 (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
12974 bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
12977 * config/m68k/predicates.md (m68k_cstore_comparison_operator,
12978 const0_operand, const1_operand, m68k_subword_comparison_operand): New.
12979 * config/m68k/constraints.md (H): New.
12980 * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
12981 the define_insn below.
12982 (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
12983 (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
12984 *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
12985 patterns): Wrap RHS with COMPARE.
12986 (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
12987 (*cmpdi_internal): Name this pattern.
12988 (cmpdi): Change to define_insn.
12989 (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
12990 cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
12991 (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
12993 (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
12994 sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
12995 (conditional_trap): Change to...
12996 (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
12997 (*conditional_trap): Use the ordered_comparison_operator and
12998 const1_operand predicates.
12999 * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
13000 (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
13001 (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
13002 * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
13004 * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
13005 mcore_modify_comparison, mcore_gen_compare_reg): Remove.
13006 (mcore_gen_compare): New.
13007 * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
13008 (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
13009 (mcore_gen_compare): ... this.
13010 * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
13011 (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
13012 (stack probe pattern): Use cbranchsi4.
13014 * config/mips/predicates.md (mips_cstore_operator): New.
13015 * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
13016 * config/mips/mips.md (any_cond): Delete.
13017 (conditional_trap): Rename to ctrap<GPR:mode>4. Adjust predicates,
13019 (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
13020 fixuns_truncsfdi2): Use cbranch patterns.
13021 (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
13022 (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
13023 Adjust call to mips_expand_conditional_branch.
13024 (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
13026 * config/mips/mips-protos.h (mips_expand_conditional_branch,
13027 mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
13028 * config/mips/mips.c (cmp_operands): Delete.
13029 (mips_emit_compare): Get comparison operands from *op0/*op1.
13030 (mips_expand_scc): Get code/op0/op1/target from operands. Assert
13031 that it succeeds. Use op0/op1 instead of cmp_operands.
13032 (mips_expand_conditional_branch, mips_expand_conditional_move,
13033 mips_expand_conditional_trap): Likewise.
13034 (mips_block_move_loop): Use cbranch patterns.
13035 * config/mips/mips.h (cmp_operands): Delete.
13037 * config/mmix/mmix.c (mmix_valid_comparison): Delete.
13038 (mmix_gen_compare_reg): Just return a register in the right CC mode.
13039 * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
13040 * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
13041 (*cmpcc_folded): Rename to...
13042 (*cmpdi_folded): this.
13043 (*cmpcc): Rename to...
13045 (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
13048 (cbranchdf4): New. Handle invalid comparisons here.
13049 * config/mmix/predicates.md (float_comparison_operator): New.
13051 * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
13052 zero_extract to be cheap in (compare (zero_extract) (const_int 0).
13053 * config/mn10300/mn10300.md (tst): Delete.
13054 (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
13055 Name these patterns and wrap RHS in a compare.
13056 (*cmpsi): Make this pattern private. Include tst.
13057 (*cmpsf): Make this pattern private.
13058 (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
13059 (compare with zero peepholes): Likewise.
13061 (cbranchsi4, cbranchsf4): New.
13062 (casesi): Use cbranchsi4.
13064 * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
13065 hppa_branch_type): Delete.
13066 (return_addr_rtx): Use cbranchsi4.
13067 (emit_bcond_fp): Accept all operands. Replace CODE with NE.
13068 Emit CCFPmode comparison here.
13069 (gen_cmp_fp): Delete, now part of emit_bcond_fp.
13070 * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
13071 hppa_branch_type): Delete.
13072 * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
13073 (movsicc, movdicc): Remove references to hppa_compare_op0,
13074 hppa_compare_op1 and compare_from_rtx.
13075 (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
13076 (casesi): Use cbranchsi4.
13078 * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
13079 * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
13080 * config/pdp11/pdp11.md (register_or_const0_operand): New.
13081 (cmpdf, cmphi, cmpqi): Make private. Add tst alternatives.
13082 (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
13084 (cbranchdf4, cbranchhi4, cbranchqi4): New.
13085 (*branch, *branch_inverted): New.
13087 * config/picochip/picochip.md (cbranchhi4): Use
13088 ordered_comparison_operator.
13089 (cmphi, bCC): Remove.
13091 * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
13092 (trap_comparison_operator): Delete.
13093 * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
13094 rs6000_emit_cbranch): Accept mode and operands.
13095 * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
13096 rs6000_compare_fp_p): Delete.
13097 (rs6000_generate_compare): Accept mode and comparison. Extract code
13098 and op0/op1 from there. Replace references to rs6000_compare_op0
13099 and rs6000_compare_op1.
13100 (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
13101 extract result from passed operands.
13102 (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
13103 extract loc from passed operands.
13104 (rs6000_emit_cmove): Likewise.
13105 * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
13106 rs6000_compare_fp_p): Delete.
13107 * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
13108 (cbranch<GPR>4, cbranch<FP>4): New.
13109 (cstore<mode>4): New. Consolidate here all choices about when to use
13110 portable or specialized sCC sequences.
13111 (stack_protect_test): Use cbranchsi4.
13112 (conditional_trap): Replace with ctrap<GPR>4.
13113 (conditional trap insn): Replace trap_comparison_operator with
13114 ordered_comparison_operator.
13116 * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
13117 (s390_emit_prologue): Use ctrap.
13118 * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
13119 * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
13120 New predicates replacing...
13121 * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
13122 (cmp<GPR>, cmp<FP>, cmpcc): Delete.
13123 (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
13124 (add<mode>cc): Do not use s390_compare_op0/op1.
13125 (s<code>): Change to...
13126 (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
13127 (seq): Change to...
13128 (cstorecc4): ... this. Handle EQ or NE equally.
13129 (*sne): Un-privatize for use in cstorecc4.
13130 (b<code>): Change to...
13131 (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
13132 (conditional_trap): Replace with...
13133 (ctrap<GPR>4, ctrap<FP>4): ... these.
13134 (stack_protect): Use cbranchcc4.
13136 * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
13137 * config/score/score-protos.h (score_gen_cmp): Delete.
13138 * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
13139 (score_block_move-loop): Use cbranchsi4.
13140 * config/score/score.md (cbranchsi4): New.
13141 (cmpsi, bCC): Delete.
13142 * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
13143 (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
13144 * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
13145 (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
13146 * config/score/score3.h (score3_gen_cmp): Delete.
13147 * config/score/score7.h (score7_gen_cmp): Delete.
13149 * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
13150 (sh_emit_scc_to_t): ... this. Return void.
13151 (from_compare): Rename to...
13152 (sh_emit_compare_and_branch): ... this.
13153 (sh_emit_compare_and_set): New.
13154 (sh_expand_t_scc): Accept operands.
13155 * config/sh/predicates.md (sh_float_comparison_operator): New.
13156 * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
13157 (prepare_scc_operands): Rename to...
13158 (sh_emit_scc_to_t): ... this. Return void. Get op0/op1 from
13160 (sh_emit_cheap_store_flag): New.
13161 (sh_emit_set_t_insn): New.
13162 (from_compare): Rename to...
13163 (sh_emit_compare_and_branch): ... this. Accept mode. Rewrite
13164 handling of TARGET_SH2E floating point to avoid recursive call.
13165 Generate branch here.
13166 (sh_emit_compare_and_set): New.
13167 (sh_expand_t_scc): Get op0/op1 from arguments.
13168 (sh_emit_cheap_store_flag): New.
13169 * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
13171 (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
13172 (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
13173 (movsicc, movdicc): Do nothing when it recreated operands from
13174 sh_compare_*. Use sh_emit_cheap_store_flag. Adjust call to
13175 prepare_scc_operands (now sh_emit_scc_to_t).
13176 (udivdi3): Use cstoresi4.
13177 (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
13178 bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
13179 (cbranchint4_media, cbranchfp4_media): New.
13180 (casesi): Use cbranchdi4.
13181 (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
13183 (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
13184 (movnegt): Remove second operand.
13185 (cbranchsf4, cbranchdf4): New.
13186 (stack_protect): Use cbranchdi4/cbranchsi4.
13188 * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
13189 (gen_compare_reg): Accept comparison, extract part of it to...
13190 (gen_compare_reg_1): ... this.
13191 (gen_compare_operator): Delete.
13192 (gen_v9_scc): Accept separate destination, comparison code and arms.
13193 Do not use sparc_compare_op0/sparc_compare_op1.
13194 (emit_scc_insn, emit_conditional_branch_insn): New.
13195 (emit_v9_brxx): Make static. Remove useless assertion.
13196 (sparc_emit_float_lib_cmp): Return RTL instead of calling
13198 (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
13199 * config/sparc/sparc-protos.h (gen_compare_reg,
13200 sparc_emit_float_lib_cmp): Adjust prototype.
13201 (emit_scc_insn, emit_conditional_branch_insn): New.
13202 (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
13203 * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
13204 * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
13205 iterators to the top.
13206 (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
13207 snesi_special_extend, sCC, bCC, seqdi_special_trunc,
13208 snedi_special_trunc): Delete.
13209 (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
13210 and snedi_special_trunc.
13211 (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
13212 cbranchdi4, cbranch<F:mode>4): New.
13213 (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
13214 here. Use gen_compare_reg instead of gen_compare_operator.
13215 (conditional_trap): Replace with...
13216 (ctrapsi4, ctrapdi4): ... this.
13217 (stack_protect_test): Use cbranchcc4.
13219 * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
13221 * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
13222 (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
13223 Change spu_compare_op0/op1 to op0/op1 throughout. Get target
13224 from operands[0] or operands[3] depending on is_set.
13225 * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
13226 * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
13227 cmpdf, bCC), sCC: Remove.
13228 (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
13229 cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
13231 (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
13232 spu_emit_branch_or_set.
13234 * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
13236 * config/stormy16/stormy16.h (xstormy16_compare_op0,
13237 xstormy16_compare_op1): Delete.
13238 * config/stormy16/stormy16.c (xstormy16_compare_op0,
13239 xstormy16_compare_op1): Delete.
13240 (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
13242 * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
13243 (cmphi, cmpsi, bCC): Remove.
13245 * config/v850/v850.md (tstsi, cmpsi): Fold into...
13246 (*cmpsi): ... this one.
13247 (cbranchsi4, cstoresi4): New.
13248 (bCC expanders): Delete.
13249 (sCC insns): Fold into...
13250 (*setcc): ... this one.
13251 (casesi): Do not use gen_cmpsi and gen_bgtu.
13252 (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
13253 (movsicc): Simplify.
13254 * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
13256 * config/vax/vax-protos.h (cond_name): New.
13257 (vax_output_conditional_branch): Remove.
13258 * config/vax/vax.c (cond_name): New.
13259 (vax_output_conditional_branch): Remove.
13260 * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
13261 * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
13262 (cmp<VAXint>, cmp<VAXfp>): Privatize. Add constraints for tst.
13263 (bit<VAXint>): Wrap source with (compare).
13264 (b<code> and following unnamed pattern): Rename to *branch and
13265 *branch_reversed. Change macroization to match_operator.
13266 (cbranch<VAXint>4, cbranch<VAXfp>4): New.
13268 * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
13269 * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
13270 Change last argument to machine_mode.
13271 (xtensa_expand_scc): Add machine_mode argument.
13272 * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
13273 (gen_conditional_move, xtensa_expand_conditional_branch,
13274 xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
13275 instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
13276 Adjust operand numbers.
13277 * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
13279 * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
13280 (cmpsi, cmpsf, b<code>, s<code>): Delete.
13281 (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
13283 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
13285 * optabs.c (prepare_cmp_insn): Temporarily disable test that
13286 causes spurious differences between trunk and cond-optab branch.
13288 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
13291 * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
13293 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
13295 * tree.c (iterative_hash_pointer): Delete.
13296 (iterative_hash_expr): Short-circuit handling of NULL pointer.
13297 Hash UIDs and versions of SSA names. Don't special-case built-in
13298 function declarations.
13300 2009-05-11 Ian Lance Taylor <iant@google.com>
13303 * graphite.c: Force -Wc++-compat to only be a warning before
13304 #including "cloog/cloog.h".
13306 2009-05-11 Martin Jambor <mjambor@suse.cz>
13308 * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
13310 2009-05-11 Jan Hubicka <jh@suse.cz>
13312 * tree-ssa-loop-ivcanon.c: Include target.h
13313 (struct loop_size): new structure.
13314 (constant_after_peeling): New predicate.
13315 (tree_estimate_loop_size): New function.
13316 (estimated_unrolled_size): Rewrite for new estimates.
13317 (try_unroll_loop_completely): Use new estimates.
13318 * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
13320 2009-05-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
13322 * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
13323 libcpp interface change.
13324 (spu_macro_to_expand): Likewise.
13326 2009-05-11 Paolo Bonzini <bonzini@gnu.org>
13328 PR tree-optimization/40026
13329 * gimplify.c (gimplify_init_constructor): Change initial conditional
13330 to assertion. Rewrite TREE_OPERAND (*expr_p, 1) after
13331 optimize_compound_literals_in_ctor.
13333 2009-05-11 Nathan Sidwell <nathan@codesourcery.com>
13335 * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
13337 * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
13339 2009-05-11 H.J. Lu <hongjiu.lu@intel.com>
13341 * tree-vect-data-refs.c (vect_analyze_group_access): Use
13342 HOST_WIDE_INT for gap.
13344 2009-05-11 Ira Rosen <irar@il.ibm.com>
13346 PR tree-optimization/40074
13347 * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
13348 account in group size and step comparison.
13350 2009-05-11 Richard Guenther <rguenther@suse.de>
13352 * passes.c (init_optimization_passes): Strip now incorrect comment.
13353 (execute_function_todo): Do not set PROP_alias.
13354 * tree-pass.h (PROP_alias): Remove.
13355 * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
13356 * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
13357 * tree-nrv.c (pass_return_slot): Likewise.
13358 * tree-object-size.c (pass_object_sizes): Likewise.
13359 * tree-ssa-dom.c (pass_dominator): Likewise.
13360 (pass_phi_only_cprop): Likewise.
13361 * tree-ssa-dse.c (pass_dse): Likewise.
13362 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
13363 (pass_cselim): Likewise.
13364 * tree-ssa-pre.c (pass_pre): Likewise.
13365 (pass_fre): Likewise.
13366 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
13367 * tree-ssa-sink.c (pass_sink_code): Likewise.
13368 * tree-stdarg.c (pass_stdarg): Likewise.
13369 * tree-tailcall.c (pass_tail_calls): Likewise.
13370 * tree-vrp.c (pass_vrp): Likewise.
13372 2009-05-10 Ian Lance Taylor <iant@google.com>
13374 * basic-block.h (enum profile_status): Break out of struct
13375 control_flow_graph.
13376 * cgraph.h (struct inline_summary): Break out of struct
13378 * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
13379 of struct cgraph_order_sort.
13380 * combine.c (enum undo_kind): New enum, broken out of struct undo.
13381 * cse.c (struct branch_path): Break out of struct
13382 cse_basic_block_data.
13383 * except.h (enum eh_region_type): Break out of struct eh_region.
13384 * gcc.c (enum add_del): Break out of struct modify_target.
13385 * genrecog.c (enum decision_type): Break out of struct decision_test.
13386 * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
13388 * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
13389 * regmove.c (enum match_use): New enum, broken out of struct match.
13390 * sched-int.h (enum post_call_group): New enum, broken out of
13392 (struct deps_reg): Break out of struct deps.
13393 * target.h (struct asm_int_op): Break out of struct gcc_target.
13394 * tree-eh.c (struct goto_queue_node): Break out of struct
13396 * tree-inline.h (enum copy_body_cge_which): Break out of
13398 * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
13400 * c-decl.c (in_struct, struct_types): New static variables.
13401 (pushtag): Add loc parameter. Change all callers.
13402 (lookup_tag): Add ploc parameter. Change all callers.
13403 (check_compound_literal_type): New function.
13404 (parser_xref_tag): Add loc parameter. Change all callers. If
13405 -Wc++-compat, warn about struct/union/enum types defined within a
13407 (start_struct): Add enclosing_in_struct, enclosing_struct_types,
13408 and loc parameters. Change all callers. Change error calls to
13409 error_at, using loc. For a redefinition, if the location of the
13410 original definition is known, report it. Set in_struct and
13411 struct_types. If -Wc++-compat warn if in sizeof, typeof, or alignof.
13412 (finish_struct): Add new parameters enclosing_in_struct and
13413 enclosing_struct_types. Change all callers. Set
13414 C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
13415 in the struct. If in a struct, add this struct to struct_types.
13416 (start_enum): Add loc parameter. Change all callers. Use
13417 error_at for errors, using loc. For a redefinition, if the
13418 location of the original definition is known, report it. If in a
13419 struct, add this enum type to struct_types. If -Wc++-compat warn
13420 if in sizeof, typeof, or alignof.
13421 * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
13422 (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
13423 (c_parser_enum_specifier): Get enum location for start_enum.
13424 (c_parser_struct_or_union_specifier): Get struct location for
13425 start_struct. Save in_struct and struct_types status between
13426 start_struct and finish_struct.
13427 (c_parser_cast_expression): Get location of cast.
13428 (c_parser_alignof_expression): Get location of type.
13429 (c_parser_postfix_expression): Likewise.
13430 (c_parser_postfix_expression_after_paren_type): Add type_loc
13431 parameter. Change all callers. Call check_compound_literal_type.
13432 Use type_loc for error about variable size type.
13433 * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
13434 of an enum constant from an enum type defined in a struct or union.
13435 (c_cast_expr): Add loc parameter. Change all callers. If
13436 -Wc++-compat, warn about defining a type in a cast.
13437 * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
13438 (start_enum, start_struct, finish_struct): Update declarations.
13439 (parser_xref_tag, c_cast_expr): Update declarations.
13440 (check_compound_literal_type): Declare.
13442 2009-05-11 Ben Elliston <bje@au.ibm.com>
13444 * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
13445 for recent libcpp interface change.
13446 (rs6000_macro_to_expand): Likewise.
13448 2009-05-10 Michael Matz <matz@suse.de>
13451 * config/arm/arm.c (require_pic_register): Emit on entry edge,
13452 not at entry of function.
13454 2009-05-10 Richard Guenther <rguenther@suse.de>
13456 PR tree-optimization/40081
13458 * tree-sra.c (instantiate_element): Instantiate scalar replacements
13459 using the main variant of the element type. Do not fiddle with
13460 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
13462 * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
13463 structs with volatile fields.
13465 2009-05-10 Jan Hubicka <jh@suse.cz>
13467 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
13468 (estimate_move_cost): Assert that it does not get called for
13470 (estimate_num_insns): Skip VOID types in argument handling.
13471 (optimize_inline_calls): Delete unreachable blocks and verify that
13472 callgraph is valid.
13474 2009-05-10 Jan Hubicka <jh@suse.cz>
13476 * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
13477 * cgraph.c (cgraph_mark_address_taken_node): New function.
13478 (dump_cgraph_node): Dump new flag.
13479 * cgraph.h (struct cgraph_node): Add address_taken.
13480 (cgraph_mark_address_taken_node): New function.
13481 * ipa.c (cgraph_postorder): Prioritize functions with address taken
13482 since new direct calls can be born.
13484 2009-05-10 Joseph Myers <joseph@codesourcery.com>
13486 * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
13487 tok->val.node.node.
13489 2009-05-10 Jan Hubicka <jh@suse.cz>
13491 PR middle-end/40084
13492 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
13494 (cgraph_update_edges_for_call_stmt): Take old_decl argument.
13495 * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
13496 * tree-inline.c (copy_bb): Set frequency correctly.
13497 (fold_marked_statements): Update call to
13498 cgraph_update_edges_for_call_stmt.
13500 2009-05-10 Joseph Myers <joseph@codesourcery.com>
13502 * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
13503 identifiers in diagnostics.
13504 * config/arm/arm.c (arm_handle_fndecl_attribute,
13505 arm_handle_isr_attribute): Likewise.
13506 * config/avr/avr.c (avr_handle_progmem_attribute,
13507 avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
13508 * config/bfin/bfin.c (handle_int_attribute,
13509 bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
13510 bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
13511 bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
13513 * config/darwin.c (darwin_handle_kext_attribute,
13514 darwin_handle_weak_import_attribute): Likewise.
13515 * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
13516 h8300_handle_eightbit_data_attribute,
13517 h8300_handle_tiny_data_attribute): Likewise.
13518 * config/i386/i386.c (ix86_handle_cconv_attribute,
13519 ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
13520 * config/i386/winnt.c (ix86_handle_shared_attribute,
13521 ix86_handle_selectany_attribute): Likewise.
13522 * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
13523 * config/m32c/m32c.c (function_vector_handler): Likewise.
13524 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
13525 m68hc11_handle_fntype_attribute): Likewise.
13526 * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
13527 * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
13528 * config/mips/mips.c (mips_insert_attributes,
13529 mips_merge_decl_attributes, mips_expand_builtin): Likewise.
13530 * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
13531 rs6000_handle_struct_attribute): Likewise.
13532 * config/sh/sh.c (sh_insert_attributes,
13533 sh_handle_resbank_handler_attribute,
13534 sh_handle_interrupt_handler_attribute,
13535 sh2a_handle_function_vector_handler_attribute,
13536 sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
13538 * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
13539 * config/spu/spu.c (spu_handle_fndecl_attribute,
13540 spu_handle_vector_attribute): Likewise.
13541 * config/stormy16/stormy16.c
13542 (xstormy16_handle_interrupt_attribute): Likewise.
13543 * config/v850/v850-c.c (ghs_pragma_section): Likewise.
13544 * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
13546 2009-05-10 Joseph Myers <joseph@codesourcery.com>
13548 * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
13549 (pp_translate_identifiers): New.
13550 (pp_identifier): Only conditionally translate identifier to locale
13552 * pretty-print.c (pp_construct): Set pp_translate_identifiers.
13553 (pp_base_tree_identifier): Only conditionally translate identifier
13554 to locale character set.
13555 * c-pretty-print.c (M_): Define.
13556 (pp_c_type_specifier, pp_c_primary_expression): Mark English
13557 fragments for conditional translation with M_.
13558 * tree-pretty-print.c (maybe_init_pretty_print): Disable
13559 identifier translation.
13561 2009-05-10 Richard Guenther <rguenther@suse.de>
13563 PR tree-optimization/40081
13564 * tree-sra.c (instantiate_element): Instantiate scalar replacements
13565 using the main variant of the element type. Do not fiddle with
13566 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
13568 2009-05-09 Jan Hubicka <jh@suse.cz>
13570 PR middle-end/40080
13571 * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
13572 indirect calls; verify cgraph afterwards.
13574 2009-05-09 Jan Hubicka <jh@suse.cz>
13577 * ipa.c (update_inlined_to_pointer): New function.
13578 (cgraph_remove_unreachable_nodes): Use it.
13580 2009-05-09 Jan Hubicka <jh@suse.cz>
13582 * tree-eh.c (struct leh_state): Remove prev_try.
13583 (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
13584 not track prev_try.
13585 * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
13586 copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
13587 remove_eh_handler_and_replace, foreach_reachable_handler,
13588 verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
13589 * except.h (struct eh_region): Remove eh_region_u_cleanup.
13590 (gen_eh_region_cleanup): Update prototype.
13592 2009-05-09 Jan Hubicka <jh@suse.cz>
13594 PR middle-end/40043
13595 * except.c (copy_eh_region): Always set prev_try.
13596 (redirect_eh_edge_to_label): Find outer try.
13597 (foreach_reachable_handler): When looking for prev try
13598 handle case where previous try is not going to be taken.
13600 2009-05-07 Michael Meissner <meissner@linux.vnet.ibm.com>
13602 PR tree-optimization/40049
13603 * tree-vect-stmts.c (vectorizable_operation): If the machine has
13604 only vector/vector shifts, convert the type of the constant to the
13605 appropriate type to avoid building incorrect trees, which
13606 eventually have problems with garbage collection.
13608 2009-05-08 Joseph Myers <joseph@codesourcery.com>
13610 * fold-const.c (fold_binary): Do not fold multiplication by 1 or
13611 -1 for complex floating-point types if honoring signed zeros.
13613 2009-05-08 Jan Hubicka <jh@suse.cz>
13615 * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
13616 argument; handle correctly when profile is absent.
13617 (build_cgraph_edges): Update.
13618 (rebuild_cgraph_edges): Update.
13619 * cgraph.c: Do not include varray.h.
13620 (cgraph_set_call_stmt_including_clones): New function.
13621 (cgraph_create_edge_including_clones): Likewise
13622 (cgraph_update_edges_for_call_stmt_node): New static cfunction.
13623 (cgraph_update_edges_for_call_stmt): Handle clones.
13624 (cgraph_remove_node): Handle clone tree.
13625 (cgraph_remove_node_and_inline_clones): New function.
13626 (dump_cgraph_node): Dump clone tree.
13627 (cgraph_clone_node): Handle clone tree.
13628 (clone_function_name): Bring here from tree-inline.c.
13629 (cgraph_create_virtual_clone): New function.
13630 * cgraph.h (ipa_replace_map): Move here from ipa.h.
13631 (cgraph_clone_info): New function.
13632 (strut cgraph_node): Add clone_info and new clone tree pointers.
13633 (cgraph_remove_node_and_inline_clones,
13634 cgraph_set_call_stmt_including_clones,
13635 cgraph_create_edge_including_clones,
13636 cgraph_create_virtual_clone): Declare.
13637 (cgraph_function_versioning): Use VEC argument.
13638 (compute_call_stmt_bb_frequency): Update prototype.
13639 (cgraph_materialize_all_clones): New function.
13640 * ipa-cp.c (ipcp_update_cloned_node): Remove.
13641 (ipcp_create_replace_map): Update to VECtors.
13642 (ipcp_update_callgraph): Use virtual clones.
13643 (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
13644 (ipcp_update_profiling): Do not update local profiling.
13645 (ipcp_insert_stage): Use VECtors and virtual clones.
13646 * cgraphunit.c (verify_cgraph_node): Verify clone tree.
13647 (clone_of_p): New function.
13648 (cgraph_preserve_function_body_p): Use clone tree.
13649 (cgraph_optimize): Materialize clones.
13650 (cgraph_function_versioning): Update for VECtors.
13651 (save_inline_function_body): Use clone tree.
13652 (cgraph_materialize_clone): New function.
13653 (cgraph_materialize_all_clones): Likewise.
13654 * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
13655 * ipa.c: Include gimple.h.
13656 (cgraph_remove_unreachable_nodes): Use clone tree.
13657 * ipa-prop.c (ipa_note_param_call): Update call to
13658 compute_call_stmt_bb_frequencycall.
13659 * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
13660 * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
13661 (copy_bb): Handle updating of clone tree; add new edge when new call
13663 (expand_call_inline): Be strict about every call having edge.
13664 (clone_fn_id_num, clone_function_name): Move to cgraph.c.
13665 (delete_unreachable_blocks_update_callgraph): New function.
13666 (tree_function_versioning): Use VECtors; always remove unreachable
13667 blocks and fold conditionals.
13668 * tree-inline.h: Do not include varray.h.
13669 (tree_function_versioning): Remove.
13670 * Makefile.in (GTFILES): Remove tree-inline.c
13671 * passes.c (do_per_function): Do only functions having body.
13672 * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
13675 2009-05-08 H.J. Lu <hongjiu.lu@intel.com>
13676 Andrew Morrow <acm@google.com>
13679 * c-common.c (c_common_attribute_table): Permit deprecated
13680 attribute to take an optional argument.
13681 (handle_deprecated_attribute): If the optional argument to
13682 __attribute__((deprecated)) is not a string ignore the attribute
13683 and emit a warning.
13685 * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
13686 * c-typeck.c (build_component_ref): Likewise.
13687 (build_external_ref): Likewise.
13689 * toplev.c (warn_deprecated_use): Add an attribute argument.
13690 Emit the message associated with __attribute__((deprecated)).
13692 * toplev.h (warn_deprecated_use): Updated.
13694 * doc/extend.texi: Document new optional parameter to
13695 __attribute__((deprecated))
13697 2009-05-08 Michael Eager <eager@eagercon.com>
13699 * config/rs6000/rs6000.md (*movdf_softfloat32): replace
13700 !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
13702 2009-05-08 Richard Guenther <rguenther@suse.de>
13704 PR tree-optimization/40062
13705 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
13706 Avoid exponential behavior.
13708 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
13710 PR rtl-optimization/33928
13712 * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
13713 process_uses, build_single_def_use_links): New.
13714 (update_df): Update use_def_ref.
13715 (forward_propagate_into): Use get_def_for_use instead of use-def
13717 (fwprop_init): Call build_single_def_use_links and let it initialize
13719 (fwprop_done): Free use_def_ref.
13720 (fwprop_addr): Eliminate duplicate call to df_set_flags.
13721 * df-problems.c (df_rd_simulate_artificial_defs_at_top,
13722 df_rd_simulate_one_insn): New.
13723 (df_rd_bb_local_compute_process_def): Update head comment.
13724 (df_chain_create_bb): Use the new RD simulation functions.
13725 * df.h (df_rd_simulate_artificial_defs_at_top,
13726 df_rd_simulate_one_insn): New.
13727 * opts.c (decode_options): Enable fwprop at -O1.
13728 * doc/invoke.texi (-fforward-propagate): Document this.
13730 2009-05-08 Joseph Myers <joseph@codesourcery.com>
13733 * c-typeck.c (build_binary_op): Handle arithmetic between one real
13734 and one complex operand specially.
13735 * tree-complex.c (some_nonzerop): Do not identify a real value as
13736 zero if flag_signed_zeros.
13738 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
13740 PR rtl-optimization/33928
13741 * loop-invariant.c (record_use): Fix && vs. || mishap.
13743 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
13745 PR rtl-optimization/33928
13746 * loop-invariant.c (struct use): Add addr_use_p.
13747 (struct def): Add n_addr_uses.
13748 (struct invariant): Add cheap_address.
13749 (create_new_invariant): Set cheap_address.
13750 (record_use): Accept df_ref. Set addr_use_p and update n_addr_uses.
13751 (record_uses): Pass df_ref to record_use.
13752 (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
13755 2009-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
13757 * config/sh/sh.c: Do not include c-pragma.h.
13759 2009-05-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
13761 * config/spu/spu.c: Remove include of c-common.h.
13763 2009-05-07 Janis Johnson <janis187@us.ibm.com>
13766 * c-common.h (mark_valid_location_for_stdc_pragma,
13767 valid_location_for_stdc_pragma_p, set_float_const_decimal64,
13768 clear_float_const_decimal64, float_const_decimal64_p): New.
13769 * c.opt (Wunsuffixed-float-constants): New.
13770 * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
13771 unsuffixed float constant, handle new warning.
13772 * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
13773 * c-decl.c (c_scope): New flag float_const_decimal64.
13774 (set_float_const_decimal64, clear_float_const_decimal64,
13775 float_const_decimal64_p): New.
13776 (push_scope): Set new flag.
13777 * c-parser.c (c_parser_translation_unit): Mark when it's valid
13778 to use STDC pragmas.
13779 (c_parser_external_declaration): Ditto.
13780 (c_parser_compound_statement_nostart): Ditto.
13781 * c-pragma.c (valid_location_for_stdc_pragma,
13782 mark_valid_location_for_stdc_pragma,
13783 valid_location_for_stdc_pragma_p, handle_stdc_pragma,
13784 handle_pragma_float_const_decimal64): New.
13785 (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
13786 * cp/semantics.c (valid_location_for_stdc_pragma_p,
13787 set_float_const_decimal64, clear_float_const_decimal64,
13788 float_const_decimal64_p): New dummy functions.
13789 * doc/extend.texi (Decimal Float): Remove statement that the
13790 pragma, and suffix for double constants, are not supported.
13791 * doc/invoke.texi (Warning Options): List new option.
13792 (-Wunsuffixed-float-constants): New.
13794 2009-05-08 Steven Bosscher <steven@gcc.gnu.org>
13796 * config/i386/i386.c: Do not include c-common.h.
13798 2009-05-07 Mark Heffernan <meheff@google.com>
13800 * doc/invoke.texi (Debugging Options): Document change of debugging
13802 * opts.c (decode_options): Make dump_base_name relative to
13803 aux_base_name directory.
13805 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
13807 * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
13808 * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
13810 2009-05-07 Rafael Avila de Espindola <espindola@google.com>
13812 * Makefile.in (install-plugin): Simplify a bit.
13814 2009-05-07 Paolo Bonzini <bonzini@gnu.org>
13816 * Makefile.in (OBJS-common): Add regcprop.o.
13818 * timevar.def (TV_CPROP_REGISTERS): New.
13819 * regrename.c (regrename_optimize): Return 0.
13820 (rest_of_handle_regrename): Delete.
13821 (pass_rename_registers): Point to regrename_optimize.
13822 (struct value_data_entry, struct value_data,
13823 kill_value_one_regno, kill_value_regno, kill_value,
13824 set_value_regno, init_value_data, kill_clobbered_value,
13825 kill_set_value, kill_autoinc_value, copy_value,
13826 mode_change_ok, maybe_mode_change, find_oldest_value_reg,
13827 replace_oldest_value_reg, replace_oldest_value_addr,
13828 replace_oldest_value_mem, copyprop_hardreg_forward_1,
13829 debug_value_data, validate_value_data): Move...
13830 * regcprop.c: ... here.
13831 (rest_of_handle_cprop): Delete.
13832 (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
13834 2009-05-07 Jakub Jelinek <jakub@redhat.com>
13836 PR middle-end/40057
13837 * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
13838 GEN_INT for 1 << bitnum.
13839 (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
13840 build_int_cst_type.
13842 2009-05-07 Uros Bizjak <ubizjak@gmail.com>
13844 * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
13845 Remove wrong description of "nand" operation.
13847 2009-05-06 Richard Guenther <rguenther@suse.de>
13848 Adam Nemet <anemet@caviumnetworks.com>
13850 * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
13851 comment. Add that if LHS is not a gimple register, then RHS1 has
13852 to be a single object (GIMPLE_SINGLE_RHS).
13854 2009-05-06 Adam Nemet <anemet@caviumnetworks.com>
13856 * expr.c (get_def_for_expr): Move it up in the file.
13857 (store_field): When expanding a bit-field store, look at the
13858 defining gimple stmt for the masking conversion.
13860 2009-05-06 Janis Johnson <janis187@us.ibm.com>
13862 PR middle-end/39986
13863 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
13864 decode_decimal64, encode_decimal128, decode_decimal128): Avoid
13865 32-bit memcpy into long.
13867 2009-05-06 Jakub Jelinek <jakub@redhat.com>
13869 * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
13870 (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
13872 (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
13873 instead of appending DW_OP_deref*.
13875 2009-05-06 Michael Matz <matz@suse.de>
13877 PR middle-end/40021
13878 * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
13879 (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
13881 2009-05-06 Rafael Avila de Espindola <espindola@google.com>
13883 * Makefile.in (install-plugin): Fix srcdir handling.
13885 2009-05-06 Andrey Belevantsev <abel@ispras.ru>
13887 * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
13888 when processing for not_regs_needed bitmap.
13889 * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
13890 handle TARGET_MEM_REF in lhs. Check TMR_BASE for NULL while
13891 handling it for rhs.
13893 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
13895 * config/i386/i386.md (unnamed inc/dec peephole): Use
13896 optimize_insn_for_size_p instead of optimize_size.
13897 * config/i386/predicates.md (incdec_operand): Likewise.
13898 (aligned_operand): Likewise.
13899 * config/i386/sse.md (divv8sf3): Likewise.
13900 (sqrtv8sf2): Likewise.
13902 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
13904 * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
13906 * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
13908 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
13910 * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
13911 ssemodesuffixf2c with avxmodesuffixf2c.
13913 2009-05-06 Joseph Myers <joseph@codesourcery.com>
13916 * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
13918 2009-05-05 Jakub Jelinek <jakub@redhat.com>
13920 * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
13921 (struct tree_base): Adjust spacing for 8 bit boundaries.
13922 (struct tree_decl_common): Add decl_by_reference_flag bit.
13923 (DECL_BY_REFERENCE): Adjust.
13924 * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
13925 print DECL_BY_REFERENCE bit.
13926 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
13927 * dwarf2out.c (loc_by_reference, gen_decl_die): Check
13928 DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
13929 (gen_variable_die): Likewise. Check TREE_PRIVATE/TREE_PROTECTED
13932 PR middle-end/39666
13933 * gimplify.c (gimplify_switch_expr): If case labels cover the whole
13934 range of the type, but default label is missing, add it with one
13935 of the existing labels instead of adding a new label for it.
13937 2009-05-05 Joseph Myers <joseph@codesourcery.com>
13941 2009-05-05 Rafael Avila de Espindola <espindola@google.com>
13943 * Makefile.in (enable_plugin, plugin_includedir): New.
13944 (install): Depend on install-plugin.
13945 (PLUGIN_HEADERS): New.
13946 (install-plugin): New.
13947 * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
13949 2009-05-05 Richard Guenther <rguenther@suse.de>
13951 PR tree-optimization/40022
13952 * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
13954 (phivn_valid_p): Fix tuplification error, simplify.
13955 (phiprop_insert_phi): Add dumps.
13956 (propagate_with_phi): Simplify.
13958 2009-05-05 Richard Guenther <rguenther@suse.de>
13960 PR middle-end/40023
13961 * builtins.c (gimplify_va_arg_expr): Properly build the address.
13963 2009-05-05 Shujing Zhao <pearly.zhao@oracle.com>
13965 * tree.h (strip_float_extensions): Remove duplicate declaration.
13966 (build_low_bits_mask, debug_fold_checksum, expand_function_end,
13967 expand_function_start, stack_protect_prologue, stack_protect_epilogue,
13968 block_ultimate_origin): Rearrange the declarations line to match the
13969 comment that indicates the .c file which the functions are defined.
13970 (dwarf2out_*, set_decl_rtl): Add comment.
13971 (get_base_address): Adjust comment.
13972 (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
13973 declarations line and add comment.
13974 (is_builtin_name): Add blank after function name, for clarity.
13976 2009-05-04 Joseph Myers <joseph@codesourcery.com>
13978 * attribs.c (decl_attributes): Use %qE for identifiers in
13980 * cgraphunit.c (verify_cgraph_node): Translate function names to
13981 locale character set in diagnostics.
13982 * coverage.c (get_coverage_counts): Use %qE for identifiers in
13984 * doc/invoke.texi (-finstrument-functions-exclude-function-list):
13985 Document that functions are named in UTF-8.
13986 * expr.c (expand_expr_real_1): Translate function names to locale
13987 character set in diagnostics.
13988 * gimplify.c (omp_notice_variable, omp_is_private,
13989 gimplify_scan_omp_clauses): Use %qE for identifiers in
13991 * langhooks.c (lhd_print_error_function): Translate function names
13992 to locale character set.
13993 * langhooks.h (decl_printable_name): Document that return value is
13994 in internal character set.
13995 * stmt.c: Include pretty-print.h
13996 (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
13998 (resolve_operand_name_1): Translate named operand name to locale
14000 * stor-layout.c (finalize_record_size): Use %qE for identifiers in
14002 * toplev.c (announce_function): Translate function names to locale
14004 (warn_deprecated_use): Use %qE for identifiers in diagnostics.
14005 (default_tree_printer): Use pp_identifier or translate identifiers
14006 to locale character set. Mark "<anonymous>" for translation.
14007 * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
14008 for identifiers in diagnostics.
14009 * tree.c (handle_dll_attribute): Use %qE for identifiers in
14011 * varasm.c (output_constructor): Use %qE for identifiers in
14014 2009-05-04 Rafael Avila de Espindola <espindola@google.com>
14016 * configure.ac: use ` ` instead of $()
14017 * configure: Regenerate.
14019 2009-05-05 Ben Elliston <bje@au.ibm.com>
14021 * config/pa/linux-atomic.c: Eliminate conditional include of
14022 errno.h on non-LP64 systems to simplify build requirements.
14024 2009-05-04 Joseph Myers <joseph@codesourcery.com>
14026 * c-common.c (handle_mode_attribute): Use %qE for identifiers in
14028 * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
14029 and pass value to identifier_to_locale.
14030 (warn_variable_length_array): Make name a tree.
14031 (grokdeclarator): Separate diagnostic texts for named and unnamed
14032 declarators. Use %qE for named declarators.
14033 * c-parser.c (c_lex_one_token): Use %qE for identifiers in
14035 * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
14036 identifiers in diagnostics.
14037 * c-typeck.c (push_member_name, start_init): Pass identifiers to
14038 identifier_to_locale. Mark "anonymous" strings for translation.
14040 2009-05-04 Michael Eager <eager@eagercon.com>
14042 * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
14043 address for DImode/DFmode only if double-precision FP regs.
14045 2009-05-04 Michael Eager <eager@eagercon.com>
14047 * config/rs6000/rs6000.c (rs6000_libcall_value): Add
14048 TARGET_SINGLE_FLOAT check.
14050 2009-05-04 Michael Eager <eager@eagercon.com>
14052 * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
14054 2009-05-04 Michael Eager <eager@eagercon.com>
14056 * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
14057 * config/rs6000/t-xilinx: New
14059 2009-05-04 Paolo Bonzini <bonzini@gnu.org>
14061 * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
14062 * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
14063 * gcc/explow.c (memory_address): Use target hook.
14064 * gcc/targhooks.c (default_legitimize_address): New.
14065 * gcc/targhooks.h (default_legitimize_address): New.
14066 * gcc/target.h (legitimize_address): New.
14067 * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
14068 (TARGET_INITIALIZER): Include it.
14069 * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
14071 * config/bfin/bfin-protos.h (legitimize_address): Remove.
14072 * config/bfin/bfin.c (legitimize_address): Remove.
14073 * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
14074 * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
14076 * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
14077 * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
14079 * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
14080 THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
14081 * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
14082 * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
14083 * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
14084 * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
14085 * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
14086 * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
14087 * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
14088 * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
14089 * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
14090 * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
14091 * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
14092 * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
14093 * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
14094 * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
14095 * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
14096 * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
14097 * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
14098 * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
14099 * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
14100 * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
14101 * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
14103 * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
14104 * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
14105 * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
14106 * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
14107 * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
14108 * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
14109 * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
14110 * gcc/config/arm/arm-protos.h (arm_legitimize_address,
14111 (thumb_legitimize_address): Delete.
14112 * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
14113 * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
14114 * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
14115 * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
14116 * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
14117 * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
14119 * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
14122 * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
14123 * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
14124 * config/m32r/m32r.c (m32r_legitimize_address): New.
14125 * config/m68k/m68k.c (m68k_legitimize_address): New.
14126 * config/score/score.c (score_legitimize_address): Standardize.
14127 * config/score/score3.c (score3_legitimize_address): Standardize.
14128 * config/score/score3.h (score3_legitimize_address): Adjust.
14129 * config/score/score7.c (score7_legitimize_address): Standardize.
14130 * config/score/score7.h (score7_legitimize_address): Adjust.
14131 * config/sh/sh.c (sh_legitimize_address): New.
14132 * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
14134 * gcc/config/s390/s390.c (legitimize_address): Rename to...
14135 (s390_legitimize_address): ... this.
14136 * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
14137 (sparc_legitimize_address): ... this.
14138 * gcc/config/i386/i386.c (legitimize_address): Rename to...
14139 (ix86_legitimize_address): ... this.
14140 * gcc/config/avr/avr.c (legitimize_address): Rename to...
14141 (avr_legitimize_address): ... this.
14142 * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
14143 (mn10300_legitimize_address): ... this.
14144 * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
14145 (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
14146 (alpha_expand_mov): Adjust call.
14148 * config/frv/frv.c (frv_legitimize_address): Return x on failure.
14149 * config/spu/spu.c (spu_legitimize_address): Likewise.
14150 * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
14151 * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
14153 2009-05-04 Joseph Myers <joseph@codesourcery.com>
14155 * intl.c (locale_encoding, locale_utf8): New.
14156 (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
14157 * intl.h (locale_encoding, locale_utf8): Declare.
14158 * pretty-print.c: Include ggc.h. Include iconv.h if HAVE_ICONV.
14159 (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
14161 * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
14163 (pp_tree_identifier): Define to call pp_base_tree_identifier.
14164 (pp_base_tree_identifier): Declare as function.
14165 (identifier_to_locale): Declare.
14166 * Makefile.in (pretty-print.o): Update dependencies.
14167 * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
14169 2009-05-04 Richard Guenther <rguenther@suse.de>
14171 PR middle-end/40015
14172 * builtins.c (fold_builtin_memory_op): Do not decay to element
14173 type if the size matches the whole array.
14175 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
14177 * expmed.c (synth_mult): When trying out a shift, pass the result
14180 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
14182 * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
14183 (shiftsub1_cost): New.
14184 (init_expmed): Compute shiftsub1_cost.
14185 (synth_mult): Optimize multiplications by constants of the form
14186 -(2^^m-1) for some constant positive integer m.
14188 2009-05-03 Richard Guenther <rguenther@suse.de>
14191 * c-typeck.c (array_to_pointer_conversion): Do not built
14192 ADDR_EXPRs of arrays of pointer-to-element type.
14193 * c-gimplify.c (c_gimplify_expr): Revert change fixing
14194 up wrong ADDR_EXPRs after-the-fact.
14195 * c-common.c (strict_aliasing_warning): Strip pointer
14196 conversions for obtaining the original type.
14197 * builtins.c (fold_builtin_memset): Handle array types.
14198 (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
14201 2009-05-03 Richard Guenther <rguenther@suse.de>
14203 PR middle-end/23329
14204 * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
14205 Do not lose casts from array types with unknown extent to array
14206 types with known extent.
14207 * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
14208 alias set compatibility.
14210 2009-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
14212 * flags.h (extra_warnings): Delete.
14213 * toplev.c (process_options): Handle Wuninitialized here.
14214 * opts.c (extra_warnings): Delete.
14215 (set_Wextra): Delete.
14216 (common_handle_option): -Wextra can be handled automatically.
14217 * c-opts.c (c_common_handle_option): Delete obsolete code.
14218 (c_common_post_options): Simplify comment.
14219 * common.opt (W): Add Var.
14221 (Wuninitialized): Initialize to -1.
14223 2009-05-03 Adam Nemet <anemet@caviumnetworks.com>
14224 Richard Guenther <rguenther@suse.de>
14226 * expr.c (get_def_for_expr): New function.
14227 (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
14228 SSA rather than trees.
14229 <MULT_EXPR>: Likewise. Use subexp0 and subexp1 instead of
14230 TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
14232 2009-05-03 Joseph Myers <joseph@codesourcery.com>
14234 * c-common.c (reswords): Add _Imaginary.
14235 * c-common.c (enum rid): Add RID_IMAGINARY.
14237 2009-05-03 Paolo Bonzini <bonzini@gnu.org>
14239 * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
14240 Patch by Richard Guenther.
14242 2009-05-03 Anatoly Sokolov <aesok@post.ru>
14244 * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
14245 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
14246 * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
14247 * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
14248 * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
14249 * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
14250 * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
14251 * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
14252 * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
14253 * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
14254 * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
14255 * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
14256 * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
14257 * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
14258 * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
14259 * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
14260 * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
14261 * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
14263 2009-05-02 Richard Guenther <rguenther@suse.de>
14265 PR tree-optimization/39940
14266 * tree-ssa-pre.c (eliminate): Make sure we may propagate before
14269 2009-05-02 Richard Guenther <rguenther@suse.de>
14271 PR middle-end/40001
14272 * tree-ssa.c (execute_update_addresses_taken): Properly check
14273 if we can mark a variable DECL_GIMPLE_REG_P.
14274 * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
14275 back to the end of the function.
14276 (is_gimple_reg_type): Remove complex type special casing.
14277 * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
14280 2009-05-02 Ben Elliston <bje@au.ibm.com>
14282 * doc/collect2.texi (Collect2): Document search path behaviour
14283 when configured with --with-ld.
14285 2009-05-02 Jan Hubicka <jh@suse.cz>
14287 * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
14288 parameter; update callers.
14289 (coalesce_cost_edge): EH edges are costier because they needs
14290 splitting even if not critical and even more costier when there are
14291 multiple EH predecestors.
14293 2009-05-02 Jan Hubicka <jh@suse.cz>
14295 * except.c (remove_eh_handler_and_replace): Handle updating after
14296 removing TRY blocks.
14298 2009-05-02 Eric Botcazou <ebotcazou@adacore.com>
14300 * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
14302 2009-05-02 Steven Bosscher <steven@gcc.gnu.org>
14304 * varasm.c: Do not include c-pragma.h.
14305 * attribs.c: Do not incude c-common.h.
14307 2009-05-01 Michael Matz <matz@suse.de>
14309 * calls.c (initialize_argument_information): Handle SSA names like
14310 decls with a non MEM_P DECL_RTL.
14312 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
14314 * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
14315 * ipa-utils.c: Likewise.
14316 * ipa-type-escape.c: Likewise.
14317 * cgraphunit.c Do not include c-common.h.
14318 * ipa-pure-const.c: Likewise.
14319 * tree-if-conv.c: Likewise.
14320 * matrix-reorg.c: Do not include c-common.h and c-tree.h.
14321 * ipa-struct-reorg.c: Likewise.
14322 * tree-nomudflap.c: Likewise.
14323 * tree-ssa-structalias.c: Likewise.
14325 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
14327 * store-motion.c: Many cleanups to make this pass a first-class
14328 citizen instead of an appendix to gcse load motion. Add TODO list
14329 to make this pass faster/cleaner/better.
14331 (struct ls_expr): Post gcse.c-split cleanups.
14332 Rename to st_expr. Rename "loads" field to "antic_stores". Rename
14333 "stores" field to "avail_stores".
14334 (pre_ldst_mems): Rename to store_motion_mems.
14335 (pre_ldst_table): Rename to store_motion_mems_table.
14336 (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
14337 (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
14338 (ldst_entry): Rename to st_expr_entry, update users.
14339 (free_ldst_entry): Rename to free_st_expr_entry, update users.
14340 (free_ldst_mems): Rename to free_store_motion_mems, update users.
14341 (enumerate_ldsts): Rename to enumerate_store_motion_mems,
14343 (first_ls_expr): Rename to first_st_expr, update users.
14344 (next_ls_expr): Rename to next_st_expr, update users.
14345 (print_ldst_list): Rename to print_store_motion_mems. Print names of
14346 fields properly for store motion instead of names inherited from load
14348 (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
14349 (LAST_AVAIL_CHECK_FAILURE): Explain what this is. Undefine when we
14352 (ae_kill): Rename to st_kill, update users.
14353 (ae_gen): Rename to st_avloc, update users.
14354 (transp): Rename to st_transp, update users.
14355 (pre_insert_map): Rename to st_insert_map, update users.
14356 (pre_delete_map): Rename to st_delete_map, update users.
14357 (insert_store, build_store_vectors, free_store_memory,
14358 one_store_motion_pass): Update for abovementioned changes.
14360 (gcse_subst_count, gcse_create_count): Remove.
14361 (one_store_motion_pass): New statistics counters "n_stores_deleted"
14362 and "n_stores_created", local variables.
14364 (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
14367 (regvec, compute_store_table_current_insn): Remove.
14368 (reg_set_info, reg_clear_last_set): Remove.
14369 (compute_store_table): Use DF caches instead of local dataflow
14372 2009-05-01 Joseph Myers <joseph@codesourcery.com>
14374 * c-objc-common.c (c_tree_printer): Print identifiers with
14375 pp_identifier, not pp_string. Mark "({anonymous})" for
14377 * c-pretty-print.c (pp_c_ws_string): New.
14378 (pp_c_cv_qualifier, pp_c_type_specifier,
14379 pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
14380 pp_c_storage_class_specifier, pp_c_function_specifier,
14381 pp_c_attributes, pp_c_bool_constant, pp_c_constant,
14382 pp_c_primary_expression, pp_c_postfix_expression,
14383 pp_c_unary_expression, pp_c_shift_expression,
14384 pp_c_relational_expression, pp_c_equality_expression,
14385 pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
14386 use pp_string and pp_c_ws_string in place of pp_identifier and
14387 pp_c_identifier for non-identifiers. Mark English strings for
14389 * c-pretty-print.h (pp_c_ws_string): Declare.
14391 2009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
14392 Roland McGrath <roland@redhat.com>
14394 * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
14395 (ENABLE_LD_BUILDID): New configuration option.
14396 * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
14397 (LINK_BUILDID_SPEC): New macro.
14398 (init_spec): If defined, prepend it between LINK_EH_SPEC and
14400 * doc/install.texi: Document --enable-linker-build-id option.
14401 * configure: Rebuild.
14402 * config.in: Rebuild.
14404 2009-04-30 Adam Nemet <anemet@caviumnetworks.com>
14406 * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
14407 MIPS_GP_SAVE_AREA_SIZE): Define new macros.
14408 (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD. Use
14409 MIPS_GP_SAVE_AREA_SIZE.
14410 * config/mips/mips.c (struct mips_frame_info): Update comment
14411 before arg_pointer_offset and hard_frame_pointer_offset.
14412 (mips_compute_frame_info): Update diagram before function: to
14413 correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
14414 indicate the position of frame_pointer_rtx with -fstack-protector and
14415 to show args_size. Don't allocate cprestore area for leaf functions
14416 if FRAME_GROWS_DOWNWARD. Use MIPS_GP_SAVE_AREA_SIZE to set
14418 (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
14420 2009-04-30 Michael Matz <matz@suse.de>
14422 PR tree-optimization/39955
14423 * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
14425 2009-04-30 Dave Korn <dave.korn.cygwin@gmail.com>
14427 * ira.c (setup_cover_and_important_classes): Use safe macro
14428 REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
14430 * genpreds.c (write_tm_preds_h): Output suitable definition of
14431 REG_CLASS_FOR_CONSTRAINT.
14433 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
14435 * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
14437 * bitmap.c (bitmap_descriptor): Likewise.
14438 * ggc-common.c (loc_descriptor): Likewise.
14439 * varray.c (varray_descriptor): Likewise.
14440 * vec.c (vec_descriptor): Likewise.
14442 2009-04-30 Eric Botcazou <ebotcazou@adacore.com>
14444 * Makefile.in (dce.o): Add $(EXCEPT_H).
14445 * dce.c: Include except.h and delete redundant vector definitions.
14446 (deletable_insn_p): Return false for non-call insns that can throw
14449 2009-04-30 Steven Bosscher <steven@gcc.gnu.org>
14451 * gcse.c (ae_gen): Remove.
14452 (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
14453 and make non-static function to make it available in store-motion.c.
14454 Update call sites with search-and-replace.
14455 (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
14456 extract_mentioned_regs, extract_mentioned_regs_helper,
14457 find_moveable_store, compute_store_table, load_kills_store, find_loads,
14458 store_killed_in_insn, store_killed_after, store_killed_before,
14459 build_store_vectors, insert_insn_start_basic_block, insert-store,
14460 remove_reachable_equiv_notes, replace_store_insn, delete_store,
14461 free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
14462 execute_rtl_store_motion, pass_rtl_store_motion): Move to...
14463 * store-motion.c: ...new file. Also copy data structures from gcse.c
14464 and clean up to remove parts not used by store motion.
14465 * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
14466 * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
14468 2009-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14471 * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
14472 when optimizing for size.
14474 2009-04-30 Hans-Peter Nilsson <hp@axis.com>
14476 * gcse.c (gcse_constant_p): Fix typo in last change.
14478 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
14480 * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
14482 2009-04-30 Andreas Krebbel <krebbel1@de.ibm.com>
14484 * gcse.c (gcse_constant_p): Make sure the constant is sharable.
14486 2009-04-29 James E. Wilson <wilson@codesourcery.com>
14488 * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
14489 CONST_HIGH_PART result.
14491 2009-04-29 Anatoly Sokolov <aesok@post.ru>
14493 * config/avr/avr.c (initial_elimination_offset): Rename to
14494 avr_initial_elimination_offset.
14495 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
14496 change return type to bool.
14497 (avr_can_eliminate): New function.
14498 * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
14499 (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
14500 (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
14501 * config/avr/avr-protos.h (initial_elimination_offset): Rename to
14502 avr_initial_elimination_offset.
14503 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
14504 (avr_initial_elimination_offset): Define.
14506 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
14507 Steven Bosscher <steven@gcc.gnu.org>
14509 PR rtl-optimization/39938
14510 * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
14511 * cfgrtl.c: Include insn-attr.h.
14512 (rest_of_pass_free_cfg): New function.
14513 (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
14514 * resource.c (init_resource_info): Remove call to df_analyze.
14516 2009-04-29 Richard Guenther <rguenther@suse.de>
14519 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
14520 allow conversion to signed integers.
14522 2009-04-29 Richard Guenther <rguenther@suse.de>
14524 * tree-cfg.c (verify_gimple_assign_binary): Allow vector
14525 shifts of floating point vectors if the shift amount is
14526 a constant multiple of the element size.
14528 2009-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
14529 Michael Matz <matz@suse.de>
14531 PR middle-end/39927
14533 * tree-outof-ssa.c (emit_partition_copy): New function.
14534 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
14535 insert_part_to_rtx_on_edge): Perform the partition base var
14536 copy using emit_partition_copy.
14537 (insert_value_copy_on_edge): Convert constants to the right mode.
14538 (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
14539 (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
14541 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
14543 * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
14544 scan backwards to try to find a constant to initialize it.
14546 * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
14547 insn before the loop_end instruction, don't look past labels.
14549 2009-04-29 Richard Guenther <rguenther@suse.de>
14551 PR middle-end/39937
14552 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
14553 loose type conversions.
14554 (forward_propagate_addr_expr): Fix tuplification bug. Remove
14555 stmts only if there are no uses of its definition.
14557 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
14559 * config/bfin/bfin.h (splitting_loops): Declare.
14560 * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
14561 Reorder bit definitions to be ascending.
14562 (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
14563 * config/bfin/bfin.c (splitting_loops): New variable.
14564 (bfin_cpus): Add WA_LOAD_LCREGS as needed.
14565 (struct loop_info): Remove members INIT and LOOP_INIT.
14566 (bfin_optimize_loop): Don't set them. Reorder the code that generates
14567 the LSETUP sequence. Allow LC to be loaded from any register, but
14568 also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
14569 (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
14571 * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
14572 of reload_completed.
14575 * config/bfin/bfin.md (movsi_insn): Refine constraints.
14577 2009-04-29 Rafael Avila de Espindola <espindola@google.com>
14579 * Makefile.in (PLUGIN_VERSION_H): New.
14580 (OBJS-common): Remove plugin-version.o.
14581 (plugin.o): Depend on (PLUGIN_VERSION_H).
14582 (plugin-version.o): Remove.
14583 * configure: Regenerate
14584 * configure.ac: Create plugin-version.h.
14585 * gcc-plugin.h (plugin_gcc_version): Remove.
14586 (plugin_default_version_check): Change signature.
14587 * plugin-version.c: Remove.
14588 * plugin.c: Include plugin-version.h.
14589 (str_plugin_gcc_version_name): Remove.
14590 (try_init_one_plugin): Pass gcc version to plugin_init.
14591 (plugin_default_version_check): Both gcc and plugin versions are now
14594 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
14596 * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
14597 problematic last insns. Test for TYPE_CALL rather than CALL_P.
14598 Remove special case testing for last insn of inner loops. Don't fail
14599 if the loop ends with a jump, emit an extra nop instead.
14601 * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
14602 DREGS rather than comparing directly. Remove code that tries to
14603 account for latencies.
14605 2009-04-29 Richard Guenther <rguenther@suse.de>
14607 PR tree-optimization/39941
14608 * tree-ssa-pre.c (eliminate): Schedule update-ssa after
14609 eliminating an indirect call.
14611 2009-04-29 Richard Guenther <rguenther@suse.de>
14613 * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
14614 parameter. Allow invariants as base if !require_lvalue.
14615 (verify_gimple_assign_single): Adjust.
14617 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
14619 * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
14620 (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
14621 ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
14622 ssubhi3, ssaddhi3_parts and sssubhi3_parts.
14623 (flag_mulhi3_parts): Produce a HImode output rather than trying to set
14625 * config/bfin/bfin.c (bfin_expand_builtin,
14626 case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
14628 2009-04-28 Richard Guenther <rguenther@suse.de>
14630 * tree-vect-loop.c (get_initial_def_for_induction): Use
14631 correct types for pointer increment.
14633 2009-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14635 * toplev.c (print_version): Update GMP version string calculation.
14637 2009-04-28 Eric Botcazou <ebotcazou@adacore.com>
14639 PR rtl-optimization/39938
14640 * resource.c (init_resource_info): Add call to df_analyze.
14642 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
14644 * config/alpha/alpha.md (usegp): Cast the result of
14645 alpha_find_lo_sum_using_gp to enum attr_usegp.
14646 * config/alpha/alpha.c (override_options): Remove end-of-structure
14647 marker element from cpu_table. Use array size of cpu_table to handle
14648 -mcpu and -mtune options.
14649 (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
14651 2009-04-28 Joseph Myers <joseph@codesourcery.com>
14653 * config.gcc (powerpc*-*-* | rs6000-*-*): Add
14654 rs6000/option-defaults.h to tm_file. Support cpu_32, cpu_64,
14655 tune_32 and tune_64.
14656 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
14657 support on PowerPC.
14658 * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
14659 * config/rs6000/option-defaults.h: ... here. New file.
14660 (OPT_64, OPT_32): Define.
14661 (MASK_64BIT): Define to 0 if not already defined.
14662 (OPT_ARCH64, OPT_ARCH32): Define.
14663 (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
14666 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14668 * config/arm/arm.c (arm_override_options): Emit error on using
14671 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
14673 PR rtl-optimization/39914
14674 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
14675 registers for allocnos created from user-defined variables only
14676 when not optimizing.
14678 2009-04-28 Richard Guenther <rguenther@suse.de>
14680 PR middle-end/39937
14681 * fold-const.c (fold_binary): Use distribute_real_division only
14684 2009-04-28 Steve Ellcey <sje@cup.hp.com>
14686 * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
14687 add hpux-stdint.h to tm_file.
14688 (hppa[12]*-*-hpux11*): Ditto.
14689 (ia64*-*-hpux*): Ditto.
14690 * config/hpux-stdint.h: New.
14691 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
14692 __STDC_EXT__ for all compiles.
14693 * config/pa/pa-hpux.h: Ditto.
14694 * config/pa/pa-hpux10.h: Ditto.
14695 * config/pa/pa-hpux11.h: Ditto.
14697 2009-04-28 Catherine Moore <clm@codesourcery.com>
14699 * debug.h (set_name): Add comment.
14701 2009-04-28 Andrew Pinski <pinskia@gmail.com>
14704 * config/darwin.c (machopic_gen_offset): Check
14705 currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
14706 * config/arm/arm.c (require_pic_register): Likewise.
14708 2009-04-28 Paolo Bonzini <bonzini@gnu.org>
14710 * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
14711 m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
14712 m32c_promote_prototypes): Delete.
14714 2009-04-28 Michael Matz <matz@suse.de>
14716 PR middle-end/39922
14717 * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
14720 2009-04-28 Richard Guenther <rguenther@suse.de>
14722 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
14724 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14726 * config/arm/arm-cores.def: Add support for arm1156t2f-s.
14727 * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
14728 * config/arm/arm-tune.md: Regenerate.
14730 2009-04-28 Alexander Monakov <amonakov@ispras.ru>
14732 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
14733 block if there are complex incoming edges.
14734 (sel_merge_blocks): Remove useless assert.
14735 (sel_redirect_edge_and_branch): Check that edge was redirected.
14736 * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
14737 (sel_find_rgns): Delete declaration.
14738 * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
14739 the region when it is not a preheader.
14741 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
14744 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
14746 2009-04-28 Richard Guenther <rguenther@suse.de>
14748 * tree.h (SSA_NAME_VALUE): Remove.
14749 (struct tree_ssa_name): Remove value_handle member.
14750 * tree-vrp.c (execute_vrp): Initialize/free the value-handle
14751 array for jump threading.
14752 * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
14754 * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
14755 * tree-flow.h (threadedge_initialize_values): Declare.
14756 (threadedge_finalize_values): Likewise.
14757 * tree-ssa-threadedge.c (ssa_name_values): New global variable.
14758 (SSA_NAME_VALUE): Define.
14759 (threadedge_initialize_values): New function.
14760 (threadedge_finalize_values): Likewise.
14761 * tree-ssa-dom.c (ssa_name_values): New global variable.
14762 (SSA_NAME_VALUE): Define.
14763 (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
14765 2009-04-28 Ira Rosen <irar@il.ibm.com>
14767 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
14768 Use REPORT_VECTORIZED_LOCATIONS instead
14769 REPORT_VECTORIZED_LOOPS.
14770 * tree-vectorizer.c (vect_verbosity_level): Make static.
14771 (vect_loop_location): Rename to vect_location.
14772 (vect_set_verbosity_level): Update comment.
14773 (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
14775 (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
14776 and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
14777 instead REPORT_UNVECTORIZED_LOOPS.
14778 * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
14779 and vect_loop_def to vect_external_def and vect_internal_def.
14780 (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
14781 and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
14782 REPORT_UNVECTORIZED_LOCATIONS.
14783 (enum vect_relevant): Update comment. Rename vect_unused_in_loop
14784 and vect_used_in_loop and to vect_unused_in_scope and
14785 vect_used_in_scope.
14786 (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
14787 (vect_verbosity_level): Remove declaration.
14788 (vect_analyze_operations): Likewise.
14789 (vect_analyze_stmt): Declare.
14790 * tree-vect-loop.c (vect_determine_vectorization_factor): Use
14791 REPORT_UNVECTORIZED_LOCATIONS.
14792 (vect_get_loop_niters): Fix indentation.
14793 (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
14794 (vect_analyze_loop_operations): New function.
14795 (vect_analyze_loop): Call vect_analyze_loop_operations instead of
14796 vect_analyze_operations.
14797 (vect_is_simple_reduction): Use new names.
14798 (vectorizable_live_operation, vect_transform_loop): Likewise.
14799 * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
14800 to specify whether the data references can be a part of interleaving
14802 (vect_analyze_data_ref_dependence): Use new names.
14803 (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
14804 (vect_create_addr_base_for_vector_ref): Remove redundant code.
14805 * tree-vect-patterns.c (widened_name_p): Use new names.
14806 (vect_recog_dot_prod_pattern): Likewise.
14807 * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
14808 (process_use, vect_mark_stmts_to_be_vectorized,
14809 vect_model_simple_cost, vect_model_store_cost,
14810 vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
14811 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
14812 vectorizable_operation, vectorizable_type_demotion,
14813 vectorizable_type_promotion, vectorizable_store, vectorizable_load,
14814 vectorizable_condition): Likewise.
14815 (vect_analyze_operations): Split into vect_analyze_loop_operations
14817 (vect_analyze_stmt): ... new function.
14818 (new_stmt_vec_info): Use new names.
14819 (vect_is_simple_use): Use new names and fix comment.
14820 * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
14821 (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
14823 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
14826 * config/i386/i386.c (print_operand) ['Z']: Handle floating point
14827 and integer modes for x87 operands. Do not ICE for unsupported size,
14828 generate error instead. Generate error for unsupported operand types.
14829 ['z']: Do not handle HImode memory operands specially. Warning
14830 for floating-point operands. Fallthru to 'Z' for unsupported operand
14831 types. Do not ICE for unsupported size, generate error instead.
14832 (output_387_binary_op): Use %Z to output operands.
14833 (output_fp_compare): Ditto.
14834 (output_387_reg_move): Ditto.
14836 2009-04-28 Ben Elliston <bje@au.ibm.com>
14841 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14843 * builtins.c (c_strlen): Do not warn here.
14844 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
14845 * c-common.c (pointer_int_sum): Take an explicit location.
14846 Warn about offsets out of bounds.
14847 * c-common.h (pointer_int_sum): Adjust declaration.
14849 2009-04-27 Ian Lance Taylor <iant@google.com>
14851 * collect2.c (is_ctor_dtor): Change type of ret field in struct
14853 * dce.c (run_fast_df_dce): Change type of old_flags to int.
14854 * df-core.c (df_set_flags): Change return type to int. Change
14855 type of old_flags to int.
14856 (df_clear_flags): Likewise.
14857 * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
14858 (df_get_conditional_uses): Likewise.
14859 * df.h (df_set_flags, df_clear_flags): Update declarations.
14860 * dwarf2out.c (struct indirect_string_node): Change type of form
14861 field to enum dwarf_form.
14862 (AT_string_form): Change return type to enum dwarf_form.
14863 * fixed-value.c (fixed_compare): Add cast to enum type.
14864 * fwprop.c (update_df): Change 0 to VOIDmode.
14865 * gensupport.c: Change 0 to UNKNOWN.
14866 * gimple.h (gimple_cond_code): Add cast to enum type.
14867 * haifa-sched.c (reemit_notes): Add cast to enum type.
14868 * hooks.c (hook_int_void_no_regs): Remove function.
14869 * hooks.h (hook_int_void_no_regs): Remove declaration.
14870 * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
14871 * predict.c (combine_predictions_for_insn): Add casts to enum type.
14872 * real.c (real_arithmetic): Add cast to enum type.
14873 (real_compare): Likewise.
14874 * target.h (struct gcc_target): Change return type of
14875 branch_target_register_class to enum reg_class.
14876 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
14877 default_branch_target_register_class.
14878 * targhooks.c (default_branch_target_register_class): New function.
14879 * targhooks.h (default_branch_target_register_class): Declare.
14880 * tree-data-ref.c (print_direction_vector): Add cast to enum type.
14881 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
14883 * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
14885 * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
14886 vect_uninitialized_def. Change 0 to ERROR_MARK.
14887 * tree-vect-stmts.c (supportable_widening_operation): Don't
14888 initialize icode1 and icode2.
14889 * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
14890 * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
14892 (cmn_err_flag_specs): Change 0 to STD_C89.
14893 (cmn_err_char_table): Likewise.
14894 * config/arm/arm.c (get_arm_condition_code): Change type of code
14895 to enum arm_cond_code.
14896 (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
14897 (IWMMXT_BUILTIN2): Likewise.
14898 (neon_builtin_type_bits): Don't define typedef.
14899 (neon_builtin_datum): Change type of bits field to int.
14900 (arm_expand_neon_args): Add cast to enum type.
14901 * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
14903 * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN. Add
14904 casts to enum type.
14905 * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
14907 * config/mips/mips.md (jal_macro): Return enum constant.
14908 (single_insn): Likewise.
14909 * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
14911 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14912 casts to enum type.
14913 * config/s390/s390.c (s390_tune_flags): Change type to int.
14914 (s390_arch_flags): Likewise.
14915 (s390_handle_arch_option): Change flags field of struct pta to int.
14916 * config/s390/s390.h (s390_tune_flags): Update declaration.
14917 (s390_arch_flags): Likewise.
14918 * config/sh/sh.c (prepare_move_operands): Compare
14919 tls_symbolic_operand result with enum constant.
14920 (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
14921 (sh_expand_prologue): Add cast to enum type.
14922 (sh_expand_epilogue): Likewise.
14923 (tls_symbolic_operand): Change return type to enum tls_model.
14924 (fpscr_set_from_mem): Add cast to enum type.
14925 (legitimize_pic_address): Compare tls_symbolic_operand result with
14927 (sh_target_reg_class): Change return type to enum reg_class.
14928 * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
14930 * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
14931 * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
14932 * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
14933 (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
14934 (delayed_branch, tls_call_delay): Likewise.
14935 (eligible_for_sibcall_delay): Likewise.
14936 (eligible_for_return_delay): Likewise.
14937 * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
14938 (spu_expand_builtin_1): Likewise.
14940 * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
14941 for all types of conversions.
14942 (output_init_element): Issue -Wc++-compat warning if needed when
14943 initializing a bitfield with enum type.
14944 * c-parser.c (c_parser_expression): Set original_type to
14945 original_type of right hand operand of comma operator.
14947 2009-04-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14949 * doc/c-tree.texi (Types, Functions, Expression trees): Fix
14951 * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
14952 * doc/cpp.texi (Standard Predefined Macros)
14953 (Implementation-defined behavior): Likewise.
14954 * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
14955 * doc/gimple.texi (GIMPLE Exception Handling)
14956 (@code{GIMPLE_ASSIGN}): Likewise.
14957 * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
14958 * doc/invoke.texi (Warning Options, Optimize Options)
14959 (AVR Options, Darwin Options): Likewise.
14960 (Optimize Options): Reformulate -fwhole-program description.
14961 * doc/loop.texi (Lambda): Likewise.
14962 * doc/md.texi (Output Template, Define Constraints)
14963 (Standard Names, Insn Splitting): Likewise.
14964 * doc/options.texi (Option properties): Likewise.
14965 * doc/passes.texi (Tree-SSA passes): Likewise.
14966 * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
14967 * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
14968 (File Names and DBX): Likewise.
14969 * doc/trouble.texi (Incompatibilities): Likewise.
14971 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
14973 * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
14974 instruction is correct.
14976 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
14978 Allow non-constant arguments to conversion intrinsics.
14979 * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
14980 * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
14981 * spu.c (print_operand): Handle 'v' and 'w'.
14982 (exp2_immediate_p, spu_gen_exp2): Define.
14983 * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
14984 spu_convtf_1): Update parameter descriptions.
14985 * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
14986 * constraints.md ('v', 'w'): New.
14987 * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
14989 (i2f, I2F): New define_mode_attr.
14990 (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
14991 floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
14992 fixuns_truncv4sfv4si2): Update to use mode attribute.
14993 (float<mode><i2f>2_mul, float<mode><i2f>2_div,
14994 fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
14995 floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
14996 patterns for combine.
14998 2009-04-27 Steven Bosscher <steven@gcc.gnu.org>
15000 * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
15001 (cprop, hoist, pre, store_motion): New debug counters.
15002 * tree-pass.h (pass_tracer): Move to list of gimple passes, it
15003 is not an RTL pass anymore.
15004 (pass_profiling): Remove extern decl for pass removed in 2005.
15005 (pass_gcse, pass_jump_bypass): Remove.
15006 * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
15007 to 0 for clean state.
15008 * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
15009 * cse.c (gate_handle_cse_after_global_opts,
15010 rest_of_handle_cse_after_global_opts): New functions.
15011 (pass_cse_after_global_opts): New pass, does local CSE.
15012 * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
15013 (TV_CPROP): New timevar.
15014 * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
15015 (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
15016 (gcse_main, recompute_all_luids): Remove.
15017 (compute_hash_table_work): Call max_reg_num instead of reading
15019 (cprop_jump): Don't set run_jump_opt_after_gcse.
15020 (constprop_register): Always allow to alter jumps.
15021 (cprop_insn): Likewise.
15022 (do_local_cprop): Likewise.
15023 (local_cprop_pass): Likewise. Return non-zero if something changed.
15024 (cprop): Remove function, fold interesting bits into one_cprop_pass.
15025 (find_implicit_sets): Add note about missed optimization opportunity.
15026 (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
15027 pass_rtl_cprop execute function.
15028 Don't bother tracking the pass number, each pass gets its own dumpfile
15030 Always allow to alter jumpsand bypass jumps.
15031 (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
15032 will just find no suitable set.
15033 (pre_edge_insert): Fix dumping, this function is for PRE only.
15034 (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
15035 pass_rtl_pre execute function.
15036 (hoist_code): Return non-zero if something changed. Keep track of
15037 substitutions and insertions for statistics gathering similar to PRE.
15038 (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
15039 called from the pass_rtl_hoist execute function. Show pass statistics.
15040 (compute_store_table): Use max_reg_num directly instead of using the
15041 formerly global max_gcse_regno.
15042 (build_store_vectors): Likewise.
15043 (replace_store_insn): Fix dumping.
15044 (store_motion): Rename to ...
15045 (one_store_motion_pass): ... this. Rewrite to be "the" STORE_MOTION
15046 pass, called from the pass_rtl_store_motion execute function. Keep
15047 track of substitutions and insertions for statistics gathering similar
15049 (bypass_jumps): Remove, fold interesting bits into ...
15050 (one_cprop_pass): ... this. Rewrite to be "the" CPROP pass, called
15051 from the pass_rtl_cprop execute function.
15052 (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
15053 pass_jump_bypass): Remove.
15054 (gate_handle_gcse, rest_of_handle_gcse): Remove.
15055 (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
15056 (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
15057 (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
15058 (gate_rtl_store_motion, execute_rtl_store_motion,
15059 pass_rtl_store_motion): New.
15060 * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
15061 make it clear that -fcse-skip-blocks is a no-op for backward compat.
15062 * passes.c (init_optimization_passes): Remove pass_gcse and
15063 pass_jump_bypass. Schedule cprop, pre, hoist, cprop, store_motion,
15064 and cse_after_global_opts in place of pass_gcse. Schedule cprop
15065 instead of pass_jump_bypass.
15067 2009-04-27 Richard Guenther <rguenther@suse.de>
15069 PR middle-end/39928
15070 * gimplify.c (gimplify_expr): If we are required to create
15071 a temporary make sure it ends up as register.
15073 2009-04-27 H.J. Lu <hongjiu.lu@intel.com>
15076 * config/i386/i386.c (construct_container): Don't call
15077 gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
15078 X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
15080 2009-04-27 Michael Matz <matz@suse.de>
15082 * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
15083 (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
15084 * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
15085 (dump_replaceable_exprs): Take a bitmap.
15086 * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
15088 (expand_gimple_basic_block): Likewise.
15089 * tree-ssa-ter.c (struct temp_expr_table_d): Make
15090 replaceable_expressions member a bitmap.
15091 (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
15092 (mark_replaceable): Likewise.
15093 (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
15094 * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
15096 2009-04-27 Richard Guenther <rguenther@suse.de>
15098 * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
15099 (verify_stmts): Dispatch to gimple/type verification code.
15100 * tree-inline.c (remap_gimple_op_r): Work around C++ FE
15101 issue with call argument types.
15103 2009-04-27 Michael Matz <matz@suse.de>
15105 * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
15106 (init_update_ssa, delete_update_ssa, update_ssa): Remove references
15109 2009-04-27 Richard Sandiford <rdsandiford@googlemail.com>
15110 Eric Botcazou <ebotcazou@adacore.com>
15112 * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
15113 a label's basic block.
15114 (mark_target_live_regs): Tidy and rework obsolete comments.
15115 Change back DF problem to LIVE. If a label starts a basic block,
15116 assume that all registers that used to be live then still are.
15117 (init_resource_info): If a label starts a basic block, set its
15118 BLOCK_FOR_INSN accordingly.
15119 (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
15121 2009-04-27 Richard Guenther <rguenther@suse.de>
15123 * tree-flow-inline.h (function_ann): Remove.
15124 (get_function_ann): Likewise.
15125 * tree-dfa.c (create_function_ann): Remove.
15126 * tree-flow.h (struct static_var_ann_d): Remove.
15127 (struct function_ann_d): Likewise.
15128 (union tree_ann_d): Remove fdecl member.
15129 (function_ann_t): Remove.
15130 (function_ann, get_function_ann, create_function_ann): Remove
15133 2009-04-27 Uros Bizjak <ubizjak@gmail.com>
15135 * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
15137 2009-04-27 Jan Hubicka <jh@suse.cz>
15139 * ipa-pure-const.c (struct funct_state_d): New fields
15140 state_previously_known, looping_previously_known; remove
15141 state_set_in_source.
15142 (analyze_function): Use new fields.
15143 (propagate): Avoid assumption that state_set_in_source imply
15146 * tree-ssa-loop-niter.c (finite_loop_p): New function.
15147 * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
15148 * cfgloop.h (finite_loop_p): Declare.
15150 2009-04-26 Michael Matz <matz@suse.de>
15152 * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
15154 2009-04-26 Michael Matz <matz@suse.de>
15156 * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
15157 pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
15158 * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
15159 pass_mark_used_blocks): Remove.
15160 * tree-optimize.c (pass_free_datastructures,
15161 execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
15162 * passes.c (init_optimization_passes): Don't call
15163 pass_mark_used_blocks, remove dead code.
15165 2009-04-26 H.J. Lu <hongjiu.lu@intel.com>
15167 * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
15168 * tree-ssa-live.h (register_ssa_partition): Likewise.
15170 2009-04-26 Michael Matz <matz@suse.de>
15173 * builtins.c (fold_builtin_next_arg): Handle SSA names.
15174 * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
15175 * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
15177 (compare_pairs): Swap cost comparison.
15178 (coalesce_ssa_name): Don't use change_partition_var.
15179 * tree-nrv.c (struct nrv_data): Add modified member.
15180 (finalize_nrv_r): Set it.
15181 (tree_nrv): Use it to update statements.
15182 (pass_nrv): Require PROP_ssa.
15183 * tree-mudflap.c (mf_decl_cache_locals,
15184 mf_build_check_statement_for): Use make_rename_temp.
15185 (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
15186 * alias.c (find_base_decl): Handle SSA names.
15187 * emit-rtl (set_reg_attrs_for_parm): Make non-static.
15188 (component_ref_for_mem_expr): Don't leak SSA names into RTL.
15189 * rtl.h (set_reg_attrs_for_parm): Declare.
15190 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
15191 to "optimized", remove unused locals at finish.
15192 (execute_free_datastructures): Make global, call
15193 delete_tree_cfg_annotations.
15194 (execute_free_cfg_annotations): Don't call
15195 delete_tree_cfg_annotations.
15197 * ssaexpand.h: New file.
15198 * expr.c (toplevel): Include ssaexpand.h.
15199 (expand_assignment): Handle SSA names the same as register variables.
15200 (expand_expr_real_1): Expand SSA names.
15201 * cfgexpand.c (toplevel): Include ssaexpand.h.
15202 (SA): New global variable.
15203 (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
15204 (SSAVAR): New macro.
15205 (set_rtl): New helper function.
15206 (add_stack_var): Deal with SSA names, use set_rtl.
15207 (expand_one_stack_var_at): Likewise.
15208 (expand_one_stack_var): Deal with SSA names.
15209 (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
15210 before unique numbers.
15211 (expand_stack_vars): Use set_rtl.
15212 (expand_one_var): Accept SSA names, add asserts for them, feed them
15213 to above subroutines.
15214 (expand_used_vars): Expand all partitions (without default defs),
15215 then only the local decls (ignoring those expanded already).
15216 (expand_gimple_cond): Remove edges when jumpif() expands an
15217 unconditional jump.
15218 (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
15219 or remove abnormal edges. Ignore insns setting the LHS of a TERed
15221 (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
15222 members of SA; deal with PARM_DECL partitions here; expand
15223 all PHI nodes, free tree datastructures and SA. Commit instructions
15224 on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
15225 (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
15226 info and statements at start, collect garbage at finish.
15227 * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
15228 (VAR_ANN_PARTITION) Remove.
15229 (change_partition_var): Don't declare.
15230 (partition_to_var): Always return SSA names.
15231 (var_to_partition): Only accept SSA names.
15232 (register_ssa_partition): Only check argument.
15233 * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
15235 (delete_var_map): Don't free it.
15236 (var_union): Only accept SSA names, simplify.
15237 (partition_view_init): Mark only useful SSA names as used.
15238 (partition_view_fini): Only deal with SSA names.
15239 (change_partition_var): Remove.
15240 (dump_var_map): Use ssa_name instead of partition_to_var member.
15241 * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
15243 * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
15244 (struct _elim_graph): New member const_dests; nodes member vector of
15246 (set_location_for_edge): New static helper.
15247 (create_temp): Remove.
15248 (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
15249 insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
15250 (new_elim_graph): Allocate const_dests member.
15251 (clean_elim_graph): Truncate const_dests member.
15252 (delete_elim_graph): Free const_dests member.
15253 (elim_graph_size): Adapt to new type of nodes member.
15254 (elim_graph_add_node): Likewise.
15255 (eliminate_name): Likewise.
15256 (eliminate_build): Don't take basic block argument, deal only with
15257 partition numbers, not variables.
15258 (get_temp_reg): New static helper.
15259 (elim_create): Use it, deal with RTL temporaries instead of trees.
15260 (eliminate_phi): Adjust all calls to new signature.
15261 (assign_vars, replace_use_variable, replace_def_variable): Remove.
15262 (rewrite_trees): Only do checking.
15263 (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
15264 (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
15265 init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
15266 contains_tree_r, MAX_STMTS_IN_LATCH,
15267 process_single_block_loop_latch, analyze_edges_for_bb,
15268 perform_edge_inserts): Remove.
15269 (expand_phi_nodes): New global function.
15270 (remove_ssa_form): Take ssaexpand parameter. Don't call removed
15271 functions, initialize new parameter, remember partitions having a
15273 (finish_out_of_ssa): New global function.
15274 (rewrite_out_of_ssa): Make global. Adjust call to remove_ssa_form,
15275 don't reset in_ssa_p here, don't disable TER when mudflap.
15276 (pass_del_ssa): Remove.
15277 * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
15279 (execute_free_datastructures): Declare.
15280 * Makefile.in (SSAEXPAND_H): New variable.
15281 (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
15282 * basic-block.h (commit_one_edge_insertion): Declare.
15283 * passes.c (init_optimization_passes): Move pass_nrv and
15284 pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
15285 pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
15286 * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
15287 (redirect_branch_edge): Deal with super block when expanding, split
15288 out jump patching itself into ...
15289 (patch_jump_insn): ... here, new static helper.
15291 2009-04-26 Michael Matz <matz@suse.de>
15293 * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
15294 beyond num_ssa_names.
15295 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
15296 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
15298 2009-04-26 Jakub Jelinek <jakub@redhat.com>
15300 PR inline-asm/39543
15301 * fwprop.c (forward_propagate_asm): New function.
15302 (forward_propagate_and_simplify): Propagate also into __asm, if it
15303 doesn't increase the number of referenced registers.
15306 * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
15308 2009-04-26 Jakub Jelinek <jakub@redhat.com>
15310 * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
15311 note_nonlocal_vla_type for nonlocal VLAs.
15312 (note_nonlocal_vla_type, note_nonlocal_block_vlas,
15313 contains_remapped_vars, remap_vla_decls): New functions.
15314 (convert_nonlocal_reference_stmt): If not optimizing, call
15315 note_nonlocal_block_vlas on GIMPLE_BIND block vars.
15316 (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
15317 if it wasn't found in var_map.
15318 (finalize_nesting_tree_1): Call remap_vla_decls. If outermost
15319 GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
15320 to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
15322 * gimplify.c (nonlocal_vlas): New variable.
15323 (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
15325 (gimplify_body): Create and destroy nonlocal_vlas.
15327 * dwarf2out.c (loc_descr_plus_const): New function.
15328 (build_cfa_aligned_loc, tls_mem_loc_descriptor,
15329 mem_loc_descriptor, loc_descriptor_from_tree_1,
15330 descr_info_loc, gen_variable_die): Use it.
15332 * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
15333 !TREE_STATIC VAR_DECLs.
15334 * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
15335 DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
15336 (gen_variable_die): Likewise. Don't look at TREE_PRIVATE if
15337 DECL_BY_REFERENCE is valid.
15338 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
15339 for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
15340 * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
15341 Copy DECL_BY_REFERENCE.
15342 (struct nesting_copy_body_data): New type.
15343 (nesting_copy_decl): New function.
15344 (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
15345 if they have variable length.
15347 2009-04-26 Michael Matz <matz@suse.de>
15349 * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
15350 mark new temporaries for renaming.
15352 2009-04-26 Joseph Myers <joseph@codesourcery.com>
15355 * c-decl.c (global_bindings_p): Return negative value.
15356 (c_variable_size): New. Based on variable_size from
15358 (grokdeclarator): Call c_variable_size not variable_size.
15360 2009-04-26 Uros Bizjak <ubizjak@gmail.com>
15362 * config/i386/i386.c (print_operand) ['z']: Fix typo.
15364 2009-04-26 Kai Tietz <kai.tietz@onevision.com>
15366 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
15367 Redefine it to just use mingw/include.
15368 (ASM_SPEC): Rules for -m32 and -m64.
15369 (LINK_SPEC): Use Likewise.
15370 (SPEC_32): New define.
15371 (SPEC_64): Likewise.
15372 (SUB_LINK_SPEC): Likewise.
15373 (MULTILIB_DEFAULTS): New define.
15374 * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
15375 Add multilib options.
15376 (MULTILIB_DIRNAMES): Likewise.
15377 (MULTILIB_OSDIRNAMES): Likewise.
15378 (LIBGCC): Likewise.
15379 (INSTALL_LIBGCC): Likewise.
15381 2009-04-26 Joseph Myers <joseph@codesourcery.com>
15384 * c-tree.h (enum c_inline_static_type): New.
15385 (record_inline_static): Declare.
15386 * c-decl.c (struct c_inline_static, c_inline_statics,
15387 record_inline_static, check_inline_statics): New.
15388 (pop_file_scope): Call check_inline_statics.
15389 (start_decl): Call record_inline_static instead of pedwarning
15390 directly for static in inline function.
15391 * c-typeck.c (build_external_ref): Call record_inline_static
15392 instead of pedwarning directly for static referenced in inline
15395 2009-04-26 Steven Bosscher <steven@gcc.gnu.org>
15397 * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
15398 not new but only being rescanned.
15399 * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
15400 reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
15401 alloc_reg_set_mem, free_reg_set_mem, record_one_set,
15402 record_set_info, compute_set, grealloc): Remove.
15403 (recompute_all_luids): New function.
15404 (gcse_main): Don't compute sets, and don't do related memory
15405 allocations/free-ing. If something changed before the end of the
15406 pass, update LUIDs using recompute_all_luids.
15407 (alloc_gcse_mem): Don't compute LUIDs. Don't allocate reg_set memory.
15408 (free_gcse_mem): Don't free it either.
15409 (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
15410 Use the df insn LUIDs.
15411 (load_killed_in_block): Likewise.
15412 (compute_hash_table_work): Don't compute reg_set_in_block.
15413 (compute_transp): Use DF_REG_DEF_CHAINs.
15414 (local_cprop_pass): Don't use compute_sets and related functions.
15415 (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
15416 Use get_max_uid() instead of max_cuid.
15417 (insert_insn_end_basic_block, pre_insert_copy_insn,
15418 update_ld_motion_stores): Don't try to
15419 keep reg_set tables up to date.
15420 (pre_insert_copies): Use df insn LUIDs.
15421 (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
15422 (reg_set_info): Don't use extra bitmap argument.
15423 (compute_store_table): Don't compute reg_set_in_block. Use DF scan
15424 information to compute regs_set_in_block.
15425 (free_store_memory, store_motion): Don't nullify reg_set_in_block.
15426 (bypass_jumps): Don't use compute_sets and friends.
15428 2009-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15431 * opts.c (undocumented_msg): Do not leave blank even with
15434 2009-04-25 Joseph Myers <joseph@codesourcery.com>
15436 * c-decl.c (build_enumerator): Allow values folding to integer
15437 constants but not integer constant expressions with a pedwarn if
15440 2009-04-25 Joseph Myers <joseph@codesourcery.com>
15443 * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
15444 with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
15445 type is an integer constant.
15447 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
15450 * config/i386/i386.c (print_operand) ['z']: Revert handling of
15453 2009-04-25 Joseph Myers <joseph@codesourcery.com>
15456 * c-decl.c (grokdeclarator): Diagnose declarations of functions
15457 with variably modified return type and no storage class
15458 specifiers, except for the case of nested functions. Distinguish
15459 extern declarations of functions with variably modified return
15460 types from those of objects with variably modified types.
15462 2009-04-25 Jan Hubicka <jh@suse.cz>
15464 * tree.c (list_equal_p): New function.
15465 * tree.h (list_equal_p): Declare.
15466 * coretypes.h (edge_def, edge, const_edge, basic_block_def
15467 basic_block_def, basic_block, const_basic_block): New.
15468 * tree-eh.c (make_eh_edge): EH edges are not abnormal.
15469 (redirect_eh_edge): New function.
15470 (make_eh_edge_update_phi): EH edges are not abnormal.
15471 * except.c: Include tree-flow.h.
15472 (list_match): New function.
15473 (eh_region_replaceable_by_p): New function.
15474 (replace_region): New function.
15475 (hash_type_list): New function.
15476 (hash_eh_region): New function.
15477 (eh_regions_equal_p): New function.
15478 (merge_peers): New function.
15479 (remove_unreachable_regions): Verify EH tree when checking;
15481 (copy_eh_region_1): New function.
15482 (copy_eh_region): New function.
15483 (push_reachable_handler): New function.
15484 (build_post_landing_pads, dw2_build_landing_pads): Be ready for
15485 regions without label but with live RESX.
15486 * except.h (redirect_eh_edge_to_label): New.
15487 * tree-flow.h (redirect_eh_edge): New.
15488 * coretypes.h (edge_def, edge, const_edge, basic_block_def
15489 basic_block_def, basic_block, const_basic_block): Remove.
15490 * Makefile.in (except.o): Add dependency on tree-flow.h
15491 * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
15492 * basic-block.h (edge, const_edge, basic_block, const_basic_block):
15495 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
15498 * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
15499 on the destination of memcpy.
15501 2009-04-25 Paolo Bonzini <bonzini@gnu.org>
15503 * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
15504 REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
15505 REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
15507 2009-04-25 Jan Hubicka <jh@suse.cz>
15509 * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
15510 (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
15511 to be reached by different label than left.
15512 (update_eh_edges): Update comment; remove edge_to_remove if possible
15513 and return true if suceeded.
15514 (cleanup_empty_eh): Accept sharing map; handle shared regions.
15515 (cleanup_eh): Compute sharing map.
15516 * except.c (remove_eh_handler_and_replace): Add argument if we should
15518 (remove_unreachable_regions): Update for label sharing.
15519 (label_to_region_map): Likewise.
15520 (get_next_region_sharing_label): New function.
15521 (remove_eh_handler_and_replace): Add update_catch_try parameter; update
15523 (remove_eh_handler): Update.
15524 (remove_eh_region_and_replace_by_outer_of): New function.
15525 * except.h (struct eh_region): Add next_region_sharing_label.
15526 (remove_eh_region_and_replace_by_outer_of,
15527 get_next_region_sharing_label): Declare.
15528 * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
15530 2009-04-25 Jan Hubicka <jh@suse.cz>
15532 * tree-cfg.c (split_critical_edges): Split also edges where we can't
15533 insert code even if they are not critical.
15535 2009-04-25 Jan Hubicka <jh@suse.cz>
15537 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
15538 (gimple_can_remove_branch_p): EH edges won't remove branch by
15540 * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
15541 updating of non-abnormal EH edges.
15542 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
15543 (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
15544 (split_critical_edges): Split also edges where emitting code on them
15545 will lead to splitting later.
15547 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
15548 H.J. Lu <hongjiu.lu@intel.com>
15551 * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
15552 the configured assembler supports fildq and fistpq mnemonics.
15553 (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
15554 * configure: Regenerated.
15555 * config.in: Ditto.
15557 * config/i386/i386.c (print_operand): Handle 'Z'.
15558 ['z']: Remove handling of special fild/fist suffixes.
15559 (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
15560 * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
15561 suffix of fild insn.
15562 (*floatsi<mode>2_vector_mixed): Ditto.
15563 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
15564 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
15565 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
15566 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
15567 * config/i386/gas.h (GAS_MNEMONICS): Remove.
15569 2009-04-25 Ben Elliston <bje@au.ibm.com>
15571 * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
15572 the source of a set operation.
15574 2009-04-25 Anatoly Sokolov <aesok@post.ru>
15576 * target.h (struct gcc_target): Add case_values_threshold field.
15577 * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
15578 (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
15579 * targhooks.c (default_case_values_threshold): New function.
15580 * targhooks.h (default_case_values_threshold): Declare function.
15581 * stmt.c (expand_case): Use case_values_threshold target hook.
15582 * expr.h (case_values_threshold): Remove declartation.
15583 * expr.c (case_values_threshold): Remove function.
15584 * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
15586 * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
15587 * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
15588 (avr_case_values_threshold): Declare as static.
15589 * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
15591 * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
15592 * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
15593 (mn10300_case_values_threshold): New function.
15595 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
15597 * ira.c (setup_cover_and_important_classes): Add enum cast.
15599 2009-04-24 Vladimir Makarov <vmakarov@redhat.com>
15601 * genpreds.c (write_enum_constraint_num): Output definition of
15602 CONSTRAINT_NUM_DEFINED_P macro.
15603 * ira.c (setup_cover_and_important_classes): Use
15604 CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
15606 2009-04-24 DJ Delorie <dj@redhat.com>
15608 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
15609 __SH2A_SINGLE_ONLY__ also.
15611 2009-04-24 Steve Ellcey <sje@cup.hp.com>
15613 * config/ia64/ia64.md (movfs_internal): Allow flt constants.
15614 (movdf_internal): Ditto.
15615 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
15616 SFmode and DFmode constants.
15617 (ia64_print_operand): Add 'G' format for printing
15618 floating point constants.
15620 2009-04-24 Richard Guenther <rguenther@suse.de>
15622 * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
15623 from unsigned additions.
15625 2009-04-24 Joseph Myers <joseph@codesourcery.com>
15627 * c-typeck.c (set_init_index): Allow array designators that are
15628 not integer constant expressions with a pedwarn if pedantic.
15630 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
15632 * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
15633 zero if no overlap in nonzero bits between the operands.
15635 2009-04-24 Ian Lance Taylor <iant@google.com>
15637 * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
15638 (record_dead_and_set_regs): Likewise.
15639 * df.h (struct df_mw_hardreg): Change flags field to int.
15640 (struct df_base_ref): Likewise.
15641 (struct df): Change changeable_flags field to int.
15642 * df-scan.c (df_defs_record): Change clobber_flags to int.
15643 * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
15644 constants rather than #define macros.
15645 (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
15646 (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
15647 (enum dwarf_calling_convention): Likewise.
15648 (enum dwarf_line_number_x_ops): Likewise.
15649 (enum dwarf_call_frame_info): Likewise.
15650 (enum dwarf_source_language): Likewise.
15651 * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
15652 (add_calling_convention_attribute): Likewise.
15653 * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
15654 (combine_comparisons): Change compcode to int. Add cast to enum type.
15655 * genrecog.c (maybe_both_true_2): Change c to int.
15656 (write_switch): Likewise. Add cast to enum type.
15657 * gimplify.c (gimplify_omp_for): Handle return values from
15658 gimplify_expr using MIN rather than bitwise or.
15659 (gimplify_expr): Add cast to enum type.
15660 * ipa-prop.c (update_jump_functions_after_inlining): Change
15661 IPA_BOTTOM to IPA_JF_UNKNOWN.
15662 * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
15663 Add casts to enum type.
15664 (setup_cover_and_important_classes): Change cl to int. Add casts
15666 (setup_class_translate): Change cl and mode to int.
15667 (ira_init_once): Change mode to int.
15668 (free_register_move_costs): Likewise.
15669 (setup_prohibited_mode_move_regs): Add casts to enum type.
15670 * langhooks.c (add_builtin_function_common): Rework assertion that
15671 value fits bitfield.
15672 * mcf.c (add_fixup_edge): Change type parameter to edge_type.
15673 * omega.c (omega_do_elimination): Avoid math on enum types.
15674 * optabs.c (expand_vec_shift_expr): Remove casts to int.
15675 * opts.c (set_debug_level): Change 2 to enum constant. Use new
15676 int local to handle integral_argment value.
15677 * regmove.c (try_auto_increment): Change PUT_MODE to
15679 * reload.c (push_secondary_reload): Add casts to enum type.
15680 (secondary_reload_class, find_valid_class): Likewise.
15681 * reload1.c (emit_input_reload_insns): Likewise.
15682 * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
15683 * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
15684 * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
15686 * tree.c (build_common_builtin_nodes): Add casts to enum type.
15687 * tree-complex.c (complex_lattice_t): Typedef to int rather than
15689 (expand_complex_libcall): Add casts to enum type.
15690 * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
15691 * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
15692 with ERROR_MARK, not NUM_TREE_CODES.
15693 (vect_create_epilog_for_reduction): Likewise.
15694 (vectorizable_reduction): Don't initialize epiloc_reduc_code.
15695 When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
15696 * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
15698 * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
15699 vect_unused_in_loop. Change 0 to loop_vect.
15700 * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
15701 * var-tracking.c (get_init_value): Change return type to enum
15703 * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
15704 * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
15706 (arm_override_options): Add casts to enum type.
15707 (arm_emit_tls_decoration): Likewise.
15708 * config/i386/i386.c (ix86_function_specific_restore): Add casts
15710 * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
15711 * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
15712 * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
15714 * config/s390/s390.c (code_for_builtin_64): Change to array of
15716 (code_for_builtin_31): Likewise.
15717 (s390_expand_builtin): Change code_for_builtin to enum insn_code
15719 * config/sparc/sparc.c (sparc_override_options): Change value
15720 field in struct code_model to enum cmodel. In initializer change
15721 0 to NULL and add cast to enum type.
15723 * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
15724 Change all callers. Issue a -Wc++-compat warning using
15725 lhs_origtype if necessary.
15726 (convert_for_assignment): Issue -Wc++-compat warnings about
15727 invalid conversions to enum type on assignment.
15728 * c-common.h (build_modify_expr): Update declaration.
15730 2009-04-24 Nick Clifton <nickc@redhat.com>
15732 * config/iq2000/iq2000.c (function_arg): Handle TImode values.
15733 (function_arg_advance): Likewise.
15734 * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
15737 2009-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
15739 * config/s390/constraints.md ('I', 'J'): Fix condition.
15741 2009-04-24 Diego Novillo <dnovillo@google.com>
15743 * gengtype-parse.c (parse_error): Add newline after message.
15745 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
15747 * config/i386/sse.md (avxmodesuffixs): Removed.
15748 (*avx_pinsr<avxmodesuffixs>): Renamed to ...
15749 (*avx_pinsr<ssevecsize>): This.
15751 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
15753 * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
15754 follow chains of regs with a single definition, and allow expressions
15755 that are function_invariant_p.
15756 (simple_rhs_p): Allow expressions that are function_invariant_p.
15758 2009-04-24 Paolo Bonzini <bonzini@gnu.org>
15760 PR middle-end/39867
15761 * fold-const.c (fold_cond_expr_with_comparison): When folding
15762 > and >= to MAX, make sure the MAX uses the same type as the
15763 comparison's operands.
15765 2009-04-24 Nick Clifton <nickc@redhat.com>
15767 * config/frv/frv.c (frv_frame_access): Do not use reg+reg
15768 addressing for DImode accesses.
15769 (frv_print_operand_address): Handle PLUS case.
15770 * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
15772 2009-04-24 Jakub Jelinek <jakub@redhat.com>
15774 PR rtl-optimization/39794
15775 * alias.c (canon_true_dependence): Add x_addr argument.
15776 * rtl.h (canon_true_dependence): Adjust prototype.
15777 * cse.c (check_dependence): Adjust canon_true_dependence callers.
15778 * cselib.c (cselib_invalidate_mem): Likewise.
15779 * gcse.c (compute_transp): Likewise.
15780 * dse.c (scan_reads_nospill): Likewise.
15781 (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame
15782 addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
15783 canon_base_addr of the group, plus optional offset.
15784 (struct group_info): Rename canon_base_mem to
15786 (get_group_info): Set canon_base_addr to canon_rtx of base, not
15787 canon_rtx of base_mem.
15789 2009-04-23 Paolo Bonzini <bonzini@gnu.org>
15791 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
15792 Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
15794 2009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15796 * config/spu/spu-builtins.h: Delete file.
15798 * config/spu/spu.h (enum spu_builtin_type): Move here from
15800 (struct spu_builtin_description): Likewise. Add GTY marker.
15801 Do not use enum spu_function_code or enum insn_code.
15802 (spu_builtins): Add extern declaration.
15804 * config/spu/spu.c: Do not include "spu-builtins.h".
15805 (enum spu_function_code, enum spu_builtin_type_index,
15806 V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
15807 V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
15808 unsigned_V8HI_type_node, unsigned_V4SI_type_node,
15809 unsigned_V2DI_type_node): Move here from spu-builtins.h.
15810 (spu_builtin_types): Make static. Add GTY marker.
15811 (spu_builtins): Add extern declaration with GTY marker.
15812 Include "gt-spu.h".
15814 * config/spu/spu-c.c: Do not include "spu-builtins.h".
15815 (spu_resolve_overloaded_builtin): Do not use spu_function_code.
15816 Check programmatically whether all parameters are scalar.
15818 * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
15820 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
15822 * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
15823 assignment from the constructor either if the target is volatile.
15825 2009-04-23 Daniel Jacobowitz <dan@codesourcery.com>
15827 * config/arm/arm.md (insv): Do not share operands[0].
15829 2009-04-23 Nathan Sidwell <nathan@codesourcery.com>
15831 * config/vxlib-tls.c (active_tls_threads): Delete.
15832 (delete_hook_installed): New.
15833 (tls_delete_hook): Don't delete the delete hook.
15834 (tls_destructor): Delete it here.
15835 (__gthread_set_specific): Adjust installing the delete hook.
15836 (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
15837 __gthread_leave_tsd_dtor_context.
15839 2009-04-23 Rafael Avila de Espindola <espindola@google.com>
15841 * c-format.c (gcc_tdiag_char_table): Add support for %E.
15843 2009-04-23 Uros Bizjak <ubizjak@gmail.com>
15845 * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
15847 (alpha_rtx_costs): Ditto.
15848 (emit_unlikely_jump): Use add_reg_note.
15849 (emit_frame_store_1): Ditto.
15850 (alpha_expand_prologue): Ditto.
15851 (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
15852 * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
15854 2009-04-23 Nick Clifton <nickc@redhat.com>
15856 * config/v850/v850.md (epilogue): Remove suppressed code.
15857 (return): Rename to return_simple and remove test of frame size.
15858 * config/v850/v850.c (expand_epilogue): Rename call to gen_return
15859 to gen_return_simple.
15861 2009-04-22 Jing Yu <jingyu@google.com>
15864 * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
15866 2009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
15869 * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
15870 and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
15871 value is a VECTOR_CST, the element type is the element type of the
15874 2009-04-22 DJ Delorie <dj@redhat.com>
15876 * config/m32c/m32c.h: Update GTY annotations to new syntax.
15878 2009-04-22 Jakub Jelinek <jakub@redhat.com>
15880 * alias.c (find_base_term): Move around LO_SUM case, so that
15881 CONST falls through into PLUS/MINUS handling.
15884 * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
15885 into 0, use omit_one_operand.
15887 2009-04-23 Ben Elliston <bje@au.ibm.com>
15889 * config/rs6000/linux-unwind.h (get_regs): Remove type
15890 puns. Change the type of `pc' to an array of unsigned ints and
15891 update all users. Constify frame24.
15893 2009-04-22 DJ Delorie <dj@redhat.com>
15895 * config/m32c/m32c.c (m32c_special_page_vector_p): Move
15896 declarations before code.
15897 (current_function_special_page_vector): Likewise.
15898 (m32c_expand_insv): Silence a warning.
15900 2009-04-21 Taras Glek <tglek@mozilla.com>
15902 * alias.c: Update GTY annotations to new syntax.
15903 * basic-block.h: Likewise.
15904 * bitmap.h: Likewise.
15905 * c-common.h: Likewise.
15906 * c-decl.c: Likewise.
15907 * c-parser.c: Likewise.
15908 * c-pragma.c: Likewise.
15909 * c-tree.h: Likewise.
15910 * cfgloop.h: Likewise.
15911 * cgraph.h: Likewise.
15912 * config/alpha/alpha.c: Likewise.
15913 * config/arm/arm.h: Likewise.
15914 * config/avr/avr.h: Likewise.
15915 * config/bfin/bfin.c: Likewise.
15916 * config/cris/cris.c: Likewise.
15917 * config/darwin.c: Likewise.
15918 * config/frv/frv.c: Likewise.
15919 * config/i386/i386.c: Likewise.
15920 * config/i386/i386.h: Likewise.
15921 * config/i386/winnt.c: Likewise.
15922 * config/ia64/ia64.h: Likewise.
15923 * config/iq2000/iq2000.c: Likewise.
15924 * config/mips/mips.c: Likewise.
15925 * config/mmix/mmix.h: Likewise.
15926 * config/pa/pa.c: Likewise.
15927 * config/pa/pa.h: Likewise.
15928 * config/rs6000/rs6000.c: Likewise.
15929 * config/s390/s390.c: Likewise.
15930 * config/sparc/sparc.c: Likewise.
15931 * config/xtensa/xtensa.c: Likewise.
15932 * cselib.h: Likewise.
15933 * dbxout.c: Likewise.
15934 * dwarf2out.c: Likewise.
15935 * except.c: Likewise.
15936 * except.h: Likewise.
15937 * fixed-value.h: Likewise.
15938 * function.c: Likewise.
15939 * function.h: Likewise.
15940 * gimple.h: Likewise.
15941 * integrate.c: Likewise.
15942 * optabs.c: Likewise.
15943 * output.h: Likewise.
15944 * real.h: Likewise.
15946 * stringpool.c: Likewise.
15947 * tree-data-ref.c: Likewise.
15948 * tree-flow.h: Likewise.
15949 * tree-scalar-evolution.c: Likewise.
15950 * tree-ssa-address.c: Likewise.
15951 * tree-ssa-alias.h: Likewise.
15952 * tree-ssa-operands.h: Likewise.
15953 * tree.c: Likewise.
15954 * tree.h: Likewise.
15955 * varasm.c: Likewise.
15956 * varray.h: Likewise.
15958 * coretypes.h: Do not define GTY macro if it is already defined.
15959 * doc/gty.texi: Update GTY documentation to new syntax.
15960 * gengtype-lex.l: Enforce attribute-like syntax for GTY
15961 annotations on structs.
15962 * gengtype-parse.c: Likewise.
15964 2009-04-22 Mark Heffernan <meheff@google.com>
15966 * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
15968 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
15970 * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
15973 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
15975 * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
15976 the same as a PLUS without a shift. Increase the cost of a
15979 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15981 * Makefile.in: Update dependencies.
15982 * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
15983 * errors.h: Remove bogus comment about compatibility.
15984 (warning): Update declaration.
15985 * genautomata.c: Update all calls to warning.
15986 * gimple.c: Do not include errors.h. Include toplev.h.
15987 * tree-ssa-structalias.c: Do not include errors.h.
15988 * omega.c: Likewise.
15989 * tree-ssa-reassoc.c: Likewise.
15990 * config/spu/spu-c.c: Likewise.
15991 * config/spu/t-spu-elf: Update dependencies.
15993 2009-04-22 Richard Guenther <rguenther@suse.de>
15995 PR tree-optimization/39824
15996 * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
15997 make sure the types are compatible.
15999 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
16002 * c-common.c (c_parse_error): Take a token_flags parameter.
16003 Use token_type for the token type instead.
16004 Pass token_flags to cpp_type2name.
16005 * c-common.h (c_parse_error): Update declaration.
16006 * c-parser.c (c_parser_error): Pass 0 as token flags.
16008 2009-04-22 Andrey Belevantsev <abel@ispras.ru>
16010 PR rtl-optimization/39580
16011 * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
16013 2009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16015 * function.c (expand_function_end): Do not emit a jump to the "naked"
16016 return label for fall-through returns.
16017 * except.c (sjlj_emit_function_exit): Always place the call to the
16018 unregister function at the location installed by expand_function_end.
16020 2009-04-22 Richard Guenther <rguenther@suse.de>
16022 PR tree-optimization/39845
16023 * tree-switch-conversion.c (build_arrays): Add new referenced vars.
16024 (gen_inbound_check): Likewise.
16026 2009-04-22 Nathan Sidwell <nathan@codesourcery.com>
16028 * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
16030 (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
16031 * config/vxlib.c (__gthread_once): Add race guard for PPC.
16033 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
16035 * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
16036 sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
16037 shift counts to avoid out-of-bounds array accesses.
16039 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
16041 * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
16042 (Pmode): Move above.
16044 2009-04-22 Uros Bizjak <ubizjak@gmail.com>
16046 * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
16047 NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
16048 GET_CODE macro. Use IN_RANGE macro where appropriate.
16049 * config/alpha/alpha.h: Ditto.
16050 * config/alpha/alpha.md: Ditto.
16051 * config/alpha/constraints.md: Ditto.
16052 * config/alpha/predicates.md: Ditto.
16054 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
16056 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
16057 * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16058 * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16059 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16060 * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16061 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16062 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16063 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16064 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16065 * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16066 * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16067 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16068 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16069 * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16070 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16071 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16072 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16073 * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16074 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16075 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16076 * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16077 * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16078 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16079 * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16080 * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16081 * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16082 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16084 2009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
16086 * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
16087 references from comments.
16088 * cfgbuild.c: (count_basic_blocks): Delete.
16089 (find_basic_blocks_1): Delete.
16090 (find_basic_blocks): Delete.
16091 * except.c (finish_eh_generation): Make static. Move comment from
16092 except.h here. Remove find_basic_blocks references from comments.
16093 * except.h (finish_eh_generation): Delete.
16094 * basic-block.h (find_basic_blocks): Delete.
16095 * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
16097 2009-04-22 Dave Korn <dave.korn.cygwin@gmail.com>
16099 * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
16100 (sdbout_parms): Likewise.
16102 2009-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
16104 * config/sh/sh.c (prepare_cbranch_operands): Use
16105 LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
16106 (expand_cbranchdi4): Likewise.
16107 (from_compare): Add cast to enum type.
16108 (expand_cbranchsi4): Use add_reg_note.
16109 (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
16110 (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
16111 (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
16112 (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
16113 * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
16114 instead of CODE_FOR_nothing.
16115 (cbranchdi4): Likewise. Fix the order of arguments for
16117 (push_fpscr): Use add_reg_note.
16118 (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
16119 reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
16121 2009-04-21 Joseph Myers <joseph@codesourcery.com>
16123 * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
16124 ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
16125 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
16126 ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
16127 ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
16128 FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
16129 config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
16130 config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
16131 config/alpha/x-vms, config/arc/t-arc,
16132 config/arm/README-interworking, config/arm/arm-c.c,
16133 config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
16134 config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
16135 config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
16136 config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
16137 config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
16138 config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
16139 config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
16140 config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
16141 config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
16142 config/cris/t-elfmulti, config/crx/t-crx,
16143 config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
16144 config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
16145 config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
16146 config/h8300/t-h8300, config/i386/athlon.md,
16147 config/i386/darwin-libgcc.10.4.ver,
16148 config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
16149 config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
16150 config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
16151 config/i386/t-linux64, config/i386/t-nwld,
16152 config/i386/t-rtems-i386, config/i386/t-sol2-10,
16153 config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
16154 config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
16155 config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
16156 config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
16157 config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
16158 config/iq2000/t-iq2000, config/libgcc-glibc.ver,
16159 config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
16160 config/m32r/t-m32r, config/m68hc11/t-m68hc11,
16161 config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
16162 config/m68k/t-uclinux, config/mcore/t-mcore,
16163 config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
16164 config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
16165 config/mips/crtn.asm, config/mips/irix-crti.asm,
16166 config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
16167 config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
16168 config/mips/mips-fixed.md, config/mips/sb1.md,
16169 config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
16170 config/mips/t-iris6, config/mips/t-isa3264,
16171 config/mips/t-libgcc-mips16, config/mips/t-linux64,
16172 config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
16173 config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
16174 config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
16175 config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
16176 config/mn10300/t-linux, config/mn10300/t-mn10300,
16177 config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
16178 config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
16179 config/picochip/libgccExtras/clzsi2.asm,
16180 config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
16181 config/rs6000/darwin-libgcc.10.4.ver,
16182 config/rs6000/darwin-libgcc.10.5.ver,
16183 config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
16184 config/rs6000/t-aix43, config/rs6000/t-aix52,
16185 config/rs6000/t-darwin, config/rs6000/t-fprules,
16186 config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
16187 config/rs6000/t-lynx, config/rs6000/t-netbsd,
16188 config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
16189 config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
16190 config/rs6000/t-rtems, config/rs6000/t-spe,
16191 config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
16192 config/score/t-score-elf, config/sh/divcost-analysis,
16193 config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
16194 config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
16195 config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
16196 config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
16197 config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
16198 config/stormy16/stormy-abi, config/stormy16/t-stormy16,
16199 config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
16200 config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
16201 config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
16202 config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
16203 config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
16204 gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
16205 java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
16206 limitx.h, version.c, xcoff.h: Add copyright and license notices.
16207 * config/h8300/genmova.sh: Include copyright and license notices
16208 in generated output.
16209 * config/h8300/mova.md: Regenerate.
16210 * doc/install.texi2html: Include word "Copyright" in copyright
16211 notice and use name "Free Software Foundation, Inc.".
16212 * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
16213 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
16214 ChangeLog-2007, ChangeLog-2008: Correct dates.
16216 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
16218 * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
16219 NE_EXPR operations as well.
16220 * c-parser.c (c_parser_condition): Do not set location information on
16222 (c_parser_conditional_expression): Likewise.
16223 (c_parser_binary_expression): Set location information on operators.
16224 * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
16225 TRUTH_NOT_EXPR has been folded.
16226 * fold-const.c (fold_truth_not_expr): Copy location information from
16227 the incoming expression to the outgoing one.
16228 * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to
16229 recursive calls on the LHS of the operator but pass that of the
16230 operator to recursive calls on the RHS of the operator. Set it
16232 (shortcut_cond_expr): Set the locus of the operator on the second
16233 COND_EXPR and that of the expression on the first in degenerate cases.
16234 Pass the locus of the expression to calls to shortcut_cond_r.
16235 Set the locus of the 'then' block on the associated jump, if any.
16236 (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR.
16237 (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
16238 expression to call to gimplify_boolean_expr.
16240 2009-04-21 Kai Tietz <kai.tietz@onevision.com>
16242 * config.gcc: Add additional configuration for
16243 i686-w64-mingw* and x86_64-w64-mingw* triplet.
16244 * config/i386/mingw-w64.h: New mingw-w64 specific header.
16245 (CPP_SPEC): Redefine for allowing -municode option.
16246 (STARTFILE_SPEC): Likewise.
16247 * config/i386/t-mingw-w64: New.
16248 * config/i386/mingw-w64.opt: New.
16249 (municode): Add new target option.
16250 * doc/invoke.texi (municode): Add documentation for new option.
16252 2009-04-21 Ian Lance Taylor <iant@google.com>
16254 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16255 Correct test for number of arguments.
16256 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
16258 2009-04-21 Andreas Schwab <schwab@linux-m68k.org>
16260 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
16261 argument of emit_library_call.
16263 2009-04-21 Richard Guenther <rguenther@suse.de>
16265 PR middle-end/39829
16266 * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
16267 inside VIEW_CONVERT_EXPRs.
16269 2009-04-21 Martin Jambor <mjambor@suse.cz>
16271 * tree-switch-conversion.c (build_constructors): Split a long line.
16272 (constructor_contains_same_values_p): New function.
16273 (build_one_array): Create assigns of constants if possible, do not
16274 call mark_sym_for_renaming, call update_stmt.
16275 (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
16276 make_rename_temp. Do not call mark_symbols_for_renaming, call
16278 (gen_def_assigns): Do not call mark_symbols_for_renaming or
16279 find_new_referenced_vars, call update_stmt.
16280 (gen_inbound_check): Use create_tmp_var and create ssa names manually
16281 instead of calling make_rename_temp. Do not call
16282 find_new_referenced_vars or mark_symbols_for_renaming, call
16285 2009-04-21 Richard Guenther <rguenther@suse.de>
16287 PR tree-optimization/39827
16288 * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
16289 (tree_ssa_phiprop): Pass the correct array size.
16291 2009-04-21 Uros Bizjak <ubizjak@gmail.com>
16293 * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
16295 2009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
16298 * c-typeck.c (lvalue_p): Move declaration ...
16299 * c-common.h (lvalue_p): ... to here.
16300 * c-common.c (candidate_equal_p): New.
16301 (add_tlist): Use it.
16302 (merge_tlist): Use it.
16303 (warn_for_collisions_1): Likewise.
16304 (warning_candidate_p): Accept more candidates.
16305 (verify_tree): A warning candidate can be an expression. Use
16308 2009-04-21 Ben Elliston <bje@au.ibm.com>
16311 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
16312 for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
16313 options. Remove -mcall-solaris documentation.
16315 2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
16318 * doc/invoke.texi (-Wlong-long): Update description.
16319 * c-lex (interpret_integer): Only warn if there was no previous
16320 overflow and -Wlong-long is enabled.
16321 * c-decl.c (declspecs_add_type): Drop redundant flags.
16322 * c.opt (Wlong-long): Init to -1.
16323 * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
16324 and front-end warn_long_long. Wlong-long only depends on other
16325 flags if it is uninitialized.
16326 * c-parser.c (disable_extension_diagnostics): warn_long_long is
16327 the same for CPP and FE.
16328 (restore_extension_diagnostics): Likewise.
16330 2009-04-20 Ian Lance Taylor <iant@google.com>
16332 Fix enum conversions which are invalid in C++:
16333 * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
16334 * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
16335 * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
16336 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
16337 * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
16338 (dbxout_parms): Likewise.
16339 * df-core.c (df_set_flags): Change changeable_flags parameter to int.
16340 (df_clear_flags): Likewise.
16341 * df-problems.c (df_rd_bb_local_compute_process_def): Change
16342 top_flag parameter to int.
16343 (df_chain_create_bb_process_use): Likewise.
16344 (df_chain_add_problem): Change chain_flags parameter to unsigned int.
16346 * df-scan.c (df_ref_create): Change ref_flags parameter to int.
16347 (df_ref_create_structure, df_def_record_1): Likewise.
16348 (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
16349 (df_notes_rescan): Change 0 to VOIDmode in function call.
16350 (df_get_call_refs, df_insn_refs_collect): Likewise.
16351 (df_bb_regs_collect): Likewise.
16352 (df_entry_block_defs_collect): Likewise.
16353 (df_exit_block_uses_collect): Likewise.
16354 * df.h: Update declarations.
16355 * double-int.c (double_int_divmod): Add cast to enum type.
16356 * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
16357 * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
16358 (based_loc_descr): Likewise.
16359 (loc_descriptor_from_tree_1): Change first_op and second_op to
16360 enum dwarf_location_atom. Add cast to enum type.
16361 * expmed.c (init_expmed): Change 0 to SET in function call.
16362 * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
16363 (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
16364 (do_store_flag): Likewise.
16365 * fixed-value.h (struct fixed_value): Change mode to enum
16367 * function.c (assign_parms): Change 0 to VOIDmode in function call.
16368 * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
16370 (insert_insn_decl, insert_decl, insert_state): Likewise.
16371 (automata_list_finish): Likewise.
16372 * genrecog.c (process_define_predicate): Add cast to enum type.
16373 * gensupport.c (init_predicate_table): Add cast to enum type.
16374 * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
16376 (gimple_build_call_1, gimple_build_label): Likewise.
16377 (gimple_build_goto, gimple_build_asm_1): Likewise.
16378 (gimple_build_switch_1, gimple_build_cdt): Likewise.
16379 * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
16380 (enum fallback): Rename from enum fallback_t.
16381 (fallback_t): Typedef as int.
16382 * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
16383 GSI_SAME_STMT in function call.
16384 * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
16386 (setup_reg_class_relations): Likewise.
16387 (setup_reg_class_nregs): Change cl to int. Add casts to enum type.
16388 (setup_prohibited_class_mode_regs): Add cast to enum type.
16389 (setup_prohibited_mode_move_regs): Likewise.
16390 * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
16391 (record_address_regs): Change i to enum reg_class.
16392 * lists.c (alloc_EXPR_LIST): Add cast to enum type.
16393 * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
16394 (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
16395 (GET_MODE_2XWIDER_MODE): Likewise.
16396 (GET_CLASS_NARROWEST_MODE): Likewise.
16397 * omp-low.c (expand_omp_for): Add cast to enum type.
16398 * optabs.c (debug_optab_libfuncs): Add casts to enum type.
16399 * opts.c (enable_warning_as_error): Change kind to diagostic_t.
16400 * postreload.c (reload_cse_simplify_operands): Change rclass local
16402 * predict.c (combine_predictions_for_insn): Change best_predictor
16403 and predictor to enum br_predictor.
16404 (combine_predictions_for_bb): Likewise.
16405 (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
16406 use SET_PREDICT_EXPR_OUTCOME.
16407 * real.c (real_arithmetic): Change icode to code in function call.
16408 * reginfo.c (init_move_cost): Add casts to enum type.
16409 (init_reg_sets_1, init_fake_stack_mems): Likewise.
16410 * regmove.c (regclass_compatible_p): Change class0 and class1 to
16412 * reload.c (find_valid_class): Add casts to enum type.
16413 (push_reload): Change 0 to NO_REGS in function call.
16414 (find_reloads): Change this_alternative to array of enum
16415 reg_class. Remove some now-unnecessary casts.
16416 (make_memloc): Change 0 to VOIDmode in function call.
16417 * reload1.c (reload): Change 0 to VOIDmode in function call.
16418 (eliminate_regs_1, elimination_effects): Likewise.
16419 (eliminate_regs_in_insn): Likewise.
16420 (emit_input_reload_insns): Add cast to enum type.
16421 (delete_output_reload): Change 0 to VOIDmode in function call.
16422 * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
16423 to enum type in function call.
16424 * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
16425 (SET_PREDICT_EXPR_OUTCOME): Define.
16426 * tree-dump.c (get_dump_file_info): Change phase parameter to int.
16427 (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
16428 (dump_initialized_p, dump_flag_name, dump_end): Likewise.
16429 (dump_function): Likewise.
16430 * tree-dump.h: Update declarations.
16431 * tree-pass.h: Update declarations.
16432 * varasm.c (assemble_integer): Change mclass to enum mode_class.
16433 * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
16435 (arm_rtx_costs_1): Correct parenthesization.
16436 (arm_rtx_costs): Add casts to enum type.
16437 (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
16438 (vfp_emit_fstmd): Use add_rg_note.
16439 (emit_multi_reg_push, emit_sfm): Likewise.
16440 (thumb_set_frame_pointer): Likewise.
16441 (arm_expand_prologue): Likewise.
16442 (arm_regno_class): Change return type to enum reg_class.
16443 (thumb1_expand_prologue): Use add_reg_note.
16444 * config/arm/arm-protos.h (arm_regno_class): Update declaration.
16445 * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
16447 * config/arm/gentune.sh: Add cast to enum type.
16448 * config/arm/arm-tune.md: Rebuild.
16449 * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
16450 (ix86_split_fp_branch, predict_jump): Likewise.
16451 (ix86_expand_multi_arg_builtin): Change sub_code from enum
16452 insn_code to enum rtx_code.
16453 (ix86_builtin_vectorized_function): Add cast to enum type.
16454 * config/i386/i386.md (truncdfsf2): Change slot to enum
16456 (truncxf<mode>2, isinf<mode>2): Likewise.
16457 * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
16459 * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
16460 (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
16461 (insert_bundle_state): Change 1 to INSERT in function call.
16462 (ia64_add_bundle_selector_before): Likewise.
16463 * config/ia64/ia64.md (cpu attr): Add cast to enum type.
16464 (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
16465 (restore_stack_nonlocal): Likewise.
16466 * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
16468 * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
16470 (mips_rtx_costs): Likewise.
16471 (mips_override_options): Add casts to enum type.
16472 * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
16474 * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
16475 (store_reg, set_reg_plus_d): Likewise.
16476 (hppa_expand_prologue, hppa_profile_hook): Likewise.
16477 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
16479 (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
16481 (emit_unlikely_jump): Use add_reg_note.
16482 (rs6000_emit_allocate_stack): Likewise.
16483 (rs6000_frame_related, rs6000_emit_prologue): Likewise.
16484 (output_toc): Change 1 to INSERT in function call.
16485 (output_profile_hook): Change 0 to LCT_NORMAL in function call.
16486 (rs6000_initialize_trampoline): Likewise.
16487 (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
16489 * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
16490 (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
16491 (s390_expand_setmem, s390_expand_cmpmem): Likewise.
16492 (save_gprs): Use add_reg_note.
16493 (s390_emit_prologue): Likewise.
16494 (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
16495 * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
16496 (sparc_fold_builtin): Add cast to enum type.
16497 * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
16499 (spu_expand_prologue): Use add_reg_note.
16500 (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
16502 2009-04-20 Ian Lance Taylor <iant@google.com>
16504 * c-parser.c (c_parser_attributes): Change VEC back to tree list.
16505 (c_parser_postfix_expression_after_primary): Get VEC for list of
16506 arguments. Get original types of arguments. Call
16507 build_function_call_vec.
16508 (cached_expr_list_1, cached_expr_list_2): New static variables.
16509 (c_parser_expr_list): Change return type to VEC *. Add
16510 p_orig_types parameter. Change all callers.
16511 (c_parser_release_expr): New static function.
16512 (c_parser_vec_to_tree_list): New static function.
16513 * c-typeck.c (build_function_call): Rewrite to build a VEC and
16514 call build_function_call_vec.
16515 (build_function_call_vec): New function, based on old
16516 build_function_call.
16517 (convert_arguments): Remove nargs and argarray parameters. Change
16518 values to a VEC. Add origtypes parameter.
16519 (build_modify_expr): Add rhs_origtype parameter. Change all callers.
16520 (convert_for_assignment): Add origtype parameter. Change all
16521 callers. If warn_cxx_compat, check for conversion to an enum
16522 type when calling a function.
16523 (store_init_value): Add origtype parameter. Change all callers.
16524 (digest_init): Likewise.
16525 (struct init_node): Add origtype field.
16526 (add_pending_init): Add origtype parameter. Change all callers.
16527 (output_init_element): Likewise.
16528 (output_pending_init_elements): Pass origtype from init_node to
16529 output_init_element.
16530 (process_init_element): Pass origtype from c_expr to
16531 output_init_element.
16532 (c_finish_return): Add origtype parameter. Change all callers.
16533 * c-common.c (sync_resolve_size): Change params to VEC *. Change
16535 (sync_resolve_params): Likewise.
16536 (sync_resolve_return): Change params to first_param. Change caller.
16537 (resolve_overloaded_builtins): Change params to VEC *. Change
16538 callers. Save first parameter around call to build_function_call_vec.
16539 * c-decl.c (finish_decl): Add origtype parameter. Change all
16540 callers. Call build_function_call_vec rather than
16541 build_function_call for cleanup.
16542 * c-tree.h: Update declarations.
16543 * c-common.h: Update declarations.
16544 * stub-objc.c (objc_rewrite_function_call): Change parameter from
16545 params to first_param.
16546 * target.h (struct gcc_target): Change resolve_overloaded_builtin
16547 params parameter from tree to void *.
16548 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16549 Change arglist parameter to have type void *, and to be a pointer
16551 * config/rs6000/rs6000-protos.h
16552 (altivec_resolve_overloaded_builtin): Update declaration.
16553 * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
16554 fnargs parameter to have type void *, and to be a pointer to a
16555 VEC. Call build_function_call_vec instead of
16556 build_function_call.
16557 * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
16559 2009-04-20 Joey Ye <joey.ye@intel.com>
16560 Xuepeng Guo <xuepeng.guo@intel.com>
16561 H.J. Lu <hongjiu.lu@intel.com>
16563 * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
16565 * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
16566 (IX86_LEA_PRIORITY): Likewise.
16567 (distance_non_agu_define): New function.
16568 (distance_agu_use): Likewise.
16569 (ix86_lea_for_add_ok): Likewise.
16570 (ix86_dep_by_shift_count): Likewise.
16572 * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
16573 should split for LEA.
16575 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
16577 (ix86_dep_by_shift_count): Likewise.
16579 2009-04-20 Richard Guenther <rguenther@suse.de>
16581 * expr.c (handled_component_p): Move ...
16582 * tree.h (handled_component_p): ... here.
16583 * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
16584 ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
16585 and REALPART_EXPR to be in one group.
16587 2009-04-20 Richard Guenther <rguenther@suse.de>
16589 * basic-block.h (get_all_dominated_blocks): Declare.
16590 * dominance.c (get_all_dominated_blocks): New function.
16591 * tree-cfg.c (get_all_dominated_blocks): Remove.
16592 (remove_edge_and_dominated_blocks): Adjust.
16593 * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
16594 (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks
16595 instead of recursing.
16597 2009-04-20 Doug Kwan <dougkwan@google.com>
16599 * cgraph.h (cgraph_node_ptr): New type for vector functions.
16600 (struct cgraph_node_set_def): New type.
16601 (cgraph_node_set) New type. Also declare vector functions.
16602 (struct cgraph_node_set_element_def): New type.
16603 (cgraph_node_set_element): Ditto.
16604 (cgraph_node_set_iterator): New iterator type.
16605 (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
16606 cgraph_node_set_remove, dump_cgraph_node_set,
16607 debug_cgraph_node_set): New prototypes.
16608 (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
16609 cgraph_node_set_size): New inlines.
16610 * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
16611 including cgraph.h.
16612 (struct ipa_opt_pass): Add struct cgraph_node_set_def
16613 argument to function 'write_summary'.
16614 * ipa.c: Include ggc.h.
16615 (hash_cgraph_node_set_element,
16616 eq_cgraph_node_set_element, cgraph_node_set_new,
16617 cgraph_node_set_add, cgraph_node_set_remove,
16618 cgraph_node_set_find, dump_cgraph_node_set,
16619 debug_cgraph_node_set): New functions.
16620 * Makefile.in (ipa.o): Add dependency on GGC_H.
16622 2009-04-20 Ira Rosen <irar@il.ibm.com>
16624 PR tree-optimization/39675
16625 * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
16626 check of the return code of vect_schedule_slp. Check that
16627 stmt_vec_info still exists for the statement, before checking its
16628 vectorization type.
16630 2009-04-20 Michael Matz <matz@suse.de>
16632 * Makefile.in (generated_files): Take out $(simple_generated_c).
16634 2009-04-19 Dave Korn <dave.korn.cygwin@gmail.com>
16636 * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long".
16637 (UINTPTR_TYPE): Likewise.
16639 2009-04-19 Joseph Myers <joseph@codesourcery.com>
16642 * c-typeck.c (digest_init): Check for initializing an array with a
16645 2009-04-19 Joseph Myers <joseph@codesourcery.com>
16648 * c-semantics.c (pop_stmt_list): Propagate
16649 STATEMENT_LIST_HAS_LABEL to parent statement list.
16651 2009-04-19 Adam Nemet <anemet@caviumnetworks.com>
16653 * config/mips/mips.h (mips_tune_attr): New macro.
16654 * config/mips/mips.md (cpu): Use it.
16656 2009-04-19 Joseph Myers <joseph@codesourcery.com>
16659 * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
16662 2009-04-19 Diego Novillo <dnovillo@google.com>
16664 * toplev.c (compile_file): Move call to coverage_finish ...
16665 * cgraphunit.c (ipa_passes): ... here.
16666 Call cgraph_process_new_functions.
16667 * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
16668 * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
16670 2009-04-19 Jan Hubicka <jh@suse.cz>
16672 * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
16674 (dump_cgraph_node): Dump can throw external flag.
16675 * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
16677 2009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
16681 * doc/invoke.texi: Add -Wlogical-op to -Wextra.
16682 * common.opt (Wlogical-op): Move from here...
16683 * c.opt (Wlogical-op): ... to here.
16684 * c-typeck.c (parser_build_binary_op): Update call to
16685 warn_logical_operator.
16686 * c-opts.c (c_common_post_options): Enable warn_logical_op with
16688 * c-common.c (warn_logical_op): Update.
16689 * c-common.h (warn_logical_op): Update declaration.
16691 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
16693 * tree.c (protected_set_expr_location): Fix formatting.
16695 2009-04-18 Joseph Myers <joseph@codesourcery.com>
16698 * c-typeck.c (readonly_warning): new.
16699 (build_unary_op, build_modify_expr): Use readonly_warning for
16700 storing into something readonly but not const-qualified.
16702 2009-04-18 Joseph Myers <joseph@codesourcery.com>
16705 * c-typeck.c (build_unary_op): Check for taking address of
16706 expression of type void.
16708 2009-04-18 Joseph Myers <joseph@codesourcery.com>
16711 * c-typeck.c (build_function_call): Check for calling a function
16712 with qualified void return types. Call require_complete_type when
16715 2009-04-18 Jan Hubicka <jh@suse.cz>
16717 * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
16719 * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
16720 can_throw_external flag.
16721 * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
16722 * ipa-pure-const.c (ignore_edge): New function.
16723 (propagate): Compute order for NOTHROW computation; set NOTHROWs
16724 only over can_throw_external edges.
16725 (local_pure_const): Add nothrow flag.
16726 * ipa-utils.c (searchc): Add ignore_edge callback.
16727 (ipa_utils_reduced_inorder): Add ignore_edge callback.
16728 * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
16729 (set_nothrow_function_flags): Update cgraph.
16730 * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
16732 2009-04-18 Richard Guenther <rguenther@suse.de>
16734 PR middle-end/39804
16735 * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
16736 (fold_stmt): ... this and ...
16737 (fold_stmt_inplace): ... this.
16738 (fold_stmt_1): Fold references in calls and asms.
16739 * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
16741 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
16743 * tree-vrp.c (ssa_name_nonzero_p): Remove.
16744 * tree.h: Remove the prototype for ssa_name_nonzero_p.
16746 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
16748 * tree.c (function_args_count): Remove.
16749 * tree.h: Remove the prototype for function_args_count.
16751 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
16753 * tree-iterator.c (expr_only): Remove.
16754 * tree.h: Remove the prototype for expr_only.
16756 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
16758 * reginfo.c (cannot_change_mode_set_regs): Remove.
16759 * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
16761 2009-04-08 Anatoly Sokolov <aesok@post.ru>
16763 * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
16764 whether operands 0 and 1 overlaps.
16766 2009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
16768 PR middle-end/36902
16769 * tree-vrp.c (check_array_ref): Pass a location_t instead of a
16770 pointer. Use warning_at instead of warning.
16771 (search_for_addr_array): Likewise.
16772 (check_array_bounds): Likewise.
16773 (check_all_array_refs): Check that the incoming edge is not in the
16774 list of edges to be removed.
16775 (check_all_array_refs): Avoid the temporal pointer.
16776 (vrp_visit_cond_stmt): Fix typo.
16777 (simplify_switch_using_ranges): Handle the case where the switch
16778 index is an integer constant.
16780 2009-04-18 Adam Nemet <anemet@caviumnetworks.com>
16782 * config/mips/mips.c (mips_final_postscan_insn): Make it static.
16784 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
16786 * doc/extend.texi, doc/invoke.texi: Fix typos.
16788 2009-04-17 Cary Coutant <ccoutant@google.com>
16790 * tree-flow-inline.h (get_lineno): Fix inverted test.
16792 2009-04-17 Diego Novillo <dnovillo@google.com>
16794 * tree-ssa-pre.c (create_expression_by_pieces): Remove
16795 assertion for AVAIL_OUT.
16797 2009-04-17 Mike Frysinger <vapier@gentoo.org>
16800 * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
16801 * config/sh/linux-atomic.asm: Likewise.
16803 2009-04-17 Diego Novillo <dnovillo@google.com>
16805 * except.c (debug_eh_tree): New.
16806 (struct eh_region, struct eh_status): Move ...
16807 * except.h: ... here.
16808 (add_type_for_runtime): Declare extern.
16809 (lookup_type_for_runtime): Likewise.
16810 (debug_eh_tree): Declare.
16811 * Makefile.in (GTFILES): List except.h before except.c
16813 2009-04-17 Diego Novillo <dnovillo@google.com>
16815 * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
16816 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
16817 * tree-dfa.c (find_referenced_vars_in): Factor out of ...
16818 (find_vars_r): ... here.
16819 * tree-flow.h (find_referenced_vars_in): Declare.
16820 * tree-ssa-pre.c (create_expression_by_pieces): Assert
16821 that AVAIL_OUT exists for BLOCK.
16822 * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
16823 (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
16824 (tree-parloops.o): Likewise.
16826 2009-04-17 Simon Baldwin <simonb@google.com>
16828 * toplev.c (default_tree_printer): Add handling for %E format.
16830 2009-04-17 Diego Novillo <dnovillo@google.com>
16832 * tree-pretty-print.c (dump_generic_node): Add break after
16833 TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and
16834 FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and
16835 FUNCTION_TYPE together. Call print_struct_decl when printing
16836 structures and TDF_SLIM is not given.
16837 (print_struct_decl): Fix logic for detecting recursion.
16839 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
16842 * gcc.c (create_at_file): New.
16843 (compile_input_file_p): New.
16844 (do_spec_1): Use @args files for %i. Use create_at_file for %o.
16845 * main.c (main): Update call to toplev_main.
16846 * toplev.c (toplev_main): Change signature. Call expandargv.
16847 * toplev.h (toplev_main): Change signature.
16849 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
16851 * dwarf2out.c (field_byte_offset): Use the type size as the field size
16852 if the latter is not constant.
16854 2009-04-17 David Edelsohn <edelsohn@gnu.org>
16856 * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
16858 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
16860 * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
16861 * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
16863 2009-04-17 Richard Guenther <rguenther@suse.de>
16865 * tree-ssa-structalias.c (get_constraint_for_component_ref):
16866 Handle component references view-converting an invariant address.
16868 2009-04-17 Adam Nemet <anemet@caviumnetworks.com>
16870 * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
16871 TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
16872 TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
16873 TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
16874 Use @deftypevr rather than @deftypevar.
16876 2009-04-17 Richard Guenther <rguenther@suse.de>
16878 * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
16879 (get_prop_source_stmt): Likewise.
16880 (can_propagate_from): Likewise.
16882 2009-04-17 Andrew Stubbs <ams@codesourcery.com>
16884 * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
16885 TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
16886 (--with-multilib-list): Add default value.
16887 * configure: Regenerate.
16888 * Makefile.in (TM_ENDIAN_CONFIG): Define.
16889 (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
16890 * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
16891 TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
16892 Don't add default cpu to multilib list unnecessarily, but do enable
16893 the relevant compiler option..
16894 Add support for --with-multilib-list=<blank> and
16895 --with-multilib-list=!<somelib> to supress unwanted multilibs.
16896 * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
16897 (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
16898 (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
16899 TM_MULTILIB_CONFIG.
16900 (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
16901 (MULTILIB_OSDIRNAMES): New variable.
16902 * config/sh/t-1e: Delete file.
16903 * config/sh/t-mlib-sh1: Delete file.
16904 * config/sh/t-mlib-sh2: Delete file.
16905 * config/sh/t-mlib-sh2a: Delete file.
16906 * config/sh/t-mlib-sh2a-nofpu: Delete file.
16907 * config/sh/t-mlib-sh2a-single: Delete file.
16908 * config/sh/t-mlib-sh2a-single-only: Delete file.
16909 * config/sh/t-mlib-sh2e: Delete file.
16910 * config/sh/t-mlib-sh3e: Delete file.
16911 * config/sh/t-mlib-sh4: Delete file.
16912 * config/sh/t-mlib-sh4-nofpu: Delete file.
16913 * config/sh/t-mlib-sh4-single: Delete file.
16914 * config/sh/t-mlib-sh4-single-only: Delete file.
16915 * config/sh/t-mlib-sh4a: Delete file.
16916 * config/sh/t-mlib-sh4a-nofpu: Delete file.
16917 * config/sh/t-mlib-sh4a-single: Delete file.
16918 * config/sh/t-mlib-sh4a-single-only: Delete file.
16919 * config/sh/t-mlib-sh4al: Delete file.
16920 * config/sh/t-mlib-sh5-32media: Delete file.
16921 * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
16922 * config/sh/t-mlib-sh5-64media: Delete file.
16923 * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
16924 * config/sh/t-mlib-sh5-compact: Delete file.
16925 * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
16926 * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
16927 * doc/install.texi (Options specification): Add
16928 --with-multilib-list and --with-endian.
16930 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
16932 * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
16934 (OBJS-common): Add plugin-version.o.
16935 (plugin-version.o): New.
16936 * gcc-plugin.h (plugin_gcc_version): New.
16937 (plugin_default_version_check): New.
16938 (plugin_init_func, plugin_init): Add version argument.
16939 * plugin-version.c: New.
16940 * plugin.c (str_plugin_gcc_version_name): New.
16941 (try_init_one_plugin): Read plugin_gcc_version from the plugin and
16942 pass it to the init function.
16943 (plugin_default_version_check): New.
16945 2009-04-17 Richard Guenther <rguenther@suse.de>
16947 * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
16948 for decl-vs-decl disambiguation.
16950 2009-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
16952 * config/s390/s390.h (s390_tune_attr): New macro definition.
16953 * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
16955 2009-04-17 Richard Guenther <rguenther@suse.de>
16957 * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
16958 (fold_stmt_r): Likewise.
16959 (maybe_fold_reference): New function.
16960 (fold_gimple_assign): Handle cases fold_stmt_r did.
16961 (fold_stmt): Do not use fold_stmt_r.
16962 (fold_stmt_inplace): Likewise.
16964 2009-04-17 Richard Guenther <rguenther@suse.de>
16966 * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
16967 (record_equivalences_from_stmt): Remove useless checks and
16969 * tree-ssa-pre.c (eliminate): Avoid converting a constant if
16970 the type is already suitable.
16972 2009-04-17 Paolo Bonzini <bonzini@gnu.org>
16974 * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
16976 2009-04-17 Uros Bizjak <ubizjak@gmail.com>
16978 * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
16979 (CMPtype): Define as __gcc_CMPtype.
16981 2009-04-17 Aurelien Jarno <aurelien@aurel32.net>
16983 * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
16984 for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
16986 2009-04-17 Richard Guenther <rguenther@suse.de>
16988 PR tree-optimization/39746
16989 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
16990 special-casing for builtins and static variable use/def.
16991 (call_may_clobber_ref_p_1): Likewise.
16993 2009-04-16 Ian Lance Taylor <iant@google.com>
16995 * df.h: Include "timevar.h".
16996 (struct df_problem): Change tv_id field to timevar_id_t.
16997 * tree-pass.h: Include "timevar.h".
16998 (struct opt_pass): Change tv_id field to timevar_id_t.
16999 * timevar.h (timevar_id_t): Define TV_NONE.
17000 * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
17001 TV_NONE rather than tv_id != 0.
17002 (execute_one_pass): Likewise.
17003 * Makefile.in (DF_H): Add $(TIMEVAR_H).
17004 (TREE_PASS_H): Define. Change all instances of tree-pass.h in
17005 dependencies to $(TREE_PASS_H).
17006 * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
17008 (pass_branch_target_load_optimize2): Likewise.
17009 * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
17010 (pass_outof_cfg_layout_mode): Likewise.
17011 * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
17012 (pass_rebuild_cgraph_edges): Likewise.
17013 (pass_remove_cgraph_callee_edges): Likewise.
17014 * df-core.c (pass_df_initialize_opt): Likewise.
17015 (pass_df_initialize_no_opt): Likewise.
17016 (pass_df_finish): Likewise.
17017 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
17018 * except.c (pass_set_nothrow_function_flags): Likewise.
17019 (pass_convert_to_eh_region_ranges): Likewise.
17020 * final.c (pass_compute_alignments): Likewise.
17021 * function.c (pass_instantiate_virtual_regs): Likewise.
17022 (pass_init_function): Likewise.
17023 (pass_leaf_regs): Likewise.
17024 (pass_match_asm_constraints): Likewise.
17025 * gimple-low.c (pass_lower_cf): Likewise.
17026 (pass_mark_used_blocks): Likewise.
17027 * init-regs.c (pass_initialize_regs): Likewise.
17028 * integrate.c (pass_initial_value_sets): Likewise.
17029 * ira.c (pass_ira): Likewise.
17030 * jump.c (pass_cleanup_barriers): Likewise.
17031 * omp-low.c (pass_expand_omp): Likewise.
17032 (pass_lower_omp): Likewise.
17033 * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
17034 * recog.c (pass_split_all_insns): Likewise.
17035 (pass_split_after_reload): Likewise.
17036 (pass_split_before_regstack): Likewise.
17037 (pass_split_before_sched2): Likewise.
17038 (pass_split_for_shorten_branches): Likewise.
17039 * reginfo.c (pass_reginfo_init): Likewise.
17040 (pass_subregs_of_mode_init): Likewise.
17041 (pass_subregs_of_mode_finish): Likewise.
17042 * passes.c (pass_postreload): Likewise.
17043 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
17044 * tree-cfg.c (pass_remove_useless_stmts): Likewise.
17045 (pass_warn_function_return): Likewise.
17046 (pass_warn_function_noreturn): Likewise.
17047 * tree-complex.c (pass_lower_complex): Likewise.
17048 (pass_lower_complex_O0): Likewise.
17049 * tree-if-conv.c (pass_if_conversion): Likewise.
17050 * tree-into-ssa.c (pass_build_ssa): Likewise.
17051 * tree-mudflap.c (pass_mudflap_1): Likewise.
17052 (pass_mudflap_2): Likewise.
17053 * tree-nomudflap.c (pass_mudflap_1): Likewise.
17054 (pass_mudflap_2): Likewise.
17055 * tree-nrv.c (pass_return_slot): Likewise.
17056 * tree-object-size.c (pass_object_sizes): Likewise.
17057 * tree-optimize.c (pass_all_optimizations): Likewise.
17058 (pass_early_local_passes): Likewise.
17059 (pass_all_early_optimizations): Likewise.
17060 (pass_cleanup_cfg): Likewise.
17061 (pass_cleanup_cfg_post_optimizing): Likewise.
17062 (pass_free_datastructures): Likewise.
17063 (pass_free_cfg_annotations): Likewise.
17064 (pass_fixup_cfg): Likewise.
17065 (pass_init_datastructures): Likewise.
17066 * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
17067 (pass_late_warn_uninitialized): Likewise.
17068 (pass_update_address_taken): Likewise.
17069 * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
17070 * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
17071 (pass_cse_sincos): Likewise.
17072 (pass_convert_to_rsqrt): Likewise.
17073 * tree-ssa-structalias.c (pass_build_alias): Likewise.
17074 * tree-stdarg.c (pass_stdarg): Likewise.
17075 * tree-tailcall.c (pass_tail_recursion): Likewise.
17076 (pass_tail_calls): Likewise.
17077 * tree-vect-generic.c (pass_lower_vector): Likewise.
17078 (pass_lower_vector_ssa): Likewise.
17079 * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
17081 2009-04-16 Joseph Myers <joseph@codesourcery.com>
17083 * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
17085 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
17087 * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
17088 logical and signext.
17090 2009-04-16 Kaz Kojima <kkojima@gcc.gnu.org>
17093 * config/sh/predicates.md (arith_operand): Check if the operand
17094 of TRUNCATE is a REG.
17096 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
17098 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
17099 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
17101 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
17103 * tree-iterator.c (tsi_split_statement_list_after,
17104 tsi_split_statement_list_before): Remove.
17105 * tree-iterator.h: Remove the prototypes for
17106 tsi_split_statement_list_after and tsi_split_statement_list_before.
17108 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
17110 * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
17111 * tree-ssa-propagate.h: Remove the prototype for
17112 stmt_makes_single_load.
17114 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
17116 * emit-rtl.c (set_mem_attrs_from_reg): Remove.
17117 * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
17119 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
17121 * tree-iterator.c (EXPR_LAST_BODY): Remove.
17123 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
17125 * except.c (eh_region_outer_p): Remove.
17126 * except.h: Remove the prototype for eh_region_outer_p.
17128 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
17130 * function.c (current_function_assembler_name): Remove.
17131 * function.h: Remove the prototype for
17132 current_function_assembler_name.
17134 2009-04-16 Ian Lance Taylor <iant@google.com>
17136 * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
17137 (add_reg_note): Call alloc_reg_note.
17138 * rtl.h (alloc_reg_note): Declare.
17139 * combine.c (try_combine): Use alloc_reg_note.
17140 (recog_for_combine, move_deaths): Likewise.
17141 (distribute_notes): Use alloc_reg_note and add_reg_note.
17142 * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
17143 * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
17144 * reload1.c (eliminate_regs_1): Use alloc_reg_note.
17146 2009-04-16 Vladimir Makarov <vmakarov@redhat.com>
17148 PR rtl-optimization/39762
17149 * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
17150 ira_may_move_out_cost): Add comments about way of their usage.
17151 (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
17153 * ira-conflicts.c (process_regs_for_copy): Use function
17154 ira_get_register_move_cost instead of global
17155 ira_register_move_cost.
17157 * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
17158 color_pass, move_spill_restore, update_curr_costs): Ditto.
17160 * ira-lives.c (process_single_reg_class_operands): Ditto.
17162 * ira-emit.c (emit_move_list): Ditto.
17164 * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
17165 (record_reg_classes): Ditto. Use functions
17166 ira_get_register_move_cost and ira_get_may_move_cost instead of
17167 global vars ira_register_move_cost, ira_may_move_out_cost and
17168 ira_may_move_in_cost.
17169 (record_address_regs): Don't call ira_init_register_move_cost.
17170 Use function ira_get_may_move_cost instead of global
17171 ira_may_move_in_cost.
17172 (process_bb_node_for_hard_reg_moves): Use function
17173 ira_get_register_move_cost instead of global ira_register_move_cost.
17174 (ira_costs): Don't call ira_init_register_move_cost.
17176 2009-04-16 Richard Guenther <rguenther@suse.de>
17178 * tree-cfg.c (verify_gimple_assign_binary):
17179 Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
17180 * ipa-struct-reorg.c (gen_size): Fold the built expressions.
17181 (create_general_new_stmt): Note that this function is broken.
17183 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
17185 * common.opt (fhelp): Add Var(help_flag).
17186 * gcc-plugin.h (plugin_info): Add help.
17187 * plugin.c (plugin_name_args): Add help.
17188 (register_plugin_info): Set plugin->help.
17189 (print_help_one_plugin): New.
17190 (print_plugins_help): New.
17191 * plugin.h (print_plugins_help): New.
17192 * toplev.c (toplev_main): Call print_plugins_help if needed.
17194 2009-04-16 Richard Guenther <rguenther@suse.de>
17196 * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
17197 (gimple_ior_addresses_taken_1): New function.
17198 (gimple_ior_addresses_taken): Likewise.
17199 * gimple.h (struct gimple_statement_with_ops_base): Remove
17200 addresses_taken member.
17201 (gimple_ior_addresses_taken): Declare.
17202 (gimple_addresses_taken, gimple_addresses_taken_ptr,
17203 gimple_set_addresses_taken): Remove.
17204 * ipa-reference.c (mark_address): New function.
17205 (scan_stmt_for_static_refs): Use it for marking addresses taken.
17206 * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
17207 (mark_address_taken): ... this. Just set TREE_ADDRESSABLE.
17208 (gimple_add_to_addresses_taken): Remove.
17209 (get_tmr_operands): Call mark_address_taken.
17210 (get_asm_expr_operands): Likewise.
17211 (get_expr_operands): Likewise.
17212 (build_ssa_operands): Do not clear the addresses_taken bitmap.
17213 (free_stmt_operands): Do not free it.
17214 * tree-ssa.c (delete_tree_ssa): Likewise.
17215 (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
17217 2009-04-16 Richard Guenther <rguenther@suse.de>
17219 * gimple.h (walk_stmt_load_store_addr_ops): Declare.
17220 (walk_stmt_load_store_ops): Likewise.
17221 * gimple.c (get_base_loadstore): New function.
17222 (walk_stmt_load_store_addr_ops): Likewise.
17223 (walk_stmt_load_store_ops): Likewise.
17224 * ipa-pure-const.c (check_op): Simplify.
17225 (check_load, check_store): New functions.
17226 (check_stmt): Use walk_stmt_load_store_ops.
17227 * ipa-reference.c (mark_load): Adjust signature.
17228 (mark_store): Likewise.
17229 (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
17231 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
17233 * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
17234 (plugin_info): New.
17235 * opts.c (common_handle_option): Don't call print_version.
17236 * plugin.c (plugin_name_args): Add version.
17237 (register_plugin_info): New.
17238 (register_callback): Handle PLUGIN_INFO.
17239 (try_init_one_plugin): New.
17240 (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
17242 (finalize_one_plugin): New.
17243 (finalize_plugins): New.
17244 (print_one_plugin): New.
17245 (print_plugins_versions): New.
17246 * plugin.h (print_plugins_versions): New.
17247 (finalize_plugins): New.
17248 * toplev.c (compile_file): Don't call initialize_plugins.
17249 (print_version): Call print_plugins_versions.
17250 (toplev_main): Call initialize_plugins. Print version if needed.
17251 Call finalize_plugins.
17253 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
17255 * common.opt (fversion): New.
17256 * gcc.c (print_version): New.
17257 (process_command): Don't print the version. Just set print_version.
17258 (main): Print version. Call subprocesses if print_version and
17259 verbose_flag are set.
17260 * opts.c (common_handle_option): Handle OPT_fversion.
17262 2009-04-16 Richard Guenther <rguenther@suse.de>
17263 Ira Rosen <irar@il.ibm.com>
17265 PR tree-optimization/39698
17266 * tree-vect-loop.c (get_initial_def_for_reduction): Use the
17267 type of the reduction variable. Only generate the def if
17270 * omp-low.c (expand_omp_for_generic): When converting to a pointer
17271 make sure to first convert to an integer of the same precision.
17272 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
17273 the type of the evolution correctly in computing the new
17274 induction variable base.
17276 2009-04-16 Richard Guenther <rguenther@suse.de>
17278 PR middle-end/39625
17279 * tree-cfg.c (make_blocks): Split statements with to-be
17280 abnormal SSA names on the lhs.
17282 2009-04-16 Paolo Bonzini <bonzini@gnu.org>
17284 * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
17285 Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
17286 * c-typeck.c (really_start_incremental_init): Likewise.
17287 * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
17288 (TARGET_INITIALIZER): Remove it.
17289 * target.h (struct target): Remove vector_opaque_p.
17290 * tree.c (build_opaque_vector_type): New.
17291 * tree.h (TYPE_VECTOR_OPAQUE): New.
17292 (build_opaque_vector_type): Declare.
17293 * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
17294 * config/rs6000/rs6000.c (build_opaque_vector_type,
17295 rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
17296 (rs6000_init_builtins): Use build_opaque_vector_type for
17297 opaque_V4SI_type_node.
17299 2009-04-15 Catherine Moore <clm@codesourcery.com>
17301 * debug.h (set_name): Declare.
17302 * dwarf2out.c (dwarf2out_set_name): Declare.
17303 (dwarf2_debug_hooks): Add set_name.
17304 (find_AT_string): New.
17305 (add_AT_string): Call find_AT_string.
17306 (dwarf2out_set_name): New.
17307 * cp/decl.c (grokdeclarator): Call set_name.
17308 * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
17309 * debug.c (do_nothing_debug_hooks): Likewise.
17310 * dbxout.c (dbx_debug_hooks): Likewise.
17311 * sdbout.c (sdb_debug_hooks): Likewise.
17313 2009-04-15 Michael Eager <eager@eagercon.com>
17315 * config/rs6000/rs6000.c (rs6000_function_value): Set function return
17316 reg for single-precision FPU.
17317 * config/rs6000/rs6000.md (movsi_internal1): Only for
17318 !TARGET_SINGLE_FPU.
17319 (movsi_internal1_single): New. Add pattern to move SI values to/from
17320 single-precision FP regs.
17322 2009-04-15 Richard Guenther <rguenther@suse.de>
17324 * omp-low.c (lower_rec_input_clauses): Build correct address
17326 (expand_omp_for_generic): Fix multiplication type.
17327 * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
17328 (generate_memset_zero): Fix types.
17329 * tree-profile.c (prepare_instrumented_value): Correctly
17332 2009-04-15 Ian Lance Taylor <iant@google.com>
17334 * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1.
17335 * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
17336 for -Wall and for -Wc++-compat.
17337 (c_common_post_options): For C++, set warn_enum_compare if not
17339 * c-tree.h (struct c_expr): Add field original_type.
17340 (build_external_ref): Update declaration.
17341 * c-parser.c (c_parser_braced_init): Set original_type.
17342 (c_parser_initelt): Likewise.
17343 (c_parser_expr_no_commas): Likewise.
17344 (c_parser_conditional_expression): Likewise.
17345 (c_parser_cast_expression): Likewise.
17346 (c_parser_unary_expression): Likewise. Pull setting of
17347 original_code to top of function.
17348 (c_parser_sizeof_expression): Set original_type.
17349 (c_parser_alignof_expression): Likewise.
17350 (c_parser_postfix_expression): Likewise. Pull setting of
17351 original_code to top of function.
17352 (c_parser_postfix_expression_after_paren_type): Set original_type.
17353 (c_parser_postfix_expression_after_primary): Likewise.
17354 (c_parser_expression): Likewise.
17355 * c-typeck.c (build_external_ref): Add type parameter. Change all
17357 (c_expr_sizeof_expr): Set original_type field.
17358 (parser_build_unary_op): Likewise.
17359 (parser_build_binary_op): Likewise. Optionally warn about
17360 comparisons of enums of different types.
17361 (digest_init): Set original_type field.
17362 (really_start_incremental_init): Likewise.
17363 (push_init_level, pop_init_level): Likewise.
17364 * doc/invoke.texi (Warning Options): -Wenum-compare now
17367 2009-04-15 Richard Guenther <rguenther@suse.de>
17369 * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
17370 out a necessary conversion.
17371 * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
17372 names we didn't value number.
17373 * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
17375 2009-04-15 Richard Guenther <rguenther@suse.de>
17377 PR tree-optimization/39764
17378 * tree-ssa-ccp.c (get_value): Canonicalize value with
17379 canonicalize_float_value.
17381 2009-04-15 Jan Hubicka <jh@suse.cz>
17383 * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
17384 Wrong version of patch.
17386 2009-04-15 Jan Hubicka <jh@suse.cz>
17388 * builtins.def (va_start, va_end, va_copy): Mark nothrow.
17390 2009-04-15 Nathan Sidwell <nathan@codesourcery.com>
17392 * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
17393 our distinct integral and vector types.
17395 2009-04-15 Rafael Avila de Espindola <espindola@google.com>
17397 * class.c (build_vtbl_ref_1): Remove call to assemble_external.
17398 * init.c (build_vtbl_address): Remove call to assemble_external.
17400 2009-04-14 Daniel Jacobowitz <dan@codesourcery.com>
17402 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
17403 output for other floating point modes.
17405 2009-04-14 Diego Novillo <dnovillo@google.com>
17407 * diagnostic.c (diagnostic_report_diagnostic): Do not
17408 warn about loaded plugins for DK_ERROR and DK_WARNING.
17409 * c-decl.c (declspecs_add_type): Move call to
17410 invoke_plugin_callbacks ...
17411 * c-parser.c (c_parser_declspecs): ... here.
17412 * plugin.c (dump_active_plugins): Tidy output.
17414 2009-04-14 Diego Novillo <dnovillo@google.com>
17415 Le-Chun Wu <lcwu@google.com>
17417 * configure.ac: Add --enable-plugin support.
17418 Define ENABLE_PLUGIN and PLUGINLIBS when specified.
17419 * Makefile.in (PLUGIN_H): Define.
17420 Export ENABLE_PLUGIN and GMPINC to site.exp.
17421 Add PLUGINLIBS to link command.
17422 Add/modify dependencies for plugin.o and files including plugin.h.
17424 * config.in: Regenerate.
17426 * opts.c (common_handle_option): Handle OPT_fplugin_ and
17429 2009-04-14 Le-Chun Wu <lcwu@google.com>
17431 * tree-pass.h (register_one_dump_file): Add a prototype for
17432 register_one_dump_file.
17433 * toplev.c (compile_file): Call initialize_plugins.
17434 (do_compile): Call invoke_plugin_callbacks.
17435 (toplev_main): Call invoke_plugin_callbacks.
17436 * common.opt: Add -fplugin= and -fplugin-arg-.
17437 * gcc-plugin.h: New public header file for plugins to include.
17438 * plugin.c: New source file.
17439 * plugin.h: New internal header file.
17440 * passes.c (register_one_dump_file): Make it external.
17442 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
17444 2009-04-14 Diego Novillo <dnovillo@google.com>
17446 * doc/plugins.texi: New.
17447 * doc/gccint.texi: Add reference to Plugins chapter.
17448 * doc/invoke.texi: Document -fplugin and -fplugin-arg
17449 * diagnostic.c (diagnostic_report_diagnostic): Warn about
17450 loaded plugins, if any.
17451 * timevar.def (TV_PLUGIN_INIT): Define.
17452 (TV_PLUGIN_RUN): Define.
17453 * plugin.c: Include timevar.h
17454 (plugins_active_p): New.
17455 (dump_active_plugins): New.
17456 (debug_active_plugins): New.
17458 2009-04-14 Joseph Myers <joseph@codesourcery.com>
17460 * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
17462 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
17464 2009-04-14 Kazu Hirata <kazu@codesourcery.com>
17466 * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
17467 the same as a minus without a shift.
17469 2009-04-14 Nick Clifton <nickc@redhat.com>
17471 * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
17472 comparisons with small integers will always produce a short
17475 2009-04-14 Rafael Avila de Espindola <espindola@google.com>
17478 2008-12-19 Diego Novillo <dnovillo@google.com>
17480 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
17482 2009-04-14 Richard Guenther <rguenther@suse.de>
17484 * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
17486 (verify_gimple_assign_binary): Likewise. Handle shifts and
17488 (verify_gimple_phi): Print the mismatched argument position.
17489 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
17491 (vect_update_init_of_dr): Likewise.
17492 * matrix-reorg.c (transform_access_sites): Do what the
17494 * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
17496 2009-04-13 Michael Eager <eager@eagercon.com>
17498 * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
17499 _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
17500 * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi
17501 * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
17502 remove duplicate config
17504 2009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
17506 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
17507 file_name:line_number type locator of the call site.
17509 2009-04-13 Vladimir Makarov <vmakarov@redhat.com>
17511 * genautomata.c: Put blank after comma.
17512 (automaton_decls): New.
17513 (struct unit_usage): Add comments to member next.
17514 (store_alt_unit_usage): Keep the list ordered.
17515 (unit_present_on_list_p, equal_alternatives_p): New.
17516 (check_regexp_units_distribution): Check units distribution
17517 correctness correctly.
17518 (main): Don't write automata if error is found. Return correct
17521 * config/m68k/cf.md (cfv4_ds): Remove.
17522 (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
17523 cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
17525 * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
17526 power4-load-ext, power4-store, power4-store-update,
17527 power4-fpstore, power4-fpstore-update, power4-two, power4-three,
17528 power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
17529 power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
17530 power4-sqrt, power4-isync): Modify reservation to make correct
17531 unit distribution to automata.
17533 * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
17534 power5-store-update, power5-two, power5-three, power5-lmul,
17535 power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
17537 2009-04-13 Adam Nemet <anemet@caviumnetworks.com>
17539 * except.c (pass_set_nothrow_function_flags): Set name and add
17541 (set_nothrow_function_flags): Mention in the dump file when
17542 changing a function to nothrow.
17544 2009-04-13 Ozkan Sezer <sezeroz@gmail.com>
17547 * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
17548 instead of unsigned long.
17550 2009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17552 * config/arm/arm.c (return_used_this_function): Remove.
17553 (arm_output_function_prologue): Remove use of
17554 return_used_this_function.
17555 (output_return_instruction): Replace use of
17556 return_used_this_function
17557 by cfun->machine->return_used_this_function.
17558 (arm_output_epilogue): Likewise.
17559 (arm_output_function_epilogue): Likewise.
17560 (thumb_unexpanded_epilogue): Likewise.
17561 * config/arm/arm.h (struct machine_function):
17562 New member return_used_this_function.
17564 2009-04-12 Mark Mitchell <mark@codesourcery.com>
17566 * doc/install.texi: Correct description of default directory for
17567 --with-gxx-include-dir.
17569 2009-04-12 Eric Botcazou <ebotcazou@adacore.com>
17571 * fold-const.c (build_range_check): Properly deal with enumeral and
17572 boolean base types.
17574 2009-04-12 Steven Bosscher <steven@gcc.gnu.org>
17576 * doc/invoke.texi (max_gcse_passes): Remove documentation.
17577 * params.def (PARAM_MAX_GCSE_PASSES): Remove.
17578 * params.h (MAX_GCSE_PASSES): Remove.
17579 * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
17580 in sequence. Remove ability to run multiple passes.
17581 (bypass_jumps): Report run as third CPROP pass.
17583 2009-04-12 Adam Nemet <anemet@caviumnetworks.com>
17585 PR middle-end/39651
17586 * except.c (can_throw_external): Look at each insn in a SEQUENCE
17587 when deciding whether the whole SEQUENCE can throw.
17589 2009-04-12 Uros Bizjak <ubizjak@gmail.com>
17592 * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
17593 offseted label references.
17595 2009-04-11 Jan Hubicka <jh@suse.cz>
17597 * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
17599 2009-04-11 Richard Guenther <rguenther@suse.de>
17601 PR middle-end/39732
17602 * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
17603 return variables as TREE_ADDRESSABLE.
17605 2009-04-11 Richard Guenther <rguenther@suse.de>
17607 PR tree-optimization/39713
17608 * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
17609 reference trees have SSA_NAME operands.
17611 2009-04-11 Richard Guenther <rguenther@suse.de>
17614 * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
17615 address expressions.
17617 2009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
17619 * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
17620 match changes in Cygwin 1.7
17621 (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
17622 UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise.
17624 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
17626 PR tree-optimization/39701
17627 * doc/invoke.texi (Optimization Options): Document change in
17628 meaning and initialization of -fdelete-null-pointer-checks.
17630 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
17632 PR middle-end/39701
17633 * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
17635 * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
17638 * doc/invoke.texi: Update -fdelete-null-pointer-checks.
17640 2009-04-10 Chao-ying Fu <fu@mips.com>
17642 * doc/tm.texi (Instruction Output): Document
17643 TARGET_ASM_FINAL_POSTSCAN_INSN.
17644 * target.h (final_postscan_insn): New field in asm_out.
17645 * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
17646 (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
17647 * final.c (final_scan_insn): Call
17648 targetm.asm_out.final_postscan_insn after outputting
17649 an asm macro and a normal instruction.
17651 * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
17652 * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
17653 * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
17654 (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
17655 (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
17657 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
17659 PR middle-end/39701
17660 * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
17661 variables as non-NULL even with -fdelete-null-pointer-checks.
17663 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
17665 * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
17667 2009-04-09 H.J. Lu <hongjiu.lu@intel.com>
17670 * config/i386/i386.c (classify_argument): Handle SCmode with
17671 (bit_offset % 64) != 0.
17673 2009-04-09 Sandra Loosemore <sandra@codesourcery.com>
17675 * doc/invoke.texi (Optimize Options): Add cross-reference to
17676 -Q --help=optimizers examples.
17678 2009-04-10 Ben Elliston <bje@au.ibm.com>
17681 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
17682 regalign for the reg == fpr and TDmode case.
17684 2009-04-09 David Ayers <ayers@fsfe.org>
17687 * objc/objc-act.c (warn_with_method): Remove helper function.
17688 (check_duplicates): Call warning and inform directly.
17689 (really_start_method): Likewise.
17691 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
17693 * expmed.c (expand_divmod): Always use a comparison for a division
17694 by a large unsigned integer.
17696 * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
17697 for things others than variables or functions as nonzero.
17699 2009-04-09 Nick Clifton <nickc@redhat.com>
17701 * unwind-compat.c: Change copyright header to refer to version
17702 3 of the GNU General Public License with version 3.1 of the
17703 GCC Runtime Library Exception and to point readers at the
17704 COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
17705 * config/alpha/crtfastmath.c: Likewise.
17706 * config/alpha/linux-unwind.h: Likewise.
17707 * config/alpha/qrnnd.asm: Likewise.
17708 * config/alpha/vms-crt0-64.c: Likewise.
17709 * config/alpha/vms-crt0.c: Likewise.
17710 * config/alpha/vms-dwarf2.asm: Likewise.
17711 * config/alpha/vms-dwarf2eh.asm: Likewise.
17712 * config/alpha/vms-psxcrt0-64.c: Likewise.
17713 * config/alpha/vms-psxcrt0.c: Likewise.
17714 * config/alpha/vms_tramp.asm: Likewise.
17715 * config/arc/initfini.c: Likewise.
17716 * config/arc/lib1funcs.asm: Likewise.
17717 * config/arm/bpabi-v6m.S: Likewise.
17718 * config/arm/bpabi.S: Likewise.
17719 * config/arm/bpabi.c: Likewise.
17720 * config/arm/crti.asm: Likewise.
17721 * config/arm/crtn.asm: Likewise.
17722 * config/arm/ieee754-df.S: Likewise.
17723 * config/arm/ieee754-sf.S: Likewise.
17724 * config/arm/lib1funcs.asm: Likewise.
17725 * config/arm/libunwind.S: Likewise.
17726 * config/arm/linux-atomic.c: Likewise.
17727 * config/arm/mmintrin.h: Likewise.
17728 * config/arm/pr-support.c: Likewise.
17729 * config/arm/unaligned-funcs.c: Likewise.
17730 * config/arm/unwind-arm.c: Likewise.
17731 * config/arm/unwind-arm.h: Likewise.
17732 * config/avr/libgcc.S: Likewise.
17733 * config/bfin/crti.s: Likewise.
17734 * config/bfin/crtlibid.s: Likewise.
17735 * config/bfin/crtn.s: Likewise.
17736 * config/bfin/lib1funcs.asm: Likewise.
17737 * config/bfin/linux-unwind.h: Likewise.
17738 * config/cris/arit.c: Likewise.
17739 * config/cris/cris_abi_symbol.c: Likewise.
17740 * config/darwin-64.c: Likewise.
17741 * config/darwin-crt2.c: Likewise.
17742 * config/darwin-crt3.c: Likewise.
17743 * config/darwin.h: Likewise.
17744 * config/dbxelf.h: Likewise.
17745 * config/dfp-bit.c: Likewise.
17746 * config/dfp-bit.h: Likewise.
17747 * config/elfos.h: Likewise.
17748 * config/fixed-bit.c: Likewise.
17749 * config/fixed-bit.h: Likewise.
17750 * config/fp-bit.c: Likewise.
17751 * config/fp-bit.h: Likewise.
17752 * config/fr30/crti.asm: Likewise.
17753 * config/fr30/crtn.asm: Likewise.
17754 * config/fr30/lib1funcs.asm: Likewise.
17755 * config/freebsd-spec.h: Likewise.
17756 * config/frv/cmovd.c: Likewise.
17757 * config/frv/cmovh.c: Likewise.
17758 * config/frv/cmovw.c: Likewise.
17759 * config/frv/frvbegin.c: Likewise.
17760 * config/frv/frvend.c: Likewise.
17761 * config/frv/lib1funcs.asm: Likewise.
17762 * config/glibc-stdint.h: Likewise.
17763 * config/h8300/clzhi2.c: Likewise.
17764 * config/h8300/crti.asm: Likewise.
17765 * config/h8300/crtn.asm: Likewise.
17766 * config/h8300/ctzhi2.c: Likewise.
17767 * config/h8300/fixunssfsi.c: Likewise.
17768 * config/h8300/lib1funcs.asm: Likewise.
17769 * config/h8300/parityhi2.c: Likewise.
17770 * config/h8300/popcounthi2.c: Likewise.
17771 * config/i386/ammintrin.h: Likewise.
17772 * config/i386/att.h: Likewise.
17773 * config/i386/avxintrin.h: Likewise.
17774 * config/i386/biarch64.h: Likewise.
17775 * config/i386/bmmintrin.h: Likewise.
17776 * config/i386/cpuid.h: Likewise.
17777 * config/i386/cross-stdarg.h: Likewise.
17778 * config/i386/crtfastmath.c: Likewise.
17779 * config/i386/crtprec.c: Likewise.
17780 * config/i386/cygming-crtbegin.c: Likewise.
17781 * config/i386/cygming-crtend.c: Likewise.
17782 * config/i386/cygwin.asm: Likewise.
17783 * config/i386/emmintrin.h: Likewise.
17784 * config/i386/gmm_malloc.h: Likewise.
17785 * config/i386/gthr-win32.c: Likewise.
17786 * config/i386/i386.h: Likewise.
17787 * config/i386/immintrin.h: Likewise.
17788 * config/i386/linux-unwind.h: Likewise.
17789 * config/i386/linux64.h: Likewise.
17790 * config/i386/mm3dnow.h: Likewise.
17791 * config/i386/mmintrin-common.h: Likewise.
17792 * config/i386/mmintrin.h: Likewise.
17793 * config/i386/nmmintrin.h: Likewise.
17794 * config/i386/pmm_malloc.h: Likewise.
17795 * config/i386/pmmintrin.h: Likewise.
17796 * config/i386/smmintrin.h: Likewise.
17797 * config/i386/sol2-c1.asm: Likewise.
17798 * config/i386/sol2-ci.asm: Likewise.
17799 * config/i386/sol2-cn.asm: Likewise.
17800 * config/i386/sol2-gc1.asm: Likewise.
17801 * config/i386/tmmintrin.h: Likewise.
17802 * config/i386/unix.h: Likewise.
17803 * config/i386/w32-unwind.h: Likewise.
17804 * config/i386/wmmintrin.h: Likewise.
17805 * config/i386/x86-64.h: Likewise.
17806 * config/i386/x86intrin.h: Likewise.
17807 * config/i386/xmmintrin.h: Likewise.
17808 * config/ia64/crtbegin.asm: Likewise.
17809 * config/ia64/crtend.asm: Likewise.
17810 * config/ia64/crtfastmath.c: Likewise.
17811 * config/ia64/crti.asm: Likewise.
17812 * config/ia64/crtn.asm: Likewise.
17813 * config/ia64/fde-glibc.c: Likewise.
17814 * config/ia64/lib1funcs.asm: Likewise.
17815 * config/ia64/linux-unwind.h: Likewise.
17816 * config/ia64/quadlib.c: Likewise.
17817 * config/ia64/unwind-ia64.c: Likewise.
17818 * config/linux.h: Likewise.
17819 * config/m32c/m32c-lib1.S: Likewise.
17820 * config/m32c/m32c-lib2-trapv.c: Likewise.
17821 * config/m32c/m32c-lib2.c: Likewise.
17822 * config/m32r/initfini.c: Likewise.
17823 * config/m68hc11/larith.asm: Likewise.
17824 * config/m68hc11/m68hc11-crt0.S: Likewise.
17825 * config/m68k/cf.md: Likewise.
17826 * config/m68k/crti.s: Likewise.
17827 * config/m68k/crtn.s: Likewise.
17828 * config/m68k/lb1sf68.asm: Likewise.
17829 * config/m68k/linux-unwind.h: Likewise.
17830 * config/mcore/crti.asm: Likewise.
17831 * config/mcore/crtn.asm: Likewise.
17832 * config/mcore/lib1.asm: Likewise.
17833 * config/mips/linux-unwind.h: Likewise.
17834 * config/mips/loongson.h: Likewise.
17835 * config/mips/mips16.S: Likewise.
17836 * config/mmix/crti.asm: Likewise.
17837 * config/mmix/crtn.asm: Likewise.
17838 * config/pa/fptr.c: Likewise.
17839 * config/pa/hpux-unwind.h: Likewise.
17840 * config/pa/lib2funcs.asm: Likewise.
17841 * config/pa/linux-atomic.c: Likewise.
17842 * config/pa/linux-unwind.h: Likewise.
17843 * config/pa/milli64.S: Likewise.
17844 * config/pa/quadlib.c: Likewise.
17845 * config/pa/stublib.c: Likewise.
17846 * config/picochip/libgccExtras/adddi3.asm: Likewise.
17847 * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
17848 * config/picochip/libgccExtras/ashlsi3.c: Likewise.
17849 * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
17850 * config/picochip/libgccExtras/ashrsi3.c: Likewise.
17851 * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
17852 * config/picochip/libgccExtras/divmod15.asm: Likewise.
17853 * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
17854 * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
17855 * config/picochip/libgccExtras/longjmp.asm: Likewise.
17856 * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
17857 * config/picochip/libgccExtras/lshrsi3.c: Likewise.
17858 * config/picochip/libgccExtras/parityhi2.asm: Likewise.
17859 * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
17860 * config/picochip/libgccExtras/setjmp.asm: Likewise.
17861 * config/picochip/libgccExtras/subdi3.asm: Likewise.
17862 * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
17863 * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
17864 * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
17865 * config/rs6000/750cl.h: Likewise.
17866 * config/rs6000/altivec.h: Likewise.
17867 * config/rs6000/biarch64.h: Likewise.
17868 * config/rs6000/crtresfpr.asm: Likewise.
17869 * config/rs6000/crtresgpr.asm: Likewise.
17870 * config/rs6000/crtresxfpr.asm: Likewise.
17871 * config/rs6000/crtresxgpr.asm: Likewise.
17872 * config/rs6000/crtsavfpr.asm: Likewise.
17873 * config/rs6000/crtsavgpr.asm: Likewise.
17874 * config/rs6000/darwin-asm.h: Likewise.
17875 * config/rs6000/darwin-fallback.c: Likewise.
17876 * config/rs6000/darwin-fpsave.asm: Likewise.
17877 * config/rs6000/darwin-ldouble.c: Likewise.
17878 * config/rs6000/darwin-tramp.asm: Likewise.
17879 * config/rs6000/darwin-unwind.h: Likewise.
17880 * config/rs6000/darwin-vecsave.asm: Likewise.
17881 * config/rs6000/darwin-world.asm: Likewise.
17882 * config/rs6000/e500crtres32gpr.asm: Likewise.
17883 * config/rs6000/e500crtres64gpr.asm: Likewise.
17884 * config/rs6000/e500crtres64gprctr.asm: Likewise.
17885 * config/rs6000/e500crtrest32gpr.asm: Likewise.
17886 * config/rs6000/e500crtrest64gpr.asm: Likewise.
17887 * config/rs6000/e500crtresx32gpr.asm: Likewise.
17888 * config/rs6000/e500crtresx64gpr.asm: Likewise.
17889 * config/rs6000/e500crtsav32gpr.asm: Likewise.
17890 * config/rs6000/e500crtsav64gpr.asm: Likewise.
17891 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
17892 * config/rs6000/e500crtsavg32gpr.asm: Likewise.
17893 * config/rs6000/e500crtsavg64gpr.asm: Likewise.
17894 * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
17895 * config/rs6000/eabi-ci.asm: Likewise.
17896 * config/rs6000/eabi-cn.asm: Likewise.
17897 * config/rs6000/eabi.asm: Likewise.
17898 * config/rs6000/linux-unwind.h: Likewise.
17899 * config/rs6000/linux64.h: Likewise.
17900 * config/rs6000/paired.h: Likewise.
17901 * config/rs6000/paired.md: Likewise.
17902 * config/rs6000/ppc64-fp.c: Likewise.
17903 * config/rs6000/ppu_intrinsics.h: Likewise.
17904 * config/rs6000/rs6000.h: Likewise.
17905 * config/rs6000/si2vmx.h: Likewise.
17906 * config/rs6000/sol-ci.asm: Likewise.
17907 * config/rs6000/sol-cn.asm: Likewise.
17908 * config/rs6000/spe.h: Likewise.
17909 * config/rs6000/spu2vmx.h: Likewise.
17910 * config/rs6000/sysv4.h: Likewise.
17911 * config/rs6000/tramp.asm: Likewise.
17912 * config/rs6000/vec_types.h: Likewise.
17913 * config/s390/linux-unwind.h: Likewise.
17914 * config/s390/tpf-unwind.h: Likewise.
17915 * config/score/crti.asm: Likewise.
17916 * config/score/crtn.asm: Likewise.
17917 * config/sh/crt1.asm: Likewise.
17918 * config/sh/crti.asm: Likewise.
17919 * config/sh/crtn.asm: Likewise.
17920 * config/sh/divtab-sh4-300.c: Likewise.
17921 * config/sh/divtab-sh4.c: Likewise.
17922 * config/sh/divtab.c: Likewise.
17923 * config/sh/lib1funcs-4-300.asm: Likewise.
17924 * config/sh/lib1funcs-Os-4-200.asm: Likewise.
17925 * config/sh/lib1funcs.asm: Likewise.
17926 * config/sh/lib1funcs.h: Likewise.
17927 * config/sh/linux-atomic.asm: Likewise.
17928 * config/sh/linux-unwind.h: Likewise.
17929 * config/sh/shmedia.h: Likewise.
17930 * config/sh/sshmedia.h: Likewise.
17931 * config/sh/ushmedia.h: Likewise.
17932 * config/sparc/crtfastmath.c: Likewise.
17933 * config/sparc/linux-unwind.h: Likewise.
17934 * config/sparc/sol2-c1.asm: Likewise.
17935 * config/sparc/sol2-ci.asm: Likewise.
17936 * config/sparc/sol2-cn.asm: Likewise.
17937 * config/spu/divmodti4.c: Likewise.
17938 * config/spu/divv2df3.c: Likewise.
17939 * config/spu/float_disf.c: Likewise.
17940 * config/spu/float_unsdidf.c: Likewise.
17941 * config/spu/float_unsdisf.c: Likewise.
17942 * config/spu/float_unssidf.c: Likewise.
17943 * config/spu/mfc_multi_tag_release.c: Likewise.
17944 * config/spu/mfc_multi_tag_reserve.c: Likewise.
17945 * config/spu/mfc_tag_release.c: Likewise.
17946 * config/spu/mfc_tag_reserve.c: Likewise.
17947 * config/spu/mfc_tag_table.c: Likewise.
17948 * config/spu/multi3.c: Likewise.
17949 * config/spu/spu_internals.h: Likewise.
17950 * config/spu/spu_intrinsics.h: Likewise.
17951 * config/spu/spu_mfcio.h: Likewise.
17952 * config/spu/vec_types.h: Likewise.
17953 * config/spu/vmx2spu.h: Likewise.
17954 * config/stormy16/stormy16-lib2.c: Likewise.
17955 * config/svr4.h: Likewise.
17956 * config/sync.c: Likewise.
17957 * config/v850/lib1funcs.asm: Likewise.
17958 * config/vxlib-tls.c: Likewise.
17959 * config/vxlib.c: Likewise.
17960 * config/vxworks-dummy.h: Likewise.
17961 * config/xtensa/crti.asm: Likewise.
17962 * config/xtensa/crtn.asm: Likewise.
17963 * config/xtensa/ieee754-df.S: Likewise.
17964 * config/xtensa/ieee754-sf.S: Likewise.
17965 * config/xtensa/lib1funcs.asm: Likewise.
17966 * config/xtensa/lib2funcs.S: Likewise.
17967 * config/xtensa/linux-unwind.h: Likewise.
17968 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
17969 * config/xtensa/unwind-dw2-xtensa.h: Likewise.
17970 * coretypes.h: Likewise.
17971 * crtstuff.c: Likewise.
17972 * defaults.h: Likewise.
17973 * dwarf2.h: Likewise.
17974 * emutls.c: Likewise.
17975 * gbl-ctors.h: Likewise.
17976 * gcov-io.h: Likewise.
17977 * ginclude/float.h: Likewise.
17978 * ginclude/iso646.h: Likewise.
17979 * ginclude/stdarg.h: Likewise.
17980 * ginclude/stdbool.h: Likewise.
17981 * ginclude/stddef.h: Likewise.
17982 * ginclude/stdfix.h: Likewise.
17983 * ginclude/stdint-gcc.h: Likewise.
17984 * ginclude/tgmath.h: Likewise.
17985 * gthr-aix.h: Likewise.
17986 * gthr-dce.h: Likewise.
17987 * gthr-gnat.c: Likewise.
17988 * gthr-gnat.h: Likewise.
17989 * gthr-lynx.h: Likewise.
17990 * gthr-mipssde.h: Likewise.
17991 * gthr-nks.h: Likewise.
17992 * gthr-posix.c: Likewise.
17993 * gthr-posix.h: Likewise.
17994 * gthr-posix95.h: Likewise.
17995 * gthr-rtems.h: Likewise.
17996 * gthr-single.h: Likewise.
17997 * gthr-solaris.h: Likewise.
17998 * gthr-tpf.h: Likewise.
17999 * gthr-vxworks.h: Likewise.
18000 * gthr-win32.h: Likewise.
18001 * gthr.h: Likewise.
18002 * libgcc2.c: Likewise.
18003 * libgcc2.h: Likewise.
18004 * libgcov.c: Likewise.
18005 * tsystem.h: Likewise.
18006 * typeclass.h: Likewise.
18007 * unwind-c.c: Likewise.
18008 * unwind-compat.h: Likewise.
18009 * unwind-dw2-fde-compat.c: Likewise.
18010 * unwind-dw2-fde-darwin.c: Likewise.
18011 * unwind-dw2-fde-glibc.c: Likewise.
18012 * unwind-dw2-fde.c: Likewise.
18013 * unwind-dw2-fde.h: Likewise.
18014 * unwind-dw2.c: Likewise.
18015 * unwind-dw2.h: Likewise.
18016 * unwind-generic.h: Likewise.
18017 * unwind-pe.h: Likewise.
18018 * unwind-sjlj.c: Likewise.
18019 * unwind.inc: Likewise.
18020 * config/arm/neon-gen.ml: Change generated copyright header to
18021 refer to version 3 of the GNU General Public License with
18022 version 3.1 of the GCC Runtime Library Exception and to point
18023 readers at the COPYING3 and COPYING3.RUNTIME files and the
18024 FSF's license web page.
18025 * config/arm/arm_neon.h: Regenerate.
18027 2009-04-09 Jakub Jelinek <jakub@redhat.com>
18029 * config/cris/cris.md: Change copyright header to refer to version
18030 3 of the GNU General Public License.
18031 * doc/install.texi2html: Change copyright header to refer to version
18032 3 of the GNU General Public License and to point readers at the
18033 COPYING3 file and the FSF's license web page.
18034 * config/vax/linux.h: Likewise.
18036 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
18038 * config/i386/i386.md (cmpcc): New.
18039 * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
18040 (sync_compare_and_swap_cc*): Delete.
18042 * config/s390/s390.c (s390_compare_emitted): Remove.
18043 (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
18044 s390_compare_emitted used to be handled. Assert that modes match.
18045 (s390_emit_compare_and_swap): Use s390_emit_compare, do not
18046 refer to sync_compare_and_swap_ccsi.
18047 * config/s390/s390.h (s390_compare_emitted): Remove.
18048 * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
18049 instead of s390_compare_emitted.
18050 (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
18051 instead of s390_compare_emitted.
18052 * config/s390/s390.md (cmpcc): New.
18053 (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
18054 CC_REGNUM, do not pretend it's set.
18055 (sync_compare_and_swap_cc*): Delete.
18056 * config/s390/predicates.md (cc_reg_operand): New.
18058 * expr.c (sync_compare_and_swap_cc): Delete.
18059 * optabs.h (sync_compare_and_swap_cc): Delete.
18060 * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
18061 is being used with can_compare_p.
18062 (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
18063 (find_cc_set): New.
18064 (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
18065 look for a MODE_CC set instead. Use emit_store_flag.
18066 (expand_compare_and_swap_loop): Likewise, with some additional
18067 complication to avoid a force_reg when useless. Use
18068 emit_cmp_and_jump_insns.
18069 * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
18070 * doc/md.texi (sync_compare_and_swap_cc): Merge with
18071 sync_compare_and_swap documentation.
18073 2009-04-09 Jan Hubicka <jh@suse.cz>
18075 * except.c (find_prev_try): Break out from ....
18076 (duplicate_eh_regions): ... here; properly update prev_try pointers
18077 when duplication part of tree.
18078 (dump_eh_tree): Improve dumping.
18079 (verify_eh_region): New.
18080 (verify_eh_tree): Use it.
18082 2009-04-06 Richard Guenther <rguenther@suse.de>
18084 * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
18085 &ARRAY addresses by adjusting their types and prepending
18087 * tree-cfg.c (verify_gimple_assign_single): Verify that
18088 addresses are correct.
18090 2009-04-09 Richard Guenther <rguenther@suse.de>
18092 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
18093 indices into an array reference if possible.
18094 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
18095 Fold POINTER_PLUS_EXPR statements with invariant address.
18097 2009-04-09 Alan Modra <amodra@bigpond.net.au>
18100 * config.gcc (powerpc64-*-linux*): Always build biarch.
18102 2009-04-09 Joseph Myers <joseph@codesourcery.com>
18105 * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
18106 it and pedwarn if this results in an INTEGER_CST.
18108 2009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18110 * doc/install.texi: Update minimum GMP version. Remove obsolete
18111 text in MPFR section.
18113 2009-04-08 Jakub Jelinek <jakub@redhat.com>
18115 * dwarf2out.c (class_scope_p): New static inline.
18116 (class_or_namespace_scope_p): Use it.
18117 (gen_variable_die): Use DW_TAG_member tag for static data member
18118 declarations instead of DW_TAG_variable.
18120 PR middle-end/39573
18121 * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
18124 2009-04-08 Richard Guenther <rguenther@suse.de>
18126 * tree-ssa-sccvn.c (valueize_refs): Do not continue to
18127 valueize random data.
18129 2009-04-08 David Edelsohn <edelsohn@gnu.org>
18131 * config.gcc (aix tm_file): Add aix-stdint.h.
18132 (aix tm clause use_gcc_stdint): Set to wrap.
18133 * config/rs6000/aix-stdint.h: New file.
18135 2009-04-08 Richard Guenther <rguenther@suse.de>
18137 PR middle-end/36291
18138 * tree-dfa.c (add_referenced_var): Do not recurse into
18139 global initializers.
18140 * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
18142 (fold_const_aggregate_ref): Likewise.
18144 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
18146 * recog.c (ordered_comparison_operator): New.
18147 * gensupport.c (std_preds): Add it.
18148 * doc/md.texi (Machine-Independent Predicates): Document it.
18150 2009-04-08 Jan Hubicka <jh@suse.cz>
18152 * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
18153 * function.h (rtl_eh): Remove exception_handler_label_map.
18154 * except.c (ehl_hash, ehl_eq, add_ehl_entry,
18155 remove_exception_handler_label, for_each_eh_label_1): Remove.
18156 (rtl_remove_unreachable_regions): Remove.
18157 (convert_from_eh_region_ranges): Do not remove unreachable regions.
18158 (find_exception_handler_labels): Don't build the hashtable.
18159 (maybe_remove_eh_handler): Remove.
18160 (for_each_eh_label): Rewrite to walk the tree.
18161 (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
18162 * except.h (maybe_remove_eh_handler): Remove.
18163 * passes.c (init_optimization_passes): Schedule second EH cleanup
18165 * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
18166 cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
18168 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
18170 * genoutput.c (validate_optab_operands): New.
18171 (gen_insn, gen_expand): Call it.
18173 * genflags.c (gen_insn): Detect misused iterators.
18174 (main): Pass line_no to gen_insn, exit with status 1 on error.
18176 * genextract.c (line_no): Make global.
18177 (VEC_safe_set_locstr): Change assertion to error message.
18178 (main): Exit with status 1 on error.
18180 2009-04-08 Joseph Myers <joseph@codesourcery.com>
18184 * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
18185 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
18186 EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
18187 * c-convert.c (convert): Do not call fold on results of conversion
18188 functions when the result is a C_MAYBE_CONST_EXPR.
18189 * c-parser.c (c_parser_postfix_expression): Do not fold condition
18190 of __builtin_choose_expr.
18191 * c-typeck.c (remove_c_maybe_const_expr): New.
18192 (build_unary_op, build_conditional_expr, build_compound_expr,
18193 build_binary_op, c_objc_common_truthvalue_conversion): Call
18194 remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
18197 2009-04-08 Bingfeng Mei <bmei@broadcom.com>
18199 * fold-const.c (const_binop): Combine two VECTOR_CST under operation
18200 CODE to produce a new one. Add a prototype to use fold_convert_const
18202 2009-04-08 Danny Smith <dannysmith@users.sourceforge.net>
18205 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
18206 mix declarations and code.
18208 2009-04-08 Ben Elliston <bje@au.ibm.com>
18210 * gcc.c: Replace `CC' with `GCC' throughout.
18212 2009-04-07 H.J. Lu <hongjiu.lu@intel.com>
18214 * doc/invoke.texi: Document Atom support.
18216 2009-04-07 Jason Merrill <jason@redhat.com>
18219 * c-common.h, c-common.c: Add flag_pretty_templates.
18220 * c-opts.c (c_common_handle_option): Set it.
18221 * c.opt: Add -fno-pretty-templates.
18222 * doc/invoke.texi (C++ Dialect Options): Likewise.
18224 2009-04-07 Uros Bizjak <ubizjak@gmail.com>
18226 * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
18227 (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
18228 (ia64_expand_builtin): Likewise.
18230 2009-04-07 Martin Jambor <mjambor@suse.cz>
18232 * tree-ssa-alias.c (refs_may_alias_p_1): Check for
18233 is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
18234 ADDR_EXPRS are include too.
18236 2009-04-07 Richard Guenther <rguenther@suse.de>
18238 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
18239 decls are only used if passes as parameters or if they are
18240 local statics and the call is not to a builtin.
18241 (call_may_clobber_ref_p_1): Likewise.
18243 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
18245 * expr.c (do_store_flag): Remove last argument. Simplify code
18246 to avoid duplication of tests already done by can_compare_p.
18247 (expand_expr_real_1): Adjust caller.
18249 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
18251 * optabs.c (can_compare_p): Test the predicate of a
18252 cbranch and cstore pattern.
18254 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
18256 * expr.c (convert_move): Use emit_store_flag instead of
18259 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
18261 * config/i386/i386.c (ix86_compare_emitted): Remove.
18262 (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
18263 ix86_compare_op0 like ix86_compare_emitted used to be handled.
18264 * config/i386/i386.h (ix86_compare_emitted): Remove.
18265 * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
18266 instead of ix86_compare_emitted.
18267 * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
18269 2009-04-07 Andrew Stubbs <ams@codesourcery.com>
18271 * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
18272 Add t-sysroot-suffix to tmake_file.
18273 * config/print-sysroot-suffix.sh: New file.
18274 * config/t-sysroot-suffix: New file.
18276 2009-04-07 Ben Elliston <bje@au.ibm.com>
18278 * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
18279 as the latter produces a warning when the target does not support
18282 2009-04-07 Ben Elliston <bje@au.ibm.com>
18284 * dfp.c: Replace type punning assignments with memcpy throughout.
18285 * Makefile.in (dfp.o-warn): Remove.
18287 2009-04-07 Alan Modra <amodra@bigpond.net.au>
18290 * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
18291 Include soft-fp/t-softfp after rs6000/t-linux64.
18293 2009-04-06 Eric Botcazou <ebotcazou@adacore.com>
18295 * stor-layout.c (set_sizetype): Use the full precision of their
18296 machine mode for bitsize types.
18298 2009-04-06 H.J. Lu <hongjiu.lu@intel.com>
18300 * config/i386/i386.md: Revert 2 accidental checkins.
18302 2009-04-06 Joey Ye <joey.ye@intel.com>
18303 Xuepeng Guo <xuepeng.guo@intel.com>
18304 H.J. Lu <hongjiu.lu@intel.com>
18306 Atom pipeline model, tuning and insn selection.
18307 * config.gcc (atom): Add atom config options and target.
18309 * config/i386/atom.md: New.
18311 * config/i386/i386.c (atom_cost): New cost.
18312 (m_ATOM): New macro flag.
18313 (initial_ix86_tune_features): Set m_ATOM.
18314 (x86_accumulate_outgoing_args): Likewise.
18315 (x86_arch_always_fancy_math_387): Likewise.
18316 (processor_target): Add Atom cost.
18317 (cpu_names): Add Atom cpu name.
18318 (override_options): Set Atom ISA.
18319 (ix86_issue_rate): New case PROCESSOR_ATOM.
18320 (ix86_adjust_cost): Likewise.
18322 * config/i386/i386.h (TARGET_ATOM): New target macro.
18323 (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
18324 (TARGET_OPT_AGU): New target option.
18325 (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
18326 (processor_type): Add PROCESSOR_ATOM.
18328 * config/i386/i386.md (cpu): Add new value "atom".
18329 (use_carry, movu): New attr.
18330 (atom.md): Include atom.md.
18331 (adddi3_carry_rex64): Set attr "use_carry".
18332 (addqi3_carry): Likewise.
18333 (addhi3_carry): Likewise.
18334 (addsi3_carry): Likewise.
18335 (*addsi3_carry_zext): Likewise.
18336 (subdi3_carry_rex64): Likewise.
18337 (subqi3_carry): Likewise.
18338 (subhi3_carry): Likewise.
18339 (subsi3_carry): Likewise.
18340 (x86_movdicc_0_m1_rex64): Likewise.
18341 (*x86_movdicc_0_m1_se): Likewise.
18342 (x86_movsicc_0_m1): Likewise.
18343 (*x86_movsicc_0_m1_se): Likewise.
18344 (*adddi_1_rex64): Emit add insn as much as possible.
18345 (*addsi_1): Likewise.
18346 (return_internal): Set atom_unit.
18347 (return_internal_long): Likewise.
18348 (return_pop_internal): Likewise.
18349 (*rcpsf2_sse): Set atom_sse_attr attr.
18350 (*qrt<mode>2_sse): Likewise.
18351 (*prefetch_sse): Likewise.
18353 * config/i386/i386-c.c (ix86_target_macros_internal): New case
18355 (ix86_target_macros_internal): Likewise.
18357 * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
18358 (*prefetch_sse_rex): Likewise.
18359 (sse_rcpv4sf2): Likewise.
18360 (sse_vmrcpv4sf2): Likewise.
18361 (sse_sqrtv4sf2): Likewise.
18362 (<sse>_vmsqrt<mode>2): Likewise.
18363 (sse_ldmxcsr): Likewise.
18364 (sse_stmxcsr): Likewise.
18365 (*sse_sfence): Likewise.
18366 (sse2_clflush): Likewise.
18367 (*sse2_mfence): Likewise.
18368 (*sse2_lfence): Likewise.
18369 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
18370 (<sse>_movup<ssemodesuffixf2c>): Likewise.
18371 (avx_movdqu<avxmodesuffix>): Likewise.
18372 (avx_lddqu<avxmodesuffix>): Likewise.
18373 (sse2_movntv2di): Change attr "type" to "ssemov".
18374 (sse2_movntsi): Likewise.
18375 (rsqrtv8sf2): Change attr "type" to "sseadd".
18376 (sse3_addsubv2df3): Set attr "atom_unit".
18377 (sse3_h<plusminus_insn>v4sf3): Likewise.
18378 (*sse2_pmaddwd): Likewise.
18379 (*vec_extractv2di_1_rex64): Likewise.
18380 (*vec_extractv2di_1_avx): Likewise.
18381 (sse2_psadbw): Likewise.
18382 (ssse3_phaddwv8hi3): Likewise.
18383 (ssse3_phaddwv4hi3): Likewise.
18384 (ssse3_phadddv4si3): Likewise.
18385 (ssse3_phadddv2si3): Likewise.
18386 (ssse3_phaddswv8hi3): Likewise.
18387 (ssse3_phaddswv4hi3): Likewise.
18388 (ssse3_phsubwv8hi3): Likewise.
18389 (ssse3_phsubwv4hi3): Likewise.
18390 (ssse3_phsubdv4si3): Likewise.
18391 (ssse3_phsubdv2si3): Likewise.
18392 (ssse3_phsubswv8hi3): Likewise.
18393 (ssse3_phsubswv4hi3): Likewise.
18394 (ssse3_pmaddubsw128): Likewise.
18395 (sse3_pmaddubsw: Likewise.
18396 (ssse3_palignrti): Likewise.
18397 (ssse3_palignrdi): Likewise.
18399 2009-04-06 Gerald Pfeifer <gerald@pfeifer.com>
18401 * doc/install.texi (Specific): Fix two cross-references to MinGW.
18403 2009-04-06 Richard Guenther <rguenther@suse.de>
18405 PR tree-optimization/28868
18406 * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
18407 of which PHI results we inserted.
18408 (insert_into_preds_of_block): Record inserted PHIs.
18409 (eliminate): Eliminate redundant PHI nodes.
18410 (init_pre): Init inserted_phi_names.
18412 2009-04-06 Richard Guenther <rguenther@suse.de>
18414 PR tree-optimization/39643
18415 * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
18416 IMAGPART_EXPRs of complex constants.
18417 (execute_fold_all_builtins): If we folded a call queue
18418 TODO_update_address_taken.
18420 2009-04-06 Jan Hubicka <jh@suse.cz>
18422 PR middle-end/39659
18423 * except.c (remove_unreachable_regions): Propagate may_contain_throw
18426 2009-04-06 Andrew Stubbs <ams@codesourcery.com>
18428 * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
18430 (ic_invalidate_array): Likewise.
18432 2009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
18434 * calls.c (emit_library_call_value_1): Fix a problem with parameter
18435 alignment for library calls.
18437 2009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
18439 * config.gcc (mingw32 tm_file): Add mingw-stdint.h.
18440 (mingw32 tm clause use_gcc_stdint): Set to wrap.
18441 * config/i386/mingw-stdint.h: New file.
18443 2009-04-05 Richard Guenther <rguenther@suse.de>
18445 PR tree-optimization/39648
18446 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
18447 our &A vs. &A[0] IL deficiencies.
18449 2009-04-04 Jan Hubicka <jh@suse.cz>
18451 * except.c (sjlj_find_directly_reachable_regions): Be ready for
18452 removed toplevel regions.
18453 (sjlj_mark_call_sites): Likewise.
18455 2009-04-04 Dave Korn <dave.korn.cygwin@gmail.com>
18457 * config.gcc (cygwin tm_file): Add cygwin-stdint.h.
18458 (cygwin tm clause use_gcc_stdint): Set to wrap.
18459 * config/i386/cygwin-stdint.h: New file.
18461 2009-04-04 Richard Guenther <rguenther@suse.de>
18463 * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
18464 * tree-ssa-copy.c (init_copy_prop): Do not propagate through
18465 single-argument PHIs if we are in loop-closed SSA form.
18466 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
18467 for the pre-condition.
18468 (slpeel_tree_peel_loop_to_edge): Likewise.
18469 (vect_build_loop_niters): Take an optional sequence to append stmts.
18470 (vect_generate_tmps_on_preheader): Likewise.
18471 (vect_do_peeling_for_loop_bound): Take extra guards for the
18473 (vect_do_peeling_for_alignment): Adjust. Unconditionally apply
18474 the cost model check.
18475 (vect_loop_versioning): Take stmt and stmt list to put pre-condition
18476 guards if we are going to peel. Do not apply versioning in that case.
18477 * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
18478 (vect_do_peeling_for_loop_bound): Likewise.
18479 * tree-vect-loop.c (vect_transform_loop): If we are peeling for
18480 loop bound only record extra pre-conditions, do not apply loop
18483 2009-04-04 Richard Guenther <rguenther@suse.de>
18485 * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
18488 2009-04-04 Jan Hubicka <jh@suse.cz>
18490 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
18491 last_basic_block for size of bb->index indexed array.
18492 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
18493 compute_out, link_btr_uses, build_btr_def_use_webs,
18494 build_btr_def_use_webs, migrate_btr_defs): Likewise.
18496 2009-04-04 Jan Hubicka <jh@suse.cz>
18498 * except.c (remove_eh_handler_and_replace): Break out from ...
18499 (remove_eh_handler): ... here.
18500 (bring_to_root): New function.
18501 (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
18502 handled ones, bring others to root of tree.
18504 2009-04-04 Jan Hubicka <jh@suse.cz>
18506 * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
18507 (all_phis_safe_to_merge): New function.
18508 (update_info): New structure.
18509 (make_eh_edge_and_update_phi, update_eh_edges): New functions.
18510 (cleanup_empty_eh): Update SSA if possible.
18512 2009-04-04 Richard Guenther <rguenther@suse.de>
18514 * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
18515 * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
18516 (append_vuse): Likewise.
18518 2009-04-04 Jakub Jelinek <jakub@redhat.com>
18520 * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
18521 * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
18522 instead of REG_UNSAVED for DW_CFA_undefined.
18523 (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
18524 (uw_update_context): If RA column is REG_UNDEFINED, mark it as
18527 2009-04-04 Richard Earnshaw <rearnsha@arm.com>
18530 * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
18531 * testsuite/gcc.c-torture/execute/pr39501.c: New file.
18532 * testsuite/gcc.c-torture/execute/pr39501.x: New file.
18534 2009-04-04 Richard Guenther <rguenther@suse.de>
18536 PR tree-optimization/8781
18537 PR tree-optimization/37892
18538 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
18539 * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
18540 (valueize_refs): Call it for *& valueizations.
18541 (shared_reference_ops_from_ref): Rename to ...
18542 (valueize_shared_reference_ops_from_ref): ... this and valueize.
18543 (shared_reference_ops_from_call): Rename to ...
18544 (valueize_shared_reference_ops_from_call): ... this and valueize.
18545 (vn_reference_lookup): Update.
18546 (visit_reference_op_call): Likewise.
18547 * tree-ssa-pre.c (phi_translate_1): Fold *&.
18548 (eliminate): Value-replace the call address in call statements.
18550 2009-04-04 Richard Guenther <rguenther@suse.de>
18552 PR tree-optimization/39636
18553 * tree-ssa-forwprop.c
18554 (forward_propagate_addr_into_variable_array_index): Check for
18555 GIMPLE_ASSIGN before accessing the rhs code.
18557 2009-04-03 Jason Merrill <jason@redhat.com>
18559 * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
18561 2009-04-03 Steve Ellcey <sje@cup.hp.com>
18563 * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
18564 truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
18565 fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
18566 floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
18567 fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
18568 smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
18569 divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
18570 umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
18571 *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
18572 *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
18573 adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
18574 smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
18575 *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
18576 *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
18577 sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
18578 Use fr_reg_or_fp01_operand instead of fr_register_operand
18580 * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
18581 recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
18582 divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
18584 2009-04-03 Vladimir Makarov <vmakarov@redhat.com>
18586 PR rtl-optimization/39607
18587 PR rtl-optimization/39631
18591 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
18592 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
18593 instead of DF_LR_OUT.
18594 * ira-lives.c (process_bb_node_lives): Ditto.
18595 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
18596 instead of DF_LR_{OUT,IN}.
18597 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
18598 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
18600 2009-04-03 Steven Bosscher <steven@gcc.gnu.org>
18602 * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
18603 (execute_lower_omp): Always run but take the short way out if -fopenmp
18605 (gate_lower_omp): Remove, forcing the pass manager to always run the
18606 pass and always set PROP_gimple_lomp.
18607 (pass_lower_omp): Remove gate function.
18608 * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
18609 PROP_trees. Instead, require it.
18610 * ipa-cp.c (pass_ipa_cp): Likewise.
18611 * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
18612 (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
18613 * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
18614 and PROP_gimple_leh.
18616 2009-04-03 Richard Guenther <rguenther@suse.de>
18618 PR middle-end/13146
18619 PR tree-optimization/23940
18620 PR tree-optimization/33237
18621 PR middle-end/33974
18622 PR middle-end/34093
18623 PR tree-optimization/36201
18624 PR tree-optimization/36230
18625 PR tree-optimization/38049
18626 PR tree-optimization/38207
18627 PR tree-optimization/38230
18628 PR tree-optimization/38301
18629 PR tree-optimization/38585
18630 PR middle-end/38895
18631 PR tree-optimization/38985
18632 PR tree-optimization/39299
18633 * tree-ssa-structalias.h: Remove.
18634 * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
18635 (NULL_DEF_OPERAND_P): Make of type def_operand_p.
18636 (struct vuse_element_d): Remove.
18637 (struct vuse_vec_d): Likewise.
18638 (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
18639 VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
18640 SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
18641 VUSE_ELEMENT_VAR): Likewise.
18642 (struct voptype_d): Likewise.
18643 (NUM_VOP_FREE_BUCKETS): Likewise.
18644 (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
18645 (struct stmt_operands_d): Remove.
18646 (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
18647 VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
18648 VDEF_NUM, VDEF_VECT): Likewise.
18649 (copy_virtual_operands): Remove.
18650 (operand_build_cmp): Likewise.
18651 (create_ssa_artificial_load_stmt): Likewise.
18652 (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
18653 (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
18654 vuse_index and mayuse_index members. Pack and move done and iter_type
18655 members to the front.
18656 (SSA_OP_VMAYUSE): Remove.
18657 (SSA_OP_VIRTUAL_USES): Adjust.
18658 (FOR_EACH_SSA_VDEF_OPERAND): Remove.
18659 (unlink_stmt_vdef): Declare.
18660 (add_to_addressable_set): Remove.
18661 * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
18662 (vrp_visit_stmt): Likewise.
18663 * doc/tree-ssa.texi (Alias analysis): Update.
18664 * doc/invoke.texi (max-aliased-vops): Remove docs.
18665 (avg-aliased-vops): Likewise.
18666 * tree-into-ssa.c (syms_to_rename): Remove.
18667 (need_to_update_vops_p): Likewise.
18668 (need_to_initialize_update_ssa_p): Rename to ...
18669 (update_ssa_initialized_fn): ... this. Track function we are
18671 (symbol_marked_for_renaming): Simplify.
18672 (add_new_name_mapping): Do not set need_to_update_vops_p.
18673 (dump_currdefs): Use SYMS_TO_RENAME.
18674 (rewrite_update_stmt): Always walk all uses/defs.
18675 (dump_update_ssa): Adjust.
18676 (init_update_ssa): Take function argument. Track what we are
18678 (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
18679 (create_new_def_for): Initialize for cfun, assert we are initialized
18681 (mark_sym_for_renaming): Simplify.
18682 (mark_set_for_renaming): Do not initialize update-ssa.
18683 (need_ssa_update_p): Simplify. Take function argument.
18684 (name_mappings_registered_p): Assert we ask for the correct function.
18685 (name_registered_for_update_p): Likewise.
18686 (ssa_names_to_replace): Likewise.
18687 (release_ssa_name_after_update_ssa): Likewise.
18688 (update_ssa): Likewise. Use SYMS_TO_RENAME.
18689 (dump_decl_set): Do not print a newline.
18690 (debug_decl_set): Do it here.
18691 (dump_update_ssa): And here.
18692 * tree-ssa-loop-im.c (move_computations): Adjust.
18693 (movement_possibility): Likewise.
18694 (determine_max_movement): Likewise.
18695 (gather_mem_refs_stmt): Likewise.
18696 * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
18697 or NAME_MEMORY_TAG.
18698 * tree-complex.c (update_all_vops): Remove.
18699 (expand_complex_move): Adjust.
18700 * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
18701 Simplify test for memory referencing statement. Exclude
18702 non-invariant ADDR_EXPRs.
18703 * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
18704 * tree-loop-distribution.c (generate_memset_zero): Adjust.
18705 (rdg_flag_uses): Likewise.
18706 * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
18708 (tree_optimize_tail_calls_1): Also split the
18709 edge from the entry block if we have degenerate PHI nodes in
18710 the first basic block.
18711 * tree.c (init_ttree): Remove memory-tag related code.
18712 (tree_code_size): Likewise.
18713 (tree_node_structure): Likewise.
18714 (build7_stat): Re-write to be build6_stat.
18715 * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
18716 (SSA_VAR_P): Adjust.
18717 (struct tree_memory_tag): Remove.
18718 (struct tree_memory_partition_tag): Likewise.
18719 (union tree_node): Adjust.
18720 (build7): Re-write to be build6.
18721 * tree-pass.h (pass_reset_cc_flags): Remove.
18722 (TODO_update_address_taken): New flag.
18723 (pass_simple_dse): Remove.
18724 * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
18725 * params.h (MAX_ALIASED_VOPS): Remove.
18726 (AVG_ALIASED_VOPS): Likewise.
18727 * omp-low.c (expand_omp_taskreg): Update SSA form.
18728 * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
18729 aliases the lhs in a copy stmt.
18730 * tree-ssa-dse.c (struct address_walk_data): Remove.
18731 (memory_ssa_name_same): Likewise.
18732 (memory_address_same): Likewise.
18733 (get_kill_of_stmt_lhs): Likewise.
18734 (dse_possible_dead_store_p): Simplify, use the oracle. Handle
18735 unused stores. Look through PHI nodes into post-dominated regions.
18736 (dse_optimize_stmt): Simplify. Properly remove stores.
18737 (tree_ssa_dse): Compute dominators.
18738 (execute_simple_dse): Remove.
18739 (pass_simple_dse): Likewise.
18740 * ipa-reference.c (scan_stmt_for_static_refs): Open-code
18741 gimple_loaded_syms and gimple_stored_syms computation.
18742 * toplev.c (dump_memory_report): Dump alias and pta stats.
18743 * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
18744 (vn_reference_eq): Likewise.
18745 (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
18746 copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
18747 valueize_vuses): Remove.
18748 (get_def_ref_stmt_vuses): Simplify. Rename to ...
18749 (get_def_ref_stmt_vuse): ... this.
18750 (vn_reference_lookup_2): New function.
18751 (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
18752 walking equivalent vuses. Simplify.
18753 (vn_reference_lookup): Likewise.
18754 (vn_reference_insert): Likewise.
18755 (vn_reference_insert_pieces): Likewise.
18756 (visit_reference_op_call): Simplify.
18757 (visit_reference_op_load): Likewise.
18758 (visit_reference_op_store): Likewise.
18759 (init_scc_vn): Remove shared_lookup_vuses initialization.
18760 (free_scc_vn): Remove shared_lookup_vuses freeing.
18761 (sort_vuses, sort_vuses_heap): Remove.
18762 (get_ref_from_reference_ops): Export.
18763 * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
18764 vector with single vuse pointer.
18765 (vn_reference_lookup_pieces, vn_reference_lookup,
18766 vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
18767 (shared_vuses_from_stmt): Remove.
18768 (get_ref_from_reference_ops): Declare.
18769 * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
18770 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
18771 memory-tag related code.
18772 * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
18773 (likely_value): Add comment, skip static-chain of call statements.
18774 (surely_varying_stmt_p): Adjust.
18775 (gimplify_and_update_call_from_tree): Likewise.
18776 (execute_fold_all_builtins): Do not rebuild alias info.
18777 (gimplify_and_update_call_from_tree): Properly update VOPs.
18778 * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
18779 (copy_ref_info): Remove memory-tag related code.
18780 * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
18781 * ipa-pure-const.c (check_decl): Remove memory-tag related code.
18782 (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
18784 * tree-ssa-dom.c (gimple_p): Remove typedef.
18785 (eliminate_redundant_computations): Adjust.
18786 (record_equivalences_from_stmt): Likewise.
18787 (avail_expr_hash): Likewise.
18788 (avail_expr_eq): Likewise.
18789 * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
18790 (stmt_makes_single_load): Likewise.
18791 (stmt_makes_single_store): Likewise.
18792 * tree-ssa-alias.c: Rewrite completely.
18793 (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
18794 debug_mem_sym_stats, dump_mem_sym_stats_for_var,
18795 debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
18796 delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
18797 dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
18798 Remove public functions.
18799 (pass_reset_cc_flags): Remove.
18800 (pass_build_alias): Move ...
18801 * tree-ssa-structalias.c (pass_build_alias): ... here.
18802 * tree-ssa-alias.c (may_be_aliased): Move ...
18803 * tree-flow-inline.h (may_be_aliased): ... here.
18804 tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
18805 count_uses_and_derefs): Move ...
18806 * gimple.c: ... here.
18807 * gimple.h (count_uses_and_derefs): Declare.
18808 * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
18809 ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
18810 same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
18811 indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
18812 ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
18813 call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
18814 get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
18816 * tree-dfa.c (refs_may_alias_p): Move ...
18817 * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend.
18818 * tree-ssa-alias.h: New file.
18819 * tree-ssa-sink.c (is_hidden_global_store): Adjust.
18820 (statement_sink_location): Likewise.
18821 * opts.c (decode_options): Do not adjust max-aliased-vops or
18822 avg-aliased-vops values.
18823 * timevar.def (TV_TREE_MAY_ALIAS): Remove.
18824 (TV_CALL_CLOBBER): Likewise.
18825 (TV_FLOW_SENSITIVE): Likewise.
18826 (TV_FLOW_INSENSITIVE): Likewise.
18827 (TV_MEMORY_PARTITIONING): Likewise.
18828 (TV_ALIAS_STMT_WALK): New timevar.
18829 * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
18830 * tree-ssa-address.c (create_mem_ref_raw): Use build6.
18831 (get_address_description): Remove memory-tag related code.
18832 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
18833 * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
18834 * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
18835 and immediate uses in statements. Document.
18836 * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
18837 (dump_symbols): Remove.
18838 (dump_gimple_mem_ops): Do not dump loaded or stored syms.
18839 * alias.c (get_deref_alias_set): New function split out from ...
18840 (get_alias_set): ... here.
18841 * alias.h (get_deref_alias_set): Declare.
18842 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
18843 type parameter. Remove restrict pointer handling. Create a
18844 ref-all pointer in case type-based alias sets do not conflict.
18845 (vect_analyze_data_refs): Remove SMT related code.
18846 * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
18847 (vectorizable_load): Likewise.
18848 * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
18849 (DR_SYMBOL_TAG, DR_VOPS): Remove.
18850 * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
18851 Ignore vops and SMTs.
18852 (dr_analyze_alias): Likewise..
18853 (free_data_ref): Likewise.
18854 (create_data_ref): Likewise.
18855 (analyze_all_data_dependences): Likewise.
18856 (get_references_in_stmt): Adjust.
18857 * tree-flow-inline.h (gimple_aliases_computed_p,
18858 gimple_addressable_vars, gimple_call_clobbered_vars,
18859 gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
18860 factoring_name_p, mark_call_clobbered, clear_call_clobbered,
18861 compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
18862 gimple_mem_ref_stats): Remove.
18863 (gimple_vop): New function.
18864 (op_iter_next_use): Remove vuses and mayuses cases.
18865 (op_iter_next_def): Remove vdefs case.
18866 (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
18867 (clear_and_done_ssa_iter): Do not set removed fields.
18868 (op_iter_init): Likewise. Skip vuse and/or vdef if requested.
18869 Assert we are not iterating over vuses or vdefs if not also
18870 iterating over uses or defs.
18871 (op_iter_init_use): Likewise.
18872 (op_iter_init_def): Likewise.
18873 (op_iter_next_vdef): Remove.
18874 (op_iter_next_mustdef): Likewise.
18875 (op_iter_init_vdef): Likewise.
18876 (compare_ssa_operands_equal): Likewise.
18877 (link_use_stmts_after): Handle vuse operand.
18878 (is_call_used): Use is_call_clobbered.
18879 (is_call_clobbered): Global variables are always call clobbered,
18880 query the call-clobbers bitmap.
18881 (mark_call_clobbered): Ignore global variables.
18882 (clear_call_clobbered): Likewise.
18883 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
18884 virtual operands sanity check.
18885 * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
18887 (TARGET_MEM_REF): Remove TMR_TAG operand.
18888 * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
18889 Remove call-clobber related code.
18890 (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag.
18891 (dump_variable): Do not dump SMTs, memory stats, may-aliases or
18892 partitions or escape reason.
18893 (get_single_def_stmt, get_single_def_stmt_from_phi,
18894 get_single_def_stmt_with_phi): Remove.
18895 (dump_referenced_vars): Tidy.
18896 (get_ref_base_and_extent): Allow bare decls.
18897 (collect_dfa_stats): Adjust.
18898 * graphite.c (rename_variables_in_stmt): Adjust.
18899 (graphite_copy_stmts_from_block): Likewise.
18900 (translate_clast): Likewise.
18901 * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
18903 (translate_vuse_through_block): Use the oracle.
18904 (phi_translate_1): Adjust.
18905 (value_dies_in_block_x): Use the oracle. Cache the outcome
18907 (valid_in_sets): Check if the VUSE for
18908 a REFERENCE is available.
18909 (eliminate): Do not remove stmts during elimination,
18910 instead queue and remove them afterwards.
18911 (do_pre): Do not rebuild alias info.
18912 (pass_pre): Run TODO_rebuild_alias before PRE.
18913 * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
18914 * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
18915 (mark_all_v_defs_stmt): Remove.
18916 (mark_all_v_defs_seq): Adjust.
18917 (sra_replace): Likewise.
18918 (scalarize_use): Likewise.
18919 (scalarize_copy): Likewise.
18920 (scalarize_init): Likewise.
18921 (scalarize_ldst): Likewise.
18922 (todoflags): Remove.
18923 (tree_sra): Do not rebuild alias info.
18924 (tree_sra_early): Adjust.
18925 (pass_sra): Run TODO_update_address_taken before SRA.
18926 * tree-predcom.c (set_alias_info): Remove.
18927 (prepare_initializers_chain): Do not call it.
18928 (mark_virtual_ops_for_renaming): Adjust.
18929 (mark_virtual_ops_for_renaming_list): Remove.
18930 (initialize_root_vars): Adjust.
18931 (initialize_root_vars_lm): Likewise.
18932 (prepare_initializers_chain): Likewise.
18933 * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
18934 (may_propagate_copy_into_stmt): Likewise.
18935 (merge_alias_info): Do nothing for now.
18936 (propagate_tree_value_into_stmt): Adjust.
18937 (stmt_may_generate_copy): Likewise.
18938 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
18939 not mark symbols for renaming.
18940 (forward_propagate_addr_expr): Match up push/pop_stmt_changes
18941 with the same statement, make sure to update the new pointed-to one.
18942 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
18943 call statements, do not mark symbols for renaming.
18944 (mark_operand_necessary): Dump something.
18945 (ref_may_be_aliased): New function.
18946 (mark_aliased_reaching_defs_necessary_1): New helper function.
18947 (mark_aliased_reaching_defs_necessary): Likewise.
18948 (mark_all_reaching_defs_necessary_1): Likewise.
18949 (mark_all_reaching_defs_necessary): Likewise.
18950 (propagate_necessity): Do not process virtual PHIs. For
18951 non-aliased loads mark all reaching definitions as necessary.
18952 For aliased loads and stores mark the immediate dominating
18953 aliased clobbers as necessary.
18954 (visited): New global static.
18955 (perform_tree_ssa_dce): Free visited bitmap after propagating
18957 (remove_dead_phis): Perform simple dead virtual PHI removal.
18958 (remove_dead_stmt): Properly unlink virtual operands when
18960 (eliminate_unnecessary_stmts): Schedule PHI removal after
18962 * tree-ssa-ter.c (is_replaceable_p): Adjust.
18963 (process_replaceable): Likewise.
18964 (find_replaceable_in_bb): Likewise.
18965 * tree-ssa.c (verify_ssa_name): Verify all VOPs are
18966 based on the single gimple vop.
18967 (verify_flow_insensitive_alias_info): Remove.
18968 (verify_flow_sensitive_alias_info): Likewise.
18969 (verify_call_clobbering): Likewise.
18970 (verify_memory_partitions): Likewise.
18971 (verify_alias_info): Likewise.
18972 (verify_ssa): Adjust..
18973 (execute_update_addresses_taken): Export. Update SSA
18974 manually. Optimize only when optimizing. Use a local bitmap.
18975 (pass_update_address_taken): Remove TODO_update_ssa, add
18977 (pass_update_address_taken): Just use TODO_update_address_taken.
18978 (init_tree_ssa): Do not initialize addressable_vars.
18979 (verify_ssa): Verify new VUSE / VDEF properties.
18980 Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
18981 Do not call verify_alias_info.
18982 (delete_tree_ssa): Clear the VUSE, VDEF operands.
18983 Do not free the loaded and stored syms bitmaps. Reset the escaped
18984 and callused solutions. Do not free addressable_vars.
18985 Remove memory-tag related code.
18986 (warn_uninitialized_var): Aliases are always available.
18987 * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
18988 * lambda-code.c (can_put_in_inner_loop): Adjust.
18989 (can_put_after_inner_loop): Likewise.
18990 (perfect_nestify): Likewise.
18991 * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
18992 (vect_gen_widened_results_half): Remove CALL_EXPR handling.
18993 (vectorizable_conversion): Do not mark symbols for renaming.
18994 * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
18995 (expand_call_inline): Unlink the calls virtual operands before
18997 (tree_function_versioning): Do not call update_ssa if we are not
18998 updating clones. Simplify.
18999 * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
19000 (propagate_with_phi): Likewise..
19001 * tree-outof-ssa.c (create_temp): Remove memory tag and call
19002 clobber code. Assert we are not aliased or global.
19003 * tree-flow.h: Include tree-ssa-alias.h
19004 (enum escape_type): Remove.
19005 (struct mem_sym_stats_d): Likewise.
19006 (struct mem_ref_stats_d): Likewise.
19007 (struct gimple_df): Add vop member. Remove global_var,
19008 call_clobbered_vars, call_used_vars, addressable_vars,
19009 aliases_compted_p and mem_ref_stats members. Add syms_to_rename,
19010 escaped and callused members.
19011 (struct ptr_info_def): Remove all members, add points-to solution
19013 (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
19014 call_clobbered, escape_mask, mpt and symbol_mem_tag members.
19015 * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
19016 (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
19017 (tree-ssa-alias.o): Likewise.
19018 (toplev.o): Add tree-ssa-alias.h
19019 (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
19020 * gimple.c (gimple_set_bb): Fix off-by-one error.
19021 (is_gimple_reg): Do not handle memory tags.
19022 (gimple_copy): Also copy virtual operands.
19023 Delay updating the statement. Do not reset loaded and stored syms.
19024 (gimple_set_stored_syms): Remove.
19025 (gimple_set_loaded_syms): Likewise.
19026 (gimple_call_copy_skip_args): Copy the virtual operands
19027 and mark the new statement modified.
19028 * tree-ssa-structalias.c (may_alias_p): Remove.
19029 (set_uids_in_ptset): Take the alias set to prune with as
19030 parameter. Fold in the alias test of may_alias_p.
19031 (compute_points_to_sets): Compute whether a ptr is dereferenced
19032 in a local sbitmap.
19033 (process_constraint): Deal with &ANYTHING on the lhs, reject all
19034 other ADDRESSOF constraints on the lhs.
19035 (get_constraint_for_component_ref): Assert that we don't get
19036 ADDRESSOF constraints from the base of the reference.
19037 Properly generate UNKNOWN_OFFSET for DEREF if needed.
19038 (struct variable_info): Remove collapsed_to member.
19039 (get_varinfo_fc): Remove.
19040 (new_var_info): Do not set collapsed_to.
19041 (dump_constraint): Do not follow cycles.
19042 (dump_constraint_graph): Likewise.
19043 (build_pred_graph): Likewise.
19044 (build_succ_graph): Likewise.
19045 (rewrite_constraints): Likewise.
19046 (do_simple_structure_copy): Remove.
19047 (do_rhs_deref_structure_copy): Remove.
19048 (do_lhs_deref_structure_copy): Remove.
19049 (collapse_rest_of_var): Remove.
19050 (do_structure_copy): Re-implement.
19051 (pta_stats): New global variable.
19052 (dump_pta_stats): New function.
19053 (struct constraint_expr): Make offset signed.
19054 (UNKNOWN_OFFSET): Define special value.
19055 (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
19056 (solution_set_expand): New helper function split out from ...
19057 (do_sd_constraint): ... here.
19058 (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets.
19059 (do_ds_constraint): Likewise.
19060 (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED
19061 and CALLUSED = *CALLUSED.
19062 (set_union_with_increment): Make inc argument signed.
19063 (type_safe): Remove.
19064 (get_constraint_for_ptr_offset): Handle unknown and negative
19066 (first_vi_for_offset): Handle offsets before start. Bail
19067 out early for offsets beyond the variable extent.
19068 (first_or_preceding_vi_for_offset): New function.
19069 (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
19070 Together with ESCAPED = *ESCAPED this properly computes reachability.
19071 (find_what_var_points_to): New function.
19072 (find_what_p_points_to): Implement in terms of find_what_var_points_to.
19073 (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
19074 pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
19075 pt_solutions_intersect): New functions.
19076 (compute_call_used_vars): Remove.
19077 (compute_may_aliases): New main entry into PTA computation.
19078 * gimple.h (gimple_p): New typedef.
19079 (struct gimple_statement_base): Remove references_memory_p.
19080 (struct gimple_statement_with_memory_ops_base): Remove
19081 vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse
19083 (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
19084 gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
19085 gimple_set_references_memory): Remove.
19086 (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
19087 gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
19089 * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
19090 (verify_expr): Allow RESULT_DECL.
19091 (gimple_duplicate_bb): Do not copy virtual operands.
19092 (gimple_duplicate_sese_region): Adjust.
19093 (gimple_duplicate_sese_tail): Likewise.
19094 (mark_virtual_ops_in_region): Remove.
19095 (move_sese_region_to_fn): Do not call it.
19096 * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
19097 and pass_simple_dse.
19098 (execute_function_todo): Handle TODO_update_address_taken,
19099 call execute_update_addresses_taken for TODO_rebuild_alias.
19100 (execute_todo): Adjust.
19101 (execute_one_pass): Init dump files early.
19102 * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
19104 (create_general_new_stmt): Clear vops.
19105 * tree-ssa-reassoc.c (get_rank): Adjust.
19106 * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
19107 symbols for renaming.
19108 * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
19109 (PARAM_AVG_ALIASED_VOPS): Likewise.
19110 * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
19111 (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
19112 * tree-ssa-operands.c: Simplify for new virtual operand representation.
19113 (operand_build_cmp, copy_virtual_operands,
19114 create_ssa_artificial_load_stmt, add_to_addressable_set,
19115 gimple_add_to_addresses_taken): Remove public functions.
19116 (unlink_stmt_vdef): New function.
19118 2009-04-03 Alan Modra <amodra@bigpond.net.au>
19120 * config.gcc (powerpc-*-linux*): Merge variants.
19122 2009-04-02 Chao-ying Fu <fu@mips.com>
19123 James Grosbach <james.grosbach@microchip.com>
19125 * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
19126 num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
19128 (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
19129 keep_interrupts_masked_p, use_debug_exception_return_p.
19130 (mips_attribute_table): Add interrupt, use_shadow_register_set,
19131 keep_interrupts_masked, use_debug_exception_return.
19132 (mips_interrupt_type_p, mips_use_shadow_register_set_p,
19133 mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
19135 (mips_function_ok_for_sibcall): Return false for interrupt handlers.
19136 (mips_print_operand): Process COP0 registers to print $0 .. $31
19137 correctly for GAS to process.
19138 (mips_interrupt_extra_call_saved_reg_p): New function.
19139 (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
19141 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
19142 (mips_compute_frame_info): Add supports for interrupt context that
19143 includes doubleword accumulators and COP0 registers.
19144 (mips_for_each_saved_acc): New function.
19145 (mips_for_each_saved_gpr_and_fpr): Change the function name from
19146 mips_for_each_saved_reg.
19147 (mips_save_reg): Save accumulators.
19148 (mips_kernel_reg_p): A new for_each_rtx callback.
19149 (mips_expand_prologue): Support interrupt handlers.
19150 (mips_restore_reg): Restore accumulators.
19151 (mips_expand_epilogue): Support interrupt handlers.
19152 (mips_can_use_return_insn): Return false for interrupt handlers.
19153 (mips_epilogue_uses): New function.
19154 * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
19155 UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
19156 (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
19157 cop0_move): New instructions.
19158 * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
19159 * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
19161 (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
19163 (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
19164 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
19165 interrupt handlers, we use K0 as the temporary register.
19166 (EPILOGUE_USES): Change to a function call.
19167 * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
19168 handlers, we use K0 as the temporary register.
19170 * doc/extend.texi (Function Attributes): Document interrupt,
19171 use_shadow_register_set, keep_interrupts_masked,
19172 use_debug_exception_return for MIPS attributes.
19174 2009-04-03 Alan Modra <amodra@bigpond.net.au>
19176 * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
19177 Remove a number of t-files from tmake_file.
19178 * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
19179 * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
19180 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
19181 target_prototype, not TARGET_PROTOTYPE.
19182 (LINK_OS_GNU_SPEC): Define.
19183 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
19184 and darwin-ldoubdle.c.
19186 2009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
19189 * gcc.c (save_temps_flag): Add support for -save-temps=obj.
19190 (cpp_options): Ditto.
19191 (default_compilers): Ditto.
19192 (display_help): Ditto.
19193 (process_command): Ditto.
19194 (do_spec_1): Ditto.
19195 (set_input): Use lbasename instead of duplicate code.
19196 (save_temps_prefix): New static for -save-temps=obj.
19197 (save_temps_length): Ditto.
19199 * doc/invoke.texi (-save-temps=obj): Document new variant to
19200 -save-temps switch.
19202 2009-04-02 Jeff Law <law@redhat.com>
19204 * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
19207 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
19209 * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
19210 * configure: Regenerated.
19212 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
19214 * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
19215 share the argument list.
19217 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
19221 2009-02-12 Diego Novillo <dnovillo@google.com>
19223 * varpool.c (debug_varpool): New.
19224 * cgraph.h (debug_varpool): Declare.
19226 2009-04-02 Jan Hubicka <jh@suse.cz>
19228 * passes.c (init_optimization_passes): Remove two copies of ehcleanup
19231 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
19233 * config/i386/i386.c (ix86_abi): Move initialization to ...
19234 (override_options): Here.
19236 2009-04-02 Christian Bruel <christian.bruel@st.com>
19238 * config/sh/sh.c (sh_dwarf_register_span): New function.
19239 (TARGET_DWARF_REGISTER_SPAN): Define.
19240 * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
19242 2009-04-02 Ira Rosen <irar@il.ibm.com>
19244 PR tree-optimization/39595
19245 * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
19246 interleaved loads group is not greater than the SLP group size.
19248 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
19250 * builtins.c (is_builtin_name): New.
19251 (called_as_built_in): Use is_builtin_name.
19252 * tree.h (is_builtin_name): New.
19253 * varasm.c (incorporeal_function_p): Use is_builtin_name
19255 2009-04-02 Andrew Stubbs <ams@codesourcery.com>
19257 * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
19259 2009-04-02 Dodji Seketeli <dodji@redhat.com>
19262 * c-decl.c (clone_underlying_type): Move this ...
19263 * c-common.c (set_underlying_type): ... here.
19264 Also, make sure the function properly sets TYPE_STUB_DECL() on
19265 the newly created typedef variant type.
19266 * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
19267 * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
19270 2009-04-02 Richard Guenther <rguenther@suse.de>
19272 PR tree-optimization/37221
19273 * tree-flow.h (degenerate_phi_result): Declare.
19274 * tree-ssa-dom.c (degenerate_phi_result): Export.
19275 * tree-scalar-evolution.c (analyze_initial_condition): If
19276 the initial condition is defined by a degenerate PHI node
19277 use the degenerate value.
19279 2009-04-01 Eric Botcazou <ebotcazou@adacore.com>
19281 PR rtl-optimization/39588
19282 * combine.c (merge_outer_ops): Do not set the constant when this
19284 (simplify_shift_const_1): Do not modify it either in this case.
19286 2009-04-01 Steven Bosscher <steven@gcc.gnu.org>
19288 * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
19289 tuning is deprecated if -mtune value is set to an Itanium1 variant.
19291 2009-04-01 Janis Johnson <janis187@us.ibm.com>
19294 * c-lex.c (interpret_float): Default (no suffix) is double.
19296 2009-04-1 Xinliang David Li <davidxl@google.com>
19298 * config/i386/i386.c (legitimate_constant_p): Recognize
19299 all one vector constant.
19301 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
19303 * config/vax/vax.c: Add #includes to silence warnings.
19304 Change #include order to silence two warnings.
19306 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
19308 * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
19309 (ASM_SPEC): Pass -k to the assembler for PIC code.
19311 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
19313 * config.gcc: Add vax-*-linux* to the switch.
19314 * config/vax/linux.h: New file. (TARGET_VERSION,
19315 TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
19317 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
19319 * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
19320 Use predicate macros instead of GET_CODE() == foo.
19321 * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
19322 ashlsi3, rotrsi3, <unnamed>): Likewise.
19324 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
19326 * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
19327 jbbccihi, jbbccisi): Remova trailing whitespace.
19328 * config/vax/constraints.md: Likewise.
19329 * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
19330 * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
19331 * config/vax/predicates.md: Likewise.
19332 * config/vax/vax.c (print_operand_address, vax_output_int_move,
19333 vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
19334 * config/vax/vax.h: Likewise.
19335 * config/vax/vax.md (nonlocal_goto): Likewise.
19337 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
19339 * config/vax/vax.c (vax_float_literal, vax_output_int_move)
19340 (indirectable_address_p, adjacent_operands_p): Add spaces around
19342 * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
19344 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
19346 * config/vax/vax.c (legitimate_constant_address_p,
19347 legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
19348 index_term_p, reg_plus_index_p, legitimate_address_p,
19349 vax_mode_dependent_address_p): Update comments to match functions
19350 modified by the recent int->bool conversion.
19352 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
19354 * config/vax/builtins.md: Update copyright message.
19355 * config/vax/constraints.md: Likewise.
19356 * config/vax/netbsd-elf.h: Likewise.
19357 * config/vax/predicates.md: Likewise.
19358 * config/vax/vax-protos.h: Likewise.
19359 * config/vax/vax.c: Likewise.
19360 * config/vax/vax.h: Likewise.
19361 * config/vax/vax.md: Likewise.
19362 * config/vax/vax.opt: Likewise.
19364 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
19366 * config/vax/builtins.md (ffssi2, ffssi2_internal,
19367 sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
19368 * config/vax/constraints.md (B, R): Likewise.
19369 * config/vax/predicates.md (external_memory_operand,
19370 nonimmediate_addsub_di_operand): Likewise.
19371 * config/vax/vax.c (vax_output_int_add): Likewise.
19372 * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
19373 untyped_call): Likewise.
19375 2009-04-01 Matt Thomas <matt@3am-software.com>
19377 * config/vax/predicates.md: New file.
19378 (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
19379 external_const_operand, nonsymbolic_operand, external_memory_operand,
19380 indirect_memory_operand, indexed_memory_operand,
19381 illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
19382 nonimmediate_addsub_di_operand, general_addsub_di_operand): New
19384 * config/vax/constraints.md: New file.
19385 (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
19387 * config/vax/builtins.md: New file.
19388 (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
19389 jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
19391 * config/vax/vax.opt (mqmath): Add option.
19392 * config/vax/vax.md (isfx): Extend with DI.
19393 (VAXintQH, VAXintQHSD): Define.
19394 (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
19395 mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
19396 and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
19397 one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
19398 (movdi): Update constraints and use vax_output_int_move().
19399 (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
19400 movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
19401 pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
19402 nonlocal_goto): New.
19403 (mov<mode>): Extend accepted operand types.
19404 (subdi3_old): Rename from subdi3, change update constraints and use
19405 a new implementation.
19406 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
19407 (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
19408 MOVE_RATIO, CLEAR_RATIO): Define.
19409 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
19410 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
19411 (PRINT_OPERAND): Redefine using a function instead of inlined code.
19412 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
19413 (split_quadword_operands): Make static and really allow variable
19415 (print_operand_address): Update for PIC generation.
19416 (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
19417 indexable_address_p, fixup_mathdi_operand,
19418 vax_expand_addsub_di_operands, adjacent_operands_p): New.
19419 (vax_float_literal, legitimate_constant_p,
19420 indirectable_constant_address_p, index_term_p,
19421 reg_plus_index_p): Return bool instead of int.
19422 (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
19424 (vax_output_int_move, vax_output_int_add): Extend to allow PIC
19426 (vax_output_conditional_branch): Indent.
19427 (legitimate_constant_address_p, indirectable_constant_address_p,
19428 indirectable_address_p, nonindexed_address_p, legitimate_address_p,
19429 vax_mode_dependent_address_p): Return bool instead of int, update for
19431 * config/vax/vax-protos.h (legitimate_constant_address_p,
19432 legitimate_constant_p, legitimate_address_p,
19433 vax_mode_dependent_address_p): Change declaration to bool.
19434 (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
19435 vax_expand_addsub_di_operands, vax_output_int_subtract,
19436 vax_output_movmemsi): Declare.
19437 (split_quadword_operands, vax_float_literal): Delete declaration.
19438 * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
19439 * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
19440 VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
19441 ASM_OUTPUT_DWARF_PCREL): Define.
19442 (ASM_SPEC): Change definition to allow PIC generation.
19444 2009-04-01 Steve Ellcey <sje@cup.hp.com>
19446 * doc/sourcebuild.texi: Update front-end requirements.
19448 2009-04-01 Jakub Jelinek <jakub@redhat.com>
19451 * config/rs6000/rs6000.md (andsi3_internal5_nomc,
19452 anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
19453 (booldi3_internal3): Use boolean_or_operator instead of
19456 2009-04-01 Joseph Myers <joseph@codesourcery.com>
19459 * c-decl.c (grokdeclarator): Pedwarn for file-scope array
19460 declarator whose size is not an integer constant expression but
19461 folds to an integer constant, then treat it as a constant
19464 2009-04-01 Richard Guenther <rguenther@suse.de>
19466 * fold-const.c (fold_plusminus_mult_expr): Do not fold
19467 i * 4 + 2 to (i * 2 + 1) * 2.
19469 2009-04-01 Jakub Jelinek <jakub@redhat.com>
19472 * c-parser.c (c_parser_asm_statement): Skip until close paren and
19473 return if c_parser_asm_string_literal returned NULL.
19475 2009-04-01 Nick Clifton <nickc@redhat.com>
19477 * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
19479 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
19480 * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the
19481 other typedefs to avoid conflicts with libgcc2.c. Define labels
19482 to gain 16-bit bit-manipulation functions from libgcc2.c and then
19484 * config/m32c/m32c-lib2-trapv.c: New file. Define labels
19485 to gain 16-bit trapping arithmetic functions from libgcc2.c and
19488 2009-04-01 Rafael Avila de Espindola <espindola@google.com>
19490 * varasm.c (default_function_rodata_section): Declare DOT as
19493 2009-04-01 Kai Tietz <kai.tietz@onevision.com>
19494 Andrey Galkin <agalkin@hypercom.com>
19497 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
19498 Make object_name unique for each process.
19500 2009-04-01 Jakub Jelinek <jakub@redhat.com>
19503 * omp-low.c (remove_exit_barrier): Don't optimize if there are any
19504 addressable variables in the parallel that could go out of scope while
19505 running queued tasks.
19507 2009-04-01 Anatoly Sokolov <aesok@post.ru>
19509 * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
19510 (CASE_VALUES_THRESHOLD): Redefine.
19511 * config/avr/avr.c (avr_override_options): Remove initialization of
19512 avr_case_values_threshold variable.
19513 (avr_case_values_threshold): Remove variable. Add new function.
19514 * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
19515 * config/avr/avr.opt (mno-tablejump): Remove option.
19516 * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
19518 2009-04-01 DJ Delorie <dj@redhat.com>
19520 * varasm.c (default_function_rodata_section): Don't assume
19521 anything about where the first '.' in the section name is.
19523 2009-04-01 Alan Modra <amodra@bigpond.net.au>
19525 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
19526 rs6000_emit_stack_tie.
19528 2009-03-31 Ian Lance Taylor <iant@google.com>
19530 * tree-eh.c (tree_remove_unreachable_handlers): Compare
19531 gimple_code with GIMPLE_RESX, not RESX.
19533 2009-03-31 Joseph Myers <joseph@codesourcery.com>
19535 * c-common.c (c_get_ident): New.
19536 (c_common_nodes_and_builtins): Call it for type names that may be NULL.
19538 2009-04-01 Ben Elliston <bje@au.ibm.com>
19540 * config/rs6000/sysv4.opt (msdata): Improve option description.
19542 2009-03-31 Steve Ellcey <sje@cup.hp.com>
19544 * config/ia64/ia64.md (divsf3_internal_lat): Remove.
19545 (divdf3_internal_lat): Remove.
19546 (divxf3_internal_lat): Remove.
19547 (divxf3_internal_thr): Remove.
19548 (divxf): Use divxf3_internal.
19549 * config/ia64/div.md (divsf3_internal_lat): New.
19550 (divdf3_internal_lat): New.
19551 (divxf3_internal): New.
19553 2009-03-31 Joseph Myers <joseph@codesourcery.com>
19556 * Makefile.in (USE_GCC_STDINT): Define.
19557 (stmp-int-hdrs): Install stdint.h if applicable.
19558 * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
19560 (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
19561 (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
19562 UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
19563 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
19564 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
19565 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
19566 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
19567 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
19568 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
19569 (c_common_nodes_and_builtins): Initialize
19570 underlying_wchar_type_node. Do not initialize
19571 signed_wchar_type_node or unsigned_wchar_type_node. Initialize
19572 nodes for new types.
19573 (c_stddef_cpp_builtins): Define macros for new types.
19574 * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
19576 (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
19577 CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
19578 CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
19579 CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
19580 CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
19581 CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
19582 CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
19583 CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
19584 CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
19585 (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
19586 (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
19587 int16_type_node, int32_type_node, int64_type_node,
19588 uint8_type_node, uint16_type_node, c_uint32_type_node,
19589 c_uint64_type_node, int_least8_type_node, int_least16_type_node,
19590 int_least32_type_node, int_least64_type_node,
19591 uint_least8_type_node, uint_least16_type_node,
19592 uint_least32_type_node, uint_least64_type_node,
19593 int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
19594 int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
19595 uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
19596 uintptr_type_node): Define.
19597 * c-cppbuiltin.c (builtin_define_constants,
19598 builtin_define_type_minmax): New.
19599 (builtin_define_stdint_macros): Define more macros.
19600 (c_cpp_builtins): Define more limit macros.
19601 (type_suffix): New.
19602 (builtin_define_type_max): Define in terms of
19603 builtin_define_type_minmax. Remove is_long parameter. All
19605 * config.gcc (use_gcc_stdint): Define.
19606 (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
19607 Add newlib-stdint.h for generic targets.
19608 * config/glibc-stdint.h, config/newlib-stdint.h,
19609 ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
19610 * config/m32c/m32c.h (UINTPTR_TYPE): Define.
19611 * config/score/score.h (UINTPTR_TYPE): Define.
19612 * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
19613 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
19614 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
19615 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
19616 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
19617 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
19618 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
19619 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
19620 * config/spu/spu.h (STDINT_LONG32): Define.
19621 * configure.ac (use_gcc_stdint): Substitute.
19622 * configure: Regenerate.
19623 * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
19624 __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
19625 __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
19626 __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
19627 __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
19628 __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
19629 __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
19630 __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
19631 __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
19632 __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
19633 __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
19634 __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
19635 __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
19636 __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
19637 __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
19638 __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
19639 __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
19640 __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
19641 __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
19642 __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
19643 __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
19644 * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
19645 INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
19646 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
19647 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
19648 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
19649 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
19650 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
19651 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
19653 2009-03-31 Bernd Schmidt <bernd.schmidt@analog.com>
19655 * loop-iv.c (suitable_set_for_replacement): Renamed from
19656 simplify_using_assignment; changed to return bool and to accept new
19657 args DEST and SRC. Return true iff we find a source/destination pair
19658 that can be used to make a replacement, and fill SRC and DEST if so.
19659 Remove arg ALTERED. Don't deal with altered regs here. All callers
19661 (simplify_using_initial_values): Deal with altered regs here and track
19662 more precisely the effect they have on the validity of our expression.
19664 * loop-iv.c (simplify_using_condition): A condition of the form
19665 (EQ REG CONST) can be used to simply make a substitution.
19666 (simplify_using_initial_values): Keep track of conditions we have seen
19667 and keep using them to simplify new expressions, while applying the
19668 same substitutions to them as to the expression.
19670 * simplify-rtx.c (simplify_relational_operation_1): Simplify
19671 (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
19674 * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers
19675 changed. Use this when trying to improve the upper bound.
19676 Generate the comparison by using simplify_gen_relational.
19678 * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
19680 * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
19682 (simplify_using_assignment, simplify_using_initial_values): Call
19683 replace_in_expr to make replacements. Call replace_single_def_regs
19684 once on the initial version of the expression.
19686 2009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19689 * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
19691 2009-03-31 Richard Guenther <rguenther@suse.de>
19693 PR middle-end/31029
19694 * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
19695 equality comparisons. Fold C - X CMP X if C % 2 == 1.
19697 2009-03-31 Richard Guenther <rguenther@suse.de>
19699 * tree.h (div_if_zero_remainder): Declare.
19700 * fold-const.c (div_if_zero_remainder): Export.
19701 * tree-ssa-forwprop.c
19702 (forward_propagate_addr_into_variable_array_index): Handle
19703 constant array index addition outside of the variable index.
19705 2009-03-31 Joseph Myers <joseph@codesourcery.com>
19708 * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
19709 define_splits, floatunssi<mode>2): Require x87 conversions from
19710 DImode to be permitted.
19712 2009-03-31 Joseph Myers <joseph@codesourcery.com>
19714 PR preprocessor/15638
19715 * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
19717 2009-03-31 Richard Guenther <rguenther@suse.de>
19719 PR middle-end/23401
19720 PR middle-end/27810
19721 * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
19722 (struct tree_decl_with_vis): Remove gimple_formal_temp member.
19723 * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
19724 a separate statement.
19725 * gimplify.c (pop_gimplify_context): Remove formal temp handling.
19726 (lookup_tmp_var): Likewise.
19727 (is_gimple_formal_tmp_or_call_rhs): Remove.
19728 (is_gimple_reg_or_call_rhs): Rename to ...
19729 (is_gimple_reg_rhs_or_call): ... this.
19730 (is_gimple_mem_or_call_rhs): Rename to ...
19731 (is_gimple_mem_rhs_or_call): ... this.
19732 (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set
19733 DECL_GIMPLE_REG_P only if is_formal is true.
19734 (gimplify_compound_lval): Use is_gimple_reg. Remove workaround
19735 for non-proper post-modify expression gimplification.
19736 (gimplify_self_mod_expr): For post-modify expressions gimplify
19737 the lvalue to a minimal lvalue.
19738 (rhs_predicate_for): Remove formal temp case.
19739 (gimplify_modify_expr_rhs): Likewise.
19740 (gimplify_addr_expr): Use is_gimple_reg.
19741 (gimplify_expr): Remove formal temp cases.
19742 (gimple_regimplify_operands): Likewise.
19743 * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
19744 and FILTER_EXPR like constants.
19745 * gimple.c (walk_gimple_op): Fix val_only initialization, use
19747 (is_gimple_formal_tmp_rhs): Remove.
19748 (is_gimple_reg_rhs): Remove special casing.
19749 (is_gimple_mem_rhs): Fix.
19750 (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
19751 (is_gimple_formal_tmp_var): Remove.
19752 (is_gimple_formal_tmp_reg): Likewise.
19753 (is_gimple_min_lval): Allow invariant component ref parts.
19754 * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
19755 is_gimple_formal_tmp_reg): Remove declarations.
19756 * tree-cfg.c (verify_expr): Verify that variables with address
19757 taken do not have DECL_GIMPLE_REG_P set.
19758 * tree-mudflap.c (mf_build_check_statement_for): Use
19759 force_gimple_operand instead of gimplify_expr.
19761 2009-03-31 Ayal Zaks <zaks@il.ibm.com>
19763 * modulo-sched.c (sms_schedule_by_order): Pass the actual
19764 schedulable rows to compute_split_row.
19766 2009-03-31 Ben Elliston <bje@au.ibm.com>
19769 * config/rs6000/rs6000.c (rs6000_handle_option): Handle
19772 2009-03-31 Alan Modra <amodra@bigpond.net.au>
19774 * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
19775 * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
19776 * configure: Regenerate.
19777 * config.in: Regenerate.
19778 * config/rs6000/rs6000.opt (mtls-markers): Add.
19779 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
19780 * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
19781 (tls_ld_aix, tls_ld_sysv): Likewise.
19782 (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
19783 (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
19785 2009-03-31 Alan Modra <amodra@bigpond.net.au>
19787 * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
19789 2009-03-30 Jan Hubicka <jh@suse.cz>
19791 * tree-eh.c (make_eh_edges): Set probability 100% to first edge
19793 (tree_remove_unreachable_handlers): Cleanup EH predecestor
19794 detection and label handling.
19796 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
19798 * ira-int.h (ira_allocno): Rename left_conflicts_num to
19799 left_conflicts_size.
19800 (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
19801 ALLOCNO_LEFT_CONFLICTS_SIZE.
19803 * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
19804 remove_allocno_from_bucket_and_push,
19805 allocno_spill_priority_compare, push_allocnos_to_stack,
19806 setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
19807 instead of ALLOCNO_LEFT_CONFLICTS_NUM.
19808 (setup_allocno_left_conflicts_num): Ditto. Rename to
19809 setup_allocno_left_conflicts_size.
19810 (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
19811 instead of ALLOCNO_LEFT_CONFLICTS_NUM and
19812 setup_allocno_left_conflicts_size instead of
19813 setup_allocno_left_conflicts_num.
19815 * ira-build.c (ira_create_allocno): Use
19816 ALLOCNO_LEFT_CONFLICTS_SIZE instead of
19817 ALLOCNO_LEFT_CONFLICTS_NUM.
19819 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
19821 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
19822 instead of DF_LR_OUT.
19824 * ira-lives.c (process_bb_node_lives): Ditto.
19826 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
19827 instead of DF_LR_{OUT,IN}.
19829 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
19831 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
19833 2009-03-30 Jan Hubicka <jh@suse.cz>
19835 * except.c (label_to_region_map): Fix thinko.
19837 2009-03-30 Steve Ellcey <sje@cup.hp.com>
19839 PR middle-end/38237
19840 * tree.h (tree_find_value): New declaration.
19841 * tree.c (tree_find_value): New function.
19842 * varasm.c (assemble_external): Avoid duplicate entries on lists.
19844 2009-03-30 Jakub Jelinek <jakub@redhat.com>
19847 * c-decl.c (struct c_binding): Add locus field.
19848 (bind): Add locus argument, set locus field from it.
19849 (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
19850 add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
19851 (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
19852 implicitly_declare, undeclared_variable, lookup_label,
19853 declare_label, c_make_fname_decl, c_builtin_function,
19854 c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
19857 2009-03-30 H.J. Lu <hongjiu.lu@intel.com>
19860 * config/i386/i386.c (classify_argument): Check total size of
19863 2009-03-30 Martin Jambor <mjambor@suse.cz>
19865 * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
19866 IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
19867 IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
19870 * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
19871 seen_variable_array_ref while also traversing a union.
19873 * tree-inline.c (optimize_inline_calls): Do not call
19874 cgraph_node_remove_callees.
19875 * cgraphbuild.c (remove_cgraph_callee_edges): New function.
19876 (pass_remove_cgraph_callee_edges): New variable.
19877 * passes.c (init_optimization_passes): Add
19878 pass_remove_cgraph_callee_edges after early inlining and before all
19879 late intraprocedural passes.
19881 * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
19883 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
19885 * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
19886 Fix typos in names.
19888 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
19890 * combine.c (simplify_comparison): Use have_insn_for.
19891 * dojump.c (do_jump): Likewise.
19893 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
19895 * config/sparc/sparc.c (sparc_compare_emitted): Remove.
19896 (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
19897 sparc_compare_op0 like sparc_compare_emitted used to be handled.
19898 (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
19899 instead of sparc_compare_emitted.
19900 * config/sparc/sparc.h (sparc_compare_emitted): Remove.
19901 * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
19902 instead of sparc_compare_emitted.
19904 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
19906 * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
19907 enter/exit cfglayout mode.
19908 (pass_partition_block): Require it.
19909 * combine.c (find_single_use, reg_dead_at_p): Use CFG.
19910 (combine_instructions): Track basic blocks instead of labels.
19911 (update_cfg_for_uncondjump): New.
19912 (try_combine): Use it. Update jumps after rescanning.
19913 (pass_combine): Require PROP_cfglayout.
19914 * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
19916 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
19918 * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
19919 Provide/destroy PROP_cfglayout respectively.
19920 * gcse.c (pass_jump_bypass, pass_gcse): Require it.
19921 * tree-pass.h (PROP_cfglayout): New.
19923 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
19925 * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
19926 fold_convert_const_fixed_from_fixed,
19927 fold_convert_const_fixed_from_int,
19928 fold_convert_const_fixed_from_real, fold_negate_const): Do not
19929 set TREE_CONSTANT_OVERFLOW.
19930 * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
19931 * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
19933 2009-03-30 Ira Rosen <irar@il.ibm.com>
19935 * tree-vect-loop-manip.c: New file.
19936 * tree-vectorizer.c: Update documentation and included files.
19937 (vect_loop_location): Make extern.
19938 (rename_use_op): Move to tree-vect-loop-manip.c
19939 (rename_variables_in_bb, rename_variables_in_loop,
19940 slpeel_update_phis_for_duplicate_loop,
19941 slpeel_update_phi_nodes_for_guard1,
19942 slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
19943 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
19944 slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
19945 set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
19946 find_loop_location): Likewise.
19947 (new_stmt_vec_info): Move to tree-vect-stmts.c.
19948 (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
19949 get_vectype_for_scalar_type, vect_is_simple_use,
19950 supportable_widening_operation, supportable_narrowing_operation):
19952 (bb_in_loop_p): Move to tree-vect-loop.c.
19953 (new_loop_vec_info, destroy_loop_vec_info,
19954 reduction_code_for_scalar_code, report_vect_op,
19955 vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
19956 (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
19957 (vect_supportable_dr_alignment): Likewise.
19958 * tree-vectorizer.h (tree-data-ref.h): Include.
19959 (vect_loop_location): Declare.
19960 Reorganize function declarations according to the new file structure.
19961 * tree-vect-loop.c: New file.
19962 * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
19963 tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
19964 * tree-vect-data-refs.c: New file.
19965 * tree-vect-patterns.c (timevar.h): Don't include.
19966 * tree-vect-stmts.c: New file.
19967 * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
19968 tree-vect-slp.c, tree-vect-loop.c.
19969 * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
19970 tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
19971 tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
19972 (tree-vect-analyze.o): Remove.
19973 (tree-vect-transform.o): Likewise.
19974 (tree-vect-data-refs.o): Add rule.
19975 (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
19976 tree-vect-slp.o): Likewise.
19977 (tree-vect-patterns.o): Remove redundant dependencies.
19978 (tree-vectorizer.o): Likewise.
19979 * tree-vect-slp.c: New file.
19981 2009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19983 * optc-gen.awk: Warn if an option flag has multiple different
19986 2009-03-30 Sebastian Pop <sebastian.pop@amd.com>
19988 * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
19989 -floop-block): Document dependences on PPL, CLooG and Graphite.
19991 2009-03-30 Joseph Myers <joseph@codesourcery.com>
19993 PR rtl-optimization/323
19994 * c-common.c (c_fully_fold, convert_and_check,
19995 c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
19996 (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
19997 * c-common.def (EXCESS_PRECISION_EXPR): New.
19998 * c-cppbuiltin.c (builtin_define_float_constants): Define
19999 constants with enough digits for long double.
20000 * c-lex.c (interpret_float): Interpret constant with excess
20001 precision where appropriate.
20002 * c-opts.c (c_common_post_options): Set
20003 flag_excess_precision_cmdline. Give an error for
20004 -fexcess-precision=standard for C++ for processors where the
20005 option is significant.
20006 * c-parser.c (c_parser_conditional_expression): Handle excess
20007 precision in condition.
20008 * c-typeck.c (convert_arguments): Handle arguments with excess
20010 (build_unary_op): Move excess precision outside operation.
20011 (build_conditional_expr): Likewise.
20012 (build_compound_expr): Likewise.
20013 (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
20014 (build_modify_expr): Handle excess precision in RHS.
20015 (convert_for_assignment): Handle excess precision in converted
20017 (digest_init, output_init_element, process_init_element): Handle
20018 excess precision in initializer.
20019 (c_finish_return): Handle excess precision in return value.
20020 (build_binary_op): Handle excess precision in operands and add
20021 excess precision as needed for operation.
20022 * common.opt (-fexcess-precision=): New option.
20023 * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
20024 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
20025 For standard excess precision, output explicit conversion to and
20026 truncation from XFmode.
20027 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
20028 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
20029 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
20030 define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
20031 define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
20032 floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
20033 divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
20034 *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
20035 *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
20036 define_splits, sqrt<mode>2): Disable where appropriate for
20037 standard excess precision.
20038 * convert.c (convert_to_real): Do not shorten arithmetic to type
20039 for which excess precision would be used.
20040 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
20041 * doc/invoke.texi (-fexcess-precision=): Document option.
20042 (-mfpmath=): Correct index entry.
20043 * flags.h (enum excess_precision, flag_excess_precision_cmdline,
20044 flag_excess_precision): New.
20045 * langhooks.c (lhd_post_options): Set
20046 flag_excess_precision_cmdline.
20047 * opts.c (common_handle_option): Handle -fexcess-precision=.
20048 * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
20049 init_excess_precision): New.
20050 (lang_dependent_init_target): Call init_excess_precision.
20051 * tree.c (excess_precision_type): New.
20052 * tree.h (excess_precision_type): Declare.
20054 2009-03-30 Joseph Myers <joseph@codesourcery.com>
20057 * c-typeck.c (build_component_ref): Do not copy qualifiers from
20058 non-lvalue to component.
20060 2009-03-29 Joseph Myers <joseph@codesourcery.com>
20062 PR preprocessor/34695
20063 * Makefile.in (c-opts.o): Depend on c-tree.h.
20064 * c-common.c: Move down include of diagnostic.h.
20065 (done_lexing, c_cpp_error): New.
20066 * c-common.h (done_lexing): Declare.
20067 * c-decl.c (c_write_global_declarations): Don't check cpp_errors
20069 * c-opts.c: Include c-tree.h.
20070 (c_common_init_options): Set preprocessor error callback.
20071 (c_common_handle_option): Do not set preprocessor
20072 inhibit_warnings, warnings_are_errors, warn_system_headers,
20073 pedantic_errors or inhibit_warnings flags.
20074 (c_common_post_options): Do not check cpp_errors (parse_in).
20075 (c_common_finish): Do not output dependencies if there were
20076 errors. Do not check return value of cpp_finish.
20077 * c-ppoutput.c (pp_file_change): Set input_location.
20078 * c-tree.h (c_cpp_error): Declare.
20079 * diagnostic.c (diagnostic_set_info_translated): Also initialize
20081 (diagnostic_build_prefix): Check override_column.
20082 * diagnostic.h (diagnostic_info): Add override_column field.
20083 (diagnostic_override_column): Define.
20085 2009-03-28 Paolo Bonzini <bonzini@gnu.org>
20087 * c-common.c (c_expand_expr, c_staticp): Remove.
20088 * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
20089 * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
20090 COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
20091 * c-gimplify.c (gimplify_compound_literal_expr,
20092 optimize_compound_literals_in_ctor): Remove.
20093 (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
20094 * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
20095 * c-semantics.c (emit_local_var): Remove.
20097 * langhooks-def.h (lhd_expand_expr): Remove.
20098 * langhooks.c (lhd_expand_expr): Remove.
20099 * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
20101 * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
20102 handling from c-semantics.c; don't call into langhook.
20103 (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
20104 * gimplify.c (gimplify_compound_literal_expr,
20105 optimize_compound_literals_in_ctor): Move from c-gimplify.c.
20106 (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
20107 (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
20108 as was done in c-gimplify.c.
20109 * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
20110 * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
20111 Move from c-common.h.
20112 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
20114 * tree.c (staticp): Do not call langhook.
20115 * langhooks.c (lhd_staticp): Delete.
20116 * langhooks-def.h (lhd_staticp): Delete prototype.
20117 (LANG_HOOKS_STATICP): Delete.
20118 (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
20120 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
20121 instead of DECL_STMTs.
20123 2009-03-29 Joseph Myers <joseph@codesourcery.com>
20131 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
20133 (fold_call_expr): Return a NOP_EXPR from folding rather than the
20134 contained expression.
20135 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
20136 (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
20137 conditional expressions for C.
20138 (decl_constant_value_for_optimization): Move from
20139 decl_constant_value_for_broken_optimization in c-typeck.c. Check
20140 whether optimizing and that the expression is a VAR_DECL not of
20141 array type instead of doing such checks in the caller. Do not
20142 check pedantic. Call gcc_unreachable for C++.
20143 * c-common.def (C_MAYBE_CONST_EXPR): New.
20144 * c-common.h (c_fully_fold, c_save_expr,
20145 decl_constant_value_for_optimization): New prototypes.
20146 (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
20147 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
20148 EXPR_INT_CONST_OPERANDS): Define.
20149 * c-convert.c (convert): Strip nops from expression.
20150 * c-decl.c (groktypename): Take extra parameters expr and
20151 expr_const_operands. Update call to grokdeclarator.
20152 (start_decl): Update call to grokdeclarator. Add statement for
20153 expressions used in type of decl.
20154 (grokparm): Update call to grokdeclarator.
20155 (push_parm_decl): Update call to grokdeclarator.
20156 (build_compound_literal): Add parameter non_const and build a
20157 C_MAYBE_COSNT_EXPR if applicable.
20158 (grokdeclarator): Take extra parameters expr and
20159 expr_const_operands. Track expressions used in declaration
20160 specifiers and declarators. Fold array sizes and track whether
20161 they are constant expressions and whether they are integer
20162 constant expressions.
20163 (parser_xref_tag): Set expr and expr_const_operands fields in
20165 (grokfield): Update call to grokdeclarator.
20166 (start_function): Update call to grokdeclarator.
20167 (build_null_declspecs): Set expr and expr_const_operands fields in
20169 (declspecs_add_type): Handle expressions in typeof specifiers.
20170 * c-parser.c (c_parser_declspecs): Set expr and
20171 expr_const_operands fields for declaration specifiers.
20172 (c_parser_enum_specifier): Likewise.
20173 (c_parser_struct_or_union_specifier): Likewise.
20174 (c_parser_typeof_specifier): Likewise. Update call to
20175 groktypename. Fold expression as needed. Return expressions with
20176 type instead of adding statements.
20177 (c_parser_attributes): Update calls to c_parser_expr_list.
20178 (c_parser_statement_after_labels): Fold expression before passing
20179 to objc_build_throw_stmt.
20180 (c_parser_condition): Fold expression.
20181 (c_parser_asm_operands): Fold expression.
20182 (c_parser_conditional_expression): Use c_save_expr. Update call
20183 to build_conditional_expr.
20184 (c_parser_alignof_expression): Update call to groktypename.
20185 (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
20186 original_code. Fold expression argument of va_arg. Create
20187 C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
20188 argument to va_arg. Update calls to groktypename. Fold array
20189 index for offsetof. Verify that first argument to
20190 __builtin_choose_expr has integer type.
20191 (c_parser_postfix_expression_after_paren_type): Update calls to
20192 groktypename and build_compound_literal. Handle expressions with
20193 side effects in type name.
20194 (c_parser_postfix_expression_after_primary): Update call to
20195 c_parser_expr_list. Set original_code for calls to
20196 __builtin_constant_p.
20197 (c_parser_expr_list): Take extra parameter fold_p. Fold
20198 expressions if requested.
20199 (c_parser_objc_type_name): Update call to groktypename.
20200 (c_parser_objc_synchronized_statement): Fold expression.
20201 (c_parser_objc_receiver): Fold expression.
20202 (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
20203 (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
20204 c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
20205 * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
20206 (struct c_typespec): Add elements expr and expr_const_operands.
20207 (struct c_declspecs): Add elements expr and expr_const_operands.
20208 (groktypename, build_conditional_expr, build_compound_literal):
20210 (in_late_binary_op): Declare.
20211 * c-typeck.c (note_integer_operands): New function.
20212 (in_late_binary_op): New variable.
20213 (decl_constant_value_for_broken_optimization): Move to c-common.c
20214 and rename to decl_constant_value_for_optimization.
20215 (default_function_array_conversion): Do not strip nops.
20216 (default_conversion): Do not call
20217 decl_constant_value_for_broken_optimization.
20218 (build_array_ref): Do not fold result.
20219 (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
20220 result when operand is a VLA.
20221 (c_expr_sizeof_type): Update call to groktypename. Handle
20222 expressions included in type name. Use C_MAYBE_CONST_EXPR for
20223 result when operand names a VLA type.
20224 (build_function_call): Update call to build_compound_literal.
20225 Only fold result for calls to __builtin_* functions. Strip
20226 NOP_EXPR from INTEGER_CST returned from such functions. Fold
20227 the function designator.
20228 (convert_arguments): Fold arguments. Update call to
20229 convert_for_assignment.
20230 (build_unary_op): Handle increment and decrement of
20231 C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
20232 decrement earlier. Fold operand of increment and decrement.
20233 Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
20234 built for integer operand. Wrap returns that are INTEGER_CSTs
20235 without being integer constant expressions or that have integer
20236 constant operands without being INTEGER_CSTs.
20237 (lvalue_p): Handle C_MAYBE_CONST_EXPR.
20238 (build_conditional_expr): Add operand ifexp_bcp. Track whether
20239 result is an integer constant expression or can be used in
20240 unevaluated parts of one and avoid folding and wrap as
20241 appropriate. Fold operands before possibly doing -Wsign-compare
20243 (build_compound_expr): Wrap result for C99 if operands can be used
20244 in integer constant expressions.
20245 (build_c_cast): Update call to digest_init. Do not ignore
20246 overflow from casting floating-point constants to integers. Wrap
20247 results that could be confused with integer constant expressions,
20248 null pointer constants or floating-point constants.
20249 (c_cast_expr): Update call to groktypename. Handle expressions
20250 included in type name.
20251 (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
20252 lhs inside possible SAVE_EXPR. Fold RHS before assignment.
20253 Update calls to convert_for_assignment.
20254 (convert_for_assignment): Take new parameter
20255 null_pointer_constant. Do not strip nops or call
20256 decl_constant_value_for_broken_optimization. Set
20257 in_late_binary_op for conversions to boolean.
20258 (store_init_value): Update call to digest_init.
20259 (digest_init): Take new parameter null_pointer_constant. Do not
20260 call decl_constant_value_for_broken_optimization. pedwarn for
20261 initializers not constant expressions. Update calls to
20262 convert_for_assignment.
20263 (constructor_nonconst): New.
20264 (struct constructor_stack): Add nonconst element.
20265 (really_start_incremental_init, push_init_level, pop_init_level):
20266 Handle constructor_nonconst and nonconst element.
20267 (set_init_index): Call constant_expression_warning for array
20269 (output_init_element): Fold value. Set constructor_nonconst as
20270 applicable. pedwarn for initializers not constant expressions.
20271 Update call to digest_init. Call constant_expression_warning
20272 where constant initializers are required.
20273 (process_init_element): Use c_save_expr.
20274 (c_finish_goto_ptr): Fold expression.
20275 (c_finish_return): Fold return value. Update call to
20276 convert_for_assignment.
20277 (c_start_case): Fold switch expression.
20278 (c_process_expr_stmt): Fold expression.
20279 (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
20280 ensure statement expression is not evaluated in constant expression.
20281 (build_binary_op): Track whether results are integer constant
20282 expressions or may occur in such, disable folding and wrap results
20283 as applicable. Fold operands for -Wsign-compare warnings unless
20285 (c_objc_common_truthvalue_conversion): Handle results folded to
20286 integer constants that are not integer constant expressions.
20287 * doc/extend.texi: Document when typeof operands are evaluated,
20288 that condition of __builtin_choose_expr is an integer constant
20289 expression, and more about use of __builtin_constant_p in
20292 2009-03-29 Richard Guenther <rguenther@suse.de>
20294 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
20295 propagate addresses of array references.
20297 2009-03-29 Steven Bosscher <steven@gcc.gnu.org>
20299 * regmove.c (perhaps_ends_bb_p): Remove.
20300 (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
20301 from INSN and check that the main loop stays within that basic block.
20302 (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
20303 (regmove_forward_pass): Split out from regmove_optimize. Use
20304 FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
20305 (regmove_backward_pass): Split out from regmove_optimize. Use
20306 FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
20307 (regmove_optimize): Simplify.
20309 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
20312 * config/i386/i386.c (classify_argument): Ignore flexible array
20313 member in struct and warn ABI change.
20315 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
20317 * config/i386/i386-protos.h (ix86_agi_dependent): New.
20319 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
20320 (ix86_adjust_cost): Updated.
20322 2009-03-29 Jan Hubicka <jh@suse.cz>
20324 PR middle-end/28850
20325 * tree-pass.h (pass_cleanup_eh): New function.
20326 (remove_unreachable_regions): Break code handling RTL
20327 to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
20328 that can not be reached by runtime.
20329 (can_be_reached_by_runtime): New function.
20330 (label_to_region_map): New function.
20331 (num_eh_regions): New function.
20332 (rtl_remove_unreachable_regions): New function.
20333 (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
20334 (remove_eh_region): New function.
20335 * except.h: Include sbitmap and vecprim.
20336 (remove_eh_region, remove_unreachable_regions, label_to_region_map,
20337 num_eh_regions): Declare.
20338 * passes.c (init_optimization_passes): Schedule cleanup_eh.
20339 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
20340 * tree-eh.c (tree_remove_unreachable_handlers): New function.
20341 (tree_empty_eh_handler_p): New function.
20342 (cleanup_empty_eh): New function.
20343 (cleanup_eh): New function.
20344 (pass_cleanup_eh): New function.
20346 2009-03-29 Jan Hubicka <jh@suse.cz>
20348 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
20349 for removed regions.
20351 2009-03-29 Jan Hubicka <jh@suse.cz>
20353 * except.c (dump_eh_tree): Dump all datastructures.
20355 2009-03-29 Jan Hubicka <jh@suse.cz>
20357 * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
20358 (duplicate_eh_regions_1): Likewise.
20359 (duplicate_eh_regions): Likewise; cleanup code gorwing the region
20360 vector; call EH verification.
20361 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
20362 Be ready for region being removed.
20364 2009-03-29 Jan Hubicka <jh@suse.cz>
20366 * bitmap.c (bitmap_last_set_bit): New function.
20367 * bitmap.h (bitmap_last_set_bit): Declare.
20369 2009-03-29 David Ayers <ayers@fsfe.org>
20372 * c-typeck.c (build_conditional_expr): Emit ObjC warnings
20373 by calling objc_compare_types and surpress warnings about
20374 incompatible C pointers that are compatible ObjC pointers.
20376 2009-03-29 Adam Nemet <anemet@caviumnetworks.com>
20378 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
20379 call initialize_inline_failed.
20380 (initialize_inline_failed): Move it from here ...
20381 * cgraph.c (initialize_inline_failed): ... to here.
20382 (cgraph_create_edge): Call initialize_inline_failed rather than
20383 setting inline_failed directly.
20385 2009-03-29 Ben Elliston <bje@au.ibm.com>
20388 * sysv4.opt (msdata): Improve comment.
20389 * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
20390 * sysv4.h (SVR4_ASM_SPEC): Likewise.
20392 2009-03-29 Ben Elliston <bje@au.ibm.com>
20395 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
20396 load and store attributes.
20398 2009-03-29 Ben Elliston <bje@au.ibm.com>
20400 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
20401 (ix86_init_builtins): Add built-in function __builtin_huge_valq.
20402 (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
20403 * doc/extend.texi (X86 Built-in Functions): Add index entries for
20404 __builtin_infq and __builtin_huge_valq.
20406 2009-03-28 Anatoly Sokolov <aesok@post.ru>
20408 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
20410 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
20411 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
20413 2009-03-28 Xinliang David Li <davidxl@google.com>
20415 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
20416 (do_dbg_cnt): New function.
20418 2009-03-28 Jan Hubicka <jh@suse.cz>
20420 Merge from pretty-ipa:
20422 2009-03-27 Jan Hubicka <jh@suse.cz>
20424 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
20425 * tree-pass.h (function_called_by_processed_nodes_p): Declare.
20426 * passes.c (function_called_by_processed_nodes_p): New.
20427 * ipa-pure-const.c (check_call): Fix handling of operands.
20428 (analyze_function): Dump debug output for skipped bodies.
20429 (local_pure_const): Use function_called_by_processed_nodes_p.
20430 * dwarf2out.c (reference_to_unused): Use output.
20431 * passes.c (do_per_function_toporder): Likewise.
20433 2008-11-12 Jan Hubicka <jh@suse.cz>
20435 * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
20436 * ipa-pure-const.c (funct_state_d): Add can throw field; make
20437 state_set_in_source enum
20438 (check_decl): Ignore memory tags; do not set fake looping flags;
20440 (check_operand, check_tree, check_rhs_var, check_lhs_var,
20441 get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
20442 (check_call, analyze_function): Rewrite.
20444 (add_new_function): Update call of analyze_function.
20445 (generate_summary): Add call of analyze_function.
20446 (propagate): Propagate can_throw; handle state_set_in_source correctly.
20447 (local_pure_const): New function.
20448 (pass_local_pure_const): New pass.
20449 * ipa-inline.c (inline_transform): Set after_inlining.
20450 * tree-eh.c (stmt_can_throw_external): New.
20451 * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
20452 work with aliasing built.
20453 * tree-flow.h (stmt_can_throw_external): New.
20454 * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
20455 and local pure/const pass in early and late optimization queue.
20457 2009-03-28 Martin Jambor <mjambor@suse.cz>
20459 * fold-const.c (get_pointer_modulus_and_residue): New parameter
20461 (fold_binary): Allow function decl aligment consideration is the
20462 second argument is integer constant one.
20463 * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
20464 (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
20465 with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
20467 2009-03-28 Jan Hubicka <jh@suse.cz>
20469 * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
20470 * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
20471 * function.h (rtl_data): Add nothrow flag.
20472 * except.c (set_nothrow_function_flags): Use crtl->nothrow;
20473 set DECL_NOTHROW for AVAILABLE functions.
20475 2009-03-28 Jakub Jelinek <jakub@redhat.com>
20477 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
20478 following vector keyword has expansion starting with pixel or bool
20479 keyword, expand vector to __vector and pixel or bool to __pixel or
20483 * opts.c (warning_disallowed_functions, warn_disallowed_functions,
20484 warn_if_disallowed_function_p): Removed.
20485 (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
20486 * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
20487 warning_if_disallowed_function_p.
20488 * flags.h (warn_if_disallowed_function_p,
20489 warn_disallowed_functions): Removed.
20490 * common.opt (Wdisallowed-function-list=): Removed.
20491 * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
20493 2009-03-28 Richard Guenther <rguenther@suse.de>
20495 PR tree-optimization/38723
20496 * tree-ssa-pre.c (compute_avail): Add all default definitions to
20499 2009-03-28 Jan Hubicka <jh@suse.cz>
20501 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
20502 test introduced by my previous patch.
20504 2009-03-28 Richard Guenther <rguenther@suse.de>
20506 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
20507 the PHIs value undefined.
20509 2009-03-28 Jan Hubicka <jh@suse.cz>
20511 * tree-pass.h (pass_fixup_cfg): New pass.
20512 * ipa-inline.c (inline_transform): Set
20513 always_inline_functions_inlined/after_inlining.
20514 * tree-optimize.c (execute_fixup_cfg): Do not set them here.
20515 (pass_fixup_cfg): New pass.
20516 * passes.c (init_optimization_passes): Add fixup_cfg.
20518 2009-03-28 Richard Guenther <rguenther@suse.de>
20520 PR tree-optimization/38458
20521 * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
20522 argument use the arguments copy-of value.
20524 2009-03-28 Richard Guenther <rguenther@suse.de>
20526 PR tree-optimization/38180
20527 * tree-ssa-ccp.c (get_default_value): Simplify.
20528 (likely_value): Likewise.
20529 (surely_varying_stmt_p): Properly handle VOP case.
20530 (ccp_initialize): Likewise.
20531 (ccp_fold): Handle propagating through *&.
20532 (fold_const_aggregate_ref): Also handle decls.
20534 2009-03-28 Jan Hubicka <jh@suse.cz>
20536 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
20537 * cgraph.h (cgraph_node): Likewise.
20538 * cgraphunit.c (cgraph_process_new_functions): Set process flag.
20539 (cgraph_reset_node): Use process flag.
20540 (cgraph_mark_functions_to_output): Likewise.
20541 (cgraph_expand_function): Likewise.
20542 (cgraph_expand_all_functions): Likewise.
20543 (cgraph_output_in_order): Likewise.
20544 * dwarf2out.c (reference_to_unused): Likewise.
20545 * passes.c do_per_function_toporder): Likewise.
20547 2009-03-28 Jan Hubicka <jh@suse.cz>
20549 Bring from lto-branch:
20551 2008-09-03 Doug Kwan <dougkwan@google.com>
20553 * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
20554 enums instead of reason strings.
20555 * cgraph.c (cgraph_create_edge): Same.
20556 (cgraph_inline_failed_string): New function.
20557 * cgraph.h (cgraph_inline_failed_t): New enum type.
20558 (cgraph_inline_failed_string): New prototype.
20559 (struct cgraph_edge): Change type of INLINED_FAILED from constant
20560 char pointer to cgraph_inline_failed_t.
20561 (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
20562 (cgraph_default_inline_p): Ditto.
20563 * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
20564 to cgraph_inline_failed_t pointer.
20565 * cif-code.def: New file.
20566 * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
20568 (cgraph_check_inline_limits): Change type of REASON to pointer to
20569 cgraph_inline_failed_t. Replace reason strings with enums.
20570 (cgraph_default_inline_p): Ditto.
20571 (cgraph_recursive_inlining_p): Ditto.
20572 (update_caller_keys): Change type of FAILED_REASON to
20573 cgraph_inline_failed_t.
20574 (cgraph_set_inline_failed): Change type of REASON to pointer to
20575 cgraph_inline_failed_t. Call cgraph_inline_failed_string to
20576 convert enums to strings for text output.
20577 (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
20578 to be of type cgraph_inline_failed_t. Replace reason strings with
20579 enums. Call cgraph_inline_failed_string to covert enums
20580 to strings for text output.
20581 (cgraph_decide_inlining): Replace reason strings with enums.
20582 (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
20583 to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
20585 * tree-inline.c (expand_call_inline): Change type of REASON
20586 to cgraph_inline_failed_t. Replace reason strings with enums.
20587 Call cgraph_inline_failed_string for text output.
20588 * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
20591 2009-03-28 Jan Hubicka <jh@suse.cz>
20593 * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
20594 cgraph_clone_node): Remove master clone handling.
20595 (cgraph_is_master_clone, cgraph_master_clone): Remove.
20596 * cgraph.h (master_clone): Remove.
20597 (cgraph_is_master_clone, cgraph_master_clone): Remove.
20598 * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
20599 (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
20601 2009-03-28 Jan Hubicka <jh@suse.cz>
20603 * cgraph.c (cgraph_function_body_availability): Functions declared
20604 inline are always safe to assume that it is not going to be replaced.
20606 2009-03-28 Richard Guenther <rguenther@suse.de>
20608 PR tree-optimization/38513
20609 * tree-ssa-pre.c (eliminate): Remove redundant stores.
20610 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
20611 EXC_PTR_EXPR and FILTER_EXPR.
20612 (get_ref_from_reference_ops): Likewise.
20614 2009-03-28 Richard Guenther <rguenther@suse.de>
20616 PR tree-optimization/38968
20617 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
20618 Use FLOOR_MOD_EXPR to compute misalignment.
20620 2009-03-28 Richard Guenther <rguenther@suse.de>
20622 PR tree-optimization/37795
20623 * tree.h (combine_comparisons): Declare.
20624 * fold-const.c (combine_comparisons): Export.
20625 * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
20627 (ifcombine_iforif): Use combine_comparisons.
20629 2009-03-28 Jan Hubicka <jh@suse.cz>
20631 * tree-eh.c (inlinable_call_p): New function.
20632 (make_eh_edges): Use it.
20633 (verify_eh_edges): Use it.
20634 (stmt_can_throw_external, stmt_can_throw_internal): Use it.
20635 * except.c (reachable_next_level): Add inlinable_function argument
20636 (sjlj_find_directly_reachable_regions): Update.
20637 (add_reachable_handler): Do not set saw_any_handlers.
20638 (reachable_next_level): Handle MUST_NOT_THROW more curefully.
20639 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
20640 Add new inlinable call parameter.
20641 (can_throw_internal, can_throw_external): Update.
20642 * except.h (can_throw_internal_1, can_throw_external_1,
20643 foreach_reachable_handler): Update declaration.
20645 2009-03-28 Joseph Myers <joseph@codesourcery.com>
20647 * config/arm/t-arm-coff, config/h8300/coff.h,
20648 config/i386/i386-aout.h, config/i386/i386-coff.h,
20649 config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
20650 config/pdp11/2bsd.h, config/rs6000/aix41.h,
20651 config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
20652 fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
20653 scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
20654 sys-types.h: Remove.
20655 * Makefile.in: Remove protoize and fixproto support and references
20657 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
20658 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
20660 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
20661 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
20662 unprotoize$(exeext).
20663 (rest.encap): Don't depend on $(STMP_FIXPROTO)
20664 (.PHONY): Don't depend on proto.
20665 (libgcc-support): Don't depend on $(STMP_FIXPROTO).
20666 (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
20667 protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
20668 deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
20669 build/gen-protos.o, build/scan.o, xsys-protos.h,
20670 build/fix-header$(build_exeext), build/fix-header.o,
20671 build/scan-decls.o, fixhdr.ready, stmp-fixproto,
20672 stmp-install-fixproto): Remove.
20673 (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
20674 SYSCALLS.c or fixproto files.
20675 (install-common): Don't install protoize.
20676 (install-headers-tar, install-headers-cpio, install-headers-cp):
20677 Don't depend on $(STMP_FIXPROTO).
20678 (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
20679 install fixproto files or write out fixproto settings.
20680 (uninstall): Don't uninstall protoize.
20681 * config.gcc (use_fixproto): Remove.
20682 (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
20683 i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
20684 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
20685 * config/m32r/t-linux (STMP_FIXPROTO): Remove.
20686 * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
20687 * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
20688 * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
20689 * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
20690 * config/t-svr4 (FIXPROTO_DEFINES): Remove.
20691 * config/t-vxworks (STMP_FIXPROTO): Remove.
20692 * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
20693 STMP_FIXPROTO): Remove.
20694 * config.in, configure: Regenerate.
20695 * crtstuff.c (gid_t, uid_t): Don't undefine.
20696 * doc/install.texi: Change m68k-coff to m68k-elf in example.
20697 (arm-*-coff, arm-*-aout: Remove target entries.
20698 (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
20699 Remove mention of AIX 4.1.
20700 (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
20701 * doc/invoke.texi (Running Protoize): Remove.
20702 * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
20703 (Protoize Caveats): Remove.
20704 * tsystem.h: Update comments on headers assumed to exist.
20706 2009-03-27 Vladimir Makarov <vmakarov@redhat.com>
20708 * genautomata.c: Add a new year to the copyright. Add a new
20710 (struct insn_reserv_decl): Add comments for member bypass_list.
20711 (find_bypass): Remove.
20712 (insert_bypass): New.
20713 (process_decls): Use insert_bypass.
20714 (output_internal_insn_latency_func): Output all bypasses with the
20715 same input insn in one switch case.
20717 * rtl.def (define_bypass): Describe bypass choice.
20718 * doc/md.texi (define_bypass): Ditto.
20720 2009-03-27 Richard Guenther <rguenther@suse.de>
20722 * gimplify.c (mark_addressable): Export.
20723 * tree-flow.h (mark_addressable): Declare.
20724 * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
20725 * tree-ssa.c (verify_phi_args): Verify that address taken
20726 variables have TREE_ADDRESSABLE set.
20728 2009-03-27 Richard Guenther <rguenther@suse.de>
20730 * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
20731 (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
20732 Do not mark decls TREE_ADDRESSABLE.
20733 (build_fold_addr_expr): Adjust.
20734 (fold_addr_expr): Remove.
20735 (fold_unary): Use build_fold_addr_expr.
20736 (fold_comparison): Likewise.
20737 (split_address_to_core_and_offset): Likewise.
20738 * coverage.c (tree_coverage_counter_addr): Mark the array decl
20740 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
20741 (gimplify_modify_expr_to_memcpy): Mark source and destination
20743 * omp-low.c (create_omp_child_function): Mark the object decl
20745 (lower_rec_input_clauses): Mark the var we take the address of
20747 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
20749 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
20751 PR middle-end/39315
20752 * cfgexpand.c (expand_one_stack_var_at): Change alignment
20753 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
20755 2009-03-27 Richard Guenther <rguenther@suse.de>
20757 PR tree-optimization/39120
20758 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
20760 (handle_lhs_call): Process return constraints. Add escape
20761 constraints if necessary.
20762 (handle_const_call): Fill out return constraints. Make nested
20763 case more precise. Avoid consttmp if possible.
20764 (handle_pure_call): Fill out return constraints. Avoid
20765 callused if possible.
20766 (find_func_aliases): Simplify call handling.
20768 2009-03-27 Richard Guenther <rguenther@suse.de>
20770 PR tree-optimization/39120
20771 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
20772 as a representative.
20773 (solve_graph): Do propagate CALLUSED.
20774 (handle_pure_call): Use a scalar constraint from CALLUSED for
20776 (find_what_p_points_to): CALLUSED shall not appear in poins-to
20779 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
20782 * c-common.c (handle_aligned_attribute): Properly check alignment
20783 overflow. Use (1U << i) instead of (1 << i).
20785 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
20787 * expr.h (get_mem_align_offset): Updated.
20789 * tree.h (tree_decl_common): Change align to "unsigned int" and
20790 move it before pointer_alias_set.
20792 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
20793 Jakub Jelinek <jakub@redhat.com>
20796 * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
20797 gr_register_operand with gr_reg_or_0_operand.
20798 (cmpxchg_rel_di): Likewise.
20799 (sync_lock_test_and_set<mode>): Likewise.
20801 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
20803 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
20804 (true_regnum): Likewise.
20806 * rtlanal.c (subreg_info): Moved to ...
20807 * rtl.h (subreg_info): Here. New.
20808 (subreg_get_info): New.
20810 * rtlanal.c (subreg_get_info): Make it extern.
20812 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
20815 * config/i386/i386.c (ix86_abi): New.
20816 (override_options): Handle -mabi=.
20817 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
20818 (ix86_call_abi_override): Likewise.
20819 (init_cumulative_args): Likewise.
20820 (function_arg_advance): Likewise.
20821 (function_arg_64): Likewise.
20822 (function_arg): Likewise.
20823 (ix86_pass_by_reference): Likewise.
20824 (ix86_function_value_regno_p): Likewise.
20825 (ix86_build_builtin_va_list_abi): Likewise.
20826 (setup_incoming_varargs_64): Likewise.
20827 (is_va_list_char_pointer): Likewise.
20828 (ix86_init_machine_status): Likewise.
20829 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
20830 (ix86_function_type_abi): Return enum calling_abi. Rewrite
20831 for 64bit. Replace DEFAULT_ABI with ix86_abi.
20832 (ix86_function_abi): Make it static and return enum calling_abi.
20833 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
20835 (ix86_fn_abi_va_list): Updated.
20837 * config/i386/i386.h (ix86_abi): New.
20838 (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
20839 (CONDITIONAL_REGISTER_USAGE): Likewise.
20840 (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
20841 (machine_function): Likewise.
20843 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
20845 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
20846 (STACK_BOUNDARY): Likewise.
20847 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
20849 * config/i386/i386.opt (mabi=): New.
20851 * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
20852 return enum calling_abi.
20853 (ix86_function_type_abi): Likewise.
20854 (ix86_function_abi): Removed.
20856 * doc/invoke.texi: Document -mabi= option for x86.
20858 2009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20860 * builtins.c (real_dconstp): Delete.
20861 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
20863 2009-03-27 Dodji Seketeli <dodji@redhat.com>
20864 Jakub Jelinek <jakub@redhat.com>
20867 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
20868 (gen_subprogram_die): When a function is explicit, generate the
20869 DW_AT_explicit attribute.
20870 * langhooks.h (struct lang_hooks_for_decls): Add
20871 function_decl_explicit_p langhook.
20872 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
20873 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
20875 2009-03-27 Jakub Jelinek <jakub@redhat.com>
20877 * builtins.c (fold_builtin_memory_op): Optimize memmove
20878 into memcpy if we can prove source and destination don't overlap.
20880 * tree-inline.c: Include gt-tree-inline.h.
20881 (clone_fn_id_num): New variable.
20882 (clone_function_name): New function.
20883 (tree_function_versioning): Use it.
20884 * Makefile.in (GTFILES): Add tree-inline.c.
20886 2009-03-27 Mark Mitchell <mark@codesourcery.com>
20888 * BASE-VER: Change to 4.5.0.
20890 2009-03-27 Xinliang David Li <davidxl@google.com>
20892 PR tree-optimization/39557
20893 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
20895 2009-03-27 Xinliang David Li <davidxl@google.com>
20897 PR tree-optimization/39548
20898 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
20901 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
20903 * c-common.c (pointer_int_sum): Use %wd on return from
20906 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
20908 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
20909 on return from tree_low_cst.
20911 2009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
20914 * ginclude/stdarg.h (va_copy): Define also for
20915 __GXX_EXPERIMENTAL_CXX0X__.
20917 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20920 * builtins.h (c_strlen): Do not warn here.
20921 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
20922 * c-common.c (pointer_int_sum): Take an explicit location.
20923 Warn about offsets out of bounds.
20924 * c-common.h (pointer_int_sum): Adjust declaration.
20926 2009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20928 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
20931 2009-03-26 Jakub Jelinek <jakub@redhat.com>
20934 * opts.c (warn_if_disallowed_function_p): Don't assume
20935 get_callee_fndecl must return non-NULL.
20937 2009-03-26 Vladimir Makarov <vmakarov@redhat.com>
20939 PR rtl-optimization/39522
20940 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
20941 when reg_reloaded_valid is set.
20943 2009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20945 * config/spu/divv2df3.c: New file.
20946 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
20947 (DPBIT_FUNCS): Filter out _div_df.
20949 2009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
20951 * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
20952 a jump insn, count that jump in the distance to the loop start.
20954 2009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
20957 * config/sh/sh.c (calc_live_regs): Fix condition for global
20958 registers except PIC_OFFSET_TABLE_REGNUM.
20960 2009-03-25 Kai Tietz <kai.tietz@onevision.com>
20963 * doc/invoke.texi (-mconsole): New.
20965 (-mno-cygwin): New.
20967 (-mnop-fun-dllimport): New.
20971 (sub section "i386 and x86-64 Windows Options"): New.
20973 2009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
20975 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
20976 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
20978 2009-03-25 Richard Guenther <rguenther@suse.de>
20980 PR middle-end/39497
20981 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
20984 2009-03-25 Andrey Belevantsev <abel@ispras.ru>
20986 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
20987 neither of haifa/selective schedulers are working.
20989 2009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20991 * doc/invoke.texi (Debugging Options): Fix description of
20992 -fno-merge-debug-strings.
20994 2009-03-24 Hans-Peter Nilsson <hp@axis.com>
20996 * config/cris/libgcc.ver: New version-script.
20997 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
20999 * configure.ac <GAS features, nop mnemonic>: Add pattern
21000 crisv32-*-* for "nop".
21001 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
21002 * configure: Regenerate.
21004 2009-03-24 Ira Rosen <irar@il.ibm.com>
21006 PR tree-optimization/39529
21007 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
21008 mark_sym_for_renaming for the tag copied to the new vector
21011 2009-03-24 Arthur Loiret <aloiret@debian.org>
21013 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
21014 * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
21015 EXTRA_SPEC_FUNCTIONS.
21016 (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
21017 * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
21018 * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
21019 -march and -mtune options.
21021 2009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
21023 * config/m68k/t-rtems: Add m5329 multilib.
21025 2009-03-24 Dodji Seketeli <dodji@redhat.com>
21026 Jakub Jelinek <jakub@redhat.com>
21029 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
21032 2009-03-23 Jakub Jelinek <jakub@redhat.com>
21035 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
21036 instead of c_parser_expression_conv, if original_code isn't one of the
21037 4 allowed comparison codes, fail.
21039 2009-03-23 Richard Guenther <rguenther@suse.de>
21041 * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
21042 * tree.h (struct tree_type): Likewise.
21043 * reload.h (struct insn_chain): Likewise.
21044 * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
21045 * function.h (struct function): Likewise.
21046 * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
21048 2009-03-23 Jakub Jelinek <jakub@redhat.com>
21050 PR tree-optimization/39516
21051 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
21053 2009-03-23 Bingfeng Mei <bmei@broadcom.com>
21055 * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
21056 should be set true if BITS_PER_WORD of target is bigger than 32
21058 2009-03-22 Hans-Peter Nilsson <hp@axis.com>
21060 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
21061 Translate -B-options to -rpath-link. Correct existing
21062 rpath-link and conditionalize on !nostdlib.
21064 2009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21066 * doc/extend.texi (Function Attributes, Variable Attributes):
21068 * doc/invoke.texi (Debugging Options, Optimize Options)
21069 (i386 and x86-64 Options, MCore Options): Likewise.
21071 2009-03-20 Jakub Jelinek <jakub@redhat.com>
21074 * dwarf2out.c (gen_namespace_die): Add context_die argument and use
21075 it for block local namespace aliases.
21076 (gen_decl_die): Pass context_die to gen_namespace_die.
21078 2009-03-19 Jakub Jelinek <jakub@redhat.com>
21081 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
21082 minimum or maximum value.
21084 2009-03-19 Alexandre Oliva <aoliva@redhat.com>
21086 * reginfo.c (globalize_reg): Recompute derived reg sets.
21088 2009-03-19 Ozkan Sezer <sezeroz@gmail.com>
21091 * libgcc2.c (mprotect): Do not use signed arguments for
21092 VirtualProtect, use DWORD arguments. Also fix the 'may
21093 be used uninitialized' warning for the np variable.
21095 2009-03-19 Jakub Jelinek <jakub@redhat.com>
21098 * config/i386/i386.c (ix86_function_regparm): Don't optimize local
21099 functions using regparm calling conventions when not optimizing.
21100 (ix86_function_sseregparm): Similarly for sseregparm calling
21103 2009-03-19 Li Feng <nemokingdom@gmail.com>
21105 PR middle-end/39500
21106 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
21107 dependence if the first conflict is after niter iterations.
21109 2009-03-19 Hans-Peter Nilsson <hp@axis.com>
21111 PR middle-end/38609
21112 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
21113 functions with dynamic stack-pointer adjustments.
21115 2009-03-19 Ben Elliston <bje@au.ibm.com>
21117 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
21118 option; change to -msdata=data.
21120 2009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21122 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
21125 2009-03-18 Eric Botcazou <ebotcazou@adacore.com>
21128 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
21130 2009-03-18 Sandra Loosemore <sandra@codesourcery.com>
21132 * doc/invoke.texi (Code Gen Options): Expand discussion of
21135 2009-03-18 Jakub Jelinek <jakub@redhat.com>
21137 * dse.c (struct group_info): Reorder fields for 64-bit hosts.
21138 * matrix-reorg.c (struct matrix_info): Likewise.
21139 * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
21140 * rtl.h (struct mem_attrs): Likewise.
21141 * df.h (struct df): Likewise.
21142 * tree-data-ref.h (struct data_dependence_relation): Likewise.
21143 * ira-int.h (struct ira_allocno): Likewise.
21144 * df-scan.c (struct df_collection_rec): Likewise.
21145 * ira.c (struct equivalence): Likewise.
21146 * function.c (struct temp_slot): Likewise.
21147 * cfgloop.h (struct loop): Likewise.
21150 * function.c (use_register_for_decl): When not optimizing, disregard
21151 register keyword for variables with types containing methods.
21153 2009-03-18 Sebastian Pop <sebastian.pop@amd.com>
21155 PR middle-end/39447
21156 * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
21157 (is_simple_operand): Call contains_component_ref_p before calling data
21158 reference analysis that would fail on COMPONENT_REFs.
21160 * tree-vrp.c (search_for_addr_array): Fix formatting.
21162 2009-03-18 Richard Guenther <rguenther@suse.de>
21164 * tree-vect-transform.c (vect_loop_versioning): Fold the
21165 generated comparisons.
21166 * tree-vectorizer.c (set_prologue_iterations): Likewise.
21167 (slpeel_tree_peel_loop_to_edge): Likewise.
21169 2009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21171 PR middle-end/37805
21172 * opts.c (print_specific_help): In addition to `undocumented',
21173 accept `separate' and `joined' flags if passed alone. Describe
21174 output by the first matched one of those.
21175 (common_handle_option): Skip over empty strings.
21176 * gcc.c (display_help): Fix help string for `--help='.
21177 * doc/invoke.texi (Option Summary, Overall Options): With
21178 `--help=', classes and qualifiers can both be repeated, but
21179 only the latter can be negated. One should not pass only
21180 negated qualifiers. Fix markup and examples.
21183 2008-10-14 Jakub Jelinek <jakub@redhat.com>
21184 PR middle-end/37805
21185 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
21186 and -fhelp=separate.
21188 2009-03-17 Jing Yu <jingyu@google.com>
21190 PR middle-end/39378
21191 * function.h (struct rtl_data): Move is_thunk from here...
21192 (struct function): ...to here.
21193 * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
21194 * varasm.c (assemble_start_function): Change is_thunk from crtl to
21196 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
21198 (alpha_does_function_need_gp, alpha_start_function): Likewise.
21199 (alpha_output_function_end_prologue): Likewise.
21200 (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
21201 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
21202 (rs6000_output_function_epilogue): Likewise.
21203 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
21205 2009-03-17 Uros Bizjak <ubizjak@gmail.com>
21208 * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
21209 from different units in a single alternative.
21210 (*truncdfsf_i387): Ditto.
21211 (*truncxfsf2_mixed): Ditto.
21212 (*truncxfdf2_mixed): Ditto.
21214 2009-03-17 Jakub Jelinek <jakub@redhat.com>
21216 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
21217 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
21220 * tree-ssa-live.c (remove_unused_locals): Don't remove local
21221 unused non-artificial variables when not optimizing.
21224 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
21225 DW_TAG_imported_module even if decl is IMPORTED_DECL with
21226 NAMESPACE_DECL in its DECL_INITIAL.
21228 PR middle-end/39443
21229 * optabs.c (set_user_assembler_libfunc): New function.
21230 * expr.h (set_user_assembler_libfunc): New prototype.
21231 * c-common.c: Include libfuncs.h.
21232 (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
21233 for memcmp, memset, memcpy, memmove and abort.
21234 * Makefile.in (c-common.o): Depend on libfuncs.h.
21237 * dwarf2out.c (gen_inlined_enumeration_type_die,
21238 gen_inlined_structure_type_die, gen_inlined_union_type_die,
21239 gen_tagged_type_instantiation_die): Removed.
21240 (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
21243 2009-03-17 Janis Johnson <janis187@us.ibm.com>
21246 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
21248 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
21249 (check-parallel-%): Ditto.
21250 (check-consistency): Ditto.
21252 2009-03-17 Kai Tietz <kai.tietz@onevision.com>
21254 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
21255 local variable rhs by NULL_TREE.
21257 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
21260 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
21262 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
21265 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
21267 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
21270 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
21271 for ms->sysv ABI calls only in 64bit mode.
21273 * config/i386/i386.md (untyped_call): Support 32bit.
21275 2009-03-16 H.J. Lu <hongjiu.lu@intel.com>
21277 * doc/extend.texi: Replace x86_65 with x86_64.
21279 2009-03-16 Jakub Jelinek <jakub@redhat.com>
21281 PR tree-optimization/39455
21282 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
21283 mismatches for POINTER_TYPE_P (type).
21284 (number_of_iterations_le): Likewise.
21286 2009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
21288 * config/picochip/picochip.c: Removed profiling support.
21289 * config/picochip/picochip.md: Removed profiling instruction.
21290 * config/picochip/picochip.h: Removed profiling builtin.
21292 2009-03-16 Joseph Myers <joseph@codesourcery.com>
21294 * doc/install.texi (--with-host-libstdcxx): Document.
21296 2009-03-14 Anatoly Sokolov <aesok@post.ru>
21299 * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
21300 generate a warning if the function name does not begin with
21301 "__vector" and the function has either the 'signal' or 'interrupt'
21302 attribute, from here to ...
21303 (avr_declare_function_name): ...here. New function.
21304 * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
21305 * config/avr/avr-protos.h (avr_declare_function_name): Declare.
21307 2009-03-14 Jakub Jelinek <jakub@redhat.com>
21310 * cse.c (fold_rtx): Don't modify original const_arg1 when
21311 canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
21312 separate variable instead.
21313 * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
21314 from out of range shift counts.
21315 (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
21317 2009-03-13 Catherine Moore <clm@codesourcery.com>
21319 * config/i386/x-mingw32 (host-mingw32.o): Replace
21320 diagnostic.h with $(DIAGNOSTIC_H).
21322 2009-03-12 Jakub Jelinek <jakub@redhat.com>
21325 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
21327 * config/i386/sync.md (sync_compare_and_swap<mode>,
21328 sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
21329 if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
21331 (sync_double_compare_and_swapdi_pic,
21332 sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
21333 cmpxchg8b_pic_memory_operand instead of just memory_operand.
21335 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
21338 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
21340 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
21343 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
21344 (avx_addsubv4df3): Likewise.
21345 (*avx_addsubv4sf3): Likewise.
21346 (sse3_addsubv4sf3): Likewise.
21348 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
21351 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
21353 2009-03-12 Vladimir Makarov <vmakarov@redhat.com>
21356 * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
21357 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
21358 registers for allocnos created from user-defined variables.
21360 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21363 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
21364 of non-integer mode as well.
21366 2009-03-11 Adam Nemet <anemet@caviumnetworks.com>
21368 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
21369 for functions for which the parameter types are unknown.
21371 2009-03-11 Jakub Jelinek <jakub@redhat.com>
21374 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
21375 * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
21376 * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
21377 * config/i386/i386.c (ix86_local_alignment): For
21378 -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
21379 long long variables on the stack to avoid dynamic realignment.
21380 Allow the first argument to be a decl rather than type.
21381 * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
21383 2009-03-11 Nick Clifton <nickc@redhat.com>
21386 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
21388 Add description to mno-lsim option.
21389 * config/mcore/mcore.h: Remove comment about deprecated m4align
21391 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
21392 * doc/invoke.texi: Add description of mno-lsim and
21393 mstack-increment options.
21395 * config/fr30/fr30.opt: Document the -mno-lsim option.
21396 * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
21397 and -mno-lsim options.
21399 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21401 * fold-const.c (fold_comparison): Only call fold_inf_compare
21402 if the mode supports infinities.
21404 2009-03-11 Jason Merrill <jason@redhat.com>
21407 * tree-nrv.c (tree_nrv): Don't do this optimization if the front
21408 end already did. Notice GIMPLE_CALL modifications of the result.
21409 Don't copy debug information from an ignored decl or a decl from
21412 2009-03-10 Richard Guenther <rguenther@suse.de>
21413 Nathan Froyd <froydnj@codesourcery.com>
21415 PR middle-end/37850
21416 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
21417 (__divMODE3): Likewise.
21419 2009-03-09 Jakub Jelinek <jakub@redhat.com>
21421 PR tree-optimization/39394
21422 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
21423 DECL_SIZE_UNIT of variable length FIELD_DECLs.
21425 2009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21427 * recog.c (verfiy_changes): Disallow renaming of hard regs in
21428 inline asms for register asm ("") declarations.
21430 2009-03-09 Eric Botcazou <ebotcazou@adacore.com>
21432 * fold-const.c (fold_unary): Fix comment.
21434 2009-03-07 Jan Hubicka <jh@suse.cz>
21437 * tree-inline.c (setup_one_parameter): Do replacement of const
21438 argument by constant in SSA form.
21440 2009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21442 PR middle-end/38028
21443 * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
21444 determine alignment passed to assign_stack_local.
21445 (assign_parms_unsplit_complex): Likewise.
21446 * except.c (sjlj_build_landing_pads): Likewise.
21448 2009-03-06 Jakub Jelinek <jakub@redhat.com>
21450 PR middle-end/39360
21451 * tree-flow.h (add_referenced_var): Return bool instead of void.
21452 * tree-dfa.c (add_referenced_var): Return result of
21453 referenced_var_check_and_insert call.
21454 * tree-inline.c (expand_call_inline): Call add_referenced_var instead
21455 of referenced_var_check_and_insert.
21458 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
21459 (gen_variable_die): Emit DW_AT_location on abstract static variable's
21460 DIE, don't emit it if abstract origin already has it.
21461 * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
21462 BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
21464 2009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21466 * genpreds.c (needs_variable): Fix parentheses at variable name
21468 (write_tm_constrs_h): Indent generated code.
21470 2009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21472 * doc/extend.texi (Function Attributes): Add documentation
21473 for isr attributes.
21475 2009-03-06 Jakub Jelinek <jakub@redhat.com>
21478 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
21479 take locus from its DECL_SOURCE_LOCATION instead of input_location.
21481 2009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
21483 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
21486 2009-03-05 Jakub Jelinek <jakub@redhat.com>
21489 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
21490 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
21492 2009-03-05 Uros Bizjak <ubizjak@gmail.com>
21494 * config/i386/i386.md (R8_REG, R9_REG): New constants.
21495 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
21496 constants instead of magic numbers.
21497 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
21499 * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
21500 (x86_64_ms_abi_int_parameter_registers): Ditto.
21501 (x86_64_int_return_registers): Ditto.
21502 (ix86_maybe_switch_abi): Ditto.
21503 (ix86_expand_call): Ditto for clobbered_registers array.
21504 (ix86_hard_regno_mode_ok): Ditto.
21505 (x86_extended_QIreg_mentioned_p): Ditto.
21507 2009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
21509 PR tree-optimization/39349
21510 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
21512 * combine.c (gen_lowpart_for_combine): Use omode when generating
21515 2009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
21517 PR rtl-optimization/39235
21518 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
21520 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
21522 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
21524 2009-03-04 Richard Guenther <rguenther@suse.de>
21526 PR tree-optimization/39362
21527 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
21528 that occur in abnormal PHIs should be varying.
21530 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
21532 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
21534 (simple_iv): Take loop as an argument instead of statement.
21535 * tree-scalar-evolution.h (simple_iv): Declaration changed.
21536 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
21538 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
21540 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
21541 * matrix-reorg.c (analyze_transpose): Ditto.
21542 * tree-data-ref.c (dr_analyze_innermost): Ditto.
21543 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
21544 * tree-predcom.c (ref_at_iteration): Ditto.
21545 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
21547 2009-03-04 Richard Guenther <rguenther@suse.de>
21549 PR tree-optimization/39358
21550 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
21551 escaped_id and callused_id.
21552 (solve_graph): Likewise.
21554 2009-03-04 Richard Guenther <rguenther@suse.de>
21556 PR tree-optimization/39339
21557 * tree-sra.c (try_instantiate_multiple_fields): Make it
21558 no longer ICE on the above.
21560 2009-03-03 Joseph Myers <joseph@codesourcery.com>
21562 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
21563 that fits within Pmode.
21565 2009-03-03 Steve Ellcey <sje@cup.hp.com>
21567 PR middle-end/10109
21568 * tm.texi (LIBCALL_VALUE): Update description.
21570 2009-03-03 Steve Ellcey <sje@cup.hp.com>
21572 PR middle-end/34443
21573 * doc/extend.texi (section): Update description.
21575 2009-03-03 H.J. Lu <hongjiu.lu@intel.com>
21577 PR middle-end/39345
21578 * tree-inline.c (remapped_type): New.
21579 (can_be_nonlocal): Call remapped_type instead of remap_type.
21581 2009-03-03 Jakub Jelinek <jakub@redhat.com>
21584 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
21585 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
21587 2009-03-03 Richard Guenther <rguenther@suse.de>
21589 PR middle-end/39272
21590 * tree.c (tree_nonartificial_location): New function.
21591 * tree.h (tree_nonartificial_location): Declare.
21592 * builtins.c (expand_builtin_memory_chk): Provide location
21593 of the call location for artificial function pieces.
21594 (maybe_emit_chk_warning): Likewise.
21595 (maybe_emit_sprintf_chk_warning): Likewise.
21596 (maybe_emit_free_warning): Likewise.
21597 * expr.c (expand_expr_real_1): Likewise.
21599 2009-03-03 Jakub Jelinek <jakub@redhat.com>
21601 PR tree-optimization/39343
21602 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
21603 COMPONENT_REF t has ARRAY_TYPE.
21605 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
21607 PR middle-end/39335
21608 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
21609 when the type precision of the induction variable should be
21610 larger than the type precision of nit.
21611 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
21612 * graphite.c (graphite_loop_normal_form): Same.
21613 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
21615 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
21617 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
21618 (*call_1_rex64_ms_sysv): Use named constants instead of magic
21619 numbers to describe clobbered registers.
21620 (*call_value_0_rex64_ms_sysv): Ditto.
21621 * config/i386/mmx.md (mmx_emms): Ditto.
21622 (mmx_femms): Ditto.
21624 2009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
21626 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
21629 2009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21631 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
21632 (spu_section_type_flags): New function.
21634 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
21636 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
21637 reg_class_contents of FLOAT_REGS into a temporary.
21639 2009-03-02 Richard Guenther <rguenther@suse.de>
21640 Ira Rosen <irar@il.ibm.com>
21642 PR tree-optimization/39318
21643 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
21644 information to the vectorized statement.
21646 2009-03-01 Uros Bizjak <ubizjak@gmail.com>
21648 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
21649 variable. Use defined names instead of magic constants for REX SSE
21652 2009-03-01 Richard Guenther <rguenther@suse.de>
21654 PR tree-optimization/39331
21655 * omp-low.c (lower_send_shared_vars): Do not receive new
21656 values for the reference of DECL_BY_REFERENCE parms or results.
21658 2009-03-01 Jan Hubicka <jh@suse.cz>
21661 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
21662 BLOCK_NONLOCALIZED_VAR): New macros.
21663 (tree_block): Add nonlocalized_vars.
21664 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
21665 gen_decl_die): Add origin argument. Allow generation of die with
21666 origin at hand only.
21667 (gen_member_die, gen_type_die_with_usage, force_decl_die,
21668 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
21670 (gen_block_die): Fix checking for unused blocks.
21671 (process_scope_var): Break out from .... ; work with origins only.
21672 (decls_for_scope) ... here; process nonlocalized list.
21673 (dwarf2out_ignore_block): Look for nonlocalized vars.
21674 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
21676 (dump_scope_block): Dump them.
21677 * tree-inline.c (remap_decls): Handle nonlocalized vars.
21678 (remap_block): Likewise.
21679 (can_be_nonlocal): New predicate.
21680 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
21682 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21684 * configure: Regenerate.
21686 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21688 * optc-gen.awk: No need to duplicate option flags twice.
21689 Reuse help texts for duplicate options which do not have any.
21691 * gcc.c (display_help): Document --version.
21693 * gcc.c (main): If print_help_list and verbose_flag, ensure
21694 driver output comes before subprocess output.
21696 * optc-gen.awk: Assign all remaining fields to help string,
21697 space-separated, for multi-line help in *.opt.
21699 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
21700 -Wno-pedantic-ms-format is for MinGW targets only.
21702 * doc/options.texi (Option file format): Fix bad indentation,
21703 restoring dropped sentence.
21705 2009-02-28 Jan Hubicka <jh@suse.cz>
21707 * tree-inline.c (tree_function_versioning): Output debug info.
21709 2009-02-28 Jan Hubicka <jh@suse.cz>
21712 * tree-inline.c (setup_one_parameter): Do not copy propagate
21713 arguments when not optimizing.
21715 2009-02-28 H.J. Lu <hongjiu.lu@intel.com>
21718 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
21719 (avx_addsubv4df3): Likewise.
21720 (*avx_addsubv4sf3): Likewise.
21721 (sse3_addsubv4sf3): Likewise.
21722 (*avx_addsubv2df3): Likewise.
21723 (sse3_addsubv2df3): Likewise.
21724 (avx_unpckhps256): Correct item selectors.
21725 (avx_unpcklps256): Likewise.
21726 (avx_unpckhpd256): Likewise.
21727 (avx_unpcklpd256): Likewise.
21729 2009-02-28 Jan Hubicka <jh@suse.cz>
21731 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
21733 (copy_arguments_for_versioning): If var is declared don't declare it.
21734 (tree_function_versioning): First setup substitutions and then copy
21737 2009-02-27 Jan Hubicka <jh@suse.cz>
21740 * cgraph.h (varpool_output_debug_info): Remove.
21741 * cgraphunit.c (varpool_output_debug_info): Remove.
21742 * dwarf2out.c (deferred_locations_struct): New struct
21743 (deferred_locations): New type.
21744 (deferred_locations_list): New static var.
21745 (deffer_location): New function.
21746 (gen_variable_die): Use it.
21747 (decls_for_scope): Output info on local static vars.
21748 (dwarf2out_finish): Process deferred locations.
21749 * varpool.c (varpool_output_debug_info): Remove.
21751 2009-02-27 Jan Hubicka <jh@suse.cz>
21754 * tree.h (TREE_PROTECTED): Fix comment.
21755 (BLOCK_HANDLER_BLOCK): Remove.
21756 (struct tree_block): Remove handler_block add body_block.
21757 (inlined_function_outer_scope_p): New.
21758 (is_body_block): Remove.
21759 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
21760 * dwarf2out.c (is_inlined_entry_point): Remove.
21761 (add_high_low_attributes): Use inlined_function_outer_scope_p.
21762 (gen_block_die): Use is_inlined_entry_point check. Remove body block
21764 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
21765 * gimplify.c (gimplify_expr): Gimplify body blocks.
21766 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
21767 block with multiple subblocks.
21768 (dump_scope_block): Prettier output; dump more flags and info.
21769 (dump_scope_blocks): New.
21770 (remove_unused_locals): Use dump_scope_blocks.
21771 * tree-flow.h (dump_scope_blocks): Declare.
21772 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
21773 * stmt.c (is_body_block): Remove.
21774 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
21775 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
21777 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
21779 PR middle-end/39308
21780 * graphite.c (graphite_loop_normal_form): Do not call
21781 number_of_iterations_exit from a gcc_assert.
21783 2009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21785 * config/s390/s390.c (s390_swap_cmp): Look for conditional
21786 jumps if COND is NULL.
21787 (find_cond_jump): New function.
21788 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
21789 * config/s390/s390.md: Remove z10_cobra attribute value.
21791 2009-02-26 Uros Bizjak <ubizjak@gmail.com>
21793 * config/alpha/alpha.h (alpha_expand_mov): Return false if
21794 force_const_mem returns NULL_RTX.
21796 2009-02-26 Jan Hubicka <jh@suse.cz>
21799 * cgraph.h (varpool_output_debug_info): Remove.
21800 * cgraphunit.c (varpool_output_debug_info): Remove.
21801 * dwarf2out.c (deferred_locations_struct): New struct
21802 (deferred_locations): New type.
21803 (deferred_locations_list): New static var.
21804 (deffer_location): New function.
21805 (gen_variable_die): Use it.
21806 (decls_for_scope): Output info on local static vars.
21807 (dwarf2out_finish): Process deferred locations.
21808 * varpool.c (varpool_output_debug_info): Remove.
21810 2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
21812 PR rtl-optimization/39241
21813 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
21814 to subreg_offset_representable_p.
21816 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
21818 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
21819 execute function prototype. Get f and nregs from max_reg_num
21820 and get_insns. Remove the first backward pass as it's dead,
21821 guard the forward pass by flag_expensive_optimizations.
21822 (rest_of_handle_regmove): Delete.
21823 (pass_regmove): Replace it with regmove_optimize.
21825 2009-02-25 Martin Jambor <mjambor@suse.cz>
21827 PR tree-optimization/39259
21828 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
21829 calls_alloca function flags.
21830 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
21831 calls are detected.
21833 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
21835 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
21836 flags_set_1_rtx, flags_set_1_set): Delete.
21837 (regmove_optimize): Do not call mark_flags_life_zones.
21839 2009-02-24 Julian Brown <julian@codesourcery.com>
21842 * config/arm/arm.c (require_pic_register): Only set
21843 cfun->machine->pic_reg once per function.
21845 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
21847 * doc/invoke.texi (Link Options): Document an easier way to pass
21848 options that take arguments to the GNU linker using -Xlinker and -Wl.
21850 2009-02-24 Steve Ellcey <sje@cup.hp.com>
21853 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
21855 2009-02-24 Richard Guenther <rguenther@suse.de>
21858 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
21860 2009-02-24 Richard Guenther <rguenther@suse.de>
21861 Zdenek Dvorak <ook@ucw.cz>
21863 PR tree-optimization/39233
21864 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
21865 from converting them to a generic type.
21867 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
21869 PR tree-optimization/39260
21870 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
21871 contains a condition with a real type.
21872 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
21874 2009-02-23 Jason Merrill <jason@redhat.com>
21877 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
21878 narrowing_initializer_constant_valid_p.
21879 (narrowing_initializer_constant_valid_p): Don't return
21880 null_pointer_node for adding a pointer to itself.
21882 2009-02-23 Jan Hubicka <jh@suse.cz>
21885 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
21888 2009-02-23 Jan Hubicka <jh@suse.cz>
21890 PR tree-optimization/37709
21891 * tree.c (block_ultimate_origin): Move here from dwarf2out.
21892 * tree.h (block_ultimate_origin): Declare.
21893 * dwarf2out.c (block_ultimate_origin): Move to tree.c
21894 * tree-ssa-live.c (remove_unused_scope_block_p):
21895 Eliminate blocks containig no instructions nor live variables nor
21897 (dump_scope_block): New function.
21898 (remove_unused_locals): Enable removal of dead blocks by default;
21899 enable dumping at TDF_DETAILS.
21901 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
21903 * config/i386/i386.c (classify_argument): Don't allow COImode
21905 (function_arg_advance_32): Don't allow OImode.
21906 (function_arg_32): Likewise.
21907 (function_value_32): Likewise.
21908 (return_in_memory_32): Likewise.
21909 (function_arg_64): Remove OImode comment.
21911 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
21914 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
21915 ix86_expand_vector_set for V4DImode in 64bit mode only.
21916 (ix86_expand_vector_init_one_var): Likewise.
21918 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
21920 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
21922 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
21925 * loop-iv.c: Revert last change.
21926 * emit-rtl.c: Likewise.
21928 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
21931 * config/i386/i386.c (type_natural_mode): Remove an extra
21932 space in the warning message.
21933 (function_value_32): Handle 32-byte vector modes.
21934 (return_in_memory_32): Likewise.
21936 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
21938 * loop-iv.c (truncate_value): New function.
21939 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
21941 (lowpart_subreg): Move to...
21942 * emit-rtl.c: ...here.
21944 2009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
21946 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
21947 accidental and undocumented change at revision 140860.
21949 2009-02-21 Joseph Myers <joseph@codesourcery.com>
21951 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
21952 take gimple_seq * arguments.
21953 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
21954 types_compatible_p langhook.
21956 2009-02-20 Mark Mitchell <mark@codesourcery.com>
21957 Joseph Myers <joseph@codesourcery.com>
21959 * config/arm/arm.c (arm_builtin_va_list): New function.
21960 (arm_expand_builtin_va_start): Likewise.
21961 (arm_gimplify_va_arg_expr): Likewise.
21962 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
21963 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
21964 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
21965 (va_list_type): New variable.
21966 (arm_mangle_type): Mangle va_list_type appropriately.
21968 2009-02-20 Jakub Jelinek <jakub@redhat.com>
21970 PR middle-end/39157
21971 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
21972 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
21973 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
21974 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
21975 parameter to 1000 for -O1 by default.
21976 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
21978 * loop-invariant.c: Include params.h.
21979 (move_loop_invariants): Don't call move_single_loop_invariants on
21982 2009-02-20 Jaka Mocnik <jaka@xlab.si>
21984 * calls.c (emit_library_call_value_1): Use slot_offset instead of
21985 offset when calculating bounds for indexing stack_usage_map. Fixes
21986 a buffer overflow with certain target setups.
21988 2009-02-20 Jakub Jelinek <jakub@redhat.com>
21991 * calls.c (expand_call): Clear try_tail_call if caller and callee
21992 disagree in promotion of function return value.
21994 2009-02-19 Jakub Jelinek <jakub@redhat.com>
21997 * c-common.c (c_determine_visibility): If visibility changed and
21998 DECL_RTL has been already set, call make_decl_rtl to update symbol
22001 2009-02-19 H.J. Lu <hongjiu.lu@intel.com>
22004 * varasm.c (assemble_variable): Don't check DECL_NAME when
22005 globalizing a variable.
22007 2009-02-19 Joseph Myers <joseph@codesourcery.com>
22010 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
22011 expression before any __builtin_trap call.
22012 * c-typeck.c (build_function_call): Convert and check function
22013 arguments before generating a call to a trap. Evaluate the
22014 function arguments before the trap.
22016 2009-02-19 Uros Bizjak <ubizjak@gmail.com>
22019 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
22020 (UNSPEC_FXAM_MEM): New unspec.
22021 (fxam<mode>2_i387_with_temp): New insn and split pattern.
22022 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
22023 memory using fxam<mode>2_i387_with_temp to remove excess precision.
22025 2009-02-19 Richard Guenther <rguenther@suse.de>
22027 PR tree-optimization/39207
22028 PR tree-optimization/39074
22029 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
22030 storedanything_tree): New.
22031 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
22032 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
22033 (build_succ_graph): Add edges from STOREDANYTHING to all
22035 (init_base_vars): Initialize STOREDANYTHING.
22036 (compute_points_to_sets): Free substitution info after
22037 building the succ graph.
22038 (ipa_pta_execute): Likewise.
22040 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
22042 (do_ds_constraint): Do not add to special var or non-pointer
22044 (type_could_have_pointers): Split out from ...
22045 (could_have_pointers): ... here. For arrays use the element type.
22046 (create_variable_info_for): Initialize may_have_pointers.
22047 (new_var_info): Likewise.
22048 (handle_lhs_call): Make the HEAP variable unknown-sized.
22049 (intra_create_variable_infos): Use a type with pointers for
22050 PARM_NOALIAS, make it unknown-sized.
22052 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
22055 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
22057 2009-02-18 Jason Merrill <jason@redhat.com>
22060 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
22061 value if DECL_EXTERNAL.
22062 * tree-sra.c (sra_walk_gimple_assign): Likewise.
22063 * target.h (gcc_target::binds_local_p): Clarify "module".
22064 * tree.h (TREE_PUBLIC): Clarify "module".
22066 2009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
22069 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
22070 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
22072 2009-02-17 H.J. Lu <hongjiu.lu@intel.com>
22075 * c.opt (Wabi): Support C and ObjC.
22078 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
22080 * config/i386/i386.c (classify_argument): Warn once about the ABI
22081 change when passing union with long double.
22083 * doc/invoke.texi: Update -Wabi for warning psABI changes.
22085 2009-02-18 Joseph Myers <joseph@codesourcery.com>
22088 * c-parser.c (c_parser_compound_statement): Always enter and leave
22091 2009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22094 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
22096 2009-02-18 Jakub Jelinek <jakub@redhat.com>
22098 PR tree-optimization/36922
22099 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
22100 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
22103 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
22105 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
22108 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
22110 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
22112 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
22114 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
22117 2009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
22118 Richard Sandiford <rdsandiford@googlemail.com>
22120 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
22121 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
22122 (loongson_biadd): ...this.
22124 2009-02-17 Richard Guenther <rguenther@suse.de>
22126 PR tree-optimization/39202
22127 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
22128 a var make sure to follow existing collapses.
22130 2009-02-17 Richard Guenther <rguenther@suse.de>
22132 PR middle-end/39214
22133 * langhooks.c (lhd_print_error_function): Check for NULL block.
22135 2009-02-17 Richard Guenther <rguenther@suse.de>
22137 PR tree-optimization/39204
22138 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
22141 2009-02-17 Uros Bizjak <ubizjak@gmail.com>
22143 * config/soft-fp/double.h: Update from glibc CVS.
22145 2009-02-17 Richard Guenther <rguenther@suse.de>
22147 PR tree-optimization/39207
22148 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
22149 strict-aliasing warnings for pointers pointing to NULL.
22151 2009-02-16 Joseph Myers <joseph@codesourcery.com>
22154 * c-parser.c (c_parser_braced_init): Call pop_init_level when
22155 skipping until next close brace.
22157 2009-02-16 H.J. Lu <hongjiu.lu@intel.com>
22160 * config/i386/i386.c (ix86_expand_push): Set memory alignment
22161 to function argument boundary.
22163 2009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
22165 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
22166 in the lea_add. Reload eventually constraints it properly.
22167 * config/picochip/constraints.md: Remove the target constraint
22168 "b", since it is not needed anymore.
22170 2009-02-16 Jakub Jelinek <jakub@redhat.com>
22172 * gthr-dce.h: Uglify function parameter and local variable names.
22173 * gthr-gnat.h: Likewise.
22174 * gthr-mipssde.h: Likewise.
22175 * gthr-nks.h: Likewise.
22176 * gthr-posix95.h: Likewise.
22177 * gthr-posix.h: Likewise.
22178 * gthr-rtems.h: Likewise.
22179 * gthr-single.h: Likewise.
22180 * gthr-solaris.h: Likewise.
22181 * gthr-tpf.h: Likewise.
22182 * gthr-vxworks.h: Likewise.
22183 * gthr-win32.h: Likewise.
22185 2009-02-15 H.J. Lu <hongjiu.lu@intel.com>
22188 * config/i386/i386.md: Restrict the new peephole2 to move
22189 between MMX/SSE registers.
22191 2009-02-15 Richard Guenther <rguenther@suse.de>
22194 2009-02-13 Richard Guenther <rguenther@suse.de>
22196 * configure.ac: Enable LFS.
22197 * configure: Re-generate.
22198 * config.in: Likewise.
22200 2009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22202 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
22203 spu_srqwbyte, spu_srqwbytebc): Define.
22204 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
22205 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
22206 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
22207 "shrqby_<mode>"): New insn-and-split patterns.
22208 * config/spu/spu.c (expand_builtin_args): Determine and return
22209 number of operands using spu_builtin_description data.
22210 (spu_expand_builtin_1): Use it.
22212 2009-02-13 Steve Ellcey <sje@cup.hp.com>
22215 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
22218 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
22221 * config/i386/i386.c (override_options): Correct warning
22222 messages for -malign-loops, -malign-jumps and -malign-functions.
22224 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
22227 * config/i386/i386.md: Restrict the new peephole2 to move
22228 between the general purpose registers.
22230 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
22233 * config/i386/i386.c (type_natural_mode): Add a new argument.
22234 Return the original mode and warn ABI change if vector size is 32byte.
22235 (function_arg_advance): Updated.
22236 (function_arg): Likewise.
22237 (ix86_function_value): Likewise.
22238 (ix86_return_in_memory): Likewise.
22239 (ix86_sol10_return_in_memory): Likewise.
22240 (ix86_gimplify_va_arg): Likewise.
22241 (function_arg_32): Don't warn ABX ABI change here.
22242 (function_arg_64): Likewise.
22244 2009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
22246 * loop-iv.c (implies_p): In the final case, test that operands 0
22247 of the two comparisons match.
22249 * config/bfin/bfin.c (find_prev_insn_start): New function.
22250 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
22251 (find_next_insn_start): Move.
22253 2009-02-13 Richard Guenther <rguenther@suse.de>
22255 * configure.ac: Enable LFS.
22256 * configure: Re-generate.
22257 * config.in: Likewise.
22259 2009-02-13 Joseph Myers <joseph@codesourcery.com>
22262 * c-parser.c (c_parser_parms_list_declarator): Discard pending
22263 sizes on syntax error after some arguments have been parsed.
22265 2009-02-12 Jakub Jelinek <jakub@redhat.com>
22267 * doc/invoke.texi (-fira): Remove.
22269 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
22271 * caller-save.c: Replace regclass.c with reginfo.c in comments.
22272 * recog.c: Likewise.
22275 2009-02-12 Uros Bizjak <ubizjak@gmail.com>
22277 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
22278 (umul_ppmm): Likewise.
22279 (count_leading_zeros): Likewise.
22280 (count_trailing_zeros): Likewise.
22281 (UMUL_TIME): Likewise.
22283 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
22285 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
22286 soft-fp/t-softfp to tmake_file.
22288 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
22289 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
22290 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
22291 IA64_BUILTIN_INFQ]: New.
22292 (ia64_init_builtins): Initialize __builtin_infq,
22293 __builtin_fabsq and __builtin_copysignq if not HPUX.
22294 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
22295 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
22297 * config/ia64/lib1funcs.asm (__divtf3): Define only if
22299 (__fixtfti): Likewise.
22300 (__fixunstfti): Likewise.
22301 (__floattitf): Likewise.
22303 * config/ia64/libgcc-glibc.ver: New.
22304 * config/ia64/t-fprules-softfp: Likewise.
22305 * config/ia64/sfp-machine.h: Likewise.
22307 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
22308 (LIBGCC2_TF_CEXT): Likewise.
22309 (TF_SIZE): Likewise.
22310 (TARGET_INIT_LIBFUNCS): Likewise.
22312 * config/ia64/t-glibc (SHLINB_MAPFILES):
22313 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
22315 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
22317 * config/i386/i386.c (construct_container): Rewrite processing
22318 BLKmode with X86_64_SSE_CLASS.
22320 2009-02-12 Paolo Bonzini <bonzini@gnu.org>
22323 * config/i386/i386.md: Replace simplify_replace_rtx with
22324 replace_rtx in the new peephole2.
22326 2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
22328 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
22329 loop unrolling do not happen at -O2.
22331 2009-02-12 Michael Matz <matz@suse.de>
22333 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
22335 2009-02-12 Jakub Jelinek <jakub@redhat.com>
22337 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
22340 2009-02-12 Ben Elliston <bje@au.ibm.com>
22342 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
22343 patterns when updating the back chain. Missed in the 2009-02-10
22346 2009-02-11 Janis Johnson <janis187@us.ibm.com>
22348 * doc/extend.texi (Decimal Floating Types): Update identifier of
22349 draft TR and list of missing support.
22351 2009-02-11 Jakub Jelinek <jakub@redhat.com>
22353 PR middle-end/39154
22354 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
22355 bit to variable length decl's flags, add it also to its
22356 pointer replacement variable.
22358 2009-02-11 Uros Bizjak <ubizjak@gmail.com>
22359 Jakub Jelinek <jakub@redhat.com>
22362 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
22363 (memory_blockage): New expander.
22364 (*memory_blockage): New insn pattern.
22365 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
22366 instead of general blockage at the end of function prologue when
22367 frame pointer is used to access red zone area. Do not emit blockage
22368 when profiling, it is emitted in generic code.
22369 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
22370 function epilogue when frame pointer is used to access red zone area.
22372 2009-02-11 Paolo Bonzini <bonzini@gnu.org>
22375 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
22376 by arithmetic with memory operands.
22377 * config/i386/predicates.md (commutative_operator): New.
22379 2009-02-10 Janis Johnson <janis187@us.ibm.com>
22381 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
22384 2009-02-10 Eric Botcazou <ebotcazou@adacore.com>
22386 * alias.h (record_alias_subset): Declare.
22387 * alias.c (record_alias_subset): Make global.
22389 2009-02-10 Nick Clifton <nickc@redhat.com>
22391 * tree-parloops.c: Change license to GPLv3.
22392 * ipa-struct-reorg.c: Change license to GPLv3.
22393 * ipa-struct-reorg.h: Change license to GPLv3.
22395 2009-02-10 Steve Ellcey <sje@cup.hp.com>
22398 * c-decl.c (start_struct): Return NULL on error.
22400 2009-02-10 Jakub Jelinek <jakub@redhat.com>
22402 PR middle-end/39124
22403 * cfgloopmanip.c (remove_path): Call remove_bbs after
22404 cancel_loop_tree, not before it.
22407 * function.h (struct function): Add has_local_explicit_reg_vars bit.
22408 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
22409 VAR_DECLs were seen.
22410 * tree-ssa-live.c (remove_unused_locals): Recompute
22411 cfun->has_local_explicit_reg_vars.
22412 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
22413 copies or clearings if cfun->has_local_explicit_reg_vars.
22415 2009-02-10 Uros Bizjak <ubizjak@gmail.com>
22418 * config/i386/i386.c (expand_prologue): Emit blockage at the end
22419 of function prologue when frame pointer is used to access
22422 2009-02-10 Richard Guenther <rguenther@suse.de>
22424 PR middle-end/39127
22425 * gimplify.c (gimple_regimplify_operands): Always look if
22426 we need to create a temporary.
22428 2009-02-10 Richard Guenther <rguenther@suse.de>
22430 PR tree-optimization/39132
22431 * tree-loop-distribution.c (todo): New global var.
22432 (generate_memset_zero): Trigger TODO_rebuild_alias.
22433 (tree_loop_distribution): Return todo.
22435 2009-02-10 H.J. Lu <hongjiu.lu@intel.com>
22438 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
22439 (x86_64_reg_class_name): Removed.
22440 (classify_argument): Return 0 if bytes > 32. Return 0 if the
22441 first one isn't X86_64_SSE_CLASS or any other ones aren't
22442 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
22443 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
22444 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
22445 and 3 X86_64_SSEUP_CLASS.
22446 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
22447 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
22449 2009-02-10 Ben Elliston <bje@au.ibm.com>
22451 * config/rs6000/rs6000.md (allocate_stack): Always use an update
22452 form instruction to update the stack back chain word, even if the
22453 user has disabled the generation of update instructions.
22454 (movdi_<mode>_update_stack): New.
22455 (movsi_update_stack): Likewise.
22456 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
22457 always use an update form instruction to update the stack back
22460 2009-02-09 Sebastian Pop <sebastian.pop@amd.com>
22462 PR middle-end/38953
22463 * graphite.c (if_region_set_false_region): After moving a region in
22464 the false branch of a condition, remove the empty dummy basic block.
22465 (gloog): Remove wrong fix for PR38953.
22467 2009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22469 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
22470 generation due to implicit sign extension.
22472 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
22474 PR middle-end/38981
22475 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
22476 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
22478 2009-02-09 Richard Guenther <rguenther@suse.de>
22480 PR middle-end/35202
22481 * convert.c (convert_to_real): Disable (float)fn((double)x)
22482 to fnf(x) conversion if errno differences may occur and
22483 -fmath-errno is set.
22485 2009-02-07 Anatoly Sokolov <aesok@post.ru>
22487 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
22488 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
22489 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
22491 2009-02-06 Joseph Myers <joseph@codesourcery.com>
22494 * c-common.c (handle_alias_attribute): Disallow attribute for
22495 anything not a FUNCTION_DECL or VAR_DECL.
22497 2009-02-06 Janis Johnson <janis187@us.ibm.com>
22500 * real.c (do_compare): Special-case compare of zero against
22501 decimal float value.
22503 2009-02-06 Joseph Myers <joseph@codesourcery.com>
22506 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
22507 as indicating flexible array members unless the field itself is
22508 being declarared as the incomplete array.
22510 2009-02-06 Jan Hubicka <jh@suse.cz>
22512 PR tree-optimization/38844
22513 * ipa-inline.c (try_inline): Stop inlining recursion when edge
22514 is already inlined.
22516 2009-02-06 Richard Guenther <rguenther@suse.de>
22518 PR middle-end/38977
22519 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
22520 fork because we may expand it as __gcov_fork.
22522 2009-02-06 Nick Clifton <nickc@redhat.com>
22524 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
22526 2009-02-06 Paolo Bonzini <bonzini@gnu.org>
22528 PR tree-optimization/35659
22529 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
22530 vn_phi_eq): Shortcut if hashcode does not match.
22531 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
22533 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
22534 and avoid iterative_hash_expr.
22535 (FOR_EACH_VALUE_ID_IN_SET): New.
22536 (value_id_compare): Remove.
22537 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
22538 sort expressions by value id.
22540 2009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
22543 * config/sh/predicates.md (general_movsrc_operand): Don't check
22544 the subreg of system registers here.
22546 2009-02-05 Jakub Jelinek <jakub@redhat.com>
22549 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
22550 on the copied decl.
22552 2009-02-05 Paolo Bonzini <bonzini@gnu.org>
22554 PR rtl-optimization/39110
22555 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
22556 addresses, not aligned ones.
22558 2009-02-05 Daniel Berlin <dberlin@dberlin.org>
22559 Richard Guenther <rguenther@suse.de>
22561 PR tree-optimization/39100
22562 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
22563 comment says and add edges.
22565 2009-02-05 Joseph Myers <joseph@codesourcery.com>
22568 * c-common.c (handle_tls_model_attribute): Ignore attribute for
22569 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
22571 2009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
22573 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
22574 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
22575 register_bb_in_sese, new_sese, free_sese): Moved.
22576 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
22577 outermost_loop_in_scop, build_scop_iteration_domain,
22578 expand_scalar_variables_ssa_name, get_vdef_before_scop,
22579 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
22580 Use loop_in_sese_p instead of loop_in_scop_p.
22581 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
22582 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
22583 (scopdet_basic_block_info): Fix bug in scop detection.
22584 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
22585 eq_loop_to_cloog_loop): Remove.
22586 (nb_loops_around_loop_in_scop, nb_loop
22587 ref_nb_loops): Moved here...
22588 * graphite.h (ref_nb_loops): ... from here.
22589 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
22590 (loop_domain_dim, loop_iteration_vector_dim): Remove.
22591 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
22592 * testsuite/gcc.dg/graphite/scop-19.c: New
22594 2009-02-04 Paolo Bonzini <bonzini@gnu.org>
22595 Hans-Peter Nilsson <hp@axis.com>
22597 PR rtl-optimization/37889
22598 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
22599 Move offset handling from PLUS to before the switch. Use new
22600 arguments when considering SYMBOL_REFs too.
22601 (rtx_addr_can_trap_p): Pass dummy offset and size.
22602 (enum may_trap_p_flags): Remove.
22603 (may_trap_p_1): Pass size from MEM_SIZE.
22605 PR rtl-optimization/38921
22606 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
22607 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
22608 * rtlanal.c (may_trap_after_code_motion_p): Delete.
22609 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
22611 2009-02-04 H.J. Lu <hongjiu.lu@intel.com>
22613 AVX Programming Reference (January, 2009)
22614 * config/i386/sse.md (*vpclmulqdq): New.
22616 2009-02-04 Jakub Jelinek <jakub@redhat.com>
22618 PR tree-optimization/38977
22619 PR gcov-profile/38292
22620 * calls.c (special_function_p): Disregard __builtin_ prefix.
22622 2009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
22624 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
22625 non-indexable addresses even before reload.
22627 2009-02-03 Joseph Myers <joseph@codesourcery.com>
22630 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
22631 as having variable size. Do not give an error for unnamed
22632 parameters with [*] declarators. Give a warning for type names
22633 with [*] declarators and mark them as variable size.
22634 * c-parser.c (c_parser_sizeof_expression): Do not give an error
22635 for sizeof applied to [*] type names.
22637 2009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
22640 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
22642 2009-02-03 Jakub Jelinek <jakub@redhat.com>
22644 * gcc.c (process_command): Update copyright notice dates.
22645 * gcov.c (print_version): Likewise.
22646 * gcov-dump.c (print_version): Likewise.
22647 * mips-tfile.c (main): Likewise.
22648 * mips-tdump.c (main): Likewise.
22650 2009-02-03 Joseph Myers <joseph@codesourcery.com>
22653 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
22654 for composite type involving a zero-length array type.
22656 2009-02-03 Jakub Jelinek <jakub@redhat.com>
22659 * function.c (match_asm_constraints_1): Skip over
22660 initial optional % in the constraint.
22662 PR inline-asm/39059
22663 * c-parser.c (c_parser_postfix_expression): If fixed point is not
22664 supported, don't accept FIXED_CSTs.
22665 * c-decl.c (finish_declspecs): Error if fixed point is not supported
22666 and _Sat is used without _Fract/_Accum. Set specs->type to
22667 integer_type_node for cts_fract/cts_accum if fixed point is not
22670 2009-02-02 Catherine Moore <clm@codesourcery.com>
22672 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
22674 2009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
22676 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
22677 (ABI_HAS_64BIT_SYMBOLS): Use it.
22678 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
22680 2009-02-02 Paul Brook <paul@codesourcery.com>
22682 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
22684 2009-02-02 Jakub Jelinek <jakub@redhat.com>
22686 PR inline-asm/39058
22687 * recog.h (asm_operand_ok): Add constraints argument.
22688 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
22689 recurse on matching constraint.
22690 (check_asm_operands): Pass constraints as 3rd argument to
22691 asm_operand_ok. Don't look up matching constraint here.
22692 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
22695 2009-02-02 Ben Elliston <bje@au.ibm.com>
22697 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
22698 TARGET_NARROW_VOLATILE_BITFIELD macro names.
22700 2009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22702 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
22703 information. Remove some obsolete information. Reorganize.
22705 * config/pa/fptr.c: Revert license to GPL 2.
22706 * config/pa/milli64.S: Likewise.
22708 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
22711 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
22712 LIBRARY name in, instead of hard-coding it.
22713 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
22714 extra target make frag to tmake_files according to EH model.
22715 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
22716 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
22717 frags that define makefile variable EH_MODEL appropriately.
22718 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
22719 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
22720 to "-sjlj" according to type of EH configured.
22721 (LIBGCC_SONAME): Concatenate it to shared library base name.
22722 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
22723 to "_sjlj" according to type of EH configured.
22724 (LIBGCC_SONAME): Concatenate it to shared library base name.
22725 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
22726 (SHLIB_LINK): Add missing semicolon to if-else construct.
22727 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
22728 string value of "pe_dll" command-line option.
22729 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
22730 (SHLIB_SONAME): Use it when overriding t-cygming default.
22731 (SHLIB_IMPLIB): Override t-cygming default.
22732 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
22733 string value of "pe_dll" command-line option.
22735 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
22738 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
22739 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
22741 2009-01-31 Richard Guenther <rguenther@suse.de>
22743 PR tree-optimization/38937
22744 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
22745 computing the transitive closure.
22747 2009-01-30 Richard Guenther <rguenther@suse.de>
22749 PR tree-optimization/39041
22750 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
22751 Propagate variable indices only if the types match for this stmt.
22753 2009-01-30 Jakub Jelinek <jakub@redhat.com>
22756 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
22757 inline but never defined.
22759 2009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
22761 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
22762 (*insv_h_di_reg_extimm): New insn.
22763 (*insv_l<mode>_reg_extimm): New insn.
22765 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
22767 * config/picochip/picochip.c (flag_conserve_stack): set
22768 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
22769 fconserve-stack. Reduce call-overhead used by inliner.
22771 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
22774 * common.opt (flag_conserve_stack): Initialised to zero.
22776 2009-01-30 Kai Tietz <kai.tietz@onevision.com>
22779 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
22780 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
22783 2009-01-29 H.J. Lu <hongjiu.lu@intel.com>
22785 * ira-color.c (allocno_reload_assign): Update comments.
22786 * regmove.c (regmove_optimize): Likewise.
22790 2009-01-29 Robert Millan <rmh@aybabtu.com>
22792 * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
22793 * config/i386/kopensolaris-gnu.h: New file. Undefine
22794 `MD_UNWIND_SUPPORT'.
22795 * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
22797 2009-01-29 Kazu Hirata <kazu@codesourcery.com>
22799 PR tree-optimization/39007
22800 * tree-loop-distribution.c (generate_builtin): Use
22801 recompute_dominator to compute the immediate dominator of the
22802 basic block just after the loop.
22804 2009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
22806 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
22807 (ASM_OUTPUT_DWARF_PCREL): Define.
22809 2009-01-29 Vladimir Makarov <vmakarov@redhat.com>
22811 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
22812 * doc/passes.texi: Remove entries about regclass, local-alloc, and
22813 global. Modify entries about regmove and IRA.
22815 * ra-conflict.c: Remove the file.
22817 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
22819 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
22820 (pass_regclass_init): Rename to pass_reginfo_init.
22822 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
22824 * toplev.h (flag_ira): Remove.
22826 * caller-save.c (setup_save_areas): Remove flag_ira.
22828 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
22830 * global.c: Remove the file.
22832 * opts.c (decode_options): Remove flag_ira.
22834 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
22836 * regmove.c: Modify file description.
22837 (find_use_as_address, try_auto_increment): Define them only if
22838 AUTO_INC_DEC is defined.
22839 (replacement_quality, replace_in_call_usage, fixup_match_1,
22840 stable_and_no_regs_but_for_p): Remove.
22841 (reg_set_in_bb): Make it static.
22842 (regmove_optimize): Remove flag_ira and code which worked for
22845 * local-alloc.c: Remove the file.
22847 * common.opt (fira): Remove.
22849 * ira.c: Include except.h.
22850 (eliminable_regset): Move from global.c.
22851 (mark_elimination): Ditto. Remove flag_ira.
22852 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
22853 equiv_mem_modified, validate_equiv_mem_from_store,
22854 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
22855 contains_replace_regs, memref_referenced_p, memref_used_between_p,
22856 no_equiv, recorded_label_ref): Move from local-alloc.c.
22857 (update_equiv_regs): Ditto. Make it static.
22858 (print_insn_chain, print_insn_chains): Move it from global.c.
22859 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
22860 (build_insn_chain): Ditto. Make it static.
22861 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
22862 Rename to init_live_subregs.
22863 (gate_ira): Remove flag_ira.
22865 * regclass.c: Rename reginfo.c. Change file description.
22866 (FORBIDDEN_INC_DEC_CLASSES): Remove.
22867 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
22868 (init_reg_sets_1): Remove code for evaluation of
22869 reg_class_superclasses and losing_caller_save_reg_set.
22870 (init_regs): Remove init_reg_autoinc.
22871 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
22872 ok_for_base_p_nonstrict): Remove.
22873 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
22874 (pass_regclass_init): Rename to pass_reginfo_init. Modify
22875 corresponding entries.
22876 (dump_regclass, record_operand_costs, scan_one_insn,
22877 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
22878 record_address_regs, auto_inc_dec_reg_p): Remove.
22879 (gt-regclass.h): Rename to gt-reginfo.h.
22881 * rtl.h (dump_global_regs, retry_global_alloc,
22882 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
22884 * Makefile.in (RA_H): Remove.
22885 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
22886 Rename regclass.o to reginfo.o.
22887 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
22889 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
22890 (GTFILES): Rename regclass.c to reginfo.c.
22892 * passes.c (init_optimization_passes): Remove pass_local_alloc and
22893 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
22895 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
22896 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
22898 (finish_spills): Ditto. Remove code for !flag_ira.
22900 2009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
22902 PR middle-end/35854
22903 * doc/invoke.texi (rtl debug options): Complete rewrite.
22904 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
22906 * mode-switching.c (pass_mode_switching): Rename pass from
22907 "mode-sw" to "mode_sw".
22908 * except.c (pass_convert_to_eh_ranges): Rename pass from
22909 "eh-ranges" to "eh_ranges".
22910 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
22914 2009-01-29 Andrey Belevantsev <abel@ispras.ru>
22915 Alexander Monakov <amonakov@ispras.ru>
22917 PR middle-end/38857
22918 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
22920 (move_exprs_to_boundary): Change return type and pass through
22921 should_move from move_op. Relax assert. Update usage ...
22922 (schedule_expr_on_boundary): ... here. Use should_move instead of
22924 (move_op_orig_expr_found): Indicate that insn was disconnected from
22926 (code_motion_process_successors): Do not call after_merge_succs
22927 callback if original expression was not found when traversing any of
22929 (code_motion_path_driver): Change return type. Update prototype.
22930 (move_op): Update comment. Add a new parameter (should_move). Update
22931 prototype. Set *should_move based on indication provided by
22932 move_op_orig_expr_found.
22934 2009-01-28 Pat Haugen <pthaugen@us.ibm.com>
22936 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
22937 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
22938 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
22939 * config/rs6000/rs6000.c (rs6000_override_options): Default
22940 avoid-indexed-addresses on for Power6, off for everything else.
22941 (avoiding_indexed_address_p): New function.
22942 (rs6000_legitimize_address): Use it.
22943 (rs6000_legitimate_address): Likewise.
22944 * config/rs6000/rs6000.md (movXX_updateX): Likewise
22946 2009-01-28 Kazu Hirata <kazu@codesourcery.com>
22948 PR tree-optimization/38997
22949 * tree-loop-distribution.c (generate_memset_zero): Use
22950 POINTER_PLUS_EXPR for a pointer addition.
22952 2009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
22954 * config/s390/s390.md (bswap<mode>2): New pattern added.
22956 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
22958 * config/s390/s390.md (*tls_load_31): Added type attribute.
22960 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
22962 * config/s390/s390.md: Fix a few comments.
22964 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
22966 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
22967 (*tm<mode>_full): Fixed z10prop attribute.
22968 (*tst<mode>_extimm): Fixed z10prop attribute.
22969 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
22970 (*tstqiCCT_cconly): Fixed z10prop attribute.
22971 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
22972 (*movsi_larl): Fixed z10prop attribute.
22973 (*movsi_zarch): Fixed z10prop attribute.
22974 (*movsi_eas): Fixed z10prop attribute.
22975 (*movhi): Fixed z10prop attribute.
22976 (*movqi): Fixed z10prop attribute.
22977 (*movstrictqi): Fixed z10prop attribute.
22978 (*mov<mode>): Fixed z10prop attribute.
22979 (*movcc): Fixed z10prop attribute.
22980 (*sethighpartdi_64): Fixed z10prop attribute.
22981 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
22982 (*negdi2_sign_cc): Fixed z10prop attribute.
22983 (*negdi2_sign): Fixed z10prop attribute.
22984 (*absdi2_sign_cc): Fixed z10prop attribute.
22985 (*absdi2_sign): Fixed z10prop attribute.
22986 (*negabsdi2_sign_cc): Fixed z10prop attribute.
22987 (*negabsdi2_sign): Fixed z10prop attribute.
22988 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
22989 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
22990 (doloop_si64): Fixed z10prop attribute.
22991 (doloop_si31): Fixed z10prop attribute.
22992 (doloop_long): Fixed z10prop attribute.
22993 (indirect_jump): Fixed z10prop attribute.
22994 (nop): Fixed z10prop attribute.
22995 (main_base_64): Fixed z10prop attribute.
22996 (reload_base_64): Fixed z10prop attribute.
22998 2009-01-28 Jakub Jelinek <jakub@redhat.com>
23000 PR rtl-optimization/38740
23001 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
23003 * config/mips/mips.c (mips_reorg): Likewise.
23005 2009-01-28 Richard Guenther <rguenther@suse.de>
23007 PR tree-optimization/38926
23008 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
23009 with the correct value id to a value.
23010 (do_regular_insertion): Use the value number of edoubleprime
23011 for the value number of the expr.
23014 2008-08-21 Richard Guenther <rguenther@suse.de>
23016 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
23017 a PHI ask VN if it is already available.
23018 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
23019 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
23021 2009-01-28 Jakub Jelinek <jakub@redhat.com>
23023 PR middle-end/38934
23024 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
23025 set to varying whenever max has TREE_OVERFLOW set, similarly
23026 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
23028 2009-01-28 Richard Guenther <rguenther@suse.de>
23030 PR middle-end/38908
23031 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
23032 uninitialized aggregate uses in call arguments.
23034 2009-01-28 Paolo Bonzini <bonzini@gnu.org>
23036 PR tree-optimization/38984
23037 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
23038 the nothing_id variable if -fno-delete-null-pointer-checks.
23040 2009-01-28 Uros Bizjak <ubizjak@gmail.com>
23043 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
23044 (set_got_offset_rex64): Ditto.
23046 2009-01-27 H.J. Lu <hongjiu.lu@intel.com>
23049 * doc/extend.texi: Improve local variable with asm reg.
23051 2009-01-27 Adam Nemet <anemet@caviumnetworks.com>
23053 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
23054 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
23055 was not supplied then set warn_packed_bitfield_compat to the
23056 default value of 1.
23057 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
23060 2009-01-27 Richard Guenther <rguenther@suse.de>
23062 PR tree-optimization/38503
23063 * cfgexpand.c (expand_gimple_basic_block): Ignore
23064 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
23065 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
23066 variables that cannot have TBAA applied.
23067 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
23070 2009-01-27 Uros Bizjak <ubizjak@gmail.com>
23072 PR middle-end/38969
23073 * calls.c (initialize_argument_information): Do not wrap complex
23074 arguments in SAVE_EXPR.
23076 2009-01-26 Andreas Tobler <a.tobler@schweiz.org>
23078 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
23079 (INSTALL_LIBGCC): Revert typo commit.
23081 2009-01-26 Richard Guenther <rguenther@suse.de>
23083 PR tree-optimization/38745
23084 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
23085 from special handling.
23087 2009-01-26 Richard Guenther <rguenther@suse.de>
23089 PR tree-optimization/38745
23090 * tree-ssa.c (execute_update_addresses_taken): Do not include
23091 variables that cannot possibly be a register in not_reg_needs.
23092 Do not clear TREE_ADDRESSABLE on vars that may not become
23094 * tree-ssa.c (update_alias_info_1): Include those in the set
23095 of addressable vars.
23097 2009-01-26 Richard Guenther <rguenther@suse.de>
23099 PR middle-end/38851
23100 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
23101 * tree-ssa-dse.c: Include langhooks.h
23102 (execute_simple_dse): Remove stores with zero size.
23104 2009-01-24 Jakub Jelinek <jakub@redhat.com>
23107 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
23110 2009-01-24 Julian Brown <julian@codesourcery.com>
23112 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
23113 config/arm/linux-atomic.c.
23114 * config/arm/linux-atomic.c: New.
23116 2009-01-24 Eric Botcazou <ebotcazou@adacore.com>
23118 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
23119 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
23120 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
23122 2009-01-24 H.J. Lu <hongjiu.lu@intel.com>
23125 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
23128 2009-01-24 Sebastian Pop <sebastian.pop@amd.com>
23130 PR tree-optimization/38953
23131 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
23132 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
23133 (gloog): Split the exit of the scop when the scop exit is a loop exit.
23134 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
23137 2009-01-24 Paul Brook <paul@codesourcery.com>
23139 * config/arm/neon.md (neon_type): Move to arm.md.
23140 (neon_mov<VSTRUCT>): Add neon_type attribute.
23141 * config/arm/arm.md (neon_type): Move to here.
23142 (conds): Add "unconditioal" and use as default for NEON insns.
23144 2009-01-24 Ben Elliston <bje@au.ibm.com>
23146 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
23147 void *' warning from -Wc++-compat.
23148 * Makefile.in (dominance.o-warn): Remove.
23150 2009-01-23 Paolo Bonzini <bonzini@gnu.org>
23152 PR tree-optimization/38932
23153 * fold-const.c (fold_unary_ignore_overflow): New.
23154 * tree.h (fold_unary_ignore_overflow): Declare.
23155 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
23156 * tree-ssa-sccvn.c (visit_reference_op_load,
23157 simplify_unary_expression): Likewise.
23159 2009-01-22 Adam Nemet <anemet@caviumnetworks.com>
23161 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
23162 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
23163 regardless of their type.
23164 * c-common.c (handle_packed_attribute): Don't ignore packed on
23166 * c.opt (Wpacked-bitfield-compat): New warning option.
23167 * stor-layout.c (place_field): Warn if offset of a field changed.
23168 * doc/extend.texi (packed): Mention the ABI change.
23169 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
23170 (Warning Options): Add it to the list.
23172 2009-01-22 H.J. Lu <hongjiu.lu@intel.com>
23174 * c-opts.c (c_common_post_options): Fix a typo in comments.
23176 2009-01-22 Steve Ellcey <sje@cup.hp.com>
23178 PR middle-end/38615
23179 * gimplify.c (gimplify_init_constructor): Fix promotion of const
23180 variables to static.
23181 * doc/invoke.texi (-fmerge-all-constants): Update description.
23183 2009-01-22 Uros Bizjak <ubizjak@gmail.com>
23186 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
23187 (*movdi_1_rex64): Use type "mmx" for alternative 5.
23189 2009-01-22 Richard Earnshaw <rearnsha@arm.com>
23191 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
23193 (LOCAL_ALIGNMENT): Similarly.
23195 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
23196 Joseph Myers <joseph@codesourcery.com>
23198 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
23199 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
23200 * config/arm/arm-tune.md: Regenerate.
23201 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
23204 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
23206 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
23207 version number to five.
23209 2009-01-22 Dodji Seketeli <dodji@redhat.com>
23212 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
23213 * c-common.c (set_underlying_type): Likewise.
23214 (is_typedef_decl ): Likewise
23216 (set_underlying_type): Likewise.
23217 (is_typedef_type): Likewise.
23219 2009-01-21 Vladimir Makarov <vmakarov@redhat.com>
23221 PR middle-end/38587
23222 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
23225 2009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
23228 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
23229 (LIBGCC_SPEC): Don't define.
23230 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
23232 2009-01-21 Uros Bizjak <ubizjak@gmail.com>
23234 PR rtl-optimization/38879
23235 * alias.c (base_alias_check): Unaligned access via AND address can
23236 alias all surrounding object types except those with sizes equal
23237 or wider than the size of unaligned access.
23239 2009-01-21 Dodji Seketeli <dodji@redhat.com>
23242 * c-decl.c (clone_underlying_type): Move this ...
23243 * c-common.c (set_underlying_type): ... here.
23244 Also, make sure the function properly sets TYPE_STUB_DECL() on
23245 the newly created typedef variant type.
23246 (is_typedef_decl ): New entry point.
23247 * tree.h: Added a new member member_types_needing_access_check to
23248 struct tree_decl_non_common.
23249 (set_underlying_type): New entry point.
23250 (is_typedef_type): Likewise.
23252 2009-01-21 Bingfeng Mei <bmei@broadcom.com>
23254 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
23255 Check whether two instructions have memory references that
23256 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
23257 are helper functions for traversing.
23258 * alias.h (insn_alias_sets_confilict_p): New prototypes.
23259 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
23260 not to draw dependency edge for instructions with non-conflicting
23263 2009-01-20 Joseph Myers <joseph@codesourcery.com>
23266 * longlong.h: Update copyright years. Use soft-fp license notice.
23267 Sync __clz_tab declaration with glibc.
23269 2009-01-20 Steve Ellcey <sje@cup.hp.com>
23272 * doc/extend.texi (syscall_linkage): New.
23273 (version_id): Modify.
23275 2009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
23276 Richard Guenther <rguenther@suse.de>
23278 PR tree-optimization/38747
23279 PR tree-optimization/38748
23280 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
23281 conversion if the base address is an indirect reference and the
23282 aliasing sets could cause issues.
23284 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
23286 * common.opt (fgraphite, fgraphite-identity): Add comment for
23287 explaining why these options are not documented.
23289 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
23291 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
23292 gimple_call_lhs is NULL.
23294 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
23297 * emit-rtl.c (adjust_address_1): Make sure memref is never
23300 2009-01-20 Ben Elliston <bje@au.ibm.com>
23302 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
23303 const qualifier from arg parameter. Remove unnecessary cast to char *.
23304 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
23305 const qualifier from arg 2.
23307 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
23309 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
23311 2009-01-19 Vladimir Makarov <vmakarov@redhat.com>
23314 * rtl.h (reinit_regs): New prototype.
23315 * regclass.c: Include ira.h.
23316 (reinit_regs): New.
23317 * Makefile.in (regclass.o): Add ira.h.
23318 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
23320 2009-01-18 H.J. Lu <hongjiu.lu@intel.com>
23323 * c-common.c (handle_aligned_attribute): Use
23324 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
23325 default alignment value.
23327 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
23329 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
23330 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
23332 * doc/extend.texi: Update __attribute__ ((aligned)). Document
23333 __BIGGEST_ALIGNMENT__.
23335 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
23337 2009-01-18 Richard Guenther <rguenther@suse.de>
23339 PR tree-optimization/38819
23340 * tree-flow.h (operation_could_trap_helper_p): Declare.
23341 * tree-eh.c (operation_could_trap_helper_p): Export.
23342 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
23343 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
23344 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
23345 are about to insert a possibly trapping instruction and fail
23348 2009-01-18 Andreas Schwab <schwab@suse.de>
23350 * doc/install.texi (Configuration): Remove obsolete paragraph
23351 about use of --with-gnu-ld with --with-gnu-as.
23353 2009-01-18 Kazu Hirata <kazu@codesourcery.com>
23355 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
23356 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
23357 Follow spelling conventions.
23359 2009-01-18 Ben Elliston <bje@au.ibm.com>
23361 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
23362 C++ warning about implicit conversion from void * to struct
23364 (bitmap_obstack_free): Likewise for bitmap_element *.
23365 * Makefile.in (bitmap.o-warn): Remove.
23367 2009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
23369 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
23371 2009-01-17 Sebastian Pop <sebastian.pop@amd.com>
23372 Tobias Grosser <tobi.grosser@amd.com>
23374 * graphite.c (graphite_trans_scop_block): Do not block single
23377 2009-01-16 Alexandre Oliva <aoliva@redhat.com>
23379 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
23380 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
23381 test with assertion.
23383 2009-01-16 Richard Guenther <rguenther@suse.de>
23385 PR tree-optimization/38835
23386 PR middle-end/36227
23387 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
23388 and INT + PTR -> (INT)(PTR p+ INT) folding.
23389 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
23391 2009-01-16 Adam Nemet <anemet@caviumnetworks.com>
23394 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
23395 the subreg from a lowpart subreg if it is also casting the value.
23397 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
23398 Tobias Grosser <tobi.grosser@amd.com>
23400 * graphite.c (compare_prefix_loops): New.
23401 (build_scop_canonical_schedules): Rewritten.
23402 (graphite_transform_loops): Move build_scop_canonical_schedules
23403 after build_scop_iteration_domain.
23405 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
23406 Tobias Grosser <tobi.grosser@amd.com>
23408 * graphite.c (add_conditions_to_domain): Add the loops to
23409 the dimension of the iteration domain. Do copy the domain
23410 only when it exists.
23411 (build_scop_conditions_1): Do not call add_conditions_to_domain.
23412 (add_conditions_to_constraints): New.
23413 (can_generate_code_stmt, can_generate_code): Removed.
23414 (gloog): Do not call can_generate_code.
23415 (graphite_transform_loops): Call add_conditions_to_constraints
23416 after building the iteration domain.
23418 2009-01-16 Jakub Jelinek <jakub@redhat.com>
23420 PR tree-optimization/38789
23421 * tree-ssa-threadedge.c
23422 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
23423 __builtin_constant_p.
23425 2009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
23427 * dce.c (delete_unmarked_insns): Reversed the order that insns are
23428 examined before deleting them.
23430 2009-01-16 Richard Earnshaw <rearnsha@arm.com>
23432 * function.c (aggregate_value_p): Correctly extract the function
23433 type from CALL_EXPR_FN lookup.
23435 2009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
23437 * config/picochip/picochip.c (picochip_override_options): Revert
23438 CFI asm flag disable commited previously.
23440 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
23441 Tobias Grosser <tobi.grosser@amd.com>
23442 Jan Sjodin <jan.sjodin@amd.com>
23444 * graphite.c (scan_tree_for_params): On substractions negate
23445 all the coefficients of the term.
23446 (clast_to_gcc_expression_red): New. Handle reduction expressions
23447 of more than two operands.
23448 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
23449 (get_vdef_before_scop): Handle also the case of default definitions.
23451 2009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
23453 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
23454 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
23455 Also use them when walking CALL_INSN_FUNCTION_USAGE.
23457 2009-01-15 H.J. Lu <hongjiu.lu@intel.com>
23458 Joey Ye <joey.ye@intel.com>
23460 PR middle-end/37843
23461 * cfgexpand.c (expand_stack_alignment): Don't update stack
23462 boundary nor check incoming stack boundary here.
23463 (gimple_expand_cfg): Update stack boundary and check incoming
23464 stack boundary here.
23466 2009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
23468 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
23470 2009-01-14 Jakub Jelinek <jakub@redhat.com>
23472 PR rtl-optimization/38245
23473 * calls.c (expand_call): Add stack arguments to
23474 CALL_INSN_FUNCTION_USAGE even for pure calls (when
23475 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
23476 in regs and partially in memory or BLKmode arguments.
23477 (emit_library_call_value_1): Add stack arguments to
23478 CALL_INSN_FUNCTION_USAGE even for pure calls (when
23479 ACCUMULATE_OUTGOING_ARGS).
23480 * dce.c: Include tm_p.h.
23481 (find_call_stack_args): New function.
23482 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
23484 (mark_insn): Call find_call_stack_args for CALL_Ps.
23485 (prescan_insns_for_dce): Walk insns backwards in bb rather than
23486 forwards. Allocate and free arg_stores bitmap if needed, pass it
23487 down to deletable_insn_p, don't mark stores set in arg_stores
23488 bitmap, clear the bitmap at the beginning of each bb.
23489 * Makefile.in (dce.o): Depend on $(TM_P_H).
23491 2009-01-14 Michael Meissner <gnu@the-meissners.org>
23494 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
23495 to make sure the insn is a conditional test (bug 22599). Reformat a
23498 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
23500 PR middle-end/38431
23501 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
23502 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
23503 (gloog): Do not call cleanup_tree_cfg.
23504 (graphite_transform_loops): Call cleanup_tree_cfg after all
23505 scops have been code generated.
23507 2009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
23508 * doc/gty.texi (Invoking the garbage collector): Added new node
23509 and section documenting ggc_collect.
23511 2009-01-14 Richard Guenther <rguenther@suse.de>
23513 PR tree-optimization/38826
23514 PR middle-end/38477
23515 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
23516 initialization notes only if we actually emitted a warning.
23517 (intra_create_variable_infos): Add constraints for a result decl
23518 that is passed by hidden reference.
23519 (build_pred_graph): Mark all related variables non-direct on
23522 2009-01-14 Nick Clifton <nickc@redhat.com>
23524 * ira-conflicts.c: Include addresses.h for the definition of
23526 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
23527 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
23529 2009-01-13 Vladimir Makarov <vmakarov@redhat.com>
23532 * Makefile.in (ira-lives.o): Add except.h.
23534 * ira-lives.c: Include except.h.
23535 (process_bb_node_lives): Process can_throw_internal.
23537 2009-01-13 Jakub Jelinek <jakub@redhat.com>
23539 PR rtl-optimization/38774
23540 * combine.c (simplify_set): When undoing cc_use change, don't do
23541 PUT_CODE on the newly created comparison, but instead put back the
23544 2009-01-13 Joseph Myers <joseph@codesourcery.com>
23546 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
23547 values. Remove duplicate arm8 entry.
23549 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
23551 PR tree-optimization/38786
23552 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
23553 the SSA_NAME case of expand_scalar_variables_expr.
23554 Set the type of an expression to the type of its assign statement.
23555 (expand_scalar_variables_expr): Also gather the scalar computation
23556 used to index the memory access. Do not pass loop_p.
23557 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
23558 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
23559 the gimple_stmt_iterator where it inserts new code.
23560 Do not pass loop_p.
23561 (copy_bb_and_scalar_dependences): Do not pass loop_p.
23562 (translate_clast): Update call to copy_bb_and_scalar_dependences.
23564 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
23566 * graphite.h (debug_value): Removed.
23567 * graphite.c (debug_value): Removed.
23569 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
23571 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
23572 ldrd/strd with two 32-bit instructions.
23574 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
23576 * config/arm/arm.c (struct processors): Pass for speed down into
23577 cost helper functions.
23578 (const_ok_for_op): Handle COMPARE and inequality nodes.
23579 (arm_rtx_costs_1): Rewrite.
23580 (arm_size_rtx_costs): Update prototype.
23581 (arm_rtx_costs): Pass speed down to helper functions.
23582 (arm_slowmul_rtx_costs): Rework cost calculations.
23583 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
23584 (arm_9e_rtx_costs): Likewise.
23586 2009-01-13 Uros Bizjak <ubizjak@gmail.com>
23588 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
23589 relocations of local symbols wider than UNITS_PER_WORD are not valid.
23590 (alpha_legitimize_address): Do not split local symbols wider than
23591 UNITS_PER_WORD into HIGH/LO_SUM parts.
23593 2009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
23596 * gcc.c (process_command): Replace call to execvp with calls
23597 to pex_one and exit.
23599 2009-01-03 Anatoly Sokolov <aesok@post.ru>
23602 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
23603 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
23604 variant for devices with 3-byte PC.
23605 (__tablejump_elpm__): New.
23607 2009-01-12 Jakub Jelinek <jakub@redhat.com>
23610 * c-parser.c (c_parser_postfix_expression): Allow `->' in
23611 offsetof member-designator, handle it as `[0].'.
23613 2009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23615 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
23616 function when not using named sections on targets with named sections
23617 if branch distance is less than 262132.
23619 2009-01-12 Richard Earnshaw <rearnsha@arm.com>
23621 * combine.c (combine_instructions): Recompute
23622 optimize_this_for_speed_p for each BB in the main combine loop.
23624 2009-01-12 Tomas Bily <tbily@suse.cz>
23627 * tree-loop-distribution.c (prop_phis): New function.
23628 (generate_builtin): Call prop_phis.
23629 * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
23631 2009-01-12 Jakub Jelinek <jakub@redhat.com>
23633 PR tree-optimization/38807
23634 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
23635 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
23637 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
23639 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
23640 subreg of op0 to the original op0.
23642 2009-01-11 Laurent GUERBY <laurent@guerby.net>
23644 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
23646 2009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
23649 * mips-tfile.c (parse_def): Fix parsing of def strings
23650 starting with digits.
23652 2009-01-10 Jakub Jelinek <jakub@redhat.com>
23655 * config/arm/arm.c (arm_is_long_call_p): Don't call
23656 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
23658 2009-01-09 Steven Bosscher <steven@gcc.gnu.org>
23660 * regrename.c (regrename_optimize): Fix dumping.
23661 (find_oldest_value_reg): Preserve REG_POINTER.
23662 (copy_hardreg_forward_1): Likewise.
23664 2009-01-09 Diego Novillo <dnovillo@google.com>
23666 * gimple.h (struct gimple_statement_base) <uid>: Document
23667 the restrictions on its use.
23668 (gimple_uid): Tidy.
23669 (gimple_set_uid): Tidy.
23671 2009-01-09 Jakub Jelinek <jakub@redhat.com>
23673 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
23674 zero guard even if align_bytes != 0 and count is smaller than
23677 2009-01-09 Vladimir Makarov <vmakarov@redhat.com>
23679 PR rtl-optimization/38495
23680 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
23681 (add_range_and_copies_from_move_list): Print all added ranges.
23682 Add ranges to memory optimized destination.
23684 2009-01-09 Jakub Jelinek <jakub@redhat.com>
23688 * config/i386/i386.c (override_options): Reject
23689 -mstringop-strategy=rep_8byte with -m32.
23690 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
23691 to 1. Do count comparison against epilogue_size_needed at compile
23692 time even when count_exp was constant forced into register. For
23693 size_needed don't jump to epilogue, instead just avoid aligning
23694 and invoke the body algorithm. If need_zero_guard, add zero guard
23695 even if count is non-zero, but smaller than size_needed + number of
23696 bytes that could be stored for alignment.
23697 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
23698 to 1. If need_zero_guard, add zero guard even if count is non-zero,
23699 but smaller than size_needed + number of bytes that could be stored
23700 for alignment. Compare size_needed with epilogue_size_needed instead
23701 of desired_align - align, don't adjust size_needed, pass
23702 epilogue_size_needed to the epilogue expanders.
23705 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
23707 2009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23709 * pa.c (last_address): Change to unsigned.
23710 (update_total_code_bytes): Change argument to unsigned. Don't
23711 check if insn addresses are set.
23712 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
23713 addresses are not set.
23714 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
23716 2009-01-09 Nick Clifton <nickc@redhat.com>
23718 * config/sh/symbian.c: Replace uses of DECL_INLINE with
23719 DECL_DECLARED_INLINE_P.
23721 2009-01-09 Jakub Jelinek <jakub@redhat.com>
23723 PR middle-end/38347
23724 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
23725 GET_MODE (op0) in operand_subword_force calls.
23727 PR middle-end/38771
23728 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
23729 fold_convert arg0 operands to TREE_TYPE (op0) first.
23731 2009-01-08 Vladimir Makarov <vmakarov@redhat.com>
23733 * params.def (ira-max-conflict-table-size): Decrease default value
23736 2009-01-08 Jakub Jelinek <jakub@redhat.com>
23738 PR tree-optimization/37031
23739 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
23741 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
23742 allocate it using gc instead of heap, use VEC_quick_push instead of
23744 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
23745 instead of heap, use VEC_quick_push instead of VEC_safe_push.
23746 * tree-data-ref.h (struct access_matrix): Change matrix to gc
23747 allocated vector from heap allocated.
23748 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
23749 * tree-loop-linear.c (linear_transform_loops): Allocate nest
23750 vector only after perfect_loop_nest_depth call.
23752 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
23753 Jan Sjodin <jan.sjodin@amd.com>
23755 PR tree-optimization/38559
23756 * graphite.c (debug_value, copy_constraint,
23757 swap_constraint_variables, scale_constraint_variable, ): New.
23758 (get_lower_bound, get_upper_bound): Removed.
23759 (graphite_trans_bb_strip_mine): Clean up this code that works
23760 only for constant number of iterations. Fully copy upper and
23761 lower bound constraints, not only the constant part of them.
23762 * graphite.h (debug_value): Declared.
23764 2009-01-08 Ira Rosen <irar@il.ibm.com>
23766 PR tree-optimization/37194
23767 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
23768 Don't add the cost of cost model guard in prologue to scalar
23769 outside cost in case of known number of iterations.
23771 2009-01-07 Nathan Froyd <froydnj@codesourcery.com>
23772 Alan Modra <amodra@bigpond.net.au>
23774 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
23775 non-word-aligned REG+CONST addressing.
23777 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
23780 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
23781 free_after_compilation when outputting a thunk.
23782 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
23783 Do not call free_after_compilation here.
23785 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
23787 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
23788 (ix86_valid_target_attribute_inner_p): Ditto.
23790 2009-01-07 Jan Sjodin <jan.sjodin@amd.com>
23792 PR tree-optimization/38492
23793 PR tree-optimization/38498
23794 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
23795 * tree-chrec.h (scev_is_linear_expression): Declared.
23796 * graphite.c (graphite_cannot_represent_loop_niter): New.
23797 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
23798 (graphite_loop_normal_form): Use gcc_assert.
23799 (scan_tree_for_params): Use CASE_CONVERT.
23800 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
23801 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
23802 Use gcc_assert. Discard scops that contain unhandled cases.
23803 (build_scop_conditions): Return a boolean status for unhandled cases.
23804 (strip_mine_profitable_p): Print the loop number, not its depth.
23805 (is_interchange_valid): Pass the depth of the loop nest, don't
23806 recompute it wrongly.
23807 (graphite_trans_bb_block): Same.
23808 (graphite_trans_bb_block): Print tentative of loop blocking.
23809 (graphite_trans_scop_block): Do not print that the loop has been
23811 (graphite_transform_loops): Do not handle scops that contain condition
23814 2009-01-07 H.J. Lu <hongjiu.lu@intel.com>
23816 AVX Programming Reference (December, 2008)
23817 * config/i386/avxintrin.h (_mm256_stream_si256): New.
23818 (_mm256_stream_pd): Likewise.
23819 (_mm256_stream_ps): Likewise.
23821 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
23822 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
23823 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
23824 (bdesc_special_args): Add __builtin_ia32_movntdq256,
23825 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
23826 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
23827 (ix86_expand_special_args_builtin): Likewise.
23829 * config/i386/sse.md (AVXMODEDI): New.
23830 (avx_movnt<mode>): Likewise.
23831 (avx_movnt<mode>): Likewise.
23832 (<sse>_movnt<mode>): Remove AVX support.
23833 (sse2_movntv2di): Likewise.
23835 2009-01-07 Richard Guenther <rguenther@suse.de>
23837 PR middle-end/38751
23838 * fold-const.c (extract_muldiv): Remove obsolete comment.
23839 (fold_plusminus_mult_expr): Undo MINUS_EXPR
23840 to PLUS_EXPR canonicalization for the canonicalization.
23842 2009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
23844 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
23845 hosted cross-compilers generating less efficient code.
23847 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
23849 * function.h (rtl_data): Add a dbr_scheduled_p field.
23850 * reorg.c (dbr_schedule): Set it.
23851 (gate_handle_delay_slots): Check it.
23852 * config/mips/mips.c (mips_base_delayed_branch): Delete.
23853 (mips_reorg): Check flag_delayed_branch instead of
23854 mips_base_delayed_branch.
23855 (mips_override_options): Don't set mips_base_delayed_branch
23856 or flag_delayed_branch.
23858 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
23860 PR rtl-optimization/38426.
23861 * ira.c (ira): Set current_function_is_leaf earlier.
23863 2009-01-06 Jakub Jelinek <jakub@redhat.com>
23865 PR rtl-optimization/38722
23866 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
23867 too early, only set a flag and modify after last possible
23870 2009-01-06 Janis Johnson <janis187@us.ibm.com>
23873 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
23874 * real.c (decimal_single_format): Correct values of emin and emax.
23875 (decimal_double_format): Ditto.
23876 (decimal_quad_format): Ditto.
23877 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
23878 computation of DECnn_MIN and DECnn_MAX for corrected values of
23879 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
23880 __DECnn_MIN__, and adjust its computation for the corrected value
23883 2009-01-06 Jan Hubicka <jh@suse.cz>
23886 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
23888 2009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
23890 * doc/contrib.texi (Contributors): Slightly adjust the end note.
23891 Add Robert Clark to the list of testers.
23893 2009-01-06 Jan Hubicka <jh@suse.cz>
23894 Kai Tietz <kai.tietz@onevision.com>
23896 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
23897 * config/i386/i386.c (ix86_expand_call): Add clobbers.
23899 2009-01-06 Jan Hubicka <jh@suse.cz>
23900 Kai Tietz <kai.tietz@onevision.com>
23902 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
23904 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
23905 (ix86_nsaved_regs): Count only general purpose regs.
23906 (ix86_nsaved_sseregs): New.
23907 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
23908 to 16 for w64; compute padding and size of sse reg save area.
23909 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
23910 general purpose regs.
23911 (ix86_emit_save_sse_regs_using_mov): New.
23912 (ix86_expand_prologue): Save SSE regs if needed.
23913 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
23914 (ix86_emit_restore_sse_regs_using_mov): New.
23915 (ix86_expand_epilogue): Save SSE regs if needed.
23917 2009-01-06 Jan Hubicka <jh@suse.cz>
23918 Kai Tietz <kai.tietz@onevision.com>
23920 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
23921 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
23922 functions when accumulate outgoing args is off.
23924 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
23927 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
23928 before using pseudos_have_intersected_live_ranges_p.
23930 * ira-int.h (ira_assert): Always define.
23932 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
23934 AVX Programming Reference (December, 2008)
23935 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
23936 (_mm256_permute2_pd): Likewise.
23937 (_mm_permute2_ps): Likewise.
23938 (_mm256_permute2_ps): Likewise.
23939 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
23940 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
23942 * config/i386/i386.c (ix86_builtins): Remove
23943 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
23944 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
23945 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
23946 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
23947 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
23948 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
23949 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
23950 __builtin_ia32_vpermil2ps256.
23951 (ix86_init_mmx_sse_builtins): Updated.
23952 (ix86_expand_args_builtin): Likewise.
23954 2009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23956 * pa.c (output_call): Relocate non-jump insns in the delay slot of
23957 long absolute calls when generating PA 2.0 code.
23959 2009-01-05 Vladimir Makarov <vmakarov@redhat.com>
23961 PR rtl-optimization/38583
23962 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
23964 * params.def (ira-max-conflict-table-size): New.
23966 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
23968 * ira.h (ira_conflicts_p): New external definition.
23970 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
23971 table. Report this. Return result of building.
23972 (ira_build_conflicts): Use ira_conflicts_p. Check result of
23973 building conflict table.
23975 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
23976 (ira_color): Use ira_conflicts_p.
23978 * global.c: Include ira.h.
23979 (pseudo_for_reload_consideration_p, build_insn_chain): Use
23982 * Makefile.in (global.o): Add ira.h.
23984 * ira-build.c (mark_all_loops_for_removal,
23985 propagate_some_info_from_allocno): New.
23986 (remove_unnecessary_allocnos): Call
23987 propagate_some_info_from_allocno.
23988 (remove_low_level_allocnos): New.
23989 (remove_unnecessary_regions): Add parameter. Call
23990 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
23991 parameter to remove_unnecessary_regions.
23992 (ira_build): Remove all regions but root if the conflict table was
23993 not built. Update conflict hard regs for allocnos crossing calls.
23995 * ira.c (ira_conflicts_p): New global.
23996 (ira): Define and use ira_conflicts_p.
23998 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
23999 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
24000 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
24002 2009-01-06 Ben Elliston <bje@au.ibm.com>
24004 * gengtype-lex.l (YY_NO_INPUT): Define.
24006 2009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
24009 * c-common.c (handle_vector_size_attribute): Also reject
24010 BOOLEAN_TYPE types.
24012 2009-01-05 Sebastian Pop <sebastian.pop@amd.com>
24014 PR tree-optimization/38492
24015 * graphite.c (rename_map_elt, debug_rename_elt,
24016 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
24017 rename_map_elt_info, eq_rename_map_elts,
24018 get_new_name_from_old_name, bb_in_sese_p): Moved around.
24019 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
24020 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
24021 (sese_build_livein_liveouts): New.
24022 (new_sese, free_sese): New.
24023 (new_scop): Call new_sese.
24024 (free_scop): Call free_sese.
24025 (rename_variables_from_edge, rename_phis_end_scop): Removed.
24026 (register_old_new_names): Renamed register_old_and_new_names.
24027 (register_scop_liveout_renames, add_loop_exit_phis,
24028 insert_loop_close_phis, struct igp,
24029 default_liveout_before_guard, add_guard_exit_phis,
24030 insert_guard_phis, copy_renames): New.
24031 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
24032 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
24033 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
24034 (scop_adjust_phis_for_liveouts): New.
24035 (gloog): Call scop_adjust_phis_for_liveouts.
24037 * graphite.h (struct sese): Documented. Added fields liveout,
24038 num_ver and livein.
24039 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
24040 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
24041 (struct scop): Added field liveout_renames.
24042 (SCOP_LIVEOUT_RENAMES): New.
24044 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
24046 PR tree-optimization/38510
24047 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
24048 (translate_clast): Call recompute_all_dominators before
24050 (gloog): Call recompute_all_dominators before graphite_verify.
24052 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
24053 Jan Sjodin <jan.sjodin@amd.com>
24055 PR tree-optimization/38500
24056 * graphite.c (create_sese_edges): Call fix_loop_structure after
24059 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
24061 * config.gcc: Add m32r*-*-rtems*.
24062 * config/m32r/rtems.h: New file.
24064 2009-01-05 Ben Elliston <bje@au.ibm.com>
24066 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
24067 (.po.pox): Likewise.
24068 (po/gcc.pot): Likewise.
24070 2009-01-04 David S. Miller <davem@davemloft.net>
24072 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
24073 (STARTING_FRAME_OFFSET): Always set to zero.
24075 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
24077 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
24078 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
24079 fixed-point types, and vectors of the same.
24081 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
24083 * config/mips/sync.md (*mb_barrier): Rename to...
24084 (*memory_barrier): ...this.
24086 2009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
24088 * doc/extend.texi (Function Attributes): Move @cindex after @item
24089 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
24090 and put in alphabetical order. Fix 'target' name and put in order.
24091 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
24094 2009-01-04 Uros Bizjak <ubizjak@gmail.com>
24096 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
24097 (memory_barrier): Expand as unspec instead of unspec_volatile.
24098 Remove mem:BLK from insn operands. Use Pmode scratch register.
24099 (*memory_barrier): Define as unspec instead of unspec_volatile.
24100 Use (match_dup 0) as input operand.
24102 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
24103 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
24104 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
24105 scratch register. Remove operand 1.
24106 (*stbar): Define as unspec instead of unspec_volatile.
24107 Use (match_dup 0) as input operand, remove (const_int 8).
24108 (*membar): Define as unspec instead of unspec_volatile.
24109 Use (match_dup 0) as input operand, remove input operand 2.
24111 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
24112 (memory_barrier): Expand as unspec instead of unspec_volatile.
24113 Remove mem:BLK from insn operands. Use Pmode scratch register.
24114 (*memory_barrier): Define as unspec instead of unspec_volatile.
24115 Use (match_dup 0) as input operand.
24117 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
24118 Remove mem:BLK from insn operands. Use Pmode scratch register.
24119 Set volatile flag on operand 0.
24120 (*memory_barrier): New insn pattern.
24122 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
24124 (*memory_barrier): Use (match_dup 0) as input operand.
24126 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
24127 Remove mem:BLK from insn operands. Use Pmode scratch register.
24128 Set volatile flag on operand 0.
24129 (*mb_internal): New insn pattern.
24131 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
24133 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
24135 PR middle-end/38586
24136 * function.c (struct temp_slot): Move to the section of the file
24137 that deals with temp slots. Remove field 'address'.
24138 (temp_slot_address_table): New hash table of address -> temp slot.
24139 (struct temp_slot_address_entry): New struct, items for the table.
24140 (temp_slot_address_compute_hash, temp_slot_address_hash,
24141 temp_slot_address_eq, insert_temp_slot_address): Support functions
24143 (find_temp_slot_from_address): Rewrite to use the new hash table.
24144 (remove_unused_temp_slot_addresses): Remove addresses of temp
24145 slots that have been made available.
24146 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
24147 worker function for remove_unused_temp_slot_addresses.
24148 (assign_stack_temp_for_type): Don't clear the temp slot address list.
24149 Add the temp slot address to the address -> temp slot map.
24150 (update_temp_slot_address): Update via insert_temp_slot_address.
24151 (free_temp_slots): Call remove_unused_temp_slot_addresses.
24152 (pop_temp_slots): Likewise.
24153 (init_temp_slots): Allocate the address -> temp slot map, or empty
24154 the map if it is already allocated.
24155 (prepare_function_start): Initialize temp slot processing.
24157 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
24159 PR middle-end/38584
24160 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
24161 Calculate the size of all stack vars assuming no packing of stack
24162 vars will happen, replacing a quadratic algorithm with a linear one.
24164 2009-01-03 Jakub Jelinek <jakub@redhat.com>
24167 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
24170 2009-01-03 Diego Novillo <dnovillo@google.com>
24172 * doc/contrib.texi: Update contributions.
24174 2009-01-03 Jakub Jelinek <jakub@redhat.com>
24177 * builtins.c (fold_builtin_memory_op): Give up if either operand
24178 is volatile. Set srctype or desttype to non-qualified version
24182 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
24183 and FUNCTION_DECLs.
24185 2009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
24187 PR rtl-optimization/35805
24188 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
24189 problem if fast dce is able to remove any instructions.
24190 * dce.c (dce_process_block): Fix dump message.
24192 2009-01-02 Mark Mitchell <mark@codesourcery.com>
24195 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
24197 2009-01-02 Jakub Jelinek <jakub@redhat.com>
24199 PR middle-end/38690
24200 * tree-flow.h (op_code_prio, op_prio): New prototypes.
24201 * tree-pretty-print.c (op_code_prio): New function.
24202 (op_prio): No longer static. Use op_code_prio.
24203 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
24204 Use op_prio and op_code_prio to determine if () should be
24205 printed around operand(s) or not.
24207 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
24208 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
24209 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
24210 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
24211 pp_character instead of pp_string for single letter printing.
24213 2009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
24215 * doc/extend.texi: Fix '#pragma GCC option' typo.
24217 2009-01-02 Richard Guenther <rguenther@suse.de>
24219 * doc/install.texi (--enable-checking): Mention different
24220 default for stage1.
24221 (--enable-stage1-checking): Document.
24223 2009-01-01 Andrew Pinski <pinskia@gmail.com>
24225 PR middle-end/30142
24226 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
24227 case to be an error.
24229 2009-01-02 Ben Elliston <bje@au.ibm.com>
24231 * config/fp-bit.h (pack_d): Constify argument.
24232 * config/fp-bit.c (makenan): Constify return type. Remove casts.
24233 (isnan): Constify argument.
24235 (iszero): Likewise.
24236 (pack_d): Likewise.
24237 (_fpadd_parts): Constify return type.
24238 (_fpmul_parts): Likewise.
24239 (_fpdiv_parts): Likewise.
24241 2009-01-01 Jakub Jelinek <jakub@redhat.com>
24244 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
24245 warn about overwriting initializer with side-effects or
24246 -Woverride-init if !IMPLICIT.
24247 (output_init_element): Likewise. Pass IMPLICIT down to
24249 (process_init_element): Add IMPLICIT argument. Pass it down
24250 to output_init_element.
24251 (push_init_element, pop_init_level, set_designator): Adjust
24252 process_init_element callers.
24253 (set_nonincremental_init, set_nonincremental_init_from_string):
24254 Adjust add_pending_init callers.
24255 (output_pending_init_elements): Adjust output_init_element callers.
24256 * c-tree.h (process_init_element): Adjust prototype.
24257 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
24258 process_init_element callers.
24261 Copyright (C) 2009 Free Software Foundation, Inc.
24263 Copying and distribution of this file, with or without modification,
24264 are permitted in any medium without royalty provided the copyright
24265 notice and this notice are preserved.