1 2010-10-06 Nick Clifton <nickc@redhat.com>
3 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by
6 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed
8 (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
9 (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
10 (REGISTER_NAMES): Add MDR.
11 (DWARF2_DEBUGGING_INFO): Define to 1.
12 * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
13 (F): New function. Sets RTX_FRAME_RELATED_P.
14 (mn10300_gen_multiple_store): Use F.
15 (expand_prologue): Use F. Use gen_movsf() to push floating
17 (expand_epilogue): Use gen_movsf() to pop floating point
19 (mn10300_option_override): Disable combine stack adjust pass.
21 2010-10-06 Thomas Schwinge <thomas@schwinge.name>
24 * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
25 LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
27 2010-10-06 Jakub Jelinek <jakub@redhat.com>
29 * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
30 BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
31 BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
32 BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
33 BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
34 BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
35 BUILT_IN_TOUPPER): Mark as leaf.
38 * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
39 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
40 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
41 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
42 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
43 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
44 Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
46 2010-10-05 Anatoly Sokolov <aesok@post.ru>
48 * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
49 * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
50 (m68hc11_class_likely_spilled_p): New function.
52 2010-10-05 Nicola Pero <nicola.pero@meta-innovation.com>
54 * c-parser.c (c_parser_objc_method_definition): Updated comment.
56 2010-10-05 Jan Hubicka <jh@suse.cz>
58 * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
60 * opts.c (decode_options): Handle lto partitions.
61 * common.opt (flto-partition=1to1, flto-partition=balanced): New.
62 * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
64 2010-10-05 Jan Hubicka <jh@suse.cz>
66 * cgraphunit.c (assemble_function): Output thunks and aliases before
69 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
71 * config/picochip/picochip.c (picochip_option_override): Disable
72 exception flags for picochip.
74 2010-10-05 Joseph Myers <joseph@codesourcery.com>
76 * opts-common.c (handle_option, handle_generated_option,
77 read_cmdline_option, set_option): Add diagnostic_context
78 parameter. Update calls among these functions.
79 (set_option): Don't use global_dc.
80 * opts.c (read_cmdline_options): Pass global_dc to
82 (decode_options): Pass global_dc to enable_warning_as_error.
83 (common_handle_option): Pass global_dc to enable_warning_as_error.
84 (enable_warning_as_error): Add diagnostic_context parameter.
85 Document parameters. Don't use global_dc. Pass
86 diagnostic_context parameter to handle_generated_option.
87 * opts.h (set_option, handle_option, handle_generated_option,
88 read_cmdline_option, enable_warning_as_error): Add
89 diagnostic_context parameter.
90 * Makefile.in (lto-opts.o): Update dependencies.
91 * coretypes.h (struct diagnostic_context, diagnostic_context):
93 * diagnostic.h (diagnostic_context): Don't declare typedef here.
94 * gcc.c (process_command): Pass global_dc to read_cmdline_option.
95 * langhooks-def.h (struct diagnostic_context): Don't declare here.
96 (lhd_print_error_function, lhd_initialize_diagnostics): Declare
97 using diagnostic_context typedef.
98 * langhooks.c (lhd_initialize_diagnostics): Declare using
99 diagnostic_context typedef.
100 * langhooks.h (struct diagnostic_context): Don't declare here.
101 (initialize_diagnostics, print_error_function): Declare using
102 diagnostic_context typedef.
103 * lto-opts.c: Include diagnostic.h.
104 (lto_reissue_options): Pass global_dc to set_option. Pass
105 DK_UNSPECIFIED not 0.
106 * plugin.c (plugins_internal_error_function): Declare using
107 diagnostic_context typedef.
108 * plugin.h (struct diagnostic_context): Don't declare here.
109 (plugins_internal_error_function): Declare using
110 diagnostic_context typedef.
112 2010-10-05 Olivier Hainque <hainque@adacore.com>
113 Nicolas Roche <roche@adacore.com>
115 * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
116 * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
118 2010-10-05 Ira Rosen <irar@il.ibm.com>
120 PR tree-optimization/45752
121 * tree-vect-slp.c (vect_get_mask_element): Remove static
122 variables, make them function arguments.
123 (vect_transform_slp_perm_load): Pass new arguments to
124 vect_get_mask_element.
126 2010-10-05 Richard Guenther <rguenther@suse.de>
128 * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
129 (gimple_mod_pow2): Likewise.
130 (gimple_mod_subtract): Likewise.
131 (gimple_ic): Likewise.
132 (gimple_stringop_fixed_value): Likewise.
133 * tree-profile.c (tree_init_edge_profiler): Mark profile
134 functions nothrow and leaf.
135 (add_abnormal_goto_call_edges): Remove.
136 (tree_gen_edge_profiler): Work on SSA form.
137 (tree_gen_ic_profiler): Likewise. Simplify.
138 (do_tree_profiling): Update SSA form.
139 (pass_tree_profile): Remove.
140 (do_tree_profiling): Likewise.
141 (gate_tree_profile_ipa): New function.
142 (pass_ipa_tree_profile): New.
143 (tree_profiling): Re-write as IPA pass. Properly drop const/pure
144 state of instrumented functions.
145 * passes.c (init_optimization_passes): Remove early non-SSA
146 inlining. Move profiling after early optimizations.
147 * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
148 (pass_ipa_early_inline): Likewise.
149 * tree-pass.h (pass_ipa_early_inline): Remove.
150 (pass_tree_profile): Likewise.
151 (pass_ipa_tree_profile): Declare.
153 2010-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
154 Christian Borntraeger <Christian.Borntraeger@de.ibm.com>
156 * gcc/config/s390/s390.c (z196_cost): New.
157 (s390_handle_arch_option): Add -march=z196.
158 (s390_option_override): Use the new cost function and use the z10
159 defaults also for z196.
160 (legitimate_reload_constant_p): Adjust comment.
161 (legitimate_reload_fp_constant_p): New function.
162 (s390_preferred_reload_class): Distingiush between FP and Int constants.
163 (preferred_la_operand_p): Avoid la with index on z196.
164 (s390_adjust_priority): Trigger also for z196.
165 (s390_issue_rate): Issue rate for z196 is 3.
166 (s390_z10_fix_long_loop_prediction): Rename to ...
167 (s390_fix_long_loop_prediction): ... this.
168 (s390_reorg): Apply the z10 adjustments also for z196.
169 (s390_loop_unroll_adjust): Do this also for z196.
170 * gcc/config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
171 (enum processor_flags): Add PF_Z196.
172 (TARGET_AVOID_CMP_AND_BRANCH): New macro.
173 (TARGET_CPU_Z196, TARGET_Z196): New macros.
174 * gcc/config.gcc: Enable z196 for --with-arch.
175 * gcc/config/s390/2817.md: New file.
176 * gcc/config/s390/2084.md: New type for multiply and add.
177 * gcc/config/s390/2097.md: Likewise.
178 * gcc/config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
179 (UNSPECV_ATOMIC_OP): New constants.
180 (fmadddf, fmaddsf): New values for type attribute.
181 (z196prop): New insn attribute.
182 (cpu, cpu_facility): Add z196.
183 (ATOMIC_Z196): New code iterator.
184 (noxa): New code attribute.
185 (gk): New mode attribute.
186 (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
187 Support load zero for fp constants.
188 (fixuns_truncdddi2, fixuns_trunctddi2)
189 (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
191 (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
192 (popcounthi2, popcountqi2): New expander.
193 (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
194 (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
195 (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
197 (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
198 (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
199 (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc, *sub<mode>3)
200 (*sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly, *sub<mode>3_cc)
201 (*sub<mode>3_cc2, *sub<mode>3_cconly, *sub<mode>3_cconly2)
202 (*anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc, *andsi3_cconly)
203 (*andsi3_zarch, *andsi3_esa, *andhi3_zarch, *andqi3_zarch, *iordi3_cc)
204 (*iordi3_cconly, *iordi3, *iorsi3_cc, *iorsi3_cconly, *iorsi3_zarch)
205 (*iorhi3_zarch, *iorqi3_zarch, *xordi3_cc, *xordi3_cconly, *xordi3)
206 (*xorsi3_cc, *xorsi3_cconly, *xorsi3, *xorhi3, *xorqi3, *<shift><mode>3)
207 (*<shift><mode>3_and, *ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
208 (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
209 Support new z196 instructions.
211 2010-10-05 Richard Guenther <rguenther@suse.de>
214 * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
215 case where gimplification optimizes away the stmt.
217 2010-10-04 Jakub Jelinek <jakub@redhat.com>
220 * var-tracking.c (strip_pointer_flags): New function.
221 (emit_note_insn_var_location): If rtx_equal_p check failed,
222 retry on locations simplified with simplify_replace_fn_rtx
223 and strip_pointer_flags as its callback.
225 2010-10-04 Jan Hubicka <jh@suse.cz>
227 * gimple-fold.c (static_object_in_other_unit_p): Rename to...
228 (can_refer_decl_in_current_unit_p): ... this one; reverse return
229 value; handle comdats too.
230 (canonicalize_constructor_val): Use it; handle function_decls
232 (gimple_fold_obj_type_ref_known_binfo): Likewise.
233 * gimple.c (get_base_address): Accept all kinds of decls.
235 2010-10-04 Joseph Myers <joseph@codesourcery.com>
237 * flags.h (g_switch_value, g_switch_set): Remove.
238 * opts.c (g_switch_value, g_switch_set): Remove.
239 * config/g.opt (G): Add Var(g_switch_value).
240 * config/alpha/alpha.c (alpha_handle_option): Don't handle -G
242 (alpha_option_override): Check global_options_set.x_g_switch_value
243 instead of g_switch_set.
244 (alpha_in_small_data_p): Remove cast in comparison with
246 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
247 g_switch_value to unsigned HOST_WIDE_INT.
248 * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
250 (frv_handle_option): Don't handle -G here.
251 (frv_option_override): Check global_options_set.x_g_switch_value
252 instead of g_switch_set. Don't modify g_switch_set.
253 (frv_in_small_data_p): Remove cast in comparison with
255 * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
256 g_switch_value to unsigned HOST_WIDE_INT.
257 * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
258 (ia64_option_override): Check global_options_set.x_g_switch_value
259 instead of g_switch_set.
260 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
262 (lm32_in_small_data_p): Remove cast in comparison with
264 * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
265 ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
267 * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
268 (m32r_init): Check global_options_set.x_g_switch_value instead of
270 (m32r_in_small_data_p): Remove cast in comparison with
272 (m32r_file_start): Format g_switch_value with %d.
273 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
274 ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned
276 * config/microblaze/microblaze.c (microblaze_handle_option): Don't
278 (microblaze_option_override): Check
279 global_options_set.x_g_switch_value instead of g_switch_set.
280 * config/mips/mips.c (mips_handle_option): Don't handle -G here.
281 (mips_option_override): Check global_options_set.x_g_switch_value
282 instead of g_switch_set.
283 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G
285 (rs6000_file_start): Format g_switch_value with %d.
286 (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
287 comparisons with g_switch_value.
288 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
289 global_options_set.x_g_switch_value instead of g_switch_set.
290 * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
291 global_options_set.x_g_switch_value instead of g_switch_set.
292 * config/score/score.c (score_handle_option): Don't handle -G
294 * config/score/score3.c (score3_option_override): Check
295 global_options_set.x_g_switch_value instead of g_switch_set.
296 * config/score/score7.c (score7_option_override): Check
297 global_options_set.x_g_switch_value instead of g_switch_set.
299 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
301 * common.opt (fira-coalesce): Remove.
303 * doc/invoke.texi (flag_ira_coalesce): Remove.
305 * ira-color.c (allocno_coalesced_p): Move before
306 copy_freq_compare_func.
307 processed_coalesced_allocno_bitmap): Ditto.
308 (update_conflict_hard_regno_costs): Don't use
309 ALLOCNO_FIRST_COALESCED_ALLOCNO.
310 (allocno_cost_compare_func, print_coalesced_allocno): Remove.
311 (assign_hard_reg): Assume no coalesced allocnos.
312 (get_coalesced_allocnos_attributes): Remove.
313 (bucket_allocno_compare_func): Assume no coalesced allocnos.
314 (push_allocno_to_stack): Ditto.
315 (remove_allocno_from_bucket_and_push): Use
316 ira_print_expanded_allocno instead of print_coalesced_allocno.
317 (push_allocnos_to_stack): Assume uncoalesced allocnos.
318 (all_conflicting_hard_regs_coalesced): Ditto. Rename to
319 all_conflicting_hard_regs.
320 (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
321 (setup_allocno_left_conflicts_size): Ditto.
322 (put_allocno_into_bucket): Ditto.
323 (copy_freq_compare_func): Remove.
324 (copy_freq_compare_func, merge_allocnos): Move before
325 coalesced_pseudo_reg_freq_compare.
326 coalesced_allocno_conflict_p): Ditto.
327 (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto. Remove
328 parameter. Assume it true.
329 (color_allocnos): Assume uncoalesced allocnos. Use
330 ira_print_expanded_allocno instead of print_coalesced_allocno.
331 (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
334 * ira.c: Remove comment about coalescing.
336 2010-10-04 Joseph Myers <joseph@codesourcery.com>
338 * config/mips/mips.h (target_flags_explicit): Declare for
341 2010-10-04 Andi Kleen <ak@linux.intel.com>
343 * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
344 gcov-dump, cc1-dummy, genprog, build/gcov-iov):
347 2010-10-04 Matthias Klose <doko@ubuntu.com>
349 * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
350 multilib osdirname if it exists.
351 * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
353 2010-10-04 Jakub Jelinek <jakub@redhat.com>
356 * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
357 arg0's type or its unsigned counterpart as utype. Convert
358 arg1 to utype unconditionally.
360 2010-10-04 Julian Brown <julian@codesourcery.com>
362 * expr.c (expand_assignment): Add assertion to prevent emitting
363 null rtx for movmisalign pattern.
364 (expand_expr_real_1): Likewise.
365 * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
366 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
367 (arm_vector_alignment_reachable): New.
368 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
369 (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
370 (arm_print_operand): Include alignment qualifier in %A.
371 * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
372 (movmisalign<mode>): New expander.
373 (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
376 2010-10-04 Joseph Myers <joseph@codesourcery.com>
378 * optc-gen.awk: Define global_options_set. Don't define
379 target_flags_explicit.
380 * opth-gen.awk: Declare global_options_set. Define
381 target_flags_explicit as macro.
382 * opts-common.c (handle_option): Take opts_set and generated_p
384 (handle_generated_option, read_cmdline_option, set_option): Take
386 (set_option): Use opts_set instead of hardcoding target_flags and
387 target_flags_explicit.
388 * opts.c (sel_sched_switch_set, profile_arc_flag_set,
389 flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
390 flag_value_profile_transformations_set, flag_peel_loops_set,
391 flag_branch_probabilities_set, flag_inline_functions_set,
392 flag_ipa_cp_set, flag_ipa_cp_clone_set,
393 flag_predictive_commoning_set, flag_unswitch_loops_set,
394 flag_gcse_after_reload_set): Remove.
395 (common_handle_option, lang_handle_option, target_handle_option):
396 Take opts_set parameter. Assert that it is &global_options_set.
397 (common_handle_option): Don't set _set variables. Check opts_set
398 instead of such variables.
399 (enable_warning_as_error): Pass &global_options_set to
400 handle_generated_option.
401 * opts.h (cl_option_handler_func.handler, set_option,
402 handle_option, handle_generated_option, read_cmdline_option): Add
404 (handle_option): Add generated_p parameter.
405 * config/i386/i386.c (ix86_function_specific_save,
406 ix86_function_specific_restore): Updat for renaming of
407 target_flags_explicit field.
408 * config/i386/i386.opt (target_flags_explicit): Rename to
409 ix86_target_flags_explicit.
410 * config/ia64/ia64.c (ia64_override_options_after_change): Check
411 global_options_set.x_flag_selective_scheduling and
412 global_options_set.x_flag_selective_scheduling2, not
413 sel_sched_switch_set.
414 * flags.h (sel_sched_switch_set,
415 flag_speculative_prefetching_set): Remove.
416 * gcc.c (driver_handle_option): Take opts_set parameter. Assert
417 that it is &global_options_set.
418 (process_command): Pass &global_options_set to
420 * lto-opts.c (lto_reissue_options): Pass &global_options_set to
422 * toplev.c (target_flags_explicit): Remove.
424 2010-10-04 Jan Hubicka <jh@suse.cz>
427 * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
428 use get_ref_base_and_offset to handle references.
429 (fold_const_aggregate_ref): Update.
431 2010-10-04 Martin Jambor <mjambor@suse.cz>
433 PR tree-optimization/45572
434 * ipa-prop.c (ipa_make_edge_direct_to_target): Call
435 ipa_check_create_node_params.
436 * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
438 2010-10-04 Yao Qi <yao@codesourcery.com>
440 * doc/passes.texi: Clean up.
442 2010-10-03 Ian Lance Taylor <iant@google.com>
444 * c-typeck.c (lookup_field): If -fplan9-extensions, permit
445 referring to a field using a typedef name.
446 (find_anonymous_field_with_type): New static function.
447 (convert_to_anonymous_field): New static function.
448 (convert_for_assignment): If -fplan9-extensions, permit converting
449 pointer to struct to pointer to anonymous field.
450 * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous
452 (is_duplicate_field): New static function.
453 (detect_field_duplicates_hash): If -fplan9-extensions, check for
454 typedef names duplicating field names.
455 (detect_field_duplicates): Likewise.
456 * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
457 (C Dialect Options): Document -fplan9-extensions.
458 * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
460 2010-10-03 H.J. Lu <hongjiu.lu@intel.com>
462 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
464 (vect_create_data_ref_ptr): Likewise.
465 * tree-vect-stmts.c (vectorizable_store): Likewise.
466 (perm_mask_for_reverse): Likewise.
467 (reverse_vec_elements): Likewise.
468 (vectorizable_load): Likewise.
470 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
472 * cppbuiltin.c: New file.
473 * cppbuiltin.h: New file.
474 * Makefile.in: Take into account cppbuiltin.{h,c}.
476 2010-10-03 Andi Kleen <ak@linux.intel.com>
478 * lto-cgraph.c (input_cgraph): Check for missing sections.
480 2010-10-03 Uros Bizjak <ubizjak@gmail.com>
482 * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 preticate
483 to nonimmediate_operand. Force operand 2 to register when allowed.
484 (*<shiftrt_insn><mode>3_mask): Ditto.
485 (*<rotate_insn><mode>3_mask): Ditto.
487 2010-10-02 H.J. Lu <hongjiu.lu@intel.com>
489 PR tree-optimization/45720
490 PR tree-optimization/45764
491 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
492 Don't accept backwards consecutive accesses.
493 (vect_create_data_ref_ptr): Disallow negative steps.
495 * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
496 (perm_mask_for_reverse): Removed.
497 (reverse_vec_elements): Likewise.
498 (vectorizable_load): Don't handle negative steps.
500 2010-10-02 Jan Hubicka <jh@suse.cz>
502 * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
503 call destination is known.
505 2010-10-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
508 * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
511 2010-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
513 * doc/install.texi (Configuration): Document build_configargs,
514 host_configargs, target_configargs.
516 2010-10-01 Uros Bizjak <ubizjak@gmail.com>
518 * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
519 (*<shiftrt_insn><mode>3_mask): Ditto.
520 (*<rotate_insn><mode>3_mask): Ditto.
522 2010-10-01 Steve Ellcey <sje@cup.hp.com>
524 PR tree-optimization/44716
525 * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
526 (HOT_TEXT_SECTION_NAME): Define.
528 2010-10-01 Nick Clifton <nickc@redhat.com>
530 * common.opt: Add -fcombine-stack-adjustments.
531 * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
532 * combine-stack-adj.c (gate_handle_stack_adjustments): Check
533 flag_combine_stack_adjustments.
534 * doc/invoke.texi: Document the new option.
536 2010-10-01 Richard Guenther <rguenther@suse.de>
538 PR tree-optimization/45854
539 * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
541 2010-10-01 Anthony Green <green@moxielogic.com>
543 * config.gcc: Fix moxie-*-rtems* configuration.
545 2010-10-01 Richard Guenther <rguenther@suse.de>
547 * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
548 (gen_decl_die): Likewise.
550 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
552 * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
553 to the function code for SPU MD builtins.
554 (spu_expand_builtin): Update.
555 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
557 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
559 * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
560 sjlj_except_unwind_info.
562 2010-10-01 Tristan Gingold <gingold@adacore.com>
564 * configure.ac: Define the nop insn for avr*-*-*
565 * configure: Regenerate.
567 2010-10-01 Alan Modra <amodra@gmail.com>
570 * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
571 extend toc_restore_insn.
573 2010-09-30 Richard Guenther <rguenther@suse.de>
575 PR tree-optimization/43959
576 * function.c (gimplify_parameters): Use create_tmp_reg instead of
579 2010-09-30 Kaz Kojima <kkojima@gcc.gnu.org>
581 * config/sh/sh.c (sh_expand_prologue): Set
582 current_function_static_stack_size.
584 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
586 * configure.ac: Check for Solaris 8 ld with .hidden support.
587 * configure: Regenerate.
589 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
592 * graphite.c (graphite_initialize): Call scev_reset.
594 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
596 * sese.h (scev_analyzable_p): Return false for real or floating
597 point. Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
599 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
601 * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
603 * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
605 * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
606 Do not allocate ub_expr, it is passed in initialized.
608 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
610 * graphite-clast-to-gimple.c (init_cloog_input_file): New.
611 (build_cloog_prog): Dump CLooG input file when
612 flag_graphite_dump_cloog is set. This is disabled on trunk.
613 * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
615 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
617 * graphite-clast-to-gimple.c (graphite_verify): Remove call to
618 verify_dominators for CDI_POST_DOMINATORS.
619 * sese.h: Remove comment about CDI_POST_DOMINATORS.
620 (recompute_all_dominators): Remove call to free_dominance_info
621 for CDI_POST_DOMINATORS. Remove call to calculate_dominance_info
622 for CDI_POST_DOMINATORS.
624 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
626 * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
627 over pbb_dim_iter_domain.
629 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
631 * graphite-flattening.c: Fix comments.
633 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
635 * Makefile.in (OBJS-common): Add graphite-flattening.o.
636 (graphite-flattening.o): New rule.
637 * common.opt (floop-flatten): New flag.
638 * doc/invoke.texi (-floop-flatten): Documented.
639 * graphite-flattening.c: New.
640 * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
641 * graphite-poly.h (flatten_all_loops): Declared.
642 (lst_remove_loop_and_inline_stmts_in_loop_father): New.
643 * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
644 is set, also set flag_graphite.
646 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
648 * graphite-poly.c (cloog_checksum): New.
649 * graphite-poly.h (cloog_checksum): Declared.
651 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
653 * graphite-poly.c (pbb_number_of_iterations): Removed.
654 (pbb_number_of_iterations_at_time): Correctly compute the number
655 of iterations in the transformed loop.
656 * graphite-poly.h (pbb_number_of_iterations): Removed.
658 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
660 * graphite-poly.h (lst_update_scattering_seq): Removed.
661 (lst_update_scattering): Correctly handle outermost loop dewey
664 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
666 * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
667 lst_strip_mine_profitable_p. Call lst_niter_for_loop.
668 * graphite-poly.h (lst_niter_for_loop): New.
670 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
672 * graphite-poly.c (apply_poly_transforms): Do not abort when the
673 transform read from disk is not legal. Call fatal_error instead.
675 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
677 * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
678 (print_scop_header): Removed. Inlined in the only call place...
679 (print_scop): ... here.
681 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
683 * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
685 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
687 * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
689 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
691 * graphite-dependences.c (dot_deps): Avoid set but not used warning.
692 (dot_deps_stmt): Same.
693 * graphite-poly.c (dot_lst): Same.
695 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
697 * graphite-blocking.c (scop_do_strip_mine): Do not call
698 graphite_legal_transform.
699 (scop_do_block): Same.
701 2010-09-30 Vladimir Kargov <kargov@gmail.com>
703 * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
706 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
708 * tree-scalar-evolution.c (instantiate_array_ref): New.
709 (instantiate_scev_r): Also handle ARRAY_REFs.
711 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
713 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
714 Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
715 RESULT_DECL, and FIELD_DECL. Return false for an
716 SSA_NAME_IS_DEFAULT_DEF.
717 (compute_scalar_evolution_in_loop): Do not further analyze the
718 scalar evolution when no_evolution_in_loop_p returns true.
720 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
722 * tree-chrec.h (evolution_function_is_affine_p): Do not check
723 whether CHREC_LEFT is invariant. A function is affine when
724 CHREC_RIGHT is invariant.
726 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
728 * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
730 (rewrite_degenerate_phi): Same.
731 (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
733 2010-09-30 Vladimir Kargov <kargov@gmail.com>
735 * graphite-scop-detection.c (graphite_can_represent_scev,
736 graphite_can_represent_expr, stmt_has_simple_data_refs_p,
737 graphite_can_represent_loop): Remove outermost_loop.
739 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
742 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
743 handle GIMPLE_CALLs with no LHS.
745 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
747 * graphite-poly.c (init_graphite_out_file): New.
748 (init_graphite_in_file): New.
749 (apply_poly_transforms): Updated to enable reading and writing of
752 2010-09-30 Tobias Grosser <grosser@fim.uni-passau.de>
754 * graphite-scop-detection.c (graphite_can_represent_scev): Remove
757 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
759 * graphite-clast-to-gimple.c (precision_for_value): Adjust
760 computation of precision by 1.
762 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
764 * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
765 (openscop_read_polyhedron_matrix): New.
766 * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
767 (openscop_read_N_int): Same.
768 * graphite-poly.c (openscop_read_N_int): New.
769 (openscop_read_one_int): New.
770 (openscop_read_N_string): New.
771 (openscop_read_one_string): New.
772 (openscop_read_powerset_matrix): New.
773 (graphite_read_transforms): Remove.
774 (graphite_read_scatt): New.
775 (graphite_read_scop_file): New.
776 (apply_poly_transforms): Updated to call graphite_read_scop_file.
778 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
780 * graphite-poly.c: Change include order.
782 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
784 * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
785 (cloog_matrix_nrows): New.
787 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
789 * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
791 * graphite-poly.c (openscop_print_scattering_function_1): Same.
792 (print_scattering_function_1): Same.
793 (openscop_print_pbb_domain): Same.
794 (openscop_print_scop_context): Same.
795 (print_scop_context): Same.
797 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
799 * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
800 (openscop_print_pdr_polyhedron): Print pph.
802 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
804 * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
805 priority signed types.
807 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
809 * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
810 the call to lang_hooks.types.type_for_size. Call
811 build_nonstandard_integer_type.
813 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
815 * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
816 (openscop_print_polyhedron_matrix): New.
817 * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
818 * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
819 (openscop_print_pdr_powerset): New.
820 (openscop_print_powerset_matrix): New.
821 (openscop_print_scattering_function_1): New.
822 (print_scattering_function): Add support for scattering names and
824 (graphite_write_transforms): Remove.
825 (print_pdr_access_layout): Updated to support OpenScop format.
827 (openscop_print_pbb_domain): New.
828 (print_pbb_body): Added a parameter to allow indicating that pbb_body
830 (print_pbb): Updated to call the new print_pbb_body.
831 (openscop_print_scop_context): New.
832 (print_scop_header): New.
833 (print_scop): Updated to call print_scop_header.
834 * graphite-poly.h: Document OpenScop format.
836 2010-09-30 Anatoly Sokolov <aesok@post.ru>
838 * config/cris/m32c.c (cris_memory_move_cost): New.
839 (cris_register_move_cost): Make static. Change arguments type from
840 enum reg_class to reg_class_t.
841 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
842 * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
843 * config/cris/cris-protos.h (cris_register_move_cost): Remove.
845 2010-09-30 Jakub Jelinek <jakub@redhat.com>
848 * config/i386/i386.c (ix86_gimplify_va_arg): Use
849 INTVAL (XEXP (slot, 1)) as prev_size.
851 2010-09-30 Michael Meissner <meissner@linux.vnet.ibm.com>
854 * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
855 * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
857 * config/rs6000/option-defaults.h (toplevel): Change #if
858 TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
859 global option changes.
861 2010-09-30 Jakub Jelinek <jakub@redhat.com>
863 * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
865 PR tree-optimization/31261
866 * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
867 for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
869 2010-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
872 * Makefile.in (build/gen%$(build_exeext)): Move rule after all
873 special-casing for generators and turn into ...
874 ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
875 rule, for better error messages in case of toplevel dependency errors.
876 (genprog): Add hooks, rename to ...
877 (genprogerr): ... this, and let genprog also contain check,
879 ((genprog:%=build/gen%$(build_exeext))): Rename to ...
880 ((genprogerr:%=build/gen%$(build_exeext))): ... this.
881 (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
883 2010-09-30 Jonathan Wakely <jwakely.gcc@gmail.com>
884 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
886 * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
887 for GMP, MPFR and MPC.
889 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
891 * config/sparc/sparc.opt (mimpure-text): Move ...
892 * config/sol2.opt: ... here. Correct description.
893 * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
894 * doc/invoke.texi (Option Summary, SPARC Options): Move
895 -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
896 (Option Summary, Solaris 2 Options): ... here.
897 (Submodel Options, Solaris 2 Options): New menu entry.
898 (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
899 (Solaris 2 Options): ... here.
901 2010-09-30 Michael Eager <eager@eagercon.com>
903 * extend.texi (interrupt_handler): Add MicroBlaze to list.
904 (save_volatiles): Describe option for MicroBlaze.
905 * invoke.texi: Add MicroBlaze Options.
906 * contrib.texi: Add acknowledgment.
907 * md.texi: Add MicroBlaze d and z constraints.
908 * install.texi: Add microblaze-*-elf.
909 * configure.ac: Add microblaze-*-* to target list.
910 * configure: Regenerate.
911 * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
912 * config/microblaze/microblaze-protos.h: New.
913 * config/microblaze/crti.s: New.
914 * config/microblaze/predicates.md: New.
915 * config/microblaze/linux.h: New.
916 * config/microblaze/microblaze.md: New.
917 * config/microblaze/constraints.md: New.
918 * config/microblaze/crtn.s: New.
919 * config/microblaze/microblaze.opt: New.
920 * config/microblaze/microblaze-c.c: New.
921 * config/microblaze/t-microblaze: New.
922 * config/microblaze/microblaze.c: New.
923 * config/microblaze/microblaze.h: New.
925 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
927 * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
928 parse @optional/@required and set the flags as appropriate.
930 2010-09-30 Nathan Froyd <froydnj@codesourcery.com>
932 * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
934 2010-09-30 Joseph Myers <joseph@codesourcery.com>
936 * opt-functions.awk (static_var): Update comment.
937 (var_ref): Return offsetof expression or -1, not variable address.
938 * optc-gen.awk: Generate structure field initializers instead of
939 static variables. Expect -1 for missing variables instead of null
940 pointer. Add gcc_options parameters to generated functions.
941 * opth-gen.awk: Generate structure fields for static variables.
942 Add gcc_options parameters to generated functions.
943 * common.opt (optimize, optimize_size): Add variables.
944 * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
945 &global_options to cl_target_option_restore.
946 * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
947 &global_options to cl_optimization_restore, cl_target_option_save
948 and cl_target_option_restore.
949 (ix86_set_current_function): Pass &global_options to
950 cl_target_option_restore.
951 * config/pdp11/pdp11.h (optimize): Remove.
952 * config/rs6000/rs6000.h (optimize): Remove.
953 * config/sh/sh.h (optimize): Remove.
954 * config/xtensa/xtensa.h (optimize): Remove.
955 * coretypes.h (struct gcc_options): Declare.
956 * diagnostic.c (diagnostic_initialize): Initialize
957 context->option_state.
958 (diagnostic_report_diagnostic): Pass option_state to
960 * diagnostic.h (diagnostic_context.option_enabled): Add void *
962 (diagnostic_context.option_state): New field.
963 * final.c (final_start_function, final, final_scan_insn): Rename
964 optimize parameter to optimize_p.
965 * flags.h (optimize, optimize_size): Remove.
966 * function.c (invoke_set_current_function_hook): Pass
967 &global_options to cl_optimization_restore.
968 * gcc.c (driver_handle_option): Take gcc_options parameter.
969 Assert that it is &global_options.
970 (process_command): Pass &global_options to read_cmdline_option.
971 * ipa-pure-const.c (suggest_attribute): Pass &global_options to
973 * lto-opts.c (lto_reissue_options): Use option_flag_var. Pass
974 &global_options to set_option.
975 * opts-common.c (handle_option, handle_generated_option,
976 read_cmdline_option, set_option): Take explicit gcc_options
977 parameters. Use option_flag_var.
978 (option_flag_var): New.
979 * opts.c (common_handle_option, lang_handle_option,
980 target_handle_option): Take gcc_options parameter. Assert that it
982 (read_cmdline_options): Pass &global_options to read_cmdline_option.
983 (print_filtered_help): Use option_flag_var. Pass &global_options
985 (common_handle_option): Use option_flag_var.
986 (option_enabled): Take opts parameter. Use option_flag_var.
987 (get_option_state): Take gcc_options parameter. Use
988 option_flag_var. Pass gcc_options parameter to option_enabled.
989 (enable_warning_as_error): Pass &global_options to
990 handle_generated_option.
991 * opts.h (struct cl_option): Change flag_var to flag_var_offset.
992 (cl_option_handler_func.handler): Take gcc_options parameter.
993 (option_enabled, get_option_state, set_option, handle_option,
994 handle_generated_option, read_cmdline_option): Take gcc_options
996 * toplev.c (optimize, optimize_size): Remove.
997 (print_switch_values): Pass &global_options to option_enabled.
998 (option_affects_pch_p): Use option_flag_var. Pass &global_options
1000 (general_init): Initialize global_dc->option_state.
1001 * tree.c (build_optimization_node): Pass &global_options to
1002 cl_optimization_save.
1003 (build_target_option_node): Pass &global_options to
1004 cl_target_option_save.
1006 2010-09-30 Martin Jambor <mjambor@suse.cz>
1008 * tree-sra.c (type_consists_of_records_p): Do not check for trailing
1009 zero sized bit-fields.
1011 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
1013 * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
1014 Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
1015 (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
1016 (c_parser_objc_class_declaration): Same change.
1017 (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
1018 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
1019 (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
1020 instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
1021 and RID_AT_PUBLIC instead of RID_PUBLIC.
1022 (c_parser_statement_after_labels): Use RID_AT_TRY instead of
1023 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
1025 2010-09-30 Tom G. Christensen <tgc@jupiterrise.com>
1027 * doc/install.texi (Binaries): Update link to HP-UX porting centre.
1028 Add links to current providers of packages for Solaris and IRIX.
1030 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1032 Merge from 'apple/trunk' branch on FSF servers.
1033 * c-parser.c: Applied change originally in c-parse.in.
1035 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
1038 * c-decl.c (start_decl): Check for redeclaration of class name.
1039 * c-parse.in (after_type_declarator): Recognize CLASSNAME.
1041 2010-09-29 Steve Ellcey <sje@cup.hp.com>
1043 * config/ia64/ia64.c (ia64_builtin_decl): New.
1044 (TARGET_BUILTIN_DECL): Define.
1045 (ia64_builtins): New.
1046 (ia64_init_builtins): Save decls in ia64_builtins.
1048 2010-09-29 Bernd Schmidt <bernds@codesourcery.com>
1051 * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
1052 (move2add_use_add3_insn): Likewise.
1053 (reload_cse_move2add): Likewise.
1054 * rtlanal.c (get_full_rtx_cost): New function.
1055 * rtl.h (struct full_rtx_costs): New.
1056 (init_costs_to_max, init_costs_to_zero, costs_lt_p,
1057 costs_add_n_insns): New inline functions.
1058 (get_full_rtx_cost): Declare.
1061 * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
1062 invariants. Check for reg_equiv_invariant.
1063 (reload): Assert that spilled_pseudos is empty when returning.
1065 2010-09-29 Kai Tietz <kai.tietz@onevision.com>
1067 * config/i386/mingw32.h (TARGET_64BIT): replaced by
1068 TARGET_64BIT_DEFAULT in #if check.
1070 2010-09-29 Jack Howarth <howarth@bromo.med.uc.edu>
1072 * varasm.c (assemble_alias): Add error message for unsupported ifunc.
1074 2010-09-29 Mike Stump <mikestump@comcast.net>
1076 * config/darwin.h (flag_mkernel): Remove.
1077 (flag_apple_kext): Likewise.
1079 2010-09-29 Joseph Myers <joseph@codesourcery.com>
1080 Jack Howarth <howarth@bromo.med.uc.edu>
1082 * config/darwin.opt (undefined): Add.
1084 2010-09-29 Nathan Sidwell <nathan@codesourcery.com>
1087 * configure.ac: Add --enable-indirect-function option.
1088 * config.gcc: Add default_gnu_indirect_function.
1089 * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
1090 (HAVE_GNU_INDIRECT_FUNCTION): ... this.
1091 * varasm.c (do_assemble_alias): Adjust for macro name change.
1092 * configure: Rebuilt.
1093 * doc/install.texi: Document --enable-indirect-function.
1095 2010-09-29 Joseph Myers <joseph@codesourcery.com>
1097 * doc/options.texi (Variable, Var, Init): Update documentation
1098 without reference to VarExists.
1099 (VarExists): Remove.
1100 * common.opt, config/i386/i386.opt, config/linux.opt,
1101 config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
1102 Don't use VarExists.
1104 2010-09-29 Joseph Myers <joseph@codesourcery.com>
1106 * optc-gen.awk: Generate global_options initializer instead of
1107 individual variables. Add x_ prefix to names of structure members.
1108 * opth-gen.awk: Generate gcc_options structure. Add x_ prefix to
1109 names of structure members.
1110 * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
1111 HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
1112 * doc/tm.texi: Regenerate.
1113 * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
1114 * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
1115 * c-parser.c (disable_extension_diagnostics,
1116 restore_extension_diagnostics): Update names of cpp_options members.
1117 * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
1118 * common.opt (fcompare-debug-second): Don't use Var.
1119 * config/alpha/alpha.h (target_flags): Remove.
1120 * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
1121 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
1122 * config/bfin/bfin.h (target_flags): Remove.
1123 * config/cris/cris.h (target_flags): Remove.
1124 * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
1125 cl_target_option members.
1126 * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
1127 (ix86_function_specific_print, ix86_valid_target_attribute_tree,
1128 ix86_can_inline_p): Update names of cl_target_option members.
1129 * config/i386/i386.h (ix86_isa_flags): Remove.
1130 * config/lm32/lm32.h (target_flags): Remove.
1131 * config/mcore/mcore.h (mcore_stack_increment): Remove.
1132 * config/mcore/mcore.md (addsi3): Remove extern declaration of
1133 flag_omit_frame_pointer.
1134 * config/mep/mep.h (target_flags): Remove.
1135 * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
1136 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
1137 * config/mmix/mmix.h (target_flags): Remove.
1138 * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
1139 flag_expensive_optimizations): Remove.
1140 * config/s390/s390.h (flag_pic): Remove.
1141 * config/score/score-conv.h (target_flags): Remove.
1142 * config/sh/sh.h (sh_fixed_range_str): Remove.
1143 * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
1144 * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
1145 * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
1146 * diagnostic.c (diagnostic_initialize): Update names of
1147 diagnostic_context members.
1148 * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
1149 warn_system_headers.
1150 (diagnostic_report_warnings_p): Update for new names.
1151 * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
1152 * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
1153 HARD_FRAME_POINTER_IS_ARG_POINTER.
1154 * flags.h (flag_compare_debug): Declare.
1155 * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
1156 * opts.c (flag_compare_debug): Define.
1157 (common_handle_option): Update names of diagnostic_context
1158 members. Handle -fcompare-debug-second.
1159 (fast_math_flags_struct_set_p): Update names of cl_optimization
1161 * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
1162 * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
1163 * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
1164 * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
1165 * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
1166 * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
1167 HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
1168 * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
1169 * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
1171 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
1173 * config/picochip/picochip.c (picochip_output_internal_label):
1174 This function can now be called for debug CFI labels, which can come
1175 in the middle of a vliw instruction. Postpone until end of vliw.
1177 2010-09-29 Richard Guenther <rguenther@suse.de>
1179 * tree.h (SCOPE_FILE_SCOPE_P): New macro.
1180 (DECL_FILE_SCOPE_P): Use it.
1181 (TYPE_FILE_SCOPE_P): New macro.
1183 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1185 * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
1186 a CPP_NAME which is a reserved word, clearly separate cases for
1187 OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
1189 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1191 * c-parser.c (c_lex_one_token): In Objective-C, do not replace
1192 token->value with the canonical spelling. Do exactly like C and
1193 C++ and leave it as it is.
1195 2010-09-28 Richard Henderson <rth@redhat.com>
1197 * config/alpha/alpha.c (alpha_builtins): New.
1198 (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
1199 (alpha_builtin_function): New.
1200 (alpha_add_builtins, alpha_init_builtins): Use it.
1202 2010-09-28 Nicola Pero <nicola.pero@meta-innovation.com>
1204 * doc/standards.texi (Standards): Expanded the section on
1205 Objective-C and Objective-C++.
1207 2010-09-28 DJ Delorie <dj@redhat.com>
1210 * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
1213 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1215 * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
1216 attributes on methods.
1217 (c_parser_objc_method_definition): Handle attributes.
1218 (c_parser_objc_methodproto): Likewise.
1219 (c_parser_objc_maybe_method_attributes): New.
1220 (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
1221 missing definition, similar to that in ObjC++.
1223 2010-09-28 Richard Henderson <rth@redhat.com>
1225 * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
1226 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
1227 (CONFIG_SJLJ_EXCEPTIONS): Remove.
1228 (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
1229 (STACK_CHECK_PROTECT): Likewise.
1230 * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
1231 (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
1232 (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
1233 (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
1234 (dwarf2out_assembly_start): Likewise.
1235 * except.c (init_eh): Use targetm.except_unwind_info.
1236 (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
1237 (output_one_function_exception_table): Likewise.
1238 * final.c: Unconditionally include dwarf2out.h.
1239 (final_start_function): Unconditionally call dwarf2out routines.
1240 (final_end_function, final_scan_insn): Likewise.
1241 * function.c (expand_function_end): Use targetm.except_unwind_info.
1242 * opts.c (decode_options): Use targetm.except_unwind_info.
1243 * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
1244 * target.def (debug_unwind_info, except_unwind_info): New.
1245 * target.h (enum unwind_info_type): New.
1246 * targhooks.c (default_debug_unwind_info): New.
1247 (default_except_unwind_info): New.
1248 (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
1249 * targhooks.h: Declare them.
1250 * tree-tailcall.c: Include "target.h"
1251 (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
1252 * Makefile.in (tree-tailcall.o): Update.
1253 * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
1254 (lhd_gcc_personality): Likewise.
1256 * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
1257 (TARGET_EXCEPT_UNWIND_INFO): New.
1258 (DWARF2_UNWIND_INFO): Update.
1259 (TARGET_DEBUG_UNWIND_INFO): New.
1260 * doc/tm.texi: Rebuild.
1262 * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
1263 targetm.except_unwind_info.
1265 * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
1266 (arm_except_unwind_info): New.
1267 (arm_compute_func_type): Use it.
1268 (arm_expand_prologue, thumb_pushpop): Likewise.
1269 (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
1270 (arm_unwind_emit, arm_output_fn_unwind): Likewise.
1271 * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
1272 * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
1273 (DWARF2_UNWIND_INFO): Remove.
1274 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
1275 (ARM_EABI_UNWIND_TABLES): Remove.
1277 * config/ia64/ia64.c (ia64_debug_unwind_info): New.
1278 (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
1279 (ia64_except_unwind_info): New.
1280 (ia64_output_function_prologue): Use it.
1281 (ia64_add_bundle_selector_before): Likewise.
1282 (ia64_reorg, ia64_asm_unwind_emit): Likewise.
1283 * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
1284 (TARGET_UNWIND_INFO): Remove.
1286 * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
1288 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1290 * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
1291 (c_parser_objc_protocol_definition): Likewise.
1292 (c_parser_external_declaration): Provide dummy attribute arguments.
1293 (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
1294 (c_parser_objc_class_definition): Handle attributes.
1295 (c_parser_objc_protocol_definition): Likewise.
1297 2010-09-28 Tobias Burnus <burnus@net-b.de>
1301 * toplev.h (save_decoded_options, save_decoded_options_count):
1302 New global variables.
1303 * toplev.c (save_decoded_options, save_decoded_options_count):
1306 2010-09-28 Ian Lance Taylor <iant@google.com>
1308 * config/i386/i386.c (ix86_supports_split_stack): Test
1309 HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
1311 2010-09-28 Ian Lance Taylor <iant@google.com>
1314 * opts.c (decode_options): Don't test whether the target supports
1315 split stack if flag_split_stack == 0.
1317 2010-09-28 Jan Hubicka <jh@suse.cz>
1319 * builtin-attrs.def (ATTR_LEAF): New attribute.
1320 (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
1321 ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
1322 ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
1323 ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
1324 ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
1325 ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
1326 ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
1327 * sync-builtins.def: Annotate all builtins by leaf.
1328 * omp-builtins.def: Annotate all builtins by leaf.
1329 * builtins.def: Annotate relevant builtins with leaf attribute.
1330 (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
1331 ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
1334 2010-09-28 Jan Hubicka <jh@suse.cz>
1336 * tree-ssa-ccp.c (fold_ctor_reference): New function.
1337 (fold_const_aggregate_ref): Use it.
1338 * fold-const.c (canonicalize_constructor_val): Check that we don't fold
1339 into external static.
1341 2010-09-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1344 * config/i386/i386.opt (mvect8-ret-in-mem): Define.
1345 * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
1346 (ix86_solaris_return_in_memory): Remove.
1347 * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
1348 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
1349 (TARGET_SUBTARGET_DEFAULT): Redefine.
1350 * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
1351 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
1352 (TARGET_SUBTARGET_DEFAULT): Redefine.
1353 * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
1355 (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
1357 2010-09-29 Alan Modra <amodra@gmail.com>
1360 * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
1361 * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
1362 * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
1364 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
1365 (rs6000_emit_prologue): Don't just create frame save info for r2,
1368 2010-09-28 Richard Henderson <rth@redhat.com>
1370 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
1371 when 8 bytes are requested.
1373 2010-09-28 Tristan Gingold <gingold@adacore.com>
1375 * config/avr/avr.c (expand_prologue): Set
1376 current_function_static_stack_size.
1378 2010-09-28 Tristan Gingold <gingold@adacore.com>
1380 * config/alpha/alpha.md: Change the initial condition of the
1383 2010-09-28 Uros Bizjak <ubizjak@gmail.com>
1385 * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
1386 Split from *avx_<maxmin:code><mode>3.
1387 (*avx_<smaxmin:code><mode>3): Ditto.
1388 * config/i386/i386.md (maxmin): Remove code iterator.
1390 2010-09-27 Ian Lance Taylor <iant@google.com>
1392 * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
1393 requires assembler support for CFI directives.
1395 2010-09-27 Richard Henderson <rth@redhat.com>
1397 * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
1399 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
1401 * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
1402 that AFTER is not in the range FROM..TO, inclusive.
1404 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
1405 Bernd Schmidt <bernds@codesourcery.com>
1407 PR rtl-optimization/45792
1408 * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
1409 If not all insns are to be merged, for each edge, stash the
1410 next candidate after the to-be-merged insns before doing the
1411 merge, and use them for the retry at the new insertion point.
1412 Handle CC0 targets when retrying.
1414 2010-09-27 Ian Lance Taylor <iant@google.com>
1416 * common.opt (fsplit-stack): New option.
1417 * opts.c (decode_options): Set flag_split_stack to final value.
1418 * target.def (supports_split_stack): New hook.
1419 * gcc.c (STACK_SPLIT_SPEC): Define.
1420 (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
1421 * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
1422 (Code Gen Options): Document -fsplit-stack.
1423 * doc/extend.texi (Function Attributes): Mention no_split_stack.
1424 (Function Attributes): Document no_split_stack.
1425 * doc/tm.texi.in (Stack Smashing Protection): Add @hook
1426 TARGET_SUPPORTS_SPLIT_STACK.
1427 * doc/tm.texi: Rebuild.
1428 * function.c (thread_prologue_and_epilogue_insns): If
1429 flag_split_stack, add split stack prologue.
1430 * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
1431 * varasm.c (saw_no_split_stack): New static variable.
1432 (assemble_start_function): Set saw_no_split_stack if the function
1433 has the no_split_stack attribute.
1434 (file_end_indicate_split_stack): New function.
1435 * output.h (file_end_indicate_split_stack): Declare.
1436 * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
1438 * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
1440 * config/i386/i386.c (ix86_option_override_internal): Don't set
1441 expand_builtin_va_start to NULL if -fsplit-stack.
1442 (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
1444 (ix86_va_start): If -fsplit-stack, get overflow pointer from
1445 scratch register set by prologue.
1446 (ix86_code_end): If -fsplit-stack, call
1447 file_end_indicate_split_stack.
1448 (ix86_supports_split_stack): New static function.
1449 (SPLIT_STACK_AVAILABLE): Define.
1450 (split_stack_prologue_scratch_regno): New static function.
1451 (split_stack_fn): New static variable.
1452 (ix86_expand_split_stack_prologue): New function.
1453 (ix86_live_on_entry): New static function.
1454 (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
1455 (output_pic_addr_const): Likewise.
1456 (i386_asm_output_addr_const_extra): Likewise.
1457 (ix86_expand_call): Change return type to rtx. Return the new
1459 (TARGET_SUPPORTS_SPLIT_STACK): Define.
1460 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1461 * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
1462 (split_stack_prologue, split_stack_return): New insns.
1463 (split_stack_space_check): New insn.
1464 * config/i386/i386.h (struct machine_function): Add
1465 split_stack_varargs_pointer field.
1466 * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
1467 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
1468 * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
1469 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
1470 * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
1472 (ix86_expand_call): Update declaration.
1474 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1476 * doc/objc.texi (Type encoding): Added the new 'long double' (D)
1477 code. Added byref, which was missing in the list of codes.
1478 Explain that enumeration values are encoded as the integer type
1479 that the compiler uses to store them. Explain and make examples
1480 of how 'const' interacts with pointers, and the complication of
1481 the encoding of 'const char *'.
1482 (Legacy type encoding): New subsection, explaining that GCC emits
1483 incorrect type encodings for the NeXT runtime for compatibility
1485 (@@encode): New subsection, explaining @encode and particularly
1486 that protocol qualifiers are not recognized inside an @encode()
1488 (Method signatures): New subsection, explaining how method
1489 signatures are encoded.
1491 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1493 Merge from 'apple/trunk' branch on FSF servers. Removed small
1494 change in build_conditional_expr that had been added when fixing
1495 PR objc/27377 and which did the same check in a less complete way.
1497 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
1500 * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
1501 looking for objective-c common pointer types.
1503 2005-06-22 Ziemowit Laski <zlaski@apple.com>
1506 * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
1507 use their ObjC common type.
1509 2010-09-27 Richard Guenther <rguenther@suse.de>
1511 * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
1513 2010-09-27 Jie Zhang <jie@codesourcery.com>
1515 * print-tree.c (print_node): Print in-constant-pool.
1517 2010-09-27 Uros Bizjak <ubizjak@gmail.com>
1519 * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
1520 (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
1521 (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
1522 (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
1524 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
1526 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
1527 from pro_epilogue_adjust_stack_<mode>_{1,2}.
1528 (pro_epilogue_adjust_stack_<mode>_add): Rename from
1529 pro_epilogue_adjust_stack_<mode>_3.
1530 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
1531 renamed pro_epilogue_adjust_stack_{si,di}_add.
1532 (ix86_expand_prologue): Use indirect functions. Update for renamed
1533 pro_epilogue_adjust_stack_{si,di}_sub.
1535 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
1537 * config/i386/i386.md (movmsk_df): New insn.
1538 (signbitdf): Split out of signbit<mode>2. Generate movmsk_df
1539 sequence for TARGET_SSE_MATH.
1541 2010-09-26 Richard Sandiford <rdsandiford@googlemail.com>
1543 * config/mips/mips.c (mips_builtin_decls): Declare.
1544 (mips_init_builtins): Store function declarations in
1546 (mips_builtin_decl): New function.
1547 (TARGET_BUILTIN_DECL): Define.
1549 2010-09-25 Kai Tietz <kai.tietz@onevision.com>
1550 Richard Henderson <rth@redhat.com>
1552 * config/i386/cygwin.asm: Include auto-host.h.
1553 (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
1554 cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
1555 (__chkstk, __alloca): Annotate for dwarf2 unwind info. Drop
1556 alignment code from the 64-bit path. Use gas local labels.
1557 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
1558 from _di_2. Remove the useless constant integer argument.
1559 (pro_epilogue_adjust_stack_<mode>_3): New.
1560 (allocate_stack_worker_probe_<mode>): Macroize from
1561 allocate_stack_worker_{32,64}. Use __chkstk_ms. Update all users.
1562 * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
1563 use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
1564 (__chkstk_ms): New function.
1565 * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
1566 * gcc/config/i386/t-interix: Likewise.
1567 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
1568 (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
1569 (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
1570 * configure, config.in: Rebuild.
1572 2010-09-25 Eric Botcazou <ebotcazou@adacore.com>
1574 * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
1575 statements because of the return slot optimization.
1577 2010-09-25 Anatoly Sokolov <aesok@post.ru>
1579 * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
1580 * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
1581 * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
1582 (class_likely_spilled_p): Rename to...
1583 (avr_class_likely_spilled_p): ...this. Make static. Change argument
1584 type to reg_class_t.
1586 2010-09-24 Jan Hubicka <jh@suse.cz>
1588 * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
1589 (lto_symtab_resolve_symbols): Set it.
1590 (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
1591 store resolution field in cgraph/varpool.
1592 * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
1593 (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
1594 (cgraph_dump_node): Drop used_from_object_file.
1595 (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
1596 (cgraph_function_body_availability): Use decl_replaceable_p.
1597 (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
1598 (cgraph_can_remove_if_no_direct_calls_and_refs): Use
1599 cgraph_used_from_object_file_p.
1600 (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
1601 cgraph_used_from_object_file_p.
1602 (resolution_used_from_other_file_p): New functoin.
1603 (cgraph_used_from_object_file_p): New predicate.
1604 * cgraph.h: Include plugin-api.h
1605 (struct cgraph_local_info): Remove used_from_object_file.
1606 (struct cgraph_node): Add resolution field.
1607 (struct varpool_node): Likewise; remove used_from_object_file;
1608 reove const_value_known.
1609 (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
1610 cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
1611 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
1612 varpool_used_from_object_file_p): Declare.
1613 (varpool_get_node, varpool_extra_name_alias): Update prototype.
1614 * tree.h (DECL_REPLACEABLE_P): Remove.
1615 (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
1616 * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
1617 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
1618 input_overwrite_node, input_node, input_varpool_node): Stream
1620 * expr.c (expand_expr_real_1): Use const_value_known_p
1621 * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
1623 (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
1624 (function_and_variable_visibility): Set resolution for local vars
1625 and functions; use varpool_used_from_object_file_p.
1626 * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
1628 (default_binds_local_p_1): Use resolutoin info.
1629 (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
1630 * varpool.c (varpool_get_node): Constify.
1631 (const_value_known_p): Do not use vnode->const_value_known;
1632 use decl_replaceable_p.
1633 (varpool_finalize_decl): Do not set const_value_known.
1634 (cgraph_variable_initializer_availability): Use decl_replaceable_p
1635 (varpool_extra_name_alias): Return new node.
1636 (varpool_used_from_object_file_p): New function.
1638 2010-09-24 Richard Henderson <rth@redhat.com>
1640 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
1641 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
1642 (do_spill): Use REG_CFA_OFFSET.
1643 (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
1645 (ia64_expand_epilogue): Likewise.
1646 (process_set): Split into ...
1647 (process_cfa_adjust_cfa): this,
1648 (process_cfa_register): this,
1649 (process_cfa_offset): and this new function.
1650 (ia64_asm_unwind_emit): Use them. Expect REG_CFA_* notes
1651 instead of REG_FRAME_RELATED_EXPR.
1653 2010-09-24 Olivier Hainque <hainque@adacore.com>
1655 * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
1657 2010-09-24 Jan Hubicka <jh@suse.cz>
1659 * doc/extend.texi: (attribute leaf): Document.
1660 * tree.c (local_define_builtin): Handle ECF_LEAF.
1661 (build_common_builtin_nodes): Set ECF_LEAF where needed.
1662 * tree.h (ECF_LEAF): New.
1663 * ipa-reference.c (propagate_bits): For leaf calls propagate ever
1664 overwrittable and unavailable functions.
1665 (ipa_init): Put all_module_statics into optimization_summary_obstack.
1666 (copy_global_bitmap): Do not copy all_module_statics.
1667 (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
1668 (propagate): Handle overwritable and unavailable leaf functions;
1669 initialize global info for overwritable and unavailable leaf functions;
1670 do not free all module statics.
1671 (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
1673 * calls.c (flags_from_decl_or_type): Handle leaf.
1674 * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
1677 2010-09-24 Basile Starynkevitch <basile@starynkevitch.net>
1679 * gengtype.c: Reindented.
1680 * gengtype.h: Reindented.
1681 * gengtype-parse.c: Reindented.
1683 2010-09-24 Jan Hubicka <jh@suse.cz>
1685 PR tree-optimization/45738
1686 PR tree-optimization/45741
1687 * expr.c (string_constant): Allow CONST_DECL too;
1688 check that DECL_INITIAL is set.
1689 * varpool.c (const_value_known_p): Only look into VAR_DECL
1692 2010-09-24 Joseph Myers <joseph@codesourcery.com>
1694 * common.opt (undef): New.
1696 2010-09-24 Jakub Jelinek <jakub@redhat.com>
1699 * rtl.h (enum global_rtl_index): Add
1700 GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
1701 (LAST_VIRTUAL_POINTER_REGISTER): Define.
1702 (virtual_preferred_stack_boundary_rtx,
1703 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
1704 (LAST_VIRTUAL_REGISTER): Increase by one.
1705 (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
1706 instead of LAST_VIRTUAL_REGISTER.
1707 * function.c (instantiate_new_reg): Handle
1708 virtual_preferred_stack_boundary_rtx.
1709 * emit-rtl.c (init_virtual_regs): Handle
1710 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
1711 (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
1712 * explow.c (round_push): If crtl->preferred_stack_boundary
1713 is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
1714 virtual_preferred_stack_boundary_rtx alignment instead of
1715 crtl->preferred_stack_boundary alignment.
1716 (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
1717 macros. Never decrease crtl->preferred_stack_boundary,
1718 use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
1719 instead of PREFERRED_STACK_BOUNDARY. Don't modify
1720 stack_pointer_delta in dynamic allocation, even when size
1722 (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
1724 * print-rtl.c (print_rtx): Handle
1725 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
1726 * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
1727 LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
1728 * config/frv/frv.c (frv_emit_movsi): Likewise.
1729 * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
1730 * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
1734 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
1737 * calls.c (expand_call): Make sure that all variable sized
1738 adjustments are multiple of preferred stack boundary after
1741 2010-09-24 Iain Sandoe <iains@gcc.gnu.org>
1742 Dominique Dhumieres <dominiq@lps.ens.fr>
1745 * gcc/config/darwin-driver.c (darwin_default_min_version):
1746 Adjust size passed to memcpy in two places.
1748 2010-09-24 Richard Guenther <rguenther@suse.de>
1750 * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
1751 Make sure to not call set_type_context with error_mark_node.
1752 * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
1754 2010-09-24 Richard Guenther <rguenther@suse.de>
1756 * Makefile.in (OBJS-onestep): Remove.
1757 (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
1758 (libbackend.a): Remove onestep support.
1759 (libbackend.o): Remove.
1760 * configure.ac (--enable-intermodule): Remove.
1761 * configure: Regenerate.
1763 2010-09-24 Bernd Schmidt <bernds@codesourcery.com>
1765 * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
1766 reaching the end of a block if it occurs at a DEBUG_INSN.
1768 2010-09-09 Tristan Gingold <gingold@adacore.com>
1771 * config/vms/vms-crt0-64.c: Removed.
1772 * config/vms/vms-crt0.c: Removed.
1773 * config/vms/vms-psxcrt0-64.c: Removed.
1774 * config/vms/vms-psxcrt0.c: Removed.
1775 * config/vms/vms-ucrt0.c: New file.
1776 * config/vms/t-vms64: Removed.
1777 * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it. Remove DECC.
1778 Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
1779 * config.gcc (alpha-dec-vms): Use t-vms.
1781 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
1783 * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
1784 underfull hbox in DVI output.
1785 (-fobjc-class-cxx-cdtors): Same change.
1786 (-fobjc-exceptions): Tidied up documentation. Explain what the
1787 option does, but moved the (lenghty) description of the exception
1788 syntax into objc.texi.
1789 (-fobjc-gc): Explain that the option is not useful with the GNU
1791 (-fzero-link): Explain that the GNU runtime always works in
1793 * doc/objc.texi: All sections: simplified @node declarations
1794 removing specification of next, previous, up node.
1795 (Objective-C): Updated introduction.
1796 (Garbage Collection): Updated. The bohem-gc library is now
1797 included in gcc itself. Mention that this section only applies to
1798 the GNU Objective-C runtime.
1799 (compatibility_alias): Small tidy up.
1800 (Exceptions): New section mostly containing text previously in the
1801 description of the -fobjc-exception command-line option.
1802 (Synchronization): Same.
1804 2010-09-24 Uros Bizjak <ubizjak@gmail.com>
1806 * config/i386/i386.md (ix86_code_end): Move the initialization of
1807 xops array near the consumer. Use AX_REG and SP_REG instead of
1808 numerical constants.
1810 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
1812 * c-typeck.c (convert_arguments): Use warning 'too many arguments to
1813 method [methodname]' for an Objective-C method instead of the less
1814 satisfactory 'too many arguments to function' (with no method name).
1816 2010-09-23 Eric Botcazou <ebotcazou@adacore.com>
1818 * tree-flow.h (execute_update_addresses_taken): Remove parameter.
1819 * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
1820 (execute_update_addresses_taken): Remove parameter. Execute the
1821 optimization unconditionally.
1822 * passes.c (execute_function_todo): Call execute_update_addresses_taken
1823 unconditionally if TODO_rebuild_alias is set, else only when optimizing
1824 if TODO_update_address_taken is set.
1826 2010-09-23 Anatoly Sokolov <aesok@post.ru>
1828 * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1829 * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
1830 * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1831 (arm_output_addr_const_extra): Make static.
1833 2010-09-23 Uros Bizjak <ubizjak@gmail.com>
1835 * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
1836 define as unspec_volatile.
1837 ("nops"): Define as unspec_volatile. Use fputs to write to
1838 asm_out_file directly. Output NOPs on separate lines using while loop.
1839 * config/i386/i386.c (ix86_code_end): Use fputs to write to
1840 asm_out_file directly. Output NOPs on separate lines using while loop.
1842 2010-09-23 Richard Guenther <rguenther@suse.de>
1844 PR tree-optimization/45565
1845 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
1846 Make sure to adjust the fndecl before replacing the stmt.
1848 2010-09-23 Richard Guenther <rguenther@suse.de>
1851 * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
1852 gimplifying MEM_REF.
1854 2010-09-23 Alan Modra <amodra@gmail.com>
1856 * config/rs6000/rs6000.c (toc_relative_ok): Delete.
1857 (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
1859 2010-09-23 Bernd Schmidt <bernds@codesourcery.com>
1861 PR rtl-optimization/44374
1862 * basic-block.h (enum bb_flags): Add BB_MODIFIED.
1863 * df-core.c (df_set_bb_dirty): Set it.
1864 * ifcvt.c (find_memory): Remove function.
1865 (dead_or_predicable): Use can_move_insns_across.
1866 * df.h (can_move_insns_across): Declare function.
1867 * cfgcleanup.c (block_was_dirty): New static variable.
1868 (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
1869 than df_get_bb_dirty.
1870 (try_head_merge_bb): New static function.
1871 (try_optimize_cfg): Call it. Call df_analyze if block_was_dirty
1873 * df-problems.c: Include "target.h"
1874 (df_simulate_find_uses): New static function.
1875 (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
1876 (find_memory, find_memory_store): New static functions.
1877 (can_move_insns_across): New function.
1878 * Makefile.in (df-problems.o): Update dependencies.
1880 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
1883 * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
1884 is specified and the suffix of the file isn't ".c".
1885 * config/sparc/linux64.h (ASM_SPEC): Likewise.
1887 2010-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1889 * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
1890 * doc/cppopts.texi: Fix markup of index entry.
1891 * doc/extend.texi (Constructing Calls): Fix markup of
1892 __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
1893 (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
1894 (Vague Linkage, C++ Attributes): Fix markup of index entries and
1896 * doc/invoke.texi (Option Summary): Fix spacing. Rewrap to
1898 (C Dialect Options, C++ Dialect Options, Warning Options)
1899 (Debugging Options, Spec Files, Darwin Options)
1900 (i386 and x86-64 Options, MIPS Options)
1901 (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
1902 index entries, avoid abbreviations, allow URLs to wrap, avoid
1903 long lines, avoid overlong pages from long @itemx lists.
1904 * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
1905 * doc/standards.texi (Standards): Likewise.
1906 * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
1908 2010-09-22 Joseph Myers <joseph@codesourcery.com>
1910 * opts-common.c (prune_options): Make static. Work with decoded
1912 (decode_cmdline_options_to_array): Call prune_options. Don't
1913 resize option array here.
1914 * opts.h (prune_options): Remove prototype.
1915 * gcc.c (process_command): Take decoded options; don't call
1916 decode_cmdline_options_to_array here. Use decoded options for argv[0].
1917 (main): Call decode_cmdline_options_to_array here instead of
1918 prune_options. Update call to process_command.
1919 * config/darwin-driver.c: Include opts.h.
1920 (darwin_default_min_version): Work with decoded options. Don't
1921 handle -b or -V here.
1922 * config/darwin.h (darwin_default_min_version): Update prototype.
1923 (GCC_DRIVER_HOST_INITIALIZATION): Update call to
1924 darwin_default_min_version.
1925 * config/i386/cygwin.h (mingw_scan): Update prototype.
1926 (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
1927 * config/i386/cygwin1.c: Include opts.h.
1928 (mingw_scan): Work with decoded options.
1929 * config/i386/t-cygwin (cygwin1.o): Update dependencies.
1930 * config/t-darwin (darwin-driver.o): Update dependencies.
1932 2010-09-22 Joseph Myers <joseph@codesourcery.com>
1934 * common.opt (-assemble, -compile, -coverage, -debug, -dump,
1935 -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
1936 -for-assembler, -for-assembler=, -for-linker, -for-linker=,
1937 -force-link, -force-link=, -language, -language=,
1938 -library-directory, -library-directory=, -no-canonical-prefixes,
1939 -no-standard-libraries, -no-warnings, -optimize, -output,
1940 -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
1941 -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
1942 -print-file-name=, -print-libgcc-file-name,
1943 -print-multi-directory, -print-multi-lib,
1944 -print-multi-os-directory, -print-prog-name, -print-prog-name=,
1945 -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
1946 -profile, -save-temps, -shared, -specs, -specs=, -static,
1947 -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
1949 (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
1950 * gcc.c (A Short Introduction to Adding a Command-Line Option):
1952 (cc1_options): Correct specs for passing down --help,
1953 --target-help and --help=*. Add spec for passing down --version.
1954 (struct option_map, option_map, target_option_translations,
1955 translate_options): Remove.
1956 (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
1957 and OPT__target_help instead of OPT_fversion, OPT_fhelp,
1958 OPT_fhelp_ and OPT_ftarget_help.
1959 (process_command): Don't call translate_options. Call
1960 decode_cmdline_options_to_array before checking for
1961 -no-canonical-prefixes using decoded options.
1962 * opts-common.c (tm.h): Update comment on #include.
1963 (find_opt): Allow abbreviations of long options.
1964 (struct option_map, option_map): New.
1965 (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
1967 (target_option_translations): New.
1968 (decode_cmdline_options_to_array): Handle
1969 TARGET_OPTION_TRANSLATE_TABLE in driver.
1970 * opts.c (common_handle_option): Don't handle OPT_fhelp,
1971 OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
1973 2010-09-22 Richard Guenther <rguenther@suse.de>
1975 * tree-inline.c (optimize_inline_calls): Schedule cleanups
1976 only if we inlined something. Block compaction and conditional
1977 folding are done by cfg cleanup. Schedule update-address-taken.
1978 (tree_function_versioning): Remove redundant call to number_blocks.
1979 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
1980 folding is done by cfg cleanup.
1981 * passes.c (init_optimization_passes): Remove update-address-taken
1982 pass after IPA inlining.
1984 2010-09-22 Chung-Lin Tang <cltang@codesourcery.com>
1986 * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
1987 to update conditions. Fix reg_mode[] check.
1989 2010-09-22 Hariharan Sandanagobalane <hariharan@picochip.com>
1991 * config/picochip/picochip.md (movhicc): Use expand to check whether
1992 movhicc is available and split it after reload.
1994 2010-09-22 Richard Guenther <rguenther@suse.de>
1996 * tree-ssanames.c (release_dead_ssa_names): Do not remove
1998 * passes.c (init_optimization_passes): Remove early CFG cleanup.
1999 * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
2000 (pass_cleanup_cfg): Likewise.
2001 (execute_fixup_cfg): Cleanup.
2002 * tree-pass.h (pass_cleanup_cfg): Remove.
2004 2010-09-22 Martin Jambor <mjambor@suse.cz>
2006 * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
2007 builtins if it is true.
2008 (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
2011 2010-09-22 Martin Jambor <mjambor@suse.cz>
2013 * tree-sra.c (struct access): New field grp_no_warning.
2014 (create_access_replacement): Set TREE_NO_WARNING according to
2016 (create_artificial_child_access): Use build_ref_for_model and set
2017 grp_no_warning if build_user_friendly_ref_for_offset fails.
2018 (propagate_subaccesses_across_link): Likewise.
2020 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
2023 * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
2026 2010-09-22 Tristan Gingold <gingold@adacore.com>
2028 * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
2030 2010-09-22 Uros Bizjak <ubizjak@gmail.com>
2032 * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
2033 * config/i386/i386.c (decide_alg): Update for rename.
2035 2010-09-22 Jakub Jelinek <jakub@redhat.com>
2037 PR rtl-optimization/45739
2038 * simplify-rtx.c (simplify_binary_operation_1): Optimize even
2039 vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
2041 2010-09-21 Anatoly Sokolov <aesok@post.ru>
2043 * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
2044 * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
2046 * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
2047 (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2049 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2052 * c-parser.c (c_parser_objc_method_definition): Check the return
2053 value of objc_start_method_definition and if false is returned,
2054 parse the method definition but emit no code.
2056 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2059 * c-decl.c (detect_field_duplicates): If compiling Objective-C,
2060 call objc_get_interface_ivars ().
2062 2010-09-21 Kai Tietz <kai.tietz@onevision.com>
2065 * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
2066 static chain-register is used for 64-bit.
2068 2010-09-21 Richard Guenther <rguenther@suse.de>
2070 * dwarf2out.c (is_cu_die): New function.
2071 (add_pubtype): Use it.
2072 (gen_subprogram_die): Likewise.
2073 (gen_struct_or_union_type_die): Likewise.
2074 (dwarf2out_finish): Likewise.
2075 (comp_unit_die): Rename to ...
2076 (single_comp_unit_die): ... this.
2077 (comp_unit_die): New function lazily constructing and
2078 returning single_comp_unit_die.
2079 (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
2080 base_type_die, subrange_type_die, modified_type_die,
2081 lower_bound_default, add_bound_info, add_prototyped_attribute,
2082 dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
2083 dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
2084 force_decl_die, gen_namespace_die, dwarf2out_decl,
2085 dwarf2out_start_source_file, dwarf2out_end_source_file,
2086 prune_unused_types, dwarf2out_finish): Use it.
2087 (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
2088 the global list of translation-unit decls.
2089 (dwarf2out_init): Do not create single_comp_unit_die here.
2090 (force_decl_die): Handle TRANSLATION_UNIT_DECL.
2092 2010-09-21 Richard Guenther <rguenther@suse.de>
2094 * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
2097 2010-09-21 Bernd Schmidt <bernds@codesourcery.com>
2099 * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
2100 (qhs_extenddi_cstr): Likewise.
2101 * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
2102 them for the source operand.
2104 2010-09-21 Uros Bizjak <ubizjak@gmail.com>
2106 * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
2107 to half_width. Use GET_MODE_BITSIZE to calculate mode size.
2108 (ix86_split_ashr): Ditto.
2109 (ix86_split_lshr): Ditto.
2111 2010-09-21 Richard Guenther <rguenther@suse.de>
2113 PR tree-optimization/45580
2114 * tree-ssa-propagate.c (substitute_and_fold): Always replace
2116 * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
2117 virtuals fold the call into a regular indirect one.
2119 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
2121 PR rtl-optimization/42775
2122 * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
2123 scheduling is enabled.
2125 2010-09-20 Jakub Jelinek <jakub@redhat.com>
2127 PR rtl-optimization/45728
2128 * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
2129 gen_lowpart_common first and if that fails, force_reg first
2130 before calling gen_lowpart.
2133 * cfgexpand.c (expand_one_stack_var_at): Use
2134 crtl->max_used_stack_slot_alignment as max_align, instead
2135 of maximum of that and PREFERRED_STACK_BOUNDARY.
2136 Don't call update_stack_alignment.
2138 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
2140 * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
2141 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
2142 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
2143 * system.h (LANG_HOOKS_HASH_TYPES): Poison.
2144 * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
2145 (build_nonstandard_integer_type): Likewise.
2146 (build_range_type_1): New function, built from...
2147 (build_range_type): ...this. Call build_range_type_1.
2148 (build_nonshared_range_type): New function.
2149 (build_array_type_1): New function, built from...
2150 (build_array_type: ...this. Call build_array_type_1.
2151 (build_nonshared_array_type): New function.
2152 * tree.h (build_nonshared_range_type): Declare.
2153 (build_nonshared_array_type): Likewise.
2155 2010-09-20 Anatoly Sokolov <aesok@post.ru>
2157 * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
2158 * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
2159 (arm_class_likely_spilled_p): New function.
2161 2010-09-20 Uros Bizjak <ubizjak@gmail.com>
2163 * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
2165 (ix86_split_ashl): Ditto.
2166 (ix86_split_ashr): Ditto.
2167 (ix86_split_lshr): Ditto.
2168 (ix86_adjust_counter): Ditto.
2170 2010-09-20 Nicola Pero <nicola.pero@meta-innovation.com>
2172 * c-family/c-common.h (constant_string_class): Documented with
2173 comment identical to the one already in c-common.c.
2175 2010-09-20 Jakub Jelinek <jakub@redhat.com>
2177 * dwarf2out.c (any_cfis_emitted): New static variable.
2178 (add_fde_cfi): Set it.
2179 (dwarf2out_frame_debug): Clear it before processing,
2180 if it is set afterwards, flush any queued reg saves.
2183 * dwarf2out.c (add_accessibility_attribute): Assume
2184 DW_ACCESS_private as the default for dwarf_version > 2
2185 and DW_TAG_class_type parent.
2186 (gen_inheritance_die): Assume DW_ACCESS_public as the default
2187 for dwarf_version > 2 and parent other than DW_TAG_class_type.
2189 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
2192 * arm.md (arm_movt): Only enable on machines with MOVT.
2194 2010-09-20 Jie Zhang <jie@codesourcery.com>
2196 * config/arm/arm.c (arm_address_offset_is_imm): New.
2197 (arm_early_store_addr_dep): New.
2198 (arm_early_load_addr_dep): New.
2199 * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
2200 (arm_early_load_addr_dep): Declare.
2201 (arm_address_offset_is_imm): Declare.
2202 * config/arm/cortex-m4.md: New file.
2203 * config/arm/cortex-m4-fpu.md: New file.
2204 * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
2205 (attr generic_sched): Exclude cortexm4.
2206 (attr generic_vfp): Exclude cortexm4.
2208 2010-09-20 Richard Guenther <rguenther@suse.de>
2211 * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
2213 2010-09-20 Jan Hubicka <jh@suse.cz>
2215 PR tree-optimize/45605
2216 * cgraph.h (const_value_known_p): Declare.
2217 (varpool_decide_const_value_known): Remove.
2218 * tree-ssa-ccp.c (get_base_constructor): Use it.
2219 * lto-cgraph.c (compute_ltrans_boundary): Likewise.
2220 * expr.c (string_constant): Likewise.
2221 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
2222 * ipa.c (ipa_discover_readonly_nonaddressable_var,
2223 function_and_variable_visibility): Likewise.
2224 * gimplify.c (gimplify_call_expr): Likewise.
2225 * gimple-fold.c (get_symbol_constant_value): Likewise.
2226 * varpool.c (varpool_decide_const_value_known): Replace by...
2227 (const_value_known_p): ... this one; handle other kinds of DECLs
2228 too and work for automatic vars.
2229 (varpool_finalize_decl): Use const_value_known_p.
2231 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
2234 * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
2236 2010-09-20 Richard Guenther <rguenther@suse.de>
2238 PR tree-optimization/45705
2239 * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
2241 2010-09-20 Jakub Jelinek <jakub@redhat.com>
2243 PR rtl-optimization/45695
2244 * combine.c (try_combine): When splitting a two set pattern,
2245 make sure the pattern which will be put into i2 doesn't use REGs
2246 or MEMs set by insns in between i2 and i3.
2248 2010-09-19 Jan Hubicka <jh@suse.cz>
2251 * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
2252 processing same node twice.
2254 2010-09-19 Anatoly Sokolov <aesok@post.ru>
2256 * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
2257 * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
2258 (bfin_class_likely_spilled_p): New function
2260 2010-09-19 Ira Rosen <irar@il.ibm.com>
2262 PR tree-optimization/45714
2263 * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
2264 created in vectorizable_call instead of the original statement in
2267 2010-09-19 Uros Bizjak <ubizjak@gmail.com>
2269 * config/i386/i386-protos.h (split_double_mode): New prototype.
2270 (split_di, split_ti): Remove prototypes.
2271 * config/i386/i386.c (split_double_mode): New function.
2272 (split_di, split_ti): Remove.
2273 (ix86_expand_branch): Use split_double_mode.
2274 (ix86_split_to_parts): Ditto.
2275 (ix86_split_ashl): Ditto.
2276 (ix86_split_ashr): Ditto.
2277 (ix86_split_lshr): Ditto.
2278 (ix86_force_to_memory): Ditto.
2279 * config/i386/i386.md: Use split_double_mode in double-mode splitters.
2281 2010-09-18 Jan Hubicka <jh@suse.cz>
2283 PR tree-optimization/45453
2284 * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
2285 virtual functions are reachable.
2286 * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
2287 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
2288 * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
2289 when modifying function.
2291 2010-09-18 Jan Hubicka <jh@suse.cz>
2293 PR tree-optimization/45605
2294 * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
2295 * gimple-fold.c (static_object_in_other_unit_p): New function.
2296 (canonicalize_constructor_val): Use it.
2297 (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
2299 (gimple_fold_obj_type_ref_known_binfo): Use
2300 static_object_in_other_unit_p.
2302 2010-09-18 Richard Guenther <rguenther@suse.de>
2304 PR tree-optimization/45709
2305 * tree-inline.c (copy_phis_for_bb): Delay commit of edge
2306 insertions until after all PHI nodes of the block are processed.
2308 2010-09-18 Tijl Coosemans <tijl@coosemans.org>
2310 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
2312 2010-09-18 Kai Tietz <kai.tietz@onevision.com>
2314 * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
2316 2010-09-18 Richard Guenther <rguenther@suse.de>
2318 PR tree-optimization/45709
2319 * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
2321 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
2323 * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
2324 (dot_deps_stmt): Same.
2325 * graphite-poly.c (dot_lst): Same.
2326 * graphite-scop-detection.c (dot_all_scops): Same.
2329 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
2332 2009-12-16 Ben Elliston <bje@au.ibm.com>
2334 * tree-data-ref.c (dot_rdg_1): Added back.
2335 (dot_rdg): Same. Added "#if 0" around system call.
2337 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
2338 Richard Henderson <rth@redhat.com>
2340 * config/i386/i386.c (initial_ix86_tune_features): Add
2341 X86_TUNE_PAD_SHORT_FUNCTION.
2342 (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
2343 (ix86_count_insn): New.
2344 (ix86_pad_short_function): Likewise.
2345 (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
2347 * config/i386/i386.h (ix86_tune_indices): Add
2348 X86_TUNE_PAD_SHORT_FUNCTION.
2349 (TARGET_PAD_SHORT_FUNCTION): New.
2351 * config/i386/i386.md (UNSPEC_NOPS): New.
2354 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
2357 * calls.c (expand_call): Make sure that all variable sized
2358 adjustments are multiple of preferred stack boundary after
2361 2010-09-17 DJ Delorie <dj@redhat.com>
2363 * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
2364 passed an invalid value, print an error instead of ICEing.
2365 (valid_psw_flag): New.
2366 (rx_expand_builtin): Call it for setpsw/clrpsw.
2367 (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
2369 * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
2370 (bitclr_in_memory): Likewise.
2371 (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
2373 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
2376 * cfgexpand.c (update_stack_alignment): New.
2377 (get_decl_align_unit): Use it.
2378 (expand_one_stack_var_at): Call update_stack_alignment.
2380 2010-09-17 Richard Guenther <rguenther@suse.de>
2382 * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
2383 Properly copy the read string.
2385 2010-09-17 Joseph Myers <joseph@codesourcery.com>
2387 * doc/options.texi (Variable): Document.
2388 * optc-gen.awk, opth-gen.awk: Handle Variable records. Don't
2389 generate target_flags declarations explicitly. Don't define
2390 VarExists variables for the driver.
2391 * common.opt (target_flags): New Variable record.
2392 (flag_dump_unnumbered, flag_dump_unnumbered_links,
2393 flag_var_tracking, flag_var_tracking_assignments,
2394 flag_var_tracking_assignments_toggle): Don't mark variables with
2396 * config/i386/i386.c (ix86_isa_flags): Don't define here.
2397 * config/i386/i386.opt (ix86_isa_flags): Define here.
2398 * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
2399 * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
2401 * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
2402 * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
2403 Only define for generator programs.
2404 * rtlanal.c (target_flags): Remove.
2405 * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
2406 flag_var_tracking_assignments_toggle): Remove.
2408 2010-09-17 Michael Matz <matz@suse.de>
2410 PR tree-optimization/43432
2411 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
2412 Accept backwards consecutive accesses.
2413 (vect_create_data_ref_ptr): If step is negative generate
2415 * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
2416 (perm_mask_for_reverse, reverse_vec_elements): New functions.
2417 (vectorizable_load): Handle loads with negative steps when easily
2420 2010-09-03 Jan Hubicka <jh@suse.cz>
2422 * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
2424 2010-09-03 Naveen H.S <naveen.S@kpitcummins.com>
2426 * config/v850/v850.c (v850_function_value_regno_p): Make static.
2427 Adjust comments. Declare.
2428 (TARGET_FUNCTION_VALUE_REGNO_P): Define.
2429 * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
2431 2010-09-17 Richard Guenther <rguenther@suse.de>
2433 * common.opt (combine): Remove.
2434 * gcc.c (default_compilers): Remove specs testing combine.
2435 The C compilers no longer can combine.
2436 (option_map): Remove -combine.
2437 (display_help): Remove -combine.
2438 (driver_handle_option): Remove OPT_combine handling.
2439 (compile_input_file_p): Remove.
2440 (do_spec): Remove code concerning combine.
2442 * doc/invoke.texi: Remove traces of -combine.
2443 * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
2445 2010-09-17 Richard Guenther <rguenther@suse.de>
2448 * builtins.c (fold_builtin_memory_op): Always properly adjust
2449 alignment of memory accesses.
2451 2010-09-16 Jan Hubicka <jh@suse.cz>
2453 * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
2456 2010-09-16 H.J. Lu <hongjiu.lu@intel.com>
2458 * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
2460 * config/i386/i386.c (predict_jump): Add prototype.
2461 (flag_opts): Add -m8bit-idiv.
2462 (ix86_split_idivmod): New.
2464 * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
2465 Add 2 splitters for SI/DI mode divide.
2466 (divmod<mode>4_1): New pattern.
2467 (udivmod<mode>4_1): Likewise.
2468 (testdi_ccno_1): Likewise.
2470 * config/i386/i386.opt (m8bit-idiv): New.
2472 * doc/invoke.texi: Document -m8bit-idiv.
2474 2010-09-16 Reza Yazdani <reza.yazdani@amd.com>
2477 * config/i386/i386.c (min_insn_size): Moved out of the
2478 ASM_OUTPUT_MAX_SKIP_PAD ifdef.
2480 2010-09-16 Jan Hubicka <jh@suse.cz>
2482 * lto-cgraph.c (lto_output_node): Fix handling of clones.
2483 * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
2484 unreachable clones with reachable clones.
2485 * tree-inline.c (copy_bb): Fix sanity checking when producing
2488 2010-09-16 Anatoly Sokolov <aesok@post.ru>
2490 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
2491 (TARGET_MEMORY_MOVE_COST): Define.
2492 (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
2494 2010-09-16 Alexander Monakov <amonakov@ispras.ru>
2496 * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
2497 maybe_tidy_empty_bb.
2500 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
2501 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
2503 2010-09-16 Joseph Myers <joseph@codesourcery.com>
2505 * target.def (target_option.optimization): New hook.
2506 * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
2507 TARGET_OPTION_OPTIMIZATION hook.
2508 * doc/tm.texi: Regenerate.
2509 * hooks.c (hook_void_int_int): New.
2510 * hooks.h (hook_void_int_int): Declare.
2511 * opts.c: Don't include tm_p.h.
2512 (decode_options): Use targetm.target_option.optimization instead
2513 of OPTIMIZATION_OPTIONS.
2514 * system.h (OPTIMIZATION_OPTIONS): Poison.
2515 * config/arm/arm-protos.h (arm_optimization_options): Remove.
2516 * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
2517 (arm_optimization_options): Rename to arm_option_optimization.
2519 * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
2520 * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
2521 (cris_option_optimization): New.
2522 * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
2523 * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
2524 (crx_option_optimization): New.
2525 * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
2526 * config/frv/frv-protos.h (frv_optimization_options): Remove.
2527 * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
2528 (frv_optimization_options): Rename to frv_option_optimization.
2530 * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
2531 * config/h8300/h8300.c (h8300_option_optimization): New.
2532 (TARGET_OPTION_OPTIMIZATION): Define.
2533 * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
2534 * config/i386/i386-protos.h (optimization_options): Remove.
2535 * config/i386/i386.c (optimization_options): Rename to
2536 ix86_option_optimization. Make static.
2537 (TARGET_OPTION_OPTIMIZATION): Define.
2538 * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
2539 * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
2540 * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
2541 (ia64_optimization_options): Rename to ia64_option_optimization.
2542 Make static. Call SUBTARGET_OPTIMIZATION_OPTIONS.
2543 * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove. Remove
2544 commented-out definition.
2545 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
2546 instead of OPTIMIZATION_OPTIONS.
2547 * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
2548 (m32r_option_optimization): New.
2549 * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
2550 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
2552 * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
2553 (mcore_option_optimization): New.
2554 * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
2555 * config/mep/mep-protos.h (mep_optimization_options): Remove.
2556 * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
2557 (mep_optimization_options): Rename to mep_option_optimization.
2558 Make static. Take unused level and size parameters.
2559 * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
2560 * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
2561 (mmix_option_optimization): New.
2562 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
2563 * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
2564 (pdp11_option_optimization): New.
2565 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
2566 * config/rs6000/rs6000-protos.h (optimization_options): Remove.
2567 * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
2568 (optimization_options): Rename to rs6000_option_optimization.
2570 * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
2571 * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
2572 * config/rx/rx.c (rx_set_optimization_options): Rename to
2573 rx_option_optimization. Make static. Take unused level and size
2575 (TARGET_OPTION_OPTIMIZATION): Define.
2576 * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
2577 * config/s390/s390-protos.h (optimization_options): Remove.
2578 * config/s390/s390.c (optimization_options): Rename to
2579 s390_option_optimization. Make static. Don't mark size parameter
2581 (TARGET_OPTION_OPTIMIZATION): Define.
2582 * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
2583 * config/sh/sh-protos.h (sh_optimization_options): Remove.
2584 * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
2585 (sh_optimization_options): Rename to sh_option_optimization. Make
2586 static. Don't mark parameters unused.
2587 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
2588 * config/spu/spu-protos.h (spu_optimization_options): Remove.
2589 * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
2590 (spu_optimization_options): Rename to spu_option_optimization.
2592 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
2593 * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
2594 (v850_option_optimization): New.
2595 * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
2596 * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
2597 (xtensa_option_optimization): New.
2598 * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
2600 2010-09-16 Joseph Myers <joseph@codesourcery.com>
2602 * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
2603 (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
2604 * doc/tm.texi: Regenerate.
2605 * system.h (OVERRIDE_OPTIONS): Poison.
2606 * target.def (override): Default to hook_void_void.
2607 * targhooks.c (default_target_option_override): Remove.
2608 * genmodes.c, machmode.def: Update comments mentioning
2610 * config/alpha/alpha-modes.def: Update comment mentioning
2611 alpha_override_options.
2612 * config/alpha/alpha-protos.h (override_options): Remove.
2613 * config/alpha/alpha.c (override_options): Rename to
2614 alpha_option_override. Call SUBTARGET_OVERRIDE_OPTIONS. Make static.
2615 (TARGET_OPTION_OVERRIDE): Define.
2616 * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
2617 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
2618 of OVERRIDE_OPTIONS.
2619 * config/arc/arc-protos.h (arc_init): Remove.
2620 * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
2621 (arc_init): Rename to arc_option_override. Make static.
2622 * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
2623 (OVERRIDE_OPTIONS): Remove.
2624 * config/arm/arm-protos.h (arm_override_options): Remove.
2625 * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
2626 (arm_override_options): Rename to arm_option_override. Make
2627 static. Call SUBTARGET_OVERRIDE_OPTIONS.
2628 * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
2629 * config/arm/arm.md: Update comment referring to arm_override_options.
2630 * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
2631 instead of OVERRIDE_OPTIONS.
2632 * config/avr/avr-protos.h (avr_override_options): Remove.
2633 * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
2634 (avr_override_options): Rename to avr_option_override. Make static.
2635 * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
2636 * config/bfin/bfin-protos.h (override_options): Remove (twice).
2637 * config/bfin/bfin.c (override_options): Rename to
2638 bfin_option_override. Make static.
2639 (TARGET_OPTION_OVERRIDE): Define.
2640 * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
2641 * config/cris/cris-protos.h (cris_override_options): Remove.
2642 * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
2643 (cris_override_options): Rename to cris_option_override. Make static.
2644 * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
2645 * config/frv/frv-protos.h (frv_override_options): Remove.
2646 * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
2647 (frv_override_options): Rename to frv_option_override. Make static.
2648 * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
2649 * config/h8300/h8300-protos.h (h8300_init_once): Remove.
2650 * config/h8300/h8300.c (h8300_init_once): Rename to
2651 h8300_option_override. Make static.
2652 (TARGET_OPTION_OVERRIDE): Define.
2653 * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
2654 * config/i386/i386-protos.h (override_options): Remove.
2655 * config/i386/i386.c (override_options): Rename to
2656 ix86_option_override_internal. Make static. Comments referring
2657 to this function and callers changed.
2658 (ix86_option_override): New.
2659 (TARGET_OPTION_OVERRIDE): Define.
2660 * config/i386/i386.h (OVERRIDE_OPTION): Remove.
2661 * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
2662 * config/ia64/ia64.c (ia64_file_start): Update comment referring
2663 to ia64_override_options.
2664 * config/iq2000/iq2000-protos.h (override_options): Remove.
2665 * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
2666 (override_options): Rename to iq2000_option_override. Make static.
2667 * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
2668 * config/lm32/lm32-protos.h (lm32_override_options): Remove.
2669 * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
2670 (lm32_override_options): Rename to lm32_option_override. Make static.
2671 * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
2672 * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
2673 (m32r_option_override): New.
2674 (m32r_init): Update comment.
2675 * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
2676 * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
2677 * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
2678 (m68hc11_override_options): Rename to m68hc11_option_override.
2679 Make static. Return void.
2680 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
2681 * config/m68k/m68k-protos.h (override_options): Remove.
2682 * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
2683 (override_options): Rename to m68k_option_override. Make static.
2684 * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
2685 * config/mcore/mcore-protos.h (mcore_override_options): Remove.
2686 * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
2687 (mcore_override_options): Rename to mcore_option_override. Make
2689 * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
2690 * config/mep/mep-protos.h (mep_override_options): Remove.
2691 * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
2692 (mep_override_options): Rename to mep_option_override. Make static.
2693 * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
2694 * config/mmix/mmix-protos.h (mmix_override_options): Remove.
2695 * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
2696 (mmix_override_options): Rename to mmix_option_override. Make static.
2697 * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
2698 * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
2699 * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
2700 (mn10300_override_options): Rename to mn10300_option_override.
2702 * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
2703 * config/moxie/moxie-protos.h (moxie_override_options): Remove.
2704 * config/moxie/moxie.c (moxie_override_options): Rename to
2705 moxie_option_override. Make static.
2706 (TARGET_OPTION_OVERRIDE): Define.
2707 * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
2708 * config/picochip/picochip-protos.h (picochip_override_options):
2709 Remove. Update comment referring to picochip_override_options.
2710 * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
2711 (picochip_override_options): Rename to picochip_option_override.
2712 Make static. Update comment and definition of
2713 TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
2714 * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
2715 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2716 * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2717 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2718 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2719 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2720 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
2721 instead of OVERRIDE_OPTIONS.
2722 * config/rs6000/rs6000-modes.def: Update comment referring to
2723 rs6000_override_options.
2724 * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
2725 * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
2726 (rs6000_override_options): Rename to
2727 rs6000_option_override_internal. Make static. Commented
2728 referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
2729 (rs6000_option_override): New.
2730 * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
2731 instead of OVERRIDE_OPTIONS.
2732 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2733 * config/s390/s390-protos.h (override_options): Remove.
2734 * config/s390/s390.c (override_options): Rename to
2735 s390_option_override. Make static.
2736 (TARGET_OPTION_OVERRIDE): Define.
2737 * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
2738 * config/score/score-protos.h (score_override_options): Remove.
2739 * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
2740 (score_override_options): Rename to score_option_override. Make
2742 * config/score/score.h (OVERRIDE_OPTIONS): Remove.
2743 Update comment referring to override_options.
2744 * config/score/score3.c (score3_override_options): Rename to
2745 score3_option_override.
2746 * config/score/score3.h (score3_override_options): Rename to
2747 score3_option_override.
2748 * config/score/score7.c (score7_override_options): Rename to
2749 score7_option_override.
2750 * config/score/score7.h (score7_override_options): Rename to
2751 score7_option_override.
2752 * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
2753 * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
2754 (sparc_override_options): Rename to sparc_option_override. Make
2755 static. Call SUBTARGET_OVERRIDE_OPTIONS.
2756 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
2757 * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
2758 instead of OVERRIDE_OPTIONS.
2759 * config/spu/spu-protos.h (spu_override_options): Remove.
2760 * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
2761 (spu_override_options): Rename to spu_option_override. Make
2763 * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
2764 * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
2766 * config/vax/vax-protos.h (override_options): Remove.
2767 * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
2768 (override_options): Rename to vax_option_override. Make static.
2769 Call SUBTARGET_OVERRIDE_OPTIONS.
2770 * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
2771 * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
2772 * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
2773 * config/xtensa/xtensa-protos.h (override_options): Remove.
2774 * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
2775 (override_options): Rename to xtensa_option_override. Make static.
2776 * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
2778 2010-09-16 Richard Guenther <rguenther@suse.de>
2780 PR tree-optimization/45623
2781 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
2782 (get_constraint_for_component_ref): If computing a constraint
2783 for the rhs handle type punning through unions.
2784 (get_constraint_for_address_of): Adjust.
2785 (get_constraint_for_1): Likewise.
2786 (get_constraint_for): Likewise.
2787 (get_constraint_for_rhs): New function.
2788 (do_structure_copy): Adjust.
2789 (make_constraint_to): Likewise.
2790 (handle_const_call): Likewise.
2791 (find_func_aliases): Likewise.
2792 (process_ipa_clobber): Likewise.
2793 (create_variable_info_for): Likewise.
2795 2010-09-16 Ira Rosen <irar@il.ibm.com>
2797 * tree-vectorizer.c: Fix documentation.
2798 * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
2799 (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
2800 is_pattern_stmt_p, is_loop_header_bb_p,
2801 stmt_vinfo_set_inside_of_loop_cost,
2802 stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
2803 known_alignment_for_access_p): Likewise.
2804 * tree-vect-loop.c: Fix documentation.
2805 (vect_get_cost): Start function name from new line.
2806 * tree-vect-data-refs.c: Fix documentation.
2807 * tree-vect_stmts.c: Likewise.
2808 (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
2809 (vectorizable_store): Free vec_oprnds if allocated.
2810 (vectorizable_condition): Initialize several variables to avoid
2812 * tree-vect-slp.c: Fix documentation.
2814 2010-09-16 Richard Guenther <rguenther@suse.de>
2816 * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
2817 is TS_TRANSLATION_UNIT_DECL.
2818 (initialize_tree_contains_struct): Adjust.
2819 (all_translation_units): New global vector.
2820 (build_translation_unit_decl): New function.
2821 * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
2822 (struct tree_translation_unit_decl): New.
2823 (all_translation_units): Declare.
2824 (union tree_node): Add translation_unit_decl member.
2825 (build_translation_unit_decl): Declare.
2826 * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
2827 * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
2829 (pack_value_fields): Call it.
2830 (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
2831 (lto_output_ts_translation_unit_decl_tree_pointers): New function.
2832 (lto_output_tree_pointers): Call it.
2833 * lto-streamer-in.c (lto_input_tree_ref): Handle references
2834 to TRANSLATION_UNIT_DECL.
2835 (unpack_ts_translation_unit_decl_value_fields): New function.
2836 (unpack_value_fields): Call it.
2837 (lto_input_ts_translation_unit_decl_tree_pointers): New function.
2838 (lto_input_tree_pointers): Call it.
2839 * lto-streamer.c (check_handled_ts_structures): Adjust.
2840 * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
2841 * c-decl.c (all_translation_units): Remove.
2842 (pop_scope): Use build_translation_unit_decl.
2843 (collect_all_refs): Adjust.
2844 (for_each_global_decl): Likewise.
2845 (c_write_global_declarations): Likewise.
2847 2010-09-16 Jakub Jelinek <jakub@redhat.com>
2850 * fold-const.c (fold_checksum_tree): Change slot from const void **
2851 to void **, use CONST_CAST_TREE to store into *slot.
2853 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
2855 * config/i386/i386.md: Remove unneeded empty conditions and
2856 preparation statements from expanders.
2857 * config/i386/mmx.md: Ditto.
2858 * config/i386/sse.md: Ditto.
2860 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
2862 * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
2864 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
2866 PR rtl-optimization/45593
2867 * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
2868 insns that were in delay slots as stand-alone insns.
2870 2010-09-15 Ian Lance Taylor <iant@google.com>
2872 * incpath.c (remove_duplicates): If name is not a directory, issue
2873 a warning rather than an error.
2875 2010-09-15 Martin Jambor <mjambor@suse.cz>
2878 * tree-sra.c (create_access): Check for bit-fields directly.
2880 2010-09-15 Jakub Jelinek <jakub@redhat.com>
2882 PR tree-optimization/45633
2883 * tree-cfg.c (verify_gimple_assign_binary): Allow
2884 MINUS_EXPR with lhs and rhs1 pointer vector and
2885 rhs2 sizetype vector.
2886 * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
2887 or vector pointer use TER to optimize pointer subtraction.
2889 2010-09-15 Jie Zhang <jie@codesourcery.com>
2891 * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
2894 2010-09-15 Ian Lance Taylor <iant@google.com>
2896 * config/i386/i386.md (truncxf<mode>2): Fix indentation.
2898 2010-09-15 Ian Lance Taylor <iant@google.com>
2900 * function.c (get_arg_pointer_save_area): Set
2901 arg_pointer_save_area_init to true.
2903 2010-09-15 Martin Jambor <mjambor@suse.cz>
2905 * tree-sra.c (generate_subtree_copies): Updated comment.
2906 (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
2907 obtained from the statement iterator instead.
2908 (load_assign_lhs_subreplacements): Removed parameters lhs and
2909 right_offset, which is obtained from top_racc instead. Parameter lacc
2910 is now expected to be the root of the processed tree rather than root's
2911 first child. Updated all callers.
2913 2010-09-15 Joseph Myers <joseph@codesourcery.com>
2915 * config/pdp11/pdp11.c (register_move_cost): Rename to
2916 pdp11_register_move_cost.
2917 * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
2918 pdp11_register_move_cost.
2919 * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
2920 pdp11_register_move_cost instead of register_move_cost.
2922 2010-09-15 Tejas Belagod <tejas.belagod@arm.com>
2924 * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
2925 pattern for vmovn. Expansion in case of non
2926 -mvectorize-with-neon-quad.
2927 (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
2928 non- -mvectorize-with-neon-quad case.
2929 (move_lo_quad_<mode>): New expansion to vmov into low part.
2930 (move_hi_quad_<mode>): New expansion to vmov into high part.
2931 (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
2932 (move_lo_quad_v4sf): Likewise.
2933 (move_lo_quad_v8hi): Likewise.
2934 (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
2936 (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
2938 * config/arm/iterators.md (ANY128): New mode iterator.
2939 (V_narrow_pack): New mode attribute.
2940 (V_HALF): Add attribute.
2941 (V_DOUBLE): Add attribute.
2942 (V_mode_nunits): Add attribute.
2944 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
2946 * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
2947 is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
2949 2010-09-15 Olivier Hainque <hainque@adacore.com>
2950 Jose Ruiz <ruiz@adacore.com>
2952 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
2953 * config/alpha/osf5-unwind.h: New file.
2955 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
2958 * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
2959 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
2960 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
2962 2010-09-15 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2964 * c-lang.h (struct lang_type): Add variable_size GTY option.
2966 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
2969 * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
2971 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
2973 * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
2974 result isn't used in memory address.
2976 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
2978 * defaults.h (UNITS_PER_SIMD_WORD): Removed.
2979 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
2980 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
2981 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
2982 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
2983 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
2985 * target.def: Add units_per_simd_word to vectorize.
2987 * targhooks.c (default_units_per_simd_word): New.
2988 * targhooks.h (default_units_per_simd_word): Likewise.
2989 * config/arm/arm.c (arm_units_per_simd_word): Likewise.
2990 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
2991 * config/mips/mips.c (mips_units_per_simd_word): Likewise.
2992 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
2993 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
2994 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
2995 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
2996 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
2998 * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
2999 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
3001 * tree-vect-stmts.c: Don't include "tm_p.h".
3002 (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
3003 with targetm.vectorize.units_per_simd_word.
3005 * system.h (UNITS_PER_SIMD_WORD): Poisoned.
3007 * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
3009 * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
3010 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
3012 * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD. Add
3013 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
3015 * doc/tm.texi: Regenerated.
3017 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
3019 * tree-vect-stmts.c: Include "tm_p.h".
3021 * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
3024 2010-09-14 Martin Jambor <mjambor@suse.cz>
3026 * tree-sra.c (build_ref_for_offset): Loc made a parameter. Set the
3027 location of generated statement. Changed all callers.
3028 (build_ref_for_model): New parameter loc which used to set location of
3029 all generated expressions. Changed all callers.
3030 (generate_subtree_copies): Likewise.
3031 (init_subtree_with_zero): Likewise.
3032 (sra_modify_expr): Set locations of all generated statements and
3033 expressions to the location the original statement.
3034 (handle_unscalarized_data_in_subtree): Likewise.
3035 (load_assign_lhs_subreplacements): Likewise.
3036 (sra_modify_constructor_assign): Likewise.
3037 (sra_modify_assign): Likewise.
3039 2010-09-14 Eric Botcazou <ebotcazou@adacore.com>
3044 * doc/install.texi (sparc*-*-*): New section.
3045 (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
3047 2010-09-14 Jakub Jelinek <jakub@redhat.com>
3050 * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
3051 expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
3052 (expand_builtin): Adjust caller.
3053 (expand_builtin_unop): Only use subtarget if it has the right mode.
3055 2010-09-14 Tristan Gingold <gingold@adacore.com>
3057 * configure.ac (plugins): Fix typos.
3058 * configure: Regenerate.
3060 2010-09-14 Jakub Jelinek <jakub@redhat.com>
3063 * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
3064 gen_type_die for function/method return type.
3066 2010-09-14 Ira Rosen <irar@il.ibm.com>
3068 PR tree-optimization/45470
3069 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
3070 can throw an exception.
3071 * tree-vect-stmts.c (vectorizable_call): Likewise.
3073 2010-09-14 DJ Delorie <dj@redhat.com>
3076 * config/mep/mep-protos.h (mep_save_register_info,
3077 mep_reinit_regs, mep_init_regs): Declare.
3079 * config/mep/mep.c: Move all target definitions to the end of the
3080 file to avoid the need for duplicate declarations.
3081 (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
3082 (mep_reorg_erepeat): Remove unused variables.
3083 (mep_expand_builtin): Likewise.
3085 * config/mep/mep-pragma.c: Don't include rtl.h.
3086 (INVALID_REGNUM): New.
3087 (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
3089 (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
3090 Avoid enum/integer math.
3092 2010-09-13 Joseph Myers <joseph@codesourcery.com>
3095 * config/mep/t-mep (GTM_H): Add insn-constants.h.
3096 * config/mep/mep.c (mep_conditional_register_usage): Take no
3098 * config/mep/mep-protos.h (mep_conditional_register_usage): Update
3100 * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
3101 call to mep_conditional_register_usage.
3103 2010-09-13 Eric Botcazou <ebotcazou@adacore.com>
3106 * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
3109 2010-09-13 Jakub Jelinek <jakub@redhat.com>
3111 PR rtl-optimization/45617
3112 * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
3113 even if low N bits of X aren't known to be zero.
3115 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
3117 * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
3119 * config/i386/i386.c (initial_ix86_tune_features): Add
3120 X86_TUNE_VECTORIZE_DOUBLE.
3121 (ix86_units_per_simd_word): New.
3123 * config/i386/i386.h (ix86_tune_indices): Add
3124 X86_TUNE_VECTORIZE_DOUBLE.
3125 (TARGET_VECTORIZE_DOUBLE): New.
3126 (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
3128 2010-09-13 Pat Haugen <pthaugen@us.ibm.com>
3130 * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
3131 (new_temp_expr_table): Allocate call_cnt vector.
3132 (free_temp_expr_table): Free it.
3133 (process_replaceable): Add call_cnt parm and set in vector.
3134 (find_replaceable_in_bb): Skip replacement if def/use span a call.
3135 (debug_ter): Dump call_cnt value, remove stderr uses.
3137 2010-09-13 Jan Hubicka <jh@suse.cz>
3139 * tree.c (build_zero_cst): New.
3140 * tree.h (build_zero_cst): Declare.
3141 * tree-ssa-ccp.c (get_constant_value): Accept general operands.
3142 (get_base_constructor): Break out from ...
3143 (fold_const_aggregate_ref): Here; handle empty constructors.
3145 2010-09-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
3147 * config/arm/arm.md: (define_attr "conds"): Update comment.
3148 * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
3149 conds attribute to clob.
3150 (arm_sync_compare_and_swapsi): Likewise.
3151 (arm_sync_compare_and_swap<mode>): Likewise.
3152 (arm_sync_lock_test_and_setsi): Likewise.
3153 (arm_sync_lock_test_and_set<mode>): Likewise.
3154 (arm_sync_new_<sync_optab>si): Likewise.
3155 (arm_sync_new_nandsi): Likewise.
3156 (arm_sync_new_<sync_optab><mode>): Likewise.
3157 (arm_sync_new_nand<mode>): Likewise.
3158 (arm_sync_old_<sync_optab>si): Likewise.
3159 (arm_sync_old_nandsi): Likewise.
3160 (arm_sync_old_<sync_optab><mode>): Likewise.
3161 (arm_sync_old_nand<mode>): Likewise.
3163 2010-09-13 Olivier Hainque <hainque@adacore.com>
3165 * fwprop.c (forward_propagate_and_simplify): Only attach a
3166 REG_EQUAL note to an insn if the destination is a register.
3167 * gcse.c (try_replace_reg): Likewise.
3169 2010-09-13 Richard Guenther <rguenther@suse.de>
3171 PR tree-optimization/45611
3172 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
3173 (copy_ref_info): Likewise.
3175 2010-09-13 Alexandre Oliva <aoliva@redhat.com>
3180 * tree-pretty-print.c (dump_generic_node): Disregard top-level
3181 types of MEM_REF pointer types to the same type.
3183 2010-09-13 Hans-Peter Nilsson <hp@axis.com>
3185 PR rtl-optimization/41087
3186 * ifcvt.c (noce_get_condition): Don't allow conditions with
3189 2010-09-12 Anatoly Sokolov <aesok@post.ru>
3191 * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
3192 * config/frv/frv-protos.h (frv_register_move_cost): Remove.
3193 * config/frv/frv.c (frv_register_move_cost): Make static. Change
3194 arguments type to reg_class_t. Add mode argument.
3195 (frv_memory_move_cost): New.
3196 (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
3198 2010-09-12 Bernd Schmidt <bernds@codesourcery.com>
3200 * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
3201 arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
3203 2010-09-10 Jan Hubicka <jh@suse.cz>
3205 * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
3207 2010-09-10 Richard Guenther <rguenther@suse.de>
3209 * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
3210 * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
3211 * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
3212 not stream TYPE_DEBUG_REPRESENTATION_TYPE.
3213 * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
3215 2010-09-10 Richard Guenther <rguenther@suse.de>
3217 * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
3218 for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
3219 * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
3220 using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
3222 2010-09-10 H.J. Lu <hongjiu.lu@intel.com>
3225 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
3226 of string folding is of integral type.
3228 2010-09-10 Ryan Mansfield <rmansfield@qnx.com>
3230 * doc/invoke.texi (-x): Fix typo.
3232 2010-09-10 Richard Guenther <rguenther@suse.de>
3235 * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
3236 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
3237 Output DECL_DEBUG_EXPR.
3238 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
3239 Input DECL_DEBUG_EXPR.
3241 2010-09-10 Richard Guenther <rguenther@suse.de>
3243 * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
3244 (build_index_type): Implement in terms of build_range_type.
3245 (build_range_type): Do not allow NULL_TREE type, improve
3246 hashing to cover more cases. Set TYPE_STRUCTURAL_EQUALITY_P
3248 * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
3249 create a distinct copy of the type.
3251 2010-09-10 Kai Tietz <kai.tietz@onevision.com>
3253 * configure: Regenerated.
3254 * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
3256 2010-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3258 * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
3259 * config/arm/cortex-a9-neon.md: New and partially generated.
3260 * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
3262 2010-09-10 Richard Guenther <rguenther@suse.de>
3264 * tree.h (build_index_2_type): Remove.
3265 * tree.c (build_index_2_type): Remove.
3267 2010-09-10 Jakub Jelinek <jakub@redhat.com>
3270 * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
3271 HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
3272 (implicit_ptr_descriptor): Return NULL if dwarf_strict.
3274 2010-09-10 Martin Jambor <mjambor@suse.cz>
3276 PR tree-optimization/44972
3277 * tree-sra.c: Include toplev.h.
3278 (build_ref_for_offset): Entirely reimplemented.
3279 (build_ref_for_model): New function.
3280 (build_user_friendly_ref_for_offset): New function.
3281 (analyze_access_subtree): Removed build_ref_for_offset check.
3282 (propagate_subaccesses_across_link): Likewise.
3283 (create_artificial_child_access): Use
3284 build_user_friendly_ref_for_offset.
3285 (propagate_subaccesses_across_link): Likewise.
3286 (ref_expr_for_all_replacements_p): Removed.
3287 (generate_subtree_copies): Updated comment. Use build_ref_for_model.
3288 (sra_modify_expr): Use build_ref_for_model.
3289 (load_assign_lhs_subreplacements): Likewise.
3290 (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
3291 checks for return values of build_ref_for_offset.
3292 * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
3293 build_ref_for_offset.
3294 * ipa-prop.h: Include gimple.h
3295 * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
3296 (ipa_analyze_indirect_call_uses): Update comment.
3297 * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
3298 (IPA_PROP_H): Likewise.
3300 2010-09-10 Martin Jambor <mjambor@suse.cz>
3302 PR tree-optimization/44972
3303 * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
3304 calling build_ref_for_offset.
3306 2010-09-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3308 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
3309 * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
3310 * config/arm/arm-tune.md: Regenerate.
3311 * doc/invoke.texi (ARM Options): Document it.
3313 2010-09-09 Reza Yazdani <reza.yazdani@amd.com>
3315 * config/i386/i386.c: Include sched-int.h.
3316 (TARGET_SCHED_DISPATCH): Defined.
3317 (TARGET_SCHED_DISPATCH_DO): Defined.
3318 (DISPATCH_WINDOW_SIZE): Defined.
3319 (MAX_DISPATCH_WINDOWS): Defined.
3320 (MAX_INSN): Defined.
3322 (MAX_IMM_SIZE): Defined.
3323 (MAX_IMM_32): Defined.
3324 (MAX_IMM_64): Defined.
3325 (MAX_LOAD): Defined.
3326 (MAX_STORE): Defined.
3328 (dispatch_group): New.
3329 (num_allowable_groups): New.
3331 (sched_insn_info_s): New.
3332 (dispatch_windows_s): New.
3334 (dispatch_window_list): New.
3335 (dispatch_window_list1): New.
3336 (get_mem_group): New.
3338 (dispatch_violation): New.
3342 (allocate_window): New.
3343 (init_dispatch_sched): New.
3344 (is_end_basic_block): New.
3345 (process_end_window): New.
3346 (allocate_next_window): New.
3347 (find_constant_1): New.
3348 (find_constant): New.
3349 (get_num_immediates): New.
3350 (has_immediate): New.
3351 (get_insn_path): New.
3352 (get_insn_group): New.
3353 (count_num_restricted): New.
3354 (fits_dispatch_window): New.
3355 (add_insn_window): New.
3356 (add_to_dispatch_window): New.
3357 (debug_dispatch_window_file): New.
3358 (debug_dispatch_window): New.
3359 (debug_insn_dispatch_info_file): New.
3360 (debug_ready_dispatch): New.
3362 (has_dispatch): New.
3363 * config/i386/i386.h (debug_ready_dispatch): Declared.
3364 (debug_dispatch_window): Declared.
3365 * config/i386/i386.opt (mdispatch-scheduler): New flag.
3366 * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
3367 (TARGET_SCHED_DISPATCH_DO): New.
3368 * doc/tm.texi: Regererated.
3369 * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
3370 ready_remove_first_dispatch
3371 (schedule_block): Call targetm.sched.dispatch and
3372 targetm.sched.dispatch_do.
3373 (sched_init): Call targetm.sched.dispatch and
3374 targetm.sched.dispatch_do.
3375 (ready_remove_first_dispatch): New.
3376 (number_in_ready): New.
3377 (get_ready_element): New.
3378 * hooks.c (hook_bool_rtx_int_false): New.
3379 (hook_void_rtx_int): New.
3380 * hooks.h (hook_bool_rtx_int_false): Declared.
3381 (hook_void_rtx_int): Declared.
3382 * sched-int.h (IS_DISPATCH_ON): Defined.
3384 (DISPATCH_VIOLATION): Defined.
3385 (FITS_DISPATCH_WINDOW): Defined.
3386 (DISPATCH_INIT): Defined.
3387 (ADD_TO_DISPATCH_WINDOW): Defined.
3388 (get_ready_element): Declared.
3389 (number_in_ready): Declared.
3390 * target.def (dispatch): Defined.
3391 (dispatch_do): Defined.
3393 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
3396 * reload1.c (merge_assigned_reloads): Remove.
3397 (reload_as_needed): Don't call it.
3399 2010-09-09 Anatoly Sokolov <aesok@post.ru>
3401 * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
3402 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3403 * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
3405 2010-09-09 Matthias Klose <doko@ubuntu.com>
3408 * configure.ac (--enable-plugin): Enhance for cross builds.
3409 * configure: Regenerate.
3411 2010-09-09 Jan Hubicka <jh@suse.cz>
3413 PR tree-optimization/45598
3414 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
3415 string folding is of integral type.
3417 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
3419 * configure.ac (gnu_indirect_function): New test.
3420 * configure: Rebuilt.
3421 * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
3422 * defaults.h (IFUNC_ASM_TYPE): Provide default.
3424 * doc/extend.texi (Function Attributes): Document ifunc.
3425 * varasm.c (do_assemble_alias): Deal with ifuncs too.
3427 2010-09-09 Hariharan Sandanagobalane <hariharan@picochip.com>
3429 * config/picochip/picochip.c (picochip_reorg): Check for note_p for
3430 epilogue instruction move.
3432 2010-09-09 Jan Hubicka <jh@suse.cz>
3434 * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
3435 command line to allow more partitions than input files.
3437 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
3440 * ira.c (ira): Switch off sharing spill slots if setjmp is called.
3442 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
3445 * ira.c (pseudo_for_reload_consideration_p): Don't use
3446 flag_ira_share_spill_slots.
3448 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3450 * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
3451 point zero operands that fit into a single GPR.
3452 (s390_preferred_reload_class): Ensure we only return general-purpose
3454 * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
3455 floating-point zero operands into GPRs.
3456 ("*mov<mode>_64"): Likewise.
3457 ("mov<mode>"): Likewise using lhi.
3459 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3461 * config/s390/s390.c (s390_symref_operand_p): Return false for
3462 literal pool references.
3463 (s390_check_qrst_address): Update caller.
3465 2010-09-09 Uros Bizjak <ubizjak@gmail.com>
3467 * config/i386/predicates.md (ext_register_operand): Check that
3468 SUBREG_REG is really a register before looking for REGNO.
3469 (reg_not_xmm0_operand): Handle SUBREGs correctly.
3470 (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
3472 2010-09-09 Jakub Jelinek <jakub@redhat.com>
3474 * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
3475 * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
3476 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
3477 * print-rtl.c (print_rtx): Likewise.
3478 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
3479 * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
3480 for ADDR_EXPR with non-addressable object.
3481 * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
3482 (struct dw_val_struct): Add v.val_decl_ref.
3483 (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
3484 Handle DW_OP_GNU_implicit_pointer.
3485 (size_of_loc_descr): Likewise. Fix up DW_OP_call_ref size.
3486 (get_ref_die_offset_label): New function.
3487 (implicit_ptr_descriptor): New function.
3488 (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
3489 (loc_descriptor): Likewise.
3490 (gen_variable_die): Put even definitions into decl_die_table.
3491 (resolve_addr_in_expr): Resolve still unresolved
3492 DW_OP_GNU_implicit_pointer operands, if it can't be resolved
3494 (dwarf2out_finish): Call output_location_lists after outputting
3495 .debug_info and .debug_abbrev instead of before.
3497 2010-09-09 Roland McGrath <roland@redhat.com>
3499 * dwarf2out.c (DWARF_REF_SIZE): Define.
3500 (size_of_loc_descr): Use it for DW_OP_call_ref.
3502 2010-09-09 Alan Modra <amodra@gmail.com>
3504 * doc/invoke.text: Reinstate mcmodel=medium.
3505 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
3506 CMODEL_MEDIUM as default.
3507 * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
3508 * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
3509 (toc_relative_ok, offsettable_ok_by_alignment): New functions.
3510 (rs6000_emit_move): Reinstate mcmodel=medium optimization.
3512 2010-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3515 * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
3516 hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
3517 (builtin_longjmp): Likewise.
3518 (allocate_stack): Use hard_frame_pointer_rtx instead of
3520 * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
3521 * config/pa/pa.c (pa_internal_arg_pointer): Declare.
3522 (pa_can_eliminate): Likewise.
3523 (TARGET_INTERNAL_ARG_POINTER): Define.
3524 (TARGET_CAN_ELIMINATE): Define.
3525 (hppa_expand_prologue): Use hard frame pointer instead of soft frame
3527 (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
3528 (pa_internal_arg_pointer, pa_can_eliminate,
3529 pa_initial_elimination_offset): New.
3530 * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
3531 (HARD_FRAME_POINTER_REGNUM): Set to register three.
3532 (INITIAL_FRAME_POINTER_OFFSET): Delete.
3533 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
3535 (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
3536 REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
3537 * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
3538 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
3539 REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
3540 new soft frame pointer.
3541 * config/pa/pa64-regs.h: Likewise.
3543 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
3545 * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
3547 (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
3549 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
3552 * cfglayout.c (fixup_reorder_chain): Skip debug insns.
3554 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
3558 * tree-pretty-print.c (dump_generic_node): Disregard top-level
3559 qualifiers in otherwise equal MEM_REF pointer types.
3560 * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
3561 * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
3563 2010-09-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3566 * config/arm/arm.md (bswapsi2): Handle condition correctly
3567 for armv6 and optimize_size.
3569 2010-09-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3572 * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
3574 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
3576 * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
3577 symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
3578 ix86_expand_strlen, legitimate_pic_address_disp_p,
3579 ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
3580 ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
3581 ix86_check_movabs, ix86_secondary_memory_needed): Change function
3583 * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
3584 return_in_memory_ms_64, ix86_check_movabs,
3585 symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
3586 legitimate_pic_address_disp_p, ix86_binary_operator_ok,
3587 ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
3588 ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
3589 ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
3590 ix86_secondary_memory_needed): Change to bool. Return
3591 "true" and "false" values.
3592 * config/i386/i386.md: Return "true" and "false" values.
3594 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3596 * doc/sourcebuild.texi (Effective-Target Keywords): Document
3597 run_expensive_tests.
3599 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3601 * toplev.c (output_stack_usage): Use lbasename instead of basename.
3603 2010-09-08 Martin Jambor <mjambor@suse.cz>
3606 * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
3609 2010-09-08 Richard Guenther <rguenther@suse.de>
3611 * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
3613 (iterative_hash_gimple_type): Likewise.
3614 (gimple_type_hash): Likewise.
3615 (gimple_register_type): Likewise.
3616 (print_gimple_types_stats): Likewise.
3617 (free_gimple_type_tables): Likewise.
3619 2010-09-08 Michael Matz <matz@suse.de>
3621 PR tree-optimization/43430
3622 * tree-vect-stmts.c (vectorizable_condition): Support multiple
3623 copies for conditional statements if it's not part of a reduction.
3625 2010-09-08 Michael Matz <matz@suse.de>
3627 PR tree-optimization/33244
3628 * tree-ssa-sink.c (statement_sink_location): Don't sink into
3631 2010-09-08 Richard Guenther <rguenther@suse.de>
3633 PR tree-optimization/45578
3634 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
3635 Be more careful when transfering alignment information to
3636 the new induction variable.
3637 (copy_ref_info): Likewise.
3639 2010-09-08 Richard Guenther <rguenther@suse.de>
3641 * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
3642 * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
3644 2010-09-08 Arnaud Charlet <charlet@adacore.com>
3646 * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
3647 * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
3649 2010-09-08 Kenneth Zadeck <zadeck@naturalbridge.com>
3652 * doc/md.texi: Fixed modes on several standard pattern names.
3654 2010-09-08 Mingjie Xing <mingjie.xing@gmail.com>
3656 * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
3657 (ashl<mode>3): ...this.
3658 (loongson_psra<V_suffix>): Rename to...
3659 (ashr<mode>3): ...this.
3660 (loongson_psrl<V_suffix>): Rename to...
3661 (lshr<mode>3): ...this.
3662 * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
3663 (CODE_FOR_loongson_psllw): Define.
3664 (CODE_FOR_loongson_psrlh): Define.
3665 (CODE_FOR_loongson_psrlw): Define.
3666 (CODE_FOR_loongson_psrah): Define.
3667 (CODE_FOR_loongson_psraw): Define.
3669 2010-09-07 Richard Henderson <rth@redhat.com>
3671 * tree-vect-data-refs.c: Include tm_p.h.
3672 * Makefile.in (tree-vect-data-refs.o): Update deps.
3673 * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
3674 Move delarations outside #ifdef RTX_CODE.
3676 2010-09-07 Richard Henderson <rth@redhat.com>
3678 * final.c (rest_of_handle_final): Unconditionally do
3679 output_function_exception_table before assemble_end_function.
3681 2010-09-07 Jan Hubicka <jh@suse.cz>
3683 * tree-inline.c (tree_inlinable_function_p): Do not test
3685 * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
3686 update_callee_keys, cgraph_decide_inlining): Test function availability.
3687 * cif-code.def (OVERWRITABLE): New code.
3689 2010-09-07 H.J. Lu <hjl.tools@gmail.com>
3690 Jack Howarth <howarth@bromo.med.uc.edu>
3695 * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
3696 profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
3697 (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
3700 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
3702 * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
3703 Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
3705 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
3707 * config.gcc: Don't append t-android for Android targets.
3709 * config/t-android: Removed.
3711 2010-09-07 Richard Henderson <rth@redhat.com>
3713 * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
3714 * doc/tm.texi.in: Add doc marker.
3715 * doc/tm.texi: Rebuild.
3716 * except.c (switch_to_exception_section): Always build.
3717 (output_one_function_exception_table): Move section switch,
3718 personality output, and label output ...
3719 (output_function_exception_table): ... here. Use the new
3722 * config/ia64/ia64.c (ia64_asm_emit_except_personality,
3723 ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
3724 TARGET_ASM_INIT_SECTIONS): New.
3725 (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
3727 (TARGET_ASM_UNWIND_EMIT): Update to match.
3728 * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
3730 * config/arm/arm.c (arm_asm_emit_except_personality): New.
3731 (arm_asm_init_sections): New.
3732 (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
3734 2010-09-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3736 * config/arm/arm.md: Remove unused variable.
3738 2010-09-07 Anatoly Sokolov <aesok@post.ru>
3740 * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
3741 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
3742 (m32r_memory_move_cost): New function.
3744 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
3746 * config.gcc: Append t-android for Android targets.
3748 * config/t-android: New.
3750 2010-09-07 Richard Henderson <rth@redhat.com>
3752 * target.def (unwind_emit_before_insn): New hook.
3753 * doc/tm.texi.in: Add @hook marker for it.
3754 * doc/tm.texi: Rebuild.
3755 * final.c (final_scan_insn): Respect unwind_emit_before_insn.
3757 2010-09-07 Martin Jambor <mjambor@suse.cz>
3760 * ipa-cp.c (ipcp_versionable_function_p): Return false if there
3761 are any type attributes.
3763 2010-09-07 Jan Hubicka <jh@suse.cz>
3765 * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
3766 array_ref_low_bound in string access folding.
3768 2010-09-07 Uros Bizjak <ubizjak@gmail.com>
3771 * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
3772 eh_return fixup sequence.
3774 2010-09-07 Jan Hubicka <jh@suse.cz>
3776 * gimple-fold.c (maybe_fold_reference): Verify that operand is
3777 gimple_min_invariant.
3779 2010-09-07 Richard Guenther <rguenther@suse.de>
3782 * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
3783 nor CONSTRUCTOR can trap.
3784 * tree-complex.c (update_complex_assignment): Update EH info.
3786 2010-09-07 Richard Guenther <rguenther@suse.de>
3789 * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
3790 * passes.c (execute_function_todo): Do not verify anything if
3793 2010-09-07 Richard Guenther <rguenther@suse.de>
3795 * tree-pretty-print.c (dump_generic_node): Dump void types as void.
3797 2010-09-07 Bernd Schmidt <bernds@codesourcery.com>
3800 * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
3801 New define_mode_attrs.
3802 * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
3803 arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
3804 (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
3805 (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
3806 Remove pool_range attribute.
3807 (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
3808 arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
3809 pool_range and neg_pool_range attributes.
3810 * config/arm/thumb2.md (thumb2_zero_extendsidi2,
3811 thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
3812 thumb2_extendhidi2, thumb2_extendqidi2): Delete.
3814 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
3816 * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
3819 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
3822 * config/i386/mmx.md (*mov<mode>_internal_rex64,
3823 *mov<mode>_internal_avx, *mov<mode>_internal,
3824 *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
3825 *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
3827 2010-09-06 Mark Mitchell <mark@codesourcery.com>
3829 * c-typeck.c (do_warn_double_promotion): Remove.
3830 * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
3833 2010-09-06 Anatoly Sokolov <aesok@post.ru>
3835 * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
3836 * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
3837 * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
3838 argument type to reg_class_t. Change result type to bool.
3839 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
3841 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
3844 * gthr-posix.h (__gthread_objc_thread_detach): Use
3845 _objc_thread_attribs when detaching a thread.
3846 * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
3848 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
3851 * configure.ac (enable_decimal_float): Set to $default_decimal_float.
3852 * configure: Regenerated.
3854 2010-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3856 * combine.c (try_combine): Set subst_low_luid to i0.
3858 2010-09-06 Richard Guenther <rguenther@suse.de>
3860 * tree.def (MISALIGNED_INDIRECT_REF): Remove.
3861 * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
3862 (build_aligned_type): Declare.
3863 * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
3864 (check_aligned_type): New function.
3865 (build_aligned_type): Likewise.
3866 * expr.c (expand_assignment): Handle misaligned stores via
3867 TARGET_MEM_REF and MEM_REF using movmisalign_optab.
3868 (expand_expr_real_1): Likewise.
3869 (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
3870 * tree-vect-stmts.c (vectorizable_store): Do not build
3871 MISALIGNED_INDIRECT_REF but initialize alignment information.
3872 (vectorizable_load): Likewise.
3873 * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
3875 * cfgexpand.c (expand_debug_expr): Likewise.
3876 * dwarf2out.c (loc_list_from_tree): Likewise.
3877 * fold-const.c (maybe_lvalue_p): Likewise.
3878 (operand_equal_p): Likewise.
3879 (build_fold_addr_expr_with_type_loc): Likewise.
3880 * gimplify.c (gimplify_addr_expr): Likewise.
3881 (gimplify_expr): Likewise.
3882 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
3883 (verify_gimple_assign_single): Likewise.
3884 * tree-dump.c (dequeue_and_dump): Likewise.
3885 (tree_could_trap_p): Likewise.
3886 * tree-predcom.c (ref_at_iteration): Likewise.
3887 * tree-pretty-print.c (dump_generic_node): Likewise.
3888 (op_code_prio): Likewise.
3889 (op_symbol_code): Likewise.
3890 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
3891 * tree-ssa-loop-im.c (for_each_index): Likewise.
3892 (gen_lsm_tmp_name): Likewise.
3893 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
3894 (find_interesting_uses_address): Likewise.
3895 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
3896 * tree-ssa-operands.c (get_expr_operands): Likewise.
3897 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3898 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
3899 (ao_ref_init_from_vn_reference): Likewise.
3900 * tree.c (staticp): Likewise.
3901 (build1_stat): Likewise.
3902 (reference_alias_ptr_type): Likewise.
3903 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
3904 * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
3905 MISALIGNED_INDIRECT_REF handling.
3907 2010-09-06 Richard Guenther <rguenther@suse.de>
3909 PR tree-optimization/45534
3910 * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
3911 (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
3913 (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
3914 valid on the target.
3916 2010-09-06 Andreas Schwab <schwab@redhat.com>
3918 * configure.ac: Quote argument of AC_MSG_WARN.
3919 * configure: Regenerate.
3921 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
3923 * sel-sched.c (move_cond_jump): Correct arguments to
3924 maybe_tidy_empty_bb.
3925 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
3927 2010-09-06 Andrey Belevantsev <abel@ispras.ru>
3929 PR rtl-optimization/44919
3930 * sel-sched.c (move_cond_jump): Remove assert, check that
3931 the several blocks case can only happen with mutually exclusive
3932 insns instead. Rewrite the movement code to support moving through
3933 several basic blocks.
3935 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
3937 * config/i386/i386.md (iptrsize): New mode attribute.
3939 (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
3941 (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
3942 (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
3943 (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
3944 (stack_tls_protect_set_<mode>): Ditto from
3945 stack_tls_protect_set_{si,di}. Use %@ to output segment register
3946 of thread base pointer load.
3947 (stack_tls_protect_test_<mode>): Ditto from
3948 stack_tls_protect_test_{si,di}. Use %@ to output segment register
3949 of thread base pointer load.
3950 (stack_protect_set): Rewrite using indirect functions.
3951 (stack_protect_test): Ditto.
3952 * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
3953 (ix86_print_operand): Handle '@'.
3955 2010-09-05 Giuseppe Scrivano <gscrivano@gnu.org>
3957 * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
3960 2010-09-05 Mark Mitchell <mark@codesourcery.com>
3962 * doc/invoke.texi: Document -Wdouble-promotion.
3963 * c-typeck.c (convert_arguments): Check for implicit conversions
3964 from float to double.
3965 (do_warn_double_promotion): New function.
3966 (build_conditional_expr): Use it.
3967 (build_binary_op): Likewise.
3969 2010-09-05 Richard Guenther <rguenther@suse.de>
3971 PR tree-optimization/45535
3972 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
3973 handle TMR_INDEX2. Make sure TMR_INDEX is not NULL before
3975 (indirect_refs_may_alias_p): Likewise.
3977 2010-09-05 Naveen H.S <naveen.S@kpitcummins.com>
3979 * config/sh/sh.c (sh_option_override): Make static.
3980 Adjust comments. Declare.
3981 (sh_function_value_regno_p): Likewise.
3982 (sh_register_move_cost): Modify the arguments, make static.
3983 Adjust comments. Declare.
3984 (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
3985 TARGET_FUNCTION_VALUE_REGNO_P): Define.
3986 * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
3987 REGISTER_MOVE_COST): Delete.
3988 * config/sh/sh-protos.h (sh_override_options): Delete.
3989 (sh_register_move_cost): Delete.
3990 (sh_function_value_regno_p): Delete.
3992 2010-09-04 Anatoly Sokolov <aesok@post.ru>
3994 * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
3995 m32r_function_value_regno_p): New functions.
3996 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3997 TARGET_FUNCTION_VALUE_REGNO_P): Declare.
3998 * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
3999 FUNCTION_VALUE_REGNO_P): Remove.
4001 2010-09-04 Jan Hubicka <jh@suse.cz>
4003 * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
4004 * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
4005 fold_read_from_constant_string.
4007 * gimple.h (canonicalize_constructor_val): Declare.
4008 * gimple-fold.c (canonicalize_constructor_val): New function.
4009 (get_symbol_constant_value):Use it.
4010 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
4012 2010-09-04 Jan Hubicka <jh@suse.cz>
4014 * tree-switch-conversion.c (build_one_array): Set constructor to be
4016 * varpool.c (varpool_finalize_decl): Compute const_value_known.
4018 2010-09-04 Richard Guenther <rguenther@suse.de>
4021 * tree-flow.h (force_gimple_operand_1): Declare.
4022 (force_gimple_operand_gsi_1): Likewise.
4023 * gimplify.c (force_gimple_operand_1): New worker taking a
4024 gimple predicate for ...
4025 (force_gimple_operand): ... which now wraps it.
4026 (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
4027 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
4029 * tree-ssa-address.c (gimplify_mem_ref_parts): Use
4030 force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
4031 (create_mem_ref): Likewise.
4033 2010-09-04 Uros Bizjak <ubizjak@gmail.com>
4035 * config/i386/predicates.md (sse_reg_operand): New predicate.
4036 * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
4037 predicate for operand 1.
4038 (XFmode push splitter): Use fp_register_operand predicate
4040 (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
4041 (SF-DF float_extend push splitter): Add reload_completed insn
4043 ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
4044 MODEF mode macro. Add reload_completed insn predicate.
4046 2010-09-04 Paolo Bonzini <bonzini@gnu.org>
4048 * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
4049 (struct df_extract_ref): Remove.
4050 (union df_ref_d): Remove extract_ref member.
4051 (df_ref_create): Remove last three arguments.
4052 (DF_REF_LOC): Remove DF_REF_EXTRACT case.
4053 * df-scan.c (df_ref_record): Remove last three arguments, do not
4054 pass them to df_ref_create_structure.
4055 (df_uses_record): Remove first and last three arguments. Replace
4056 first argument with DF_REF_REGULAR, adjust calls to remove the
4057 width, offset and mode. Always call recursively on the second
4058 and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
4059 (df_ref_create_structure): Remove first argument.
4060 (struct df_scan_problem_data): Remove ref_extract_pool.
4061 (df_scan_free_internal): Do not free it.
4062 (df_scan_alloc): Do not allocate it.
4063 (df_ref_create): Remove last three arguments, do not pass them to
4064 df_ref_create_structure.
4065 (df_free_ref): Remove DF_REF_EXTRACT case.
4066 (df_notes_rescan): Adjust call to df_uses_record.
4067 (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
4068 Remove DF_REF_EXTRACT case.
4069 (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
4070 Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
4071 and SUBREG definitions.
4072 (df_get_conditional_uses): Remove references to width/offset/mode,
4073 adjust call to df_ref_create_structure.
4074 (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
4075 df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
4076 calls to df_uses_record and df_ref_record.
4077 * fwprop.c (update_df): Remove references to width/offset/mode,
4078 adjust call to df_ref_create.
4080 2010-09-03 Jan Hubicka <jh@suse.cz>
4082 * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
4083 (build_cdtor_fns): Update use of build_cdtor.
4085 2010-09-03 Joseph Myers <joseph@codesourcery.com>
4087 * doc/options.texi (SeparateAlias): Document.
4088 * opt-functions.awk (switch_flags): Handle SeparateAlias.
4089 * opth-gen.awk: Generate enumeration names for options marked
4090 SeparateAlias, but not for those marked Ignore.
4091 * opts-common.c (generate_canonical_option): Don't output separate
4092 argument for options marked CL_SEPARATE_ALIAS.
4093 (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
4094 * opts.h (CL_SEPARATE_ALIAS): New.
4095 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
4096 CL_COMMON): Adjust definitions.
4097 * config/i386/darwin.opt, config/mips/sde.opt: New.
4098 * common.opt (fdump-final-insns): New.
4099 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
4101 (mips*-sde-elf*): Add mips/sde.opt.
4102 * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
4103 -mno-data-in-code and -mcode-xonly here.
4104 * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
4105 * gcc.c (option_map): Add "j" to --dump entry.
4106 (translate_options): Don't translate -d to -foutput-class-dir= here.
4108 2010-09-03 Sebastian Pop <sebastian.pop@amd.com>
4110 * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
4112 (compute_all_dependences): Same.
4113 (create_rdg_edge_for_ddr): Same.
4114 * tree-data-ref.h (DR_IS_WRITE): New.
4115 (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
4116 * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
4117 (write_memrefs_written_at_least_once): Same.
4118 * tree-predcom.c (suitable_component_p): Same.
4119 (determine_roots_comp): Same.
4120 (execute_load_motion): Same.
4121 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
4122 (vect_enhance_data_refs_alignment): Same.
4123 (vect_analyze_group_access): Same.
4125 2010-09-03 Joern Rennecke <joern.rennecke@embecosm.com>
4128 * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
4129 (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
4131 2010-09-03 Marcin Baczynski <marbacz@gmail.com>
4133 * dwarf2out.c (file scope): Remove #if0'd code.
4134 (gen_subprogram_die): Same.
4136 2010-09-03 Jakub Jelinek <jakub@redhat.com>
4139 * dwarf2out.c (flush_queued_reg_saves): Rename to...
4140 (dwarf2out_flush_queued_reg_saves): ... this. No longer static.
4141 (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
4142 * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
4143 * config/i386/i386.c (output_set_got): Call it.
4145 2010-09-03 Michael Matz <matz@suse.de>
4148 * tree-sra.c (sra_modify_assign): If we modify the statement,
4151 * tree-ssa.c (verify_ssa): Check number of operands and links
4152 per statement to agree.
4154 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
4155 Iain Sandoe <iains@gcc.gnu.org>
4158 * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
4159 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
4160 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
4162 2010-09-03 Richard Guenther <rguenther@suse.de>
4164 * lto-streamer-out.c (output_function): Output function
4166 * lto-streamer-in.c (input_function): Input function start
4169 2010-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4171 * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
4172 * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
4173 * configure: Regenerate.
4174 * aclocal.m4: Regenerate.
4176 2010-09-03 Jan Hubicka <jh@suse.cz>
4179 * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
4180 on functions/variables in other partition.
4182 2010-09-03 Jan Hubicka <jh@suse.cz>
4184 * cgraph.h (struct varpool_node): Add const_value_known.
4185 (varpool_decide_const_value_known): Declare.
4186 * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
4187 * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
4188 (input_varpool_node): Restore const_value_known.
4189 * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
4190 initializer folding.
4191 * ipa.c (ipa_discover_readonly_nonaddressable_var,
4192 function_and_variable_visibility): Compute const_value_known.
4193 * gimple-fold.c (get_symbol_constant_value): Use varpool for
4194 initializer folding.
4195 * varpool.c (varpool_decide_const_value_known): New function.
4197 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
4199 * config/i386/i386.md: Remove empty preparation statements
4202 2010-09-03 Jan Hubicka <jh@suse.cz>
4204 * passes.c (rest_of_decl_compilation): Do not add local vars into
4206 * varpool.c (varpool_get_node, varpool_node): Sanity check that only
4207 static or extern vars are in varpool.
4208 (varpool_finalize_decl): Sanity check that only static vars are
4211 2010-09-03 Jakub Jelinek <jakub@redhat.com>
4214 * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
4215 not just generic vectors with BLKmode.
4217 2010-09-03 Richard Guenther <rguenther@suse.de>
4219 * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
4220 Move TMR_OFFSET to second operand. Add TMR_INDEX2.
4221 * tree.h (TMR_SYMBOL): Remove.
4222 (TMR_BASE, TMR_OFFSET): Adjust.
4224 * alias.c (ao_ref_from_mem): Use TMR_BASE.
4225 * builtins.c (get_object_alignment): Merge TMR_BASE and
4226 TMR_SYMBOL handling.
4227 * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
4228 * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
4229 handling. Also allow TARGET_MEM_REF as base address.
4230 (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
4231 * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
4232 base. Gimplify TMR_INDEX2.
4233 * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
4234 * tree-dfa.c (get_ref_base_and_extent): Likewise.
4235 (get_addr_base_and_unit_offset): Likewise.
4236 * tree-eh.c (tree_could_trap_p): Likewise.
4237 * tree-pretty-print.c (dump_generic_node): Likewise.
4238 * tree-ssa-address.c (tree_mem_ref_addr): Simplify. Handle TMR_INDEX2.
4239 (create_mem_ref_raw): Merge symbol and base. Move 2ndary
4241 (get_address_description): Reconstruct addres description
4242 from merged TMR_BASE and TMR_INDEX2.
4243 (maybe_fold_tmr): Fold propagated addresses.
4244 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
4245 MEM_REF and TARGET_MEM_REF paths.
4246 (indirect_refs_may_alias_p): Likewise.
4247 * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
4248 instead of TMR_SYMBOL.
4249 * tree-ssa-operands.c (get_tmr_operands): Simplify.
4250 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
4251 according to changes ...
4252 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
4253 Split TARGET_MEM_REF into two fields plus the base.
4254 * tree.c (mem_ref_offset): Simplify.
4255 * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
4256 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
4257 Strip NOPs when folding MEM_REF addresses.
4258 * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
4259 * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
4260 (fold_gimple_assign): ... not here.
4262 2010-09-03 Mingjie Xing <mingjie.xing@gmail.com>
4264 * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
4265 * config/mips/mips.c (mips_shift_truncation_mask): New function.
4266 (TARGET_SHIFT_TRUNCATION_MASK): Define.
4268 2010-09-02 Richard Henderson <rth@redhat.com>
4270 * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
4271 instead of readelf in the test.
4272 (gcc_cv_as_cfi_sections_directive): Check for correct relocation
4273 in the .debug_frame section for coff targets.
4274 * configure: Rebuild.
4276 2010-09-02 Anatoly Sokolov <aesok@post.ru>
4278 * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
4279 * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
4280 * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
4281 (m32c_class_likely_spilled_p): Make static. Change argument type to
4282 reg_class_t. Change result type to bool.
4284 2010-09-02 Michael Meissner <meissner@linux.vnet.ibm.com>
4286 * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
4287 to convert (double)(long) into a single FRIZ instruction or not
4288 when -ffast-math is used.
4290 * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
4291 (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
4292 or FRIZ instruction if -ffast-math.
4293 * config/rs6000/rs6000.md (friz): Ditto.
4295 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
4297 2010-09-02 Joseph Myers <joseph@codesourcery.com>
4299 * opth-gen.awk (quote, comma): Remove unused variables.
4301 2010-09-02 Ryan Mansfield <rmansfield@qnx.com>
4303 * arm.c (arm_override_options): Correct fall-back code to use
4304 SUBTARGET_CPU_DEFAULT.
4306 2010-09-02 Julian Brown <julian@codesourcery.com>
4308 * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
4310 (vcond<mode>, vcondu<mode>): New expanders.
4311 (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
4312 comparisons with zero.
4313 (neon_vcle<mode>, neon_vclt<mode>): New patterns.
4314 * config/arm/constraints.md (Dz): New constraint.
4316 2010-09-02 Anatoly Sokolov <aesok@post.ru>
4318 * target.def (class_likely_spilled_p): New hook.
4319 * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
4320 * doc/tm.texi: Regenerate.
4321 * targhooks.c (default_class_likely_spilled_p): New function.
4322 * targhooks.h (default_class_likely_spilled_p): Declare.
4323 * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
4324 * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
4325 TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
4326 Use fixed_reg_set instead of fixed_regs.
4327 * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
4328 * calls.c (avoid_likely_spilled_reg): Ditto.
4329 * ira-conflicts.c (ira_build_conflicts): Ditto.
4330 * ira.c (update_equiv_regs): Ditto.
4331 * mode-switching.c (create_pre_exit): Ditto.
4332 * regmove.c (find_matches): Ditto.
4333 (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
4334 * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
4335 (small_register_class_p): New inline function.
4336 (push_secondary_reload, find_reusable_reload, find_reloads): Use
4337 small_register_class_p instead of SMALL_REGISTER_CLASS_P.
4339 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
4340 * config/i386/i386.c (ix86_class_likely_spilled_p): New.
4341 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
4343 2010-09-02 Richard Guenther <rguenther@suse.de>
4345 PR tree-optimization/44937
4346 PR tree-optimization/45412
4347 * ipa-split.c (split_function): Properly remove PHI nodes.
4349 2010-09-02 Joseph Myers <joseph@codesourcery.com>
4351 * opts.h (struct cl_option): Add warn_message field.
4352 (struct cl_decoded_option): Add warn_message field.
4353 * doc/options.texi (Ignore, Warn): Document.
4354 * opt-functions.awk (needs_state_p): Don't consider aliases or
4355 ignored options to need state saved.
4356 * optc-gen.awk: Handle Warn and Ignore.
4357 * opth-gen.awk: Output OPT_SPECIAL_ignore.
4358 * opts-common.c (decode_cmdline_option): Set warn_message field.
4359 Handle ignored options.
4360 (decode_cmdline_options_to_array, generate_option,
4361 generate_option_input_file): Set warn_message field.
4362 (read_cmdline_option): Generate warnings from warn_message field.
4363 Handle ignored options.
4364 * common.opt (Wunreachable-code, fargument-alias,
4365 fargument-noalias, fargument-noalias-global,
4366 fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
4367 floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
4368 fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
4369 ftree-salias): Mark Ignore.
4370 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
4371 -mintel-syntax and -mno-intel-syntax here.
4372 * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
4374 * opts.c (common_handle_option): Don't handle options marked as
4376 (enable_warning_as_error): Handle ignored options.
4378 2010-09-02 Joseph Myers <joseph@codesourcery.com>
4381 * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
4382 alias_target fields.
4383 * opt-functions.awk (opt_sanitized_name): Don't handle
4384 finline-limit=, Wlarger-than= and ftemplate-depth= specially.
4385 * optc-gen.awk: Generate alias fields.
4386 * opth-gen.awk: Explicitly give values for OPT_* enum constants.
4387 Don't generate such constants for aliases.
4388 * opts-common.c (generate_canonical_option): New.
4389 (decode_cmdline_option): Handle aliases. Use
4390 generate_canonical_option for known options instead of copying the
4392 * doc/options.texi (Alias): Document.
4393 * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
4394 fstack-check, specs): Mark as aliases.
4395 * gcc.c (driver_handle_option): Canonicalize -L options to joined
4397 (driver_handle_option): Don't handle OPT_specs.
4398 * opts.c (common_handle_option): Don't handle options marked as
4400 (enable_warning_as_error): Handle aliases.
4401 * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
4402 OPT_Wlarger_than_eq.
4403 * tree-optimize.c (tree_rest_of_compilation): Use
4404 OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
4406 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
4408 * config/i386/i386.md (nonmemory_operand): New mode attribute.
4409 (push memory peephole2): Macroize peepholes using SWI mode iterator.
4410 (move immediate to memory peephole2): Macroize peepholes using
4411 SWI124 mode iterator.
4412 (non-pairable NOT peephole2): Macroize peepholes using SWI124
4414 (simple lea add peephole2): Macroize peepholes using SWI48
4416 (simple lea mult peephole2): Ditto.
4417 (imul by 3,5,9 to lea peephole2): Ditto.
4418 (mov $-1, reg peephole2): Macroize peepholes using SWI248
4420 (imul $32bit_imm,mem,reg peephole2): Ditto.
4421 (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
4423 2010-09-02 Ian Bolton <ian.bolton@arm.com>
4425 * tree-ssa-loop-prefetch.c: Fix comment at head of file.
4427 2010-09-02 Olivier Hainque <hainque@adacore.com>
4430 * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
4431 (allocno_priority_compare_func): Use it instead of a straight
4432 difference computation over priorities.
4434 2010-09-02 Andi Kleen <ak@linux.intel.com>
4436 * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
4438 2010-09-02 Ira Rosen <irar@il.ibm.com>
4440 * tree-vectorizer.h (get_later_stmt): New function.
4441 (vect_analyze_data_ref_dependences): Add argument.
4442 * tree-vect-loop.c (vect_analyze_loop): Update call to
4443 vect_analyze_data_ref_dependences.
4444 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
4446 (vect_analyze_data_ref_dependence): Add argument for basic block
4447 dependencies. Check dependencies in basic block vectorization.
4448 (vect_analyze_data_ref_dependences): Add argument and update call to
4449 vect_analyze_data_ref_dependences.
4450 * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
4451 (vect_bb_vectorizable_with_dependencies): New.
4452 (vect_slp_analyze_bb): Check dependencies in basic block.
4453 (vect_schedule_slp_instance): Insert stores before the last store in
4456 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
4459 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
4460 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
4462 2010-09-01 Jakub Jelinek <jakub@redhat.com>
4465 * bb-reorder.c (add_labels_and_missing_jumps): Treat
4466 bbs ending with throwing insns like blocks ending with a call.
4467 (fix_up_fall_thru_edges): Likewise.
4469 2010-09-01 Nathan Froyd <froydnj@codesourcery.com>
4471 * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
4472 (m32c_function_arg_advance): Delete.
4473 * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4474 * config/m32c/m32c.c (m32c_function_arg): Make static. Adjust
4475 comments. Take a const_tree and a bool. Declare.
4476 (m32c_function_arg_advance): Likewise.
4477 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4479 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
4482 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
4483 LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
4484 * config/i386/mingw32.h: ... here.
4486 2010-09-01 Andi Kleen <ak@linux.intel.com>
4489 * lto-streamer-in.c (lto_input_ts_target_option): Add.
4490 (lto_input_tree_pointers): Call lto_input_ts_target_option.
4491 * lto-streamer-out (lto_output_ts_target_option): Add.
4492 (lto_output_tree_pointers): Call lto_output_ts_target_option.
4494 2010-09-01 Kai Tietz <kai.tietz@onevision.com>
4497 * config/i386/cygwin.h: Change order of specified import libraries.
4498 * config/i386/mingw32.h: Likewise.
4499 * config/i386/t-cygwin: Likewise.
4500 * config/i386/t-mingw32: Likewise.
4501 * config/i386/t-mingw-w32: Likewise.
4502 * config/i386/t-mingw-w64: Likewise.
4504 2010-09-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4506 * config/arm/neon-schedgen.ml (core): New type.
4507 (allCores): List of supported cores.
4508 (availability_table): Add supported cores.
4509 (collate_bypasses): Accept core as a parameter.
4510 (worst_case_latencies_and_bypasses): Accept core as a parameter.
4511 (emit_insn_reservations): Accept core as a parameter. Use tuneStr
4512 and coreStr to get tune attribute and prefix for functional units.
4513 (emit_bypasses): Accept core name and use it.
4514 (calculate_per_core_availability_table): New.
4516 (calculate_core_availability_table): New.
4517 (main): Use calculate_core_availablity_table.
4518 * config/arm/cortex-a8-neon.md: Update copyright year.
4519 Regenerated from ml file and merged in.
4520 (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
4523 2010-09-01 Ian Bolton <ian.bolton@arm.com>
4525 * Makefile.in (tree-switch-conversion.o): Update dependencies.
4527 2010-09-01 Richard Guenther <rguenther@suse.de>
4529 * alias.c (ao_ref_from_mem): Adjust.
4530 * builtins.c (get_object_alignment): Likewise.
4531 * cfgexpand.c (expand_debug_expr): Likewise.
4532 * gimple.c (get_base_address): Likewise.
4533 * tree-dfa.c (get_ref_base_and_extent): Likewise.
4534 (get_addr_base_and_unit_offset): Likewise. Fix for
4535 both TMR_SYMBOL and TMR_BASE being set.
4536 * tree-eh.c (tree_could_trap_p): Likewise.
4537 * gimplify.c (gimplify_expr): Do not attempt to gimplify
4538 TMR_SYMBOL. Always gimplify TMR_BASE.
4539 * tree-cfg.c (verify_types_in_gimple_reference): Verify
4540 TMR_BASE if there is a TMR_SYMBOL.
4541 * tree-pretty-print.c (dump_generic_node): Adjust.
4542 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
4543 (tree_mem_ref_addr): Likewise.
4544 (create_mem_ref_raw): Likewise.
4545 (move_fixed_address_to_symbol): Likewise.
4546 (create_mem_ref): Likewise.
4547 (dump_mem_address): Likewise.
4548 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
4549 Fix for both TMR_SYMBOL and TMR_BASE being set.
4550 (indirect_refs_may_alias_p): Likewise.
4551 * tree-ssa-operands.c (get_tmr_operands): Adjust.
4552 * tree.def (TARGET_MEM_REF): Adjust documentation.
4554 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
4556 * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
4557 Rename from X86_TUNE_ADD_ESP_4.
4558 <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
4559 <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
4560 <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
4561 (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
4562 (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
4563 (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
4564 (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
4565 * config/i386/i386.c (initial_ix86_tune_features)
4566 <X86_TUNE_SINGLE_POP>: Invert members.
4567 <X86_TUNE_DOUBLE_POP>: Ditto.
4568 <X86_TUNE_SINGLE_PUSH>: Ditto.
4569 <X86_TUNE_DOUBLE_PUSH>: Ditto.
4570 * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
4572 (push peephole2 patterns): Macroize peepholes using P mode iterator.
4573 Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
4574 (pop peephole2 patterns): Macroize peepholes using P mode iterator.
4575 Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
4577 2010-09-01 Eric Botcazou <ebotcazou@adacore.com>
4579 * gimplify.c (gimplify_init_constructor): Do not create a temporary for
4580 a volatile LHS if the constructor has only one element.
4582 2010-09-01 Mikael Pettersson <mikpe@it.uu.se>
4585 * tree.c (stdarg_p): Make fntype parameter const.
4586 * tree.h (stdarg_p): Likewise.
4587 (function_args_iterator): Remove unused fntype field.
4588 (function_args_iter_init): Do not initialize fntype
4589 field. Make fntype parameter const.
4591 2010-09-01 Richard Guenther <rguenther@suse.de>
4593 * tree-vrp.c (adjust_range_with_scev): Use number of iteration
4595 (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
4596 (execute_vrp): Compute number of iteration estimates.
4597 * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
4598 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
4599 * tree-data-ref.c (estimated_loop_iterations): Adjust.
4600 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
4601 Infer loop bounds from undefined behavior based on a new parameter.
4602 (estimate_numbers_of_iterations): Likewise.
4603 (scev_probably_wraps_p): Adjust.
4604 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
4606 2010-09-01 Nick Clifton <nickc@redhat.com>
4608 * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
4610 (xstormy16_legitimate_address_p): Use true and false instead of 1
4612 (xstormy16_expand_prologue): Delete unused local variable 'insn'.
4613 (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
4615 (xstormy16_expand_call): Fix comment at start of function.
4617 2010-09-01 Nick Clifton <nickc@redhat.com>
4619 * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
4620 when pushing accumulator register.
4621 (rx_get_stack_layout): Always save call clobbered registers inside
4623 * config/rx/rx-modes.def: Fix descriptive comment at start of file.
4625 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
4627 * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
4628 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
4630 * libgcc-std.ver (GCC_4.6.0): Define version.
4632 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
4634 * tree-nested.c (convert_all_function_calls): Iterate until after the
4635 sum of static chains in the nest doesn't change.
4637 2010-08-31 Anatoly Sokolov <aesok@post.ru>
4639 * config/m32c/m32c.c (classes_intersect): Remove.
4640 (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
4641 reg_classes_intersect_p instead of classes_intersect.
4642 (class_can_hold_mode): Change arguments type from enum reg_class to
4643 reg_class_t. Use reg_class_contents instead of class_contents.
4644 (m32c_register_move_cost): Make static. Change arguments type from
4645 enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
4646 classes_intersect. Use reg_class_contents instead of class_contents.
4647 (m32c_memory_move_cost): Make static. Change arguments type from
4648 enum reg_class to reg_class_t.
4649 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
4650 * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
4651 * config/m32c/m32c-protos.h (m32c_register_move_cost,
4652 m32c_memory_move_cost): Remove.
4654 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
4656 * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
4657 (arm_function_arg): Delete.
4658 (arm_needs_doubleword_align): Take a const_tree.
4659 * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4660 * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
4661 (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
4662 (arm_function_arg): Make static. Take a const_tree and a bool.
4663 (arm_function_arg_advance): Likewise.
4664 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4666 2010-08-31 Andi Kleen <ak@linux.intel.com>
4668 * common.opt (fwhopr=): Update for -fwhopr=jobserver
4669 * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
4670 * lto-wrapper.c (run_gcc): Add jobserver mode.
4671 * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
4674 2010-08-31 Uros Bizjak <ubizjak@gmail.com>
4676 * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
4678 (*popdi1_epilogue): Ditto.
4679 (*popsi1_epilogue): Ditto.
4680 (popsi, popdi peephole2 patterns): Update peepholes for changed
4681 pop{si,di}1 and *pop{si,di}1_epilogue patterns.
4683 (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
4684 (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
4686 * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
4687 (override_options): Do not initialize removed ix86_gen_pop1.
4688 (gen_pop): New static function.
4689 (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
4690 (release_scratch_register_on_entry): Ditto.
4691 (ix86_restore_reg_using_pop): Ditto.
4692 (ix86_expand_epilogue): Ditto.
4694 2010-08-31 Jakub Jelinek <jakub@redhat.com>
4697 * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
4699 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
4701 * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
4704 2010-08-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4706 * doc/extend.texi: Fix documentation of the return value of
4707 __builtin_choose_expr.
4709 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
4711 * config/v850/v850-protos.h (function_arg): Delete.
4712 * config/v850/v850.h (FUNCTION_ARG): Delete.
4713 (FUNCTION_ARG_ADVANCE): Move code to...
4714 * config/v850/v850.c (v850_function_arg_advance): ...here.
4715 (v850_function_arg): Make static. Take a const_tree and a bool.
4716 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4718 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
4720 * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
4722 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
4724 * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
4726 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
4728 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4730 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
4732 * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
4734 * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4735 * config/rx/rx.c (rx_function_arg_size): Make static.
4736 (rx_function_arg): Likewise.
4737 (rx_function_arg_advance): New function.
4738 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4740 2010-08-31 John Tytgat <John.Tytgat@aaug.net>
4742 * config/arm/arm.c (arm_override_options): Remove superfluous test.
4745 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
4747 * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
4748 (dwarf2out_decl) <CONST_DECL>: Likewise.
4750 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
4753 * common.opt (-fstack-usage): New option.
4754 * doc/invoke.texi (Debugging options): Document it.
4755 * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
4756 allocate_dynamic_stack_space.
4757 (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
4758 and propagate it to allocate_dynamic_stack_space.
4759 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
4760 * calls.c (initialize_argument_information): Pass TRUE as 4th
4761 argument to allocate_dynamic_stack_space.
4762 (expand_call): Set current_function_has_unbounded_dynamic_stack_size
4763 to 1 when pushing a variable-sized argument onto the stack. Pass
4764 TRUE as 4th argument to allocate_dynamic_stack_space.
4765 Update current_function_pushed_stack_size.
4766 (emit_library_call_value_1): Likewise.
4767 * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
4768 CANNOT_ACCUMULATE. If flag_stack_usage, look into the size and
4769 attempt to find an upper bound. Remove redundant code for the
4770 SETJMP_VIA_SAVE_AREA case.
4771 * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
4772 * function.h (struct stack_usage): New structure.
4773 (current_function_static_stack_size): New macro.
4774 (current_function_dynamic_stack_size): Likewise.
4775 (current_function_pushed_stack_size): Likewise.
4776 (current_function_dynamic_alloc_count): Likewise.
4777 (current_function_has_unbounded_dynamic_stack_size): Likewise.
4778 (current_function_allocates_dynamic_stack_space): Likewise.
4779 (struct function): Add new field 'su'.
4780 * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
4781 add the value of the dynamic offset to the dynamic stack usage.
4782 (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
4783 for variable-sized objects.
4784 (prepare_function_start): Allocate cfun->su if flag_stack_usage.
4785 (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
4786 * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
4787 BUILT_IN_ALLOCA for variable-sized objects.
4788 * output.h (output_stack_usage): Declare.
4789 * toplev.c (stack_usage_file): New file pointer.
4790 (output_stack_usage): New function.
4791 (open_auxiliary_file): Likewise.
4792 (lang_dependent_init): Open file if flag_stack_usage is set.
4793 (finalize): Close file if stack_usage_file is not null.
4794 * tree.h (ALLOCA_FOR_VAR_P): New macro.
4795 * config/alpha/alpha.c (compute_frame_size): New function.
4796 (alpha_expand_prologue): Use it.
4797 (alpha_start_function): Likewise.
4798 (alpha_expand_epilogue): Likewise. Set stack usage info.
4799 * config/i386/i386.c (ix86_expand_prologue): Likewise.
4800 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
4801 * config/mips/mips.c (mips_expand_prologue): Likewise.
4802 * config/pa/pa.c (hppa_expand_prologue): Likewise.
4803 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4804 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4806 2010-08-30 Zdenek Dvorak <ook@ucw.cz>
4808 PR tree-optimization/45427
4809 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
4810 Handle the case that the exit is never taken correctly.
4811 (number_of_iterations_ne): Pass exit_must_be_taken to
4812 number_of_iterations_ne_max.
4814 2010-08-30 Catherine Moore <clm@codesourcery.com>
4816 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
4817 Infer -mdspr2 for the the 74K.
4819 2010-08-30 Jakub Jelinek <jakub@redhat.com>
4822 * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
4825 * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
4826 and TRUTH_{AND,OR,XOR}_EXPR.
4827 * c-parser.c (c_parser_omp_atomic): Handle boolean
4828 {PRE,POST}_{INC,DEC}REMENT.
4830 2010-08-30 Nathan Froyd <froydnj@codesourcery.com>
4832 * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
4833 (function_arg): Delete.
4834 * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4835 (FUNCTION_INCOMING_ARG): Delete.
4836 * config/xtensa/xtensa.c (function_arg_advance): Rename to...
4837 (xtensa_function_arg_advance): ...this. Make static. Take a const_tree
4839 (function_arg): Rename to...
4840 (xtensa_function_arg_1): ...this. Make static. Take a const_tree and
4842 (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
4843 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4844 (TARGET_FUNCTION_INCOMING_ARG): Define.
4846 2010-08-30 Richard Guenther <rguenther@suse.de>
4848 PR tree-optimization/21602
4849 * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
4850 using points-to information.
4852 2010-08-30 H.J. Lu <hongjiu.lu@intel.com>
4854 * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
4856 2010-08-30 Richard Guenther <rguenther@suse.de>
4858 PR tree-optimization/45449
4859 * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
4862 2010-08-30 Joseph Myers <joseph@codesourcery.com>
4864 * opts.h (CL_ERR_NEGATIVE): Define.
4865 * opts.c (unknown_option_callback): Don't postpone warnings for
4866 options marked with CL_ERR_NEGATIVE.
4867 * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
4868 for negative versions of CL_REJECT_NEGATIVE options.
4870 2010-08-30 Uros Bizjak <ubizjak@gmail.com>
4872 * config/i386/i386.md (zero_extendsidi2_1): Rename from
4873 zero_extendsidi2_32.
4874 (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
4875 using SWI12 mode iterator.
4876 (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
4877 to define_insn_and_split pattern.
4878 (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
4879 using SWI24 mode iterator.
4880 (*zero_extendqi<mode>2_and): Macroize insn from
4881 *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
4882 (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
4883 *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
4884 SWI24 mode iterator.
4885 (*zero_extendqi<mode>2_movzbl): Ditto from
4886 *zero_extendqi{hi,si}2_movzbl.
4887 (extendsidi2_1): Rename from extendsidi2_32.
4888 (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
4889 SWI12 mode iterator.
4891 2010-08-29 Eric Botcazou <ebotcazou@adacore.com>
4893 * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
4894 general purpose registers.
4895 (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
4896 * config/ia64/ia64.md (*movcci): Change to named pattern. Deal
4897 with general purpose registers and memory operands. Add associated
4898 CCImode post-reload splitter.
4899 * config/ia64/div.md: Change BImode to CCImode throughout.
4901 2010-08-28 Eric Botcazou <ebotcazou@adacore.com>
4903 * config/ia64/ia64.md (cstorebi4): Fix thinko.
4905 2010-08-28 Hariharan Sandanagobalane <hariharan@picochip.com>
4907 * config/picochip/picochip.c (reorder_var_tracking_notes): This
4908 function was dropping debug insns which caused PR45299.
4910 2010-08-28 Uros Bizjak <ubizjak@gmail.com>
4912 * config/i386/sse.md (extsuffix): New code attribute.
4913 (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
4914 and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
4915 (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
4916 and sse4_1_zero_extendv4qiv4si2.
4917 (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
4918 and sse4_1_zero_extendv2qiv2di2.
4919 (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
4920 and sse4_1_zero_extendv4hiv4si2.
4921 (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
4922 and sse4_1_zero_extendv2hiv2di2.
4923 (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
4924 and sse4_1_zero_extendv2siv2di2
4926 (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
4927 using any_extend code iterator.
4928 (*avx_<s>mulv8hi3_highpart): Macroize insn from
4929 *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
4930 (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
4932 * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
4933 gen_sse4_1_sign_extend* functions.
4934 (struct builtin_description bdesc_args): Ditto.
4936 2010-08-27 Xinliang David Li <davidxl@google.com>
4939 * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
4940 (iv_ca_set_no_cp): Update used inv expr count.
4941 (iv_ca_set_cp): Ditto.
4942 (iv_ca_new): Initialize new member.
4943 (iv_ca_free): Free memory.
4945 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
4947 * config/sh/sh-protos.h (sh_function_arg): Delete.
4948 (sh_function_arg_advance): Delete.
4949 * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4950 (PASS_IN_REG_P): Eliminate cast.
4951 * config/sh/sh.c (sh_function_arg_advance): Make static. Take a
4952 const_tree and a bool.
4953 (sh_function_arg): Likewise.
4954 (sh_output_mi_thunk): Call sh_function_arg_advance) and
4956 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4958 2010-08-27 Naveen H.S <naveen.S@kpitcummins.com>
4959 Kaz Kojima <kkojima@gcc.gnu.org>
4961 * config/sh/sh.c (push_regs): Emit movml for interrupt handler
4963 (sh_expand_epilogue): Likewise.
4964 * config/sh/sh.md (movml_push_banked): New insn.
4965 (movml_pop_banked): Likewise.
4967 2010-08-28 Bernd Schmidt <bernds@codesourcery.com>
4969 * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
4970 gen_regexp_oneof, gen_regexp_sequence): Use the string found
4971 in vector element 0 rather than the original string when there's
4973 (gen_regexp): Remove extra semicolon.
4975 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
4976 thumb2_movsf_vfp): Set attribute "insn".
4977 * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
4978 not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
4979 thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
4980 arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
4981 arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
4982 thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
4983 thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
4984 movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
4985 if_not_move, if_shift_move, if_move_shift, if_shift_shift,
4986 if_not_arith, if_arith_not, cond_move_not): Likewise.
4988 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
4990 * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
4992 (rs6000_allocate_stack_temp): Ditto.
4993 (rs6000_expand_convert_si_to_sfdf): Ditto.
4995 * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
4996 line. Update the options set if power6 or power7 server/embedded
4997 type options are used. If we give a warning for no vsx under
4998 -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
4999 (rs6000_allocate_stack_temp): New function to allocate a stack
5000 tempoary and adjust the address so it meets either REG+OFFSET or
5001 REG+REG addressing requirements.
5002 (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
5003 that they can be used with the LFIWAX/LFIWZX instrucitons.
5004 (rs6000_expand_convert_si_to_sfdf): New helper funciton for
5005 converting signed/unsigned SImode to either SFmode/DFmode.
5007 * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
5008 whether certain instructions can be generated.
5009 (TARGET_FCTIDZ): Ditto.
5010 (TARGET_STFIWX): Ditto.
5011 (TARGET_LFIWAX): Ditto.
5012 (TARGET_LFIWZX): Ditto.
5013 (TARGET_FCFIDS): Ditto.
5014 (TARGET_FCFIDU): Ditto.
5015 (TARGET_FCFIDUS): Ditto.
5016 (TARGET_FCTIDUZ): Ditto.
5017 (TARGET_FCTIWUZ): Ditto.
5019 * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
5020 (UNSPEC_FCTID): Ditto.
5021 (UNSPEC_LFIWAX): Ditto.
5022 (UNSPEC_LFIWZX): Ditto.
5023 (UNSPEC_FCTIWUZ): Ditto.
5024 (rreg): Use correct constraints.
5025 (SI_CONVERT_FP): New mode attribute for floating point conversion
5027 (E500_CONVERT): Ditto.
5028 (lfiwax): New insns for converting from integer to floating point
5029 utilizing newer instructions. Attempt to optimize conversions
5030 that come from memory so that we don't load the value into a GPR,
5031 spill it to the stack and reload it into a FPR.
5032 (floatsi<mode>2_lfiwax): Ditto.
5033 (floatsi<mode>2_lfiwax_mem): Ditto.
5034 (floatsi<mode>2_lfiwax_mem2): Ditto.
5036 (floatunssi<mode>2_lfiwzx): Ditto.
5037 (floatunssi<mode>2_lfiwzx_mem): Ditto.
5038 (floatunssi<mode>2_lfiwzx_mem2): Ditto.
5039 (floatdidf2_mem): Ditto.
5040 (floatunsdidf2_fcfidu): Ditto.
5041 (floatunsdidf2_mem): Ditto.
5042 (floatunsdisf2): Ditto.
5043 (floatunsdisf2_fcfidus): Ditto.
5044 (floatunsdisf2_mem): Ditto.
5045 (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
5046 Use FCFID on 32-bit hosts that support it.
5047 (floatsidf2_internal): Ditto.
5048 (floatunssisf2): Ditto.
5049 (floatunssidf2): Ditto.
5050 (floatunssidf2_internal): Ditto.
5051 (floatsisf2): Ditto.
5052 (floatdidf2): Ditto.
5053 (floatdidf2_fpr): Ditto.
5054 (floatunsdidf2): Ditto.
5055 (floatdisf2): Ditto.
5056 (floatdisf2_fcfids): Ditto.
5057 (floatdisf2_internal1): Ditto.
5058 (fixuns_truncsfsi2): Delete, merge into common pattern for both
5059 SF/DF. Add power7 support.
5060 (fix_truncsfsi2): Ditto.
5061 (fixuns_truncdfsi2): Ditto.
5062 (fixuns_truncdfdi2): Ditto.
5063 (fix_truncdfsi2): Ditto.
5064 (fix_truncdfsi2_internal): Ditto.
5065 (fix_truncdfsi2_internal_gfxopt): Ditto.
5066 (fix_truncdfsi2_mfpgpr): Ditto.
5069 (btruncdf2_fpr): Ditto.
5072 (ceildf2_fpr): Ditto.
5075 (floordf2_fpr): Ditto.
5078 (rounddf2_fpr): Ditto.
5080 (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
5081 (fix_trunc<mode>di2): Ditto.
5082 (fixuns_trunc<mode>si2): Ditto.
5083 (fixuns_trunc<mode>di2): Ditto.
5084 (fctiwz_<mode>): Ditto.
5085 (btrunc<mode>2): Ditto.
5086 (btrunc<mode>2_fpr): Ditto.
5087 (ceil<mode>2): Ditto.
5088 (ceil<mode>2_fpr): Ditto.
5089 (floor<mode>2): Ditto.
5090 (float<mode>2_fpr): Ditto.
5091 (round<mode>2): Ditto.
5092 (round<mode>2_fpr): Ditto.
5093 (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
5094 (fixuns_trunc<mode>si2_stfiwx): Ditto.
5095 (fix_truncdfsi2_internal): Ditto.
5096 (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
5097 converted value on stack, loaded into GPR, and then stored into
5098 the final destination.
5099 (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
5101 (lrint<mode>di2): New insn, provide the lrint builtin functions.
5102 (ftruncdf2): Delete, unused.
5103 (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
5105 * config/rs6000/vsx.md (toplevel): Update copyright year.
5106 (VSr2): Use "ws" contraint for DFmode, not "!r#r".
5109 2010-08-27 Basile Starynkevitch <basile@starynkevitch.net>
5110 Jeremie Salvucci <jeremie.salvucci@free.fr>
5112 * gengtype.c (output_type_enum): Test the right union member.
5114 2010-08-27 Uros Bizjak <ubizjak@gmail.com>
5117 * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
5118 operands for operand 1.
5119 (sse4_1_extendv4qiv4si2): Ditto.
5120 (sse4_1_extendv2qiv2di2): Ditto.
5121 (sse4_1_extendv4hiv4si2): Ditto.
5122 (sse4_1_extendv2hiv2di2): Ditto.
5123 (sse4_1_extendv2siv2di2): Ditto.
5124 (sse4_1_zero_extendv8qiv8hi2): Ditto.
5125 (sse4_1_zero_extendv4qiv4si2): Ditto.
5126 (sse4_1_zero_extendv2qiv2di2): Ditto.
5127 (sse4_1_zero_extendv4hiv4si2): Ditto.
5128 (sse4_1_zero_extendv2hiv2di2): Ditto.
5129 (sse4_1_zero_extendv2siv2di2): Ditto.
5130 (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
5131 (*sse4_1_extendv4qiv4si2): Ditto.
5132 (*sse4_1_extendv2qiv2di2): Ditto.
5133 (*sse4_1_extendv4hiv4si2): Ditto.
5134 (*sse4_1_extendv2hiv2di2): Ditto.
5135 (*sse4_1_extendv2siv2di2): Ditto.
5136 (*sse4_1_zero_extendv8qiv8hi2): Ditto.
5137 (*sse4_1_zero_extendv4qiv4si2): Ditto.
5138 (*sse4_1_zero_extendv2qiv2di2): Ditto.
5139 (*sse4_1_zero_extendv4hiv4si2): Ditto.
5140 (*sse4_1_zero_extendv2hiv2di2): Ditto.
5141 (*sse4_1_zero_extendv2siv2di2): Ditto.
5143 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
5145 * config/mips/mips-protos.h (mips_function_arg_advance): Delete
5146 (mips_function_arg): Delete.
5147 (mips_function_arg_boundary): Take a const_tree.
5148 * config/mips/mips.c (mips_function_arg_boundary): Likewise.
5149 (mips_arg_info): Likewise.
5150 (mips_setup_incoming_varargs): Call mips_function_arg_advance
5151 instead of FUNCTION_ARG_ADVANCE.
5152 (mips_function_arg_advance): Adjust prototype. Make static.
5153 (mips_function_arg): Likewise.
5154 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5155 * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
5157 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
5159 * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5160 * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
5161 (function_arg): Delete.
5162 (function_arg_boundary): Take a const_tree.
5163 * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
5164 (rs6000_spe_function_arg): Likewise.
5165 (rs6000_parm_start): Likewise.
5166 (rs6000_arg_size): Likewise.
5167 (rs6000_darwin64_record_arg_advance_recurse): Likewise.
5168 (rs6000_darwin64_record_arg): Likewise. Take a bool instead of an int.
5169 (rs6000_mixed_function_arg): Likewise.
5170 (function_arg): Rename to...
5171 (rs6000_function_arg): ...this.
5172 (function_arg_advance): Rename to...
5173 (rs6000_function_arg_advance_1): ...this
5174 (rs6000_function_arg_advance): New function. Call it.
5175 (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
5176 (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
5177 (rs6000_function_value): Likewise.
5178 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5180 2010-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5182 * config/arm/arm.md (enabled): Test the value of arch_enabled
5183 rather than just using it.
5185 2010-08-27 Olivier Hainque <hainque@adacore.com>
5186 Eric Botcazou <ebotcazou@adacore.com>
5188 * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
5189 cover all the possible offsets from this base.
5190 (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
5192 2010-08-26 Jakub Jelinek <jakub@redhat.com>
5194 PR tree-optimization/44485
5195 * calls.c (flags_from_decl_or_type): For const or pure
5196 noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
5197 together with ECF_CONST resp. ECF_PURE.
5198 * builtins.c (expand_builtin): Use flags_from_decl_or_type
5199 instead of querying flags directly.
5200 * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
5201 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
5203 2010-08-26 Richard Guenther <rguenther@suse.de>
5205 PR tree-optimization/45255
5206 * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
5207 and externals are also invariant.
5209 2010-08-25 Jakub Jelinek <jakub@redhat.com>
5211 PR rtl-optimization/44858
5212 * combine.c (try_combine): If recog_for_combine added CLOBBERs to
5213 newi2pat, make sure they don't affect newpat.
5215 PR rtl-optimization/45400
5216 * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
5217 SUBREG_REG if both modes are of MODE_INT class.
5219 2010-08-25 Julian Brown <julian@codesourcery.com>
5221 * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
5222 * config/arm/arm.md (generic_sched): No for Cortex-A5.
5223 (generic_vfp): Likewise.
5224 (cortex-a5.md): Include.
5225 * config/arm/cortex-a5.md: New.
5227 2010-08-25 Richard Guenther <rguenther@suse.de>
5229 * alias.c (get_alias_set): Assign a single alias-set to all pointers.
5230 * gimple.c (gimple_get_alias_set): Remove special handling
5233 2010-08-25 Bernd Schmidt <bernds@codesourcery.com>
5236 * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
5237 dead_or_set_p when computing i0_feeds_i2_n.
5239 * combine.c (find_split_point): Undo canonicalization of multiply-add
5240 to (minus x (mult)) when it seems likely that this will increase the
5243 2010-08-25 Richard Guenther <rguenther@suse.de>
5246 * lto-streamer.c (lto_record_common_node): Do not mess with
5247 TYPE_CANONICAL when not in lto.
5248 * gimple.c (gimple_register_type): Likewise.
5250 2010-08-25 Richard Guenther <rguenther@suse.de>
5252 PR tree-optimization/45316
5253 * tree-ssa-pre.c (eliminate): Properly clean EH info.
5255 2010-08-25 Richard Guenther <rguenther@suse.de>
5257 PR tree-optimization/45393
5258 * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
5259 and clean EH info. Avoid SSA update.
5260 (execute_cse_sincos): Cleanup the CFG if it has changed.
5262 2010-08-25 Richard Guenther <rguenther@suse.de>
5265 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
5266 TARGET_MEM_REF in alignment computation.
5268 2010-08-25 Jakub Jelinek <jakub@redhat.com>
5270 PR tree-optimization/45059
5271 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
5272 type conversions from newop{1,2}. Assert t is a comparison and
5273 newop{1,2} after the stripping are gimple vals.
5275 2010-08-25 Tejas Belagod <tejas.belagod@arm.com>
5277 * config/arm/iterators.md (VU, SE, V_widen_l): New.
5278 (V_unpack, US): New.
5279 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
5280 (vec_unpack<US>_lo_<mode>): Likewise.
5281 (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
5282 (neon_vec_unpack<US>_lo_<mode>): Likewise.
5283 (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
5284 (vec_widen_<US>mult_hi_<mode>): Likewise.
5285 (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
5286 (neon_vec_<US>mult_hi_<mode>"): Likewise.
5287 (neon_unpack<US>_<mode>): Widening move intermediate step for
5288 vectorizing without -mvectorize-with-neon-quad.
5289 (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
5290 for vectorizing without -mvectorize-with-neon-quad.
5291 * config/arm/predicates.md (vect_par_constant_high): Check for
5292 high-half lanes of a vector.
5293 (vect_par_constant_low): Check for low-half lanes of a vector.
5295 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
5297 * tree-if-conv.c (struct ifc_dr): New.
5299 (DR_WRITTEN_AT_LEAST_ONCE): New.
5300 (DR_RW_UNCONDITIONALLY): New.
5301 (memref_read_or_written_unconditionally): Use the cached values
5303 (write_memref_written_at_least_once): Same.
5304 (if_convertible_loop_p): Initialize and free DR->aux fields.
5306 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
5308 * gimple.c (gimple_could_trap_p_1): Not static anymore.
5309 Pass an extra bool parameter include_mem.
5310 (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
5311 (gimple_assign_rhs_could_trap_p): Same.
5312 * gimple.h (gimple_could_trap_p_1): Declared.
5313 * tree-data-ref.h (same_data_refs_base_objects): New.
5314 (same_data_refs): New.
5315 * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
5316 (write_memrefs_written_at_least_once): New.
5317 (ifcvt_memrefs_wont_trap): New.
5318 (operations_could_trap): New.
5319 (ifcvt_could_trap_p): New.
5320 (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
5321 Gets a vector of data refs.
5322 (if_convertible_stmt_p): Same.
5323 (if_convertible_loop_p_1): New.
5324 (if_convertible_loop_p): Call if_convertible_loop_p_1.
5326 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
5328 * common.opt (ftree-loop-if-convert-stores): New flag.
5329 * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
5330 * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI. Insert
5331 the created statement before GSI.
5332 (if_convertible_phi_p): Allow virtual phi nodes when
5333 flag_loop_if_convert_stores is set.
5334 (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
5335 Do not handle types that do not match is_gimple_reg_type.
5336 Remove loop and bb parameters. Call gimple_could_trap_p instead of
5337 when flag_loop_if_convert_stores is set, as LHS can contain
5339 (if_convertible_stmt_p): Remove loop and bb parameters. Update calls
5340 to if_convertible_gimple_assign_stmt_p.
5341 (if_convertible_loop_p): Update call to if_convertible_stmt_p.
5342 (replace_phi_with_cond_gimple_assign_stmt): Renamed
5343 predicate_scalar_phi. Do not handle virtual phi nodes.
5344 (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
5345 Call predicate_scalar_phi.
5346 (insert_gimplified_predicates): Insert the gimplified predicate of a BB
5347 just after the labels for flag_loop_if_convert_stores, otherwise
5348 insert the predicate in the end of the BB.
5349 (predicate_mem_writes): New.
5350 (combine_blocks): Call predicate_all_scalar_phis. When
5351 flag_loop_if_convert_stores is set, call predicate_mem_writes.
5352 (tree_if_conversion): Call mark_sym_for_renaming when
5353 flag_loop_if_convert_stores is set.
5354 (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
5355 flag_loop_if_convert_stores is set.
5357 2010-08-24 Anatoly Sokolov <aesok@post.ru>
5359 * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
5360 pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
5361 (pa_function_value): Make static.
5362 (override_options): Rename to...
5363 (pa_option_override): ...this. Make static.
5364 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
5365 TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
5366 TARGET_OPTION_OVERRIDE): Define.
5367 * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
5368 LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
5370 * config/pa/pa-protos.h (override_options): Remove.
5372 2010-08-24 Richard Guenther <rguenther@suse.de>
5375 * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
5376 if addr->index is NULL or zero.
5377 * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
5378 TARGET_MEM_REF more properly.
5379 (indirect_ref_may_alias_decl_p): Likewise.
5380 * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
5381 * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
5383 2010-08-23 Anatoly Sokolov <aesok@post.ru>
5385 * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
5386 (m32c_override_options): Rename to...
5387 (m32c_option_override): ...this. Make static.
5388 (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
5389 * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
5391 * config/m32c/m32c-protos.h (m32c_override_options,
5392 m32c_function_value_regno_p): Remove.
5394 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
5396 * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
5397 Fix a typo in a previous commit.
5399 2010-08-23 Kai Tietz <kai.tietz@onevision.com>
5401 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
5402 Pre-initialize innerloop_iters to one.
5404 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
5406 * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
5407 existing static function global.
5409 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
5410 is changed to global.
5412 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
5413 may_be_nonaddressable_p on base, and don't collect this reference
5414 if the address of the base could not be taken.
5416 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
5418 * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
5419 enable the compiler to autovectorize mathmetical functions for
5420 power7 using the Mathematical Acceleration Subsystem library.
5422 * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
5423 handle which vector math library we have.
5424 (rs6000_override_options): Add -mveclibabi=mass support.
5425 (rs6000_builtin_vectorized_libmass): New function to handle auto
5426 vectorizing math functions that are in the MASS library.
5427 (rs6000_builtin_vectorized_function): Call it.
5429 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
5432 2010-08-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5435 * gthr-posix.h (__gthread_active_init): Delete.
5436 (__gthread_active_p): Do activity check here.
5437 Don't include errno.h on hppa-hpux. Update comment.
5438 * gthr-posix95.h (__gthread_active_init): Delete.
5439 (__gthread_active_p): Do activity check here.
5440 Don't include errno.h on hppa-hpux. Update comment.
5441 * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
5442 * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
5443 add -lpthread when -mt or -pthread is specified.
5444 * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
5445 (LINK_GCC_C_SEQUENCE_SPEC): Define.
5446 * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
5447 (stublib.c, pthread_default_stacksize_np-stub.o,
5448 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
5449 $(T)libgcc_stub.a): Add methods.
5450 * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
5451 (stublib.c, pthread_default_stacksize_np-stub.o,
5452 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
5453 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
5454 pthread_mutex_unlock): New stubs.
5456 2010-08-22 Joseph Myers <joseph@codesourcery.com>
5458 * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
5459 * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
5461 * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
5462 * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
5463 * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
5464 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
5465 * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
5467 * cppspec.c: Include opts.h.
5468 (lang_specific_driver): Use cl_decoded_option structures.
5469 * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
5470 * doc/tm.texi: Regenerate.
5471 * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
5472 (driver_handle_option): Allow driver options needing no special
5474 (process_command): Decode options before call to
5475 lang_specific_driver. Pass decoded options to
5476 lang_specific_driver.
5477 * gcc.h (lang_specific_driver): Update prototype.
5478 * gccspec.c: Include opts.h.
5479 (lang_specific_driver): Use cl_decoded_option structures.
5480 * opts-common.c (option_ok_for_language, generate_option,
5481 generate_option_input_file): New.
5482 (decode_cmdline_option): Use option_ok_for_language.
5483 (decode_cmdline_options_to_array): Use generate_option_input_file.
5484 (handle_generated_option): Use generate_option.
5485 * opts.h (generate_option, generate_option_input_file): Declare.
5487 2010-08-22 Anatoly Sokolov <aesok@post.ru>
5489 * config/mips/mips.c (mips_override_options): Rename to...
5490 (mips_option_override): ...this. Make static.
5491 (TARGET_OPTION_OVERRIDE): Define.
5492 (mips_in_small_data_p): Update comment.
5493 * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
5494 (FIXED_REGISTERS): Update comment.
5495 * config/mips/mips-protos.h (mips_override_options): Remove.
5497 2010-08-21 Olivier Hainque <hainque@adacore.com>
5499 * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
5501 2010-08-21 Olivier Hainque <hainque@adacore.com>
5503 * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
5504 ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
5506 2010-08-20 Jan Hubicka <jh@suse.cz>
5508 * tree-pass.h (pass_ipa_cdtor_merge): New function.
5509 * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
5511 (record_cdtor_fn): Move to ipa.c; do not test for
5513 (build_cdtor): Move to ipa.c; add code avoiding construction
5514 when target have ctors/dtors and there is only one ctor/dtor at given
5516 (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
5517 sort; reverse order of constructors.
5518 (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
5519 (cgraph_finalize_function): Do not call record_cdtor_fn.
5520 (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
5521 (cgraph_build_static_cdtor): Move to ipa.c.
5522 * ipa.c: Include target.h and tree-iterator.h.
5523 (cgraph_build_static_cdtor, static_ctors, static_dtors,
5524 record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
5525 build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
5526 pass_ipa_cdtor_merge): New.
5527 * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
5528 * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
5531 2010-08-20 Jan Hubicka <jh@suse.cz>
5535 * cgraph.h (cgraph_only_called_directly_p,
5536 cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
5538 * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
5540 (cgraph_finalize_function): Static cdtors are reachable.
5541 (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
5543 2010-08-20 Jan Hubicka <jh@suse.cz>
5545 * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
5547 * lto-streamer-out.c (lto_output): Likewise.
5548 * passes.c (ipa_write_optimization_summaries): Initialize statement
5551 2010-08-20 Olivier Hainque <hainque@adacore.com>
5553 * tree.h (alias_diag_flags): New enum.
5554 (alias_pair): Add an 'emitted_diags' field.
5555 * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
5556 (assemble_alias): Initialize emitted_diags of new pairs.
5558 2010-08-20 Eric Botcazou <ebotcazou@adacore.com>
5560 * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
5561 * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5562 * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5563 (STACK_CHECK_PROTECT): Define.
5564 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
5565 (output_probe_stack_range): Likewise.
5566 (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
5567 builtin stack checking is enabled.
5568 * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
5569 * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
5570 (probe_stack_range): New insn.
5572 2010-08-20 H.J. Lu <hongjiu.lu@intel.com>
5575 * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
5578 * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
5581 2010-08-20 Jakub Jelinek <jakub@redhat.com>
5584 * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
5585 to cover zero extension into 64-bit register.
5586 (*sse2_pextrw): Likewise.
5587 (*sse4_1_pextrd_zext): New insn.
5589 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
5591 revert r163410, partially revert r163267.
5592 * config/rs6000/darwin.h (LIB_SPEC): Remove.
5593 * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
5596 2010-08-20 Jakub Jelinek <jakub@redhat.com>
5599 * builtins.c (expand_builtin): Don't optimize away
5600 calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
5602 2010-08-20 Uros Bizjak <ubizjak@gmail.com>
5604 * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
5605 (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
5606 alternative 1 of operand 2.
5608 2010-08-20 Jakub Jelinek <jakub@redhat.com>
5609 Paolo Bonzini <bonzini@gnu.org>
5611 * simplify-rtx.c (simplify_unary_operation_1): Optimize
5612 (sign_extend (zero_extend (...)) and
5613 ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
5615 2010-08-20 Jakub Jelinek <jakub@redhat.com>
5617 PR rtl-optimization/45353
5618 * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
5619 after bb_note is a BARRIER.
5621 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
5623 * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
5626 2010-08-20 Jakub Jelinek <jakub@redhat.com>
5627 Michael Matz <matz@suse.de>
5629 * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
5631 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
5633 * ggc-common.c (ggc_mark_root_tab): New function, split out from...
5634 (ggc_mark_roots): ...here.
5636 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
5638 * vec.h (FOR_EACH_VEC_ELT): Define.
5640 * cfgloop.c: Likewise.
5641 * cfgloopmanip.c: Likewise.
5642 * cgraph.c: Likewise.
5643 * cgraphunit.c: Likewise.
5644 * combine.c: Likewise.
5645 * config/bfin/bfin.c: Likewise.
5646 * config/mips/mips.c: Likewise.
5647 * config/rs6000/rs6000.c: Likewise.
5648 * dbxout.c: Likewise.
5649 * df-scan.c: Likewise.
5650 * dominance.c: Likewise.
5652 * dwarf2out.c: Likewise.
5653 * except.c: Likewise.
5655 * function.c: Likewise.
5657 * genattr.c: Likewise.
5658 * ggc-common.c: Likewise.
5659 * gimplify.c: Likewise.
5660 * graphite-blocking.c: Likewise.
5661 * graphite-clast-to-gimple.c: Likewise.
5662 * graphite-dependences.c: Likewise.
5663 * graphite-interchange.c: Likewise.
5664 * graphite-poly.c: Likewise.
5665 * graphite-scop-detection.c: Likewise.
5666 * graphite-sese-to-poly.c: Likewise.
5667 * graphite.c: Likewise.
5668 * haifa-sched.c: Likewise.
5669 * ifcvt.c: Likewise.
5670 * implicit-zee.c: Likewise.
5671 * ipa-prop.c: Likewise.
5672 * ipa-struct-reorg.c: Likewise.
5674 * ira-build.c: Likewise.
5675 * ira-color.c: Likewise.
5676 * ira-emit.c: Likewise.
5677 * lambda-code.c: Likewise.
5678 * loop-invariant.c: Likewise.
5679 * loop-unroll.c: Likewise.
5680 * lower-subreg.c: Likewise.
5681 * lto-cgraph.c: Likewise.
5682 * lto-opts.c: Likewise.
5683 * lto-streamer-in.c: Likewise.
5684 * lto-streamer-out.c: Likewise.
5685 * lto-streamer.c: Likewise.
5686 * lto-symtab.c: Likewise.
5687 * matrix-reorg.c: Likewise.
5689 * predict.c: Likewise.
5690 * print-tree.c: Likewise.
5691 * sdbout.c: Likewise.
5692 * sel-sched-dump.c: Likewise.
5693 * sel-sched-ir.c: Likewise.
5694 * sel-sched.c: Likewise.
5696 * stor-layout.c: Likewise.
5697 * tree-cfg.c: Likewise.
5698 * tree-cfgcleanup.c: Likewise.
5699 * tree-chrec.c: Likewise.
5700 * tree-data-ref.c: Likewise.
5701 * tree-emutls.c: Likewise.
5702 * tree-inline.c: Likewise.
5703 * tree-into-ssa.c: Likewise.
5704 * tree-loop-distribution.c: Likewise.
5705 * tree-loop-linear.c: Likewise.
5706 * tree-mudflap.c: Likewise.
5707 * tree-outof-ssa.c: Likewise.
5708 * tree-parloops.c: Likewise.
5709 * tree-predcom.c: Likewise.
5710 * tree-pretty-print.c: Likewise.
5711 * tree-scalar-evolution.c: Likewise.
5712 * tree-ssa-live.c: Likewise.
5713 * tree-ssa-loop-im.c: Likewise.
5714 * tree-ssa-loop-ivcanon.c: Likewise.
5715 * tree-ssa-loop-ivopts.c: Likewise.
5716 * tree-ssa-loop-manip.c: Likewise.
5717 * tree-ssa-loop-niter.c: Likewise.
5718 * tree-ssa-loop-prefetch.c: Likewise.
5719 * tree-ssa-phiprop.c: Likewise.
5720 * tree-ssa-pre.c: Likewise.
5721 * tree-ssa-reassoc.c: Likewise.
5722 * tree-ssa-sccvn.c: Likewise.
5723 * tree-ssa-structalias.c: Likewise.
5724 * tree-ssa.c: Likewise.
5725 * tree-vect-data-refs.c: Likewise.
5726 * tree-vect-loop-manip.c: Likewise.
5727 * tree-vect-loop.c: Likewise.
5728 * tree-vect-patterns.c: Likewise.
5729 * tree-vect-slp.c: Likewise.
5730 * tree-vect-stmts.c: Likewise.
5731 * tree-vrp.c: Likewise.
5733 * value-prof.c: Likewise.
5734 * var-tracking.c: Likewise.
5735 * varasm.c: Likewise.
5736 * vmsdbgout.c: Likewise.
5738 2010-08-19 Nathan Sidwell <nathan@codesourcery.com>
5739 Richard Guenther <richard.guenther@gmail.com>
5741 * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
5742 copy the src value and return a copy.
5743 * doc/extend.texi (Volatiles): Move from C++ to C and expand.
5744 (C++ Volatiles): Adjust to describe C++ semantics only.
5746 2010-08-20 Joseph Myers <joseph@codesourcery.com>
5748 * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
5750 * doc/tm.texi: Regenerate.
5751 * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
5752 * df-scan.c (df_get_exit_block_use_set), reginfo.c
5753 (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
5754 Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
5755 * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
5758 2010-08-20 Olivier Hainque <hainque@adacore.com>
5760 * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
5761 an extra nop past a sibling call at the very end.
5763 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
5766 * combine.c (try_combine): Initialize i1_is_used and i2_is_used. Fix
5769 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
5771 * target.def (function_arg, function_incoming_arg): Remove const
5772 qualifier on CUMULATIVE_ARGS parameter.
5773 * targhooks.h (default_function_arg, default_function_incoming_arg):
5775 * targhooks.c (default_function_arg, default_function_incoming_arg):
5777 * config/i386/i386.c (ix86_function_arg): Likewise.
5779 2010-08-19 Jakub Jelinek <jakub@redhat.com>
5782 * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
5783 SIGN_EXTENDs or ZERO_EXTENDs.
5785 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
5788 * combine.c (combine_validate_cost): New arg I0. All callers changed.
5789 Take its cost into account if nonnull.
5790 (insn_a_feeds_b): New static function.
5791 (combine_instructions): Look for four-insn combinations.
5792 (can_combine_p): New args PRED2, SUCC2. All callers changed. Take
5793 them into account when computing all_adjacent and looking for other
5795 (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC. All callers
5796 changed. Treat them like I1DEST and I1_NOT_IN_SRC.
5797 (try_combine): New arg I0. Handle four-insn combinations.
5798 (distribute_notes): New arg ELIM_I0. All callers changed. Treat it
5801 2010-08-19 Jason Merrill <jason@redhat.com>
5804 * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
5806 (gimplify_modify_expr_rhs): Adjust.
5808 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
5810 * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
5812 * config/bfin/bifn.c (bfin_discover_loop): Likewise.
5813 * dominance.c (iterate_fix_dominators): Likewise.
5814 * dse.c (set_usage_bits): Likewise.
5815 (set_position_unneeded, record_store): Likewise.
5816 * gimple-fold.c (get_maxval_strlen): Likewise.
5817 * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
5818 * ipa-inline.c (update_caller_keys): Likewise.
5819 * ipa-split.c (verify_non_ssa_vars): Likewise.
5820 * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
5821 (close_type_exposed_parameter, close_type_full_escape): Likewise.
5822 (close_addressof_down): Likewise.
5823 * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
5824 (setup_allocno_left_conflicts_size): Likewise.
5825 (ira_reassign_conflict_allocnos): Likewise.
5826 (ira_reassign_pseudos): Likewise.
5827 * ira-emit.c (change_loop): Likewise.
5828 * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
5829 * lto-streamer-out.c (write_symbol): Likewise.
5830 * predict.c (expr_expected_value_1): Likewise.
5831 * regstat.c (regstat_bb_compute_ri): Likewise.
5832 * sel-sched.c (create_block_for_bookkeeping): Likewise.
5833 (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
5834 * stmt.c (expand_case): Likewise.
5835 * tree-eh.c (emit_eh_dispatch): Likewise.
5836 * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
5837 * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
5839 (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
5840 (rdg_build_components): Likewise.
5841 * tree-object-size.c (collect_object_sizes_for): Likewise.
5842 * tree-sra.c (convert_callers): Likewise.
5843 * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
5844 * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
5845 * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
5847 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
5849 * config/i386/i386.md (*lea_1): Use P mode iterator.
5850 (lea add splitter): Also handle DImode operands.
5851 (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
5852 predicate. Do not use ix86_lea_for_add_ok.
5853 (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
5854 (lea ashift splitter): Also handle DImode operands.
5855 (DImode lea ashift splitter): Remove splitter.
5857 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
5859 * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
5860 ix86_binary_operator_ok.
5862 2010-08-19 Andrey Belevantsev <abel@ispras.ru>
5864 PR rtl-optimization/44691
5865 * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
5868 2010-08-19 Ian Bolton <ian.bolton@arm.com>
5871 * config/arm/arm.c (arm_output_epilogue): Ensure that return
5872 value of size 1-3 is handled correctly.
5874 2010-08-19 Ian Bolton <ian.bolton@arm.com>
5876 * tree-switch-conversion.c (gen_inbound_check): Ensure that the
5877 type for the conditional has wide enough range.
5879 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
5882 * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
5883 ix86_binary_operator_ok.
5885 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
5887 * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
5888 <default>: Swap operands 1 and 2 for alternative 2 to use existing
5889 code to output insn mnemonic. Fix comment.
5890 (*addsi_1_zext): Add r-r-0 alternative 1.
5891 <TYPE_LEA>: Split insn to lea.
5892 <default>: Handle alternative 1.
5893 (*addhi_1_lea): Add r-r-0 alternative 2. Use cond RTX instead of
5894 multi-level if_then_else RTX to set "type" attribute.
5895 <default>: Handle alternative 2.
5896 (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
5897 Use cond RTX instead of multi-level if_then_else RTX to set
5899 <default>: Handle alternatives 2 and 4.
5900 (lea splitters): Update calls to ix86_lea_for_add_ok.
5902 * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
5904 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
5906 2010-08-18 Richard Guenther <rguenther@suse.de>
5908 * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
5909 use operand helpers.
5911 2010-08-18 Paolo Bonzini <bonzini@gnu.org>
5914 * optabs.c (expand_bool_compare_and_swap): Expand pending
5915 pops before trying the optab.
5917 2010-08-18 Yao Qi <yao@codesourcery.com>
5920 * config/arm/arm.c (output_move_double): Fix typo generating
5921 instructions ('ldr'->'str').
5923 2010-08-18 Maxim Kuvyrkov <maxim@codesourcery.com>
5925 PR rtl-optimization/42575
5926 * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
5929 2010-08-18 Marcus Shawcroft <marcus.shawcroft@arm.com>
5931 * config/arm/arm-protos.h (arm_expand_sync): New.
5932 (arm_output_memory_barrier, arm_output_sync_insn): New.
5933 (arm_sync_loop_insns): New.
5934 * config/arm/arm.c (FL_ARCH7): New.
5935 (FL_FOR_ARCH7): Include FL_ARCH7.
5937 (arm_print_operand): Support %C markup.
5938 (arm_legitimize_sync_memory): New.
5939 (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
5940 (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
5941 (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
5942 (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
5943 (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
5944 (arm_process_output_sync_insn, arm_output_sync_insn): New.
5945 (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
5946 * config/arm/arm.h (struct arm_sync_generator): New.
5947 (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
5948 (TARGET_HAVE_MEMORY_BARRIER): New.
5949 (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
5950 * config/arm/arm.md: Include sync.md.
5951 (UNSPEC_MEMORY_BARRIER): New.
5952 (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
5953 (VUNSPEC_SYNC_OP):New.
5954 (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
5955 (sync_result, sync_memory, sync_required_value): New attributes.
5956 (sync_new_value, sync_t1, sync_t2): Likewise.
5957 (sync_release_barrier, sync_op): Likewise.
5958 (length): Add logic to length attribute defintion to call
5959 arm_sync_loop_insns when appropriate.
5960 * config/arm/sync.md: New file.
5962 2010-08-17 Jakub Jelinek <jakub@redhat.com>
5964 * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
5965 ENABLE_TREE_CHECKING.
5966 (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
5969 2010-08-17 H.J. Lu <hongjiu.lu@intel.com>
5971 * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
5972 or optimizing for size, always avoid lea if possible.
5974 * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
5976 2010-08-17 Iain Sandoe <iains@gcc.gnu.org>
5978 * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
5979 Dunmmy function with NULL return unless the target is
5980 OSX >= 10.6 (Darwin10).
5982 2010-08-17 Jack Howarth <howarth@bromo.med.uc.edu>
5984 * gcc.c (spec_function): Add remove-outfile.
5985 (remove_outfile_spec_function): New function.
5986 * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
5987 * invoke.texi (replace-outfile): Document.
5989 2010-08-17 Uros Bizjak <ubizjak@gmail.com>
5992 * reginfo.c (globalize_reg): Reject stack registers.
5994 2010-08-17 Richard Guenther <rguenther@suse.de>
5996 * tree-ssa-dom.c (struct edge_info): Use a VEC for the
5997 list of conditional equivalences.
5998 (free_all_edge_infos): Adjust.
5999 (record_equivalences_from_incoming_edge): Likewise.
6000 (record_cond): Likewise.
6001 (build_and_record_new_cond): Likewise.
6002 (record_conditions): Likewise.
6003 (dom_opt_leave_block): Likewise.
6005 2010-08-17 Kai Tietz <kai.tietz@onevision.com>
6007 * doc/invoke.texi (ms-extension): Add documentation.
6009 2010-08-17 Richard Guenther <rguenther@suse.de>
6011 * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
6013 2010-08-17 Shujing Zhao <pearly.zhao@oracle.com>
6016 * c-decl.c (diagnose_uninitialized_cst_member): New function.
6017 (finish_decl): Use it to issue a -Wc++-compat warning about
6018 uninitialized const field in struct or union.
6020 (finish_struct): Use strip_array_types.
6022 2010-08-17 Jakub Jelinek <jakub@redhat.com>
6024 * function.c (block_fragments_nreverse, blocks_nreverse_all): New
6026 (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
6027 (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL. Don't
6028 call block_nreverse here.
6029 (blocks_nreverse): Rename decl temporary to block.
6031 2010-08-16 Bernd Schmidt <bernds@codesourcery.com>
6033 * config/arm/thumb2.md (thumb2_notsi_shiftsi,
6034 thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
6035 thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
6036 thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
6037 thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
6038 thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
6039 thumb2_iorsi3): Delete.
6040 (orsi_notsi_si): No longer a named pattern.
6041 (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
6042 * config/arm/predicates.md (shift_amount_operand): New.
6043 (mult_operator): New.
6044 * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
6046 (iorsi3_insn): Renamed from arm_iorsi3. Handle a new alternative if
6048 (not_shiftsi): Renamed from arm_notsi_shiftsi. Handle Thumb2 variant.
6049 (not_shiftsi_compare0): Likewise, renamed from
6050 arm_notsi_shiftsi_compare0.
6051 (not_shiftsi_compare0_scratch): Likweise, renamed from
6052 arm_notsi_shiftsi_compare0_scratch.
6053 (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
6054 (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
6055 (arith_shiftsi): Handle Thumb2 variant. Set insn_enabled attribute
6056 so that the register alternative is disabled when the shift_operator
6057 is MULT. Use "M" as the constraint for constants.
6058 (arith_shiftsi splitter): Enable for TARGET_32BIT.
6059 (arith_shiftsi_compare0): Handle Thumb2 variant. Use "M" as the
6060 constraint for constants.
6061 (arith_shiftsi_compare0_scratch): Likewise.
6062 (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
6063 Handle Thumb2 alternative.
6065 2010-08-16 Joseph Myers <joseph@codesourcery.com>
6067 * doc/options.texi (NoDriverArg): Document.
6068 * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
6070 * opt-functions.awk (switch_flags): Handle NoDriverArg.
6071 * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
6072 marking for CL_NO_DRIVER_ARG options when in the driver.
6073 * opts.h (CL_NO_DRIVER_ARG): Define.
6074 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
6075 CL_COMMON): Update values.
6077 2010-08-16 Joseph Myers <joseph@codesourcery.com>
6079 * common.opt: Add driver options.
6080 (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
6081 * doc/options.texi (Driver, RejectDriver): Document.
6082 * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
6083 print_prog_name, print_multi_directory, print_sysroot,
6084 print_multi_os_directory, print_multi_lib,
6085 print_sysroot_headers_suffix, report_times, combine_flag,
6086 use_pipes, wrapper_string): Remove.
6087 (save_switch, driver_unknown_option_callback,
6088 driver_wrong_lang_callback, driver_post_handling_callback,
6089 driver_handle_option): New.
6090 (spec_lang, last_language_n_infiles): Make file-scope static
6091 instead of local to process_command.
6092 (process_command): Use decode_cmdline_options_to_array and
6093 read_cmdline_option for option processing. Compute have_c in
6094 prescan of decoded options.
6095 * opt-functions.awk (switch_flags): Handle Driver and
6097 (var_type, var_type_struct): Handle Separate options as generating
6098 const char * variables.
6099 * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
6100 CL_TARGET to be passed by caller if required.
6101 (decode_cmdline_options_to_array): Update comment.
6102 * opts.c (complain_wrong_lang): Handle options only valid for the
6104 (decode_options): Update call to decode_cmdline_options_to_array.
6105 (print_filtered_help): Ignore driver-only options.
6106 (print_specific_help): Ignore CL_DRIVER.
6107 (common_handle_option): Don't call print_specific_help for CL_DRIVER.
6108 * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
6109 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
6112 2010-08-16 Richard Guenther <rguenther@suse.de>
6114 * tree-cfg.c (verify_types_in_gimple_reference): Verify
6115 TARGET_MEM_REF a bit.
6116 * tree-ssa-address.c (addr_for_mem_ref): Adjust.
6117 (create_mem_ref_raw): Always create TMR_OFFSET, store the
6118 alias pointer type via it.
6119 (copy_mem_ref_info): Adjust.
6120 (maybe_fold_tmr): Likewise.
6121 * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
6122 (reference_alias_ptr_type): Likewise.
6123 * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
6124 adjust documentation of TMR_OFFSET operand.
6125 * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
6126 use the alias pointer type.
6127 * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
6128 initialize mem attrs but the TMR itself.
6129 * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
6131 * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
6132 * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
6133 (unshare_and_remove_ssa_names): Likewise.
6134 (copy_ref_info): Adjust.
6135 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
6136 TARGET_MEM_REF case.
6137 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
6139 * tree.h (TMR_ORIGINAL): Remove.
6140 * gimple.c (get_base_address): For TARGET_MEM_REF with a
6142 * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
6144 (get_addr_base_and_unit_offset): Likewise.
6145 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
6147 (indirect_ref_may_alias_decl_p): Likewise.
6148 (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
6150 2010-08-15 Uros Bizjak <ubizjak@gmail.com>
6152 * doc/invoke.texi (-fomit-frame-pointer): Document that starting
6153 with GCC version 4.6, the default setting (when not optimizing
6154 for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
6155 been changed to -fomit-frame-pointer.
6157 2010-08-15 Iain Sandoe <iains@gcc.gnu.org>
6159 * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
6160 Darwin10. Do not link libgcc.a for Darwin >= 9.
6162 2010-08-15 Gerald Pfeifer <gerald@pfeifer.com>
6164 * doc/invoke.texi (Warning Options): Fix terminology and markup
6165 in the description of how unknown warning options are handled.
6167 2010-08-15 Ira Rosen <irar@il.ibm.com>
6169 * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
6171 (vect_supportable_dr_alignment): Check alignment for basic blocks.
6172 * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
6174 (vect_bb_vectorization_profitable_p): New function.
6175 (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
6176 check if it's worthwhile to vectorize the basic block.
6178 2010-08-14 Anatoly Sokolov <aesok@post.ru>
6180 * reload.h (register_move_cost, memory_move_secondary_cost,
6181 secondary_reload_class): Adjust prototype.
6182 * rtl.h (reg_class_subset_p): Adjust prototype.
6183 * reload.c (secondary_reload_class): Change arguments type from
6184 enum reg_class to reg_class_t. Change result type to reg_class_t.
6185 * reginfo.c (register_move_cost, reg_class_subset_p): Change
6186 arguments type from enum reg_class to reg_class_t.
6187 (memory_move_secondary_cost): Change arguments type from
6188 enum reg_class to reg_class_t. Change type of saved_flags to
6191 * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
6193 (mips_cost): Remove.
6194 (struct mips_rtx_cost_data): Moved to mips.c.
6195 * config/mips/mips-protos.h (mips_register_move_cost): Remove.
6196 * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
6197 (mips_cost): Make static.
6198 (mips_canonicalize_move_class): Change argument type to reg_class_t.
6199 Change result type to reg_class_t.
6200 (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
6201 type from enum reg_class to reg_class_t.
6202 (mips_register_move_cost): Make static. Change arguments
6203 type from enum reg_class to reg_class_t.
6204 (mips_memory_move_cost): New function.
6205 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
6207 2010-08-14 Richard Sandiford <rdsandiford@googlemail.com>
6209 PR rtl-optimization/43358
6210 * ira-lives.c (process_single_reg_class_operands): Adjust the costs
6211 of a single hard register, using simplify_subreg_regno to decide
6212 what that register should be.
6214 2010-08-14 Mingjie Xing <mingjie.xing@gmail.com>
6216 * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
6217 * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
6218 (loongson_pmull<V_suffix>): Rename to...
6219 (mul<mode>3): ...this and use MULT instead of an UNSPEC.
6221 2010-08-13 Jack Howarth <howarth@bromo.med.uc.edu>
6223 * configure.ac: Enable -fomit-frame-pointer on darwin
6224 which support dwarf2.
6225 * config/i386/i386.c (override_options): Same.
6227 2010-08-13 Jie Zhang <jie@codesourcery.com>
6229 * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
6231 2010-08-12 Joseph Myers <joseph@codesourcery.com>
6233 * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
6236 2010-08-12 Changpeng Fang <changpeng.fang@amd.com>
6238 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
6239 up dot_prod pattern searching if a stmt is outside the loop.
6241 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
6242 Uros Bizjak <ubizjak@gmail.com>
6244 * config.gcc: Handle --enable-frame-pointer.
6246 * configure.ac: Add --enable-frame-pointer.
6247 * configure: Regenerated.
6249 * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
6250 (override_options): If not configured with --enable-frame-pointer,
6251 enable -fomit-frame-pointer (but not for TARGET_MACHO or when
6252 optimizing for size), -fasynchronous-unwind-tables and
6253 -maccumulate-outgoing-args by default.
6255 2010-08-12 Jakub Jelinek <jakub@redhat.com>
6257 * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
6260 * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
6261 -a overflows. Normalize the range.
6263 2010-08-12 Richard Guenther <rguenther@suse.de>
6265 PR tree-optimization/45232
6266 * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
6267 for types with undefined overflow.
6268 (reassociate_bb): Allow re-associating of bit and min/max
6269 operations for types with undefined overflow.
6270 * tree-ssa-forwprop.c (associate_plusminus): New function.
6271 (tree_ssa_forward_propagate_single_use_vars): Call it.
6273 2010-08-12 Richard Guenther <rguenther@suse.de>
6275 * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
6276 * tree-ssa-alias.c (get_ptr_info): Move ...
6277 * tree-ssanames.c (get_ptr_info): ... here. Initialize
6278 align and misalign fields conservatively.
6279 * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
6280 derive alignment information.
6281 (evaluate_stmt): Derive alignment information from memory
6282 allocation functions.
6283 * tree.h (get_pointer_alignment): Make unsigned.
6284 * builtins.c (get_object_alignment): Use alignment information we
6285 have computed for pointers.
6286 (get_pointer_alignment): Likewise. Make conservative, return
6288 (expand_builtin_strlen): Adjust.
6289 (expand_builtin_memcmp): Likewise.
6290 (expand_builtin_strcmp): Likewise.
6291 (expand_builtin_strncmp): Likewise.
6292 (get_builtin_sync_mem): Use at least mode alignment.
6293 (fold_builtin_memset): Adjust.
6294 (fold_builtin_memory_op): Likewise.
6295 * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
6296 information also dump pointer alignment knowledge.
6297 (dump_gimple_stmt): Likewise.
6299 2010-08-12 Uros Bizjak <ubizjak@gmail.com>
6301 * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
6302 (EMPTY_FIELD_BOUNDARY): Remove.
6303 * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
6305 2010-08-12 Jakub Jelinek <jakub@redhat.com>
6308 * caller-save.c (save_call_clobbered_regs): Only swap notes with
6309 DEBUG_INSNs if n_regs_saved.
6311 2010-08-12 Wei Guozhi <carrot@google.com>
6314 * config/arm/arm.md (andsi3): Change to zero extension if possible.
6315 * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
6317 2010-08-11 Vladimir Makarov <vmakarov@redhat.com>
6319 * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
6321 * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
6323 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6325 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
6326 the case removed in the previous patch, when the only phi argument
6327 is defined in the same loop as the phi node itself. Handle it
6328 separately from the invariant case by both propagating it outside
6329 the region and replacing the phi node with an assign.
6331 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6333 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
6334 constant phi nodes with one argument are is_gimple_min_invariant
6335 and SSA_NAME_IS_DEFAULT_DEF.
6337 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
6339 * graphite-cloog-util.c (oppose_constraint):
6340 Extend loop counter's value range (CLOOG_ORG).
6341 (cloog_matrix_to_ppl_constraint): Same.
6342 (new_Constraint_System_from_Cloog_matrix): Same.
6343 * graphite-cloog-compat.h (matrix_num_type): New.
6345 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
6347 * graphite.c (graphite_initialize): Do not initialize
6348 CLooG and initialize the Parma Polyhedra Library
6349 manually when using CLOOG_ORG.
6350 (graphite_finalize): Do not finalize CLooG and finalize
6351 the Parma Polyhedra Library manually when using CLOOG_ORG.
6352 * graphite-cloog-compat.h (cloog_initialize): Hide function
6353 when using CLOOG_ORG.
6354 (cloog_finalize): Same.
6356 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
6358 * graphite-clast-to-gimple.c (free_scattering): Change
6359 CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
6361 (build_cloog_prog): Same.
6362 * graphite-cloog-compat.h (cloog_domain): Removed.
6363 (cloog_scattering): New.
6364 (cloog_set_domain): Removed.
6365 (cloog_set_scattering): New.
6366 (cloog_next_domain): Removed.
6367 (cloog_next_scattering): New.
6368 (cloog_set_next_domain): Removed.
6369 (cloog_set_next_scattering): New.
6370 (CloogScatteringList): New.
6371 (CloogScattering): New.
6372 (cloog_scattering_free): New.
6373 (new_Cloog_Scattering_from_ppl_Polyhedron): New.
6374 * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
6377 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
6379 * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
6381 (set_cloog_options): Same.
6382 (print_clast_stmt): Same.
6383 (scop_to_clast): Same.
6384 (print_generated_program): Same.
6386 * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
6387 (scop_to_clast): Extend with CloogState.
6388 * graphite-cloog-util.c: Include graphite-cloog-compat.h
6389 (new_Cloog_Domain_from_ppl_Polyhedron):
6390 Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
6391 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
6392 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6393 * graphite-cloog-util.h (build_cloog_prog): Same.
6394 * graphite-cloog-copat.h (build_cloog_prog): New.
6396 (cloog_state_malloc): New.
6397 (cloog_state_free): New.
6398 (cloog_loop_malloc): New.
6399 (cloog_options_malloc): New.
6400 (cloog_statement_alloc): New.
6401 (cloog_domain_from_cloog_matrix): New.
6402 (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
6403 (new_Cloog_Domain_from_ppl_Polyhedron): New.
6405 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
6407 * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
6408 type of NAME now depends on used CLooG version.
6409 (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
6410 (gcc_type_for_clast_expr): Same.
6411 (print_clast_stmt): Replace pprint with clast_pprint.
6412 * graphite-cloog-compat.h: Provide compatibility macros for
6414 (clast_name_p): New.
6415 (clast_expr_term): New.
6416 (clast_expr_red): New.
6417 (clast_expr_bin): New.
6418 (clast_pprint): New.
6420 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
6422 * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
6423 compatible to newer CLooG releases (CLOOG_ORG).
6424 (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
6425 (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
6426 * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
6427 (build_cloog_prog) : New.
6428 (cloog_program_extract_scalars): New.
6429 (cloog_program_scatter): New.
6431 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
6433 * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
6434 conditionally (CLOOG_ORG).
6435 * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h.
6436 (cloog_statement_usr): New.
6437 (cloog_domain): Same.
6438 (cloog_set_domain): Same.
6439 (cloog_next_domain): Same.
6440 (cloog_set_next_domain): Same.
6441 (cloog_program_nb_scattdims): Same.
6442 (cloog_program_set_nb_scattdims): Same.
6443 (cloog_program_names): Same.
6444 (cloog_program_set_names): Same.
6445 (cloog_program_set_context): Same.
6446 (cloog_program_set_loop): Same.
6447 (cloog_program_blocklist): Same.
6448 (cloog_program_set_blocklist): Same.
6449 (cloog_program_scaldims): Same.
6450 (cloog_program_set_scaldims): Same.
6451 (cloog_names_nb_parameters): Same.
6452 (cloog_names_set_nb_parameters): Same.
6453 (cloog_names_parameters): Same.
6454 (cloog_names_set_parameters): Same.
6455 (cloog_names_set_nb_iterators): Same.
6456 (cloog_names_set_iterators): Same.
6457 (cloog_names_set_nb_scattering): Same.
6458 (cloog_names_set_scattering): Same.
6459 (cloog_statement_set_usr): Same.
6460 (cloog_loop_set_next): Same.
6461 (cloog_loop_set_domain): Same.
6462 (cloog_loop_set_block): Same.
6463 (cloog_block_list_next): Same.
6464 (cloog_block_list_set_next):
6465 (cloog_block_list_set_block): Same.
6467 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6469 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
6471 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
6472 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
6473 (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
6474 when something has been changed.
6475 (rewrite_commutative_reductions_out_of_ssa): Same.
6477 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6479 * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
6480 handle the case when def is in the sese region.
6481 (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
6482 for invariant expressions.
6483 (rewrite_cross_bb_phi_deps): Removed.
6484 (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
6485 (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
6486 rewrite_cross_bb_phi_deps.
6488 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6490 * graphite-sese-to-poly.c
6491 (rewrite_commutative_reductions_out_of_ssa_loop): Call
6492 scev_analyzable_p only on is_gimple_reg
6494 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6496 * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
6497 (rewrite_close_phi_out_of_ssa): Propagate constant values or
6498 parametric expressions outside the scop region.
6499 (rewrite_cross_bb_scalar_deps): Same.
6500 * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
6502 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6504 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
6505 SSA_NAME_DEF_STMT only on SSA_NAMEs.
6507 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6509 * tree-scalar-evolution.c (instantiate_scev_name): Do not
6510 instantiate default definitions.
6512 2010-08-11 Vladimir Kargov <kargov@gmail.com>
6513 Sebastian Pop <sebastian.pop@amd.com>
6515 * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
6516 (loop_exits_from_bb_p): New.
6517 * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
6518 (loop_exits_from_bb_p): Declared.
6519 * graphite-scop-detection.c (scopdet_basic_block_info): Call
6522 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6524 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
6525 extra parameter for the region. Call scev_analyzable_p.
6526 (rewrite_reductions_out_of_ssa): Update call to
6527 rewrite_close_phi_out_of_ssa.
6528 (rewrite_cross_bb_phi_deps): Same.
6529 (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
6530 parameter for the region. Call scev_analyzable_p.
6531 (rewrite_commutative_reductions_out_of_ssa): Update call to
6532 rewrite_commutative_reductions_out_of_ssa_loop.
6534 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6536 * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
6538 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6540 * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
6541 SSA scalar phi nodes that can be scev_analyzable_p.
6543 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6545 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
6546 handle SSA_NAME_IS_DEFAULT_DEF.
6548 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6550 * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
6552 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6554 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
6555 case non close-phi nodes with one argument.
6557 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6559 * sese.h (scev_analyzable_p): Scevs could be expressions without
6560 chrecs and still be scev_analyzable_p.
6562 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6564 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
6566 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6568 * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
6569 * cfgloop.h (struct loop): Remove single_iv field.
6570 * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
6571 (scop_canonicalize_loops): Removed.
6572 (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate
6573 over all the loop phi nodes in loop->header.
6574 (build_poly_scop): Remove use of scop_canonicalize_loops.
6576 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6578 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
6581 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6583 * tree-chrec.c (chrec_apply): Should only apply to the specified
6584 variable. Also handle multivariate chains of recurrences that
6585 satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT.
6587 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6589 * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
6590 (debug_clast_name_indexes_1): Removed.
6591 (debug_clast_name_indexes): Removed.
6592 (pbb_to_depth_to_oldiv): Removed.
6593 (build_iv_mapping): Replace the use of rename_map with iv_map.
6594 (translate_clast_user): Remove uses of rename_map. Allocate and
6596 (translate_clast_for_loop): Remove uses of rename_map.
6597 (translate_clast_for): Same.
6598 (translate_clast_guard): Same.
6599 (translate_clast): Same.
6601 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
6602 * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
6603 * sese.c (set_rename): Now static.
6604 (rename_variables_in_stmt): Removed.
6606 (is_parameter): Removed.
6608 (expand_scalar_variables_call): Removed.
6609 (expand_scalar_variables_ssa_name): Removed.
6610 (expand_scalar_variables_expr): Removed.
6611 (expand_scalar_variables_stmt): Removed.
6612 (expand_scalar_variables): Removed.
6613 (rename_variables): Removed.
6614 (remove_condition): Removed.
6615 (get_true_edge_from_guard_bb): Removed.
6616 (get_false_edge_from_guard_bb): Removed.
6617 (struct igp): Removed.
6618 (default_before_guard): Removed.
6619 (convert_for_phi_arg): Removed.
6620 (add_guard_exit_phis): Removed.
6621 (insert_guard_phis): Removed.
6622 (graphite_copy_stmts_from_block): Now also uses iv_map and a
6623 region. Do not copy conditions. Do not copy induction variables.
6625 (copy_bb_and_scalar_dependences): Allocate a local rename_map for
6626 the translated statement. Use the iv_map for the induction
6628 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
6629 (set_rename): Removed declaration.
6630 (scev_analyzable_p): ...here.
6631 * tree-chrec.c (chrec_apply_map): New.
6632 * tree-chrec.h (chrec_apply_map): Declared.
6634 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6636 * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
6637 insert_loop_close_phis.
6638 * sese.c (name_defined_in_loop_p): Removed.
6639 (expr_defined_in_loop_p): Removed.
6640 (alive_after_loop): Removed.
6641 (close_phi_not_yet_inserted_p): Removed.
6642 (struct alep): Removed.
6643 (add_loop_exit_phis): Removed.
6644 (insert_loop_close_phis): Removed.
6646 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
6648 * graphite-cloog-util.c
6649 (cloog_matrix_to_ppl_constraint): Fix flipped condition.
6651 (psct_scattering_dim_for_loop_depth): Same.
6653 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
6655 * graphite-cloog-util.h: Added cloog.h.
6656 * graphite-blocking.c: Removed cloog.h.
6657 * graphite-dependences.c: Same.
6658 * graphite-interchange.c: Same.
6659 * graphite-poly.c: Same.
6660 * graphite-ppl.c: Same.
6661 * graphite-scop-detection.c: Same.
6662 * graphite-sese-to-poly.c:
6664 Removed graphite-clast-to-gimple.h.
6665 (check_poly_representation): Removed (unused).
6666 * graphite-sese-to-poly.h
6667 (check_poly_representation): Removed (unused).
6669 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
6671 * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
6672 (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
6673 (graphite-cloog-util.o): New.
6674 (graphite-ppl.o): Added graphite-cloog-util.h.
6675 * graphite-clast-to-gimple.c:
6676 Added graphite-cloog-util.h to include statements.
6677 * graphite-cloog-util.c: New.
6678 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
6679 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6680 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
6681 (new_C_Polyhedron_from_Cloog_Matrix): Same.
6682 (insert_constraint_into_matrix): Same.
6683 (ppl_Constrain_System_number_of_constraints): Same.
6684 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
6685 (oppose_constraint): Same.
6686 (cloog_matrix_to_ppl_constraint): Same.
6687 (new_Constraint_System_from_Cloog_Matrix): Same.
6688 * graphite-cloog-util.h: New.
6689 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
6690 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6691 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
6692 (new_C_Polyhedron_from_Cloog_Matrix): Same.
6693 (insert_constraint_into_matrix): Same.
6695 Added graphite-cloog-util.h to include statements.
6696 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
6697 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6698 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
6699 (new_C_Polyhedron_from_Cloog_Matrix): Same.
6700 (insert_constraint_into_matrix): Same.
6701 (ppl_Constrain_System_number_of_constraints): Same.
6702 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
6703 (oppose_constraint): Same.
6704 (cloog_matrix_to_ppl_constraint): Same.
6705 (new_Constraint_System_from_Cloog_Matrix): Same.
6707 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
6708 graphite-cloog-util.h.
6709 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6710 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
6711 (new_C_Polyhedron_from_Cloog_Matrix): Same.
6712 (insert_constraint_into_matrix): Same.
6714 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
6716 * graphite-clast-to-gimple.c
6717 (precision_for_value): Resolve value_* calls to matching mpz_* calls.
6718 (precision_for_interval): Same.
6719 (gcc_type_for_interval): Same.
6720 (compute_type_for_level): Same.
6721 * graphite-interchange.c
6722 (lst_interchange_profitable_p): Same.
6724 (psct_scattering_dim_for_loop_depth): Same.
6726 (ppl_max_for_le_pointset): Same.
6727 (ppl_min_for_le_pointset): Same.
6729 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6731 * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
6732 (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
6734 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6736 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
6737 rewrite_close_phi_out_of_ssa.
6739 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6741 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
6743 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6745 * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
6747 * sese.c (debug_rename_map): Same.
6750 (rename_variables_in_stmt): Same.
6751 (expand_scalar_variables_call): Same.
6752 (expand_scalar_variables_ssa_name): Same.
6753 (expand_scalar_variables_expr): Same.
6754 (expand_scalar_variables_stmt): Same.
6755 (expand_scalar_variables): Same.
6756 (rename_variables): Same.
6757 (graphite_copy_stmts_from_block): Same.
6758 (copy_bb_and_scalar_dependences): Same.
6760 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6762 * graphite-clast-to-gimple.c (copy_renames): Removed.
6763 (translate_clast_for): Do not call copy_renames.
6764 (translate_clast_guard): Same.
6766 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6768 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
6769 (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
6770 (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
6771 before rewrite_cross_bb_scalar_deps.
6773 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6775 * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
6776 Early return in when flag_associative_math is not set.
6778 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6780 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
6781 of SSA copies on edges except for loop->latch.
6783 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6785 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
6786 Split out of rewrite_reductions_out_of_ssa.
6787 * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
6789 * graphite.c (graphite_transform_loops): Call it.
6791 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6793 * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
6795 2010-08-11 Alexander Monakov <amonakov@ispras.ru>
6797 * dbgcnt.def (graphite_scop): New counter.
6798 * graphite.c: Include dbgcnt.h.
6799 (graphite_transform_loops): Use new counter to limit transformations.
6800 * Makefile.in (graphite.o): Depend on DBGCNT_H.
6802 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6804 * passes.c (init_optimization_passes): Add pass_graphite.
6805 Schedule a pass_copy_prop before pass_graphite_transforms.
6806 * timevar.def (TV_GRAPHITE): Declared.
6807 * tree-pass.h (pass_graphite): Declared.
6808 * tree-ssa-loop.c (pass_graphite): New.
6810 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6812 * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
6813 Remove calls to rename_nb_iterations and rename_sese_parameters.
6814 * graphite-clast-to-gimple.h (gloog): Update declaration.
6815 * graphite.c (graphite_transform_loops): Update call to gloog.
6816 * sese.c (rename_variables_in_expr): Removed.
6817 (rename_nb_iterations): Removed.
6818 (rename_sese_parameters): Removed.
6819 * sese.h (rename_nb_iterations): Removed.
6820 (rename_sese_parameters): Removed.
6822 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6824 * graphite-clast-to-gimple.c (gloog): Remove call to
6825 sese_adjust_liveout_phis.
6826 * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
6827 SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
6828 (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
6829 rewrite_phi_out_of_ssa.
6830 * sese.c (get_vdef_before_sese): Removed.
6831 (sese_adjust_vphi): Removed.
6832 (sese_adjust_liveout_phis): Removed.
6833 * sese.h (sese_adjust_liveout_phis): Removed.
6835 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6837 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
6838 argument for the place after which to insert the out of SSA copy.
6839 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
6840 (rewrite_phi_out_of_ssa): Same.
6841 (rewrite_cross_bb_scalar_deps): Same.
6842 (insert_copyout): Removed.
6843 (insert_copyin): Removed.
6844 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
6845 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
6848 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6850 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
6851 (rewrite_reductions_out_of_ssa): Same.
6852 (rewrite_commutative_reductions_out_of_ssa): Same.
6853 (build_poly_scop): Do not call these functions.
6854 * graphite-sese-to-poly.h (build_poly_scop): Declared.
6855 (rewrite_reductions_out_of_ssa): Declared.
6856 (rewrite_commutative_reductions_out_of_ssa): Declared.
6857 * graphite.c (graphite_transform_loops): Call on every scop
6858 rewrite_commutative_reductions_out_of_ssa before calling
6859 rewrite_reductions_out_of_ssa and build_scop_bbs.
6861 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6863 * graphite-dependences.c (dot_deps): Make system call to dotty run
6865 (dot_deps_stmt): Same.
6866 * graphite-poly.c (dot_lst): Same.
6868 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6870 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
6871 phi_arg_in_outermost_loop.
6872 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
6873 (remove_invariant_phi): Same.
6875 2010-08-11 Anatoly Sokolov <aesok@post.ru>
6877 * target.def (output_addr_const_extra): New hook.
6878 * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
6879 * doc/tm.texi: Regenerate.
6880 * targhooks.c (default_asm_output_addr_const_extra): New function.
6881 * targhooks.h (default_asm_output_addr_const_extra): Declare.
6882 * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
6885 * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6886 * config/i386/i386-protos.h (output_addr_const_extra): Remove.
6887 * config/i386/i386.h (output_addr_const_extra): Rename to...
6888 (i386_asm_output_addr_const_extra): ...this. Make static.
6889 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6891 2010-08-11 Richard Henderson <rth@redhat.com>
6893 * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
6895 2010-08-11 Nick Clifton <nickc@redhat.com>
6897 * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
6898 * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
6899 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
6900 stormy16-lib2-cmpsi.c.
6902 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
6905 2010-08-11 Joseph Myers <joseph@codesourcery.com>
6907 * opts.h (struct cl_option_handler_func): Make handler take
6908 cl_decoded_option structure as parameter, not individual elements.
6909 (struct cl_option_handlers): Make callbacks take cl_decoded_option
6910 structure as parameter, not individual elements.
6911 (handle_option): Take cl_decoded_option structure as parameter,
6912 not individual elements.
6913 (handle_generated_option): Declare.
6914 * opts-common.c (handle_option): Take cl_decoded_option structure
6915 as parameter, not individual elements. Update calls to callback
6916 and handler functions.
6917 (handle_generated_option): New.
6918 (read_cmdline_option): Update calls to callback functions and
6920 * opts.c (common_handle_option, complain_wrong_lang,
6921 unknown_option_callback, post_handling_callback,
6922 lang_handle_option, target_handle_option): Take cl_decoded_option
6923 structure as parameter, not individual elements.
6924 (lang_handle_option, target_handle_option, common_handle_option):
6925 Assert option has at most one argument.
6926 (enable_warning_as_error): Call handle_generated_option instead of
6927 handle_option. Do not pass -Werror argument as argument of
6930 2010-08-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6932 * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
6933 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
6934 (SUBWORD_BOOL_CAS): Likewise.
6935 (SUBWORD_SYNC_OP): Likewise.
6936 (SUBWORD_TEST_AND_SET): Likewise.
6937 (FETCH_AND_OP_WORD): Parenthesise INF_OP
6938 (SUBWORD_SYNC_OP): Likewise.
6939 (OP_AND_FETCH_WORD): Likewise.
6941 2010-08-10 Xinliang David Li <davidxl@google.com>
6943 * tree-ssa-loop-ivopts.c (get_address_cost): Properly
6944 compute max/min offset in address.
6946 2010-08-10 Vladimir Makarov <vmakarov@redhat.com>
6948 * ira-live.c: Include sbitmap.h.
6949 (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
6950 Compress live ranges even more.
6952 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
6954 * coverage.c (ctr_labels): Delete.
6956 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
6959 * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
6960 test here from arm_gen_load_multiple_1.
6961 (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
6962 multiple_operation_profitable_p.
6964 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
6966 * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
6967 (fini_pre): Call free_aux_for_blocks. Delete unused bb variable.
6969 2010-08-10 Richard Henderson <rth@redhat.com>
6971 * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
6972 after saving registers. Assert that SSE registers are only saved
6973 with a sufficiently aligned frame.
6974 (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
6975 remove stack_realign_fp handling.
6976 (ix86_expand_prologue): Save int registers before stack_realign_fp,
6977 and do not mark the stack alignment as frame related.
6978 (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
6980 * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
6981 saves when re-aligning the stack.
6983 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
6985 * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
6986 * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
6987 (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
6989 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
6991 * dwarf2out.c (struct die_struct): Move die_tag to the end.
6993 2010-08-09 Sofiane Naci <sofiane.naci@arm.com>
6995 * config/arm/iterators.md: New file.
6996 * config/arm/arm.md: Include iterators.md.
6997 (QHSI): Move to new file.
6998 (LTUGEU, cnb, optab, ior_xor): Likewise.
6999 * config/arm/iwmmxt.md (VMMX): Move to new file.
7000 (VSHFT, MMX_char): Likewise.
7001 * config/arm/neon.md (VD): Move to new file.
7002 (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
7003 (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
7004 (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
7005 (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
7006 (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
7007 (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
7008 (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
7009 (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
7010 (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
7011 (Is_d_reg, V_mode_nunits): Likewise.
7012 * config/arm/vec-common.md (VALL): Move to new file.
7013 (VALLW, VINT, VINTW): Likewise.
7015 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
7018 * combine.c (make_compound_operation): Don't try to convert
7019 shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
7021 2010-08-10 Richard Guenther <rguenther@suse.de>
7023 * tree.h (get_object_alignment): Adjust prototype.
7024 * builtins.c (get_object_alignment): Return unsigned int,
7025 drop the align parameter. Handle MEM_REF, MISALIGNED_INDIRECT_REF
7026 and TARGET_MEM_REF properly.
7027 (get_pointer_alignment): Adjust.
7028 * emit-rtl.c (get_mem_align_offset): Adjust comment.
7029 (set_mem_attributes_minus_bitpos): Adjust.
7030 * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
7032 2010-08-10 Richard Guenther <rguenther@suse.de>
7034 * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
7035 (copy_prop_visit_assignment): Simplify.
7036 (copy_prop_visit_stmt): Also visit assignments from
7038 (copy_prop_visit_phi_node): Use operand_equal_p.
7040 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
7042 * ipa-split.c (find_split_points): Free stack.
7044 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
7046 * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
7047 * tree.c (tree_node_kind): Delete corresponding entries.
7049 2010-08-09 H.J. Lu <hongjiu.lu@intel.com>
7051 * alias.c (may_alias_p): Remove unused ret.
7053 2010-08-09 Bingfeng Mei <bmei@broadcom.com>
7055 * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
7056 alias_sets_conflict_p.
7057 (walk_mems_1): Moved from alias.c.
7058 (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
7060 (add_inter_loop_mem_dep): Use insns_may_alias_p now.
7061 * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
7062 * alias.c (walk_mems_2): Moved to ddg.c.
7063 (walk_mems_1): Ditto.
7064 (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
7066 (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
7068 *(may_alias_p): New function to check whether two memory expression
7069 may alias or not. Currently used in buidling inter-iteration memory
7071 *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
7072 (insn_alias_sets_conflict_p): Removed
7073 *rtl.h (may_alias_p): New function prototype.
7075 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
7077 * tree.c (nreverse): Assert that we don't have a BLOCK.
7079 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
7081 * builtins.c (fold_builtin_next_arg): Use stdarg_p.
7082 * config/arm/arm.c (arm_get_pcs_model): Likewise.
7083 * config/avr/avr.c (init_cumulative_args): Likewise.
7084 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
7085 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
7086 * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
7087 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
7088 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
7089 * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
7090 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
7091 * dwarf2out.c (gen_subprogram_die): Likewise.
7092 * function.c (allocate_struct_function): Likewise.
7093 * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
7094 (deserves_ellipsis): Delete.
7096 2010-08-09 Richard Guenther <rguenther@suse.de>
7098 * tree-ssa-copy.c (cached_last_copy_of): Remove.
7099 (valueize_val): New function.
7100 (get_last_copy_of): Remove.
7101 (set_copy_of_val): Simplify.
7102 (dump_copy_of): Likewise.
7103 (copy_prop_visit_cond_stmt): Use valueize_val.
7104 (copy_prop_visit_phi_node): Properly handle unvisited names.
7105 Drop code managing copy-of chains.
7106 (init_copy_prop): Adjust.
7107 (fini_copy_prop): Likewise.
7108 (execute_copy_prop): Remove obsolete comment.
7110 2010-08-09 Richard Guenther <rguenther@suse.de>
7113 * function.c (gimplify_parameters): Do not clear addressable
7114 bit of the original parameter.
7116 2010-08-09 Richard Guenther <rguenther@suse.de>
7119 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
7120 alignment from MEM_REF offset only if we took it from the
7123 2010-08-09 Eric Fisher <joefoxreal@gmail.com>
7125 * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
7127 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
7129 * c-tree.h (build_arg_info): Declare.
7130 * c-decl.c (build_arg_info): Define.
7131 (get_parm_info): Call it. Delete initialization code.
7132 * c-parser.c (c_parser_parms_declarator): Likewise.
7133 (c_parser_parms_list_declaractor): Likewise.
7135 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
7137 * c-tree.h (c_arg_tag): Define. Define a VEC containing it.
7138 (struct c_arg_info): Change type of tags field.
7139 * c-decl.c (grokdeclarator): Update for changed type of tags field.
7140 (get_parm_info): Likewise.
7141 (store_parm_decls_newstyle): Likewise.
7143 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
7145 * config/rs6000/rs6000.c (branch_island): Define. Define a VEC of it.
7146 (branch_island_list): Delete.
7147 (branch_islands): Declare.
7148 (add_compiler_branch_island): Adjust for branch_islands instead of
7150 (macho_branch_islands): Likewise.
7151 (no_previous_def): Likewise.
7152 (get_prev_label): Likewise.
7154 2010-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7157 * gthr-posix.h (__gthread_start): Delete.
7158 (__gthread_active_init): Use pthread_default_stacksize_np instead of
7159 pthread_create to determine if hpux pthreads are active.
7160 * gthr-posix95.h (__gthread_start): Delete.
7161 (__gthread_active_init): Likewise use pthread_default_stacksize_np.
7163 2010-08-08 Kai Tietz <kai.tietz@onevision.com>
7165 * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
7166 _WIN64 not expanded.
7168 2010-08-07 Uros Bizjak <ubizjak@gmail.com>
7169 H.J. Lu <hongjiu.lu@intel.com>
7172 * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
7173 to output 32bit SFmode immediate as 8 byte sign extended value.
7175 2010-08-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
7177 * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
7178 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
7179 (SUBWORD_BOOL_CAS): Likewise.
7180 (SUBWORD_SYNC_OP): Likewise.
7181 (SUBWORD_TEST_AND_SET): Likewise.
7182 (FETCH_AND_OP_WORD): Parenthesise INF_OP
7183 (SUBWORD_SYNC_OP): Likewise.
7184 (OP_AND_FETCH_WORD): Likewise.
7186 2010-08-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7188 * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
7189 * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
7190 (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
7191 (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
7193 (cortex_a9_sched_adjust_cost): New function.
7194 (xscale_sched_adjust_cost): New function.
7195 * config/arm/arm-protos.h (struct tune_params): New field
7197 * config/arm/arm-cores.def: Adjust costs for cortex-a9.
7199 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
7202 * config/sparc/sparc.c (function_arg_advance): Always take into account
7203 the padding, if any.
7205 2010-08-06 Richard Guenther <rguenther@suse.de>
7207 * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
7208 (dump_lattice_value): Dump it.
7209 (get_default_value): Adjust.
7210 (get_constant_value): Likewise.
7211 (set_value_varying): Likewise.
7212 (set_lattice_value): Make sure to not go up the lattice
7213 with bitwise constant values.
7214 (get_value_for_expr): Handle ADDR_EXPRs.
7215 (value_to_double_int): New function.
7216 (get_value_from_alignment): Likewise.
7217 (do_dbg_cnt): Adjust.
7218 (ccp_lattice_meet): Handle partially constant values.
7219 (bit_value_unop_1): New function.
7220 (bit_value_binop_1): Likewise.
7221 (bit_value_unop): Likewise.
7222 (bit_value_binop): Likewise.
7223 (evaluate_stmt): Track partially constant values if
7224 flag_tree_bit_ccp is set.
7225 (ccp_fold_stmt): Dump if we folded a predicate.
7226 (ccp_visit_stmt): Adjust.
7227 * common.opt (ftree-bit-ccp): New flag.
7228 * doc/invoke.texi (ftree-bit-ccp): Document.
7229 * opts.c (decode_options): Enable bit-CCP at -O1.
7231 2010-08-06 Alan Modra <amodra@gmail.com>
7233 * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
7234 and -mrelocatable-lib description.
7236 2010-08-05 Bernd Schmidt <bernds@codesourcery.com>
7238 From Martin Thuresson <martint@google.com>
7239 * postreload.c (reload_cse_simplify_operands): Use
7240 SET_REGNO_RAW instead of SET_REGNO.
7241 * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
7243 * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
7244 instead of SET_REGNO.
7245 * rtl.h (SET_REGNO_RAW): New macro.
7247 2010-08-05 Eric Botcazou <ebotcazou@adacore.com>
7249 * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
7250 computations. Fix formatting issues.
7251 (num_sign_bit_copies1): Likewise.
7252 (canonicalize_condition): Likewise.
7254 2010-08-05 Richard Henderson <rth@redhat.com>
7256 * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
7257 (floor_log2): Use clz_hwi.
7258 (exact_log2): Use ctz_hwi.
7259 * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
7260 * builtins.c (fold_builtin_bitop): Use them.
7261 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
7262 * combine.c (get_pos_from_mask): Use ctz_hwi.
7263 * double-int.c (double_int_ctz): Likewise.
7264 * explow.c (force_reg): Likewise.
7265 * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
7267 2010-08-05 Richard Henderson <rth@redhat.com>
7270 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
7271 the alignment constant is properly sign-extended.
7273 2010-08-05 Richard Guenther <rguenther@suse.de>
7275 * expr.c (store_expr): Use emit_block_move only if both
7276 source and target are MEMs. Use store_bit_field if only
7277 the target is a MEM.
7279 2010-08-05 Richard Henderson <rth@redhat.com>
7282 * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
7283 (INCOMING_RETURN_ADDR_RTX): Likewise.
7284 (dwarf2out_do_frame): Remove conditional compilation.
7285 (dwarf2out_frame_init): Likewise.
7287 2010-08-05 Nicolas Setton <setton@adacore.com>
7289 * gcov.c (flag_display_progress): New static variable.
7290 (main): Display progress info on standard output if requested.
7291 (options): Add -d/--display-progress.
7292 (print_usage): Print them.
7293 (process_args): Handle them.
7294 * doc/gcov.texi: Document them.
7296 2010-08-05 Martin Jambor <mjambor@suse.cz>
7298 * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
7299 (ipcp_insert_stage): Redirect only edges not flagged with
7300 indirect_inlining_edge. Call ipcp_discover_new_direct_edges for all
7301 discovered constants.
7303 2010-08-05 Martin Jambor <mjambor@suse.cz>
7305 * ipa-prop.h (enum ipa_lattice_type): Changed comments.
7306 (struct ipa_param_descriptor): New fields types and
7307 cannot_devirtualize.
7308 (ipa_param_cannot_devirtualize_p): New function.
7309 (ipa_param_types_vec_empty): Likewise.
7310 (ipa_make_edge_direct_to_target): Declare.
7311 * ipa-cp.c: Fixed first stage driver name in initial comment,
7312 described devirtualization there too.
7313 (ipcp_analyze_node): Call ipa_analyze_params_uses.
7314 (ipcp_print_all_lattices): Print devirtualization info.
7315 (ipa_set_param_cannot_devirtualize): New function.
7316 (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
7318 (ipcp_init_stage): Merged into...
7319 (ipcp_generate_summary): ...its caller.
7320 (ipcp_change_tops_to_bottom): Also process type lists.
7321 (ipcp_add_param_type): New function.
7322 (ipcp_copy_types): Likewise.
7323 (ipcp_propagate_types): Likewise.
7324 (ipcp_propagate_stage): Also propagate types.
7325 (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
7326 Also return true if propagated types require it.
7327 (ipcp_update_callgraph): Dump redirection info.
7328 (ipcp_process_devirtualization_opportunities): New function.
7329 (ipcp_const_param_count): Include known type information.
7330 (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
7331 on new node. Fixed formatting.
7332 * ipa-prop.c (make_edge_direct_to_target): Renamed to
7333 ipa_make_edge_direct_to_target and changed all callers. Made
7335 (ipa_node_duplication_hook): Duplicate types vector.
7336 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
7337 redirect outgoing calls for which we can't get a decl from the
7338 statement. Check that we can get a decl from the call statement.
7339 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
7340 ipa_analyze_params_uses only when ipa-cp is disabled.
7341 * tree-inline.c (get_indirect_callee_fndecl): Removed.
7342 (expand_call_inline): Do not call get_indirect_callee_fndecl.
7343 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
7344 * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
7346 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
7348 * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
7349 temporary. Emit move from temporary to accum, so REG_EQUAL note will
7350 be attached to this insn in correct mode.
7352 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
7354 * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
7355 using REGNO of base_reg directly.
7357 2010-08-05 Jie Zhang <jie@codesourcery.com>
7359 PR tree-optimization/45144
7360 * tree-sra.c (type_consists_of_records_p): Return false
7361 if the record contains bit-field.
7363 2010-08-04 Richard Henderson <rth@redhat.com>
7365 * config/i386/i386.c (struct ix86_frame): Remove padding and
7366 to_allocate members.
7367 (ix86_compute_frame_layout): Don't store them.
7368 (ix86_can_use_return_insn_p): Use a more direct and more obviously
7369 correct condition for the position of the stack pointer.
7370 (ix86_expand_prologue): Compute remaining stack allocation based
7371 on the ultimate stack pointer offset.
7372 (ix86_expand_epilogue): Use more obvious expressions testing for
7373 the stack pointer already pointing to the saved registers.
7375 * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
7376 duplication deconstructing the frame pointer. Simplify
7377 deallocation of the local stack frame.
7379 * reg-notes.def (CFA_EXPRESSION): New.
7380 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
7381 (dwarf2out_frame_debug_cfa_expression): New.
7382 (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
7384 * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
7385 * config/i386/i386.c (ix86_expand_prologue): Set it.
7386 (ix86_expand_epilogue): Clear it.
7387 (ix86_emit_save_reg_using_mov): For registers saved in a realigned
7388 context, add REG_CFA_EXPRESSION notes.
7390 * config/i386/i386.h (struct machine_frame_state): Rename from
7391 machine_cfa_state. Add members tracking SP and FP regardless
7392 of the current CFA register.
7393 (ix86_cfa_state): Remove.
7394 * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
7395 and sse_reg_save_offset members.
7396 (ix86_compute_frame_layout): Set them.
7397 (gen_push): Increment sp_offset too.
7398 (choose_baseaddr_len, choose_baseaddr): New.
7399 (ix86_emit_save_reg_using_mov): New.
7400 (ix86_emit_save_regs_using_mov): Use it.
7401 (ix86_emit_save_sse_regs_using_mov): Likewise.
7402 (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
7403 compare vs the saved red_zone_offset.
7404 (pro_epilogue_adjust_stack): Adjust sp_offset.
7405 (ix86_adjust_stack_and_probe): Likewise.
7406 (ix86_expand_prologue): Set up, use, and validate the new
7407 frame_state_info members. Use gen_frame_mem.
7408 (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
7409 (ix86_emit_restore_reg_using_pop): Likewise. Use and update the
7410 new frame_state_info members.
7411 (ix86_emit_leave): Likewise.
7412 (ix86_emit_restore_regs_using_mov): Likewise. Don't check for
7413 out-of-range stack pointer offsets here.
7414 (ix86_emit_restore_sse_regs_using_mov): Likewise.
7415 (ix86_expand_epilogue): Use and validate the new frame_state_info
7416 members. Break up and simplify the logic selecting the
7417 restore_regs_via_mov code path. Ensure that there will be no
7418 out-of-range stack pointer offsets.
7420 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
7422 * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
7423 argument name to reflect the expected tree; fix indentation.
7424 (ix86_asm_output_function_label): Output the entire 32-bit
7425 ms_hook here as bytes ...
7426 (ix86_expand_prologue): ... not here as insns. Attach the
7427 unwind info for the ms_hook to a blockage insn.
7428 (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
7429 (ix86_ms_bitfield_layout_p): Fix indentation.
7430 * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
7432 * config/i386/i386.c (ix86_using_red_zone): New.
7433 (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
7434 ix86_expand_prologue, ix86_force_to_memory): Use it.
7436 * config/i386/i386.c (ix86_expand_prologue): Simplify logic
7437 saving the int registers.
7439 * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
7440 and DWARF2_UNWIND_INFO conditional compilation.
7442 2010-08-04 Richard Henderson <rth@redhat.com>
7445 * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
7446 an is_naming_typedef_decl.
7448 2010-08-04 Bernd Schmidt <bernds@codesourcery.com>
7450 PR rtl-optimization/45162
7451 * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
7452 * dce.c (word_dce_process_block): Likewise.
7454 2010-08-04 Steve Ellcey <sje@cup.hp.com>
7457 * config/ia64/constraints.md (Z): New.
7458 * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
7459 (xfreg_or_signed_fp01_operand): New.
7460 * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
7461 with fr_reg_or_signed_fp01_operand and constraint G with Z.
7466 (adddf3_trunc): Ditto.
7468 (*subdf3_trunc): Ditto.
7470 (*madddf4_trunc): Ditto.
7472 (*msubdf4_trunc): Ditto.
7473 (addxf3): Replace xfreg_or_fp01_operand with
7474 xfreg_or_signed_fp01_operand and constraint G with Z.
7475 (*addxf3_truncsf): Ditto.
7476 (*addxf3_truncdf): Ditto.
7478 (*subxf3_truncsf): Ditto.
7479 (*subxf3_truncdf): Ditto.
7481 (*maddxf4_truncsf): Ditto.
7482 (*maddxf4_truncdf): Ditto.
7484 (*msubxf4_truncsf): Ditto.
7485 (*msubxf4_truncdf): Ditto.
7487 2010-08-04 Richard Guenther <rguenther@suse.de>
7489 * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
7490 if either alias-set is zero.
7492 2010-08-04 Richard Guenther <rguenther@suse.de>
7494 * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
7495 * tree-ssa-ccp.c: ... here.
7496 * tree-ssa-copy.c: ... and here.
7497 * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
7498 value_range_t): Move ...
7499 * tree-vrp.c: ... here.
7500 * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
7501 (substitute_and_fold): Adjust prototype.
7502 * tree-ssa-propagate.c (replace_uses_in): Adjust.
7503 (replace_phi_args_in): Likewise.
7504 (substitute_and_fold): Take callback to query lattice instead
7505 of pointer to lattice. Replace SSA name defs with lattice
7507 * tree-ssa-ccp.c (ccp_finalize): Adjust.
7508 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
7509 (get_value): New function.
7510 (fini_copy_prop): Adjust.
7511 * tree-vrp.c (vrp_finalize): Adjust.
7513 2010-08-04 Richard Guenther <rguenther@suse.de>
7516 * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
7517 points-to set for original MEM_REF.
7519 2010-08-04 Richard Guenther <rguenther@suse.de>
7521 * tree-ssa-ccp.c (get_constant_value): New function.
7522 (get_rhs_assign_op_for_ccp): Remove.
7523 (valueize_op): New function.
7524 (ccp_fold): Use get_constant_value and valueize_op.
7525 (fold_const_aggregate_ref): Likewise.
7526 (ccp_fold_stmt): Likewise.
7527 (visit_assignment): Simplify.
7529 2010-08-04 Richard Guenther <rguenther@suse.de>
7531 * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
7532 * double-int.h (double_int_ctz): Declare.
7533 * double-int.c (double_int_ctz): New function.
7535 2010-08-04 Hariharan Sandanagobalane <hariharan@picochip.com>
7537 * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
7539 picochip_expand_movmemhi : Expand movmem pattern.
7540 * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
7542 * config/picochip/picochip.md (movmemhi) : New pattern.
7544 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
7546 * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
7548 2010-08-03 Bernd Schmidt <bernds@codesourcery.com>
7550 * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
7551 NEG as operand of a MULT by merging it with the other operand.
7552 * combine.c (make_compound_operation): Use trunc_int_for_mode when
7553 generating a MULT with constant. Canonicalize PLUS and MINUS involving
7555 * config/arm/constraints.md (M): Examine only 32 bits of a
7557 * config/arm/predicates.md (power_of_two_operand): Likewise.
7559 2010-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7561 * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
7564 2010-08-03 Jan Hubicka <jh@suse.cz>
7566 * ipa-split.c (struct split_point): Add split_part_set_retval.
7567 (find_retval): Forward declare.
7568 (test_nonssa_use, mark_nonssa_use): Special case return by reference.
7569 (consider_split): Compute current->split_part_set_retval.
7570 (visit_bb): Do not look into return value.
7571 (split_function): Handle !split_part_set_retval
7573 2010-08-03 Martin Jambor <mjambor@suse.cz>
7575 * tree-sra.c (completely_scalarize_record): New parameter REF, create
7576 its own access->expr intead of using build_ref_for_offset.
7578 2010-08-03 Joseph Myers <joseph@codesourcery.com>
7580 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
7581 * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
7582 * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
7583 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
7584 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
7585 * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
7586 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
7587 DEFAULT_SWITCH_TAKES_ARG.
7588 * config/rx/rx.opt (-patch=): Remove option.
7589 * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
7590 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
7591 * doc/invoke.texi (RX Options): Remove -patch=.
7592 * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
7593 (option_map): Remove --profile-blocks, --quiet and --silent.
7595 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
7597 * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
7598 * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
7599 (ix86_expand_branch): Add op0 and op1 arguments. Do not access
7600 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
7601 Update calls to ix86_expand_compare and ix86_expand_branch.
7602 (ix86_expand_setcc): Add op0 and op1 arguments. Update calls to
7603 ix86_expand_compare.
7604 (ix86_expand_compare): Add op0 and op1 arguments. Do not access
7605 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
7607 (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
7608 and ix86_compare_op1. Update calls to ix86_expand_compare.
7609 (ix86_expand_int_movcc): Ditto.
7610 (ix86_expand_fp_movcc): Ditto. Update calls to ix86_expand_setcc.
7611 * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
7612 (ix86_expand_setcc): Ditto.
7613 (ix86_expand_compare): Remove prototype.
7614 * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
7615 ix86_compare_op0 and ix86_compare_op1. Update calls
7616 to ix86_expand_branch to directly pass operands[1] and operands[2].
7617 (cbranchxf4): Ditto.
7618 (cbranch<MODEF:mode>4): Ditto.
7619 (cbranchcc4): Ditto.
7620 (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
7621 Update calls to ix86_expand_setcc to directly pass operands[2] and
7624 (cstore<MODEF:mode>4): Ditto.
7627 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
7630 * caller-save.c (save_call_clobbered_regs): Remove regs from
7631 hard_regs_saved when they are set.
7633 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
7636 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
7639 2010-08-02 Sebastian Pop <sebastian.pop@amd.com>
7641 * common.opt (ftree-loop-distribute-patterns): New.
7642 * invoke.texi (-ftree-loop-distribute-patterns): Documented.
7643 * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
7645 * tree-data-ref.c (stores_zero_from_loop): New.
7646 * tree-data-ref.h (stores_zero_from_loop): Declared.
7647 * tree-loop-distribution.c (tree_loop_distribution): Call
7648 stores_zero_from_loop.
7649 (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
7651 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
7653 * postreload.c (reload_cse_simplify_operands): Take attribute enabled
7656 * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
7657 * config/arm/arm.c (thumb1_code): New variable.
7658 (arm_override_options): Set it.
7659 (thumb1_final_prescan_insn): Keep track of condition code status.
7660 (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
7661 jumps that depend on them.
7662 * config/arm/arm.h (thumb1_code): Declare variable.
7663 (struct machine_function): Guard with #ifndef GENERATOR_FILE. Add
7664 members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
7666 (CC_STATUS_INIT): New macro.
7667 * config/arm/constraints.md (Pd): New constraint.
7668 * config/arm/predicates.md (noov_comparison_operator): New predicate.
7669 * config/arm/arm.md (is_thumb1): New define_attr.
7670 (conds): Set default to "clob" when generating Thumb1 code.
7671 (thumb1_bicsi3): Renamed from bicsi3. All uses changed. Condition
7672 code are set. Use two-operand assembly syntax.
7673 (thumb1_subsi3_insn): Condition codes are set. Now a properly named
7675 (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
7676 codes are set. Use two-operand assembly syntax.
7677 (zero_extendhisi splitter): Remove constraints.
7678 (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
7679 thumb1_movsf_insn): Set conds attribute as appropriate.
7680 (cbranchsi4_insn): Use condition code status from struct
7681 machine_function to determine whether the comparison can be eliminated.
7682 Discourage the alternative using high registers.
7683 (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
7684 orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
7685 bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
7686 subsi3_cbranch): Delete.
7687 (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
7688 one subtract and one cbranch insn.
7690 * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
7691 thumb2_movdf_soft_insn): Delete patterns.
7692 * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
7693 arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
7694 (pool_range, neg_pool_range): Use them to define defaults.
7695 (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
7696 and allow for TARGET_32BIT.
7699 * config/arm/arm.h (arm_regs_in_sequence): Declare.
7700 * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
7701 load_multiple_sequence, store_multiple_sequence): Delete
7703 (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
7705 * config/arm/ldmstm.md: New file.
7706 * config/arm/arm.c (arm_regs_in_sequence): New array.
7707 (load_multiple_sequence): Now static. New args SAVED_ORDER,
7708 CHECK_REGS. All callers changed.
7709 If SAVED_ORDER is nonnull, copy the computed order into it.
7710 If CHECK_REGS is false, don't sort REGS. Handle Thumb mode.
7711 (store_multiple_sequence): Now static. New args NOPS_TOTAL,
7712 SAVED_ORDER, REG_RTXS and CHECK_REGS. All callers changed.
7713 If SAVED_ORDER is nonnull, copy the computed order into it.
7714 If CHECK_REGS is false, don't sort REGS. Set up REG_RTXS just
7715 like REGS. Handle Thumb mode.
7716 (arm_gen_load_multiple_1): New function, broken out of
7717 arm_gen_load_multiple.
7718 (arm_gen_store_multiple_1): New function, broken out of
7719 arm_gen_store_multiple.
7720 (arm_gen_multiple_op): New function, with code from
7721 arm_gen_load_multiple and arm_gen_store_multiple moved here.
7722 (arm_gen_load_multiple, arm_gen_store_multiple): Now just
7723 wrappers around arm_gen_multiple_op. Remove argument UP, all callers
7725 (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
7726 * config/arm/predicates.md (commutative_binary_operator): New.
7727 (load_multiple_operation, store_multiple_operation): Handle more
7728 variants of these patterns with different starting offsets. Handle
7730 * config/arm/arm.md: Include "ldmstm.md".
7731 (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
7732 ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
7733 stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
7735 * config/arm/ldmstm.md: New file.
7736 * config/arm/arm-ldmstm.ml: New file.
7738 * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
7739 if statement which adds extra costs to frame-related expressions.
7741 2010-08-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7743 * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
7745 2010-08-01 Uros Bizjak <ubizjak@gmail.com>
7748 * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
7750 (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
7751 split V4SI operands.
7753 2010-08-01 Anatoly Sokolov <aesok@post.ru>
7755 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
7756 * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
7757 * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
7758 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
7760 2010-07-31 Kai Tietz <kai.tietz@onevision.com>
7762 * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
7765 2010-07-31 Richard Sandiford <rdsandiford@googlemail.com>
7767 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
7768 used in the call to optab_for_tree_code. Fix the second
7769 is_widening_mult_p call. Check that both unwidened operands
7772 2010-07-31 John Tytgat <John.Tytgat@aaug.net>
7774 * config/arm/arm.c (arm_function_arg): Remove superfluous test.
7776 2010-07-31 Anatoly Sokolov <aesok@post.ru>
7778 * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
7780 2010-07-30 DJ Delorie <dj@redhat.com>
7782 * config/rx/predicates.md (rx_constshift_operand): New.
7783 * config/rx/rx.md (zs_cond): New.
7784 (cbranchsi4): Remove mode.
7785 (*cbranchsi4_<code>): Likewise.
7786 (*tstbranchsi4_<code>): New.
7787 (*tstbranchsi4r_<code>): New.
7788 (*tstbranchsi4m_eq): New.
7789 (*tstbranchsi4m_ne): New.
7790 (cbranchsf4): Remove mode.
7791 (*cbranchsf4_<code>): Likewise.
7793 2010-07-30 Bernd Schmidt <bernds@codesourcery.com>
7795 * rtlanal.c (simplify_subreg_regno): Don't treat
7796 HARD_FRAME_POINTER_REGNUM specially.
7798 2010-07-30 Joseph Myers <joseph@codesourcery.com>
7800 * common.opt (-G): Don't define option here.
7801 * config/g.opt: New.
7802 * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
7803 rs6000/powerpc and score targets.
7804 * opts.c (common_handle_option): Don't handle -G here.
7805 * config/alpha/alpha.c (alpha_handle_option): Handle -G.
7806 * config/frv/frv.c (frv_handle_option): Handle -G.
7807 * config/ia64/ia64.c (ia64_handle_option): Handle -G.
7808 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
7809 * config/m32r/m32r.c (m32r_handle_option): Handle -G.
7810 * config/mips/mips.c (mips_handle_option): Handle -G.
7811 * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
7812 * config/score/score.c (score_handle_option): Handle -G.
7814 2010-07-30 Anatoly Sokolov <aesok@post.ru>
7816 * config/mmix/mmix.c: Include basic-block.h.
7818 2010-07-30 Jakub Jelinek <jakub@redhat.com>
7821 PR rtl-optimization/45137
7822 * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
7824 * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
7826 * combine.c (next_nonnote_nondebug_insn): Removed.
7827 * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
7828 * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
7829 * sched-deps.c (sched_analyze_insn): Likewise.
7830 (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
7831 * rtlanal.c (canonicalize_condition): Likewise.
7832 * postreload.c (reload_combine_recognize_pattern): Likewise.
7833 (reload_cse_move2add): Use next_nonnote_nondebug_insn.
7835 2010-07-29 Uros Bizjak <ubizjak@gmail.com>
7837 * config/i386/i386.md (int_cond): Remove code iterator.
7839 (cbranch<mode>4): Use ordered_comparison_operator predicate
7841 (cstore<mode>4): Ditto for operator1.
7842 (mov<SWIM:mode>cc and corresponding splitter): Ditto.
7843 (add<mode>cc): ditto.
7845 2010-07-30 Richard Guenther <rguenther@suse.de>
7848 * expr.c (expand_expr_real_1): Check for not handled base address.
7850 2010-07-30 Richard Guenther <rguenther@suse.de>
7852 * ipa-prop.c (ipa_modify_formal_parameters): Use
7853 build_distinct_type_copy.
7855 2010-07-30 Anthony Green <green@moxielogic.com>
7857 * config/moxie/rtems.h: New file.
7858 * config.gcc: Add moxie-rtems support.
7860 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
7862 * dce.c (run_word_dce): Take flag_dce into account. Clear and restore
7863 df flags as in run_fast_df_dce.
7865 2010-07-29 Jakub Jelinek <jakub@redhat.com>
7868 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
7870 * rtl.def (NOTE): Swap operands 4 and 5.
7871 * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
7872 NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
7874 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
7876 2010-07-29 Jakub Jelinek <jakub@redhat.com>
7879 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
7880 (gen_formal_types_die): Add DW_AT_object_pointer in methods.
7881 (gen_subprogram_die): Likewise. Remove it when removing declaration's
7883 (gen_decl_die): Change return type to dw_die_ref, return what
7884 gen_formal_parameter_die returned.
7886 2010-07-29 Martin Jambor <mjambor@suse.cz>
7888 * dbgcnt.def (eipa_sra): New counter.
7889 * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
7891 2010-07-29 Xinliang David Li <davidxl@google.com>
7894 * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
7897 2010-07-29 Richard Guenther <rguenther@suse.de>
7899 * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
7900 (TV_TREE_STORE_CCP): Likewise.
7901 (TV_TREE_REDPHI): Likewise.
7903 2010-07-29 Richard Guenther <rguenther@suse.de>
7905 * double-int.h (double_int_and_not): New function.
7906 * combine.c (try_combine): Use it.
7907 * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
7909 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
7911 PR rtl-optimization/42575
7912 * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
7913 Argument AU removed. All callers changed. Ignore artificial refs.
7914 Use return value of df_word_lr_simulate_defs to decide whether an insn
7916 (fast_dce): Rename arg to WORD_LEVEL.
7917 (run_word_dce): Renamed from rest_of_handle_fast_byte_dce. No longer
7919 (pass_fast_rtl_byte_dce): Delete.
7920 * dce.h (run_word_dce): Declare.
7921 * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
7922 All callers changed. Simplify code to only deal with two-word regs.
7923 * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
7924 (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
7925 (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
7926 (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
7927 (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
7928 (df_word_lr_mark_ref): Declare.
7929 (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
7930 df_word_lr_simulate_uses): Declare or rename from byte variants.
7931 (df_byte_lr_simulate_artificial_refs_at_top,
7932 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
7933 df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
7935 (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
7936 (enum df_mm): Delete.
7937 * df-byte-scan.c: Delete file.
7938 * df-problems.c (df_word_lr_problem_data): Renamed from
7939 df_byte_lr_problem_data, all members deleted except for
7940 WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS. Uses changed.
7941 (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
7942 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
7943 df_byte_lr_get_regno_len, df_byte_lr_check_regs,
7944 df_byte_lr_confluence_0): Delete functions.
7945 (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
7947 (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
7948 Don't initialize members that were deleted, don't try to discover data
7949 about registers. Ignore hard regs.
7950 (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
7951 (df_word_lr_mark_ref): New function.
7952 (df_word_lr_bb_local_compute): Renamed from
7953 df_byte_bb_lr_local_compute; all callers changed. Use
7954 df_word_lr_mark_ref. Assert that artificial refs don't include
7955 pseudos. Ignore hard registers.
7956 (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
7957 Assert that exit block uses don't contain pseudos.
7958 (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
7959 (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
7960 callers changed. Ignore hard regs.
7961 (df_word_lr_transfer_function): Renamed from
7962 df_byte_lr_transfer_function; all callers changed.
7963 (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
7964 (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
7966 (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
7968 (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
7969 confluence operator 0 set to NULL.
7970 (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
7972 (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
7973 Return bool, true if bitmap changed or insn otherwise necessary.
7974 All callers changed. Simplify using df_word_lr_mark_ref.
7975 (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
7976 all callers changed. Simplify using df_word_lr_mark_ref.
7977 * lower-subreg.c: Include "dce.h"
7978 (decompose_multiword_subregs): Call run_word_dce if df available.
7979 * Makefile.in (lower-subreg.o): Adjust dependencies.
7980 (df-byte-scan.o): Delete.
7981 * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
7983 2010-07-29 Richard Guenther <rguenther@suse.de>
7985 * tree.c (build_vector): Assert that the vector constant
7986 has enough elements.
7987 (build_vector_from_ctor): Pad with trailing zeros.
7989 2010-07-29 Richard Guenther <rguenther@suse.de>
7991 PR tree-optimization/45120
7992 * tree-ssa-structalias.c (get_constraint_for_component_ref):
7993 Handle offset in DEREFs properly.
7994 (get_constraint_for_1): Handle MEM_REF offset properly.
7996 2010-07-29 Richard Guenther <rguenther@suse.de>
7999 * convert.c (convert_to_integer): Always use an unsigned
8000 type for narrowed negate and bitwise not.
8002 2010-07-29 Ira Rosen <irar@il.ibm.com>
8004 * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
8005 to outer loop when creating reduction epilogue for double reduction,
8006 and switch back to the inner loop when updating the phi nodes.
8007 Update uses of outer loop exit phi nodes in double reduction (instead
8008 of uses of reduction).
8010 2010-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
8012 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
8013 popcount on power7 and parity on power6 systems.
8014 (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
8015 (rs6000_emit_parity): Add support for power6 prtyd/prtyw
8018 * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
8019 (UNSPEC_PARITY): Ditto.
8020 (SFDF): New iterator for SF/DF.
8021 (rreg2): New mode attribute for floating register constraint.
8022 (TARGET_FLOAT): New mode attribute for whether single/double float
8024 (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
8026 (parity<mode>2_cmpb): New insn for parity on power6 and newer
8028 (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
8029 pattern. Add support for fcpsgn instruction added in power6.
8030 (copysignsf3): Delete.
8031 (copysigndf3): Delete.
8032 (copysign<mode>3_fcpsgn): New insn to generate fcpsgn. Use UNSPEC
8033 instead of if_then_else in RTL to avoid problems with -0.
8035 * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
8036 of if_then_else to mirror scalar code.
8037 (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
8040 * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
8041 instead of if_then_else.
8043 2010-07-28 Xinliang David Li <davidxl@google.com>
8045 * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
8046 (dump_cand): Dump var_before/after.
8047 (htab_inv_expr_eq): New function.
8048 (htab_inv_expr_hash): New function.
8049 (tree_ssa_iv_optimize_init): Support pseudo invariants.
8050 (add_candidate_1): consider base type precision.
8051 (set_use_iv_cost): New parameter.
8052 (adjust_setup_cost): Use profile information.
8053 (get_address_cost): Do not hard code width in computing address
8055 (compare_aff_trees): New function.
8056 (get_loop_invariant_expr_id): New function.
8057 (get_computation_cost_at): New parameter and use profile information.
8058 (get_computation_cost): New parameter.
8059 (determine_use_iv_cost_generic): Pass new parameter.
8060 (determine_use_iv_cost_address): Ditto.
8061 (determine_use_iv_cost_condition): Ditto.
8062 (autoinc_possible_for_pair): Ditto.
8063 (determine_use_iv_costs): More dumps.
8064 (iv_ca_get_num_inv_exprs): New function.
8065 (iv_ca_recount_cost): Consider loop invariants in register pressure
8067 (iv_ca_add_use): New parameter.
8068 (iv_ca_dump): Better dumping.
8069 (iv_ca_extend): New parameter.
8070 (try_add_cand_for): Attempt to get better partial solution.
8071 (try_improve_iv_set): Pass new parameter to iv_ca_extend.
8072 (create_new-ivs): More dumps.
8073 (rewrite_use_compare): Ditto.
8074 (free_loop_data): More cleanup.
8075 (treee_ssa_iv_optimize_finalize): Ditto.
8077 2010-07-28 Kai Tietz <kai.tietz@onevision.com>
8079 * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
8080 * config/i386/i386.c (ix86_profile_before_prologue): New.
8081 (override_options): Add special handling for -mfentry.
8082 (ix86_function_regparm): Likewise.
8083 (ix86_function_sseregparm): Likewise.
8084 (ix86_frame_pointer_required): Likewise.
8085 (ix86_expand_prologue): Check for ms_hook_prologue.
8086 (x86_function_profiler): Adjust mcount output.
8087 (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
8088 * config/i386/i386.opt (mfentry): New.
8089 * doc/invoke.texi (mfentry): Add documentation.
8090 * doc/tm.texi: Regenerated..
8091 * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
8092 * final.c (final_start_function): Replace macro
8093 PROFILE_BEFORE_PROLOGUE by target hook.
8094 * function.c (thread_prologue_and_epilogue_insns): Likewise.
8095 * target.def (profile_before_prologue): New hook.
8096 * targhooks.c (default_profile_before_prologue): New.
8097 * targhooks.h (default_profile_before_prologue): New.
8099 2010-07-28 Jakub Jelinek <jakub@redhat.com>
8102 * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
8105 * dwarf2out.c (dwarf2out_var_location): Always consider
8106 NOTE_DURING_CALL_P notes, even when not followed by real instructions.
8108 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
8110 PR rtl-optimization/45107
8111 * gcse.c (hash_scan_set): Use max_distance for gcse-las.
8113 2010-07-28 Richard Guenther <rguenther@suse.de>
8115 * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
8116 (set_lattice_value): Do not query an old default value.
8117 (get_value_for_expr): New function. Properly canonicalize
8119 (ccp_visit_phi_node): Use it.
8121 2010-07-28 Chung-Lin Tang <cltang@codesourcery.com>
8123 * config/arm/arm.c (arm_pcs_default): Remove static.
8124 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
8125 __ARM_PCS_VFP to indicate soft/hard-float calling convention.
8126 (arm_pcs_default): Declare.
8128 2010-07-28 Iain Sandoe <iains@gcc.gnu.org>
8130 * config/rs6000/rs6000.c (rs6000_override_options):
8131 Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
8132 ... to darwin_rs6000_override_options.
8133 (rs6000_return_in_memory): Update preceding comment for darwin
8134 64 bit ABI. Use TARGET_MACHO inline.
8135 (rs6000_darwin64_struct_check_p): New.
8136 (function_arg_advance): Use rs6000_darwin64_struct_check_p.
8137 (function_arg): Likewise.
8138 (rs6000_arg_partial_bytes): Likewise.
8139 (rs6000_function_value): Likewise.
8141 2010-07-28 Andi Kleen <ak@linux.intel.com>
8143 * lto-opts.c (lto_file_read_options): Add loop over all inputs.
8145 2010-07-28 Richard Guenther <rguenther@suse.de>
8148 * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
8149 targets try harder to not generate unaligned accesses.
8151 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
8153 PR rtl-optimization/45101
8154 * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
8157 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
8159 PR tree-optimization/44885
8160 * tree-sra.c (find_param_candidates): Skip pointer types to arrays
8161 with non-aliased component.
8163 2010-07-28 Joseph Myers <joseph@codesourcery.com>
8165 * config/darwin-driver.c (SWITCH_TAKES_ARG,
8166 WORD_SWITCH_TAKES_ARG): Remove.
8167 * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
8168 * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
8169 DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
8170 (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
8171 definitions from gcc.c.
8172 * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
8174 * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
8176 * opts-common.c: Include tm.h.
8177 (decode_cmdline_option): Use SWITCH_TAKES_ARG and
8178 WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
8179 Handle more than one argument. Set canonical_option_num_elements.
8180 (decode_cmdline_options_to_array): Set
8181 canonical_option_num_elements and trailing elements of
8183 * opts.h (struct cl_decoded_option): Allow four elements in
8184 canonical_option. Add field canonical_option_num_elements.
8185 * Makefile.in (opts-common.o): Update dependencies.
8187 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
8191 * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change. Make
8192 sure the base has address_mode before adding the offset.
8194 2010-07-27 Xinliang David Li <davidxl@google.com>
8196 * tree-flow.h (create_mem_ref): Add one new parameter.
8197 * tree-ssa-address.c (create_mem_ref): New parameter.
8198 (addr_to_parts): Ditto.
8199 (move_variant_to_index): New function.
8200 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
8202 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
8204 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
8206 * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
8207 NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
8208 NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
8209 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
8210 CODE_LABELs and NOTEs.
8211 * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
8212 * combine.c (try_combine): Likewise.
8213 * ira.c (setup_prohibited_mode_move_regs): Likewise.
8214 * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
8216 2010-07-27 Joseph Myers <joseph@codesourcery.com>
8218 * coretypes.h (struct cl_option_handlers): Declare.
8219 * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
8220 * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
8221 * langhooks-def.h (lhd_handle_option): Declare.
8222 (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
8223 * langhooks.c (lhd_handle_option): New.
8224 * langhooks.h (struct lang_hooks): Update prototype and return
8225 value type of handle_option hook.
8226 * optc-gen.awk: Generate target_flags_explicit definition for the
8228 * opts-common.c: Include diagnostic.h.
8229 (handle_option): Move from opts.c. Update prototype and return
8230 value type. Use handlers structure.
8231 (read_cmdline_option): Move from opts.c. Update prototype. Use
8233 (set_option): Move from opts.c.
8234 * opts.c (common_handle_option): Update prototype and return value
8235 type. Update calls to handle_option and enable_warning_as_error.
8236 (unknown_option_callback, post_handling_callback,
8237 lang_handle_option, target_handle_option): New.
8238 (handle_option, read_cmdline_option): Move to opts-common.c.
8239 (read_cmdline_options): Update prototype. Update call to
8240 read_cmdline_option.
8241 (decode_options): Initialize and use handlers structure.
8242 (set_option): Move to opts-common.c.
8243 (enable_warning_as_error): Update prototype. Update call to
8245 * opts.h (struct cl_option_handler_func, struct
8246 cl_option_handlers): New.
8247 (handle_option, enable_warning_as_error): Update prototypes.
8248 (read_cmdline_option): Declare.
8249 * Makefile.in (opts-common.o): Update dependencies.
8251 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8253 * config/arm/arm.c (params.h): Include.
8254 (arm_override_options): Tune gcse-unrestricted-cost.
8255 * config/arm/t-arm (arm.o): Define dependencies.
8257 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8261 * basic-block.h (get_dominated_to_depth): Declare.
8262 * dominance.c (get_dominated_to_depth): New function, use
8263 get_all_dominated_blocks as a base.
8264 (get_all_dominated_blocks): Use get_dominated_to_depth.
8266 * gcse.c (occr_t, VEC (occr_t, heap)): Define.
8267 (hoist_exprs): Remove.
8268 (alloc_code_hoist_mem, free_code_hoist_mem): Update.
8269 (compute_code_hoist_vbeinout): Add debug print outs.
8270 (hoist_code): Partially rewrite, simplify. Use get_dominated_to_depth.
8272 * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
8274 * params.h (MAX_HOIST_DEPTH): New macro.
8275 * doc/invoke.texi (max-hoist-depth): Document.
8277 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8279 PR rtl-optimization/40956
8280 * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
8283 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8287 * config/arm/arm.c (legitimize_pic_address): Use
8288 gen_calculate_pic_address pattern to emit calculation of PIC address.
8289 (will_be_in_index_register): New function.
8290 (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
8291 (thumb1_legitimate_address_p): Use it provided !strict_p.
8292 * config/arm/arm.md (calculate_pic_address): New expand and split.
8294 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8298 * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
8299 * config/arm/arm.md (define_split "J", define_split "K"): Make
8300 IRA/reload friendly.
8302 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8304 * gcse.c (insert_insn_end_basic_block): Update signature, remove
8306 (pre_edge_insert, hoist_code): Update.
8308 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8312 * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
8314 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8316 * gcse.c (hoist_code): Generate new pseudo for every new set insn.
8318 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8320 PR rtl-optimization/40956
8323 * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
8325 (hoist_code): Count occurences in current block too.
8327 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8329 * gcse.c (struct expr:max_distance): New field.
8330 (doing_code_hoisting_p): New static variable.
8331 (want_to_gcse_p): Change signature. Allow constrained hoisting of
8332 simple expressions, don't change behavior for PRE. Set max_distance.
8333 (insert_expr_in_table): Set new max_distance field.
8334 (hash_scan_set): Update.
8335 (hoist_expr_reaches_here_p): Stop search after max_distance
8337 (find_occr_in_bb): New static function. Use it in ...
8338 (hoist_code): Calculate sizes of basic block before any changes are
8339 done. Pass max_distance to hoist_expr_reaches_here_p.
8340 (one_code_hoisting_pass): Set doing_code_hoisting_p.
8342 * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
8343 (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
8344 * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
8346 * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
8349 2010-07-27 Jeff Law <law@redhat.com>
8350 Maxim Kuvyrkov <maxim@codesourcery.com>
8352 * gcse.c (compute_transpout, transpout): Remove, move logic
8353 to prune_expressions.
8354 (compute_pre_data): Move pruning of trapping expressions ...
8355 (prune_expressions): ... here. New static function.
8356 (compute_code_hoist_data): Use it.
8357 (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
8359 2010-07-27 Xinliang David Li <davidxl@google.com>
8361 * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
8362 (rewrite_use_address): Adjust iv update position when needed.
8364 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8366 * dbgcnt.def (hoist_insn): New debug counter.
8367 * gcse.c (hoist_code): Use it.
8369 2010-07-27 Xinliang David Li <davidxl@google.com>
8371 * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
8372 (niter_for_single_dom_exit): Passes additional parameter.
8373 (iv_period): Fix comments.
8374 (may_eliminate_iv): Handles multiple exit loops properly.
8375 (free_tree_niter_desc): New function.
8376 (free_loop_data): Frees up loop iteration descriptors.
8378 2010-07-27 Jakub Jelinek <jakub@redhat.com>
8381 * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
8382 of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
8383 instead of MAX_SUPPORTED_STACK_ALIGNMENT.
8384 (expand_one_var): Don't consider DECL_ALIGN for variables for
8385 which expand_one_stack_var_at has been already called.
8388 * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
8389 constraints on IA-64.
8391 2010-07-27 Jie Zhang <jie@codesourcery.com>
8395 2010-07-23 Jie Zhang <jie@codesourcery.com>
8397 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
8398 false if ! tree_versionable_function_p.
8400 2010-07-27 Jakub Jelinek <jakub@redhat.com>
8402 * dwarf2out.c (add_data_member_location_attribute): Use
8403 add_AT_unsigned instead of add_AT_int if offset is non-negative.
8405 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
8407 * postreload.c (try_replace_in_use): New static function.
8408 (reload_combine_recognize_const_pattern): Use it here. Allow
8409 substituting into a final add insn, and substituting into a memory
8410 reference in an insn that sets the reg.
8412 2010-07-27 Joseph Myers <joseph@codesourcery.com>
8414 * common.opt (o): Add MissingArgError.
8415 * doc/options.texi (MissingArgError): Document.
8416 * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
8417 * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
8418 * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
8419 (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
8420 * langhooks.h (struct lang_hooks): Remove missing_argument.
8421 * optc-gen.awk: Handle MissingArgError and output new structure
8423 * opts.c (read_cmdline_option): Use missing_argument_error field
8424 instead of missing_argument langhook.
8425 * opts.h (struct cl_option): Add missing_argument_error field.
8426 * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
8428 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
8431 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
8432 Darwin64 ABI, for zero-sized objects.
8434 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
8439 Merge from Apple local 4.2.1.
8440 2005-05-11 Stan Shebs <shebs@apple.com>
8441 Fix 64-bit varargs for Darwin (Radar 4028089).
8442 * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
8443 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
8444 Add argument, add case for 8-byte register half-filled with a float.
8445 (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
8446 single-precision floats specially.
8448 2010-07-27 Ira Rosen <irar@il.ibm.com>
8450 PR tree-optimization/44152
8451 * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
8452 complex numbers for further check.
8453 (vect_supported_load_permutation_p): Check nodes with
8456 2010-07-27 Joseph Myers <joseph@codesourcery.com>
8458 * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
8459 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
8460 (LANG_HOOKS_INIT_OPTIONS): Update default definition.
8461 (LANG_HOOKS_INITIALIZER): Add new hooks.
8462 * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
8463 * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
8464 and complain_wrong_lang_p. Update init_options prototype.
8465 * c-objc-common.c (c_initialize_diagnostics): First call
8466 c_common_initialize_diagnostics.
8467 * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
8468 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
8469 * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
8470 * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
8471 (hook_uint_void_0): New.
8472 * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
8473 (hook_uint_void_0): New.
8474 * opts-common.c (decode_cmdline_option,
8475 decode_cmdline_options_to_array): Also fill in canonical_option field.
8476 * opts.c (complain_wrong_lang): Use langhook to determine whether
8477 to complain instead of special-casing LTO.
8478 (decode_options): Separate lang_mask determination with
8479 option_lang_mask hook from call of init_options hook.
8480 * opts.h (struct cl_decoded_option): Add canonical_option.
8482 2010-07-27 Jakub Jelinek <jakub@redhat.com>
8484 PR tree-optimization/45083
8485 * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
8487 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
8489 * postreload.c (reload_combine_recognize_const_pattern): Move test
8490 for limiting the insn movement to the right scope.
8492 PR rtl-optimization/45051
8493 * reload1.c (delete_output_reload): Use refers_to_regno_p rather
8494 than reg_mentioned_p.
8496 2010-07-26 Richard Henderson <rth@redhat.com>
8499 * tree-emutls.c: New file.
8500 * Makefile.in (OBJS-common): Add it.
8501 * tree-pass.h (pass_ipa_lower_emutls): Declare.
8502 * passes.c (init_optimization_passes): Add it.
8504 * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
8505 pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
8506 * expr.c (emutls_var_address): Delete.
8507 (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
8508 * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
8509 (emutls_finish): Delete.
8510 * toplev.c (compile_file): Don't call it.
8511 * tree.h (emutls_decl): Delete.
8512 * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
8513 (emutls_finish, emutls_finalize_control_var): Delete.
8514 (emutls_object_type): Move to tree-emutls.c.
8515 (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
8516 default_emutls_var_fields, get_emutls_object_type,
8517 get_emutls_init_templ_addr, emutls_decl, emutls_common_1
8518 default_emutls_var_init): Likewise.
8519 (get_variable_section): Don't special case emutls.
8520 (assemble_variable, do_assemble_alias, categorize_decl_for_section,
8521 default_elf_select_section, default_unique_section,
8522 default_encode_section_info): Likewise.
8523 * varpool.c (decide_is_variable_needed): Likewise.
8524 * gimple-iterator.c (update_call_edge_frequencies): New
8525 (gsi_insert_on_edge_immediate): Use it.
8526 (gsi_insert_seq_on_edge_immediate): Likewise.
8527 (gsi_commit_one_edge_insert): Likewise.
8529 * config/i386/i386.c (x86_64_elf_select_section): Don't handle
8530 SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
8531 (x86_64_elf_unique_section): Likewise.
8533 2010-07-26 Jan Hubicka <jh@suse.cz>
8535 * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
8538 2010-07-26 Anatoly Sokolov <aesok@post.ru>
8540 * target.def (output_source_filename): New hook.
8541 * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
8542 * doc/tm.texi: Regenerate.
8543 * toplev.c (output_file_directive) Remove function.
8544 * toplev.h (output_file_directive) Remove.
8545 * output.h (default_asm_output_source_filename,
8546 output_file_directive): Declare.
8547 * varasm.h (default_asm_output_source_filename,
8548 output_file_directive): New functions.
8550 * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
8551 * config/mips/mips-protos.h (mips_output_filename): Remove.
8552 * config/mips/mips.c (mips_output_filename): Make Static.
8553 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
8555 2010-07-26 Richard Guenther <rguenther@suse.de>
8557 PR tree-optimization/43784
8558 * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
8559 if the destination is used by the call.
8561 2010-07-26 Richard Guenther <rguenther@suse.de>
8564 * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
8565 SSA updating on being in SSA form.
8567 2010-07-26 Richard Guenther <rguenther@suse.de>
8570 * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
8572 2010-07-26 Richard Guenther <rguenther@suse.de>
8574 PR tree-optimization/45071
8575 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
8578 2010-07-26 Naveen.H.S <naveen.S@kpitcummins.com>
8580 * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
8581 save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
8582 save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
8583 save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
8584 save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
8585 save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
8586 save_r31, return_r31, save_interrupt, return_interrupt,
8587 save_all_interrupt, return_all_interrupt, L_save_r2_r31,
8588 L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
8589 L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
8590 new ABI requirements.
8591 (save_r6_r9, L_callt_save_r6_r9): Remove.
8592 * config/v850/predicates.md (even_reg_operand, disp23_operand,
8593 const_float_1_operand const_float_0_operand): New Predicates.
8594 (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
8595 pattern_is_ok_for_epilogue): Update as per the ABI requirements.
8596 * config/v850/t-v850: Update multilibs for new target variants.
8597 (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
8598 * config/v850/t-v850e: Likewise.
8599 * config/v850/v850.c (v850_issue_rate): New.
8600 (v850_strict_argument_naming): New.
8601 (function_arg): Modify to generate a different ABI.
8602 (print_operand): Update case 'z' to support float modes.
8603 (output_move_single): Modify to generate appropriate and better
8605 (v850_float_z_comparison_operator, v850_select_cc_mode,
8606 v850_float_nz_comparison_operator, v850_gen_float_compare,
8607 v850_gen_compare): New functions to support comparison of float values.
8608 (ep_memory_offset): Add support for V850E2 targets.
8609 (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
8610 (INTERRUPT_REGPARM_NUM): Remove.
8611 (compute_register_save_size): Add extra case to save/restore long call.
8612 (use_prolog_function): New function to support prologue.
8613 (expand_prologue): Add support for V850E2 targets and modified
8614 as per the current ABI requirements.
8615 (expand_epilogue): Likewise.
8616 (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
8617 (construct_save_jarl): Likewise.
8618 (construct_dispose_instruction): Update as per the current ABI
8620 (construct_prepare_instruction): Likewise.
8621 * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
8622 (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
8623 (CPP_SPEC): Updated to support v850e2 targets.
8624 (STRICT_ALIGNMENT): Modified.
8625 (FIRST_PSEUDO_REGISTER): Updated to add even registers.
8626 (FIXED_REGISTERS): Likewise.
8627 (CALL_USED_REGISTERS): Likewise.
8628 (CONDITIONAL_REGISTER_USAGE): Updated.
8629 (HARD_REGNO_MODE_OK): Updated.
8630 (reg_class): Updated to add even registers.
8631 (REG_CLASS_NAMES): Likewise.
8632 (REG_CLASS_CONTENTS): Likewise.
8633 (REGNO_REG_CLASS): Updated for CC registers.
8634 (REG_CLASS_FROM_LETTER): Added support for even registers.
8635 (REGNO_OK_FOR_BASE_P): Updated for CC registers.
8636 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
8637 ARG_POINTER_REGNUM): Updated.
8638 (FUNCTION_ARG_ADVANCE): Define.
8639 (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
8640 (OUTGOING_REG_PARM_STACK_SPACE): Remove.
8641 (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
8642 (GO_IF_LEGITIMATE_ADDRESS): Updated.
8643 (SELECT_CC_MODE): Define.
8644 (REGISTER_NAMES): Updated to add psw and fcc registers.
8645 (ADDITIONAL_REGISTER_NAMES): Updated.
8646 (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
8647 (JUMP_TABLES_IN_TEXT_SECTION): Updated.
8648 * config/v850/v850.md (define_constants): Define new constants.
8649 (type): Update store,bit1,macc,div,fpu and single attributes.
8650 (cpu): New attribute.
8651 (cc): Add set_z attribute.
8652 (unsign23byte_load, sign23byte_load, unsign23hword_load,
8653 sign23hword_load, 23word_load, 23byte_store, 23hword_store,
8654 23word_store): New instructions for 23-bit displacement load and store.
8655 (movqi_internal, movhi_internal): Update the attributes.
8656 (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
8657 (movsi_internal_v850e, movsi_internal, movsf_internal): Update
8659 (v850_tst1): Modified using CC_REGNUM.
8661 (cmpsi): Modified as define_expand from define_insn.
8662 (cmpsi_insn, cmpsf, cmpdf): New instructions.
8663 (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
8664 udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
8665 v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
8666 one_cmplsi2): Clobber the CC_REGNUM register.
8667 (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
8668 v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
8669 v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
8670 (setf_insn, set_z_insn, set_nz_insn): New instructions for
8672 (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
8673 (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
8675 (sasf_1, sasf_2): Remove.
8676 (sasf): New instruction.
8677 (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
8678 targets. CC_REGNUM register is clobbered and attributes are
8680 (branch_z_normal, branch_z_invert, branch_nz_normal,
8681 branch_nz_invert): New branch related instructions.
8682 (jump): Updated the attributes.
8683 (switch): Update to support new targets. CC_REGNUM register is
8684 clobbered and attributes are updated.
8685 (call_internal_short, call_internal_long, call_value_internal_short,
8686 call_value_internal_long): Updated the attributes.
8687 (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
8688 clobbered and attributes are updated.
8689 (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
8690 Update to support new targets. CC_REGNUM register is clobbered.
8691 (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
8693 (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
8695 (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
8696 divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
8697 negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
8698 floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
8699 rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
8700 cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
8701 cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
8702 cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
8703 movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
8704 movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
8705 point instructions defined for V850e2v3 target.
8706 (callt_save_interrupt, callt_return_interrupt, return_interrupt):
8707 Add support for V850E2 targets and CC_REGNUM register is clobbered.
8708 (callt_save_all_interrupt, callt_restore_all_interrupt): Add
8709 support for new targets.
8710 * config/v850/v850-modes.def: New file.
8711 * config/v850/v850.opt(mstrict-align): Remove.
8712 (mno-strict-align, mjump-tables-in-data-section, mv850e2,
8713 mv850e2v3): New command line options for V850.
8714 * config.gcc: Update the newly added files.
8715 * doc/invoke.texi: Update the newly added command line options for
8718 2010-07-26 Richard Guenther <rguenther@suse.de>
8720 PR tree-optimization/45052
8721 * ipa-pure-const.c (check_stmt): Check volatileness.
8723 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
8726 * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
8727 * config/sparc/sparc.c: Include reload.h.
8728 (legitimize_tls_address): Rename into...
8729 (sparc_legitimize_tls_address): ...this.
8730 (legitimize_pic_address): Rename into...
8731 (sparc_legitimize_pic_address): ...this.
8732 (sparc_expand_move): Adjust to above renaming.
8733 (sparc_tls_referenced_p): Likewise.
8734 (sparc_legitimize_tls_address): Likewise.
8735 (sparc_legitimize_pic_address): Likewise.
8736 (sparc_legitimize_address): Likewise.
8737 (sparc_output_mi_thunk): Likewise.
8738 (sparc_legitimize_reload_address): New global function. Recognize
8739 (lo_sum (high ...) ...) patterns generated by earlier passes.
8740 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
8742 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
8745 * config/sparc/predicates.md (memory_reg_operand): Delete.
8746 * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
8747 (*sync_compare_and_swap): Encode the address form in the pattern.
8748 (*sync_compare_and_swapdi_v8plus): Likewise.
8750 2010-07-24 Gerald Pfeifer <gerald@pfeifer.com>
8752 * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
8753 Streamline paragraph on compatibility with the system compiler.
8755 2010-07-24 Steven Bosscher <steven@gcc.gnu.org>
8758 * alias.c (true_dependence_1): Fix thinko in merge of old
8759 true_dependence and canon_true_dependence.
8761 2010-07-23 Jan Hubicka <jh@suse.cz>
8763 * lto-streamer-out.c (write_symbol): Fix visibilities of external
8766 2010-07-23 Le-Chun Wu <lcwu@google.com>
8768 * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
8769 * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
8770 and an unnecessary assignment.
8771 * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
8772 self-assign warning.
8773 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
8774 unnecessary self-init.
8776 2010-07-23 Richard Guenther <rguenther@suse.de>
8779 * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
8780 for -flto and -fwhopr.
8782 2010-07-23 Kai Tietz <kai.tietz@onevision.com>
8785 * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
8786 (stmp-int-hdrs): Prefix/postfix headers by include_next.
8787 * config.gcc (user_headers_inc_next_pre): New.
8788 (user_headers_inc_next_post): Likewise.
8789 (*-w64-mingw*): Use for float.h post-fixing, and for
8790 stddef.h/stdarg.h pre-fixing by include_next.
8791 * configure.ac (user_headers_inc_next_post): New.
8792 (user_headers_inc_next_pre): New.
8793 * configure: Regenerated.
8795 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8797 * configure.ac: Don't disable TLS on Solaris 8/9 by default
8798 Set tga_func for Solaris 2/x86 resp. SPARC.
8799 Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
8800 (LIB_THREAD_LDFLAGS_SPEC): Define.
8801 (LIB_TLS_SPEC): Define. Check for required Sun ld version.
8802 * configure: Regenerate.
8803 * config.in: Regenerate.
8804 * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
8805 -pthread, -threads, LIB_TLS_SPEC with -pthread.
8806 * doc/install.texi (Specific, *-*-solaris2*): Document use of
8807 alternate thread libraries on Solaris 8.
8808 Document TLS patch requirements.
8809 * doc/sourcebuild.texi (Add Options): Sort alphabetically.
8813 * config/sol2.h (LIB_SPEC): Link with thread libraries even with
8816 2010-07-23 Jakub Jelinek <jakub@redhat.com>
8818 * tree.h (struct tree_base): Add nameless_flag bitfield.
8819 (TYPE_NAMELESS, DECL_NAMELESS): Define.
8820 * omp-low.c (create_omp_child_function, scan_omp_parallel,
8821 scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
8822 DECL_ARTIFICIAL where needed.
8823 * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
8824 (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
8825 has DECL_NAMELESS set.
8827 2010-07-23 Martin Jambor <mjambor@suse.cz>
8829 PR tree-optimization/44915
8830 * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
8831 * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
8832 (analyze_function): Likewise.
8834 2010-07-23 Martin Jambor <mjambor@suse.cz>
8836 PR tree-optimization/44914
8837 * tree-sra.c (sra_modify_function_body): Return true if CFG was
8838 changed, add purging dead eh edges.
8839 (ipa_sra_modify_function_body): Return true if CFG was changed,
8840 simplify purging dead eh edges.
8841 (modify_function): Return true if CFG was changed.
8842 (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
8844 (ipa_early_sra): Likewise.
8846 2010-07-23 Jie Zhang <jie@codesourcery.com>
8849 * attribs.c (decl_attributes): Insert "noinline" and "noclone"
8851 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
8852 false if ! tree_versionable_function_p.
8854 2010-07-23 Nathan Froyd <froydnj@codesourcery.com>
8856 * builtins.def (BUILT_IN_ARGS_INFO): Remove.
8857 * ipa-pure-const.c (special_builtlin_state): Remove
8858 BUILT_IN_ARGS_INFO case.
8859 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
8860 * builtins.c (expand_builtin): Likewise.
8861 (expand_builtin_args_info): Remove.
8862 * doc/tm.texi (__builtin_args_info): Remove.
8863 (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
8864 * doc/tm.text.in: Likewise.
8866 2010-07-23 Richard Guenther <rguenther@suse.de>
8868 * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
8869 (lto_symtab_merge_decls_2): Likewise.
8870 * tree-ssa.c (useless_type_conversion_p): Likewise.
8871 * lto-streamer-in.c (input_gimple_stmt): Likewise.
8872 * gimple.c (gtc_visited2, gtc_ob2): Remove.
8873 (struct type_pair_d): Make same_p an array indexed by mode.
8875 (lookup_type_pair): Update initialization.
8876 (struct sccs): Adjust same_p type.
8877 (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
8879 (print_gimple_types_stats): Likewise.
8880 * gimple.h (enum gtc_mode): New.
8881 (gimple_types_compatible_p): Adjust prototype.
8883 2010-07-23 Daniel Jacobowitz <dan@codesourcery.com>
8885 * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
8886 again after processing insn.
8888 2010-07-23 Jie Zhang <jie@codesourcery.com>
8890 * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
8891 proper words when !tree_versionable_function_p.
8893 2010-07-23 Richard Guenther <rguenther@suse.de>
8895 PR tree-optimization/45037
8896 * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
8898 2010-07-23 Jie Zhang <jie@codesourcery.com>
8900 * doc/extend.texi: Remove IP2K from the description of naked attribute.
8903 2010-07-10 Andi Kleen <ak@linux.intel.com>
8906 * lto-opts.c (lto_write_options): Add NULL file_data argument to
8907 lto_get_section_name.
8908 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
8909 * lto-streamer-out.c (produce_asm): Likewise.
8910 (copy_function): Likewise.
8911 (produce_symtab): Likewise.
8912 (produce_asm_for_decls): Likewise.
8913 * lto-streamer.c (lto_get_section_name): Add file_data argument.
8914 Rewrite to add random postfix to LTO sections.
8915 * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
8916 (lto_get_section_name): Add file_data argument to prototype.
8918 2010-07-10 Andi Kleen <ak@linux.intel.com>
8920 * lto-section-in.c (lto_section_name): Synchronize names
8921 with lto_get_section_name.
8923 2010-07-10 Andi Kleen <ak@linux.intel.com>
8925 * lto-opts.c (lto_read_file_options): Check for missing section.
8927 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
8929 * ira.c (check_allocation): Correctly handle the case where an allocno
8930 with two objects was allocated to a single reg.
8932 2010-07-22 Richard Sandiford <rdsandiford@googlemail.com>
8934 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
8935 (is_widening_mult_p): Likewise.
8936 (convert_to_widen): Use them.
8937 (convert_plusminus_to_widen): Likewise. Handle fixed-point types as
8938 well as integer ones.
8940 2010-07-22 Steven Bosscher <steven@gcc.gnu.org>
8942 * alias.c (true_dependence_1): New function, merged version of
8943 true_dependence and canon_true_dependence.
8944 (true_dependence): Simplify.
8945 (canon_true_dependence): Simplify.
8947 2010-07-22 Richard Henderson <rth@redhat.com>
8950 * config/i386/i386.c (setup_incoming_varargs_64): Force the use
8951 of V4SFmode for the SSE saves; increase stack alignment if needed.
8952 (ix86_gimplify_va_arg): Don't increase stack alignment here.
8954 2010-07-22 Jakub Jelinek <jakub@redhat.com>
8957 * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
8958 call cprop_find_used_regs again via note_uses.
8960 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
8962 * alias.c (get_alias_set): Fix formatting issues.
8964 2010-07-22 Steve Ellcey <sje@cup.hp.com>
8967 * stmt.c (expand_value_return): Call promote_function_mode with
8968 a for_return argument of 2 when returning by reference.
8970 2010-07-22 Dodji Seketeli <dodji@redhat.com>
8973 * dwarf2out.c (scope_die_for): Don't fall back to the compilation
8974 unit DIE if we can find the scope DIE.
8976 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
8978 * ira-build.c (ira_create_object): New arg SUBWORD; all callers
8979 changed. Initialize OBJECT_SUBWORD.
8980 (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
8981 (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
8982 all callers changed.
8983 (merge_hard_reg_conflicts): Iterate over allocno subobjects.
8984 (finish_allocno): Likewise.
8985 (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
8986 (remove_low_level_allocnos): Likewise.
8987 (update_bad_spill_attribute): Likewise.
8988 (setup_min_max_allocno_live_range_point): Likewise.
8989 (sort_conflict_id_map): Likewise.
8990 (ira_flattening): Likewise. Use ior_hard_reg_conflicts.
8991 (ior_hard_reg_conflicts): New function.
8992 (ior_allocate_object_conflicts): Renamed first argument to OBJ.
8993 (compress_conflict_vecs): Iterate over objects, not allocnos.
8994 (ira_add_live_range_to_object): New function.
8995 (object_range_compare_func): Renamed from allocno_range_compare_func.
8996 All callers changed.
8997 (setup_min_max_conflict_allocno_ids): For allocnos with multiple
8998 subobjects, widen the min/max range of the lowest-order object to
8999 potentially include all other such low-order objects.
9000 * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
9001 (check_allocation): Likewise. Use more fine-grained tests for register
9003 * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
9005 (assign_hard_reg): Keep multiple sets of conflicts. Make finer-grained
9006 choices about which bits to set in each set. Don't use
9007 ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
9008 using the multiple sets we computed.
9009 (push_allocno_to_stack): Iterate over allocno subobjects.
9010 (all_conflicting_hard_regs_coalesced): New static function.
9011 (setup_allocno_available_regs_num): Use it.
9012 (setup_allocno_left_conflicts_size): Likewise. Iterate over allocno
9014 (coalesced_allocno_conflict): Test subobject 0 in each allocno.
9015 (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
9016 by ALLOCNO_NUM_OBJECTS.
9017 (calculate_spill_cost): Likewise.
9018 (color_pass): Express if statement in a more normal way.
9019 (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
9020 (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
9021 (setup_slot_coalesced_allocno_live_ranges): Likewise.
9022 (allocno_reload_assign): Likewise.
9023 (ira_reassign_pseudos): Likewise.
9024 (fast_allocation): Likewise.
9025 * ira-conflicts.c (build_conflict_bit_table): Likewise.
9026 (print_allocno_conflicts): Likewise.
9027 (ira_build_conflicts): Likewise.
9028 (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p. All
9029 callers changed. Test subword 0 of each allocno for conflicts.
9030 (build_object_conflicts): Renamed from build_allocno_conflicts. All
9031 callers changed. Iterate over allocno subobjects.
9032 * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
9033 * ira-int.h (struct ira_allocno): New member: num_objects.
9034 Rename object to objects and change it into an array.
9035 (ALLOCNO_OBJECT): Add new argument N.
9036 (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
9037 (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
9038 (ior_hard_reg_conflicts): Declare.
9039 (ira_add_live_range_to_object): Declare.
9040 (ira_allocno_object_iterator): New.
9041 (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
9042 (FOR_EACH_ALLOCNO_OBJECT): New macro.
9043 * ira-lives.c (objects_live): Renamed from allocnos_live; all
9045 (allocnos_processed): New sparseset.
9046 (make_object_born): Renamed from make_allocno_born; take an
9047 ira_object_t argument. All callers changed.
9048 (make_object_dead): Renamed from make_allocno_dead; take an
9049 ira_object_t argument. All callers changed.
9050 (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
9051 All callers changed.
9052 (mark_pseudo_regno_live): Iterate over allocno subobjects.
9053 (mark_pseudo_regno_dead): Likewise.
9054 (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
9056 (mark_ref_live): Detect subword accesses and call
9057 mark_pseudo_regno_subword_live as appropriate.
9058 (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
9059 (process_bb_nodes_live): Deal with object-related updates first; set
9060 and test bits in allocnos_processed to avoid computing allocno
9061 statistics more than once.
9062 (create_start_finish_chains): Iterate over objects, not allocnos.
9063 (print_object_live_ranges): New function.
9064 (print_allocno_live_ranges): Use it.
9065 (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
9068 2010-07-22 Richard Guenther <rguenther@suse.de>
9071 * gimple.c (gtc_next_dfs_num): New global.
9072 (struct sccs): Make value a union, add integer same_p member.
9073 (gtc_visit): New function.
9074 (gimple_types_compatible_p_1): New function, split out from ...
9075 (gimple_types_compatible_p): ... here. Start a DFS walk here.
9076 (iterative_hash_gimple_type): Adjust for sccs change.
9078 2010-07-22 Martin Jambor <mjambor@suse.cz>
9080 PR tree-optimization/44891
9081 * tree-sra.c: Include gimple-pretty-print.h.
9082 (replace_uses_with_default_def_ssa_name): Renamed to
9083 get_repl_default_def_ssa_name, return the new SSA name instead of
9084 replacing the old one.
9085 (sra_modify_assign): Dump a message when removing a load, if the LHS
9086 is an SSA_NAME, do not do any propagation, just set the RHS to a
9087 default definition SSA NAME, type convert if necessary.
9088 * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
9090 2010-07-22 Richard Guenther <rguenther@suse.de>
9092 PR tree-optimization/45017
9093 * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
9094 TYPE_PRECISION of integral types in addition to size.
9096 2010-07-22 Maxim Kuvyrkov <maxim@codesourcery.com>
9098 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
9099 when no C library is specified.
9101 2010-07-22 Martin Jambor <mjambor@suse.cz>
9103 * ipa-prop.h (struct ipa_node_params): Updated comment.
9104 (struct ipa_edge_args): Likewise.
9105 * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
9107 2010-07-22 Martin Jambor <mjambor@suse.cz>
9109 * cgraphunit.c (verify_edge_count_and_frequency): New function.
9110 (verify_cgraph_node): Verify frequencies of indirect edges.
9111 * tree-inline.c (tree_function_versioning): Update frequencies of
9114 2010-07-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9117 * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
9118 Set *arm_rev to be predicable.
9120 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
9122 * config/darwin.h (LINK_COMMAND_SPEC): Split into...
9123 (LINK_COMMAND_SPEC_A): New.
9125 (DSYMUTIL_SPEC): New.
9126 * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
9127 (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
9129 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
9131 * calls.c (load_register_parameters): Move check for zero
9132 sized items so that only the call to
9133 mem_overlaps_already_clobbered_arg_p () is protected.
9135 2010-07-22 Jan Hubicka <jh@suse.cz>
9137 * ipa-pure-const.c (varying_state): Break out from ...
9138 (get_function_state): ... here; always return varying_state
9139 when state would be NULL otherwise.
9140 (remove_node_data): Do not free varying state.
9142 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
9146 * postreload.c: Include "target.h".
9147 (reload_combine_closest_single_use): Don't take DEBUG_INSNs
9149 (fixup_debug_insns): Don't copy the rtx.
9150 (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
9151 Don't copy when replacing. Call fixup_debug_insns in the case where
9152 we merged one add with another.
9153 (reload_combine_recognize_pattern): Fail if there aren't any uses.
9154 Try harder to determine whether we're picking a valid index register.
9155 Don't set store_ruid for an insn we're going to scan in the
9157 (reload_combine): Remove unused code.
9158 (reload_combine_note_use): When updating use information for
9159 an old insn, ignore a use that occurs after store_ruid.
9160 * Makefile.in (postreload.o): Update dependencies.
9162 * function.c (record_hard_reg_sets): Restrict the previous change
9163 to cases where the incoming nominal mode is the same as the
9164 incoming promoted mode and everything happens in MODE_INT.
9166 2010-07-21 Jakub Jelinek <jakub@redhat.com>
9169 * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
9170 ASM_OPERANDS_OUTPUT_IDX.
9171 (adjust_insn): For inline asm with multiple sets ensure first
9172 ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
9175 2010-07-21 Richard Henderson <rth@redhat.com>
9177 * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
9178 comparison for avoiding xmm register saves. Emit the xmm register
9180 * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
9181 (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
9182 (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
9183 Remove patterns and the associated splitters.
9185 2010-07-21 Changpeng Fang <changpeng.fang@amd.com>
9187 * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
9188 and imagine parts of a complex, so that they can have the same
9189 base and fall into the same group.
9191 2010-07-21 Richard Guenther <rguenther@suse.de>
9194 * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
9195 of TYPE_DECLs. Do not follow TYPE_NEXT_VARIANT,
9196 TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
9198 2010-07-21 Martin Jambor <mjambor@suse.cz>
9200 PR tree-optimization/44900
9201 * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
9202 (sra_modify_assign): Move gsi to the next statmenent unconditionally.
9204 2010-07-21 Bernd Schmidt <bernds@codesourcery.com>
9207 * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
9209 2010-07-21 Richard Guenther <rguenther@suse.de>
9212 * tree-ssa.c (useless_type_conversion_p): Dispatch to
9213 gimple_types_compatible_p only when in lto.
9214 * gimple.c (gimple_types_compatible_p): Use canonical types
9215 to speed up comparison.
9217 2010-07-21 Richard Guenther <rguenther@suse.de>
9219 * tree-flow.h (referenced_var): Move define ...
9220 * tree-flow-inline.h (referenced_var): ... here as an inline
9221 function. Assert here ...
9222 * tree-dfa.c (referenced_var_lookup): ... instead of here.
9223 * tree-ssa.c (maybe_optimize_var): Check if the variable
9224 is in referenced vars.
9225 (execute_update_addresses_taken): Remove old broken check.
9226 * gimple-pretty-print.c (pp_points_to_solution): Use
9227 referenced_var_lookup.
9228 * tree-into-ssa.c (dump_decl_set): Likewise.
9230 2010-07-21 Jakub Jelinek <jakub@redhat.com>
9233 * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
9234 * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
9237 2010-07-20 Richard Henderson <rth@redhat.com>
9239 * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
9241 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
9243 * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
9244 computing the sum of the stack pointer and a large constant.
9245 * config/arm/constraints.md (M): Remove superfluous parentheses.
9246 (Pc): New constraint.
9248 2010-07-20 Jakub Jelinek <jakub@redhat.com>
9251 * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
9252 operand's type if exp is tcc_unary class tree.
9254 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
9256 * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
9257 Reverse sense of if_then_else condition.
9259 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
9261 * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
9262 * config/rs6000/rs6000.c (rs6000_override_options): Set
9263 rs6000_block_move_inline_limit appropriately.
9264 (expand_block_move): Use rs6000_block_move_inline_limit.
9265 * doc/invoke.texi (mblock-move-inline-limit): Document.
9267 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
9269 * postreload.c (fixup_debug_insns): Remove arg REGNO. New args
9270 FROM and TO. All callers changed. Don't look for tracked uses,
9271 just scan the RTL for DEBUG_INSNs and substitute.
9272 (reload_combine_recognize_pattern): Call fixup_debug_insns.
9273 (reload_combine): Ignore DEBUG_INSNs.
9275 2010-07-20 Jakub Jelinek <jakub@redhat.com>
9277 * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
9281 * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
9282 or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
9283 instead of the result's type.
9285 2010-07-20 Richard Guenther <rguenther@suse.de>
9287 PR tree-optimization/44977
9288 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
9291 2010-07-20 Richard Guenther <rguenther@suse.de>
9293 * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
9294 (lto_symtab_merge_decls_2): Likewise.
9295 * gimple.h (gimple_types_compatible_p): Declare.
9296 * gimple.c (gimple_queue_type_fixup): Remove.
9297 (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
9298 (gimple_compatible_complete_and_incomplete_type_p): New function.
9299 (gimple_types_compatible_p): Adjust.
9300 (gimple_register_type): Remove type fixup code.
9301 (print_gimple_types_stats): Adjust.
9302 (free_gimple_type_tables): Likewise.
9303 * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
9304 * tree-ssa.c (useless_type_conversion_p): Likewise.
9306 2010-07-20 Richard Guenther <rguenther@suse.de>
9310 * tree-ssa.c (maybe_optimize_var): New function split out from ...
9311 (execute_update_addresses_taken): ... here.
9312 (non_rewritable_mem_ref_base): Likewise.
9313 (execute_update_addresses_taken): Do not iterate over all referenced
9314 vars but just all local decls and parms.
9315 Properly check call and asm arguments and rewrite call arguments.
9317 2010-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
9319 * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
9321 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
9323 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
9325 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
9327 2010-07-19 Richard Sandiford <rdsandiford@googlemail.com>
9329 * gengtype.c (start_root_entry): New function, split out from
9330 write_root. Check whether V is null and raise an error if so.
9331 (write_field_root): Check for V being null. Don't raise an error here;
9332 set V to null instead.
9333 (write_root): Update comment above function. Use start_root_entry.
9335 2010-07-19 Xinliang David Li <davidxl@google.com>
9338 * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
9340 (find_uninit_use): Add dump.
9341 (is_use_properly_guarded): Ditto.
9342 (warn_uninitialized_phi): Ditto.
9343 (execute_late_warn_uninitialized): Ditto.
9345 2010-07-19 Richard Guenther <rguenther@suse.de>
9348 * expr.c (emit_block_move_hints): Move zero size check first.
9349 Move asserts to more useful places.
9350 * calls.c (load_register_parameters): Check for zero size.
9352 2010-07-19 Richard Henderson <rth@redhat.com>
9354 * tree-optimize.c (execute_all_early_local_passes): New. Change
9355 cgraph_state here ...
9356 (execute_early_local_optimizations): ... not here. Remove.
9357 (pass_early_local_passes, pass_all_early_optimizations): Update.
9359 2010-07-19 Bernd Schmidt <bernds@codesourcery.com>
9361 * postreload.c (reload_combine_closest_single_use): Ignore the
9362 number of uses for DEBUG_INSNs.
9363 (fixup_debug_insns): New static function.
9364 (reload_combine_recognize_const_pattern): Use it. Don't let the
9365 main loop be affected by DEBUG_INSNs.
9366 Really disallow moving adds past a jump insn.
9367 (reload_combine_recognize_pattern): Don't update use_ruid here.
9368 (reload_combine_note_use): Do it here.
9369 (reload_combine): Use control_flow_insn_p rather than JUMP_P.
9371 2010-07-19 Bingfeng Mei <bmei@broadcom.com>
9373 * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
9375 * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
9377 2010-07-19 Iain Sandoe <iains@gcc.gnu.org>
9379 * config/i386/darwin.h: Define darwin_emit_branch_islands.
9380 (TARGET_MACHO_BRANCH_ISLANDS): New.
9381 (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
9382 * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
9384 * config/i386/i386.c (output_pic_addr_const): Do not emit
9385 branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
9386 (x86_output_mi_thunk): Adjust symbol creation.
9387 * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
9388 Remove out of date comment.
9389 * config/rs6000/rs6000.c (print_operand): Adjust symbol.
9390 (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
9391 (DARWIN_GENERATE_ISLANDS): Ditto.
9392 (output_call): Do not emit branch islands unless
9393 darwin_emit_branch_islands is set.
9394 * config/darwin.c: Declare darwin_emit_branch_islands.
9395 (machopic_indirect_data_reference): Do not emit unless
9396 darwin_emit_branch_islands is set.
9397 (darwin_override_options): Set darwin_emit_branch_islands
9399 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
9401 2010-07-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9403 * doc/sourcebuild.texi (Effective-Target Keywords): Document
9404 sse_runtime, sse2_runtime.
9406 2010-07-18 Richard Sandiford <rdsandiford@googlemail.com>
9408 * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
9409 low half of a single-register SCmode return value before ORing
9410 it with the high half.
9411 * config/mips/mips16.S (MERGE_GPRf): Likewise.
9413 2010-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9416 * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
9419 2010-07-17 Bernd Schmidt <bernds@codesourcery.com>
9422 * postreload.c (reload_cse_move2add): Return bool, true if anything.
9423 changed. All callers changed.
9424 (move2add_use_add2_insn): Likewise.
9425 (move2add_use_add3_insn): Likewise.
9426 (reload_cse_regs): If reload_cse_move2add changed anything, rerun
9428 (RELOAD_COMBINE_MAX_USES): Bump to 16.
9429 (last_jump_ruid): New static variable.
9430 (struct reg_use): New members CONTAINING_MEM and RUID.
9431 (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
9432 (reload_combine_split_one_ruid, reload_combine_split_ruids,
9433 reload_combine_purge_insn_uses, reload_combine_closest_single_use
9434 reload_combine_purge_reg_uses_after_ruid,
9435 reload_combine_recognize_const_pattern): New static functions.
9436 (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
9437 is true for our reg and that we have available index regs.
9438 (reload_combine_note_use): New args RUID and CONTAINING_MEM. All
9439 callers changed. Use them to initialize fields in struct reg_use.
9440 (reload_combine): Initialize last_jump_ruid. Be careful when to
9441 take PREV_INSN of the scanned insn. Update REAL_STORE_RUID fields.
9442 Call reload_combine_recognize_const_pattern.
9443 (reload_combine_note_store): Update REAL_STORE_RUID field.
9445 2010-07-16 Jason Merrill <jason@redhat.com>
9447 * Makefile.in (opts-common.o): Depend on options.h.
9449 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
9451 * tree.c (build_common_builtin_nodes): Use build_function_type_list
9452 instead of build_function_type.
9453 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
9454 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
9456 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
9458 * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
9460 (rs6000_emit_int_cmove): Use function pointers for insn generation.
9461 Don't force values into registers unnecessarily.
9462 (output_isel): Assert that we're not given conditions we can't handle.
9463 Delete corresponding code.
9464 * config/rs6000/rs6000.md (isel_signed_<mode>): Use
9465 scc_comparison_operator constraint. Permit 0 for the consequent
9466 operand. Permit any GPR for the alternative operand.
9467 (isel_unsigned_<mode>): Likewise.
9469 2010-07-16 Jakub Jelinek <jakub@redhat.com>
9472 * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
9473 argument to const_tree.
9474 * config/i386/i386.c (function_arg_advance): If padding needs to be
9475 inserted before argument, increment cum->words by number of padding
9477 (contains_aligned_value_p): Change argument to const_tree.
9478 (ix86_function_arg_boundary): Change second argument to const_tree.
9480 2010-07-16 Bernd Schmidt <bernds@codesourcery.com>
9483 * function.c (record_hard_reg_sets): New static function.
9484 (assign_parm_setup_reg): If an optab for extending exists and the
9485 generated code clobbbers no hard regs, emit the insn directly and
9486 create a REG_EQUIV note.
9488 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
9490 * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
9492 * c-typeck.c (push_init_level): Likewise.
9493 (process_init_element): Likewise.
9495 2010-07-15 Anatoly Sokolov <aesok@post.ru>
9497 * tree.h (enum tree_index): Add TI_INTEGER_THREE.
9498 (integer_three_node): Add.
9499 * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
9500 NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
9501 * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
9502 of call build_int_cst.
9503 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
9504 * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
9505 (find_interesting_uses_address): Ditto.
9506 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
9507 * tree-eh.c (lower_eh_constructs_2): Ditto.
9508 * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
9509 * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
9510 * expmed.c (expand_divmod): Ditto.
9511 * tree-mudflap.c (mx_register_decls): Ditto.
9512 * varasm.c (array_size_for_constructor): Ditto.
9513 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
9514 * c-parser.c (c_parser_postfix_expression): Ditto.
9516 2010-07-15 Bernd Schmidt <bernds@codesourcery.com>
9518 * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
9519 New static variables.
9520 (reload_combine_recognize_pattern): New static function, broken out
9522 (reload_combine): Use it. Only initialize first_index_reg and
9523 last_index_reg once.
9525 2010-07-15 Richard Henderson <rth@redhat.com>
9527 * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
9530 2010-07-15 Jan Hubicka <jh@suse.cz>
9532 * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
9533 comdats for broken gold.
9534 (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
9536 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
9538 * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
9540 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
9542 * tree.h (DECL_CHAIN): Define.
9543 * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
9544 * c-decl.c: Likewise.
9545 * c-parser.c: Likewise.
9546 * c-typeck.c: Likewise.
9547 * cfgexpand.c: Likewise.
9548 * cgraph.c: Likewise.
9549 * cgraphunit.c: Likewise.
9550 * combine.c: Likewise.
9551 * config/alpha/alpha.c: Likewise.
9552 * config/arm/arm.c: Likewise.
9553 * config/frv/frv.c: Likewise.
9554 * config/i386/i386.c: Likewise.
9555 * config/i386/winnt-cxx.c: Likewise.
9556 * config/ia64/ia64.c: Likewise.
9557 * config/iq2000/iq2000.c: Likewise.
9558 * config/mep/mep.c: Likewise.
9559 * config/mips/mips.c: Likewise.
9560 * config/pa/som.h: Likewise.
9561 * config/rs6000/rs6000.c: Likewise.
9562 * config/s390/s390.c: Likewise.
9563 * config/sh/sh.c: Likewise.
9564 * config/sh/symbian-cxx.c: Likewise.
9565 * config/sparc/sparc.c: Likewise.
9566 * config/spu/spu.c: Likewise.
9567 * config/stormy16/stormy16.c: Likewise.
9568 * config/vxworks.c: Likewise.
9569 * config/xtensa/xtensa.c: Likewise.
9570 * coverage.c: Likewise.
9571 * dbxout.c: Likewise.
9572 * dwarf2out.c: Likewise.
9573 * emit-rtl.c: Likewise.
9575 * function.c: Likewise.
9576 * gimple-low.c: Likewise.
9577 * gimple-pretty-print.c: Likewise.
9578 * gimplify.c: Likewise.
9579 * integrate.c: Likewise.
9580 * ipa-inline.c: Likewise.
9581 * ipa-prop.c: Likewise.
9582 * ipa-split.c: Likewise.
9583 * ipa-struct-reorg.c: Likewise.
9584 * ipa-type-escape.c: Likewise.
9585 * langhooks.c: Likewise.
9586 * lto-cgraph.c: Likewise.
9587 * omp-low.c: Likewise.
9588 * stor-layout.c: Likewise.
9589 * tree-cfg.c: Likewise.
9590 * tree-complex.c: Likewise.
9591 * tree-dfa.c: Likewise.
9592 * tree-dump.c: Likewise.
9593 * tree-inline.c: Likewise.
9594 * tree-mudflap.c: Likewise.
9595 * tree-nested.c: Likewise.
9596 * tree-object-size.c: Likewise.
9597 * tree-pretty-print.c: Likewise.
9598 * tree-sra.c: Likewise.
9599 * tree-ssa-live.c: Likewise.
9600 * tree-ssa-loop-niter.c: Likewise.
9601 * tree-ssa-math-opts.c: Likewise.
9602 * tree-ssa-reassoc.c: Likewise.
9603 * tree-ssa-sccvn.c: Likewise.
9604 * tree-ssa-structalias.c: Likewise.
9605 * tree-tailcall.c: Likewise.
9606 * tree-vrp.c: Likewise.
9608 * var-tracking.c: Likewise.
9609 * varasm.c: Likewise.
9611 2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9614 * config/spu/spu.c (spu_expand_builtin_1): Allow references
9615 (as well as pointers) as argument to mask_for_load builtins.
9617 2010-07-15 Richard Guenther <rguenther@suse.de>
9619 PR tree-optimization/44946
9620 * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
9621 with accessing only padding properly.
9623 2010-07-15 Jan Hubicka <jh@suse.cz>
9625 * ipa.c (function_and_variable_visibility): Variables marked as used
9626 should not be localized.
9628 2010-07-15 Jan Hubicka <jh@suse.cz>
9630 * cgraph.c: Include lto-streamer.h
9631 (change_decl_assembler_name): Work when assembler name hash is at place.
9632 (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
9633 be sure to rename it to avoid name clash.
9634 * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
9635 Localize hidden symbols only when locally defined.
9637 2010-07-15 Uros Bizjak <ubizjak@gmail.com>
9639 * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
9641 2010-07-15 Magnus Granberg <zorry@gentoo.org>
9642 Kevin F. Quinn <kevquinn@gentoo.org>
9644 * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
9645 * common.opt: Add -Wtrampolines.
9646 * doc/invoke.texi: Add -Wtrampolines.
9648 2010-07-15 Jie Zhang <jie@codesourcery.com>
9650 * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
9653 2010-07-15 Dave Korn <dave.korn.cygwin@gmail.com>
9655 * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
9656 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
9658 2010-07-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9660 * config/spu/spu.c (reg_names): Remove prototype.
9661 (call_used_regs): Likewise.
9663 2010-07-14 Dave Korn <dave.korn.cygwin@gmail.com>
9665 * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
9666 "unused" with attribute "used".
9667 (__JCR_END__): Likewise.
9668 * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
9670 (__JCR_LIST__): Replace attribute "unused" with attribute "used".
9672 2010-07-14 Richard Guenther <rguenther@suse.de>
9674 * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
9675 (maybe_fixup_decls): Likewise.
9676 (input_gimple_stmt): Do not fixup anything.
9677 * lto-streamer-out.c (output_gimple_stmt): Make sure all
9678 non-automatic variable uses are wrapped inside a MEM_REF.
9680 2010-07-14 Richard Henderson <rth@redhat.com>
9682 * passes.c (rest_of_decl_compilation): Do not call assemble_variable
9684 * varasm.c (assemble_variable): Remove early exit for functions;
9685 assert that we're given a variable.
9687 2010-07-14 Jie Zhang <jie@codesourcery.com>
9689 * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
9690 cortex_a8_default when neon_type is not none.
9692 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
9694 * lower-subreg.c (subreg_context): New static bitmap.
9695 (decompose_multiword_subregs): Allocate and free it.
9696 (find_decomposable_subregs): Set a bit in it for a register that
9697 occurs in a subreg that changes mode but not size.
9698 (can_decompose_p): Test it instead of non_decomposable_context.
9700 2010-07-14 Richard Guenther <rguenther@suse.de>
9702 PR tree-optimization/44824
9703 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
9704 is_gimple_mem_ref_addr.
9705 (tree_ssa_forward_propagate_single_use_vars): Do not propagate
9706 non-decl_address_invariant_p addresses.
9708 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
9710 * reload.c (find_reloads): Revert code to penalize small register
9711 classes that was brought in with the IRA merge.
9713 2010-07-14 Richard Guenther <rguenther@suse.de>
9715 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
9716 as base of ARRAY_REFs.
9718 2010-07-14 Richard Guenther <rguenther@suse.de>
9721 * tree-pretty-print.c (do_niy): Do not print a newline.
9723 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
9725 * ira-int.h (struct ira_object): New.
9726 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
9727 (struct ira_allocno): Remove members min, max,
9728 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
9729 conflict_allocnos_num and conflict_vec_p. Add new member object.
9730 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
9731 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
9732 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
9733 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
9734 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
9735 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
9736 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
9737 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
9738 an ira_object_t rather than ira_allocno_t. All uses changed.
9739 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
9740 contains a vector of ira_object_t; all uses changed.
9741 (ira_objects_num): Declare variable.
9742 (ira_create_allocno_object): Declare function.
9743 (ira_conflict_vector_profitable_p): Adjust prototype.
9744 (ira_allocate_conflict_vec): Renamed from
9745 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
9746 (ira_allocate_object_conflicts): Renamed from
9747 ira_allocate_allocno_conflicts; first arg now ira_object_t.
9748 (struct ira_object_iterator): New.
9749 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
9750 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
9751 to conflict_vec_p. All uses changed.
9752 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
9753 Changed to take into account that conflicts are now tracked for
9755 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
9756 Args changed to accept ira_object_t. All uses changed.
9757 (allocnos_conflict_p): New static function.
9758 (collected_conflict_objects): Renamed from collected_allocno_objects;
9759 now a vector of ira_object_t. All uses changed.
9760 (build_conflict_bit_table): Changed to take into account that
9761 conflicts are now tracked for objects.
9762 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
9763 (print_allocno_conflicts, ira_build_conflicts): Likewise.
9764 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
9765 setup_allocno_left_conflicts_size, allocno_reload_assign,
9766 fast_allocation): Likewise.
9767 * ira-lives.c (make_hard_regno_born, make_allocno_born)
9768 process_single_reg_class_operands, process_bb_node_lives): Likewise.
9769 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
9771 * ira-build.c (ira_objects_num): New variable.
9772 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
9773 contains a vector of ira_object_t; all uses changed.
9774 (ira_object_id_map_vec): Corresponding change.
9775 (object_pool): New static variable.
9776 (initiate_allocnos): Initialize it.
9777 (finish_allocnos): Free it.
9778 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
9780 (ira_create_allocno): Don't set members that were removed.
9781 (ira_set_allocno_cover_class): Don't change conflict hard regs.
9782 (merge_hard_reg_conflicts): Changed to take into account that
9783 conflicts are now tracked for objects.
9784 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
9785 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
9786 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
9787 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
9788 setup_min_max_conflict_allocno_ids, ): Likewise.
9789 (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
9790 to ira_object_t; all callers changed.
9791 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
9792 to ira_object_t, all callers changed.
9793 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
9794 to ira_object_t, all callers changed.
9795 (conflict_check, curr_conflict_check_tick): Renamed from
9796 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
9798 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
9799 arg changed to ira_object_t, all callers changed.
9800 (create_cap_allocno): Call ira_create_allocno_object.
9801 (finish_allocno): Free the corresponding object.
9802 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
9803 callers changed. Adjusted for dealing with objects.
9804 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
9805 dealing with objects.
9806 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
9808 * ira-int.h (struct live_range): Rename allocno member to object
9809 and change type to ira_object_t.
9810 (struct ira_object): New member live_ranges.
9811 (struct ira_allocno): Remove member live_ranges.
9812 (ALLOCNO_LIVE_RANGES): Remove.
9813 (OBJECT_LIVE_RANGES): New macro.
9814 (ira_create_live_range, ira_copy_live_range_list,
9815 ira_merge_live_range_list, ira_live_ranges_intersect_p,
9816 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
9817 * ira-build.c (ira_create_object): Initialize live ranges here.
9818 (ira_create_allocno): Not here.
9819 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
9820 changed to ira_object_t, all callers changed.
9821 (copy_live_range): Rename from copy_allocno_live_range, all callers
9823 (ira_copy_live_range_list): Rename from
9824 ira_copy_allocno_live_range_list, all callers changed.
9825 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
9826 all callers changed.
9827 (ira_live_ranges_intersect_p): Rename from
9828 ira_allocno_live_ranges_intersect_p, all callers changed.
9829 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
9831 (ira_finish_live_range_list): Rename from
9832 ira_finish_allocno_live_range_list, all callers changed.
9833 (change_object_in_range_list): Rename from change_allocno_in_range_list,
9834 last arg changed to ira_object_t, all callers changed.
9835 (finish_allocno): Changed to expect live ranges in the allocno's object.
9836 (move_allocno_live_ranges, copy_allocno_live_ranges,
9837 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
9838 ira_flattening, ira_build): Likewise.
9839 * ira-color.c (allocnos_have_intersected_live_ranges_p,
9840 slot_coalesced_allocno_live_ranges_intersect,
9841 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
9842 * ira-conflicts.c (build_conflict_bit_table): Likewise.
9843 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
9844 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
9845 make_allocno_dead, create_start_finish_chains,
9846 remove_some_program_points_and_update_live_ranges,
9847 ira_debug_live_range_list): Likewise.
9849 * ira-int.h (ira_object_conflict_iterator): Rename from
9850 ira_allocno_conflict_iterator.
9851 (ira_object_conflict_iter_init): Rename from
9852 ira_allocno_conflict_iter_init, second arg changed to
9853 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
9854 FOR_EACH_ALLOCNO_CONFLICT.
9855 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
9856 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
9857 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
9858 * ira-conflicts.c (print_allocno_conflicts): Likewise.
9860 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
9863 * tree-dump.c (dump_options): Add enumerate_locals entry.
9864 Add TDF_NOID exclusion to all entry.
9865 * tree-dump.h (dump_enumerated_decls): Declare.
9866 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
9867 Don't display type uid.
9868 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
9869 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
9870 * tree-ssa-live.c: Include gimple.h.
9871 (numbered_tree_d): New struct.
9872 (numbered_tree): New typedef.
9873 (DEF_VEC_O (numbered_tree): New.
9874 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
9875 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
9876 (dump_enumerated_decls): Likewise.
9877 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
9878 debug info and flag_dump_final_insns, call dump_enumerated_decls.
9879 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
9880 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
9882 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
9884 * expmed.h (MAX_BITS_PER_WORD): Move to...
9885 * defaults.h (MAX_BITS_PER_WORD): ...here.
9887 2010-07-13 DJ Delorie <dj@redhat.com>
9889 * config/h8300/h8300.c (h8300_init_once): Default to
9890 -fstrict_volatile_bitfields.
9892 * config/sh/sh.c (sh_override_options): Default to
9893 -fstrict_volatile_bitfields.
9895 * config/rx/rx.c (rx_option_override): New.
9897 * config/m32c/m32c.c (m32c_override_options): Default to
9898 -fstrict_volatile_bitfields.
9900 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
9902 * tree.h (build_function_call_expr): Delete.
9903 (build_call_expr_loc_array): New function.
9904 (build_call_expr_loc_vec): New function.
9905 * tree-flow.h (struct omp_region): Change type of ws_args field
9907 * builtins.c (build_function_call_expr): Delete.
9908 (build_call_expr_loc_array): New function.
9909 (build_call_expr_loc): Call it. Use XALLOCAVEC.
9910 (build_call_expr): Likewise.
9911 (build_call_expr_loc_vec): New function.
9912 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
9913 build_function_call_expr.
9914 * expr.c (emutls_var_address): Likewise.
9915 * varasm.c (emutls_common_1): Likewise.
9916 * omp-low.c (expand_omp_atomic_mutex): Likewise.
9917 (expand_omp_taskreg): Adjust for new type of region->ws_args.
9918 (get_ws_args_for): Return a VEC instead of a tree.
9919 (expand_parallel_call): Call build_call_expr_loc_vec instead of
9920 build_function_call_expr.
9921 * stor-layout.c (self_referential_size): Likewise.
9923 2010-07-13 Jakub Jelinek <jakub@redhat.com>
9926 * recog.c (constrain_operands): Allow side-effects in memory
9927 operands if either < or > constraint is used, rather than if
9928 both < and > is used.
9930 2010-07-13 Richard Guenther <rguenther@suse.de>
9933 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
9934 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
9937 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
9940 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
9942 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
9943 * config/sh/sh.md (symGOT_load): Likewise.
9944 (symDTPOFF2reg): Likewise.
9945 (symTPOFF2reg): Likewise.
9947 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9949 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
9950 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
9952 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9954 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
9956 Find ucontext_t * on Solaris 11.
9957 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
9958 Handle new Solaris 11 __sighndlr patterns.
9960 2010-07-13 Jakub Jelinek <jakub@redhat.com>
9963 * vec.h (VEC_block_remove): Fix comment.
9964 * tree-ssa-live.c (remove_unused_locals): Don't use
9965 VEC_unordered_remove on local_decls, instead replace a single
9966 vector element in each iteration if at least one element had
9967 to be removed and VEC_truncate at the end.
9968 * omp-low.c (expand_omp_taskreg): Likewise.
9970 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
9972 * c-decl.c (finish_function): Fix typo in comment.
9974 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
9977 * postreload.c (move2add_use_add3_insn): Silence gcc warning
9980 2010-07-12 Jakub Jelinek <jakub@redhat.com>
9982 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
9983 (simplify_stmt_using_ranges): Use it.
9985 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9987 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
9988 member. Do not mark as GTY(()).
9989 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
9990 (spu_builtin_decls): New static variable.
9991 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
9992 (spu_init_builtins): Likewise.
9993 (spu_builtin_mul_widen_even): Likewise.
9994 (spu_builtin_mul_widen_odd): Likewise.
9995 (spu_builtin_mask_for_load): Likewise.
9996 (spu_builtin_vec_perm): Likewise.
9997 * config/spu/spu-c.c: Include "target.h".
9998 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
9999 of using spu_builtins[].fndecl.
10001 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10003 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
10004 imply -minterlink-mips16.
10006 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10008 * config/mips/mips.h (mips16_globals): Declare.
10009 (SWITCHABLE_TARGET): Define.
10010 * config/mips/mips.c: Include target-globals.h.
10011 (mips16_globals): New variable.
10012 (mips_set_mips16_mode): Use save_target_globals and
10013 restore_target_globals instead of target_reinit.
10015 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10017 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
10018 to say that the function can be called more than once.
10019 * target-globals.c (save_target_globals): Call init_reg_sets.
10021 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10023 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
10024 * bb-reorder.h: New file.
10025 * bb-reorder.c (default_target_bb_reorder): New variable.
10026 (this_target_bb_reorder): New conditional variable.
10027 (uncond_jump_length): Redefine as a macro.
10028 * target-globals.h (this_target_bb_reorder): Declare.
10029 (target_globals): Add a bb_reorder field.
10030 (restore_target_globals): Copy the bb_reorder field to
10031 this_target_bb-reorder.
10032 * target-globals.c: Include bb-reorder.h.
10033 (default_target_globals): Initialize the bb_reorder field.
10034 (save_target_globals): Likewise.
10036 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10038 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
10039 * gcse.h: New file.
10040 * gcse.c: Include gcse.h.
10041 (default_target_gcse): New variable.
10042 (this_target_gcse): New conditional variable.
10043 (can_copy): Redefine as a macro.
10044 (can_copy_init_p): New macro.
10045 (can_copy_p): Remove can_copy_init_p.
10046 * target-globals.h (this_target_gcse): Declare.
10047 (target_globals): Add a gcse field.
10048 (restore_target_globals): Copy the gcse field to this_target_gcse.
10049 * target-globals.c: Include gcse.h.
10050 (default_target_globals): Initialize the gcse field.
10051 (save_target_globals): Likewise.
10053 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10055 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
10056 and x_ira_prohibited_mode_move_regs_initialized_p.
10057 (ira_prohibited_mode_move_regs): Redefine as a macro.
10058 * ira.c (ira_prohibited_mode_move_regs): Delete.
10059 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
10061 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10063 * reload.h (target_reload): Add x_cached_reg_save_code and
10064 x_cached_reg_restore_code.
10065 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
10066 Redefine as macros.
10068 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10070 * Makefile.in (target-globals.o): Depend on builtins.h.
10071 * builtins.h: New file.
10072 * builtins.c: Include builtins.h.
10073 (default_target_builtins): New variable.
10074 (this_target_builtins): New conditional variable.
10075 (apply_args_mode, apply_result_mode): Redefine as macros.
10076 * target-globals.h (this_target_builtins): Declare.
10077 (target_globals): Add a builtins field.
10078 (restore_target_globals): Copy the builtins field to
10079 this_target_builtins.
10080 * target-globals.c: Include builtins.h.
10081 (default_target_globals): Initialize the builtins field.
10082 (save_target_globals): Likewise.
10084 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10086 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
10087 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
10089 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
10090 (alg_hash, alg_hash_used_p): New macros.
10091 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
10092 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
10093 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
10095 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10097 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
10098 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
10099 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
10100 (this_op_costs, costs_classes): Redefine as macros.
10101 (record_reg_classes): Don't take op_costs as a parameter.
10102 (record_operand_costs): Likewise. Update calls to record_reg_classes.
10103 (scan_one_insn): Update call to record_operand_costs.
10105 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10107 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
10108 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
10109 (target_ira_int): New structure.
10110 (default_target_ira_int): Declare.
10111 (this_target_ira_int): Declare as a variable or define as a macro.
10112 (ira_reg_mode_hard_regset, ira_register_move_cost)
10113 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
10114 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
10115 (prohibited_class_mode_regs, ira_important_classes_num)
10116 (ira_important_classes, ira_reg_class_intersect)
10117 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
10118 (ira_reg_class_union): Redefine as macros.
10119 * ira.h (target_ira): New structure.
10120 (default_target_ira): Declare.
10121 (this_target_ira): Declare as a variable or define as a macro.
10122 (ira_available_class_regs, ira_hard_regno_cover_class)
10123 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
10124 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
10125 (ira_class_hard_regs_num): Redefine as macros.
10126 * ira.c (default_target_ira, default_target_ira_int): New variables.
10127 (this_target_ira, this_target_ira_int): New conditional variables.
10128 (ira_reg_mode_hard_regset, ira_memory_move_cost)
10129 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
10130 (ira_class_subset_p): Delete.
10131 (no_unit_alloc_regs): Redefine as a macro.
10132 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
10133 (ira_class_hard_regs_num, ira_class_hard_reg_index)
10134 (ira_available_class_regs): Delete.
10135 (alloc_reg_class_subclasses): Redefine as a macro.
10136 (ira_reg_class_cover_size, ira_reg_class_cover)
10137 (ira_important_classes_num, ira_important_classes)
10138 (ira_important_class_nums, ira_class_translate): Delete.
10139 (cover_class_order): Document the variable's lifetime.
10140 (reorder_important_classes): Don't set ira_important_class_nums.
10141 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
10142 (ira_reg_class_super_classes, ira_reg_class_union)
10143 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
10145 (setup_reg_class_nregs): Don't set ira_max_regs.
10146 (prohibited_class_mode_regs): Delete.
10147 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
10148 (target_globals): Add ira and ira_int fields.
10149 (restore_target_globals): Copy the ira field to this_target_ira
10150 and the ira_int field to this_target_ira_int.
10151 * target-globals.c: Include ira-int.h.
10152 (default_target_globals): Initialize the ira and ira_int fields.
10153 (save_target_globals): Likewise.
10155 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10157 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
10158 * cfgloop.h (target_cfgloop): New structure.
10159 (default_target_cfgloop): Declare.
10160 (this_target_cfgloop): Declare as a variable or define as a macro.
10161 (target_avail_regs, target_clobbered_regs, target_res_regs)
10162 (target_reg_cost, target_spill_cost): Redefine as macros.
10163 * cfgloopanal.c (default_target_cfgloop): New variable.
10164 (this_target_cfgloop): New conditional variable.
10165 (target_avail_regs, target_clobbered_regs, target_res_regs)
10166 (target_reg_cost, target_spill_cost): Delete.
10167 * target-globals.h (this_target_cfgloop): Declare.
10168 (target_globals): Add a cfgloop field.
10169 (restore_target_globals): Copy the cfgloop field to
10170 this_target_cfgloop.
10171 * target-globals.c: Include cfgloop.h.
10172 (default_target_globals): Initialize the cfgloop field.
10173 (save_target_globals): Likewise.
10175 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10177 * regs.h (target_regs): Add x_direct_load, x_direct_store and
10178 x_float_extend_from_mem.
10179 (direct_load, direct_store, float_extend_from_mem): New macros.
10180 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
10182 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10184 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
10185 (target-globals.o): Depend on $(LIBFUNCS_H).
10186 * libfuncs.h: Include hashtab.h.
10187 (libfunc_entry): Moved from optabs.c.
10188 (target_libfuncs): New structure.
10189 (default_target_libfuncs): Declare.
10190 (this_target_libfuncs): Declare as a variable or define as a macro.
10191 (libfunc_table): Redefine as a macro.
10192 * optabs.c (default_target_libfuncs): New variable.
10193 (this_target_libfuncs): New conditional variable.
10194 (libfunc_table): Delete.
10195 (libfunc_entry): Moved to optabs.h.
10196 (libfunc_hash): Redefine as a macro.
10197 (hash_libfunc, eq_libfunc): Fix comments.
10198 (init_optabs): Use libfunc_hash to detect cases where the function
10199 has already been called. Clear the hash table instead of
10201 * target-globals.h (this_target_libfuncs): Declare.
10202 (target_globals): Add a libfuncs field.
10203 (restore_target_globals): Copy the libfuncs field to
10204 this_target_libfuncs.
10205 * target-globals.c: Include libfuncs.h.
10206 (default_target_globals): Initialize the libfuncs field.
10207 (save_target_globals): Likewise.
10209 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10211 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
10212 in all dependency lists.
10214 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10216 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
10217 * optabs.h (target_optabs): New structure.
10218 (default_target_optabs): Declare.
10219 (this_target_optabs): Declare as a variable or define as a macro.
10220 (optab_table, convert_optab_table, direct_optab_table): Redefine
10222 * optabs.c (default_target_optabs): New variable.
10223 (this_target_optabs): New conditional variable.
10224 (optab_table, convert_optab_table, direct_optab_table): Delete.
10225 * target-globals.h (this_target_optabs): Declare.
10226 (target_globals): Add a optabs field.
10227 (restore_target_globals): Copy the optabs field to
10228 this_target_optabs.
10229 * target-globals.c: Include expr.h and optabs.h.
10230 (default_target_globals): Initialize the optabs field.
10231 (save_target_globals): Likewise.
10233 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10235 * flags.h (target_flagstate): Add x_flag_excess_precision.
10236 (flag_excess_precision): Redefine as a macro.
10237 * toplev.c (flag_excess_precision): Delete.
10239 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10241 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
10242 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
10243 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
10244 (no_caller_save_reg_set): Redefine as a macro.
10245 * reload.h (target_reload): Add x_caller_save_initialized_p and
10247 (caller_save_initialized_p): Redefine as a macro.
10248 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
10249 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
10250 (regno_save_mode): Redefine as a macro.
10252 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10254 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
10255 * expmed.h: New file.
10256 * expmed.c (default_target_costs): New variable.
10257 (this_target_costs): New conditional variable.
10258 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
10259 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
10260 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
10261 * target-globals.h (this_target_expmed): Declare.
10262 (target_globals): Add a expmed field.
10263 (restore_target_globals): Copy the expmed field to
10264 this_target_expmed.
10265 * target-globals.c: Include expmed.h.
10266 (default_target_globals): Initialize the expmed field.
10267 (save_target_globals): Likewise.
10269 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10271 * Makefile.in (target-globals.o): Depend on reload.h.
10272 * reload.h (target_reload): New structure.
10273 (default_target_reload): Declare.
10274 (this_target_reload): Declare as a variable or define as a macro.
10275 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
10276 * reload1.c (default_target_reload): New variable
10277 (this_target_reload): New conditional variable.
10278 (indirect_symref_ok, double_reg_address_ok): Delete.
10279 (spill_indirect_levels): Redefine as a macro.
10280 * target-globals.h (this_target_reload): Declare.
10281 (target_globals): Add a reload field.
10282 (restore_target_globals): Copy the reload field to
10283 this_target_reload.
10284 * target-globals.c: Include hard-reg-set.h.
10285 (default_target_globals): Initialize the reload field.
10286 (save_target_globals): Likewise.
10288 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10290 * rtl.h (target_rtl): Add x_static_reg_base_value.
10291 * alias.c (static_reg_base_value): Redefine as a macro.
10293 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10295 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
10296 (GTFILES): Remove reginfo.c.
10297 * rtl.h (target_rtl): Add x_top_of_stack.
10298 (top_of_stack): New macro.
10299 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
10300 (top_of_stack): Delete.
10302 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10304 * regs.h (target_regs): Add x_hard_regs_of_mode,
10305 x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
10306 x_may_move_out_cost and x_last_mode_for_init_move_cost.
10307 (have_regs_of_mode, contains_reg_of_mode, move_cost)
10308 (may_move_in_cost, may_move_out_cost): Redefine as macros.
10309 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
10310 (may_move_in_cost, may_move_out_cost): Delete.
10311 (last_mode_for_init_move_cost): Redefine as a macro.
10313 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10315 * hard-reg-set.h (target_hard_regs): New structure.
10316 (default_target_hard_regs): Declare.
10317 (this_target_hard_regs): Declare as a variable or define as a macro.
10318 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
10319 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
10320 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
10321 (reg_class_size, reg_class_subclasses, reg_class_subunion)
10322 (reg_class_superunion, reg_names): Redefine as macros.
10323 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
10324 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
10325 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
10326 (reg_class_contents, reg_class_size, reg_class_subclasses)
10327 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
10328 (default_target_hard_regs): New variable
10329 (this_target_hard_regs, initial_call_really_used_regs)
10330 (initial_reg_alloc_order): New conditional variables.
10331 (initial_reg_names): New variable.
10332 (init_reg_sets): Assert that initial_call_really_used_regs,
10333 initial_reg_alloc_order and initial_reg_names
10334 are all the same size as their variable counterparts. Use them to
10335 initialize those counterparts.
10336 * target-globals.h (this_target_hard_regs): Declare.
10337 (target_globals): Add a hard_regs field.
10338 (restore_target_globals): Copy the hard_regs field to
10339 this_target_hard_regs.
10340 * target-globals.c: Include hard-reg-set.h.
10341 (default_target_globals): Initialize the hard_regs field.
10342 (save_target_globals): Likewise.
10344 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10346 * Makefile.in (target-globals.o): Depend on $(RTL_H).
10347 * rtl.h (target_rtl): New structure.
10348 (default_target_rtl): Declare.
10349 (this_target_rtl): Declare as a variable or define as a macro.
10350 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
10351 Redefine as macros.
10352 * emit-rtl.c (default_target_rtl): New variable.
10353 (this_target_rtl): New conditional variable.
10354 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
10355 (return_address_pointer_rtx): Delete.
10356 (initial_regno_reg_rtx): New macro.
10357 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
10358 (init_emit_regs): Likewise.
10359 * target-globals.h (this_target_rtl): Declare.
10360 (target_globals): Add a rtl field.
10361 (restore_target_globals): Copy the rtl field to this_target_rtl.
10362 * target-globals.c: Include rtl.h.
10363 (default_target_globals): Initialize the rtl field.
10364 (save_target_globals): Likewise.
10366 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10368 * Makefile.in (target-globals.o): Depend on $(REGS_H).
10369 * regs.h (target_reg_modes): New structure.
10370 (default_target_reg_modes): Declare.
10371 (this_target_reg_modes): Declare as a variable or define as a macro.
10372 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
10373 * reginfo.c (default_target_reg_modes): New variable.
10374 (this_target_reg_modes): New conditional variable.
10375 (hard_regno_nregs, reg_raw_mode): Delete.
10376 * target-globals.h (this_target_regs): Declare.
10377 (target_globals): Add a regs field.
10378 (restore_target_globals): Copy the regs field to this_target_regs.
10379 * target-globals.c: Include regs.h.
10380 (default_target_globals): Initialize the regs field.
10381 (save_target_globals): Likewise.
10383 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10385 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
10386 * doc/tm.texi: Regenerate.
10387 * Makefile.in (OBJS-common): Add target-globals.o.
10388 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
10389 and target-globals.h.
10390 (target-globals.o): New rule.
10391 (GTFILES): Include $(srcdir)/target-globals.h.
10392 * defaults.h (SWITCHABLE_TARGET): Define.
10393 * gengtype.c (open_base_files): Add target-globals.h to the
10395 * target-globals.h: New file.
10396 * target-globals.c: Likewise.
10398 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
10399 * flags.h (target_flag_state): New structure.
10400 (default_target_flag_state): Declare.
10401 (this_target_flag_state): Declare as a variable or define as a macro.
10402 (align_loops_log): Redefine as a macro.
10403 (align_loops_max_skip, align_jumps_log): Likewise.
10404 (align_jumps_max_skip, align_labels_log): Likewise.
10405 (align_labels_max_skip, align_functions_log): Likewise.
10406 * toplev.c (default_target_flag_state): New variable.
10407 (this_target_flag_state): New conditional variable.
10408 (align_loops_log): Delete.
10409 (align_loops_max_skip, align_jumps_log): Likewise.
10410 (align_jumps_max_skip, align_labels_log): Likewise.
10411 (align_labels_max_skip, align_functions_log): Likewise.
10412 * target-globals.h (this_target_flag_state): Declare.
10413 (target_globals): Add a flag_state field.
10414 (restore_target_globals): Copy the flag_state field to
10415 this_target_flag_state.
10416 * target-globals.c: Include flags.h.
10417 (default_target_globals): Initialize the flag_state field.
10418 (save_target_globals): Likewise.
10420 2010-07-12 Jie Zhang <jie@codesourcery.com>
10422 * postreload.c (reg_symbol_ref[]): New.
10423 (move2add_use_add2_insn): New.
10424 (move2add_use_add3_insn): New.
10425 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
10426 (move2add_note_store): Likewise.
10428 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
10430 PR rtl-optimization/44752
10431 * genautomata.c (main): Don't emit an empty file even if there
10434 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10436 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
10437 ix86_solaris_return_in_memory.
10438 * config/i386-protos.h: Reflect this.
10439 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
10440 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
10442 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
10444 2010-07-12 Jie Zhang <jie@codesourcery.com>
10446 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
10447 align the stack when it's going to be saved.
10449 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10452 * config/host-solaris.c (mmap_fixed): New function.
10453 (sol_gt_pch_get_address): Use it.
10454 (sol_gt_pch_use_address): Likewise.
10456 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10458 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
10459 pentiumpro on Solaris 8 and 9/x86.
10460 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
10461 Document SSE/SSE2 support.
10462 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
10464 2010-07-12 Andi Kleen <ak@linux.intel.com>
10466 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
10467 instead of gcc_assert to print better error message for multiple
10470 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
10472 * config/i386/i386.c (ix86_asm_output_function_label): Change format
10473 string placeholder from 0x%x to %#x.
10474 (ix86_code_end): Use putc to output '\n'.
10475 (ix86_print_operand) <case ';'>: Use putc to output ';'.
10477 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
10479 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
10480 in directive -export.
10482 2010-07-10 Anatoly Sokolov <aesok@post.ru>
10484 * reginfo.h (reg_classes_intersect_p): Change arguments type to
10486 * rtl.h (reg_classes_intersect_p): Adjust prototype.
10488 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10490 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
10491 rs6000_memory_move_cost): Remove
10492 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
10493 TARGET_MEMORY_MOVE_COST): Define.
10494 (rs6000_register_move_cost): Make static. Change arguments type from
10495 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
10496 (rs6000_memory_move_cost): Make static. Change arguments type from
10497 'enum reg_class' to reg_class_t.
10499 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
10501 PR middle-end/42505
10502 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
10503 lookup code into....
10504 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
10506 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
10507 * cfgloopanal.c (target_clobbered_regs): Define.
10508 (init_set_costs): Initialize target_clobbered_regs.
10509 (estimate_reg_pressure_cost): Add call_p argument. When true,
10510 adjust the number of available registers to exclude the
10511 call-clobbered registers.
10512 * cfgloop.h (target_clobbered_regs): Declare.
10513 (estimate_reg_pressure_cost): Adjust declaration.
10514 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
10515 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
10516 (determine_set_costs): Dump target_clobbered_regs.
10517 (loop_body_includes_call): New function.
10518 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
10519 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
10520 call_p flag through.
10521 (best_gain_for_invariant): Likewise.
10522 (find_invariants_to_move): Likewise.
10523 (move_single_loop_invariants): Likewise, using already-computed
10526 2010-07-10 Richard Guenther <rguenther@suse.de>
10527 Joern Rennecke <joern.rennecke@embecosm.com>
10530 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
10531 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
10532 unless they have DECL_IGNORED_P set.
10534 2010-07-10 Richard Guenther <rguenther@suse.de>
10537 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
10539 (gimple_types_compatible_p): Similar to pointed-to
10540 types allow and merge a mix of complete and incomplete aggregate.
10541 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
10542 (iterative_hash_gimple_type): Adjust for that.
10544 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
10546 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
10548 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
10551 * config/darwin.c (output_objc_section_asm_op): Save and restore
10552 section when outputting ObjC section list.
10554 2010-07-09 Jan Hubicka <jh@suse.cz>
10556 * lto-streamer-out.c (produce_symtab): Do not write alias
10557 cgraph/varpool nodes.
10559 2010-07-09 Jan Hubicka <jh@suse.cz>
10561 * tree-inline.c (declare_return_variable): Fix ICE while
10562 inlining DECL_BY_VALUE function not in SSA form
10564 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
10566 PR tree-optimization/44576
10567 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
10568 New. Pull out from is_loop_prefetching_profitable to implement
10569 the trip count to ahead ratio heuristic.
10570 (mem_ref_count_reasonable_p): New. Pull out from
10571 is_loop_prefetching_profitable to implement the instruction to
10572 memory reference ratio heuristic. Also consider not reasonable if
10573 the memory reference count is above a threshold (to avoid
10574 explosive compilation time.
10575 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
10576 is_loop_prefetching_profitable to implement the instruction to
10577 prefetch ratio heuristic.
10578 (is_loop_prefetching_profitable): Removed.
10579 (loop_prefetch_arrays): Distribute the cost analysis across the
10580 function to allow early exit of the prefetch analysis.
10581 is_loop_prefetching_profitable is splitted into three functions,
10582 with each one called as early as possible.
10583 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
10584 number of memory references in a loop is considered too many.
10586 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
10588 * reload.c (find_reloads): Don't clear badop if we have a winreg
10589 alternative, but not win, and the class only has fixed regs.
10590 * hard-reg-set.h (class_only_fixed_regs): Declare.
10591 * reginfo.c (class_only_fixed_regs): New array.
10592 (init_reg_sets_1): Initialize it.
10593 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
10594 discourage alternatives using the stack pointer.
10596 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
10598 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
10600 * config/arm/arm.md (cbranchqi4): Fix array size.
10601 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
10602 calculating length.
10604 2010-07-09 Richard Guenther <rguenther@suse.de>
10606 * gimple.c (struct type_fixup_s): New struct and VEC type.
10607 (gimple_register_type_fixups): New static global.
10608 (gimple_queue_type_fixup): New function.
10609 (gimple_types_compatible_p): Queue type fixups instead of
10610 applying them here.
10611 (gimple_register_type): Apply queued fixups for the
10612 canonical type. Empty the type fixup queue.
10614 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
10616 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
10617 * configure: Regenerate.
10618 * config.in: Ditto.
10620 2010-07-09 Jakub Jelinek <jakub@redhat.com>
10621 Denys Vlasenko <dvlasenk@redhat.com>
10622 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
10624 PR tree-optimization/28632
10625 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
10626 (extract_range_from_binary_expr): Further optimize
10627 BIT_AND_EXPR and BIT_IOR_EXPR.
10629 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
10631 * tree-if-conv.c (fold_or_predicates): New.
10632 (add_to_predicate_list): Call it.
10634 2010-07-09 Richard Guenther <rguenther@suse.de>
10636 PR middle-end/44890
10637 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
10638 if base is a pointer.
10639 * tree-cfg.c (verify_expr): Update MEM_REF checking.
10641 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
10644 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
10645 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
10646 builtin mask for load/store builtins.
10648 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
10650 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
10652 * configure: Regenerate.
10653 * config/i386/i386.c (ix86_print_operand) <case ';'>:
10654 Remove TARGET_MACHO.
10656 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
10658 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
10660 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
10662 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
10664 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
10666 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
10668 * config/picochip/picochip.md (commsTestPort): Emit more
10669 efficient sequence for tstport instruction.
10671 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
10673 * config/i386/i386.c (ix86_veclib_handler): Make static.
10675 2010-07-09 Richard Guenther <rguenther@suse.de>
10677 PR tree-optimization/44852
10678 * tree-ssa-alias.c: Include toplev.h for exact_log2.
10679 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
10681 (indirect_refs_may_alias_p): Likewise.
10682 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
10684 2010-07-09 Richard Guenther <rguenther@suse.de>
10686 PR tree-optimization/44882
10687 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
10689 (vectorizable_load): Likewise.
10691 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
10694 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
10695 All callers changed.
10696 Handle the case when we're called for the epilogue.
10697 (thumb_unexpanded_epilogue): Use it.
10698 (thumb1_expand_epilogue): Likewise.
10700 2010-07-09 Jakub Jelinek <jakub@redhat.com>
10702 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
10703 both ranges are range_int_cst_p with non-negative minimum,
10704 try harder to derive smaller range.
10706 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
10708 * genrecog.c: Include diagnostic-core.h before toplev.h.
10709 * genoutput.c: Likewise.
10710 * genextract.c: Likewise.
10711 * genautomata.c: Likewise.
10712 * genemit.c: Likewise.
10713 * genpeep.c: Likewise.
10714 * genattrtab.c: Likewise.
10715 * genconditions.c: Likewise.
10716 * genpreds.c: Likewise.
10718 2010-07-08 Andi Kleen <ak@linux.intel.com>
10720 * lto-section-in.c (lto_section_name): Add missing comma.
10722 2010-07-08 Anatoly Sokolov <aesok@post.ru>
10724 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
10725 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
10726 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
10727 (ia64_override_options): Rename to...
10728 (ia64_option_override): ... this one. Make static.
10730 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
10732 PR middle-end/44843
10733 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
10734 pointed-to type of the offset in a MEM_REF to compute the alignment.
10736 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
10738 * final.c (final_scan_insn): Replace
10739 TARGET_UNWIND_INFO macro check by unwind_emit
10741 * targhooks.c (default_unwind_emit): Removed.
10742 * targhooks.h (default_unwind_emit): Likewise.
10743 * target.def (unwind_emit): Set default value to NULL.
10745 * config/i386/i386-protos.h (ix86_asm_output_function_label):
10747 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
10748 for NULL fntype argument and allow 64-bit targets.
10749 (ix86_asm_output_function_label): New function.
10750 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
10751 (ix86_handle_fndecl_attribute): Likewise.
10752 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
10753 * doc/doc/tm.texi: Regenerated.
10754 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
10755 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
10756 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
10757 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
10758 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
10759 * config/elfos.h: Likewise.
10760 * config/i386/cygming.h: Likewise.
10761 * config/netbsd-aout.h: Likewise.
10762 * config/openbsd.h: Likewise.
10763 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
10764 by ix86_asm_output_function_label function call.
10765 * varasm.c (assemble_start_function): Use
10766 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
10768 2010-07-08 Jan Hubicka <jh@suse.cz>
10770 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
10772 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
10774 * ipa-cp.c (ipcp_estimate_growth): Use it.
10775 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
10778 2010-07-08 Jan Hubicka <jh@suse.cz>
10780 * tree-inline.c (declare_return_variable): Allocate annotation for new
10783 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
10785 PR tree-optimization/44710
10786 * tree-if-conv.c (parse_predicate): New.
10787 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
10788 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
10790 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
10792 * common.opt (ftree-loop-if-convert): New flag.
10793 * doc/invoke.texi (ftree-loop-if-convert): Documented.
10794 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
10795 when flag_tree_loop_if_convert is set.
10797 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
10799 * config/i386/i386.c: Use short syntax for function calls
10800 through function pointers.
10801 * config/i386/i386.md: Ditto.
10803 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
10805 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
10807 2010-07-08 Richard Guenther <rguenther@suse.de>
10809 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
10810 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
10812 2010-07-08 Jakub Jelinek <jakub@redhat.com>
10814 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
10815 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
10816 (loc_list_from_tree): Likewise.
10817 (output_loc_operands): Handle outputting DW_OP_const[48]u
10818 with loc->dtprel set.
10819 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
10821 2010-07-08 Jan Hubicka <jh@suse.cz>
10823 * ipa.c: Include pointer-set.h
10824 (cgraph_externally_visible_p): New attribute ALIASED;
10825 when in LTO, hidden symbols are local unless they are aliased.
10826 (function_and_variable_visibility): Compute aliased nodes;
10827 handle LTO and hidden symbol on functions and vars.
10828 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
10829 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
10831 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
10833 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
10834 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10835 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10836 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10837 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10838 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
10839 (ix86_gen_probe_stack_range): Likewise.
10840 (override_options): Set them.
10841 (ix86_target_stack_probe): New function.
10842 (ix86_compute_frame_layout): Force use of push instructions to
10843 save registers if stack checking with probes is enabled.
10844 (get_scratch_register_on_entry): New function.
10845 (release_scratch_register_on_entry): Likewise.
10846 (ix86_adjust_stack_and_probe): Likewise.
10847 (output_adjust_stack_and_probe): Likewise.
10848 (ix86_emit_probe_stack_range): Likewise.
10849 (output_probe_stack_range): Likewise.
10850 (ix86_expand_prologue): Emit stack checking code if static built-in
10851 stack checking is enabled.
10852 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
10853 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
10854 (output_adjust_stack_and_probe): Likewise.
10855 (output_probe_stack_range): Likewise.
10856 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
10857 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
10858 TARGET_STACK_PROBE.
10859 (allocate_stack_worker_64): Likewise.
10860 (allocate_stack): Likewise.
10861 (adjust_stack_and_probe): New insn.
10862 (probe_stack_range): Likewise.
10864 2010-07-08 Richard Guenther <rguenther@suse.de>
10866 PR tree-optimization/44831
10867 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
10868 a MEM_REF preserving TBAA info of the original dereference.
10869 Dereference the original pointer if the address is not invariant.
10870 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
10871 at least one invariant address that we are going to dereference.
10873 2010-07-08 Richard Guenther <rguenther@suse.de>
10875 PR tree-optimization/44861
10876 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
10877 information when building MEM_REFs.
10878 (vectorizable_load): Likewise.
10879 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
10881 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
10883 * config/sol2-c.c: Do not include diagnostic-core.h.
10885 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10888 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
10889 with respect to current_function_decl. Pass decl of the function.
10890 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
10891 * ipa-inline.c (compute_inline_parameters): Pass decl to
10892 estimated_stack_frame_size.
10894 2010-07-08 Richard Guenther <rguenther@suse.de>
10896 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
10898 (valueize_refs): Call it.
10900 2010-07-08 Richard Guenther <rguenther@suse.de>
10902 PR rtl-optimization/44838
10903 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
10904 SSA form do not use pointer equivalence.
10906 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
10908 * dwarf2out.c (AT_linkage_name): Delete.
10909 (add_linkage_attr): New function.
10910 (add_linkage_name): Call it to emit the linkage attribute.
10911 (dwarf2out_finish): Likewise.
10912 (move_linkage_attr): Explicitly accept both attribute variants.
10914 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
10916 * toplev.h: Do not include diagnostic-core.h.
10917 Include diagnostic-core.h in every file that includes toplev.h.
10918 * c-tree.h: Do not include toplev.h.
10919 * pretty-print.h: Update comment.
10920 * Makefile.in: Update dependencies.
10921 * alias.c: Include diagnostic-core.h in every file that includes
10923 * attribs.c: Likewise.
10924 * auto-inc-dec.c: Likewise.
10925 * bb-reorder.c: Likewise.
10926 * bt-load.c: Likewise.
10927 * caller-save.c: Likewise.
10928 * calls.c: Likewise.
10930 * cfganal.c: Likewise.
10931 * cfgbuild.c: Likewise.
10932 * cfgcleanup.c: Likewise.
10933 * cfghooks.c: Likewise.
10934 * cfgloop.c: Likewise.
10935 * combine.c: Likewise.
10936 * config/alpha/alpha.c: Likewise.
10937 * config/arc/arc.c: Likewise.
10938 * config/arm/arm.c: Likewise.
10939 * config/arm/pe.c: Likewise.
10940 * config/avr/avr.c: Likewise.
10941 * config/bfin/bfin.c: Likewise.
10942 * config/cris/cris.c: Likewise.
10943 * config/crx/crx.c: Likewise.
10944 * config/darwin-c.c: Likewise.
10945 * config/darwin.c: Likewise.
10946 * config/fr30/fr30.c: Likewise.
10947 * config/frv/frv.c: Likewise.
10948 * config/h8300/h8300.c: Likewise.
10949 * config/host-darwin.c: Likewise.
10950 * config/i386/i386.c: Likewise.
10951 * config/i386/netware.c: Likewise.
10952 * config/i386/nwld.c: Likewise.
10953 * config/i386/winnt-cxx.c: Likewise.
10954 * config/i386/winnt-stubs.c: Likewise.
10955 * config/i386/winnt.c: Likewise.
10956 * config/ia64/ia64-c.c: Likewise.
10957 * config/ia64/ia64.c: Likewise.
10958 * config/iq2000/iq2000.c: Likewise.
10959 * config/lm32/lm32.c: Likewise.
10960 * config/m32c/m32c-pragma.c: Likewise.
10961 * config/m32c/m32c.c: Likewise.
10962 * config/m32r/m32r.c: Likewise.
10963 * config/m68hc11/m68hc11.c: Likewise.
10964 * config/m68k/m68k.c: Likewise.
10965 * config/mcore/mcore.c: Likewise.
10966 * config/mep/mep-pragma.c: Likewise.
10967 * config/mep/mep.c: Likewise.
10968 * config/mmix/mmix.c: Likewise.
10969 * config/mn10300/mn10300.c: Likewise.
10970 * config/moxie/moxie.c: Likewise.
10971 * config/pa/pa.c: Likewise.
10972 * config/pdp11/pdp11.c: Likewise.
10973 * config/picochip/picochip.c: Likewise.
10974 * config/rs6000/rs6000-c.c: Likewise.
10975 * config/rs6000/rs6000.c: Likewise.
10976 * config/rx/rx.c: Likewise.
10977 * config/s390/s390.c: Likewise.
10978 * config/score/score.c: Likewise.
10979 * config/score/score3.c: Likewise.
10980 * config/score/score7.c: Likewise.
10981 * config/sh/sh.c: Likewise.
10982 * config/sh/symbian-base.c: Likewise.
10983 * config/sh/symbian-c.c: Likewise.
10984 * config/sh/symbian-cxx.c: Likewise.
10985 * config/sol2-c.c: Likewise.
10986 * config/sol2.c: Likewise.
10987 * config/sparc/sparc.c: Likewise.
10988 * config/spu/spu.c: Likewise.
10989 * config/stormy16/stormy16.c: Likewise.
10990 * config/v850/v850-c.c: Likewise.
10991 * config/v850/v850.c: Likewise.
10992 * config/vax/vax.c: Likewise.
10993 * config/vxworks.c: Likewise.
10994 * config/xtensa/xtensa.c: Likewise.
10995 * convert.c: Likewise.
10997 * cselib.c: Likewise.
10998 * dbgcnt.c: Likewise.
10999 * dbxout.c: Likewise.
11001 * dominance.c: Likewise.
11002 * emit-rtl.c: Likewise.
11003 * explow.c: Likewise.
11004 * expmed.c: Likewise.
11005 * fixed-value.c: Likewise.
11006 * fold-const.c: Likewise.
11007 * fwprop.c: Likewise.
11008 * gcse.c: Likewise.
11009 * ggc-common.c: Likewise.
11010 * ggc-page.c: Likewise.
11011 * ggc-zone.c: Likewise.
11012 * gimple-low.c: Likewise.
11013 * gimplify.c: Likewise.
11014 * graph.c: Likewise.
11015 * haifa-sched.c: Likewise.
11016 * ifcvt.c: Likewise.
11017 * implicit-zee.c: Likewise.
11018 * integrate.c: Likewise.
11019 * ira-build.c: Likewise.
11020 * ira-color.c: Likewise.
11021 * ira-conflicts.c: Likewise.
11022 * ira-costs.c: Likewise.
11023 * ira-lives.c: Likewise.
11025 * lists.c: Likewise.
11026 * loop-doloop.c: Likewise.
11027 * loop-iv.c: Likewise.
11028 * lto-opts.c: Likewise.
11029 * lto-symtab.c: Likewise.
11030 * main.c: Likewise.
11031 * modulo-sched.c: Likewise.
11032 * optabs.c: Likewise.
11033 * params.c: Likewise.
11034 * plugin.c: Likewise.
11035 * postreload-gcse.c: Likewise.
11036 * postreload.c: Likewise.
11037 * predict.c: Likewise.
11038 * profile.c: Likewise.
11039 * real.c: Likewise.
11040 * regcprop.c: Likewise.
11041 * reginfo.c: Likewise.
11042 * regmove.c: Likewise.
11043 * reorg.c: Likewise.
11044 * resource.c: Likewise.
11046 * rtlanal.c: Likewise.
11047 * sched-deps.c: Likewise.
11048 * sched-ebb.c: Likewise.
11049 * sched-rgn.c: Likewise.
11050 * sdbout.c: Likewise.
11051 * sel-sched-dump.c: Likewise.
11052 * sel-sched-ir.c: Likewise.
11053 * simplify-rtx.c: Likewise.
11054 * stmt.c: Likewise.
11055 * stor-layout.c: Likewise.
11056 * store-motion.c: Likewise.
11057 * targhooks.c: Likewise.
11058 * tree-cfg.c: Likewise.
11059 * tree-cfgcleanup.c: Likewise.
11060 * tree-dump.c: Likewise.
11061 * tree-eh.c: Likewise.
11062 * tree-inline.c: Likewise.
11063 * tree-nomudflap.c: Likewise.
11064 * tree-object-size.c: Likewise.
11065 * tree-optimize.c: Likewise.
11066 * tree-outof-ssa.c: Likewise.
11067 * tree-phinodes.c: Likewise.
11068 * tree-profile.c: Likewise.
11069 * tree-ssa-ccp.c: Likewise.
11070 * tree-ssa-coalesce.c: Likewise.
11071 * tree-ssa-live.c: Likewise.
11072 * tree-ssa-loop-niter.c: Likewise.
11073 * tree-ssa-loop-prefetch.c: Likewise.
11074 * tree-ssa-loop.c: Likewise.
11075 * tree-ssa-structalias.c: Likewise.
11076 * tree-ssa-uninit.c: Likewise.
11077 * tree-ssa.c: Likewise.
11078 * tree-vect-data-refs.c: Likewise.
11079 * tree-vect-loop-manip.c: Likewise.
11080 * tree-vect-loop.c: Likewise.
11081 * tree-vect-patterns.c: Likewise.
11082 * tree-vect-stmts.c: Likewise.
11083 * tree-vrp.c: Likewise.
11084 * varasm.c: Likewise.
11087 * xcoffout.c: Likewise.
11089 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
11091 * gengtype.c (write_field_root): New function.
11092 (write_root): Use it.
11094 2010-07-07 Wei Guozhi <carrot@google.com>
11096 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
11097 of lowest bits to lshift/compare): Add a missing line.
11099 2010-07-07 Wei Guozhi <carrot@google.com>
11101 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
11102 of lowest bits to lshift/compare): New.
11104 2010-07-07 Tom Tromey <tromey@redhat.com>
11106 * doc/tm.texi: Update.
11107 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
11109 * target.def (want_debug_pub_sections): New hook.
11110 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
11111 * dwarf2out.c (add_pubname_string): Check
11112 targetm.want_debug_pub_sections.
11113 (add_pubname): Likewise.
11114 (add_pubtype): Likewise.
11116 2010-07-07 Jie Zhang <jie@codesourcery.com>
11118 * genautomata.c (output_automata_list_min_issue_delay_code):
11119 Correctly decompress min_issue_delay.
11121 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
11123 PR rtl-optimization/44404
11124 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
11125 possible, use reg_overlap_mentioned_p instead.
11127 2010-07-07 Duncan Sands <baldrick@free.fr>
11129 PR middle-end/41355
11130 * tree.c (build_function_type_skip_args): Copy the original type using
11131 build_distinct_type_copy rather than copy_node.
11133 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
11136 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
11138 (ix86_expand_prologue): Likewise.
11139 (ix86_handle_fndecl_attribute): Likewise.
11140 (ix86_asm_declare_function_name): Likewise.
11141 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11142 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11143 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
11144 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
11145 * doc/extend.texi: Likewise.
11147 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
11150 * config/i386/i386.md (rdrand<mode>): Changed to expand to
11151 retry if the carry flag isn't valid.
11152 (rdrand<mode>_1): New.
11154 2010-07-07 Richard Guenther <rguenther@suse.de>
11156 PR middle-end/44790
11157 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
11158 for expanding the constant offset for MEM_REFs.
11160 2010-07-07 Richard Guenther <rguenther@suse.de>
11162 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
11163 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
11164 * gimple.h (is_gimple_operand): Remove.
11165 * gimple.c (is_gimple_operand): Likewise.
11166 (walk_gimple_op): Fix wi->val_only setting for calls.
11167 * tree-cfg.c (verify_gimple_call): Fix argument validation.
11168 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
11169 invalid gimple calls.
11171 2010-07-06 Jan Hubicka <jh@suse.cz>
11173 * lto-cgraph.c (output_cgraph): Add missing declaration.
11175 2010-07-06 Jan Hubicka <jh@suse.cz>
11177 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
11180 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
11182 * doc/gimple.texi (GIMPLE_DEBUG): Document.
11183 * doc/rtl.texi (Debug Information): New node.
11184 (NOTE_INSN_VAR_LOCATION): Document.
11185 (debug_insn): Likewise.
11186 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
11188 2010-07-07 Jan Hubicka <jh@suse.cz>
11190 With parts by Richard Guenther.
11192 PR middle-end/44813
11193 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
11194 for functions passed by reference.
11195 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
11196 in memory when passed by reference.
11197 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
11199 * ipa-split.c (split_function): Cleanup way return value is passed;
11200 handle SSA DECL_BY_REFERENCE retvals.
11201 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
11202 DECL_BY_REFERENCE is set.
11203 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
11204 find_what_p_points_to): Handle RESULT_DECL.
11205 * tree-inline.c (declare_return_variable): Get new entry_block argument;
11206 when passing by reference ensure that RESULT_DECL is gimple_val.
11207 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
11208 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
11210 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
11212 PR rtl-optimization/44787
11213 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
11214 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
11216 2010-07-06 Jan Hubicka <jh@suse.cz>
11218 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
11219 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
11220 with body can prevail.
11221 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
11222 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
11223 * cgraph.c (cgraph_get_node_or_alias): New function.
11224 * cgraph.h (cgraph_get_node_or_alias): Declare.
11226 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
11228 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
11230 (ix86_expand_prologue): Likewise.
11231 (ix86_handle_fndecl_attribute): Likewise.
11232 (ix86_asm_declare_function_name): New function for
11233 ASM_DECLARE_FUNCTION_NAME.
11234 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
11235 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
11236 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
11237 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
11238 * doc/extend.texi: Adjust documentation about ms_hook_prologue
11241 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
11243 * config/i386/i386.md (immediate_operand): New mode attribute.
11245 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
11246 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
11247 using P mode iterator.
11248 (pro_epilogue_adjust_stack_di_2): Rename from
11249 pro_epilogue_adjust_stack_rex64_2.
11251 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
11253 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
11255 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
11256 through gen_mov_insv_1 function pointer.
11257 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
11258 gen_truncxf<mode>2 through gen_truncxf function pointer.
11259 (remainder<mode>3): Ditto.
11260 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
11261 (allocate_stack): Call gen_allocate_stack_worker_64 or
11262 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
11264 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
11267 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
11269 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
11270 operand constraint instead of <r><i>m.
11272 2010-07-06 Richard Guenther <rguenther@suse.de>
11274 PR middle-end/44828
11275 * convert.c (convert_to_integer): Watch out for overflowing
11278 2010-07-05 Jan Hubicka <jh@suse.cz>
11280 * lto-streamer.c (write_symbol_vec): Rename to ...
11281 (write_symbol) ... this one; write only symbol given and when
11282 present in cache. Sanity check that what is defined is present
11283 in cgraph/varpool with body/finalized decl.
11284 (write_symbols_of_kind): Remove.
11285 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
11286 pairs to produce symtab.
11287 (produce_asm_for_decls): Update call of produce_symtab; don't do so
11288 when doing WPA streaming.
11290 2010-07-05 Jan Hubicka <jh@suse.cz>
11292 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
11293 function is still available to fold into.
11295 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
11297 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
11298 * function.h (struct_function): Change type of local_decls field
11300 (add_local_decl): New function.
11301 (FOR_EACH_LOCAL_DECL): New macro.
11302 * cfgexpand.c (init_vars_expansion): Adjust for new type of
11304 (estimated_stack_frame_size): Likewise.
11305 (expand_used_vars): Likewise.
11306 * cgraphbuild.c (build_cgraph_edges): Likewise.
11307 * function.c (instantiate_decls_1): Likewise.
11308 * ipa-struct-reorg.c (build_data_structure): Likewise.
11309 * ipa-type-escape.c (analyze_function): Likewise.
11310 * lto-streamer-in.c (input_function): Likewise.
11311 * lto-streamer-out.c (output_function): Likewise.
11312 * tree-ssa-live.c (remove_unused_locals): Likewise.
11313 * tree.c (free_lang_data_in_decl): Likewise.
11314 (find_decls_types_in_node): Likewise.
11315 * omp-low.c (remove_exit_barrier): Likewise.
11316 (expand_omp_taskreg): Likewise.
11317 (list2chain): Rename to...
11318 (vec2chain): ...this. Adjust.
11319 * cgraphunit.c (assemble_thunk): Call add_local_decl.
11320 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
11321 * gimple-low.c (record_vars_into): Likewise.
11322 * tree-inline.c (remap_decls): Likewise.
11323 (declare_return_variable): Likewise.
11324 (declare_inline_vars): Likewise.
11325 (copy_forbidden): Adjust for new type of cfun->local_decls.
11326 (add_local_variables): New function.
11327 (expand_call_inline): Call it.
11328 (tree_function_versioning): Likewise.
11330 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
11332 AVX Programming Reference (June, 2010)
11333 * config/i386/cpuid.h (bit_F16C): New.
11334 (bit_RDRND): Likewise.
11335 (bit_FSGSBASE): Likewise.
11337 * config/i386/i386-builtin-types.def: Add
11338 "DEF_FUNCTION_TYPE (UINT16)", function types for
11339 float16 <-> float conversions and
11340 "DEF_FUNCTION_TYPE (VOID, UINT64)".
11342 * config/i386/i386-c.c (ix86_target_macros_internal): Support
11343 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
11344 OPTION_MASK_ISA_F16C.
11346 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
11347 (OPTION_MASK_ISA_RDRND_SET): Likewise.
11348 (OPTION_MASK_ISA_F16C_SET): Likewise.
11349 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
11350 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
11351 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
11352 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
11353 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
11354 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
11355 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
11356 (override_options): Handle them.
11357 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
11358 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
11359 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
11360 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
11361 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
11362 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
11363 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
11364 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
11365 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
11366 (bdesc_args): Likewise.
11367 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
11368 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
11369 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
11370 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
11371 Handle non-memory store.
11373 * config/i386/i386.h (TARGET_FSGSBASE): New.
11374 (TARGET_RDRND): Likewise.
11375 (TARGET_F12C): Likewise.
11377 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
11378 (UNSPEC_VCVTPS2PH): Likewise.
11379 (UNSPECV_RDFSBASE): Likewise.
11380 (UNSPECV_RDGSBASE): Likewise.
11381 (UNSPECV_WRFSBASE): Likewise.
11382 (UNSPECV_WRGSBASE): Likewise.
11383 (UNSPECV_RDRAND): Likewise.
11384 (rdfsbase<mode>): Likewise.
11385 (rdgsbase<mode>): Likewise.
11386 (wrfsbase<mode>): Likewise.
11387 (wrgsbase<mode>): Likewise.
11388 (rdrand<mode>): Likewise.
11390 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
11392 * config/i386/immintrin.h (_rdrand_u16): New.
11393 (_rdrand_u32): Likewise.
11394 (_readfsbase_u32): Likewise.
11395 (_readfsbase_u64): Likewise.
11396 (_readgsbase_u32): Likewise.
11397 (_readgsbase_u64): Likewise.
11398 (_writefsbase_u32): Likewise.
11399 (_writefsbase_u64): Likewise.
11400 (_writegsbase_u32): Likewise.
11401 (_writegsbase_u64): Likewise.
11402 (_rdrand_u64): Likewise.
11403 (_cvtsh_ss): Likewise.
11404 (_mm_cvtph_ps): Likewise.
11405 (_mm256_cvtph_ps): Likewise.
11406 (_cvtss_sh): Likewise.
11407 (_mm_cvtps_ph): Likewise.
11408 (_mm256_cvtps_ph): Likewise.
11410 * config/i386/sse.md (vcvtph2ps): New.
11411 (*vcvtph2ps_load): Likewise.
11412 (vcvtph2ps256): Likewise.
11413 (vcvtps2ph): Likewise.
11414 (*vcvtps2ph): Likewise.
11415 (*vcvtps2ph_store): Likewise.
11416 (vcvtps2ph256): Likewise.
11418 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
11420 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
11422 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
11425 * genenums.c (main): Output include of insn-constants.h
11426 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
11428 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
11430 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
11431 (override_options): Initialize it.
11432 (ix86_expand_prologue): Use it.
11434 2010-07-05 Jakub Jelinek <jakub@redhat.com>
11436 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
11438 2010-07-05 Anatoly Sokolov <aesok@post.ru>
11440 * double-int.h (fit_double_type): Remove declaration.
11441 * double-int.c (fit_double_type): Remove function.
11442 * tree.h (int_fits_type_p): Adjust prototype.
11443 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
11444 instead of fit_double_type.
11445 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
11446 instead of fit_double_type and build_int_cst_wide.
11447 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
11448 instead of fit_double_type and build_int_cst_wide.
11449 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
11450 of fit_double_type.
11452 2010-07-05 Jan Hubicka <jh@suse.cz>
11454 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
11455 in_other_partition.
11456 * lto-cgraph.c (referenced_from_other_partition_p,
11457 reachable_from_other_partition_p): Use in_other_partition flags.
11458 (output_node, output_varpool_node): COMDAT nodes always have private
11459 copies and thus are never used from other partition.
11461 2010-07-05 Anatoly Sokolov <aesok@post.ru>
11463 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
11464 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
11465 * config/ia64/ia64.c Include reload.h.
11466 (ia64_memory_move_cost): New function.
11467 (TARGET_MEMORY_MOVE_COST): Define.
11468 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
11471 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
11473 PR middle-end/42505
11474 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
11475 comments about cost model.
11476 (try_add_cand_for): Add second strategy for choosing initial set
11477 based on original IVs, controlled by ORIGINALP argument.
11478 (get_initial_solution): Add ORIGINALP argument.
11479 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
11480 (find_optimal_iv_set): Try two different strategies for choosing
11481 the IV set, and return the one with lower cost.
11483 2010-07-05 Richard Guenther <rguenther@suse.de>
11485 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
11487 2010-07-05 Richard Guenther <rguenther@suse.de>
11489 * tree.c (reference_alias_ptr_type): New function.
11490 * tree.h (reference_alias_ptr_type): Declare.
11491 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
11492 allow non-TARGET_MEM_REF new refs.
11493 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
11494 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
11495 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
11496 (create_mem_ref): Get alias pointer type. Adjust calls to
11497 create_mem_ref_raw.
11498 (maybe_fold_tmr): Likewise.
11499 * tree-flow.h (create_mem_ref): Adjust prototype.
11501 2010-07-05 Jakub Jelinek <jakub@redhat.com>
11504 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
11505 *from_p is VAR_DECL.
11507 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
11509 * tree.h (build_call_list): Remove.
11510 * tree.c (build_call_list): Remove.
11512 2010-07-05 Richard Guenther <rguenther@suse.de>
11514 * double-int.h (double_int_sub): Declare.
11515 * double-int.c (double_int_sub): New function.
11516 * dwarf2out.c (field_byte_offset): Use it.
11517 * fixed-value.c (do_fixed_add): Likewise.
11518 (do_fixed_multiply): Likewise.
11519 (do_fixed_divide): Likewise.
11520 * tree-predcom.c (add_ref_to_chain): Likewise.
11521 (determine_roots_comp): Likewise.
11522 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
11524 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
11526 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
11529 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
11531 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
11532 * arm-modes.def (CC_NOTB): Don't define.
11533 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
11534 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
11535 (LTUGEU): New code_iterator.
11536 (cnb, optab): New corresponding code_attrs.
11537 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
11538 to canonical form. Operands 1 and 2 are commutative. Parametrize
11540 (addsi3_carryin_shift_<optab>): Likewise.
11541 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
11542 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
11543 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
11544 (subsi3_compare): Renamed from subsi3_compare0_c.
11545 Change CC_NOTB to CC.
11546 (arm_subsi3_insn): Allow constants for operand 0.
11547 (compare_scc peephole for eq case): New.
11548 (compare_scc splitters): Change CC_NOTB to CC.
11550 2010-07-05 Richard Guenther <rguenther@suse.de>
11552 * tree-ssa-loop-im.c (for_each_index): Do not handle
11553 ALIGN_INDIRECT_REF.
11554 (gen_lsm_tmp_name): Likewise.
11555 * tree-dump.c (dequeue_and_dump): Likewise.
11556 * tree-pretty-print.c (dump_generic_node): Likewise.
11557 (op_code_prio): Likewise.
11558 (op_symbol_code): Likewise.
11559 * tree.c (staticp): Likewise.
11560 (build1_stat): Likewise.
11561 * tree.h (INDIRECT_REF_P): Likewise.
11562 * fold-const.c (maybe_lvalue_p): Likewise.
11563 (operand_equal_p): Likewise.
11564 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
11565 (ao_ref_init_from_vn_reference): Likewise.
11566 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
11567 (find_interesting_uses_address): Likewise.
11568 * dwarf2out.c (loc_list_from_tree): Likewise.
11569 * gimplify.c (gimplify_expr): Likewise.
11570 * tree-eh.c (tree_could_trap_p): Likewise.
11571 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
11572 * cfgexpand.c (expand_debug_expr): Likewise.
11573 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
11574 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
11575 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
11576 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
11577 * tree-ssa-operands.c (get_expr_operands): Likewise.
11578 * expr.c (safe_from_p): Likewise.
11579 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
11580 * tree-vect-data-refs.c (vect_setup_realignment): Build
11581 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
11582 * tree-vect-stmts.c (vectorizable_load): Likewise.
11583 * tree.def (ALIGN_INDIRECT_REF): Remove.
11585 2010-07-05 Richard Guenther <rguenther@suse.de>
11587 PR tree-optimization/44784
11588 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
11589 for inserted stmts.
11590 (find_or_generate_expression): Fix SCCVN insertion check.
11592 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
11594 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
11595 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
11596 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
11599 2010-07-05 Ira Rosen <irar@il.ibm.com>
11601 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
11602 statements that are not vectorized.
11603 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
11606 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
11609 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
11611 2010-07-05 Richard Guenther <rguenther@suse.de>
11613 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
11614 RESULT_DECLs properly.
11616 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
11618 PR rtl-optimization/44695
11619 * config/i386/i386.md (extract_code): Removed.
11620 (<u>divmodqi4): Likewise.
11622 (udivmodqi4): Likewise.
11623 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
11624 (udivmodhiqi3): Likewise.
11626 2010-07-04 Jan Hubicka <jh@suse.cz>
11628 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
11630 2010-07-04 Jan Hubicka <jh@suse.cz>
11632 * cgraphunit.c (init_cgraph): Only initialize dump file if it
11633 is not already initialized.
11635 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
11637 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
11638 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
11639 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
11640 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
11641 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
11642 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
11643 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
11644 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
11645 (sync_new_nand_optab): Redefine as macros.
11646 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
11648 (direct_optab_index): New enum.
11649 (direct_optab_d): New structure.
11650 (direct_optab): New typedef.
11651 (direct_optab_table): Declare.
11652 (direct_optab_handler, set_direct_optab_handler): New functions.
11653 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
11654 (sync_lock_release_optab): New macros.
11655 * optabs.c (direct_optab_table): New variable.
11656 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
11657 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
11658 cmpstr_optab and cmpstrn_optab.
11659 (emit_conditional_move): Likewise for movcc_optab.
11660 (can_conditionally_move_p): Likewise for movcc_gen_code.
11661 (init_insn_codes): Clear direct_optab_table.
11662 (init_optabs): Don't initialize the new "direct optabs" here.
11663 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
11665 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
11666 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
11667 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
11668 (expand_sync_operation): Likewise other sync_*_optabs.
11669 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
11670 to sync_compare_and_swap_optab.
11671 (expand_sync_lock_test_and_set): Use direct_optab_handler for
11672 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
11673 to the names of both.
11674 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
11675 cmpstr_optab and cmpstrn_optab.
11676 (expand_builtin_lock_release): Likewise sync_lock_release.
11677 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
11678 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
11679 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
11680 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
11681 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
11682 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
11683 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
11684 (sync_lock_test_and_set, sync_lock_release): Delete.
11685 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
11686 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
11687 * genopinit.c (optabs): Use set_direct_optab_handler for the new
11689 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
11690 the "optab" local variable. Use direct_optab_handler for optab and
11691 sync_compare_and_swap_optab.
11692 * reload1.c (reload_in_optab, reload_out_optab): Delete.
11693 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
11694 reload_in_optab and reload_out_optab.
11695 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
11696 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
11697 * config/pa/pa.c (pa_secondary_reload): Likewise.
11698 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
11699 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
11700 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
11701 (VMSupportsCS8_builtin): Likewise.
11703 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
11705 * optabs.h (optab_handlers): Change type of insn_code to int.
11706 (optab_handler, set_optab_handler, convert_optab_handler)
11707 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
11709 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
11710 (init_insn_codes): Zero both the above arrays.
11711 (init_optabs): Never call init_insn_codes first time around.
11713 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
11715 * optabs.h (optab_handler, convert_optab_handler): Turn into
11716 inline functions that return an insn code.
11717 (set_optab_handler, set_convert_optab_handler): New functions.
11718 * builtins.c: Replace optab_handler(X)->insn_code with
11719 optab_handler or set_optab_handler thoughout. Likewise
11720 convert_optab_handler(X)->insn_code with convert_optab_handler
11721 and set_convert_optab_handler.
11722 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
11723 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
11724 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
11725 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
11726 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
11727 config/spu/spu.c: Likewise.
11729 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
11732 * config.gcc (sh*-*-*): Use regular expressions instead of
11733 the 'i' modifier for sed substitutions.
11735 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
11737 * gimple.c (gimple_body): Comments added.
11739 2010-07-04 Richard Guenther <rguenther@suse.de>
11741 PR middle-end/44809
11742 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
11743 of an INDIRECT_REF.
11745 2010-07-04 Richard Guenther <rguenther@suse.de>
11747 PR tree-optimization/44479
11748 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
11749 extra SSA name copy statements which preserves points-to
11751 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
11752 Copy points-to information for all pointers. Properly handle
11754 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
11756 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
11759 2010-07-04 Richard Guenther <rguenther@suse.de>
11761 PR middle-end/44785
11762 * tree-inline.c (initialize_inlined_parameters): Do not
11763 re-use pointer-map slot over remap_type call.
11765 2010-07-04 Richard Guenther <rguenther@suse.de>
11767 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
11769 2010-07-04 Richard Guenther <rguenther@suse.de>
11771 PR tree-optimization/44656
11772 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
11773 again after value-replacing in the defintions lhs.
11775 2010-07-04 Ira Rosen <irar@il.ibm.com>
11776 Revital Eres <eres@il.ibm.com>
11778 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
11779 Document new arguments.
11780 * doc/tm.texi: Regenerate.
11781 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
11782 Handle unaligned store.
11783 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
11784 * target.def (builtin_vectorization_cost): Add new arguments.
11785 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
11786 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
11787 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
11788 (vect_vfa_segment_size): Fix indentation.
11789 * tree-vectorizer.h (struct _vect_peel_info): New.
11790 (struct _vect_peel_extended_info): New.
11791 (struct _loop_vec_info): Add new field for peeling hash table and a
11792 macro for its access.
11793 (VECT_MAX_COST): Define.
11794 (vect_get_load_cost): Declare.
11795 (vect_get_store_cost, vect_get_known_peeling_cost,
11796 vect_get_single_scalar_iteraion_cost): Likewise.
11797 (vect_supportable_dr_alignment): Add new argument.
11798 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
11800 (destroy_loop_vec_info): Free peeling hash table.
11801 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
11802 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
11803 vect_analyze_slp. Fix indentation.
11804 (vect_get_single_scalar_iteraion_cost): New function.
11805 (vect_get_known_peeling_cost): Likewise.
11806 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
11807 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
11808 statement. Move outside cost calculation inside unknown peeling case.
11809 Call vect_get_known_peeling_cost for known amount of peeling.
11810 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
11811 reference to the print message of forced alignment.
11812 (vect_verify_datarefs_alignment): Update call to
11813 vect_supportable_dr_alignment.
11814 (vect_get_data_access_cost): New function.
11815 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
11816 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
11817 vect_peeling_hash_choose_best_peeling): Likewise.
11818 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
11819 to store all the accesses in the loop and find best possible access to
11820 align using peeling for known alignment case. For unknown alignment
11821 check if stores are preferred or if peeling is worthy.
11822 (vect_find_same_alignment_drs): Analyze pairs of loads too.
11823 (vect_supportable_dr_alignment): Add new argument and check aligned
11824 accesses according to it.
11825 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
11826 (cost_for_stmt): Call vect_get_stmt_cost.
11827 (vect_model_simple_cost): Likewise.
11828 (vect_model_store_cost): Call vect_get_stmt_cost. Call
11829 vect_get_store_cost to calculate the cost of the statement.
11830 (vect_get_store_cost): New function.
11831 (vect_model_load_cost): Call vect_get_stmt_cost. Call
11832 vect_get_load_cost to calculate the cost of the statement.
11833 (vect_get_load_cost): New function.
11834 (vectorizable_store): Update call to vect_supportable_dr_alignment.
11835 (vectorizable_load): Likewise.
11836 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
11837 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
11838 arguments. Handle unaligned store.
11839 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
11840 (rs6000_builtin_support_vector_misalignment): Return true for word and
11841 double word alignments for VSX.
11842 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
11843 vect_supportable_dr_alignment and builtin_vectorization_cost.
11845 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11848 * config/pa/predicates.md (prefetch_cc_operand): Remove.
11849 (prefetch_nocc_operand): Likewise.
11850 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
11851 (prefetch_20): New insn.
11852 (prefetch_cc): Remove.
11853 (prefetch_nocc): Likewise.
11855 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
11857 * expr.c (vector_mode_valid_p): Move to c-common.c.
11858 * expr.h (vector_mode_valid_p): Do not declare here.
11859 * system.h: Poison GCC_EXPR_H in front-ends.
11860 * Makefile.in: Update dependencies.
11862 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11865 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
11867 2010-07-03 Jan Hubicka <jh@suse.cz>
11869 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
11870 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
11871 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
11872 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
11875 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
11877 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
11878 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
11879 TV_IPA_LTO_DECL_OUT): New.
11880 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
11882 2010-07-03 Jan Hubicka <jh@suse.cz>
11884 * ipa-inline.c (update_edge_key): Break out from ...
11885 update_callers_keys): ... here;
11886 (update_callee_keys): Update only the edges from caller to callee.
11887 (update_all_calle_keys): Do what update_calle_keys did.
11888 (decide_inlining_of_small_functions): Avoid recomputing of all
11889 callees when badness increase.
11891 2010-07-03 Jie Zhang <jie@codesourcery.com>
11893 * config/arm/arm.c (arm_attr_length_move_neon): New.
11894 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
11895 * config/arm/neon.md (define_mode_attr V_slen): Remove.
11896 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
11897 to compute length attribute.
11899 2010-07-03 Jie Zhang <jie@codesourcery.com>
11901 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
11902 as predicate for operand 1 and remove its constraint.
11903 * config/arm/predicates.md (vfp_register_operand): New.
11904 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
11905 (*push_fp_multi): Likewise.
11907 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
11909 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
11911 2010-07-03 Jan Hubicka <jh@suse.cz>
11913 * config/i386/i386.c (override_options): Revert accidental commit.
11915 2010-07-02 Le-Chun Wu <lcwu@google.com>
11918 * doc/invoke.texi: Update documentation of -Wshadow.
11920 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
11921 Julian Brown <julian@codesourcery.com>
11922 Sandra Loosemore <sandra@codesourcery.com>
11924 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
11925 comparisons. Adjust to take both operands.
11926 (arm_select_cc_mode): Handle DImode comparisons.
11927 (arm_gen_compare_reg): Generate a scratch register for DImode
11928 comparisons which require one. Use xor for Thumb equality checks.
11929 (arm_const_double_by_immediates): New.
11930 (arm_print_operand): Allow 'Q' and 'R' for constants.
11931 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
11932 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
11933 arm_canonicalize_comparison.
11934 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
11935 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
11937 (arm_const_double_by_immediates): Declare.
11938 * config/arm/constraints.md (Di): New constraint.
11939 * config/arm/predicates.md (arm_immediate_di_operand)
11940 (arm_di_operand, cmpdi_operand): New.
11941 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
11942 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
11943 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
11944 (cstoredi4): Handle non-Cirrus also.
11946 2010-07-02 Julian Brown <julian@codesourcery.com>
11947 Sandra Loosemore <sandra@codesourcery.com>
11950 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
11951 (smax<mode>3): Disable for NEON float modes when
11952 flag_unsafe_math_optimizations is false.
11953 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
11955 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
11956 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
11957 for NEON float modes when flag_unsafe_math_optimizations is false.
11958 (quad_halves_<code>v4sf): Only enable if
11959 flag_unsafe_math_optimizations is true.
11960 * doc/invoke.texi (ARM Options): Add note about floating point
11961 vectorization requiring -funsafe-math-optimizations.
11963 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
11964 Julian Brown <julian@codesourcery.com>
11966 * config/arm/neon.md (UNSPEC_VABA): Delete.
11967 (UNSPEC_VABAL): Delete.
11968 (UNSPEC_VABS): Delete.
11969 (UNSPEC_VMUL_N): Delete.
11970 (adddi3_neon): New.
11971 (subdi3_neon): New.
11972 (mul<mode>3add<mode>_neon): Make the pattern named.
11973 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
11974 (neon_vadd<mode>): Replace with define_expand, and move the remaining
11976 (neon_vadd<mode>_unspec): ...to this.
11977 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
11978 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
11979 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
11980 (neon_vaba<mode>): Rewrite in terms of vabd.
11981 (neon_vabal<mode>): Rewrite in terms of vabdl.
11982 (neon_vabs<mode>): Rewrite without unspec.
11983 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
11984 (*arm_subdi3): Likewise.
11985 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
11986 No_op attribute to disable assembly output checks.
11987 * config/arm/arm_neon.h: Regenerated.
11988 * doc/arm-neon-intrinsics.texi: Regenerated.
11990 2010-07-02 Jan Hubicka <jh@suse.cz>
11992 * ipa-split.c (split_function): For aggregate values, set the return
11993 slot optimization bit. When passing DECL_BY_REFERENCE, produce
11994 *<retval> = fncall.part ().
11995 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
11997 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
11999 * config/arm/neon.md (UNSPEC_VAND): Delete.
12000 (UNSPEC_VBIC): Delete.
12001 (UNSPEC_VCLZ): Delete.
12002 (UNSPEC_VCNT): Delete.
12003 (UNSPEC_VEOR): Delete.
12004 (UNSPEC_VORN): Delete.
12005 (UNSPEC_VORR): Delete.
12006 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
12007 core registers too.
12008 (anddi3_neon): Likewise.
12009 (orndi3_neon): Likewise.
12010 (bicdi3_neon): Likewise.
12011 (xordi3_neon): Likewise.
12012 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
12013 rid of unspec and handle unused operand.
12014 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
12015 * config/arm/predicates.md (imm_for_neon_logic_operand):
12016 Require TARGET_NEON.
12017 (imm_for_neon_inv_logic_operand): Likewise.
12018 * config/arm/arm.md (define_split for logical_binary_operator):
12019 Disable for NEON registers.
12020 (anddi3): Add new define_expand, and rename the insn. Disable
12021 this insn for NEON, where anddi3_neon now applies.
12022 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
12023 (iordi3): As for anddi3.
12024 (xordi3): Likewise.
12025 * config/arm/neon.ml (Vand): Split DImode variants and mark them
12026 as No_op to disable testing for exact instruction match.
12031 * config/arm/arm_neon.h: Regenerated.
12032 * doc/arm-neon-intrinsics.texi: Regenerated.
12034 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
12036 * expr.h (emit_stack_probe): Declare.
12037 * explow.c (emit_stack_probe): Make global.
12038 (anti_adjust_stack_and_probe): Fix comments.
12039 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
12040 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
12041 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
12042 * config/sparc/sparc.c: Include except.h.
12043 (sparc_emit_probe_stack_range): New function.
12044 (output_probe_stack_range): Likewise.
12045 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
12046 built-in stack checking is enabled.
12047 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
12048 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
12049 (probe_stack_range): New insn.
12051 2010-07-02 Richard Guenther <rguenther@suse.de>
12054 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
12055 for argument alignment.
12057 2010-07-02 Jan Hubicka <jh@suse.cz>
12059 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
12060 walk backwards from entry_bb to check only those basic block of header
12061 that might lead to execution of split part.
12062 (consider_split) ... here.
12063 (find_return_bb): Allow assignment in return BB.
12064 (find_retval): New.
12065 (split_function): Fix name of cloned function; take care of updating
12066 return value in return_bb containing move.
12068 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
12071 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
12072 used variable insn.
12074 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
12076 * implicit-zee.c (combine_reaching_defs): Fix long lines.
12077 (is_set_with_extension_DI): Delete.
12078 (struct zero_extend_info): New structure.
12079 (add_removable_zero_extend): New function.
12080 (find_removable_zero_extends): Use note_stores to find SETs.
12081 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
12083 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
12085 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
12086 is_miss_rate_acceptable. Pull total_positions computation
12087 out of the loops. Early return if miss_positions exceeds
12088 the acceptable threshold.
12089 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
12090 is_miss_rate_acceptable after renaming of compute_miss_rate.
12092 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
12094 PR middle-end/44576
12095 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
12096 of 1000) for miss rate if the address diference is greater than or
12097 equal to the cache line size (the two reference will never hit the
12100 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
12103 * config/arm/arm-modes.def (CC_NOTB): New mode.
12104 * config/arm/arm.c (get_arm_condition_code): Handle it.
12105 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
12106 * config/arm/arm.md (subsi3_compare0_c): New pattern.
12107 (compare_scc): Now a define_and_split. Add a number of extra
12108 splitters before it.
12111 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
12113 (arm_rtx_costs_1): Likewise.
12114 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
12115 * config/arm/arm.md (is_arch6): New attribute.
12116 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
12117 extendqisi2): Tighten the code somewhat, avoiding invalid
12118 RTL to occur in the expander patterns.
12119 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
12120 (thumb1_zero_extendhisi2_v6): Delete.
12121 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
12122 (thumb1_extendhisi2_v6): Delete.
12123 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
12124 (thumb1_extendqisi2_v6): Delete.
12125 (zero_extendhisi2 for register input splitter): New.
12126 (zero_extendqisi2 for register input splitter): New.
12127 (thumb1_extendhisi2 for register input splitter): New.
12128 (extendhisi2 for register input splitter): New.
12129 (extendqisi2 for register input splitter): New.
12130 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
12131 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
12132 and add support for a register alternative requiring a split.
12133 (thumb1_zero_extendqisi2): Likewise.
12134 (arm_zero_extendqisi2): Likewise.
12135 (arm_extendhisi2): Likewise.
12136 (arm_extendqisi2): Likewise.
12138 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
12140 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
12141 instead of an unspec.
12142 (neon_expand_vector_init): Likewise.
12143 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
12144 (UNSPEC_VDUP_LANE): Delete.
12145 (UNSPEC VDUP_N): Delete.
12146 (UNSPEC_VGET_HIGH): Delete.
12147 (UNSPEC_VGET_LANE): Delete.
12148 (UNSPEC_VGET_LOW): Delete.
12149 (UNSPEC_VMVN): Delete.
12150 (UNSPEC_VSET_LANE): Delete.
12151 (V_double_vector_mode): New.
12152 (vec_set<mode>_internal): Make code emitted match that for the
12153 corresponding intrinsics.
12154 (vec_setv2di_internal): Likewise.
12155 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
12156 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
12157 (neon_vset_lane<mode>): Combine double and quad patterns and
12158 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
12159 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
12160 (neon_vdup_n<mode>): Rewrite RTL without unspec.
12161 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
12162 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
12163 with neon_vdup_lanev2di, adjusting the pattern from the latter
12164 to be predicable for consistency.
12165 (neon_vdup_lane<mode>_internal): New.
12166 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
12167 to avoid using an unspec.
12168 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
12169 (neon_vdup_lanev2di): Turn into a define_expand.
12170 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
12171 (neon_vget_high<mode>): Replace with....
12172 (neon_vget_highv16qi): New pattern using canonical RTL.
12173 (neon_vget_highv8hi): Likewise.
12174 (neon_vget_highv4si): Likewise.
12175 (neon_vget_highv4sf): Likewise.
12176 (neon_vget_highv2di): Likewise.
12177 (neon_vget_low<mode>): Replace with....
12178 (neon_vget_lowv16qi): New pattern using canonical RTL.
12179 (neon_vget_lowv8hi): Likewise.
12180 (neon_vget_lowv4si): Likewise.
12181 (neon_vget_lowv4sf): Likewise.
12182 (neon_vget_lowv2di): Likewise.
12184 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
12185 test for this emitting vmov.
12186 (Vset_lane): Likewise.
12187 (Vdup_n): Likewise.
12188 (Vmov_n): Likewise.
12190 * doc/arm-neon-intrinsics.texi: Regenerated.
12192 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
12194 * config/arm/neon.md (vec_extractv2di): Correct error in register
12195 numbering to reconcile with neon_vget_lanev2di.
12197 2010-07-02 Richard Guenther <rguenther@suse.de>
12199 * tree-ssa-structalias.c (pt_solution_set_var): New function.
12200 * tree-ssa-alias.h (pt_solution_set_var): Declare.
12201 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
12202 points-to information.
12204 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
12206 * config/s390/s390.c (override_options): Adopt prefetching
12207 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
12209 2010-07-02 Jan Hubicka <jh@suse.cz>
12211 * df-problems.c (df_kill_notes): Do not collect dead notes.
12212 (df_set_note): Just call add_reg_note.
12213 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
12214 df_create_unused_note): Do not deal with lists of old notes.
12215 (df_note_bb_compute): Likewise.
12217 2010-07-02 Richard Guenther <rguenther@suse.de>
12219 * tree-ssa-structalias.c (find_func_aliases): Handle
12220 pointer alignment via BIT_AND_EXPR.
12221 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
12223 2010-07-02 Richard Guenther <rguenther@suse.de>
12225 * tree-data-ref.c (initialize_data_dependence_relation): Handle
12226 mismatching number of dimensions properly.
12228 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12231 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
12232 (lo_sum (high ...) ...) patterns generated by earlier passes.
12234 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12236 * doc/install.texi (Prerequisites): Document Perl requirement on
12238 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
12240 2010-07-02 Richard Guenther <rguenther@suse.de>
12242 PR middle-end/44777
12243 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
12245 2010-07-02 Jan Hubicka <jh@suse.cz>
12247 PR middle-end/44706
12248 * predict.c (predict_paths_for_bb): Handle case when control dependence
12249 BB has only abnormal edges.
12251 2010-07-02 Richard Guenther <rguenther@suse.de>
12253 PR tree-optimization/44748
12254 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
12255 the embedded conversion in MEM_REFs.
12257 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
12259 * reload.c: Include toplev.h.
12260 * recog.c: Likewise.
12261 * Makefile.in: Adjust dependencies.
12263 2010-07-01 Jakub Jelinek <jakub@redhat.com>
12266 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
12267 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
12269 2010-07-01 Richard Guenther <rguenther@suse.de>
12271 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
12274 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
12277 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
12278 Fix argument types.
12280 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
12283 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
12284 Make sure operand 0 dies.
12286 2010-07-01 Richard Guenther <rguenther@suse.de>
12288 PR middle-end/42834
12289 PR middle-end/44468
12290 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
12291 * doc/generic.texi (References to storage): Document MEM_REF.
12292 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
12293 (print_call_name): Likewise.
12294 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
12295 (build_simple_mem_ref_loc): New function.
12296 (mem_ref_offset): Likewise.
12297 * tree.h (build_simple_mem_ref_loc): Declare.
12298 (build_simple_mem_ref): Define.
12299 (mem_ref_offset): Declare.
12300 * fold-const.c: Include tree-flow.h.
12301 (operand_equal_p): Handle MEM_REF.
12302 (build_fold_addr_expr_with_type_loc): Likewise.
12303 (fold_comparison): Likewise.
12304 (fold_unary_loc): Fold
12305 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
12306 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
12307 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
12308 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
12309 (ptr_deref_may_alias_ref_p_1): Likewise.
12310 (ao_ref_base_alias_set): Properly differentiate base object for
12312 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
12313 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
12314 (indirect_refs_may_alias_p): Likewise.
12315 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
12317 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
12318 (call_may_clobber_ref_p_1): Likewise.
12319 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
12320 * expr.c (expand_assignment): Handle MEM_REF.
12321 (store_expr): Handle MEM_REFs from STRING_CSTs.
12322 (store_field): If expanding a MEM_REF of a non-addressable
12323 decl use bitfield operations.
12324 (get_inner_reference): Handle MEM_REF.
12325 (expand_expr_addr_expr_1): Likewise.
12326 (expand_expr_real_1): Likewise.
12327 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
12328 * alias.c (ao_ref_from_mem): Handle MEM_REF.
12329 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
12330 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
12331 (dr_analyze_indices): Likewise.
12332 (dr_analyze_alias): Likewise.
12333 (object_address_invariant_in_loop_p): Likewise.
12334 * gimplify.c (mark_addressable): Handle MEM_REF.
12335 (gimplify_cond_expr): Build MEM_REFs.
12336 (gimplify_modify_expr_to_memcpy): Likewise.
12337 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
12338 (gimple_fold_indirect_ref): Adjust.
12339 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
12340 * tree.def (MEM_REF): New tree code.
12341 * tree-dfa.c: Include toplev.h.
12342 (get_ref_base_and_extent): Handle MEM_REF.
12343 (get_addr_base_and_unit_offset): New function.
12344 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
12345 * gimple-fold.c (may_propagate_address_into_dereference): Handle
12347 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
12348 accesses if the array has just one dimension. Remove always true
12349 parameter. Do not require type compatibility here.
12350 (maybe_fold_offset_to_component_ref): Remove.
12351 (maybe_fold_stmt_indirect): Remove.
12352 (maybe_fold_reference): Remove INDIRECT_REF handling.
12353 Fold back to non-MEM_REF.
12354 (maybe_fold_offset_to_address): Simplify. Deal with type
12356 (maybe_fold_reference): Likewise.
12357 (maybe_fold_stmt_addition): Likewise. Also handle
12358 &ARRAY + I in addition to &ARRAY[0] + I.
12359 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
12360 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
12361 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
12362 * tree-ssa.c (useless_type_conversion_p): Make most pointer
12363 conversions useless.
12364 (warn_uninitialized_var): Handle MEM_REF.
12365 (maybe_rewrite_mem_ref_base): New function.
12366 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
12368 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
12369 INDIRECT_REF handling.
12370 (copy_tree_body_r): Handle MEM_REF.
12371 * gimple.c (is_gimple_addressable): Adjust.
12372 (is_gimple_address): Likewise.
12373 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
12374 invariant base are invariant.
12375 (is_gimple_min_lval): Adjust.
12376 (is_gimple_mem_ref_addr): New function.
12377 (get_base_address): Handle MEM_REF.
12378 (count_ptr_derefs): Likewise.
12379 (get_base_loadstore): Likewise.
12380 * gimple.h (is_gimple_mem_ref_addr): Declare.
12381 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
12382 * tree-cfg.c (verify_address): New function, split out from ...
12383 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
12384 the address operand of MEM_REFs. Verify MEM_REFs. Reject
12386 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
12387 INDIRECT_REF. Allow conversions.
12388 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
12389 a register does not change its size.
12390 (verify_types_in_gimple_reference): Verify MEM_REF.
12391 (verify_gimple_assign_single): Disallow INDIRECT_REF.
12393 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
12395 (mark_address_taken): Handle MEM_REF.
12396 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
12397 (get_asm_expr_operands): Pass opf_not_non_addressable.
12398 (get_expr_operands): Handle opf_[not_]non_addressable.
12399 Handle MEM_REF. Remove INDIRECT_REF handling.
12400 * tree-vrp.c (check_array_ref): Handle MEM_REF.
12401 (search_for_addr_array): Likewise.
12402 (check_array_bounds): Likewise.
12403 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
12404 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
12405 (ref_always_accessed_p): Likewise.
12406 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
12407 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
12409 * cgraphbuild.c (mark_load): Properly check for NULL result
12410 from get_base_address.
12411 (mark_store): Likewise.
12412 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
12413 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
12414 handling for MEM_REF.
12415 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
12416 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
12417 * builtins.c (stabilize_va_list_loc): Use the function ABI
12418 valist type if we couldn't canonicalize the argument type.
12419 Always dereference with the canonical va-list type.
12420 (maybe_emit_free_warning): Handle MEM_REF.
12421 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
12423 * builtins.c (fold_builtin_memory_op): Use ref-all types
12424 for all memcpy foldings.
12425 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
12426 (build_outer_var_ref): Likewise.
12427 (scan_omp_1_op): Likewise.
12428 (lower_rec_input_clauses): Likewise.
12429 (lower_lastprivate_clauses): Likewise.
12430 (lower_reduction_clauses): Likewise.
12431 (lower_copyprivate_clauses): Likewise.
12432 (expand_omp_atomic_pipeline): Likewise.
12433 (expand_omp_atomic_mutex): Likewise.
12434 (create_task_copyfn): Likewise.
12435 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
12436 Remove old union trick. Initialize constant offsets.
12437 (ao_ref_init_from_vn_reference): Likewise. Do not handle
12438 INDIRECT_REF. Init base_alias_set properly.
12439 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
12440 (vn_reference_fold_indirect): Adjust for MEM_REFs.
12441 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
12443 (may_insert): Remove.
12444 (visit_reference_op_load): Do not test may_insert.
12445 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
12446 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
12447 a field to store the constant offset this op applies.
12448 (run_scc_vn): Adjust prototype.
12449 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
12450 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
12451 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
12452 bother about volatile qualifiers on pointers.
12453 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
12454 * tree-ssa-loop-ivopts.c
12455 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
12456 (strip_offset_1): Likewise.
12457 (find_interesting_uses_address): Replace INDIRECT_REF handling with
12459 (get_computation_cost_at): Likewise.
12460 * ipa-pure-const.c (check_op): Handle MEM_REF.
12461 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
12462 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
12464 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
12465 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
12466 (eliminate_local_variables_1): Likewise.
12467 (create_call_for_reduction_1): Likewise.
12468 (create_loads_for_reductions): Likewise.
12469 (create_loads_and_stores_for_name): Likewise.
12470 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
12471 (ssa_accessed_in_tree): Handle MEM_REF.
12472 (ssa_accessed_in_assign_rhs): Likewise.
12473 (update_type_size): Likewise.
12474 (analyze_accesses_for_call_stmt): Likewise.
12475 (analyze_accesses_for_assign_stmt): Likewise.
12476 (transform_access_sites): Likewise.
12477 (transform_allocation_sites): Likewise.
12478 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
12479 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
12480 not handle INDIRECT_REF.
12481 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
12482 (cond_store_replacement): Likewise.
12483 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
12484 MEM_REF, no not handle INDIRECT_REFs.
12485 (insert_into_preds_of_block): Properly initialize avail.
12486 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
12487 for ARRAY_REFs. Properly handle reference lookups that
12488 require a bit re-interpretation.
12489 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
12490 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
12491 (build_ref_for_offset_1): Remove.
12492 (build_ref_for_offset): Build MEM_REFs.
12493 (gate_intra_sra): Disable for now.
12494 (sra_ipa_modify_expr): Handle MEM_REF.
12495 (ipa_early_sra_gate): Disable for now.
12496 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
12498 (disqualify_base_of_expr): Likewise.
12499 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
12501 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
12502 Use mem_ref_offset. Remove bogus folding.
12503 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
12504 (make_fancy_name_1): Add support for MEM_REF.
12505 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
12506 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
12507 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
12508 (compute_complex_ancestor_jump_func): Likewise.
12509 (ipa_analyze_virtual_call_uses): Likewise.
12510 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
12511 INDIRECT_REF folding with more generalized MEM_REF folding.
12512 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
12513 (forward_propagate_addr_into_variable_array_index): Also handle
12514 &ARRAY + I in addition to &ARRAY[0] + I.
12515 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
12516 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
12517 creates assignments with overlap.
12518 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
12519 (get_frame_field): Likewise.
12520 (get_nonlocal_debug_decl): Likewise.
12521 (convert_nonlocal_reference_op): Likewise.
12522 (struct nesting_info): Add mem_refs pointer-set.
12523 (create_nesting_tree): Allocate it.
12524 (convert_local_reference_op): Insert to be folded mem-refs.
12525 (fold_mem_refs): New function.
12526 (finalize_nesting_tree_1): Perform defered folding of mem-refs
12527 (free_nesting_tree): Free the pointer-set.
12528 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
12529 (vectorizable_load): Likewise.
12530 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
12531 (propagate_with_phi): Likewise.
12532 * tree-object-size.c (addr_object_size): Handle MEM_REFs
12533 instead of INDIRECT_REFs.
12534 (compute_object_offset): Handle MEM_REF.
12535 (plus_stmt_object_size): Handle MEM_REF.
12536 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
12538 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
12539 (symbol_marked_for_renaming): Likewise.
12540 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
12541 (fold-const.o): Add $(TREE_FLOW_H).
12542 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
12543 (find_func_clobbers): Likewise.
12544 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
12545 (decompose_access): Likewise.
12546 (replace_field_acc): Likewise.
12547 (replace_field_access_stmt): Likewise.
12548 (insert_new_var_in_stmt): Likewise.
12549 (get_stmt_accesses): Likewise.
12550 (reorg_structs_drive): Disable.
12551 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
12552 (ix86_canonical_va_list_type): Likewise.
12554 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
12557 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
12558 * target.def (struct gcc_target): Replace enum reg_class with
12559 reg_class_t in hook argument / return types.
12560 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
12561 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
12562 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
12563 * targhooks.h (default_branch_target_register_class): Likewise.
12564 (default_ira_cover_classes, default_secondary_reload): Likewise.
12565 (default_memory_move_cost, default_register_move_cost): Likewise.
12566 * targhooks.c (default_branch_target_register_class): Likewise.
12567 (default_ira_cover_classes, default_secondary_reload): Likewise.
12568 (default_memory_move_cost, default_register_move_cost): Likewise.
12569 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
12570 * bt-load.c (branch_target_load_optimize): Likewise.
12571 * ira.c (setup_cover_and_important_classes): Likewise.
12572 * ira-costs.c (copy_cost): Likewise.
12573 * reload1.c (emit_input_reload_insns): Likewise.
12574 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
12575 * config/frv/frv.c (frv_secondary_reload): Likewise.
12576 * config/s390/s390.c (s390_secondary_reload): Likewise.
12577 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
12578 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
12579 (ix86_register_move_cost): Likewise.
12580 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
12581 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
12582 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
12583 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
12584 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
12585 (rs6000_ira_cover_classes): Likewise.
12586 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
12587 * config/picochip/picochip-protos.h (picochip_secondary_reload):
12589 * config/pa/pa.c (pa_secondary_reload): Likewise.
12590 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
12591 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
12592 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
12593 * doc/tm.texi: Regenerate.
12595 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
12597 PR bootstrrap/44726
12598 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
12600 (build_alias_set_optimal_p): Likewise.
12601 (build_base_obj_set_for_drs): Likewise.
12603 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
12605 * target.def: Remove comment about licensing problems of function
12608 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
12609 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
12610 * doc/tm.texi: Regenerate.
12612 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
12613 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
12615 * target.def (enum_va_list_p): Use DEFHOOK.
12616 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
12617 Rename ptype to ptree.
12618 * doc/tm.texi: Regenerate.
12620 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
12621 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
12622 * doc/tm.texi: Regenerate.
12624 * target.def (memory_move_cost): Use DEFHOOK.
12625 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
12626 Rename regclass AKA class to rclass.
12627 * doc/tm.texi: Regenerate.
12629 * target.def (pragma_parse): Use DEFHOOK.
12630 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
12631 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
12632 * doc/tm.texi: Regenerate.
12634 * target.def (pass_by_reference): Use DEFHOOK.
12635 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
12636 * doc/tm.texi: Regenerate.
12638 * target.def (resolve_overloaded_builtin): Rename params to arglist.
12640 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
12641 * doc/tm.texi: Regenerate.
12643 * target.def (return_pops_args): Use DEFHOOK.
12644 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
12645 Rename stack-size to size.
12646 * doc/tm.texi: Regenerate.
12648 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
12649 last-sched_cycle to last_clock, cur_cycle to clock.
12650 * doc/tm.texi.in: Use @hook.
12651 * doc/tm.texi: Regenerate.
12653 * target.def (print_operand, print_operand_address): Update comment.
12654 (print_operand_punct_valid_p): Likewise.
12656 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
12658 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
12660 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
12661 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
12662 * rtl-error.h: New.
12663 * regrename.c: Do not include toplev.h. Include rtl-error.h.
12664 * rtl-error.c: Likewise.
12665 * reload.c: Likewise.
12666 * recog.c: Likewise.
12667 * sel-sched.c: Likewise.
12668 * function.c: Likewise.
12669 * reg-stack.c: Likewise.
12670 * cfgrtl.c: Likewise.
12671 * reload1.c: Likewise.
12672 * final.c: Include rtl-error.
12673 * Makefile.in: Adjust dependencies.
12675 2010-06-30 Jan Hubicka <jh@suse.cz>
12677 PR middle-end/PR44706
12678 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
12679 to return the value.
12681 2010-06-30 Michael Matz <matz@suse.de>
12684 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
12685 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
12686 a gimple reg, attach the original VDEF to the last store in the
12689 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
12692 * config/darwin.c (darwin_override_options): Use renamed
12693 targetm.asm_out.emit_unwind_label.
12695 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
12697 PR tree-optimization/39799
12698 * tree-inline.c (remap_ssa_name): Initialize variable only if
12699 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
12701 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
12703 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
12705 2010-06-30 Richard Guenther <rguenther@suse.de>
12708 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
12709 against oscillation with reverse peephole2.
12711 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
12714 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
12717 2010-06-30 Nick Clifton <nickc@redhat.com>
12719 * config/rx/rx-modes.def: New file.
12720 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
12721 (CC_REGNUM): Define.
12722 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
12724 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
12725 (SELECT_CC_MODE): Define.
12726 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
12727 (reg:CC CC_REG) instead of (cc0).
12728 (attr "cc"): Delete.
12729 (cbranchsi4): Do not split compare and branch here. Instead move
12731 (cbranchsi4_<code>): ... here. New patterns.
12732 (cmpsi): Call rx-compare_redundant to find out if it is necessary
12733 to emit the compare instruction.
12734 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
12736 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
12737 FIRST_PSEUDO_REGNUM.
12738 (rx_expand_prologue, rx_expand_epilogue): Likewise.
12739 (rx_notice_update_cc): Delete.
12740 (rx_cc_modes_compatible): New function.
12741 (flags_needed_for_conditional): New function.
12742 (flags_from_mode): New function.
12743 (rx_compare_redundant): New function - scans backwards through
12744 insn list to find out if condition flags are already set correctly.
12745 (TARGET_CC_MODES_COMPATIBLE): Define.
12746 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
12748 * config/rx/rx.h (BRANCH_COST): Define.
12749 (REGISTER_MOVE_COST): Define.
12750 * config/rx/predicates (rx_source_operand): Allow all constant types.
12751 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
12752 (tstsi4): New pattern.
12753 * config/rx/rx.c (rx_memory_move_cost): Define.
12754 (TARGET_MEMORY_MOVE_COST): Define.
12756 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
12758 * tree.h (block_may_fallthru): Declare here.
12759 * tree-flow.h (block_may_fallthru): Do not declare here.
12760 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
12762 * Makefile.in (c-typeck.o): Update dependencies.
12764 2010-06-30 Jakub Jelinek <jakub@redhat.com>
12767 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
12768 * cselib.c (cfa_base_preserved_regno): New static variable.
12769 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
12770 of REGNO (cfa_base_preserved_val->locs->loc).
12771 (cselib_preserve_cfa_base_value): Add regno argument, set
12772 cfa_base_preserved_regno to it.
12773 (cselib_invalidate_regno): Allow removal of registers other than
12774 cfa_base_preserved_regno from cfa_base_preserved_val.
12775 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
12776 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
12777 of MEM addresses, if not on LHS.
12778 (reverse_op): Don't add reverse ops for cfa_base_rtx.
12779 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
12781 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
12783 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
12785 (peep2_buf_position): New static function.
12786 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
12787 peephole2_optimize): Use it.
12788 (peep2_attempt, peep2_update_life): New static functions, broken out
12789 of peephole2_optimize.
12790 (peep2_fill_buffer): New static function.
12791 (peephole2_optimize): Change the main loop to try to fill the buffer
12792 with the maximum number of insns before matching them against
12793 peepholes. Use a forward scan. Remove special case for targets with
12794 conditional execution.
12795 * genrecog.c (change_state): Delete dead code.
12796 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
12797 Rewrite so as not to expect the second insn to have had a peephole
12800 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
12802 * genhooks.c (emit_findices): Cast field precision to int.
12803 (emit_documentation): Likewise.
12805 2010-06-29 Jakub Jelinek <jakub@redhat.com>
12807 PR tree-optimization/43801
12808 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
12809 if old_decl was DECL_ONE_ONLY.
12812 * dwarf2out.c (add_accessibility_attribute): New function.
12813 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
12814 instead of adding DW_AT_accessibility manually.
12815 (gen_enumeration_type_die, gen_struct_or_union_type_die,
12816 gen_typedef_die): Use it.
12818 2010-06-29 Douglas B Rupp <rupp@gnat.com>
12820 * vmsdbgout.c (full_name): Just output the file name if not native.
12822 2010-06-29 Douglas B Rupp <rupp@gnat.com>
12824 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
12825 (funcnam_table): New static table.
12826 (funcnum_table): New static table.
12827 (write_rtnbeg): Write value saved in funcnum_table.
12828 (write_rtnend): Write value saved in funcnum_table.
12829 (vmsdbgout_begin_function): Save current function info in
12830 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
12831 (vmsdbgout_finish): Iterate over funcnum_table.
12833 2010-06-29 Douglas B Rupp <rupp@gnat.com>
12835 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
12836 (vmsdbgout_type_decl): Declare
12837 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
12838 (FUNC_EPILOGUE_LABEL): New macro
12839 (vmsdbgout_begin_epilogue): New function.
12840 (vmsdbgout_type_decl): New function.
12842 2010-06-29 Douglas B Rupp <rupp@gnat.com>
12844 * vmsdbg.h: Update copyright.
12846 2010-06-29 Douglas B Rupp <rupp@gnat.com>
12848 * vmsdbg.h (DST_K_TBG): New DST constant.
12849 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
12850 (write_modbeg): Cast module_language to avoid warning.
12851 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
12853 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
12856 * target.def, doc/tm.texi.in, genhooks.c: New files.
12857 * target.h: Instead of defining individual hook members,
12858 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
12859 include target.def.
12860 * target-def.h: Instead of defining individual hook initializers,
12861 include target-hooks-def.h.
12862 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
12863 targetm.live_on_entry -> targetm.extra_live_on_entry
12864 targetm.sched.md_finish ->targetm.sched.finish
12865 targetm.sched.md_init -> targetm.sched.init
12866 targetm.sched.md_init_global -> targetm.sched.init_global
12867 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
12868 targetm.asm_out.except_table_label ->
12869 targetm.asm_out.emit_except_table_label
12870 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
12871 targetm.target_help -> targetm.help
12872 targetm.vectorize.builtin_support_vector_misalignment ->
12873 targetm.vectorize.support_vector_misalignment
12874 targetm.file_start_app_off -> targetm.asm_file_start_app_off
12875 targetm.file_start_file_directive ->
12876 targetm.asm_file_start_file_directive
12877 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
12878 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
12879 * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
12880 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
12881 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
12882 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
12883 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
12884 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
12885 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
12886 * Makefile.in (TARGET_H): Depend on target.def.
12887 (TARGET_DEF_H): Depend on target-hooks-def.h.
12888 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
12889 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
12890 * doc/tm.texi: Regenerate.
12892 * Makefile.in (s-tm-texi): Remove stray tab / rule.
12894 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
12895 (targetm.sched.init): Likewise.
12897 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
12900 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
12901 (function_arg_advance_32): Const-ify TYPE parameter.
12902 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
12903 (ix86_function_arg_advance): Change type of NAMED to bool.
12904 (function_arg_32): Const-ify CUM and TYPE parameters.
12905 (function_arg_64): Likewise. Change type of NAMED to bool.
12906 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
12908 (ix86_function_arg): Change type of NAMED to bool.
12909 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
12910 last argument as a bool.
12912 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
12914 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
12915 (OVERRIDE_OPTIONS): Add note of obsolescence.
12916 Replace references with references to TARGET_OPTION_OVERRIDE.
12917 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
12919 * targhooks.c (default_target_option_override): New function.
12920 * targhooks.h (default_target_option_override): Declare.
12921 * target.h (struct gcc_target): Add override member to
12922 target_option member.
12923 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
12924 targetm.target_option.override call.
12925 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
12926 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
12928 2010-06-29 Jan Hubicka <jh@suse.cz>
12930 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
12932 2010-06-29 Jan Hubicka <jh@suse.cz>
12934 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
12936 (rebuild_frequencies): New function.
12937 * predict.h (rebuild_frequencies): Declare.
12938 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
12939 entry block and edge reaching new_entry.
12940 (tree_function_versioning): When doing partial cloning, rebuild
12941 frequencies when done.
12942 * passes.c (execute_function_todo): Use rebild_frequencies.
12944 2010-06-29 Richard Guenther <rguenther@suse.de>
12946 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
12947 * tree-flow.h (enum noalias_state): Remove.
12948 (struct var_ann_d): Remove noalias_state member.
12950 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
12953 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
12954 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
12955 (maddhidi4): Likewise.
12957 Revert parts of the change for PR25130.
12958 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
12961 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
12963 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
12964 targetm.calls.function_incoming_arg, and
12965 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
12966 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
12967 * target.h (struct gcc_target): Add function_arg_advance,
12968 function_arg, and function_incoming_arg fields.
12969 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
12970 (TARGET_FUNCTION_INCOMING_ARG): Define.
12971 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
12972 and TARGET_FUNCTION_INCOMING_ARG.
12973 * targhooks.h (default_function_arg_advance): Declare.
12974 (default_function_arg, default_function_incoming_arg): Declare.
12975 * targhooks.c (default_function_arg_advance): New function.
12976 (default_function_arg, default_function_incoming_arg): New function.
12977 * config/i386/i386.c (function_arg_advance): Rename to...
12978 (ix86_function_arg_advance): ...this. Make static.
12979 (function_arg): Rename to...
12980 (ix86_function_arg): ...this. Make static.
12981 (TARGET_FUNCTION_ARG_ADVANCE): Define.
12982 (TARGET_FUNCTION_ARG): Define.
12983 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
12984 (FUNCTION_ARG): Delete.
12985 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
12986 (function_arg): Delete prototype.
12988 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
12990 * reginfo.c (init_reg_sets_1): Adjust comments.
12991 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
12992 * calls.c (prepare_call_address): Likewise.
12993 (emit_call_1): Use targetm.calls.return_pops_args.
12994 (expand_call): Likewise.
12995 * function.c (assign_parms): Likewise.
12996 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
12997 * target.h (struct gcc_target) [struct calls]: Add
12998 return_pops_args field.
12999 * targhooks.h (default_return_pops_args): Declare.
13000 * targhooks.c (default_return_pops_args): Define.
13001 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
13002 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
13003 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
13004 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
13006 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
13007 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
13008 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
13009 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
13010 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
13011 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
13012 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
13013 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
13014 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
13015 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
13016 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
13017 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
13018 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
13019 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
13020 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
13021 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
13022 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
13023 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
13024 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
13025 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
13026 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
13027 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
13028 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
13029 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
13030 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
13031 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
13032 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
13033 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
13034 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
13035 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
13036 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
13037 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
13038 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
13039 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
13040 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
13041 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
13042 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
13043 * config/i386/i386.c (ix86_return_pops_args): Make static.
13044 Constify arguments.
13045 (TARGET_RETURN_POPS_ARGS): Define.
13046 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
13047 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
13048 (TARGET_RETURN_POPS_ARGS): Define.
13049 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
13050 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
13051 (TARGET_RETURN_POPS_ARGS): Define.
13053 2010-06-29 Richard Guenther <rguenther@suse.de>
13055 PR middle-end/44667
13056 * tree-inline.c (initialize_inlined_parameters): Make sure
13057 to remap the inlined parameter variable substitutions types.
13059 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
13061 PR rtl-optimization/44659
13062 * combine.c (make_compound_operation) <SUBREG>: Do not return the
13063 result of force_to_mode if it partially re-expanded the compound.
13065 2010-06-28 Jan Hubicka <jh@suse.cz>
13067 PR middle-end/44671
13068 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
13071 2010-06-28 Anatoly Sokolov <aesok@post.ru>
13073 * double-int.h (force_fit_type_double): Remove declaration.
13074 * double-int.c (force_fit_type_double): Move to tree.c.
13075 * tree.h (force_fit_type_double): Declare.
13076 * tree.h (force_fit_type_double): Moved from double-int.c. Use
13077 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
13078 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
13079 * convert.c (convert_to_pointer): Adjust call to
13080 force_fit_type_double.
13081 * tree-vrp.c (extract_range_from_assert,
13082 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
13083 * fold-const.c: Update comment.
13084 (int_const_binop, fold_convert_const_int_from_int,
13085 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
13086 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
13087 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
13088 round_up_loc): Adjust call to force_fit_type_double.
13090 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
13092 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
13094 2010-06-28 Martin Jambor <mjambor@suse.cz>
13096 * tree-sra.c (convert_callers): New parameter, change fndecls of
13098 (modify_function): Pass the old decl to convert_callers.
13100 2010-06-28 Martin Jambor <mjambor@suse.cz>
13102 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
13103 ipa_check_create_node_params and ipa_initialize_node_params with
13104 checking asserts they are not necessary.
13106 2010-06-28 Jan Hubicka <jh@suse.cz>
13108 PR tree-optimization/44687
13109 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
13111 2010-06-28 Martin Jambor <mjambor@suse.cz>
13114 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
13115 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
13116 instead of BINFO_BASE_BINFO.
13118 2010-06-28 Michael Matz <matz@suse.de>
13120 PR middle-end/44592
13121 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
13122 proper VDEF chain for intermediate stores in the sequence.
13124 2010-06-28 Jan Hubicka <jh@suse.cz>
13126 PR tree-optimization/44357
13127 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
13128 uninlinable functions.
13130 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
13132 * config.gcc (powerpc*-*-*): Handle titan.
13133 * config/rs6000/rs6000.c (titan_cost): New costs.
13134 (rs6000_override_options): Add "titan" to processor_target_table.
13135 Add Titan to branch alignment logic.
13136 Correctly set rs6000_cost for titan.
13137 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
13138 * config/rs6000/titan.md: New file.
13139 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
13141 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
13143 * tree-browser.c (TB_history_stack): Convert to a VEC.
13144 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
13145 (TB_history_prev): Likewise.
13147 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
13149 * vec.h (vec_heap_free): Add parentheses around free.
13151 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
13153 * system.h: Poison GCC_EXCEPT_H for front-end files.
13155 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
13157 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
13158 Define to NULL by default.
13159 * except.h: Define GCC_EXCEPT_H.
13160 (doing_eh): Remove prototype.
13161 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
13162 (lang_protect_cleanup_actions): Remove.
13163 * except.c (lang_protect_cleanup_actions): Remove.
13164 (doing_eh): Remove.
13165 (gen_eh_region): Don't check doing_eh here.
13166 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
13167 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
13168 instead of lang_protect_cleanup_actions.
13169 * omp-low.c (maybe_catch_exception): Likewise.
13170 * Makefile.in: Update dependencies.
13172 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
13174 * cgraph.h (struct varpool_node): new used_from_object_file flag.
13175 (struct cgraph_local_info): new used_from_object_file flag.
13176 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
13177 (cgraph_clone_node): initialize used_from_object_file.
13178 (cgraph_create_virtual_clone): initialize used_from_object_file.
13179 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
13180 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
13181 when compiling with -fwhole-program.
13182 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
13184 * ipa.c (function_and_variable_visibility): Set externally_visible
13185 flag of varpool_node if used_from_object_file flag is set.
13186 (cgraph_externally_visible_p): check used_from_object_file flag.
13187 * doc/invoke.texi (-fwhole-program option): Change description of
13188 externally_visible attribute accordingly.
13189 * doc/extend.texi (externally_visible): Ditto.
13191 2010-06-27 Jan Hubicka <jh@suse.cz>
13193 * params.def (max-inline-insns-auto): Default to 40.
13194 * doc/invoke.texi (max-inline-insns-auto): Document the change.
13196 2010-06-27 Jan Hubicka <jh@suse.cz>
13198 PR middle-end/44671
13199 PR middle-end/44686
13200 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
13202 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
13203 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
13205 2010-06-27 Anatoly Sokolov <aesok@post.ru>
13207 * target.h (struct gcc_target): Add register_move_cost field.
13208 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
13209 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
13210 * targhooks.c (default_register_move_cost): New function.
13211 * targhooks.h (default_register_move_cost): Declare function.
13212 * defaults.h (REGISTER_MOVE_COST): Delete.
13213 * ira-int.h (ira_register_move_cost): Update comment.
13214 * ira.c (ira_register_move_cost): Update comment.
13215 * reload.h (register_move_cost): Declare.
13216 * reginfo.c (register_move_cost): New function.
13217 (move_cost): Update comment.
13218 (init_move_cost, memory_move_secondary_cost): Replace
13219 REGISTER_MOVE_COST with register_move_cost.
13220 * postreload.c (reload_cse_simplify_set): (Ditto.).
13221 * reload.c (find_valid_class, find_reloads): (Ditto.).
13222 * reload1.c (choose_reload_regs): (Ditto.).
13223 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
13224 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
13225 * doc/md.texi (can_create_pseudo_p): Update documentation.
13227 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
13228 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
13229 * config/i386/i386.h (ix86_memory_move_cost): Make static.
13230 (TARGET_MEMORY_MOVE_COST): Define.
13232 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
13233 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
13234 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
13235 (TARGET_MEMORY_MOVE_COST): Define.
13237 2010-06-27 Richard Guenther <rguenther@suse.de>
13239 PR tree-optimization/44683
13240 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
13241 false edge from the inverted condition.
13243 2010-06-27 Richard Guenther <rguenther@suse.de>
13245 PR middle-end/44684
13246 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
13247 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
13248 for register LHS. Or non-store assignments.
13250 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
13252 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
13253 (sparc_emit_set_const64): Likewise. Remove disabled code.
13254 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
13255 (sparc_emit_set_const64): Likewise.
13257 2010-06-26 Catherine Moore <clm@codesourcery.com>
13259 * config/mips/mips.md (alu_type): New attribute.
13260 (type): Infer type from alu_type.
13261 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
13262 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
13263 *subsi3_extended, negsi2, negdi2, *low<mode>,
13264 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
13265 xor<mode>3, *nor<mode>3,
13266 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
13267 *zero_extendhi_truncqi): Set alu_type instead of type.
13269 2010-06-26 Douglas B Rupp <rupp@gnat.com>
13271 * config/alpha/alpha.c (alpha_need_linkage): Adjust
13272 splay_tree_new_ggc call.
13273 (alpha_use_linkage): Likewise.
13275 2010-06-26 Joseph Myers <joseph@codesourcery.com>
13277 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
13278 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
13279 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
13280 (static_specs): Remove switches_need_spaces.
13281 (process_command, do_self_spec): Hardcode handling "-o" instead of
13282 checking switches_need_spaces.
13283 * system.h (SWITCHES_NEED_SPACES): Poison.
13285 2010-06-26 Richard Guenther <rguenther@suse.de>
13287 PR tree-optimization/44393
13288 * tree-loop-distribution.c (generate_loops_for_partition): Fix
13289 stmt removal and VOP renaming.
13290 (generate_memset_zero): Remove redundant stmt updating.
13291 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
13292 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
13294 2010-06-26 Jan Hubicka <jh@suse.cz>
13296 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
13297 edges comming from header are equivalent.
13298 (visit_bb): Handle PHIs correctly.
13299 * tree-inline.c (copy_phis_for_bb): Be able to copy
13300 PHI from entry edge.
13301 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
13303 2010-06-26 Richard Guenther <rguenther@suse.de>
13305 PR middle-end/44674
13306 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
13307 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
13309 2010-06-26 Joseph Myers <joseph@codesourcery.com>
13311 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
13312 add_infile, alloc_switch): New.
13313 (process_command): Remove variable lang_n_infiles. Process
13314 options in a single pass. Use new functions for allocating
13315 infiles and switches arrays. Properly skip operands of
13316 -Xpreprocessor and -Xassembler.
13318 2010-06-26 Jan Hubicka <jh@suse.cz>
13320 PR middle-end/44671
13321 * cgraphunit.c (cgraph_function_versioning): Remove wrong
13322 cgraph_make_decl_local call; fix typo copying RTL data.
13324 2010-06-25 DJ Delorie <dj@redhat.com>
13326 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
13327 (m32c_output_aligned_common): Likewise.
13328 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
13329 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
13330 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
13331 (m32c_register_pragmas): Register it.
13332 * config/m32c/m32c.c (m32c_get_pragma_address): New.
13333 (m32c_insert_attributes): Set #pragma address decls volatile.
13334 (pragma_entry_eq): New.
13335 (pragma_entry_hash): New.
13336 (m32c_note_pragma_address): New.
13337 (m32c_get_pragma_address): New.
13338 (m32c_output_aligned_common): New.
13339 * doc/extend.texi: Document the new pragma.
13341 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
13343 * config/m32c/predicates.md (m32c_any_operand): Check the code
13344 instead of memory_operand so as to allow matching volatile MEMs.
13345 (m32c_nonimmediate_operand): Likewise.
13346 (mra_operand): Allow volatiles.
13348 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
13351 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
13352 address if the offset is unknown.
13354 2010-06-25 Douglas B Rupp <rupp@gnat.com>
13356 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
13357 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
13358 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
13359 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
13360 to ia64_start_function. Invoke it.
13361 * config/ia64/ia64.c (ia64_start_function): Call new function
13362 dwarf2out_vms_debug_main_pointer.
13364 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
13366 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
13367 statements computing the true predicate.
13369 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
13371 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
13372 to boolean_true_node.
13373 (reset_bb_predicate): New.
13374 (predicate_bbs): Call reset_bb_predicate.
13376 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
13378 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
13379 (tree_if_conversion): Returns true when something has been changed.
13380 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
13383 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
13385 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
13386 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
13387 * tree-if-conv.c: Include dbgcnt.h.
13388 (tree_if_conversion): Use if_conversion_tree to count the number of
13389 if-convertible loops.
13391 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
13393 * common.opt (fprefetch-loop-arrays): Re-define
13394 -fprefetch-loop-arrays as a tri-state option with the initial
13396 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
13397 pass only when flag_prefetch_loop_arrays > 0.
13398 * toplev.c (process_options): Note that, with tri-states,
13399 flag_prefetch_loop_arrays>0 means prefetching is enabled.
13400 * config/i386/i386.c (override_options): Enable prefetching at -O3
13401 for a set of CPUs that sw prefetching is helpful.
13402 (software_prefetching_beneficial_p): New. Return TRUE if software
13403 prefetching is beneficial for the given CPU.
13405 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
13407 PR rtl-optimization/44326
13408 * implicit-zee.c (find_removable_zero_extends): Replace
13409 INSN_P with NONDEBUG_INSN_P.
13411 2010-06-25 Martin Jambor <mjambor@suse.cz>
13413 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
13414 (struct ipa_node_params): Removed the modification_analysis_done flag.
13415 (ipa_is_param_modified): Removed.
13416 (ipa_analyze_node): Declare.
13417 (ipa_compute_jump_functions): Remove declaration.
13418 (ipa_count_arguments): Likewise.
13419 (ipa_detect_param_modifications): Likewise.
13420 (ipa_analyze_params_uses): Likewise.
13421 * ipa-prop.c (struct param_analysis_info): New type.
13422 (visit_store_addr_for_mod_analysis): Removed.
13423 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
13424 moved down in the file.
13425 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
13426 (ipa_count_arguments): Made static.
13427 (mark_modified): New function.
13428 (is_parm_modified_before_call): New function.
13429 (compute_pass_through_member_ptrs): New parameter parms_info, call
13430 is_parm_modified_before_call instead of ipa_is_param_modified.
13431 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
13432 it to compute_pass_through_member_ptrs.
13433 (ipa_compute_jump_functions): New parameter parms_info, pass it to
13434 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
13435 on the callee if it is analyzed. Made static.
13436 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
13437 is_parm_modified_before_call instead of ipa_is_param_modified.
13438 (ipa_analyze_call_uses): New parameter parms_info, pass it to
13439 ipa_analyze_indirect_call_uses.
13440 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
13441 ipa_analyze_call_uses.
13442 (ipa_analyze_params_uses): New parameter parms_info, pass it to
13443 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
13444 (ipa_analyze_node): New function.
13445 (ipa_print_node_params): Do not dump the modified flag.
13446 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
13447 it. Do not stream the modified parameter flag.
13448 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
13449 it. Do not stream the modified parameter flag.
13450 * ipa-cp.c (ipcp_analyze_node): Removed.
13451 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
13452 with only a call to ipa_analyze_node.
13453 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
13454 node with only a call to ipa_analyze_node.
13456 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
13458 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
13460 2010-06-25 Jan Hubicka <jh@suse.cz>
13462 * tree-pass.h (pass_split_functions): Declare.
13463 * opts.c (decode_options): Enable function splitting at -O2
13464 * timevar.def (TV_IPA_FNSPLIT): New macro.
13465 * ipa-split.c: New file.
13466 * common.opt (-fpartial-inlining): New flag.
13467 * Makefile.in (ipa-split.o): New object file.
13468 * passes.c (init_optimization_passes): Add ipa-split.
13469 * params.def (partial-inlining-entry-probability): New parameters.
13470 * doc/invoke.texi (-fpartial-inlining): New.
13472 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
13475 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
13476 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
13477 (gimplify_expr): Likewise.
13479 2010-06-25 Martin Jambor <mjambor@suse.cz>
13481 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
13482 statements instead of bailing out on them.
13483 (ipa_analyze_indirect_call_uses): Do not require that loads from the
13484 parameter are in the same BB as the condition. Update comments.
13486 2010-06-25 Jakub Jelinek <jakub@redhat.com>
13488 PR middle-end/43866
13489 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
13490 true or always false, return NULL_TREE.
13491 (tree_unswitch_single_loop): Optimize conditions even when reaching
13492 max-unswitch-level parameter. If num > 0, optimize first all conditions
13493 using entry checks, then do still reachable block discovery and consider
13494 only conditions in still reachable basic blocks in the loop.
13496 PR tree-optimization/44539
13497 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
13498 the call doesn't have LHS, but has VDEF.
13500 2010-06-25 Joseph Myers <joseph@codesourcery.com>
13502 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
13503 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
13504 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
13505 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
13506 * system.h (MODIFY_TARGET_NAME): Poison.
13508 2010-06-25 Alan Modra <amodra@gmail.com>
13510 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
13511 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
13512 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
13513 CMODEL_LARGE as default.
13514 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
13515 (offsettable_ok_by_alignment): Delete.
13516 (rs6000_emit_move): Remove mcmodel=medium optimization.
13518 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
13520 With large parts from Jim Wilson:
13522 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
13523 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
13524 * optabs.c (optab_for_tree_code): Likewise.
13525 (expand_widen_pattern_expr): Likewise.
13526 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
13527 out of execute_optimize_widening_mul.
13528 (convert_plusminus_to_widen): New function.
13529 (execute_optimize_widening_mul): Use the two new functions.
13530 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
13531 Remove code to generate widening multiply-accumulate. Add support
13532 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
13533 * gimple-pretty-print.c (dump_ternary_rhs): New function.
13534 (dump_gimple_assign): Call it when appropriate.
13535 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
13536 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
13537 (expand_gimple_stmt_1): Likewise.
13538 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
13539 WIDEN_MULT_MINUS_EXPR.
13540 * tree-ssa-operands.c (get_expr_operands): Likewise.
13541 * tree-inline.c (estimate_operator_cost): Likewise.
13542 * gimple.c (extract_ops_from_tree_1): Renamed from
13543 extract_ops_from_tree. Add new arg for a third operand; fill it.
13544 (gimple_build_assign_stat): Support operations with three operands.
13545 (gimple_build_assign_with_ops_stat): Likewise.
13546 (gimple_assign_set_rhs_from_tree): Likewise.
13547 (gimple_assign_set_rhs_with_ops_1): Renamed from
13548 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
13549 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
13550 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
13551 WIDEN_MULT_MINUS_EXPR.
13552 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
13553 (extract_ops_from_tree_1): Adjust declaration.
13554 (gimple_assign_set_rhs_with_ops_1): Likewise.
13555 (gimple_build_assign_with_ops): Pass NULL for last operand.
13556 (gimple_build_assign_with_ops3): New macro.
13557 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
13558 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
13560 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
13561 (verify_gimple_assign): Call it.
13562 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
13563 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
13564 functions for dealing with three-operand statements.
13565 * tree.c (commutative_ternary_tree_code): New function.
13566 * tree.h (commutative_ternary_tree_code): Declare it.
13567 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
13568 ternary statements.
13569 (gimple_assign_nonzero_warnv_p): Likewise.
13570 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
13571 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
13572 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
13573 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
13574 (struct hashtable_expr): New member ternary in the union.
13575 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
13576 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
13577 (iterative_hash_hashable_expr): Likewise.
13578 (print_expr_hash_elt): Handle EXPR_TERNARY.
13579 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
13580 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
13581 statements. Handle GIMPLE_TERNARY_RHS.
13583 2010-06-25 Jan Hubicka <jh@suse.cz>
13585 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
13587 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
13590 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
13591 parameters are not good.
13592 (c_parser_parameter_declaration): Error unknown type name if the type
13593 name can't start declaration specifiers.
13595 2010-06-25 Joseph Myers <joseph@codesourcery.com>
13597 * gcc.c (translate_options): Don't mention +e in comment.
13598 (process_command): Don't handle +e specially.
13600 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
13602 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
13604 * ira-build.c (merge_hard_reg_conflicts): New function.
13605 (create_cap_allocno, copy_info_to_removed_store_destinations,
13606 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
13607 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
13608 (remove_unnecessary_allocnos, remove_low_level_allocnos)
13609 copy_nifo_to_removed_store_destination): Use them.
13610 * ira-lives.c (make_hard_regno_born): New function, split out of
13612 (make_allocno_born): Likewise.
13613 (make_hard_regno_dead): New function, split out of make_regno_dead.
13614 (make_allocno_dead): Likewise.
13615 (inc_register_pressure): New function, split out of set_allocno_live.
13616 (dec_register_pressure): New function, split out of clear_allocno_live.
13617 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
13618 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
13619 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
13620 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
13621 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
13622 mark_pseudo_regno_live.
13623 (process_bb_node_lives): Use mark_pseudo_regno_live,
13624 make_hard_regno_born and make_allocno_dead.
13625 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
13626 set_allocno_live, clear_allocno_live): Delete functions.
13628 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
13629 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
13631 (ira_flattening): Use ira_parent_allocno.
13632 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
13633 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
13635 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
13638 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
13639 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
13640 minmax_set_iter_cond, minmax_set_iter_next,
13641 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
13642 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
13643 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
13644 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
13647 * ira-int.h (struct live_range, live_range_t): Renamed from struct
13648 ira_allocno_live_range and allocno_live_range_t; all uses changed.
13649 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
13652 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
13654 * thumb2.md (thumb2_tlobits_cbranch): Delete.
13655 (peephole2 to convert zero_extract/compare of single bit to
13656 lshift/compare): New.
13658 2010-06-24 Anatoly Sokolov <aesok@post.ru>
13660 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
13661 recursive call and call to 'int_const_binop'.
13662 (build_range_check, fold_cond_expr_with_comparison, unextend,
13663 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
13664 multiple_of_p): Adjust call to const_binop.
13666 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
13668 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
13669 determine size of XFmode operand.
13670 (XFmode extended DFmode push splitter): Ditto.
13671 (XFmode extended SFmode push splitter): Ditto.
13673 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
13676 * config/i386/i386.md (extract_code): New.
13677 (<u>divmodqi4): Likewise.
13678 (divmodhiqi3): Likewise.
13679 (udivmodhiqi3): Likewise.
13680 (<u>divqi3): Remvoved.
13682 2010-06-24 Jakub Jelinek <jakub@redhat.com>
13684 PR middle-end/44492
13685 * recog.h (struct recog_data): Add is_asm field.
13686 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
13687 present in constraints of inline-asm operand and memory operand
13688 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
13689 (extract_insn): Initialize recog_data.is_asm.
13690 * doc/md.texi (Constraints): Document operand side-effect rules.
13692 2010-06-24 Andi Kleen <ak@linux.intel.com>
13694 * c-parser.c (c_parser_conditional_expression): Call
13695 warn_for_omitted_condop.
13696 * doc/invoke.texi: Document omitted condop warning.
13698 2010-06-24 Nick Clifton<nickc@redhat.com>
13700 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
13701 insn in the sequence is a jump insn before setting its label.
13703 2010-06-24 Alan Modra <amodra@gmail.com>
13705 * collect2.c (main): Match exactly --version and --help.
13707 2010-06-24 DJ Delorie <dj@redhat.com>
13709 * config/m32c/m32c-pragma.c: Don't include rtl.h.
13711 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
13713 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
13714 using X87MODEF mode iterator.
13715 (pushsf splitter): Macroize splitter using P mode iterator.
13716 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
13719 (*movxf_internal): Rename from *movxf_integer.
13720 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
13721 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
13722 (*movdf_internal): Rename from *movdf_integer.
13723 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
13724 (*movsf_internal): Rename from *movdf_1.
13726 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
13728 * coretypes.h (gimple_seq_node_d, gimple_seq_node)
13729 (const_gimple_seq_node): Removed typedefs.
13731 * gimple.h (gimple_seq_node_d, gimple_seq_node)
13732 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
13734 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
13736 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
13737 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
13738 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
13739 and CODE_FOR_vec_extract_lo_v4df.
13741 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
13742 Changed to define_insn_and_split.
13743 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
13744 (vec_extract_lo_v16hi): Likewise.
13745 (vec_extract_lo_v32qi): Likewise.
13746 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
13747 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
13749 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
13752 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
13753 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
13754 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
13755 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
13756 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
13759 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
13762 * df-core.c (struct df): Rename to df_d.
13763 * df.h (struct df): Likewise.
13764 * dse.h (struct df): Remove forward declaration.
13765 * recog.h (struct insn_data): Rename to:
13766 (struct_insn_data_d). Adjusted all users.
13768 2010-06-23 Arnaud Charlet <charlet@adacore.com
13771 * doc/install.texi: Update requirements to build GNAT.
13773 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
13775 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
13777 (m68k_sched_attr_opx_type): Remove unreachable return.
13778 (m68k_sched_attr_opy_type): Likewise.
13779 (m68k_sched_attr_size): Likewise.
13780 (sched_get_opxy_mem_type): Likewise.
13781 (m68k_sched_attr_op_mem): Likewise.
13783 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
13785 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
13786 new statement and adjust VDEF only if necessary. Remove superfluous
13787 call to maybe_clean_or_replace_eh_stmt.
13788 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
13790 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
13791 * tree-inline.c (copy_bb): ...and not there.
13793 2010-06-22 Cary Coutant <ccoutant@google.com>
13795 * dwarf2out.c (is_nested_in_subprogram): New function.
13796 (should_move_die_to_comdat): Use it.
13797 (copy_ancestor_tree): Don't mark DIEs here.
13798 (copy_decls_walk): Start walk from root of newly-added tree;
13799 mark DIEs here instead.
13801 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
13803 * config/i386/i386.md (unit): Also check sseishft1.
13805 2010-06-22 Jan Hubicka <jh@suse.cz>
13807 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
13810 2010-06-22 Jan Hubicka <jh@suse.cz>
13812 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
13813 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
13814 Return true if something changed.
13815 * df.h (df_confluence_function_n): Return bool.
13816 * df-core.c (df_worklist_propagate_forward,
13817 df_worklist_propagate_backward): Track changes and ages.
13818 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
13820 * dse.c (dse_confluence_n): Return always true.
13822 2010-06-22 Jan Hubicka <jh@suse.cz>
13824 * bitmap.c (bitmap_clear_bit): Micro optimize.
13826 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
13828 * config/i386/i386.md (SWI1248x): New mode iterator.
13833 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
13834 SWI1248x mode iterator.
13835 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
13836 using SWI124 mode iterator.
13837 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
13839 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
13840 *pushdi2_prologue_rex64 using P mode iterator.
13841 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
13842 using SWI48 mode iterator.
13843 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
13844 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
13845 using SWI1248x mode iterator.
13846 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
13847 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
13848 SWI48 mode iterator.
13849 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
13851 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
13852 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
13853 SWI12 mode iterator.
13854 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
13855 SWI12 mode iterator.
13856 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
13857 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
13858 SWI24 mode iterator.
13859 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
13860 SWI48 mode iterator.
13861 (mov<mode>_insn_1): New expander.
13862 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
13863 using SWI48x mode iterator.
13865 (*movoi_internal_avx): Rename from *movoi_internal.
13866 (*movti_internal_rex64): Rename from *movti_rex64.
13867 (*movti_internal_sse): Rename from *movti_sse.
13868 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
13869 (*movdi_internal): Rename from *movdi_2.
13870 (*movsi_internal): Rename from *movsi_1.
13871 (*movhi_internal): Rename from *movhi_1.
13872 (*movqi_internal): Rename from *movqi_1.
13874 (insv): Update the call to gen_movsi_insv_1 for rename.
13875 * config/i386/i386.c (promote_duplicated_reg): Ditto.
13877 2010-06-22 Jan Hubicka <jh@suse.cz>
13879 * passes.c (execute_function_todo): Move call of statistics_fini_pass
13881 (execute_todo) ... this one.
13883 2010-06-22 Alan Modra <amodra@gmail.com>
13886 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
13887 * caller-save.c (insert_restore, insert_save): Use non-validate
13888 form of adjust_address.
13890 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13893 * config/pa/pa.c (override_options): Disable
13894 -freorder-blocks-and-partition.
13896 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
13899 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
13901 * config/i386/i386.md (type): Add sseishft1
13903 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
13904 (ppro_insn_load): Likewise.
13905 (ppro_insn_store): Likewise.
13906 (ppro_insn_both): Likewise.
13908 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
13909 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
13911 (*vec_extractv2di_1_avx): Likewise.
13912 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
13913 type. Remove atom_unit.
13914 (*vec_extractv2di_1_sse2): Likewise.
13916 2010-06-21 DJ Delorie <dj@redhat.com>
13918 * diagnostic.h (diagnostic_classification_change_t): New.
13919 (diagnostic_context): Add history and push/pop list.
13920 (diagnostic_push_diagnostics): Declare.
13921 (diagnostic_pop_diagnostics): Declare.
13922 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
13923 from pragmas in a history chain instead of the global table.
13924 (diagnostic_push_diagnostics): New.
13925 (diagnostic_pop_diagnostics): New.
13926 (diagnostic_report_diagnostic): Scan history chain to find state
13927 of diagnostics as of the diagnostic location.
13928 * opts.c (set_option): Pass UNKNOWN_LOCATION to
13929 diagnostic_classify_diagnostic.
13930 (enable_warning_as_error): Likewise.
13931 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
13932 use in the history chain.
13933 * doc/extend.texi: Document pragma GCC diagnostic changes.
13935 2010-06-21 Jakub Jelinek <jakub@redhat.com>
13937 * dwarf2out.c (add_linkage_name): New function. Don't add
13938 anything to DW_TAG_member DIEs.
13939 (add_name_and_src_coords_attributes): Use it.
13940 (gen_variable_die): Call it for C++ static data members if
13941 specification is DW_TAG_member.
13943 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
13944 C++ char16_t and char32_t.
13946 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
13947 * genattrtab.c: Include vecprim.h.
13948 (cached_attrs, cached_attr_count, attrs_seen_once,
13949 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
13950 attrs_cached_after): New variables.
13951 (find_attrs_to_cache): New function.
13952 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
13953 (write_test_expr): Add attrs_cached argument, return it too,
13954 attempt to cache non-const attributes used more than once in
13955 a single case handling.
13956 (write_attr_get): Use find_attrs_to_cache, for caching candidates
13957 emit cached_* variables. Adjust write_attr_set callers.
13958 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
13959 to find attributes that should be cached in this block. Adjust
13960 write_test_expr callers.
13961 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
13963 (make_automaton_attrs): Adjust write_test_expr caller.
13965 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
13966 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
13967 (make_automaton_attrs): If find_tune_attr returns non-NULL,
13968 write separate internal_dfa_insn_code_* and insn_default_latency_*
13969 functions for each attribute's value and emit init_sched_attrs
13970 function and function pointers.
13971 * genattr.c (const_attrs, reservations): New variables.
13972 (gen_attr): Add const attributes to const_attrs vector.
13973 (check_tune_attr, find_tune_attr): New functions.
13974 (main): Add reservations to reservations vector. If find_tune_attr
13975 returns true, add prototype for init_sched_attrs and make
13976 internal_dfa_insn_code and insn_default_latency function pointers,
13977 otherwise define init_sched_attrs as dummy macro.
13978 * cfgexpand.c: Include insn-attr.h.
13979 (gimple_expand_cfg): Call init_sched_attrs.
13981 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
13984 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
13985 va_arg from a set of register save slots into a temporary,
13986 if the container is bigger than type size, do the copying
13987 using smaller mode or using memcpy.
13990 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
13992 (sel_print_to_dot): Remove macro.
13993 (sel_print): Likewise. New prototype.
13994 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
13995 (sel_print): New function.
13997 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13999 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
14000 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
14002 2010-06-21 Nick Clifton <nickc@redhat.com>
14004 * config/rx/rx.h (PTRDIFF_TYPE): Define.
14005 (SMALL_REGISTER_CLASS): Define (to zero).
14006 (PRINT_OPERAND): Delete.
14007 (PRINT_OPERAND_ADDRESS): Delete.
14008 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
14009 (rx_print_operand_address): Delete prototype.
14010 * config/rx/rx.c (rx_print_operand): Make static.
14011 Allow %H and %L to handle CONST_DOUBLEs.
14012 (rx_print_operand_address): Make static.
14013 (rx_gen_move_template): Rename local variable 'template' to
14015 (rx_function_arg): Do not pass unknown sized objects in registers.
14016 (TARGET_PRINT_OPERAND): Define.
14017 (TARGET_PRINT_OPERAND_ADDRESS): Define.
14019 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
14021 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
14023 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
14025 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
14026 stack-alignment for simple leaf-functions.
14028 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
14030 * doc/install.texi: Document bootstrap-lto.
14032 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
14035 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
14036 (input_function): Drop them here, if VTA is disabled.
14038 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
14041 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
14043 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
14044 ix86_swapped_fp_comparsion_operator instead of
14045 ix86_fp_comparison_operator.
14047 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
14048 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
14049 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
14050 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
14051 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
14052 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
14054 2010-06-20 Joseph Myers <joseph@codesourcery.com>
14057 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
14058 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
14059 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
14060 (decode_cmdline_option): Update for this return value. Set
14061 orig_option_with_args_text field. Set arg field for unknown
14062 options. Make static.
14063 (decode_cmdline_options_to_array): New.
14064 (prune_options): Update handling of find_opt return value.
14065 * opts.c (read_cmdline_option): Take decoded option. Return void.
14066 (read_cmdline_options): Take decoded options.
14067 (decode_options): Add parameters for decoded options. Use
14068 decode_cmdline_options_to_array. Use decoded options for -O
14069 scan. Use integral_argument for -O parameters. Update call to
14070 read_cmdline_options.
14071 (enable_warning_as_error): Update handling of find_opt return value.
14072 * opts.h: Update comment on unknown options.
14073 (struct cl_decoded_option): Update comments on opt_index and arg.
14074 Add orig_option_with_args_text.
14075 (decode_cmdline_option): Remove.
14076 (decode_cmdline_options_to_array): Declare.
14077 (decode_options): Update prototype.
14078 * toplev.c (save_argv): Remove.
14079 (save_decoded_options, save_decoded_options_count): New.
14080 (read_integral_parameter): Remove.
14081 (print_switch_values): Use decoded options.
14082 (toplev_main): Don't set save_argv. Update call to decode_options.
14083 * toplev.h (read_integral_parameter): Remove.
14084 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
14086 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
14089 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
14091 * constraints.md (Pw, Px): New constraints.
14092 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
14094 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
14096 * config/i386/sse.md (fma4modesuffixf4): Removed.
14097 (ssemodesuffixf2s): Likewise.
14098 (ssemodesuffixf4): Likewise.
14099 (ssemodesuffixf2c): Likewise.
14100 (ssescalarmodesuffix2s): Likewise.
14101 (avxmodesuffixf2c): Likewise.
14102 (ssemodesuffix): New.
14103 (ssescalarmodesuffix): Likewise.
14104 Update patterns with ssemodesuffix and ssescalarmodesuffix.
14106 2010-06-19 Philip Herron <herron.philip@googlemail.com>
14108 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
14110 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
14112 * stor-layout.c (debug_rli): Remove unused local variables.
14114 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
14116 PR rtl-optimization/40900
14117 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
14118 original expression for later reuse.
14119 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
14120 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
14122 2010-06-18 Anatoly Sokolov <aesok@post.ru>
14124 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
14125 double_int_fits_in_uhwi_p): Implement as static inline.
14126 (double_int_xor): New inline function.
14127 (double_int_lrotate, double_int_rrotate, double_int_max,
14128 double_int_umax, double_int_smax, double_int_min, double_int_umin,
14129 double_int_smin): Declare.
14130 (lrotate_double, rrotate_double): Remove declaration.
14131 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
14132 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
14133 (double_int_lrotate, double_int_rrotate, double_int_max,
14134 double_int_umax, double_int_smax, double_int_min, double_int_umin,
14135 double_int_smin): New function.
14136 * fold-const.c (int_const_binop): Clean up, use double_int_*
14138 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
14139 double_int_* and immed_double_int_const functions.
14141 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
14143 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
14144 * function.c (types_used_by_cur_var_decl): Likewise.
14145 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
14147 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
14149 * tree.h (record_layout_info): Change type of pending_statics field
14151 * stor-layout.c (start_record_layout): Store NULL into
14153 (debug_rli): Call debug_vec_tree instead of debug_tree.
14154 (place_field): Likewise.
14155 (finish_record_layout): Likewise.
14157 2010-06-18 Alan Modra <amodra@gmail.com>
14159 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
14161 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14164 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
14165 for SET source operand from SET destination operand.
14167 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
14169 PR rtl-optimization/39871
14170 * reload1.c (init_eliminable_invariants): For flag_pic, disable
14171 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
14172 (function_invariant_p): Rule out a plus of frame or arg pointer with
14174 * ira.c (find_reg_equiv_invariant_const): Likewise.
14176 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
14178 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
14179 print_operand_address and puts to output the operand for CONST.
14181 2010-06-17 Jakub Jelinek <jakub@redhat.com>
14184 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
14187 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
14189 * v850-protos.h (print_operand): Delete.
14190 (print_operand_address): Delete.
14191 * v850.h (PRINT_OPERAND): Delete.
14192 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14193 (PRINT_OPERAND_ADDRESS): Delete.
14194 * v850.c (print_operand_address): Rename to...
14195 (v850_print_operand_address): ...this. Make static. Call
14196 v850_print_operand.
14197 (print_operand): Rename to...
14198 (v850_print_operand): ...this. Make static. Call
14199 v850_print_operand_address.
14200 (v850_print_operand_punct_valid_p): New function.
14201 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
14202 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
14204 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
14206 * config/sh/sh-protos.h (print_operand): Delete.
14207 (print_operand_address): Delete.
14208 * config/sh/sh.h (PRINT_OPERAND): Delete.
14209 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14210 (PRINT_OPERAND_ADDRESS): Delete.
14211 * config/sh/sh.c (sh_print_operand_address): Make static.
14212 (sh_print_operand): Make static. Call sh_print_operand_address
14213 and sh_print_operand.
14214 (sh_print_operand_punct_valid_p): New function.
14215 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
14216 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
14218 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
14220 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
14221 (mcore_print_operand_address): Delete.
14222 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
14223 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14224 (PRINT_OPERAND_ADDRESS): Delete.
14225 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
14226 (mcore_print_operand): Make static.
14227 (mcore_print_operand_punct_valid_p): New function.
14228 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
14229 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
14231 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
14233 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
14234 (print_operand_address): Delete.
14235 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
14236 (PRINT_OPERAND_ADDRESS): Delete.
14237 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
14239 (m68hc11_print_operand): Make static.
14240 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
14242 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
14244 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
14245 (m32r_print_operand_address): Delete.
14246 * config/m32r/m32r.h (m32r_punct_chars): Delete.
14247 (PRINT_OPERAND): Delete.
14248 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14249 (PRINT_OPERAND_ADDRESS): Delete.
14250 * config/m32r/m32r.c (m32r_punct_chars): Make static.
14251 (m32r_print_operand_address): Make static.
14252 (m32r_print_operand): Make static.
14253 (m32r_print_operand_punct_valid_p): New function.
14254 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
14255 (TARGET_PRINT_OPERAND_ADDRESS): Define.
14257 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
14259 * config/iq2000/iq2000-protos.h (print_operand): Delete.
14260 (print_operand_address): Delete.
14261 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
14262 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14263 (PRINT_OPERAND_ADDRESS): Delete.
14264 (iq2000_print_operand_punct): Delete.
14265 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
14266 (iq2000_print_operand_address): Make static.
14267 (iq2000_print_operand): Make static.
14268 (iq2000_print_operand_punct_valid_p): New function.
14269 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
14270 (TARGET_PRINT_OPERAND_ADDRESS): Define.
14272 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
14274 * config/frv/frv-protos.h (frv_print_operand): Delete.
14275 (frv_print_operand_address): Delete.
14276 * config/frv/frv.h (PRINT_OPERAND): Delete.
14277 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14278 (PRINT_OPERAND_ADDRESS): Delete.
14279 * config/frv/frv.c (frv_print_operand_address): Make static.
14280 (frv_print_operand): Make static.
14281 (frv_print_operand_punct_valid_p): New function.
14282 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
14283 (TARGET_PRINT_OPERAND_ADDRESS): Define.
14285 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
14287 * tree.h (vec_member): Declare.
14288 * tree.c (vec_member): Define.
14290 2010-06-17 Richard Guenther <rguenther@suse.de>
14292 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
14293 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
14295 2010-06-17 Richard Guenther <rguenther@suse.de>
14297 * tree-inline.c (declare_return_variable): Remove bogus code.
14299 2010-06-17 Richard Guenther <rguenther@suse.de>
14301 * gimplify.c (gimplify_bind_expr): Always promote complex
14302 and vector variables to registers if possible.
14304 2010-06-17 Richard Guenther <rguenther@suse.de>
14306 * expr.c (get_inner_reference): Use double_int for bit_offset
14309 2010-06-16 DJ Delorie <dj@redhat.com>
14311 * common.opt (-fstrict-volatile-bitfields): new.
14312 * doc/invoke.texi: Document it.
14313 * fold-const.c (optimize_bit_field_compare): For volatile
14314 bitfields, use the field's type to determine the mode, not the
14316 * expr.c (expand_assignment): Likewise.
14317 (get_inner_reference): Likewise.
14318 (expand_expr_real_1): Likewise.
14319 * expmed.c (store_fixed_bit_field): Likewise.
14320 (extract_bit_field_1): Likewise.
14321 (extract_fixed_bit_field): Likewise.
14323 2010-06-16 Richard Guenther <rguenther@suse.de>
14325 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
14327 2010-06-16 Douglas B Rupp <rupp@gnat.com>
14329 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
14330 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
14331 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
14332 * debug.c: Likewise.
14333 * sdbout.c: Likewise.
14334 * vmsdbgout.c: Likewise.
14335 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
14336 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
14337 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
14338 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
14339 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
14340 * dwarf2out.c (dw_fde_struct): New fields
14341 dw_fde_vms_{end,begin}_prologue.
14342 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
14343 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
14344 (dwarf2out_vms_end_prologue): New function.
14345 (dwarf2out_vms_begin_epilogue): New function.
14346 (dw_val_struct): New value dw_val_class_vms_delta.
14347 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
14348 begin_epilogue for VMS.
14349 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
14350 new static functions.
14351 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
14352 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
14354 (print_die): New case dw_val_class_vms_delta.
14355 (attr_checksum): Likewise.
14356 (same_dw_val_p: Likewise.
14357 (size_of_die): Likewise.
14358 (value_format): Likewise.
14359 (output_die): Likewise.
14360 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
14361 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
14362 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
14363 dwarf2out_cfi_begin_epilogue
14364 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
14366 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
14368 * config/cris/cris-protos.h (cris_print_operand): Delete.
14369 (cris_print_operand_address): Delete.
14370 * config/cris/cris.h (PRINT_OPERAND): Delete.
14371 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14372 (PRINT_OPERAND_ADDRESS): Delete.
14373 * config/cris/cris.c (cris_print_operand_address): Make static.
14374 (cris_print_operand): Make static.
14375 (cris_print_operand_punct_valid_p): New function.
14376 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
14377 (TARGET_PRINT_OPERAND_ADDRESS): Define.
14379 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
14381 * config/arm/arm-protos.h (arm_print_operand): Delete.
14382 (arm_print_operand_address): Delete.
14383 * config/arm/arm.h (PRINT_OPERAND): Delete.
14384 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14385 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
14386 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
14387 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
14388 (arm_print_operand): Make static.
14389 (arm_print_operand_punct_valid_p): New function.
14390 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
14391 (TARGET_PRINT_OPERAND_ADDRESS): Define.
14393 2010-06-16 Nick Clifton <nickc@redhat.com>
14395 * config/rx/constraints.md (NEGint4): New constraint.
14396 * config/rx/rx.md (attr cc): Add set_zsc.
14397 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
14400 (call_internal): Clobber the cc0 register.
14401 (call_value_internal): Likewise.
14402 (cstoresi4): Likewise.
14403 (movsieq): Likewise.
14404 (movsine): Likewise.
14405 (addsi3): Add alternative to handle small negative constants.
14406 (sunsi3): Likewise.
14407 (addsi3): Do not set the O bit in the cc0 register.
14408 (adddi3): Likewise.
14409 (subsi3): Likewise.
14410 (subdi3): Likewise.
14411 (andsi3): Reorder alternatives to prefer shorter forms.
14412 (mulsi3): Likewise.
14413 (iorsi3): Likewise.
14414 (negsi2): Note that the cc0 flags are set.
14415 (rotlsi3): Note that only the Z and S bits are set in cc0.
14416 (lshrsi3): Likewise.
14417 (ashlsi3): Likewise.
14418 (subsf3): Use %Q for the MEM operand.
14419 (fix_truncsfsi2): Likewise.
14420 (floatsisf2): Likewise.
14421 (bitset): Remove early clobber from destination.
14422 (bitset_in_memory): Likewise.
14423 (lrintsf2): Clobber the cc0 register.
14424 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
14425 (rx_print_operand): Handle %N.
14427 2010-06-16 Jan Hubicka <jh@suse.cz>
14429 * df-core.c (df_compact_blocks): Free problem_temps vector.
14431 2010-06-16 Martin Jambor <mjambor@suse.cz>
14433 PR tree-optimization/43905
14434 * tree-sra.c: Include tree-inline.h.
14435 (create_abstract_origin): Removed.
14436 (modify_function): Version the call graph node instead of creating
14437 abstract origins and dealing with same_body aliases.
14438 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
14439 function is versionable.
14440 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
14442 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
14444 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
14445 (CHOOSE_DYNAMIC_LINKER): Update.
14447 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
14449 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
14450 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
14451 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
14452 *prefetch_3dnow_rex.
14454 2010-06-15 Anatoly Sokolov <aesok@post.ru>
14456 * target.h (struct asm_out):Add declare_constant_name field.
14457 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
14458 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
14459 * output.h (default_asm_declare_constant_name): Declare.
14460 (assemble_label): Update prototype.
14461 * varasm.c (assemble_constant_contents): Use
14462 targetm.asm_out.declare_constant_name target hook.
14463 (assemble_label): Add 'file' argument.
14464 (default_asm_declare_constant_name): New function.
14465 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
14466 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
14467 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
14469 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
14470 * config/darwin.c (darwin_asm_declare_constant_name): New function.
14471 (machopic_output_indirection): Update assemble_label argument list.
14472 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
14473 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
14475 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
14477 PR middle-end/44391
14478 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
14479 size_one_node for pointer types. Do not call gmp_cst_to_tree.
14481 2010-06-15 Richard Guenther <rguenther@suse.de>
14483 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
14485 2010-06-15 Paul Brook <paul@codesourcery.com>
14487 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
14490 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
14492 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
14493 don't get a vector type for output.
14495 2010-06-15 Jakub Jelinek <jakub@redhat.com>
14498 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
14499 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
14500 (LANG_HOOKS_DECLS): Add it.
14501 * gimplify.c (omp_notice_variable): Call
14502 lang_hooks.decls.omp_report_decl.
14504 2010-06-15 Martin Jambor <mjambor@suse.cz>
14507 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
14508 on the newly dead SSA name.
14510 2010-06-15 Alan Modra <amodra@gmail.com>
14512 * doc/invoke.texi: Add mcmodel to powerpc options.
14513 * configure.ac: Add HAVE_LD_LARGE_TOC test.
14514 * configure: Regenerate.
14515 * config.in: Regenerate.
14516 * config/rs6000/linux64.opt (mcmodel): New.
14517 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
14518 (TARGET_CMODEL, SET_CMODEL): Define.
14519 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
14520 select CMODEL_MEDIUM default.
14521 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
14522 (TARGET_CMODEL): Define default.
14523 * config/rs6000/rs6000.c (cmodel): New variable.
14524 (rs6000_explicit_options): Add cmodel field.
14525 (rs6000_handle_option): Handle -mcmodel.
14526 (create_TOC_reference): Add largetoc_reg param. Generate high,
14527 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
14528 (rs6000_delegitimize_address): Recognise new toc reference rtl
14529 and minimal-toc rtl.
14530 (rs6000_legitimize_reload_address): Handle new toc references.
14531 (print_operand_address): Handle legitimate_constant_pool_address_p
14532 match before lo_sum.
14533 (rs6000_eliminate_indexed_memrefs): Tidy.
14534 (rs6000_emit_move): Tweak threshold for inlining constants.
14535 Keep rs6000_emit_allocate_stack large stack frame offsets
14536 loaded into r0 inline.
14537 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
14538 (tocrel_base, tocrel_offset): New variables.
14539 (toc_relative_expr_p): Set them here.
14540 (print_operand_address): Skip over any offset on constant pool address.
14541 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
14542 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
14543 (offsettable_ok_by_alignment): New function.
14544 (rs6000_emit_move): Address suitably aligned local symbol_refs
14545 relative to the toc pointer for -mcmodel=medium.
14546 (legitimate_constant_pool_address_p): Make param const_rtx. Add
14547 strict param. Allow lo_sum version of addressing. Verify reg
14548 used for -mminimal-toc and -mcmodel != small. Update all callers.
14549 * config/rs6000/constraints.md: Update for above change.
14550 * config/rs6000/predicates.md: Likewise.
14551 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
14553 (tls_gd): Split for -mcmodel=medium/large.
14554 (tls_gd_high, tls_gd_low): New.
14555 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
14556 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
14557 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
14558 (largetoc_high, largetoc_low): New.
14559 (cmptf_internal2): Add clobber.
14560 * config/rs6000/rs6000-protos.h: Update.
14562 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
14564 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
14565 true if no prefetch is going to be generated for a given group.
14566 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
14567 estimate the prefetch_count.
14568 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
14569 prefetch count by considering the unroll_factor and prefetch_mod
14570 for is_loop_prefetching_profitable.
14572 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
14574 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
14575 anything if the argument is not a MEM.
14577 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
14582 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
14584 (canonicalize_loop_ivs): Likewise.
14586 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
14589 * haifa-sched.c (setup_insn_reg_pressure_info,
14590 update_register_pressure): Reject debug insns.
14591 (ready_sort): Don't setup reg pressure for debug insns.
14592 (schedule_insn): Don't update reg pressure for debug insns.
14594 2010-06-14 Richard Guenther <rguenther@suse.de>
14596 * lto-streamer.c (cached_bp): Remove.
14597 (bitpack_delete): Likewise.
14598 (bitpack_create): Likewise.
14599 (bp_get_next_word): Likewise.
14600 (bp_pack_value, bp_unpack_value): Move ...
14601 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
14603 (struct bitpack_d): Likewise.
14604 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
14605 New inline functions.
14606 * lto-streamer-out.c (lto_output_bitpack): Remove.
14607 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
14608 (pack_value_fields): Adjust.
14609 (lto_write_tree): Likewise.
14610 (output_gimple_stmt): Likewise.
14611 (output_function): Likewise.
14612 * lto-streamer-in.c (input_gimple_stmt): Adjust.
14613 (input_function): Likewise.
14614 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
14615 (lto_input_bitpack): Remove.
14616 (lto_materialize_tree): Adjust.
14617 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
14618 * lto-cgraph.c (lto_output_edge): Adjust.
14619 (lto_output_node): Likewise.
14620 (lto_output_varpool_node): Likewise.
14621 (lto_output_ref): Likewise.
14622 (input_node): Likewise.
14623 (input_varpool_node): Likewise.
14624 (input_ref): Likewise.
14625 (input_edge): Likewise.
14626 (output_node_opt_summary): Likewise.
14627 (input_node_opt_summary): Likewise.
14628 * ipa-pure-const.c (pure_const_write_summary): Likewise.
14629 (pure_const_read_summary): Likewise.
14630 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
14631 (ipa_read_indirect_edge_info): Likewise.
14632 (ipa_write_node_info): Likewise.
14633 (ipa_read_node_info): Likewise.
14635 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
14638 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
14639 (vec_extract_lo_v16hi): Likewise.
14640 (vec_extract_lo_v32qi): Likewise.
14642 2010-06-14 Jakub Jelinek <jakub@redhat.com>
14645 * tree.h (build_call_expr): Don't define as vararg macro, instead
14647 * builtins.c (build_call_nofold): Remove.
14648 (expand_builtin_int_roundingfn, expand_builtin_pow,
14649 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
14650 expand_builtin_memset_args, expand_builtin_strcmp,
14651 expand_builtin_strncmp, expand_builtin_memory_chk): Use
14652 build_call_nofold_loc instead of build_call_nofold.
14653 (build_call_expr): New function.
14655 PR tree-optimization/44508
14656 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
14657 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
14658 don't eliminate trivially dead stmts.
14659 * tree-vrp.c (vrp_finalize): Pass false as last argument
14660 to substitute_and_fold.
14661 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
14662 to substitute_and_fold.
14663 * tree-ssa-ccp.c (ccp_finalize): Likewise.
14666 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
14668 2010-06-14 Ira Rosen <irar@il.ibm.com>
14670 PR tree-optimization/44507
14671 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
14672 to build initial vector for BIT_AND_EXPR.
14673 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
14675 2010-06-14 Jakub Jelinek <jakub@redhat.com>
14677 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
14678 adjust z10prop set_attr.
14680 2010-06-13 Jan Hubicka <jh@suse.cz>
14682 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
14683 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
14684 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
14685 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
14686 datastructure checks into checking asserts.
14687 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
14688 * tree-ssa-sccvn.c (VN_INFO): Likewise.
14689 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
14690 df_ref_create_structure): Likewise.
14691 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
14692 pool_free): Use gcc_checking_assert.
14693 * alias.c (get_alias_set): Likewise.
14694 * var-tracking.c (variable_htab_free, shared_hash_copy,
14695 canonicalize_values_mark, variable_merge_over_cur): Likewise.
14696 * lto-streamer.c (bp_unpack_value): Likewise.
14698 2010-06-13 Richard Guenther <rguenther@suse.de>
14700 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
14701 Do not stream but initialize TYPE_CANONICAL to NULL.
14702 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
14703 * gimple.c (gimple_types_compatible_p): Disregard
14704 TYPE_STRUCTURAL_EQUALITY_P.
14705 (gimple_register_type): Use TYPE_CANONICAL as cache.
14706 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
14707 before registering common types.
14708 * config/i386/i386.c (ix86_function_arg_boundary): Do not
14709 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
14710 * tree.h (TYPE_CANONICAL): Clarify documentation.
14712 2010-06-13 Anatoly Sokolov <aesok@post.ru>
14714 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
14715 LIBCALL_VALUE): Remove macros.
14716 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
14717 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14718 TARGET_FUNCTION_VALUE_REGNO_P): Define.
14719 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
14720 (ia64_function_value): Make static. Handle receiving the function
14721 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
14723 2010-06-12 Jan Hubicka <jh@suse.cz>
14725 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
14728 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
14730 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
14732 2010-06-12 Jan Hubicka <jh@suse.cz>
14734 * df-core.c (df_clear_bb_info): New function.
14735 (df_set_blocks): bb_info is always allocated.
14736 (df_get_bb_info): Use block_info_elt_size.
14737 (df_set_bb_info): Likewise.
14738 (df_compact_blocks): Update for new block_info.
14739 (grow_bb_info): New function.
14740 * df-problems.c (df_grow_bb_info): Move to df-core.c
14741 (df_rd_set_bb_info): Remove.
14742 (df_rd_free_bb_info): Do not free block pool.
14743 (df_rd_alloc): Do not create pool, use check for
14744 obstack presence instead of NULL pointer for new blocks.
14745 (df_rd_free): DO not free alloc pool; clear block_info.
14746 (problem_RD): Add size of block info structure.
14747 (df_lr_set_bb_info): Remove.
14748 (df_lr_free_bb_info): Do not free block pool.
14749 (df_lr_alloc): Do not create pool, use check for
14750 obstack presence instead of NULL pointer for new blocks.
14751 (df_lr_free): DO not free alloc pool; clear block_info.
14752 (problem_LR): Add size of block info structure.
14753 (df_live_set_bb_info): Remove.
14754 (df_live_free_bb_info): Do not free block pool.
14755 (df_live_alloc): Do not create pool, use check for
14756 obstack presence instead of NULL pointer for new blocks.
14757 (df_live_free): DO not free alloc pool; clear block_info.
14758 (problem_LIVE): Add size of block info structure.
14759 (problem_CHAIN): Add size of block info structure.
14760 (df_byte_lr_set_bb_info): Remove.
14761 (df_byte_lr_free_bb_info): Do not free block pool.
14762 (df_byte_lr_alloc): Do not create pool, use check for
14763 obstack presence instead of NULL pointer for new blocks.
14764 (df_byte_lr_free): DO not free alloc pool; clear block_info.
14765 (problem_BYTE_LR): Add size of block info structure.
14766 (problem_NOTE): Add size of block info structure.
14767 (df_byte_MD_set_bb_info): Remove.
14768 (df_byte_MD_free_bb_info): Do not free block pool.
14769 (df_byte_MD_alloc): Do not create pool, use check for
14770 obstack presence instead of NULL pointer for new blocks.
14771 (df_byte_MD_free): DO not free alloc pool; clear block_info.
14772 (problem_BD): Add size of block info structure.
14773 * df-scan.c (df_scan_free_internal): Free block pool.
14774 (df_scan_set_bb_info): Remove.
14775 (df_scan_free_bb_info): Check for artificial_defs instead
14776 of bb_info being non-NULL.
14777 (df_scan_alloc): DO not create df_scan_block pool.
14778 (problem_SCAN): Set size of block info.
14779 (df_bb_refs_record): Do not allocate bb_info.
14780 * df.h (df_problem): Add block_info_elt_size.
14781 (struct dataflow): Change block_info to void *.
14782 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
14783 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
14784 in-line structures.
14786 2010-06-12 Jan Hubicka <jh@suse.cz>
14788 PR tree-optimize/44485
14789 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
14790 containing use of return value of noreturn function.
14792 2010-06-12 Anatoly Sokolov <aesok@post.ru>
14794 * targhooks.c (default_function_value): Don't use
14795 FUNCTION_OUTGOING_VALUE.
14796 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
14797 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
14799 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
14801 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
14802 Add crtfastmath.o to extra_parts.
14803 * config/mips/crtfastmath.c: New.
14804 * config/mips/linux.h (ENDFILE_SPEC): New.
14806 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
14808 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
14809 old_type in parameter.
14810 (gcc_type_for_value): Update call to gcc_type_for_interval.
14811 (compute_type_for_level_1): Renamed compute_type_for_level.
14812 Update call to gcc_type_for_interval.
14814 2010-06-11 Joseph Myers <joseph@codesourcery.com>
14816 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
14817 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
14819 2010-06-11 Joseph Myers <joseph@codesourcery.com>
14821 * opts-common.c: Include options.h.
14822 (integral_argument): Move from opts.c.
14823 (decode_cmdline_option): New. Based on read_cmdline_option.
14824 * opts.c (integral_argument): Move to opts-common.c.
14825 (read_cmdline_option): Move most contents to
14826 decode_cmdline_option. Use %qs in diagnostics.
14827 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
14828 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
14829 decode_cmdline_option): New.
14831 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
14834 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
14835 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
14836 (partiysi2_cmp): Ditto.
14837 (*partiyhi2_cmp): Ditto.
14838 (*parityqi2_cmp): Remove.
14840 2010-06-11 Jan Hubicka <jh@suse.cz>
14842 * bitmap.h (bmp_iter_next_bit): New.
14843 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
14845 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
14846 Eric Botcazou <ebotcazou@adacore.com>
14848 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
14851 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
14853 * config/i386/i386.md (unspec): New define_c_enum.
14856 2010-06-10 Jakub Jelinek <jakub@redhat.com>
14858 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
14860 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
14862 PR middle-end/44483
14863 * tree-if-conv.c (bb_predicate_s): New struct.
14864 (bb_predicate_p): New.
14865 (bb_has_predicate): New.
14866 (bb_predicate): New.
14867 (set_bb_predicate): New.
14868 (bb_predicate_gimplified_stmts): New.
14869 (set_bb_predicate_gimplified_stmts): New.
14870 (add_bb_predicate_gimplified_stmts): New.
14871 (init_bb_predicate): New.
14872 (free_bb_predicate): New.
14873 (is_predicated): Use bb_predicate.
14874 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
14875 (predicate_bbs): Same. Gimplify the condition of the basic blocks
14876 before processing their successors.
14877 (clean_predicate_lists): Removed.
14878 (find_phi_replacement_condition): Use bb_predicate.
14879 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
14881 (insert_gimplified_predicates): New.
14882 (combine_blocks): Call insert_gimplified_predicates.
14883 (tree_if_conversion): Call free_bb_predicate instead of
14884 clean_predicate_lists.
14886 2010-10-11 Paul Brook <paul@codesourcery.com>
14888 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
14889 * config/arm/arm.c (all_architectures): Change v7e-m default to
14891 * config/arm/arm-cores.def: Add cortex-m4.
14892 * config/arm/arm-tune.md: Regenerate.
14894 2010-06-11 Jan Hubicka <jh@suse.cz>
14896 * ipa-pure-const.c (special_builtlin_state): New function.
14897 (check_call): Use it instead of special casign BUILT_IN_RETURN.
14898 (propagate_pure_const): Use it.
14900 2010-06-11 Jan Hubicka <jh@suse.cz>
14902 * df-problems.c (df_live_scratch): Convert to bitmap_head.
14903 (df_live_alloc): Initialize df_live_scratch when initializing
14905 (df_live_transfer_function): Update uses of df_live_scratch.
14906 (df_live_free): Free problem_data; clear df_live_scratch before
14907 releasing the obstack.
14908 (df_md_free): Free problem data.
14910 2010-06-11 Jan Hubicka <jh@suse.cz>
14912 * doc/invoke.texi (Wsuggest-attribute): Document.
14913 (Wmissing-noreturn): Remove.
14914 * ipa-pure-const.c (warn_function_noreturn): New function.
14915 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
14916 warn_missing_noreturn.
14917 * common.opt (Wsuggest-attribute=noreturn): New.
14918 * tree-flow.h (warn_function_noreturn): Declare.
14919 * tree-cfg.c (execute_warn_function_noreturn): Use
14920 warn_function_noreturn.
14921 (gate_warn_function_noreturn): New.
14922 (pass_warn_function_noreturn): Update.
14924 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
14926 * c-typeck.c (handle_warn_cast_qual): Add loc
14927 parameter. Improve warning message.
14928 (build_c_cast): Pass location to handle_warn_cast_qual.
14930 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
14932 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
14933 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
14935 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
14937 2010-06-10 Dodji Seketeli <dodji@redhat.com>
14939 Fix bootstap on mips
14940 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
14941 be naming typedefs.
14943 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
14945 * system.h (helper_const_non_const_cast): New inline for
14946 gcc version <= 4.0.
14947 (CONST_CAST2): For gcc version <= 4.0 use
14948 new helper to do const/non-const casting.
14950 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
14952 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
14953 * Makefile.in (OBJS-common): Include insn-enums.o.
14954 (insn-enums.o): New rule.
14955 (simple_generated_c): Add insn-enums.c.
14956 (build/genenums.o): New rule.
14957 (genprogmd): Add "enums".
14958 * genconstants.c (print_enum_type): Declare a C string array
14960 * genenums.c: New file.
14961 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
14962 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
14963 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
14965 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
14967 * doc/md.texi (define_enum_attr): Document.
14968 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
14969 * read-md.h (lookup_enum_type): Declare.
14970 * read-md.c (lookup_enum_type): New function.
14971 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
14972 * genattrtab.c (attr_desc): Add an enum_name field.
14973 (evaluate_eq_attr): Take the associated attribute as argument.
14974 Get the enum prefix from the enum_name field, if defined.
14975 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
14976 (simplify_test_exp): Pass attr to evaluate_eq_attr.
14977 (add_attr_value): New function, split out from...
14978 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
14979 (write_test_expr): Pass attr to evaluate_eq_attr.
14980 (write_attr_get): Use the enum_name as the enum tag, if defined.
14981 (write_attr_valueq): Use the enum_name as a prefix, if defined.
14982 (find_attr): Initialize enum_name.
14983 (main): Handle DEFINE_ENUM_ATTR.
14984 * gensupport.c (process_rtx): Likewise.
14985 * config/mips/mips.h (mips_tune_attr): Delete.
14986 * config/mips/mips.md (cpu): Use define_attr_enum.
14988 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
14990 * doc/md.texi (define_c_enum, define_enum): Document.
14991 * read-md.h (md_constant): Add a parent_enum field.
14992 (enum_value, enum_type): New structures.
14993 (upcase_string, traverse_enum_types): Declare.
14994 * read-md.c (enum_types): New variable.
14995 (upcase_string, add_constant): New functions.
14996 (handle_constants): Don't create the hash table here.
14998 (traverse_md_constants): Don't check for a null md_constants.
14999 (decimal_string, handle_enum, traverse_enum_types): New functions.
15000 (read_md_files): Initialize md_constants and md_enums.
15001 * genconstants.c (print_md_constant): Ignore info argument.
15002 Only print constants that belong to no enum.
15003 (print_enum_type): New function.
15004 (main): Don't pass stdout to print_md_constant. Call print_enum_type
15005 for each defined enum type.
15006 * config/mips/mips.md (processor): New define_enum.
15007 (unspec): New define_c_enum.
15008 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
15009 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
15010 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
15011 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
15012 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
15013 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
15014 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
15015 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
15016 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
15017 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
15018 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
15019 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
15020 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
15021 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
15022 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
15023 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
15024 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
15025 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
15026 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
15027 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
15028 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
15029 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
15030 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
15031 (UNSPEC_RDDSP): Move to mips-dsp.md.
15032 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
15033 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
15034 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
15035 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
15036 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
15037 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
15038 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
15039 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
15040 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
15041 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
15042 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
15043 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
15044 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
15045 Moved to mips-dspr2.md.
15046 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
15047 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
15048 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
15049 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
15050 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
15051 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
15052 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
15053 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
15054 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
15055 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
15056 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
15057 UNSPEC_LOONGSON_PSADBH)
15058 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
15059 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
15060 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
15061 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
15062 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
15063 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
15064 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
15065 (cpu): Update comment.
15066 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
15067 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
15068 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
15069 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
15070 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
15071 UNSPEC_LOONGSON_PCMPEQ)
15072 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
15073 UNSPEC_LOONGSON_PINSR_0)
15074 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
15075 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
15076 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
15077 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
15078 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
15079 UNSPEC_LOONGSON_PSADBH)
15080 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
15081 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
15082 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
15083 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
15084 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
15085 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
15086 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
15087 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
15088 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
15089 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
15090 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
15091 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
15092 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
15093 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
15094 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
15095 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
15096 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
15097 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
15098 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
15099 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
15100 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
15101 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
15102 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
15103 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
15104 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
15105 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
15106 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
15107 (UNSPEC_RDDSP): Moved from mips.md.
15108 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
15109 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
15110 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
15111 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
15112 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
15113 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
15114 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
15115 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
15116 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
15117 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
15118 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
15119 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
15120 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
15121 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
15122 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
15123 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
15124 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
15125 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
15126 (UNSPEC_SCC): Moved from mips.md.
15127 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
15128 "processor_type" to "processor".
15129 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
15130 * config/mips/mips.h (processor_type): Delete.
15131 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
15132 "processor_type" to "processor".
15134 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
15136 * configure.ac (tm_include_list): Add insn-constants.h.
15137 * configure: Regenerate.
15138 * Makefile.in (GTM_H): Move insn-constants.h here from...
15140 * mkconfig.sh: Remove special handling for insn-constants.h.
15142 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
15144 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
15145 (BUILD_MD): ...this new variable.
15146 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
15147 that include the old contents of simple_generated_h and
15148 simple_generated_c.
15149 (simple_generated_h, simple_generated_c): Include them. Add
15151 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
15152 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
15153 Remove these dependencies from the main rule and include
15154 insn-conditions.md in the command line only if it appears
15155 in the dependency list.
15156 (insn-constants.h, s-constants): Delete.
15157 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
15159 (build/genmddeps.o): Likewise.
15160 (genprogrtl): New variable that contains everything from genprogmd
15161 except mddeps and constants.
15162 (genprogmd): Redefine in terms of genprogrtl. Make these programs
15163 depend on $(BUILD_MD)
15164 (genprog): New variable. Make these programs depend on
15166 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
15167 (main): Use read_md_files instead of init_rtx_reader_args.
15168 * genconstants.c: As for genmddeps.c.
15169 * read-md.h (read_skip_construct): Declare.
15170 * read-md.c (read_skip_construct): New function.
15171 (handle_file): Allow a null handle_directive, skipping the
15173 (parse_include): Update the comment accordingly.
15175 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
15177 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
15178 * genmddeps.c: Include read-md.h.
15179 (main): Call init_rtx_reader_args instead of init_md_reader_args.
15180 * genattr.c (main): Likewise.
15181 * genattrtab.c (main): Likewise.
15182 * genautomata.c (main): Likewise.
15183 * gencodes.c (main): Likewise.
15184 * genconditions.c (main): Likewise.
15185 * genconfig.c (main): Likewise.
15186 * genconstants.c (main): Likewise.
15187 * genemit.c (main): Likewise.
15188 * genextract.c (main): Likewise.
15189 * genflags.c (main): Likewise.
15190 * genopinit.c (main): Likewise.
15191 * genoutput.c (main): Likewise.
15192 * genpeep.c (main): Likewise.
15193 * genrecog.c (main): Likewise.
15194 * genpreds.c (main): Likewise.
15195 * gensupport.h (in_fname): Move to read-md.h.
15196 (init_md_reader_args_cb): Rename to...
15197 (init_rtx_reader_args_cb): ...this and return a bool.
15198 (init_md_reader_args): Rename to...
15199 (init_rtx_reader_args): ...this and return a bool.
15200 (include_callback): Move to read-md.h.
15201 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
15202 (file_name_list, first_dir_md_include): Move to read-md.c
15203 (first_bracket_include): Delete unused variable.
15204 (last_dir_md_include): Move to read-md.c.
15205 (process_include): Delete, moving code to read-md.c:handle_include.
15206 (process_rtx): Don't handle INCLUDE.
15207 (save_string): Delete.
15208 (rtx_handle_directive): New function.
15209 (init_md_reader_args_cb): Rename to...
15210 (init_rtx_reader_args_cb): ...this and return a boolean success value.
15212 (init_md_reader_args): Rename to...
15213 (init_rtx_reader_args): ...this and return a boolean success value.
15214 * rtl.def (INCLUDE): Delete.
15215 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
15217 * read-rtl.c (read_conditions): Don't gobble ')' here.
15218 (read_mapping): Likewise.
15219 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
15220 Handle top-level non-rtx constructs here rather than in read_rtx_1.
15221 Store the whole queue in *X. Remove call to init_md_reader.
15222 (read_rtx_1): Rename to...
15223 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
15224 Don't handle top-level non-rtx constructs here. Don't handle (nil)
15226 (read_nested_rtx): New function. Handle (nil) here rather than
15228 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
15230 * read-md.h (directive_handler_t): New type.
15231 (in_fname, include_callback): Moved from read-md.h.
15232 (read_constants, init_md_reader): Delete.
15233 (read_md_files): Declare.
15234 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
15235 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
15237 (read_constants): Rename to...
15238 (handle_constants): ...this. Don't gobble ')' here.
15239 (handle_include, handle_file, handle_toplevel_file)
15240 (parse_include): New functions, mostly taken from gensupport.c.
15241 (init_md_reader): Subsume into...
15242 (read_md_files): ...this new function.
15244 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
15246 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
15247 (unread_char): Decrement read_md_lineno after putting back '\n'.
15248 * read-md.c (fatal_with_file_and_line): Push back any characters
15249 that we decide not to add to the context.
15250 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
15251 fatal_expected_char in cases where '/' ends a line (for example).
15252 (read_name): Don't increment read_md_lineno here.
15253 (read_escape): Likewise.
15254 (read_quoted_string): Likewise.
15255 (read_braced_string): Likewise.
15257 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
15259 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
15260 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
15261 * genconstants.c: Include read-md.h.
15262 * read-rtl.c (md_constants): Move to read-md.c.
15263 (md_name): Move to read-md.h.
15264 (initialize_iterators): Use leading_string_hash instead of def_hash
15265 and leading_string_eq_p instead of def_name_eq_p.
15266 (read_name): Move to read-md.c.
15267 (def_hash, def_name_eq_p): Delete.
15268 (read_constants, traverse_md_constants): Move to read-md.c.
15269 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
15270 * read-md.h: Include hashtab.h.
15271 (md_name): Moved from read-rtl.c.
15272 (md_constant): Moved from read-md.h.
15273 (leading_string_hash, leading_string_eq_p, read_name)
15274 (read_constants, traverse_md_constants): Declare.
15275 * read-md.c (md_constants): Moved from read-rtl.c.
15276 (leading_string_hash, leading_string_eq_p): New functions.
15277 (read_name, read_constants, traverse_md_constants): Moved from
15280 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
15282 * read-rtl.c (md_name): New structure.
15283 (read_name): Take an md_name instead of a buffer pointer.
15284 Use the "string" field instead of strcpy when expanding constants.
15285 (read_constants): Remove the tmp_char argument. Update the calls
15286 to read_name, using two local name buffers instead of the tmp_char
15287 argument. Merge the constant-creation code.
15288 (read_conditions): Remove the tmp_char argument. Update the calls
15289 to read_name, using a local name buffer instead of the tmp_char
15291 (read_mapping): Replace tmp_char variable with a local name buffer.
15292 Update the calls to read_name.
15293 (read_rtx_1): Likewise. Update the calls to read_constants and
15296 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
15298 * Makefile.in (build/read-md.o): Depend on errors.h.
15299 * read-md.h (error_with_line): Declare.
15300 * read-md.c: Include errors.h.
15301 (message_with_line_1): New function, extracted from...
15302 (message_with_line): ...here.
15303 (error_with_line): New function.
15304 * genattrtab.c: If a call to message_with_line is followed by
15305 "have_error = 1;", replace both statements with a call to
15307 * genoutput.c: Likewise.
15308 * genpreds.c: Likewise.
15309 * genrecog.c: If a call to message_with_line is followed by
15310 "error_count++;", replace both statements with a call to
15312 (errorcount): Delete.
15313 (main): Don't check it.
15314 * gensupport.c: If a call to message_with_line is followed by
15315 "errors = 1;", replace both statements with a call to error_with_line.
15317 (process_define_cond_exec): Check have_error instead of errors.
15318 (init_md_reader_args_cb): Likewise. Don't set errors.
15320 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
15322 * read-md.h (read_md_file): Declare.
15323 (read_char, unread_char): New functions.
15324 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
15325 (read_quoted_string, read_string): Remove FILE * argument.
15326 * read-md.c (read_md_file): New variable.
15327 (read_md_filename, read_md_lineno): Update comments and remove
15328 unnecessary initialization.
15329 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
15330 (read_escape, read_quoted_string, read_braced_string, read_string):
15331 Remove FILE * argument. Update calls accordingly, using read_char
15332 and unread_char instead of getc and ungetc.
15333 * rtl.h (read_rtx): Remove FILE * argument.
15334 * read-rtl.c (iterator_group): Remove FILE * argument from
15336 (iterator_traverse_data): Remove "infile" field.
15337 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
15338 (add_mapping, read_name, read_constants, read_conditions)
15339 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
15340 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
15341 Remove file arguments from all calls, using read_char and unread_char
15342 instead of getc and ungetc.
15343 * gensupport.c (process_include): Preserve read_md_file around
15344 the include. Set read_md_file to the handle of the included file.
15345 Update call to read_rtx.
15346 (init_md_reader_args_cb): Set read_md_file to the handle of the file
15347 and remove local FILE *. Update calls to read_rtx.
15349 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
15351 * read-md.h (read_rtx_lineno): Rename to...
15352 (read_md_lineno): ...this.
15353 (read_rtx_filename): Rename to...
15354 (read_md_filename): ...this.
15355 (copy_rtx_ptr_loc): Rename to...
15356 (copy_md_ptr_loc): ...this.
15357 (print_rtx_ptr_loc): Rename to...
15358 (print_md_ptr_loc): ...this.
15359 * read-md.c: Likewise. Update references after renaming.
15360 (string_obstack): Replace RTL with MD in comment.
15361 (set_rtx_ptr_loc): Rename to...
15362 (set_md_ptr_loc): ...this.
15363 (get_rtx_ptr_loc): Rename to...
15364 (get_md_ptr_loc): ...this.
15365 * genconditions.c: Update references after renaming.
15366 * genemit.c: Likewise.
15367 * genoutput.c: Likewise.
15368 * genpreds.c: Likewise.
15369 * gensupport.c: Likewise.
15370 * read-rtl.c: Likewise.
15372 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
15374 * Makefile.in (READ_MD_H): New variable.
15375 (BUILD_RTL): Add build/read-md.o.
15376 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
15377 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
15378 (build/genattrtab.o, build/genconditions.o build/genemit.o)
15379 (build/genextract.o, build/genflags.o, build/genoutput.o)
15380 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
15381 (build/read-md.o): New rule.
15382 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
15383 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
15384 * coretypes.h: ...here.
15385 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
15386 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
15387 * genattr.c: Include read-md.h.
15388 * genattrtab.c: Likewise.
15389 * genconditions.c: Likewise.
15390 * genemit.c: Likewise.
15391 * genextract.c: Likewise.
15392 * genflags.c: Likewise.
15393 * genoutput.c: Likewise.
15394 * genpreds.c: Likewise.
15395 * genrecog.c: Likewise.
15396 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
15397 (join_c_conditions, print_c_condition, read_rtx_filename)
15398 (read_rtx_lineno): Move to read-md.h.
15399 * read-rtl.c: Include read-md.h.
15400 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
15401 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
15402 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
15403 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
15404 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
15405 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
15406 (read_braced_string, read_string): Move to read-md.c.
15407 (read_rtx): Move some initialization to init_md_reader and call
15408 init_md_reader here.
15409 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
15411 * gensupport.c: Include read-md.h.
15412 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
15413 * read-md.h, read-md.c: New files.
15415 2010-06-10 Anatoly Sokolov <aesok@post.ru>
15417 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
15418 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15419 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
15420 * config/moxie/moxie.c (moxie_function_value): Make static.
15421 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
15422 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15424 2010-06-10 Martin Jambor <mjambor@suse.cz>
15426 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
15427 * dbgcnt.def (tree_sra): New counter.
15428 * tree-sra.c: Include dbgcnt.h.
15429 (gate_intra_sra): Check tree_sra debug counter.
15431 2010-06-10 Martin Jambor <mjambor@suse.cz>
15433 PR tree-optimization/44258
15434 * tree-sra.c (build_access_subtree): Return false iff there is a
15436 (build_access_trees): Likewise.
15437 (analyze_all_variable_accesses): Disqualify candidates if
15438 build_access_trees returns true for them.
15440 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
15443 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
15444 tail-recurse into canonical node. Fast-forward over
15445 non-canonical VALUEs.
15447 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
15450 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
15451 (*addsi_1_zext) <TYPE_LEA>: Likewise.
15452 (add lea splitter): Likewise.
15453 (add_zext lea splitter): Likewise.
15455 2010-06-10 Joseph Myers <joseph@codesourcery.com>
15457 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
15459 2010-06-10 Jan Hubicka <jh@suse.cz>
15461 * df-problems.c (df_live_problem_data): Add live_bitmaps.
15462 (df_live_alloc): Initialize problem data and live_osbtacks.
15463 (df_live_finalize): Remove obstack, problem data; do not
15465 (df_live_top_dump, df_live_bottom_dump): Do not dump old
15466 data when not allocated.
15467 (df_live_verify_solution_start): Do not allocate problem data.
15468 (df_live_verify_solution_end): Check if out is allocated.
15469 (struct df_md_problem_data): New structure.
15470 (df_md_alloc): Allocate problem data.
15471 (df_md_free): Free problem data; do not clear bitmaps.
15473 2010-06-10 Jan Beulich <jbeulich@novell.com>
15476 * configure.ac: Replace $() with ${} when intending to expand
15477 variables rather than invoking commands.
15478 * configure: Re-generate.
15480 2010-06-10 Jan Hubicka <jh@suse.cz>
15482 PR rtl-optimization/44460
15483 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
15484 TYPE_NEEDS_CONSTRUCTING sanity check.
15486 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
15488 * doc/include/fdl.texi: Move to GFDL version 1.3.
15490 * doc/cpp.texi: Move to GFDL version 1.3.
15491 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
15492 * doc/gccint.texi: Move to GFDL version 1.3.
15493 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
15494 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
15495 * doc/invoke.texi: Move to GFDL version 1.3.
15497 2010-06-09 Jan Hubicka <jh@suse.cz>
15499 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
15501 (propagate) ... here; swap the order.
15503 2010-06-09 Jan Hubicka <jh@suse.cz>
15505 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
15506 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
15507 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
15508 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
15510 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
15512 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
15513 Do not the gather memory reference in the outer loop if the step
15516 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
15518 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
15519 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
15520 8 to 4. Minor change of the related comments.
15522 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
15524 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
15525 the scev analysis when the variable is not used outside the loop
15526 in a close phi node: call compute_overall_effect_of_inner_loop.
15528 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
15530 * graphite-sese-to-poly.c (single_pred_cond): Renamed
15531 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
15532 (build_sese_conditions_before): Renamed call to single_pred_cond.
15533 (build_sese_conditions_after): Same.
15535 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
15537 * graphite-poly.h: Fix comments and indentation.
15538 * graphite-sese-to-poly.c: Same.
15539 (build_sese_conditions_before): Compute stmt and gbb only when needed.
15540 * tree-chrec.c: Fix comments and indentation.
15541 (tree-ssa-loop-niter.c): Same.
15543 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
15545 PR rtl-optimization/42461
15546 * dce.c (deletable_insn_p): Return true for const or pure calls again.
15547 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
15549 2010-06-09 Jan Hubicka <jh@suse.cz>
15551 * bitmap.c (bitmap_and): Walk array forward.
15552 (bitmap_and_compl_into): Likewise.
15553 (bitmap_xor): Likewise.
15554 (bitmap_xor_into): Likewise.
15555 (bitmap_equal_p): Likewise.
15556 (bitmap_intersect_p): Likewise.
15557 (bitmap_intersect_compl_p): Likewise.
15558 (bitmap_ior_and_into): Likewise.
15559 (bitmap_elt_copy): Likewise.
15560 (bitmap_and_compl): Likewise.
15561 (bitmap_elt_ior): Likewise.
15563 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
15565 * opts-common.c (prune_options): Ensure replacement argv array
15566 is correctly terminated by a NULL entry.
15568 2010-06-09 Jan Hubicka <jh@suse.cz>
15570 * cgraph.h (varpool_first_static_initializer,
15571 varpool_next_static_initializer): Make checking only when
15573 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
15574 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
15575 gcc_assert to gcc_checking_assert.
15576 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
15577 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
15578 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
15579 op_iter_init_phiuse, op_iter_init_phidef,
15580 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
15581 gcc_checking_assert.
15582 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
15583 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
15584 partition_is_global, live_on_entry, live_on_exit,
15585 live_merge_and_clear): Likewise.
15586 * system.h (gcc_checking_assert): New macro.
15587 * gimple.h (set_bb_seq): Use gcc_checking_assert.
15589 2010-06-09 Jason Merrill <jason@redhat.com>
15591 * Makefile.in (TAGS): Collect tags info from c-family.
15593 2010-06-09 Jan Hubicka <jh@suse.cz>
15595 * gimple.h (gcc_gimple_checking_assert): New macro.
15596 (gimple_set_def_ops, gimple_set_use_ops,
15597 gimple_set_vuse, gimple_set_vdef,
15598 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
15599 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
15600 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
15601 gimple_asm_output_op, gimple_asm_output_op_ptr,
15602 gimple_asm_set_output_op, gimple_asm_clobber_op,
15603 gimple_asm_set_clobber_op, gimple_asm_label_op,
15604 gimple_asm_set_label_op, gimple_try_set_kind,
15605 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
15606 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
15607 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
15608 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
15609 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
15610 gimple_omp_for_set_initial, gimple_omp_for_final,
15611 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
15612 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
15613 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
15614 conditional with ENABLE_GIMPLE_CHECKING.
15615 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
15617 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
15619 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
15620 (get_computation_cost_at): Use it.
15621 (determine_use_iv_cost_condition): Likewise.
15622 (determine_iv_cost): Likewise.
15624 2010-06-09 Richard Guenther <rguenther@suse.de>
15626 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
15629 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
15631 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
15633 2010-06-09 Martin Jambor <mjambor@suse.cz>
15635 PR tree-optimization/44423
15636 * tree-sra.c (dump_access): Dump also grp_assignment_read.
15637 (analyze_access_subtree): Pass negative allow_replacements to children
15638 if the current type is scalar.
15640 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
15643 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
15644 * doc/plugins.texi (Plugin license check): Update information
15645 on type of plugin_is_GPL_compatible.
15646 * Makefile.in (PLUGINCC): Define as $(COMPILER).
15647 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
15649 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
15651 * config/arm/arm.c (thumb2_reorg): New function.
15652 (arm_reorg): Call it.
15653 * config/arm/thumb2.md (define_peephole2 for flag clobbering
15654 arithmetic operations): Delete.
15656 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
15659 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
15662 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
15665 * gcc-plugin.h: Encapsulate all declarations in extern "C".
15667 2010-06-08 Jan Hubicka <jh@suse.cz>
15669 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
15670 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
15672 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
15674 PR tree-optimization/39874
15675 PR middle-end/28685
15676 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
15678 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
15679 same_bool_result_p): New.
15680 (and_var_with_comparison, and_var_with_comparison_1,
15681 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
15682 (or_var_with_comparison, or_var_with_comparison_1,
15683 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
15684 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
15685 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
15686 of combine_comparisons.
15687 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
15689 2010-06-08 Anatoly Sokolov <aesok@post.ru>
15691 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
15692 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15693 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
15694 pdp11_function_value_regno_p): New functions.
15695 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15696 TARGET_FUNCTION_VALUE_REGNO_P): Define.
15698 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
15700 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
15701 Thumb-2 in the MINUS case.
15703 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
15705 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
15707 * doc/gty.texi (GTY Options): Document typed GC allocation and
15708 variable_size GTY option.
15710 * ggc-internal.h: New.
15712 * ggc.h: Update copyright year.
15713 (digit_string): Move to stringpool.c.
15714 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
15715 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
15716 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
15717 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
15718 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
15719 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
15720 (ggc_force_collect, ggc_get_size, ggc_statistics)
15721 (ggc_print_common_statistics): Move to ggc-internal.h.
15722 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
15723 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
15724 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
15725 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
15726 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
15727 (ggc_alloc_zone_pass_stat): Remove.
15728 (ggc_internal_alloc_stat, ggc_internal_alloc)
15729 (ggc_internal_cleared_alloc_stat): New.
15730 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
15731 (ggc_internal_vec_alloc_stat)
15732 (ggc_internal_cleared_vec_alloc_stat)
15733 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
15734 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
15735 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
15736 (ggc_cleared_alloc_ptr_array_two_args): New.
15737 (htab_create_ggc, splay_tree_new_ggc): Redefine.
15738 (ggc_splay_alloc): Change the type of the first argument to
15739 enum gt_types_enum.
15740 (ggc_alloc_string): Make macro.
15741 (ggc_alloc_string_stat): New.
15742 (ggc_strdup): Redefine.
15743 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
15744 (ggc_alloc_rtvec_sized): New.
15745 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
15746 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
15747 (ggc_internal_cleared_alloc_zone_stat)
15748 (ggc_internal_zone_alloc_stat)
15749 (ggc_internal_zone_cleared_alloc_stat)
15750 (ggc_internal_zone_vec_alloc_stat)
15751 (ggc_alloc_zone_rtx_def_stat)
15752 (ggc_alloc_zone_tree_node_stat)
15753 (ggc_alloc_zone_cleared_tree_node_stat)
15754 (ggc_alloc_cleared_gimple_statement_d_stat): New.
15756 * ggc-common.c: Include ggc-internal.h.
15757 (ggc_internal_cleared_alloc_stat): Rename from
15758 ggc_alloc_cleared_stat.
15759 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
15760 (ggc_calloc): Remove.
15761 (ggc_cleared_alloc_htab_ignore_args): New.
15762 (ggc_cleared_alloc_ptr_array_two_args): New.
15763 (ggc_splay_alloc): Add obj_type parameter.
15764 (init_ggc_heuristics): Formatting fixes.
15766 * ggc-none.c: Update copyright year.
15767 (ggc_alloc_stat): Rename to ggc_alloc_stat.
15768 (ggc_alloc_cleared_stat): Rename to
15769 ggc_internal_cleared_alloc_stat.
15770 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
15772 * ggc-page.c: Update copyright year. Include ggc-internal.h.
15773 Remove references to ggc_alloc in comments.
15774 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
15775 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
15776 (new_ggc_zone, destroy_ggc_zone): Remove.
15777 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
15779 * ggc-zone.c: Include ggc-internal.h. Remove references to
15780 ggc_alloc in comments.
15781 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
15782 (ggc_internal_alloc_zone_pass_stat): New.
15783 (ggc_internal_cleared_alloc_zone_stat): New.
15784 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
15785 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
15786 (new_ggc_zone, destroy_ggc_zone): Remove.
15788 * stringpool.c: Update copyright year. Include ggc-internal.h
15789 (digit_vector): Make static.
15790 (digit_string): Moved from ggc.h.
15791 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
15792 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
15794 * Makefile.in (GGC_INTERNAL_H): New.
15795 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
15796 $(GGC_INTERNAL_H) to dependencies.
15798 * gentype.c: Update copyright year.
15799 (walk_type): Accept variable_size GTY option.
15800 (USED_BY_TYPED_GC_P): New macro.
15801 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
15802 whitespace at the end of strings.
15803 (get_type_specifier, variable_size_p): New functions.
15804 (alloc_quantity, alloc_zone): New enums.
15805 (write_typed_alloc_def): New function.
15806 (write_typed_struct_alloc_def): Likewise.
15807 (write_typed_typed_typedef_alloc_def): Likewise.
15808 (write_typed_alloc_defns): Likewise.
15809 (output_typename, write_splay_tree_allocator_def): Likewise.
15810 (write_splay_tree_allocators): Likewise.
15811 (main): Call write_typed_alloc_defns and
15812 write_splay_tree_allocators.
15814 * lto-streamer.h (lto_file_decl_data_ptr): New.
15816 * passes.c (order): Define using cgraph_node_ptr.
15818 * strinpool.c (struct string_pool_data): Declare nested_ptr using
15821 * gimple.h (union gimple_statement_d): Likewise.
15823 * rtl.h (struct rtx_def): Likewise.
15824 (struct rtvec_def): Likewise.
15826 * tree.h (union tree_node): Likewise.
15828 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
15830 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
15832 * tree-scalar-evolution.c (scev_initialize): Likewise.
15834 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
15836 * dwarf2asm.c (dw2_force_const_mem): Likewise.
15838 * omp-low.c (lower_omp_critical): Likewise.
15840 * bitmap.h (struct bitmap_head_def): Update comment to not
15841 reference ggc_alloc.
15843 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
15845 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
15847 * ipa-prop.c (duplicate_ggc_array): Rename to
15848 duplicate_ipa_jump_func_array. Use typed GC allocation.
15849 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
15851 * gimple.c (gimple_alloc_stat): Use
15852 ggc_alloc_cleared_gimple_statement_d_stat.
15854 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
15856 * tree.c (make_node_stat): Use
15857 ggc_alloc_zone_cleared_tree_node_stat.
15858 (make_tree_vec_stat): Likewise.
15859 (build_vl_exp_stat): Likewise.
15860 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
15861 (make_tree_binfo_stat): Likewise.
15862 (tree_cons_stat): Likewise.
15864 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
15865 (shallow_copy_rtx_stat): Likewise.
15866 (make_node_stat): Likewise.
15868 * lto-symtab.c: Fix comment.
15870 * tree-cfg.c (create_bb): Update comment to not reference
15872 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
15874 * varpool.c (varpool_node): Use typed GC allocation.
15875 (varpool_extra_name_alias): Likewise.
15877 * varasm.c (emutls_decl): Likewise.
15878 (get_unnamed_section): Likewise.
15879 (get_noswitch_section): Likewise.
15880 (get_section): Likewise.
15881 (get_block_for_section): Likewise.
15882 (build_constant_desc): Likewise.
15883 (create_constant_pool): Likewise.
15884 (force_const_mem): Likewise.
15886 * tree.c (build_vl_exp_stat): Likewise.
15887 (build_real): Likewise.
15888 (build_string): Likewise.
15889 (decl_debug_expr_insert): Likewise.
15890 (decl_value_expr_insert): Likewise.
15891 (type_hash_add): Likewise.
15892 (build_omp_clause): Likewise.
15894 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
15896 * tree-ssa.c (init_tree_ssa): Likewise.
15898 * tree-ssa-structalias.c (heapvar_insert): Likewise.
15900 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15902 * tree-ssa-loop-niter.c (record_estimate): Likewise.
15904 * tree-ssa-alias.c (get_ptr_info): Likewise.
15906 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15908 * tree-phinodes.c (allocate_phi_node): Likewise.
15910 * tree-iterator.c (tsi_link_before): Likewise.
15911 (tsi_link_after): Likewise.
15913 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15915 * tree-dfa.c (create_var_ann): Likewise.
15917 * tree-cfg.c (create_bb): Likewise.
15919 * toplev.c (alloc_for_identifier_to_locale): Likewise.
15920 (general_init): Likewise.
15922 * stringpool.c (stringpool_ggc_alloc): Likewise.
15923 (gt_pch_save_stringpool): Likewise.
15925 * sese.c (if_region_set_false_region): Likewise.
15927 * passes.c (do_per_function_toporder): Likewise.
15929 * optabs.c (set_optab_libfunc): Likewise.
15930 (set_conv_libfunc): Likewise.
15932 * lto-symtab.c (lto_symtab_register_decl): Likewise.
15934 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15935 (input_eh_region): Likewise.
15936 (input_eh_lp): Likewise.
15937 (make_new_block): Likewise.
15938 (unpack_ts_real_cst_value_fields): Likewise.
15940 * lto-section-in.c (lto_new_in_decl_state): Likewise.
15942 * lto-cgraph.c (input_node_opt_summary): Likewise.
15944 * loop-init.c (loop_optimizer_init): Likewise.
15946 * lambda.h (lambda_vector_new): Likewise.
15948 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
15950 * ira.c (update_equiv_regs): Likewise.
15952 * ipa.c (cgraph_node_set_new): Likewise.
15953 (cgraph_node_set_add): Likewise.
15954 (varpool_node_set_new): Likewise.
15955 (varpool_node_set_add): Likewise.
15957 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
15958 (duplicate_ipa_jump_func_array): Likewise.
15959 (ipa_read_node_info): Likewise.
15961 * ipa-cp.c (ipcp_create_replace_map): Likewise.
15963 * integrate.c (get_hard_reg_initial_val): Likewise.
15965 * gimple.c (gimple_alloc_stat): Likewise.
15966 (gimple_build_omp_for): Likewise.
15967 (gimple_seq_alloc): Likewise.
15968 (gimple_copy): Likewise.
15970 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
15971 (gsi_insert_after_without_update): Likewise.
15973 * function.c (add_frame_space): Likewise.
15974 (insert_temp_slot_address): Likewise.
15975 (assign_stack_temp_for_type): Likewise.
15976 (allocate_struct_function): Likewise.
15977 (types_used_by_var_decl_insert): Likewise.
15979 * except.c (init_eh_for_function): Likewise.
15980 (gen_eh_region): Likewise.
15981 (gen_eh_region_catch): Likewise.
15982 (gen_eh_landing_pad): Likewise.
15983 (add_call_site): Likewise.
15985 * emit-rtl.c (get_mem_attrs): Likewise.
15986 (get_reg_attrs): Likewise.
15987 (start_sequence): Likewise.
15988 (init_emit): Likewise.
15990 * dwarf2out.c (new_cfi): Likewise.
15991 (queue_reg_save): Likewise.
15992 (dwarf2out_frame_init): Likewise.
15993 (new_loc_descr): Likewise.
15994 (find_AT_string): Likewise.
15995 (new_die): Likewise.
15996 (add_var_loc_to_decl): Likewise.
15997 (clone_die): Likewise.
15998 (clone_as_declaration): Likewise.
15999 (break_out_comdat_types): Likewise.
16000 (new_loc_list): Likewise.
16001 (loc_descriptor): Likewise.
16002 (add_loc_descr_to_each): Likewise.
16003 (add_const_value_attribute): Likewise.
16004 (tree_add_const_value_attribute): Likewise.
16005 (add_comp_dir_attribute): Likewise.
16006 (add_name_and_src_coords_attributes): Likewise.
16007 (lookup_filename): Likewise.
16008 (store_vcall_insn): Likewise.
16009 (dwarf2out_init): Likewise.
16011 * dbxout.c (dbxout_init): Likewise.
16013 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
16015 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
16017 * config/score/score7.c (score7_output_external): Likewise.
16019 * config/score/score3.c (score3_output_external): Likewise.
16021 * config/s390/s390.c (s390_init_machine_status): Likewise.
16023 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
16024 (rs6000_init_machine_status): Likewise.
16025 (output_toc): Likewise.
16027 * config/pa/pa.c (pa_init_machine_status): Likewise.
16028 (get_deferred_plabel): Likewise.
16030 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
16032 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
16034 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
16036 * config/mep/mep.c (mep_init_machine_status): Likewise.
16037 (mep_note_pragma_flag): Likewise.
16039 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
16041 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
16043 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
16045 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
16046 (i386_pe_maybe_record_exported_symbol): Likewise.
16048 * config/i386/i386.c (get_dllimport_decl): Likewise.
16049 (ix86_init_machine_status): Likewise.
16050 (assign_386_stack_local): Likewise.
16052 * config/frv/frv.c (frv_init_machine_status): Likewise.
16054 * config/darwin.c (machopic_indirection_name): Likewise.
16056 * config/cris/cris.c (cris_init_machine_status): Likewise.
16058 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
16060 * config/avr/avr.c (avr_init_machine_status): Likewise.
16062 * config/arm/arm.c (arm_init_machine_status): Likewise.
16064 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
16065 (alpha_need_linkage): Likewise.
16066 (alpha_use_linkage): Likewise.
16068 * cgraph.c (cgraph_allocate_node): Likewise.
16069 (cgraph_create_edge_1): Likewise.
16070 (cgraph_create_indirect_edge): Likewise.
16071 (cgraph_add_asm_node): Likewise.
16073 * cfgrtl.c (init_rtl_bb_info): Likewise.
16075 * cfgloop.c (alloc_loop): Likewise.
16076 (rescan_loop_exit): Likewise.
16078 * cfg.c (init_flow): Likewise.
16079 (alloc_block): Likewise.
16080 (unchecked_make_edge): Likewise.
16082 * c-parser.c (c_parse_init): Likewise.
16083 (c_parse_file): Likewise.
16085 * c-decl.c (bind): Likewise.
16086 (record_inline_static): Likewise.
16087 (push_scope): Likewise.
16088 (make_label): Likewise.
16089 (lookup_label_for_goto): Likewise.
16090 (finish_struct): Likewise.
16091 (finish_enum): Likewise.
16092 (c_push_function_context): Likewise.
16094 * bitmap.c (bitmap_element_allocate): Likewise.
16095 (bitmap_gc_alloc_stat): Likewise.
16097 * alias.c (record_alias_subset): Likewise.
16098 (init_alias_analysis): Likewise.
16100 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
16102 * fold-const.c (fold_comparison): Remove redundant parenthesis.
16103 * tree-inline.c (expand_call_inline): Pass translated return value of
16104 cgraph_inline_failed_string to diagnostic function.
16106 2010-06-08 Andrew Pinski <pinskia@gmail.com>
16107 Shujing Zhao <pearly.zhao@oracle.com>
16110 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
16111 implicit bad conversions is initialization.
16112 (error_init): Use gmsgid instead of msgid for argument name and change
16113 the call for error.
16114 (pedwarn_init): Use gmsgid instead of msgid for argument name and
16115 change the call for pedwarn.
16116 (warning_init): Use gmsgid instead of msgid for argument name and
16117 change the call for warning.
16119 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
16121 * config/mips/mips-protos.h (mips_print_operand): Delete.
16122 (mips_print_operand_address): Delete.
16123 * config/mips/mips.h (mips_print_operand_punct): Delete.
16124 (PRINT_OPERAND): Delete.
16125 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16126 (PRINT_OPERAND_ADDRESS): Delete.
16127 * config/mips/mips.c (mips_print_operand_punct): Make static.
16128 (mips_print_operand_address): Make static.
16129 (mips_print_operand): Make static. Call
16130 mips_print_operand_punct_valid_p.
16131 (mips_print_operand_punct_valid_p): New function.
16132 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
16133 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16135 2010-06-07 Jan Hubicka <jh@suse.cz>
16137 PR middle-end/44454
16138 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
16141 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
16143 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
16146 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16148 * doc/sourcebuild.texi (Effective-Target Keywords, Other
16149 attributes): Document gas.
16151 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
16153 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
16154 <TYPE_LEA>: Split instruction.
16155 <default>: Remove alternative 2 handling.
16156 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
16157 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
16158 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
16160 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
16161 (ashift_zext lea splitter): Use DImode for multiplication.
16163 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
16164 to generate addition.
16166 2010-06-07 Joseph Myers <joseph@codesourcery.com>
16168 * common.opt (fira-verbose): Use Var.
16169 (fpcc-struct-return): Use Init instead of VarExists.
16170 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
16172 * flags.h (flag_signed_char, flag_short_enums,
16173 flag_pcc_struct_return, flag_ira_verbose,
16174 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
16175 * toplev.c (flag_detailed_statistics, flag_signed_char,
16176 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
16177 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
16178 * toplev.h (flag_crossjumping, flag_if_conversion,
16179 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
16180 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
16181 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
16182 flag_cprop_registers, time_report, flag_ira_loop_pressure,
16183 flag_ira_coalesce, flag_ira_move_spills,
16184 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
16186 2010-06-07 Jan Hubicka <jh@suse.cz>
16188 * df-core.c (df_analyze_problem): Do verification after allocation.
16190 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
16191 (df_lr_alloc): Initialize problem data; move bitmaps to
16192 lr_bitmaps obstack.
16193 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
16194 (df_lr_verify_solution_start): Do not initialize problem data;
16195 allocate bitmaps in lr_bitmaps.
16196 (df_lr_verify_solution_end): Do not free problem data.
16198 2010-06-07 Jan Hubicka <jh@suse.cz>
16200 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
16201 if caller is noreturn.
16202 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
16203 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
16204 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
16205 * ipa-pure-const.c (check_decl): Add IPA parameter.
16206 (state_from_flags): New function.
16207 (better_state, worse_state): New functions.
16208 (check_call): When in IPA mode, do not care about callees.
16209 (check_load, check_store): Update.
16210 (check_ipa_load, check_ipa_store): New.
16211 (check_stmt): When in IPA mode, use IPA checkers.
16212 (analyze_function): Use state_from_flags.
16213 (propagate): Check indirect edges and references.
16215 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
16217 PR rtl-optimization/44404
16218 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
16219 of count_occurrences to see if it's safe to modify mem_insn.
16221 2010-06-07 Richard Guenther <rguenther@suse.de>
16223 * gimplify.c (gimplify_cleanup_point_expr): For empty body
16224 and EH-only cleanup drop the cleanup instead of inserting it
16227 2010-06-07 Ira Rosen <irar@il.ibm.com>
16229 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
16231 * targhooks.c (default_builtin_vectorization_cost): New function.
16232 * targhooks.h (default_builtin_vectorization_cost): Declare.
16233 * target.h (enum vect_cost_for_stmt): Define.
16234 (builtin_vectorization_cost): Change argument and comment.
16235 * tree-vectorizer.h: Remove cost model macros.
16236 * tree-vect-loop.c: Include target.h.
16237 (vect_get_cost): New function.
16238 (vect_estimate_min_profitable_iters): Replace cost model macros with
16239 calls to vect_get_cost.
16240 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
16241 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
16242 default implementation.
16243 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
16244 calls to target hook builtin_vectorization_cost.
16245 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
16247 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
16248 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
16249 implementation to return costs.
16250 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
16251 * config/spu/spu.h: Remove vectorizer cost model macros.
16252 * config/i386/i386.h: Likewise.
16253 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
16254 a call to target hook builtin_vectorization_cost.
16256 2010-06-06 Sriraman Tallam <tmsriram@google.com>
16259 * config/i386/i386.c (override_options): Turn zee pass on for level 2
16260 and above and defer till target is known.
16261 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
16262 turn off otherwise.
16264 2010-05-25 Jan Hubicka <jh@suse.cz>
16266 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
16267 (df_compact_blocks): Likewise.
16268 * df.h (struct df): Turn hardware_regs_used,
16269 regular_block_artificial_uses, eh_block_artificial_uses,
16270 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
16272 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
16273 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
16274 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
16275 df_scan_blocks, df_insn_delete, df_insn_rescan,
16276 df_insn_rescan_debug_internal, df_insn_rescan_all,
16277 df_process_deferred_rescans, df_process_deferred_rescans,
16278 df_notes_rescan, df_get_call_refs, df_get_call_refs,
16279 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
16280 df_record_entry_block_defs, df_record_exit_block_uses,
16281 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
16282 df_scan_verify): Update.
16284 2010-05-25 Dodji Seketeli <dodji@redhat.com>
16287 * c-common.c (is_typedef_decl): Move this definition ...
16288 * tree.c (is_typedef_decl): ... here.
16289 (typdef_variant_p): Move definition here from cp/tree.c.
16290 * c-common.h (is_typedef_decl): Move this declaration ...
16291 * tree.h (is_typedef_decl): ... here.
16292 (typedef_variant_p): Move declaration here from cp/cp-tree.h
16293 * dwarf2out.c (is_naming_typedef_decl): New function.
16294 (gen_tagged_type_die): Split out of ...
16295 (gen_type_die_with_usage): ... this function. When an anonymous
16296 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
16297 is emitted for the typedef.
16298 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
16299 anonymous tagged types.
16301 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
16304 * c-decl.c (grokdeclarator): Delete warning.
16306 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
16308 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
16309 newly built CALL_EXPR.
16310 * tree-profile.c (tree_profiling): Don't profile functions produced
16311 for built-in stuff.
16313 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
16317 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
16318 endianness-independent.
16320 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
16322 * c-common.c: Move to c-family/.
16323 * c-common.def: Likewise.
16324 * c-common.h: Likewise.
16325 * c-cppbuiltin.c: Likewise.
16326 * c-dump.c: Likewise.
16327 * c-format.c: Likewise.
16328 * c-format.h : Likewise.
16329 * c-gimplify.c: Likewise.
16330 * c-lex.c: Likewise.
16331 * c-omp.c: Likewise.
16333 * c-opts.c: Likewise.
16334 * c-pch.c: Likewise.
16335 * c-ppoutput.c: Likewise.
16336 * c-pragma.c: Likewise.
16337 * c-pragma.h: Likewise.
16338 * c-pretty-print.c: Likewise.
16339 * c-pretty-print.h: Likewise.
16340 * c-semantics.c: Likewise.
16341 * stub-objc.c: Likewise.
16343 * gengtype.c (get_file_langdir): Special-case files in c-family/.
16344 (get_output_file_with_visibility): Fix name for c-common.h.
16345 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
16347 * c-tree.h: Update include path for moved files.
16348 * c-lang.c: Likewise.
16349 * c-lang.h: Likewise.
16350 * c-parser.c: Likewise.
16351 * c-convert.c: Likewise.
16352 * c-decl.c: Likewise.
16353 * c-objc-common.c: Likewise.
16354 * configure.ac: Make sure c-family/ exists in the build directory.
16355 * configure: Regenerate.
16356 * Makefile.in: Update paths for moved files. Regroup files per
16357 location and update dependencies. Move generated_files down after
16360 * config/spu/spu-c.c: Update paths for moved files.
16361 * config/mep/mep-pragma.c: Likewise.
16362 * config/darwin-c.c: Likewise.
16363 * config/i386/msformat-c.c: Likewise.
16364 * config/i386/i386-c.c: Likewise.
16365 * config/avr/avr-c.c: Likewise.
16366 * config/sol2-c.c: Likewise.
16367 * config/ia64/ia64-c.c: Likewise.
16368 * config/rs6000/rs6000-c.c: Likewise.
16369 * config/arm/arm.c: Likewise.
16370 * config/arm/arm-c.c: Likewise.
16371 * config/h8300/h8300.c: Likewise.
16372 * config/v850/v850-c.c: Likewise.
16374 * config/t-darwin: Fix dependencies for moved files.
16375 * config/t-sol2: Fix dependencies for moved files.
16376 * config/mep/t-mep: Fix dependencies for moved files.
16377 * config/ia64/t-ia64: Fix dependencies for moved files.
16378 * config/rs6000/t-rs6000: Fix dependencies for moved files.
16379 * config/v850/t-v850: Fix dependencies for moved files.
16380 * config/v850/t-v850e: Fix dependencies for moved files.
16382 * config/m32c/m32c-pragma.c
16384 * po/exgettext: Look in c-family/ also.
16386 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
16388 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
16389 (mark_control_dependent_edges_necessary): Call it instead of marking
16390 the last statement manually.
16391 (propagate_necessity): Likewise.
16393 2010-06-05 Jan Hubicka <jh@suse.cz>
16395 * basic-block.h (compute_dominance_frontiers): Updated.
16396 (compute_idf): Likewise.
16398 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
16399 for dominance frontiers.
16400 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
16401 (insert_updated_phi_nodes_for): Likewise.
16402 (update_ssa): Likewise.
16403 * cfganal.c (compute_dominance_frontiers_1): Likewise.
16404 (compute_dominance_frontiers): Likewise.
16405 (compute_idf): Likewise.
16406 * df-problems.c (df_md_local_compute): Likewise.
16408 2010-06-05 Anatoly Sokolov <aesok@post.ru>
16410 * target.h (struct gcc_target): Add memory_move_cost field.
16411 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
16412 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
16413 * targhooks.c (default_memory_move_cost): New function.
16414 * targhooks.h (default_memory_move_cost): Declare function.
16415 * reload.h (memory_move_cost): Declare.
16416 (memory_move_secondary_cost): Change type of 'in' argument to bool.
16417 * reginfo.c (memory_move_cost): New function.
16418 (memory_move_secondary_cost): Change type of 'in' argument to bool.
16419 * ira.h (ira_memory_move_cost): Update comment.
16420 * ira.c (ira_memory_move_cost): Update comment.
16421 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
16422 with memory_move_cost.
16423 * postreload.c (reload_cse_simplify_set): (Ditto.).
16424 * reload1.c (choose_reload_regs): (Ditto.).
16425 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
16426 (MEMORY_MOVE_COST): Revise documentation.
16428 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
16429 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
16430 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
16431 type of 'in' argument to bool.
16432 (TARGET_MEMORY_MOVE_COST): Define.
16434 2010-06-05 Jan Hubicka <jh@suse.cz>
16436 * ipa-pure-const.c (propagate): Fix typo in handling of functions
16437 that cannot return. Be more careful when merging the results with
16438 previously known ones.
16440 2010-06-05 Matthias Klose <doko@ubuntu.com>
16442 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
16443 function to add the -iplugindir option.
16444 (find_plugindir_spec_function): Add new declaration and function.
16445 (static_spec_func): Use it for "find-plugindir".
16447 2010-06-05 Jakub Jelinek <jakub@redhat.com>
16450 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
16451 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
16452 statement expression.
16454 2010-06-05 Jan Hubicka <jh@suse.cz>
16456 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
16457 (df_rd_problem_data): Convert sparse_invalidated_by_call,
16458 dense_invalidated_by_call to bitmap head.
16459 (df_rd_alloc, df_rd_bb_local_compute_process_def,
16460 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
16461 df_rd_start_dump, df_lr_verify_transfer_functions,
16462 df_live_verify_transfer_functions, df_chain_create_bb,
16463 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
16464 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
16465 df_simulate_one_insn_forwards, df_md_alloc,
16466 df_md_bb_local_compute_process_def,
16467 df_md_bb_local_compute_process_def, df_md_local_compute,
16468 df_md_transfer_function df_md_free): Update.
16470 2010-06-05 Joseph Myers <joseph@codesourcery.com>
16473 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
16474 target type for ADDR_EXPR; require no changes to qualifiers except
16475 for function types.
16476 * c-tree.h (c_build_type_variant): Remove.
16478 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
16480 * genautomata.c (get_excl_set): Do work per element, not per char.
16481 (check_presence_pattern_sets): Similar.
16482 (check_absence_pattern_sets): Similar.
16484 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
16486 * genautomata.c (curr_state_pass_num): Delete.
16487 (min_issue_delay_pass_states): Delete.
16488 (min_issue_delay): Delete.
16489 (initiate_min_issue_delay_pass_states): Delete.
16490 (output_min_issue_delay_table): Compute min_issue_delay_vect
16491 using a breadth-first search variant.
16492 (output_tables): Don't call initiate_min_issue_delay_pass_states.
16494 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
16497 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
16498 (df_byte_lr_bb_local_compute): Likewise.
16500 2010-06-03 Jason Merrill <jason@redhat.com>
16502 Implement noexcept operator (5.3.7)
16503 * c-common.c (c_common_reswords): Add noexcept.
16504 * c-common.h (enum rid): Add RID_NOEXCEPT.
16506 2010-06-04 Joseph Myers <joseph@codesourcery.com>
16508 * config/darwin-driver.c (darwin_default_min_version): Use
16509 GCC-specific formats in diagnostics.
16510 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
16512 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
16513 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
16514 eval_spec_function, handle_braces, process_brace_body, main,
16515 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
16516 getenv_spec_function, compare_version_strings,
16517 version_compare_spec_function): Use GCC-specific formats in
16520 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
16522 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
16523 that operand 0 and operand 1 are equal.
16524 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
16525 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
16526 and operand 1 are equal.
16527 <default>: Ditto. Remove ??? comment.
16528 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
16529 and operand 1 are equal.
16530 <default>: Ditto. Remove ??? comment.
16531 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
16533 (*add<mode>_4) <default>: Ditto.
16534 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
16536 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
16538 * config/i386/i386-protos.h (ix86_print_operand): Declare.
16539 * config/i386/i386.c (ix86_print_operand): Make non-static.
16540 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
16541 * output.h (output_operand): Declare.
16542 * final.c (output_operand): Make non-static.
16544 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
16546 PR rtl-optimization/44013
16547 * sched-deps.c (add_dependence_list_and_free): Don't free lists
16548 when processing debug insns.
16551 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
16552 recursing. Check that recursion is bounded. Rename inner var
16553 to avoid hiding incoming argument.
16555 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
16557 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
16558 operands[2] == 255.
16562 (*addqi_ext_1_rex64): Ditto.
16563 (*addqi_ext_1): Ditto.
16565 (*addqi_4): Check for incdec_operand in QImode.
16567 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
16568 using SWI mode iterator.
16569 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
16570 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
16572 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
16573 using SWI mode iterator.
16575 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
16578 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
16579 * c-format.c (gcc_diag_flag_specs): Add hash.
16580 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
16581 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
16582 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
16583 pp_c_cv_qualifiers. Handle qualifiers spelling here.
16584 (pp_c_type_qualifier_list): Call the function above.
16585 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
16586 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
16587 (WARN_FOR_QUALIFIERS): New macro.
16588 (convert_for_assignment): Use it.
16590 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
16592 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
16594 2010-06-04 Jan Hubicka <jh@suse.cz>
16596 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
16597 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
16598 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
16599 DF_BYTE_LR_OUT): Update for embedded bitmaps.
16600 * fwprop.c (single_def_use_enter_block): Likewise.
16601 * ddg.c (create_ddg_dep_from_intra_loop_link,
16602 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
16603 * loop-iv.c (latch_dominating_def): Likewise.
16604 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
16605 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
16606 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
16607 df_rd_transfer_function, df_rd_top_dump,
16608 df_rd_bottom_dump): Update.
16609 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
16610 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
16611 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
16612 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
16613 df_lr_verify_solution_start, df_lr_verify_solution_end,
16614 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
16615 df_live_free_bb_info, df_live_alloc, df_live_reset,
16616 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
16617 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
16618 df_live_verify_solution_start, df_live_verify_solution_end,
16619 df_live_verify_transfer_functions, df_chain_create_bb,
16620 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
16621 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
16622 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
16623 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
16624 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
16625 df_byte_lr_transfer_function, df_byte_lr_top_dump,
16626 df_byte_lr_bottom_dump, df_create_unused_note,
16627 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
16628 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
16629 df_md_transfer_function, df_md_init, df_md_confluence_0,
16630 df_md_confluence_n,
16631 df_md_top_dump, df_md_bottom_dump): Update.
16632 (struct df_lr_problem_data): Embedd bitmap headers.
16634 2010-06-04 Jan Hubicka <jh@suse.cz>
16636 * dce.c (dce_process_block): Do not re-scan already marked
16639 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
16641 PR rtl-optimization/39871
16642 PR rtl-optimization/40615
16643 PR rtl-optimization/42500
16644 PR rtl-optimization/42502
16645 * ira.c (init_reg_equiv_memory_loc: New function.
16646 (ira): Call it twice.
16647 * reload.h (calculate_elim_costs_all_insns): Declare.
16648 * ira-costs.c: Include "reload.h".
16649 (regno_equiv_gains): New static variable.
16650 (init_costs): Allocate it.
16651 (finish_costs): Free it.
16652 (ira_costs): Call calculate_elim_costs_all_insns.
16653 (find_costs_and_classes): Take estimated elimination costs
16655 (ira_adjust_equiv_reg_cost): New function.
16656 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
16657 * reload1.c (init_eliminable_invariants, free_reg_equiv,
16658 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
16659 (elim_bb): New static variable.
16660 (reload): Move code out of here into init_eliminable_invariants and
16661 free_reg_equiv. Call them.
16662 (calculate_elim_costs_all_insns): New function.
16663 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
16664 all callers changed. If FOR_COSTS is true, don't call alter_reg,
16665 but call note_reg_elim_costly if we turned a valid memory address
16666 into an invalid one.
16667 * Makefile.in (ira-costs.o): Depend on reload.h.
16669 2010-06-04 Julian Brown <julian@codesourcery.com>
16671 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
16674 2010-06-04 Richard Guenther <rguenther@suse.de>
16677 * cgraph.h (struct varpool_node): Add lto_file_data field.
16678 * lto-cgraph.c (input_varpool_node): Initialize it.
16680 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
16682 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
16683 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
16684 predicate in "type" attribute calculation.
16685 (*addsi_1_zext): Ditto.
16686 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
16687 (*addsi_2_zext): Ditto.
16688 (*add<mode>_3): Ditto.
16689 (*addsi_3_zext): Ditto.
16690 (*add<mode>_5): Ditto.
16692 2010-06-03 Jan Hubicka <jh@suse.cz>
16694 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
16696 * cfganal.c (compute_dominance_frontiers_1): Likewise.
16698 2010-06-03 Jan Hubicka <jh@suse.cz>
16700 * df-problems.c (df_create_unused_note, df_note_bb_compute):
16701 micro-optimize the checks when to add new note.
16703 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
16705 * final.c (output_asm_insn): Call
16706 targetm.asm_out.print_operand_punct_valid_p. Update comments.
16707 (output_operand): Call targetm.asm_out.print_operand. Update comments.
16708 (output_address): Call targetm.asm_out.print_operand_address.
16710 * target.h (struct gcc_target): Add print_operand,
16711 print_operand_address, and print_operand_punct_valid_p fields.
16712 * targhooks.h (default_print_operand): Declare.
16713 (default_print_operand_address): Declare.
16714 (default_print_operand_punct_valid_p): Declare.
16715 * targhooks.c (default_print_operand): Define.
16716 (default_print_operand_address): Define.
16717 (default_print_operand_punct_valid_p): Define.
16718 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
16719 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
16720 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
16721 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
16722 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
16723 * vmsdbgout.c (addr_const_to_string): Update comment.
16724 * config/i386/i386.c (print_operand): Rename to...
16725 (ix86_print_operand): ...this. Make static.
16726 (print_operand_address): Rename to...
16727 (ix86_print_operand_address): ...this. Make static. Call
16728 ix86_print_operand instead of PRINT_OPERAND.
16729 (ix86_print_operand_punct_valid_p): New function.
16730 (TARGET_PRINT_OPERAND): Define.
16731 (TARGET_PRINT_OPERAND_ADDRESS): Define.
16732 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16733 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
16734 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16735 (PRINT_OPERAND): Delete.
16736 (PRINT_OPERAND_ADDRESS): Delete.
16737 * config/i386/i386-protos.h (print_operand): Delete prototype.
16738 (print_operand_address): Delete prototype.
16740 2010-06-03 Richard Guenther <rguenther@suse.de>
16742 PR tree-optimization/44403
16743 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
16744 Preserve pointer qualifiers.
16745 (vect_create_data_ref_ptr): Likewise.
16747 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
16750 * defaults.h (MAX_FIXED_MODE_SIZE): New.
16752 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
16754 2010-06-03 Jakub Jelinek <jakub@redhat.com>
16757 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
16758 return false if merging the bbs would lead to goto_locus
16759 location being lost from the IL.
16761 2010-06-03 Jan Hubicka <jh@suse.cz>
16762 Jakub Jelinek <jakub@redhat.com>
16764 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
16765 set->regs[i] is NULL or has just one entry.
16767 2010-06-03 Jan Hubicka <jh@suse.cz>
16769 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
16770 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
16772 2010-06-03 Paul Brook <paul@codesourcery.com>
16774 * config/arm/arm.c (FL_TUNE): Define.
16775 (arm_default_cpu, arm_cpu_select): Remove.
16776 (all_cores): Populate core field.
16777 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
16778 (arm_find_cpu): New function.
16779 (arm_handle_option): Lookup cpu/architecture names.
16780 (arm_override_options): Cleanup mcpu/march/mtune handling.
16781 (arm_file_start): Ditto.
16783 2010-06-03 Alan Modra <amodra@gmail.com>
16786 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
16787 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
16788 rtx to gen_load_toc_v4_PIC_1b. Tidy.
16789 (rs6000_emit_load_toc_table): Likewise.
16791 2010-06-02 Jan Hubicka <jh@suse.cz>
16793 * passes.c (init_optimization_passes): Put ipa reference
16794 after ipa pure-const.
16796 2010-06-02 Jan Hubicka <jh@suse.cz>
16798 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
16799 calls_read_all and calls_write_all.
16800 (get_reference_optimization_summary): Fix formatting.
16801 (is_proper_for_analysis): Check that decl is not readonly.
16802 (propagate_bits): Check CONST/PURE/noreturn flags.
16803 (ipa_init): Move all_module_statics to optimization_summary_obstack.
16804 (analyze_function): Ignore indirect edges.
16805 (copy_global_bitmap): For all module statics, do nothing.
16806 (generate_summary): Do not print calls_read_all/calls_write_all.
16807 (read_write_all_from_decl): Take node as argument; check
16808 cgraph_node_cannot_return.
16809 (propagate): Reorganize read_all/write_all computation;
16810 check indirect edges; check ecf flags; use all_module_statics
16811 in the results; do not free all_module_statics.
16812 (stream_out_bitmap): Handle all_module_statics.
16813 (ipa_reference_write_optimization_summary): Likewise; use
16814 varpool/cgraph encoders to get boundaries.
16815 (ipa_reference_read_optimization_summary): Read in all_module_statics;
16816 use it when possible.
16818 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16821 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
16822 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
16824 * doc/extend.texi (powerpc builtins): Document vec_recip,
16825 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
16827 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
16828 (rs6000_emit_swrsqrt): Ditto.
16829 (rs6000_emit_swdivsf): Delete.
16830 (rs6000_emit_swdivdf): Ditto.
16831 (rs6000_emit_swrsqrtsf): Ditto.
16833 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
16834 describe the reciprocal estimate support for each type.
16835 (recip_options): Map -mrecip=<opt> into option bits.
16836 (gen_2arg_fn_t): New typedef for binary rtx gen function.
16837 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
16838 reciprocal estimate instructions.
16839 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
16840 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
16841 Set up rs6000_recip_bits based on the -mrecip* options. Print the
16842 cost information if -mdebug=cost or -mdebug=reg.
16843 (rs6000_override_options): Set -mrecip-precision for power6, and
16844 power7 machines. If -mvsx or -mdfp, enable various options that
16845 came in previous instruction set ISAs, unless the option was
16846 explicitly disabled by the command line option. Parse
16847 -mrecip=<opt> options.
16848 (rs6000_builtin_vectorized_function): Add support for vectorizing
16849 the reciprocal estimate builtins and expansions.
16850 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
16851 (bdesc_2arg): Add reciprocal estimate builtins.
16852 (bdesc_1arg): Add reciprocal square root estimate builtins.
16853 (rs6000_expand_builtin): Rewrite to use a switch statement,
16854 instead of multiple if/then/elses. Add reciprocal estimate builtins.
16855 (rs6000_init_builtins): Create declarations for reciprocal
16857 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
16858 sized, prefer traditional floating point registers, if integer
16859 vector types, prefer altivec registers. Don't actually look at
16860 the memory address any more.
16861 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
16863 (rs6000_load_constant_and_splat): New helper function to load up
16864 the constant for reciprocal estimate instructions.
16865 (rs6000_emit_madd): New helper function for generating
16866 multiply/add type instructions, based on the current switches.
16867 (rs6000_emit_msub): Ditto.
16868 (rs6000_emit_mnsub): Ditto.
16869 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
16870 replace a divide with a reciprocal estimate and fixup, adding
16871 support for machines with high precision and vectors.
16872 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
16873 low precision machines.
16874 (rs6000_emit_swdiv): New common function to be called to replace a
16875 division with reciprocal estimate and fixup.
16876 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
16877 for double and vector types. Add support for high precision machines.
16879 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
16880 the reciprocal estimate instructions can be generated.
16881 (TARGET_FRE): Ditto.
16882 (TARGET_FRSQRTES): Ditto.
16883 (TARGET_FRSQRTE): Ditto.
16884 (RS6000_RECIP_*): New macros for reciprocal estimate support.
16886 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
16887 square root estimate on vectors.
16888 (re<mode>2): New insn for reciprocal division estimate on vectors.
16890 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
16892 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
16893 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
16894 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
16895 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
16896 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
16897 (RS6000_BUILTIN_RSQRT): Ditto.
16898 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
16899 floating point builtin.
16901 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
16902 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
16903 __RECIP_PRECISION__ based on the command line switches.
16904 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
16906 * config/rs6000/rs6000.opt (-mrecip): Document add support for
16907 replacing division instructions with reciprocal estimate and fixup.
16908 (-mrecip=<opt>): New option.
16909 (-mrecip-precision): Ditto.
16911 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
16912 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
16913 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
16916 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
16917 (UNSPEC_VREFP): Ditto.
16918 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
16919 conterparts with regard to support of -mno-fused-madd and -ffast-math.
16920 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
16921 reciprocal estimate instructions to be generated.
16922 (altivec_vrefp): Ditto.
16924 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
16926 (rreg): New mode attribute for reciprocal estimate support.
16927 (recip<mode>3): New insn for division using reciprocal estimate
16928 and fixup builtins.
16929 (divide define_split): New define_split to convert floating point
16930 division to use reciprocal estimate if the user used the
16931 appropriate options and the split is run when we can add new
16932 pseudo registers for the fixup.
16933 (rsqrt<mode>2): New insn for reciprocal square root support.
16934 (recipsf3): Move into recip<mode>3.
16936 (fres): Use TARGET_FRES.
16937 (rsqrtsf2): Move into rsqrt<mode>2.
16938 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
16939 (copysignsf3): Add support for VSX.
16940 (fred): Use TARGET_FRE.
16942 (rsqrtdf_internal1): New function for frsqrte instruciton.
16944 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
16945 (vec_rsqrt): Ditto.
16947 2010-06-03 Richard Guenther <rguenther@suse.de>
16949 PR middle-end/44291
16950 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
16951 (set_user_assembler_libfunc): Likewise.
16953 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
16955 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
16957 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
16959 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
16960 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
16961 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
16962 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
16963 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
16964 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
16965 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
16966 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
16967 * defaults.h: Updated for above mentioned changes.
16969 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
16971 * c-common.c: Remove header include of tm_p.h.
16972 * Makefile.in (c-common.o): Remove TM_P_H dependency.
16974 2010-06-02 Jakub Jelinek <jakub@redhat.com>
16976 * tree.h (struct tree_decl_map): New type.
16977 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
16978 (tree_decl_map_hash): New prototype.
16979 (debug_expr_for_decl, value_expr_for_decl): Change into
16980 tree_decl_map hashtab from tree_map.
16981 (init_ttree): Adjust initialization.
16982 (tree_decl_map_hash): New function.
16983 (decl_debug_expr_lookup, decl_debug_expr_insert,
16984 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
16986 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16988 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
16990 * configure: Regenerate.
16991 * config.in: Regenerate.
16993 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
16994 (X86_64_EMULATION): Define.
16995 (TARGET_LD_EMULATION): Use them.
16997 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
16998 (SPARC64_EMULATION): Define.
16999 (LINK_ARCH_SPEC): Use them.
17001 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
17003 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
17004 smallest_mode_for_size for computing the precision types of new
17005 graphite IVs. Do not call lang_hooks.types.type_for_size.
17007 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
17009 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
17011 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
17013 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
17015 PR middle-end/44363
17016 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
17017 return false instead.
17019 2010-06-02 Jan Hubicka <jh@suse.cz>
17021 PR middle-end/44295
17022 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
17023 create new cgraph node to check callee.
17025 2010-06-02 Richard Guenther <rguenther@suse.de>
17027 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
17029 2010-06-02 Richard Guenther <rguenther@suse.de>
17031 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
17032 (lto_wrapper_cleanup): ... this. Do not exit.
17033 (fatal): Adjust. Exit here.
17034 (fatal_perror): Likewise.
17035 (fatal_signal): New function.
17036 (main): Set up signal handlers to cleanup temporary files.
17037 * Makefile.in (lto-wrapper.o): Adjust dependencies.
17039 2010-06-02 Richard Guenther <rguenther@suse.de>
17041 PR tree-optimization/44377
17042 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
17044 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17046 * config/s390/2097.md (z10_fhex): Remove insn reservation.
17047 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
17048 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
17049 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
17051 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
17053 2010-06-02 Jan Hubicka <jh@suse.cz>
17055 * bitmap.c (bitmap_descriptor): Add search_iter.
17056 (bitmap_find_bit): Increment it.
17057 (print_statistics): Print it.
17059 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
17061 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
17062 instead of gimple_build_call_vec. Delete unnecessary local variable.
17064 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
17066 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
17067 change from yesterday.
17069 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
17071 * c-ada-spec.c: Clean up redundant includes.
17073 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
17075 * gimplify.c: Do not include except.h and optabs.h.
17076 (gimplify_body): Do not initialize RTL profiling.
17077 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
17078 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
17079 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
17080 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
17083 * tree-pretty-print.h: Include pretty-print.h.
17084 * gimple-pretty-print.h: Include pretty-print.h.
17086 * tree-pretty-print.c: Do not include diagnostic.h.
17087 * tree-vrp.c: Likewise.
17088 * tree-tailcall.c: Likewise
17089 * tree-scalar-evolution.c: Likewise
17090 * tree-ssa-dse.c: Likewise
17091 * tree-chrec.c: Likewise
17092 * tree-ssa-sccvn.c: Likewise
17093 * tree-ssa-copyrename.c: Likewise
17094 * tree-nomudflap.c: Likewise
17095 * tree-call-cdce.c: Likewise
17096 * tree-stdarg.c: Likewise
17097 * tree-ssa-math-opts.c: Likewise
17098 * tree-nrv.c: Likewise
17099 * tree-ssa-sink.c: Likewise
17100 * tree-browser.c: Likewise
17101 * tree-ssa-loop-ivcanon.c: Likewise
17102 * tree-ssa-loop.c: Likewise
17103 * tree-parloops.c: Likewise
17104 * tree-ssa-address.c: Likewise
17105 * tree-ssa-ifcombine.c: Likewise
17106 * tree-if-conv.c: Likewise
17107 * tree-data-ref.c: Likewise
17108 * tree-affine.c: Likewise
17109 * tree-ssa-phiopt.c: Likewise
17110 * tree-ssa-coalesce.c: Likewise
17111 * tree-ssa-pre.c: Likewise
17112 * tree-ssa-live.c: Likewise
17113 * tree-predcom.c: Likewise
17114 * tree-ssa-forwprop.c: Likewise
17115 * tree-ssa-dce.c: Likewise
17116 * tree-ssa-ter.c: Likewise
17117 * tree-ssa-loop-prefetch.c: Likewise
17118 * tree-optimize.c: Likewise
17119 * tree-ssa-phiprop.c: Likewise
17120 * tree-object-size.c: Likewise
17121 * tree-outof-ssa.c: Likewise
17122 * tree-ssa-structalias.c: Likewise
17123 * tree-switch-conversion.c: Likewise
17124 * tree-ssa-reassoc.c: Likewise
17125 * tree-ssa-operands.c: Likewise
17126 * tree-vectorizer.c: Likewise
17127 * tree-vect-data-refs.c: Likewise
17128 * tree-vect-generic.c: Likewise
17129 * tree-vect-stmts.c: Likewise
17130 * tree-vect-patterns.c: Likewise
17131 * tree-vect-slp.c: Likewise
17132 * tree-vect-loop.c: Likewise
17133 * tree-ssa-loop-ivopts.c: Likewise
17134 * tree-ssa-loop-im.c: Likewise
17135 * tree-ssa-loop-niter.c: Likewise
17136 * tree-ssa-loop-unswitch.c: Likewise
17137 * tree-ssa-loop-manip.c: Likewise
17138 * tree-ssa-loop-ch.c: Likewise
17139 * tree-dump.c: Likewise
17140 * tree-complex.c: Likewise
17142 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
17143 * tree-ssa-uninit.c: Likewise
17144 * tree-ssa-threadupdate.c: Likewise
17145 * tree-ssa-uncprop.c: Likewise
17146 * tree-ssa-ccp.c: Likewise
17147 * tree-ssa-dom.c: Likewise
17148 * tree-ssa-propagate.c: Likewise
17149 * tree-ssa-alias.c: Likewise
17150 * tree-dfa.c: Likewise
17151 * tree-cfgcleanup.c: Likewise
17152 * tree-sra.c: Likewise
17153 * tree-ssa-copy.c: Likewise
17154 * tree-ssa.c: Likewise
17155 * tree-profile.c: Likewise
17156 * tree-cfg.c: Likewise
17157 * tree-ssa-threadedge.c: Likewise
17158 * tree-vect-loop-manip.c: Likewise
17160 * tree-inline.c: Do not include diagnostic.h and expr.h.
17162 (copy_decl_for_dup_finish): Do not use NULL_RTX.
17164 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
17165 * tree-loop-distribution.c: Likewise.
17167 2010-06-01 Jan Hubicka <jh@suse.cz>
17169 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
17171 2010-06-01 Jan Hubicka <jh@suse.cz>
17173 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
17174 remove return value.
17175 (split_bbs_on_noreturn_calls) .... here.
17176 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
17177 * tree-flow.h (fixup_noreturn_call): New.
17179 2010-06-01 Jan Hubicka <jh@suse.cz>
17181 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
17183 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
17185 * tree.h (build_nt_call_list): Delete.
17186 * tree.c (build_nt_call_list): Delete.
17188 2010-06-01 Jan Hubicka <jh@suse.cz>
17190 * fwprop.c: Make emit-rtl.h include last.
17191 * rtlanal.c: Include emit-rtl.h.
17192 * genautomata.c: Output emit-rtl include into insn-automata.c
17193 * df-scan.c: Include emit-rtl.h.
17194 * haifa-sched.c: Indlude emit-rtl.h.
17195 * mode-switching.c: Indlude emit-rtl.h.
17196 * graph.c: Indlude emit-rtl.h.
17197 * sel-sched.c: Include emit-rtl.h.
17198 * sel-sched-ir.c: Include emit-rtl.h.
17199 * ira-build.c: Include emit-rtl.h.
17200 * emit-rtl.c (first_insn, last_insn): Remove defines.
17201 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
17202 Move to emit-rtl.h.
17203 (set_new_first_and_last_insn, get_last_insn_anywhere,
17204 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
17205 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
17206 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
17207 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
17208 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
17209 Use accessor functions.
17210 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
17211 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
17212 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
17213 mem_expr_equal_p): Move here from rtl.h.
17214 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
17215 Move here from emit-rtl.c; make inline.
17216 * cfglayout.h: Include emit-rtl.h.
17217 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
17218 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
17219 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
17220 mem_expr_equal_p, get_insns, set_first-insn,
17221 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
17222 * reg-stack.c: Include emit-rtl.h.
17225 2010-06-01 Jan Hubicka <jh@suse.cz>
17227 * cgraph.h (tree_function_versioning): Update prototype.
17228 (cgraph_function_versioning): Update prototype.
17229 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
17231 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
17232 (cgraph_materialize_clone, save_inline_function_body): Update use of
17233 tree_function_versioning.
17234 * tree-inline.c (copy_bb): Look for previous copied block to link
17235 after; fix debug output.
17236 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
17237 (copy_body): Likewise.
17238 (expand_call_inline): Update use of copy_body.
17239 (tree_function_versioning): Update use of copy body; accept
17240 blocks_to_copy and new_entry.
17242 2010-06-01 Jan Hubicka <jh@suse.cz>
17244 * gegenrtl.c: Remove unnecesary prototypes.
17246 (gendef): Produce static inline.
17248 (main): Do not decode parameters; generate header only.
17249 * Makefile.in (genrtl.c): Remove.
17251 2010-06-01 Jan Hubicka <jh@suse.cz>
17253 * tree-switch-conversion.c (build_one_array): Make it readonly.
17255 2010-06-01 Richard Guenther <rguenther@suse.de>
17257 * optabs.c (init_optabs): Guard all accesses to reinit.
17258 * ipa-pure-const.c (propagate): Fix another typo.
17259 * opts.c (common_handle_option): Split assignment to bool.
17260 * c-opts.c (c_common_handle_option): Likewise.
17262 2010-06-01 Arnaud Charlet <charlet@adacore.com>
17263 Matthew Gingell <gingell@adacore.com>
17265 * doc/invoke.texi: Mention -fdump-ada-spec.
17266 * tree-dump.c (dump_files): Add ada-spec.
17267 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
17268 * tree-pass.h (tree_dump_index): Add TDI_ada.
17269 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
17270 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
17271 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
17272 * c-decl.c: Include c-ada-spec.h.
17273 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
17275 (c_write_global_declarations): Add handling of -fdump-ada-spec.
17276 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
17277 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
17278 * c-ada-spec.h, c-ada-spec.c: New files.
17280 2010-06-01 Richard Guenther <rguenther@suse.de>
17283 * ipa-pure-const.c (get_function_state): Hand back varying state
17284 if we do not have one.
17285 (has_function_state): New function.
17286 (duplicate_node_data): Adjust.
17287 (remove_node_data): Likewise.
17288 (pure_const_write_summary): Likewise.
17289 (propagate): Likewise. Fix typo.
17291 2010-06-01 Jan Hubicka <jh@suse.cz>
17293 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
17294 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
17295 (execute_all_ipa_transforms): Do not play with the states.
17297 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
17299 * config/arm/t-linux-androideabi: New.
17300 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
17302 2010-06-01 Jan Hubicka <jh@suse.cz>
17304 * tree-inline.c (estimate_num_insns): For stdarg functions look
17305 into call statement to count cost of argument passing.
17307 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
17309 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
17310 argument for fprintf.
17311 (ix86_output_addr_diff_elt): Likewise.
17312 (x86_function_profiler): Likewise.
17313 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
17314 (LPREFIX): Likewise.
17315 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
17317 2010-05-31 Jakub Jelinek <jakub@redhat.com>
17320 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
17321 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
17322 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
17323 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
17324 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
17325 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
17326 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
17327 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
17330 2010-05-31 Jan Hubicka <jh@suse.cz>
17332 * tree.h (tree_range_check_failed): Declare noreturn.
17334 2010-05-31 Jan Hubicka <jh@suse.cz>
17336 * gimple.c (gimple_call_builtin_p): New function.
17337 * gimple.h (gimple_call_builtin_p): Declare.
17338 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
17340 (execute_warn_function_return): BUILT_IN_RETURN is return.
17341 (split_critical_edges): Return edges are not critical.
17342 (is_ctrl_altering_stmt): Builtin_in_return is altering.
17343 (gimple_verify_flow_info): Handle built_in_return.
17344 (execute_warn_function_return): Handle built_in_return.
17345 * ipa-pure-const.c (check_call): Ignore builtin_return.
17347 2010-05-31 Jakub Jelinek <jakub@redhat.com>
17349 PR middle-end/44337
17350 * expr.c (expand_assignment): Don't store anything for out-of-bounds
17351 array accesses with non-MEM.
17353 PR tree-optimization/44182
17354 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
17355 newly needs to end a bb is followed by debug stmts, instead return
17356 true from the function at the end.
17357 (maybe_move_debug_stmts_to_successors): New function.
17358 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
17360 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
17363 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
17365 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
17367 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
17368 for nested functions in non-optimized compilation.
17370 2010-05-31 Richard Guenther <rguenther@suse.de>
17372 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
17374 2010-05-30 Jan Hubicka <jh@suse.cz>
17376 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
17378 2010-05-30 Richard Guenther <rguenther@suse.de>
17381 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
17382 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
17385 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
17387 * config/darwin.c (output_objc_section_asm_op): Add comment.
17388 (name_needs_quotes): Add '_' to list of valid comment chars.
17389 (machopic_output_function_base_name): Remove unneeded quotes.
17390 (darwin_encode_section_info): Adjust asm whitespace.
17391 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
17392 (ASM_OUTPUT_LOCAL): Ditto.
17393 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
17394 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
17395 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
17397 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
17399 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
17400 RS6000_OUTPUT_BASENAME unconditionally.
17401 (rs6000_output_function_epilogue): Likewise.
17403 2010-05-30 Jan Hubicka <jh@suse.cz>
17405 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
17408 2010-05-30 Richard Guenther <rguenther@suse.de>
17410 * tree-cfg.c (verify_gimple_assign_single): Implement
17411 verification for COND_EXPR rhs.
17413 2010-05-30 Jan Hubicka <jh@suse.cz>
17415 * cgraph.h (cgraph_dump_file): Declare.
17416 * cgraphunit.c (cgraph_dump_file): Export.
17417 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
17419 2010-05-30 Jan Hubicka <jh@suse.cz>
17421 * dwarf2out.c (reference_to_unused,
17422 premark_types_used_by_global_vars_helper): Avoid creation of new
17425 2010-05-30 Jan Hubicka <jh@suse.cz>
17427 * cgraph.h (cgraph_node_cannot_return,
17428 cgraph_edge_cannot_lead_to_return): New functions.
17429 * cgraph.c (cgraph_node_cannot_return,
17430 cgraph_edge_cannot_lead_to_return): Use them.
17431 * ipa-pure-const.c (pure_const_names): New static var.
17432 (check_call): Handle calls not leading to return.
17433 (pure_const_read_summary): Dump info read.
17434 (propagate): Dump info about propagation process; ignore side effects
17435 of functions not leading to exit; fix handling of pure functions.
17437 2010-05-30 Jan Hubicka <jh@suse.cz>
17439 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
17440 for tail call epilogues.
17442 2010-05-30 Jan Hubicka <jh@suse.cz>
17444 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
17445 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
17448 2010-05-29 Jan Hubicka <jh@suse.cz>
17450 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
17451 node; remove references in node we no longer keep in cgrpah but need
17454 2010-05-29 Jan Hubicka <jh@suse.cz>
17456 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
17458 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17461 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
17463 2010-05-29 Jan Hubicka <jh@suse.cz>
17465 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
17466 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
17467 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
17468 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
17469 debug_names_replaced_by, debug_update_ssa): Likewise.
17470 * sbitmap.c (debug_sbitmap): Likewise.
17471 * genrecog.c (debug_decision, debug_decision_list): Likewise.
17472 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
17473 debug_tree_chain): Likewise.
17474 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
17475 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
17476 * optabs.c (debug_optab_libfuncs): Likewise.
17477 (verify_loop_closed_ssa): Likewise.
17478 * value-prof.c (verify_histograms): Likewise.
17479 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
17480 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
17481 * cfghooks.c (verify_flow_info): Likewise.
17482 * fold-const.c (debug_fold_checksum): Likewise.
17483 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
17484 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
17486 * omega.c (debug_omega_problem): Likewise.
17487 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
17488 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
17489 * dominance.c (verify_dominators, debug_dominance_info,
17490 debug_dominance_tree): Likewise.
17491 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
17492 * df_regno_debug, df_ref_debug,
17493 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
17494 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
17495 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
17496 * sel-sched.c (debug_state): Likewise.
17497 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
17499 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
17500 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
17501 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
17502 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
17504 * c-pretty-print.c (debug_c_tree): Likewise.
17505 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
17506 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
17507 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
17508 * ebitmap.c (debug_ebitmap): Likewise.
17509 * function.c (debug_find_var_in_block_tree): Likewise.
17510 * print-rtl.c (debug_rtx): Likewise.
17511 (debug_rtx_count): Likewise.
17512 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
17513 * stor-layout.c (debug_rli): Likewise.
17514 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
17515 * tree-data-ref.c (debug_data_references,
17516 debug_data_dependence_relations, debug_data_reference,
17517 debug_data_dependence_relation, debug_rdg_vertex,
17518 debug_rdg_component, debug_rdg): Likewise.
17519 * tree-affine.c (debug_aff): Likewise.
17520 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
17522 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
17523 * emit-rtl.c (verify_rtl_sharing): Likewise.
17524 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
17525 debug_value_expressions): Likewise.
17526 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
17527 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
17528 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
17529 * cfglayout.c (verify_insn_chain): Likewise.
17530 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
17531 debug_clast_stmt, debug_generated_program): Likewise.
17532 * ggc-page.c (debug_print_page_list): Likewise.
17533 * tree-ssa-ter.c (debug_ter): Likewise.
17534 * graphite-dependences.c (debug_pddr): Likewise.
17535 * sched-deps.c (debug_ds): Likewise.
17536 * tree-ssa.c (verify_ssa): Likewise.
17537 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
17538 debug_scattering_functions, debug_iteration_domains, debug_pdr,
17539 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
17540 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
17541 * tree-inline.c (debug_find_tree): Likewise.
17542 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
17543 debug_ppl_powerset_matrix): Likewise.
17544 * var-tracking.c (debug_dv): Likewise.
17545 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
17546 * cfgloop.c (verify_loop_structure): Likewise.
17547 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
17548 * c-common.c (verify_sequence_points): Likewise.
17549 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
17550 debug_candidates, debug_rgn_dependencies): Likewise.
17551 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
17552 * debug_constraint_graph, debug_solution_for_var,
17553 debug_sa_points_to_info): Likewise.
17554 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
17556 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
17557 debug_loops, debug_loop, debug_loop_num): Likewise.
17558 * passes.c (debug_pass): Likewise.
17559 (dump_properties): Likewise; add cfglayout property.
17560 (debug_properties): Likewise.
17561 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
17562 * varpool.c (debug_varpool): Likewise.
17563 * regcprop.c (debug_value_data): Likewise.
17564 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
17565 debug_immediate_uses_for): Likewise.
17567 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
17570 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
17571 Filter out insn-flags.h.
17573 2010-05-29 Jan Hubicka <jh@suse.cz>
17575 * cgraph.h (struct varpool_node_set_def,
17576 struct cgraph_node_set_def): Remove unused AUX pointer.
17577 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
17580 2010-05-29 Jan Hubicka <jh@suse.cz>
17582 PR middle-end/44324
17583 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
17585 2010-05-29 Richard Guenther <rguenther@suse.de>
17587 * lto-streamer.c (cached_bp): New global variable.
17588 (bitpack_create): Return the cached bitpack, if available.
17589 (bitpack_delete): Clear and cache the bitpack, if appropriate.
17590 (bp_pack_value): Remove redundant asserts.
17592 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
17594 PR middle-end/44306
17595 * tree-if-conv.c (is_true_predicate): New.
17596 (is_predicated): Use is_true_predicate.
17597 (add_to_predicate_list): Same. Do not use unshare_expr.
17598 (add_to_dst_predicate_list): Same.
17600 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
17602 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
17604 (predicate_bbs): Same.
17605 (clean_predicate_lists): Same.
17606 (find_phi_replacement_condition): Do not AND the predicate from
17609 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
17612 * Makefile.in (build/gencondmd.o): Add a missing `\'.
17614 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17617 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
17618 (negdf2): Adjust expander pattern and use negdf2_slow.
17619 (negsf2): Likewise.
17621 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
17623 * basic-block.h (struct control_flow_graph): Move last_label_uid field
17625 * df.h (struct df_base_ref): Move regno field up.
17626 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
17627 * expr.h (struct separate_ops): Move location field up.
17628 * optabs.h (struct optab_d): Move libcall_basename field down.
17629 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
17630 * config/i386/i386.h (struct machine_function): Convert call_abi field
17631 into a bitfield. Move cfa field to the end of the structure.
17633 2010-05-29 Jan Hubicka <jh@suse.cz>
17635 * varpool.c (varpool_get_node): Fix lookup.
17637 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
17639 * config/spu/spu-protos.h: Do not include rtl.h. Protect
17640 RTL specific prototypes with #ifdef RTX_CODE.
17641 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
17642 * config/spu/t-spu-elf: Fix dependencies.
17644 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
17646 2010-05-29 Mike Stump <mikestump@comcast.net>
17649 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
17650 TM_H when building to avoid dependency loops.
17652 2010-05-29 Jan Hubicka <jh@suse.cz>
17654 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
17655 refs and body; not the whole node for masters of materialized clones.
17657 2010-05-29 Mike Stump <mikestump@comcast.net>
17659 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
17661 2010-05-29 Jan Hubicka <jh@suse.cz>
17663 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
17664 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
17665 use of clone_function_name.
17666 * cgraph.h (cgraph_create_virtual_clone,
17667 cgraph_function_versioning): update prototypes.
17668 (clone_function_name): Declare.
17669 * ipa-cp.c (ipcp_insert_stage): Update call of
17670 cgraph_create_virtual_clone.
17671 * omp-low.c (create_omp_child_function_name): Use
17672 cgraph_create_virtual_clone.
17673 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
17674 (cgraph_function_versioning): Take SUFFIX argument; produce new name
17675 and make decl local.
17677 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
17679 * vec.h: Include statistics.h
17680 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
17683 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
17685 * c-lex.c: Do not include c-tree.h.
17686 * c-pretty-print.c: Likewise.
17687 * c-opts.c: Likewise.
17688 * c-gimplify.c: Likewise.
17689 * c-common.c: Likewise.
17690 * c-dump.c: Likewise. Include c-common.h.
17692 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
17694 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
17695 before including diagnostic-core.h.
17696 (c_cpp_error): New prototype moved from c-tree.h.
17697 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
17698 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
17699 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
17700 (c_cpp_error): Prototype moved to c-common.h.
17701 * Makefile.in: Update dependency for C_COMMON_H.
17703 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
17705 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
17706 * c-common.c (c_register_addr_space): Remove here.
17707 * c-decl.c (c_register_addr_space): Re-add here.
17709 2010-05-28 Mike Stump <mikestump@comcast.net>
17711 * config/darwin-c.c: Remove c-tree.h include.
17713 2010-05-28 Joseph Myers <joseph@codesourcery.com>
17715 * gcc.c: Include diagnostic.h.
17716 (error_count): Remove. All users changed to use errorcount.
17717 (programname): Remove. All users changed to use progname.
17718 (fancy_abort, internal_error, fatal_error, error, warning, inform,
17720 (execute): Don't include "Internal error" and bug reporting
17721 information in argument of internal_error call.
17722 (process_command): Don't increment error_count after calling
17724 (input_filename): Rename to gcc_input_filename. All users
17726 (main): Call diagnostic_initialize. Register delete_temp_files
17727 with atexit. Use seen_error to test for errors.
17728 * gcc.h: Include diagnostic-core.h.
17729 (fatal_error, error, warning): Remove.
17730 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
17731 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
17732 (gcc.o): Update dependencies.
17734 2010-05-28 Jeff Law <law@redhat.com>
17736 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
17738 * ira.h (ira_bad_reload_regno): Declare
17739 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
17741 * ira-color.c (update_curr_costs): Free updated hard reg costs.
17742 (ira_reassign_conflict_allocnos): Remove bogus asserts.
17743 (allocno_reload_assign): Likewise.
17745 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
17747 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
17750 2010-05-28 Richard Guenther <rguenther@suse.de>
17753 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
17754 Stream fixed-point constants mode.
17755 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
17756 and TYPE_PRECISION.
17757 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
17758 Stream fixed-point constants mode.
17759 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
17760 and TYPE_PRECISION.
17762 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
17764 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
17765 only place it was called from.
17766 (number_of_latch_executions): Do not return chrec_dont_know when the
17767 may_be_zero is a runtime condition: instead, return a COND_EXPR
17768 including the may_be_zero condition.
17769 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
17771 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
17774 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
17776 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
17777 generate COND_EXPRs for degenerate_phi_result.
17779 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
17781 PR middle-end/44293
17782 * tree-if-conv.c (if_convertible_loop_p): Check the
17783 if-convertibility of phi nodes in non predicated BBs.
17785 2010-05-28 Joseph Myers <joseph@codesourcery.com>
17787 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
17789 2010-05-28 Joseph Myers <joseph@codesourcery.com>
17792 * gcc.c (inform, warning, inform): New functions.
17793 (fatal_ice): Rename to internal_error; change cmsgid parameter to
17794 gmsgid. All callers changed.
17795 (notice): Rename to fnotice; add parameter fp. All callers changed.
17796 (fatal_error): Rename to fatal_signal. All users changed.
17797 (fatal): Rename to fatal_error; change cmsgid parameter to
17798 gmsgid. All callers changed.
17799 (process_command): Use warning instead of error for warnings.
17800 (end_going_arg): Don't use _() around argument of error.
17801 (do_spec_1): Use inform for message from %n specs. Use warning
17802 instead of error for warnings.
17803 (main): Use inform for comparison messages. Use warning for
17804 message about unused linker input.
17805 (error): Increment error_count. Print "error: ".
17806 * gcc.h (fatal): Change to fatal_error.
17807 (warning): Declare.
17808 * config/darwin-driver.c (darwin_default_min_version): Use warning
17809 instead of fprintf for warnings.
17810 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
17812 2010-05-28 Julian Brown <julian@codesourcery.com>
17814 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
17815 (*thumb2_addsi3_compare0_scratch): New.
17816 * config/arm/constraints.md (Pv): New.
17817 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
17819 (*addsi3_compare0_scratch): Likewise.
17821 2010-05-28 Jan Hubicka <jh@suse.cz>
17823 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
17825 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
17826 only on local statics.
17828 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
17830 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
17832 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
17835 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
17836 (OPTION_GLIBC): Define.
17838 2010-05-28 Jakub Jelinek <jakub@redhat.com>
17841 * dwarf2out.c (double_int_type_size_in_bits): New function.
17842 (round_up_to_align): Change first argument and return value to
17844 (field_byte_offset): Work internally on double_ints.
17847 * builtins.c (expand_movstr): Use a temporary pseudo instead
17848 of target even when target is not NULL and not const0_rtx, but
17849 fails movstr predicate.
17850 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
17852 2010-05-28 Joseph Myers <joseph@codesourcery.com>
17854 * final.c (rest_of_clean_state): Use %m in errors instead of
17856 * gengtype.c (read_input_list, close_output_files): Use xstrerror
17857 instead of strerror.
17858 * toplev.c (process_options): Use %m in errors instead of strerror
17860 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
17863 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
17865 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
17866 (ix86_canonical_va_list_type): Make static. Add declaration.
17867 (ix86_enum_va_list): Make static. Reindent.
17868 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
17869 (ix86_canonical_va_list_type): Ditto.
17870 (ix86_enum_va_list): Ditto.
17872 2010-05-28 Richard Guenther <rguenther@suse.de>
17874 * lto-wrapper.c (run_gcc): With -save-temps generate a
17875 user-visible ltrans filename. Fixup ltrans unit numbering.
17877 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
17879 * c-common.c (c_common_nodes_and_builtins): Replace use
17880 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
17881 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
17882 to ix86_enum_va_list.
17883 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
17884 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
17885 (TARGET_ENUM_VA_LIST_P): Add hook description.
17886 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
17887 * target.h (gcc_target): Add enum_va_list hook.
17890 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
17891 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
17892 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
17894 2010-05-28 Alan Modra <amodra@gmail.com>
17897 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
17898 emit_library_call machinery to set up __tls_get_addr calls.
17900 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17902 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
17904 2010-05-28 Dodji Seketeli <dodji@redhat.com>
17906 Revert fix for PR c++/44188
17907 * c-common.c (is_typedef_decl): Revert the moving of this
17909 * tree.c (is_typedef_decl): ... here.
17910 (typdef_variant_p): Revert the moving of this definition
17911 here from cp/tree.c.
17912 * c-common.h (is_typedef_decl): Revert the moving of this
17914 * tree.h (is_typedef_decl): ... here.
17915 (typedef_variant_p): Revert the moving of this declaration here
17917 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
17918 (gen_tagged_type_die): Revert the splitting out of ...
17919 (gen_type_die_with_usage): ... this function. Revert the anonymous
17920 tagged type handling.
17921 (gen_typedef_die): Revert emitting DW_TAG_typedef for
17922 typedefs naming anonymous tagged types.
17924 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
17926 * config/rs6000/rs6000-modes.def (PSImode): Delete.
17928 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
17930 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
17931 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
17933 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
17935 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
17936 XER_REGS to CA_REGS throughout.
17937 * config/rs6000/rs6000.h: Same.
17938 (ADDITIONAL_REGISTER_NAMES): Add "xer".
17939 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
17940 that mode_iterator "P" is the size for arithmetic carries as well.
17941 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
17943 2010-05-28 Jakub Jelinek <jakub@redhat.com>
17946 * combine.c (struct rtx_subst_pair): Define unconditionally.
17947 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
17948 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
17949 Call make_compound_operation on pair->to.
17950 (propagate_for_debug): Don't call make_compound_operation here.
17951 Always use simplify_replace_fn_rtx.
17953 2010-05-27 Sterling Augustine <sterling@tensilica.com>
17955 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
17956 * config/xtensa/xtensa.c (override_options): Check
17957 TARGET_FORCE_NO_PIC and set flag_pic.
17958 * config/xtensa/xtensa.opt: Document -mforce-no-pic
17960 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
17963 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
17964 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
17966 2010-05-27 Joseph Myers <joseph@codesourcery.com>
17968 * diagnostic-core.h: New. Contents moved from diagnostic.h and
17970 * diagnostic.c: Don't include toplev.h.
17971 (progname): Define. Moved from toplev.c.
17972 (seen_error): New function.
17973 * diagnostic.h: Include diagnostic-core.h.
17974 (diagnostic_t, emit_diagnostic): Don't declare here.
17975 * toplev.c (progname): Move to toplev.c.
17976 (emit_debug_global_declarations, compile_file, finalize,
17977 do_compile, toplev_main): Use seen_error.
17978 * toplev.h: Include diagnostic-core.h.
17979 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
17980 internal_error, warning, warning_at, error, error_n, error_at,
17981 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
17982 verbatim, fnotice, progname): Move to diagnostic-core.h.
17983 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
17984 (expand_builtin_expect): Use seen_error.
17985 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
17986 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
17987 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
17988 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
17989 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
17990 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
17991 errorcount for errors.
17992 * c-opts.c (c_common_finish): Use seen_error.
17993 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
17994 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
17995 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
17996 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
17997 (get_coverage_counts): Use seen_error.
17998 * dwarf2out.c (dwarf2out_finish): Use seen_error.
17999 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
18000 gimplify_body): Use seen_error.
18001 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
18002 * ipa-pure-const.c (gate_pure_const): Use seen_error.
18003 * ipa-reference.c (gate_reference): Use seen_error.
18004 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
18005 * lambda-code.c: Include diagnostic-core.h instead of
18007 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
18008 * lto-compress.c: Include diagnostic-core.h instead of
18010 * lto-section-in.c: Include diagnostic-core.h instead of
18012 * lto-streamer-out.c: Include diagnostic-core.h instead of
18014 * lto-streamer.c: Include diagnostic-core.h instead of
18016 (gate_lto_out): Use seen_error.
18017 * matrix-reorg.c: Include diagnostic-core.h instead of
18019 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
18020 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
18021 (gate_expand_omp, lower_omp_1): Use seen_error.
18022 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
18023 (rest_of_decl_compilation, rest_of_type_compilation,
18024 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
18025 * tree-cfg.c (label_to_block_fn): Use seen_error.
18026 * tree-inline.c (optimize_inline_calls): Use seen_error.
18027 * tree-mudflap.c (mudflap_finish_file): Use
18029 * tree-optimize.c (gate_all_optimizations,
18030 gate_all_early_local_passes, gate_all_early_optimizations): Use
18032 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
18033 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
18034 (varpool_remove_unreferenced_decls,
18035 varpool_assemble_pending_decls): Use seen_error.
18036 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
18037 (TOPLEV_H, DIAGNOSTIC_H): Update.
18038 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
18039 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
18040 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
18041 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
18042 coverage.o, lambda-code.o): Update dependencies.
18044 2010-05-25 Dodji Seketeli <dodji@redhat.com>
18047 * c-common.c (is_typedef_decl): Move this definition ...
18048 * tree.c (is_typedef_decl): ... here.
18049 (typdef_variant_p): Move definition here from cp/tree.c.
18050 * c-common.h (is_typedef_decl): Move this declaration ...
18051 * tree.h (is_typedef_decl): ... here.
18052 (typedef_variant_p): Move declaration here from cp/cp-tree.h
18053 * dwarf2out.c (is_naming_typedef_decl): New function.
18054 (gen_tagged_type_die): Split out of ...
18055 (gen_type_die_with_usage): ... this function. When an anonymous
18056 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
18057 is emitted for the typedef.
18058 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
18059 anonymous tagged types.
18061 2010-05-27 Jason Merrill <jason@redhat.com>
18063 * print-tree.c (debug_vec_tree): New fn.
18064 (print_vec_tree): New fn.
18065 * tree.h: Declare them.
18066 * gdbinit.in (pvt): New command.
18068 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
18070 * gdbinit.in (pdd): New command.
18072 2010-05-27 Jan Hubicka <jh@suse.cz>
18074 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
18075 (update_caller_keys): Return early if there are no callers;
18076 only update fibheap when decresing the key.
18077 (update_callee_keys): Avoid recursion.
18078 (decide_inlining_of_small_functions): When badness does not match;
18079 re-insert into fibheap.
18081 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
18083 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
18084 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
18085 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
18086 (ALL_HOST_OBJS): Now a union of the above two.
18087 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
18088 all files in ALL_HOST_FRONTEND_OBJS.
18089 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
18091 * c-common.c: Pretend to be a backend file by undefining
18092 IN_GCC_FRONTEND (still need rtl.h here).
18094 2010-05-27 Jan Hubicka <jh@suse.cz>
18096 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
18097 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
18099 2010-05-27 Jan Hubicka <jh@suse.cz>
18101 * sched-ebb.c: Rename struct deps to struct deps_desc.
18103 * sel-sched-ir.c: Likewise.
18104 * sched-deps.c: Likewise.
18105 * sched-int.h: Likewise.
18106 * sched-rgn.c: Likewise.
18108 2010-05-27 Jon Beniston <jon@beniston.com>
18111 * config/lm32/lm32.h: Remove definition of
18112 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
18114 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
18117 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
18119 2010-05-27 Richard Guenther <rguenther@suse.de>
18121 PR tree-optimization/44284
18122 * tree-vect-stmts.c (vectorizable_assignment): Handle
18123 sign-changing conversions as simple copy.
18125 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18127 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
18129 (__gthread_active_p): Check for pthread_create if compiling against
18132 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18134 Support compilation for Android platform. Reimplement -mandroid.
18136 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
18137 (*android*): Set ANDROID_DEFAULT.
18138 (arm*-*-linux*): Include linux-android.h.
18139 (arm*-*-eabi*): Don't include previous -mandroid implementation.
18140 * config/arm/eabi.h: Remove, move Android-specific parts ...
18141 * config/linux-android.h: ... here. New file.
18142 * config/arm/eabi.opt: Rename to ...
18143 * config/linux-android.opt: ... this.
18144 (mandroid): Allow -mno-android option. Initialize based on
18146 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
18147 Move logic to corresponding LINUX_TARGET_* macros.
18148 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
18149 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
18150 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
18151 Android definitions.
18152 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
18153 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
18156 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18158 Add support for Bionic C library
18160 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
18162 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
18163 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
18165 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
18166 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
18167 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
18168 to support multiple C libraries. Handle Bionic.
18169 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
18170 (BIONIC_DYNAMIC_LINKER64): Define.
18171 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
18173 (TARGET_HAS_SINCOS): Enable for Bionic.
18175 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
18176 the last option specified on command line take effect.
18177 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
18179 (mglibc, muclibc): Update.
18181 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
18182 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
18185 * doc/invoke.texi (-mglibc, -muclibc): Update.
18186 (-mbionic): Document.
18188 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18190 * c-common.h (c_register_addr_space): Add prototype.
18191 (ADDR_SPACE_KEYWORD): Remove.
18192 * c-common.c (c_register_addr_space): New function.
18193 (c_addr_space_name): Reimplement.
18194 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
18196 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
18197 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
18199 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
18200 Remove TARGET_ADDR_SPACE_KEYWORDS.
18202 2010-05-27 Joseph Myers <joseph@codesourcery.com>
18204 * input.c: New file.
18205 * input.h (main_input_filename): Move declaration to toplev.h.
18206 * toplev.c (input_location, line_table): Move to input.c
18207 * toplev.h (main_input_filename): Move declaration from input.h.
18208 * tree.c (expand_location): Move to input.c.
18209 * Makefile.in (OBJS-common): Add input.o.
18210 (input.o): Add dependencies.
18212 2010-05-27 Richard Guenther <rguenther@suse.de>
18214 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
18215 for non-existant files.
18216 (fork_execute): Mark args_name file as deleted.
18218 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
18221 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
18222 (narrow_signed_type): Likewise.
18224 2010-05-26 Jan Hubicka <jh@suse.cz>
18226 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
18227 edge only when checking is enabled; check using former_clone_of;
18228 check inline clones too.
18229 (cgraph_materialize_clone): Record former_clone_of pointer.
18230 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
18231 combining redirections; dump args_to_skip bitmap
18232 (cgraph_materialize_all_clones): Do no redirection here.
18233 * ipa-inline.c (inline_transform): Do redirection here.
18234 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
18237 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
18239 * config/avr/avr-c.c: Do not include regs.h.
18240 Include cpplib.h for cpp_define and tree.h for c-common.h.
18241 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
18242 * config/avr/t-avr: Fix dependencies for avr-c.o.
18244 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
18246 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
18247 string instead of SYMBOL_REF rtx.
18248 * rtl.h (set_stack_check_libfunc): Move prototype from here...
18249 * libfuncs.h: ...to here. Adjust for explow.c change.
18251 2010-05-26 Joseph Myers <joseph@codesourcery.com>
18253 * pretty-print.c: Don't include ggc.h.
18254 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
18255 (identifier_to_locale): Use them for allocation.
18256 * pretty-print.h (identifier_to_locale_alloc,
18257 identifier_to_locale_free): Declare.
18258 * toplev.c (alloc_for_identifier_to_locale): New.
18259 (general_init): Set identifier_to_locale_alloc and
18260 identifier_to_locale_free.
18261 * Makefile.in (pretty-print.o): Update dependencies.
18263 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
18265 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
18266 pointer types if they have different alignment or mode.
18268 2010-05-26 Anatoly Sokolov <aesok@post.ru>
18270 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
18271 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
18272 * config/sparc/sparc-protos.h (function_value): Remove declaration.
18273 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
18274 sparc_function_value_regno_p): New functions.
18275 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
18276 TARGET_FUNCTION_VALUE_REGNO_P): Define.
18277 (function_value): Rename to...
18278 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
18279 argument to 'outgoing'.
18280 (function_arg_record_value, function_arg_union_value,
18281 function_arg_vector_value): Update comment.
18283 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
18285 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
18286 (fde_needed_for_eh_p): New predicate.
18287 (output_call_frame_info): Use it throughout to decide whether FDEs
18288 are needed for EH purpose.
18289 (dwarf2out_begin_prologue): Reorder assignments.
18291 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
18293 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
18294 special case loop->header.
18295 (is_predicated): New.
18296 (if_convertible_loop_p): Call it.
18298 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
18300 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
18301 iterator in parameter. Do not generate code during the analysis.
18302 (tree_if_convert_cond_stmt): Removed.
18303 (tree_if_convert_stmt): Removed.
18304 (predicate_bbs): New.
18305 (if_convertible_loop_p): Call predicate_bbs.
18306 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
18307 now contains all the analysis part.
18309 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
18311 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
18312 statements in the analysis part.
18313 (tree_if_convert_stmt): Update comment.
18314 (remove_conditions_and_labels): New.
18315 (combine_blocks): Call remove_conditions_and_labels.
18316 (tree_if_conversion): Update comment.
18318 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
18320 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
18321 than 2 predecessors or more than 2 successors.
18323 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
18325 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
18326 of loops in which the data dependence analysis fails.
18328 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
18330 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
18331 CDI_POST_DOMINATORS.
18332 (tree_if_conversion): Same.
18334 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
18336 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
18338 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
18340 * tree-if-conv.c: Update copyright years. Fix comments.
18343 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
18345 * builtin-types.def (BT_INT128): New primitive type.
18346 (BT_UINT128): Likewise.
18347 * c-common.c (c_common_r): Add __int128 keyword.
18348 (c_common_type_for_size): Handle __int128.
18349 (c_common_type_for_mode): Likewise.
18350 (c_common_signed_or_unsigned_type): Likewise.
18351 (c_common_nodes_and_builtins): Add builtin type
18352 if target supports 128-bit integer scalar.
18353 * c-common.h (enum rid): Add RID_INT128.
18354 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
18355 if target supports 128-bit integer scalar.
18356 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
18357 (finish_declspecs): Likewise.
18358 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
18359 (c_token_starts_declspecs): Likewise.
18360 (c_parser_declspecs): Likewise.
18361 (c_parser_attributes): Likewise.
18362 (c_parser_objc_selector): Likewise.
18363 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
18364 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
18365 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
18366 * tree.c (make_or_reuse_type): Likewise.
18367 (make_unsigned_type): Likewise.
18368 (build_common_tree_nodes_2): Likewise.
18369 * tree.h (enum integer_type_kind): Add itk_int128 and
18370 itk_unsigned_int128.
18371 (int128_integer_type_node): New define.
18372 (int128_unsigned_type_node): New define.
18373 * doc/extend.texi: Add documentation about __int128 type.
18375 2010-05-26 Richard Guenther <rguenther@suse.de>
18377 * tree-ssa-sccvn.c (copy_nary): Adjust.
18378 (copy_phis): Rename to ...
18379 (copy_phi): ... this. Adjust.
18380 (copy_references): Rename to ...
18381 (copy_reference): ... this. Adjust.
18382 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
18383 result into the valid table.
18385 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
18387 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
18388 insn-config.h, insn-codes.h, recog.h, and optabs.h.
18390 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
18392 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
18394 2010-05-26 Richard Guenther <rguenther@suse.de>
18396 * opts.c (common_handle_option): Handle OPT_Ofast.
18398 2010-05-26 Joseph Myers <joseph@codesourcery.com>
18400 * diagnostic.c: Don't include opts.h.
18401 (permissive_error_option): Define.
18402 (diagnostic_initialize): Take n_opts parameter. Allocate memory
18403 for classify_diagnostic. Don't use memset for
18404 classify_diagnostic. Initialize new and recently added fields.
18405 (diagnostic_classify_diagnostic): Use context->n_opts instead of
18407 (diagnostic_report_diagnostic): Pass context parameter to
18408 diagnostic_report_warnings_p. Use option_enabled and option_name
18409 hooks from context.
18410 (emit_diagnostic): Use permissive_error_option.
18411 (permerror): Likewise.
18412 * diagnostic.h: Don't include options.h.
18413 (struct diagnostic_context): Add n_opts, opt_permissive,
18414 inhibit_warnings, warn_system_headers, option_enabled and
18415 option_name fields. Change classify_diagnostic to a pointer.
18416 * opts-diagnostic.h: New file.
18417 * opts.c: Include opts-diagnostic.h.
18418 (common_handle_option): Set global_dc fields for -Wfatal-errors,
18419 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
18420 (option_name): New function.
18421 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
18422 (c_common_handle_option): Set global_dc->permissive for
18424 * c-common.c (c_cpp_error): Save and restore
18425 global_dc->warn_system_headers, not variable warn_system_headers.
18426 * toplev.c: Include opts-diagnostic.h.
18427 (general_init): Update call to diagnostic_initialize. Set
18428 global_dc->show_column, global_dc->option_enabled and
18429 global_dc->option_name.
18430 (process_options): Don't set global_dc fields here.
18431 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
18432 (diagnostic.o, opts.o, toplev.o): Update dependencies.
18434 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
18436 * config/picochip/picochip.md (movsi): Split a movsi from a
18437 const after reload.
18439 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
18441 * ggc-zone.c: Update copyright year.
18442 (poison_region): Mark memory for Valgrind as undefined before
18443 memset () call and inaccessible afterwards.
18444 (ggc_pch_total_size): Change type of i to int.
18446 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
18448 * ggc-common.c (ggc_free_overhead): Allow empty slot.
18450 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
18452 * ggc-common.c: Update copyright year.
18453 (ggc_rlimit_bound): Remove prototype. Compile only if
18454 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
18455 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
18456 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
18457 (ggc_min_heapsize_heuristic): Likewise.
18459 2010-05-26 Richard Guenther <rguenther@suse.de>
18461 PR rtl-optimization/44164
18462 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
18463 no-common access-path disambiguation.
18464 (indirect_ref_may_alias_decl_p): Adjust.
18465 (indirect_refs_may_alias_p): Likewise.
18466 (refs_may_alias_p_1): Likewise.
18468 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
18470 * c-typeck.c: Do not include expr.h.
18472 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
18474 * rtl.h (decl_default_tls_model): Move prototype from here...
18475 * output.h: ...to here.
18476 * c-decl.c: Do not include rtl.h.
18477 * c-pragma.c: Likewise.
18478 * c-parser.c: Likewise.
18479 * c-gimplify.c: Likewise. And also not hard-reg-set.
18480 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
18481 FIXME note for it. Add a FIXME note for expr.h.
18482 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
18483 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
18486 2010-05-26 Jakub Jelinek <jakub@redhat.com>
18489 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
18490 or total_size is larger than red zone size for non-V4 ABI, emit a
18491 stack_tie resp. frame_tie insn before stack pointer restore.
18492 * config/rs6000/rs6000.md (frame_tie): New insn.
18494 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
18496 * function.h (struct function): Add can_throw_non_call_exceptions bit.
18497 * lto-streamer-in.c (input_function): Stream it in.
18498 * lto-streamer-out.c (output_function): Stream it out.
18499 * function.c (allocate_struct_function): Set it.
18500 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
18501 for flag_non_call_exceptions.
18502 * cfgbuild.c (control_flow_insn_p): Likewise.
18503 (make_edges): Likewise.
18504 * cfgexpand.c (expand_stack_alignment): Likewise.
18505 * combine.c (distribute_notes): Likewise.
18506 * cse.c (cse_extended_basic_block): Likewise.
18507 * except.c (insn_could_throw_p): Likewise.
18508 * gcse.c (simple_mem): Likewise.
18509 * ipa-pure-const.c (check_call): Likewise.
18510 (check_stmt ): Likewise.
18511 * lower-subreg.c (lower-subreg.c): Likewise.
18512 * optabs.c (emit_libcall_block): Likewise.
18513 (prepare_cmp_insn): Likewise.
18514 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
18515 * postreload.c (rest_of_handle_postreload): Likewise.
18516 * reload1.c (reload_as_needed): Likewise.
18517 (emit_input_reload_insns): Likewise.
18518 (emit_output_reload_insns): Likewise.
18519 (fixup_abnormal_edges): Likewise.
18520 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
18521 * store-motion.c (find_moveable_store): Likewise.
18522 * tree-eh.c (stmt_could_throw_p): Likewise.
18523 (tree_could_throw_p): Likewise.
18524 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18525 * config/arm/arm.c (arm_expand_prologue): Likewise.
18526 (thumb1_expand_prologue): Likewise.
18527 * config/rx/rx.md (cbranchsf4): Likewise.
18529 * config/s390/s390.c (s390_emit_prologue): Likewise.
18530 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
18531 (inline_forbidden_into_p): New predicate.
18532 (expand_call_inline): Use it to forbid inlining.
18533 (tree_can_inline_p): Likewise.
18535 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
18537 * config/i386/i386-c.c: Do not include rtl.h.
18538 * config/i386/t-i386: Update dependencies.
18540 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
18542 * attribs.c: Do not include rtl.h.
18543 * Makefile.in: Update dependencies.
18545 2010-05-25 Anatoly Sokolov <aesok@post.ru>
18547 * double-int.h (double_int_and): New.
18548 * combine.c (try_combine): Clean up, use double_int_* and
18549 immed_double_int_const functions.
18551 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18553 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
18554 stderr to /dev/null instead of grep -q.
18555 * configure: Regenerate.
18557 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
18559 * Makefile.in (EXCEPT_H): Fix typo.
18561 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
18563 * ira-build.c (update_conflict_hard_reg_costs): New.
18564 (ira_build): Call update_conflict_hard_reg_costs.
18566 2010-05-25 Jakub Jelinek <jakub@redhat.com>
18569 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
18571 (intersect_loc_chains): Walk the s2var's loc_chain together
18572 with s1node chain as long as the locations are equal, don't
18573 call find_loc_in_1pdv in that case.
18576 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
18577 (copy_bind_expr): ... instead of here.
18578 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
18579 if the block hasn't been remapped.
18580 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
18581 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
18583 2010-05-25 Richard Guenther <rguenther@suse.de>
18585 PR middle-end/44069
18586 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
18587 out-of-bounds array accesses.
18589 2010-05-25 Richard Guenther <rguenther@suse.de>
18591 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
18592 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
18593 (run_gcc): Re-organize to make cleanup easier.
18595 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18597 * config/s390/s390.c (optimization_options): Fix and move the
18598 flag_prefetch_loop_arrays override ...
18599 (override_options): ... here.
18601 2010-05-25 Joseph Myers <joseph@codesourcery.com>
18603 * diagnostic.c: Don't include plugin.h.
18604 (diagnostic_report_diagnostic): Don't handle plugins specially
18605 here. Pass context to internal_error callback.
18606 * diagnostic.h (struct diagnostic_context): Add context parameter
18607 to internal_error callback.
18608 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
18609 * plugin.h (struct diagnostic_context): Declare.
18610 (warn_if_plugins, plugins_internal_error_function): Declare.
18611 * toplev.c (general_init): Set global_dc->internal_error.
18612 * Makefile.in (diagnostic.o): Update dependencies.
18614 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
18616 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
18617 * config/rs6000/t-darwin64: New.
18618 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
18621 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
18624 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
18625 match the original (and intended) behaviour before r159557. This
18626 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
18629 2010-05-25 Richard Guenther <rguenther@suse.de>
18631 * doc/invoke.texi: Document -Ofast.
18632 * target.h (struct gcc_target): Add handle_ofast.
18633 * target-def.h (TARGET_HANDLE_OFAST): Add.
18634 (TARGET_INITIALIZER): Adjust.
18635 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
18636 * common.opt (Ofast): Add.
18638 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
18640 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
18641 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
18643 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
18646 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
18647 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
18648 false_rtx. Use false_rtx to compute the correct *ptest for reversed
18649 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
18651 2010-05-25 Jakub Jelinek <jakub@redhat.com>
18653 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
18654 DW_OP_minus with negated offset instead of DW_OP_plus.
18655 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
18657 2010-05-25 Wei Guozhi <carrot@google.com>
18659 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
18660 tst instruction and a new alternative.
18661 * config/arm/constraints.md (Pu): New constraint.
18663 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
18665 * function.c (assign_stack_local_1): Initialize variable
18666 to avoid warning when bootstrapping at -O3.
18668 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
18670 * configure.ac (all_lang_makefiles): Remove everything related to it.
18671 * configure: Regenerate.
18672 * Makefile.in: Fix reference to ada Make-lang.in.
18673 Remove support for LANG_MAKEFILES.
18675 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
18676 Sandra Loosemore <sandra@codesourcery.com>
18678 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
18679 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
18680 description. Add arm_neon_fp16_ok.
18681 (Add Options): Add arm_neon and arm_neon_fp16.
18683 2010-05-24 Joseph Myers <joseph@codesourcery.com>
18685 * diagnostic.c: Don't include flags.h.
18686 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
18687 context parameters. Check flags in the context passed as a parameter.
18688 (diagnostic_build_prefix): Add context parameter. Check
18689 show_column flag in context.
18690 (diagnostic_action_after_output): Check fatal_errors flag in context.
18691 (diagnostic_report_current_module): Check show_column flag in context.
18692 (default_diagnostic_starter): Update call to
18693 diagnostic_build_prefix.
18694 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
18695 (emit_diagnostic): Pass context to permissive_error_kind.
18696 (permerror): Pass context to permissive_error_kind.
18697 * diagnostic.h (struct diagnostic_context): Add show_column,
18698 pedantic_errors, permissive and fatal_errors fields.
18699 (diagnostic_build_prefix): Update prototype.
18701 * toplev.c (process_options): Set flags in global_dc from
18702 flag_show_column, flag_pedantic_errors, flag_permissive,
18704 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
18705 to diagnostic_build_prefix.
18706 * Makefile.in (diagnostic.o): Update dependencies.
18708 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
18710 * config/i386/ia32intrin.h (__crc32q): Define only if
18711 __SSE4_2__ is defined.
18713 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
18716 PR middle-end/43602
18717 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
18718 DECL_VISIBILITY_SPECIFIED.
18719 (emutls_decl): Set DECL_PRESERVE_P and copy
18720 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
18721 (emutls_finalize_control_var): New callback.
18722 (emutls_finish): Finalize emutls control variables.
18723 * toplev.c (compile_file): Move the call to emutls_finish ()
18724 before varpool_assemble_pending_decls ().
18726 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
18728 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
18729 added to the preprocessor condition.
18731 2010-05-24 Paul Brook <paul@codesourcery.com>
18733 * gengtype-lex.l: Add HARD_REG_SET.
18734 * expr.c (expand_expr_real_1): Record writes to hard registers.
18735 * function.c (rtl_data): Add asm_clobbers.
18736 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
18737 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
18738 Use crtl->asm_clobbers.
18740 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18742 * doc/makefile.texi (Makefile): Mention stages 'profile'
18743 and 'feedback' for profiledbootstrap.
18745 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
18748 * config/i386/i386.c (def_builtin): Properly check
18749 OPTION_MASK_ISA_64BIT.
18751 2010-05-23 Joseph Myers <joseph@codesourcery.com>
18753 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
18754 typedefs with different but compatible types. Allow duplicate
18755 typedefs with the same type except for pedantic non-C1X, but give
18756 warning for variably modified types.
18757 * c-typeck.c (tagged_types_tu_compatible_p,
18758 function_types_compatible_p, type_lists_compatible_p,
18759 comptypes_internal): Add parameter different_types_p; set
18760 *different_types_p for different but compatible types. All
18762 (comptypes_check_different_types): New.
18763 * c-tree.h (comptypes_check_different_types): Declare.
18765 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
18767 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
18768 * jump.c: Include basic-block.h.
18769 * profile.c: Likewise.
18770 * tree-profile.c: Likewise.
18771 * coverage.c: Likewise.
18772 * basic-block.h (optimize_function_for_size_p): Move to function.h.
18773 (optimize_function_for_speed_p): Likewise.
18774 * function.h (optimize_function_for_size_p,
18775 optimize_function_for_speed_p): Moved here from basic-block.h.
18776 * Makefile.in: Update dependencies.
18778 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18780 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
18781 before calling make; allow override through $MAKE.
18782 * doc/invoke.texi (Optimize Options): Document override.
18784 2010-05-23 Anatoly Sokolov <aesok@post.ru>
18786 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
18787 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18788 (rs6000_mode_dependent_address_ptr): Make static.
18789 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18790 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
18793 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
18796 * config/i386/i386.c: Make sure that the correct regparm is passed.
18798 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
18800 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
18801 * sbitmap.c: ...to here to internalize sbitmap element access.
18802 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
18803 Explain why basic-block.h is included.
18804 * function.h: Include tm.h for CUMULATIVE_ARGS.
18805 * Makefile.in: Update dependencies.
18807 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
18809 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
18811 * sbitmap.h (struct sbitmap_def): Do not typedef here.
18812 * sbitmap.c: Include sbitmap.h.
18813 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
18814 hard-reg-set.h. Split everything related to regsets out from here...
18815 * regset.h: ...to here. New file.
18816 * df.h: Include regset.h and sbitmap.h.
18817 * tree-flow.h: Likewise.
18818 * cfgloop.h: Likewise.
18819 * except.h: Do not include sbitmap.h. Include hashtab.h.
18820 * cgraph.h: Include vec.h and function.h.
18821 * reload.h (struct insn_chain): Change types of live_throughout
18822 and dead_or_set from regset_head to bitmap_head.
18823 (compute_use_by_pseudos): Be defined also if regset.h is not included.
18824 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
18825 spilled_regs from regset_head to bitmap_head to avoid dependency
18827 * sel-sched-ir.h: Include regset.h.
18828 * reload.c: Include df.h before reload.h.
18829 * caller-save.c: Likewise.
18830 * reload1.c: Likewise.
18832 (mark_elimination): Update type of r to bitmap, consistent with
18834 * dominance.c: Include bitmap.h.
18835 * modulo-sched.c: Include df.h.
18836 * cfganal.c: Include bitmap.h and sbitmap.h.
18837 * cfgbuild.c: Include sbitmap.h.
18838 * lcm.c: Include sbitmap.h.
18839 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
18840 * domwalk.c: Include sbitmap.h, exclude ggc.h.
18841 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
18842 * cselib.c: Include bitmap.h.
18843 * tree-optimize.c: Include regset.h.
18844 * stmt.c: Include bitmap.h.
18845 * Makefile.in: Update dependencies.
18847 2010-05-22 Jan Hubicka <jh@suse.cz>
18849 * cgraph.h (struct varpool_node): Add same_comdat_group.
18850 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
18852 (output_varpool): Update call of lto_output_varpool_node.
18853 (input_varpool): Read same_comdat_group pointer.
18854 (input_varpool_1): Fixup same_comdat_group pointer.
18855 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
18856 group is needed, all are.
18857 * varpool.c (varpool_remove_node): Remove node from same comdat group
18859 (varpool_analyze_pending_decls): Walk same comdat groups.
18861 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
18863 * rtl.h (union rtunion_def): Remove rt_bit member.
18864 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
18865 * print-rtl (print_rtx): Do not print the member.
18866 * gengtype.c (adjust_field_rtx_def): Do not handle it.
18867 * gengenrtl.c (type_from_format): Likewise.
18868 (accessor_from_format): Likewise.
18870 2010-05-22 Joseph Myers <joseph@codesourcery.com>
18872 * dbgcnt.c: Include toplev.h instead of errors.h.
18873 * ira-emit.c: Don't include errors.h.
18874 * ira.c: Include toplev.h instead of errors.h.
18875 * lto-compress.c: Include toplev.h instead of errors.h.
18876 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
18877 ira.o, dbgcnt.o): Update dependencies.
18879 2010-05-22 Richard Guenther <rguenther@suse.de>
18881 * gimple.c (gimple_types_compatible_p): Check type qualifications
18882 before merging pointer to complete and pointer to incomplete type.
18883 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
18884 we use our own resolution algorithm. The gold linker plugin
18885 doesn't do the job we want it to do here.
18887 2010-05-22 Anatoly Sokolov <aesok@post.ru>
18889 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18890 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18891 (sparc_mode_dependent_address_p): New function.
18893 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
18895 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
18897 * timevar.c: Do not include any core headers.
18898 (timevar_print): De-i18n-ize.
18899 (print_time): Likewise.
18900 * timevar.h (timevar_push, timevar_pop): Make inline functions.
18902 2010-05-21 Joseph Myers <joseph@codesourcery.com>
18904 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
18906 (diagnostic_initialize): Initialize x_data not last_function.
18907 (diagnostic_report_current_function): Move to tree-diagnostic.c.
18908 (default_diagnostic_starter): Call
18909 diagnostic_report_current_module not
18910 diagnostic_report_current_function.
18911 (diagnostic_report_diagnostic): Initialize x_data not
18913 (verbatim): Likewise.
18914 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
18916 (struct diagnostic_context): Change last_function to x_data.
18917 (diagnostic_auxiliary_data): Replace with
18918 diagnostic_context_auxiliary_data and
18919 diagnostic_info_auxiliary_data.
18920 (diagnostic_last_function_changed, diagnostic_set_last_function,
18921 diagnostic_report_current_function): Move to tree-diagnostic.h.
18922 (print_declaration, dump_generic_node, print_generic_stmt,
18923 print_generic_stmt_indented, print_generic_expr,
18924 print_generic_decl, debug_c_tree, dump_omp_clauses,
18925 print_call_name, debug_generic_expr, debug_generic_stmt,
18926 debug_tree_chain, default_tree_printer): Move to
18927 tree-pretty-print.h.
18928 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
18929 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
18930 gimple-pretty-print.h.
18931 * pretty-print.c: Don't include tree.h
18932 (pp_base_format): Don't handle %K here.
18933 (pp_base_tree_identifier): Move to tree-pretty-print.c.
18934 * pretty-print.h (text_info): Change abstract_origin to x_data.
18935 (pp_tree_identifier, pp_unsupported_tree,
18936 pp_base_tree_identifier): Move to tree-pretty-print.h.
18937 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
18938 tree-pretty-print.h: New files.
18939 * tree-pretty-print.c: Include tree-pretty-print.h.
18940 (percent_K_format): New. Moved from pretty-print.c.
18941 (pp_base_tree_identifier): Move from pretty-print.c.
18942 * c-objc-common.c: Include tree-pretty-print.h.
18943 (c_tree_printer): Handle %K here.
18944 * langhooks.c: Include tree-diagnostic.h.
18945 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
18946 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
18947 (default_tree_printer): Handle %K using percent_K_format.
18948 (general_init): Use default_tree_diagnostic_starter.
18949 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
18950 (free_lang_data): Use default_tree_diagnostic_starter.
18951 * c-pretty-print.c: Include tree-pretty-print.h.
18952 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
18953 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
18954 * dwarf2out.c: Include tree-pretty-print.h.
18955 * except.c: Include tree-pretty-print.h.
18956 * gimple-pretty-print.c: Include tree-pretty-print.h and
18957 gimple-pretty-print.h.
18958 * gimplify.c: Include tree-pretty-print.h.
18959 * graphite-poly.c: Include tree-pretty-print.h and
18960 gimple-pretty-print.h.
18961 * ipa-cp.c: Include tree-pretty-print.h.
18962 * ipa-inline.c: Include gimple-pretty-print.h.
18963 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
18964 * ipa-pure-const.c: Include gimple-pretty-print.h.
18965 * ipa-struct-reorg.c: Include tree-pretty-print.h and
18966 gimple-pretty-print.h.
18967 * ipa-type-escape.c: Include tree-pretty-print.h.
18968 * print-rtl.c: Include tree-pretty-print.h.
18969 * print-tree.c: Include gimple-pretty-print.h.
18970 * sese.c: Include tree-pretty-print.h.
18971 * tree-affine.c: Include tree-pretty-print.h.
18972 * tree-browser.c: Include tree-pretty-print.h.
18973 * tree-call-cdce.c: Include gimple-pretty-print.h.
18974 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
18975 * tree-chrec.c: Include tree-pretty-print.h.
18976 * tree-data-ref.c: Include tree-pretty-print.h and
18977 gimple-pretty-print.h.
18978 * tree-dfa.c: Include tree-pretty-print.h.
18979 * tree-if-conv.c: Include tree-pretty-print.h and
18980 gimple-pretty-print.h.
18981 * tree-inline.c: Include tree-pretty-print.h.
18982 * tree-into-ssa.c: Include tree-pretty-print.h and
18983 gimple-pretty-print.h.
18984 * tree-nrv.c: Include tree-pretty-print.h.
18985 * tree-object-size.c: Include tree-pretty-print.h and
18986 gimple-pretty-print.h.
18987 * tree-outof-ssa.c: Include tree-pretty-print.h and
18988 gimple-pretty-print.h.
18989 * tree-parloops.c: Include tree-pretty-print.h and
18990 gimple-pretty-print.h.
18991 * tree-predcom.c: Include tree-pretty-print.h and
18992 gimple-pretty-print.h.
18993 * tree-scalar-evolution.c: Include tree-pretty-print.h and
18994 gimple-pretty-print.h.
18995 * tree-sra.c: Include tree-pretty-print.h.
18996 * tree-ssa-address.c: Include tree-pretty-print.h.
18997 * tree-ssa-alias.c: Include tree-pretty-print.h.
18998 * tree-ssa-ccp.c: Include tree-pretty-print.h and
18999 gimple-pretty-print.h.
19000 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
19001 * tree-ssa-copy.c: Include tree-pretty-print.h and
19002 gimple-pretty-print.h.
19003 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
19004 * tree-ssa-dce.c: Include tree-pretty-print.h and
19005 gimple-pretty-print.h.
19006 * tree-ssa-dom.c: Include tree-pretty-print.h and
19007 gimple-pretty-print.h.
19008 * tree-ssa-dse.c: Include gimple-pretty-print.h.
19009 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
19010 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
19011 * tree-ssa-live.c: Include tree-pretty-print.h and
19012 gimple-pretty-print.h.
19013 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
19014 gimple-pretty-print.h.
19015 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
19016 gimple-pretty-print.h.
19017 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
19018 gimple-pretty-print.h.
19019 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
19020 gimple-pretty-print.h.
19021 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
19022 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
19023 * tree-ssa-operands.c: Include tree-pretty-print.h and
19024 gimple-pretty-print.h.
19025 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
19026 gimple-pretty-print.h.
19027 * tree-ssa-pre.c: Include tree-pretty-print.h and
19028 gimple-pretty-print.h.
19029 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
19030 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
19031 gimple-pretty-print.h.
19032 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
19033 gimple-pretty-print.h.
19034 * tree-ssa-sink.c: Include gimple-pretty-print.h.
19035 * tree-ssa-ter.c: Include tree-pretty-print.h and
19036 gimple-pretty-print.h.
19037 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
19038 * tree-ssa.c: Include tree-pretty-print.h and
19039 gimple-pretty-print.h.
19040 * tree-stdarg.c: Include gimple-pretty-print.h.
19041 * tree-switch-conversion.c: Include gimple-pretty-print.h.
19042 * tree-tailcall.c: Include tree-pretty-print.h and
19043 gimple-pretty-print.h.
19044 * tree-vect-data-refs.c: Include tree-pretty-print.h and
19045 gimple-pretty-print.h.
19046 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
19047 gimple-pretty-print.h.
19048 * tree-vect-loop.c: Include tree-pretty-print.h and
19049 gimple-pretty-print.h.
19050 * tree-vect-patterns.c: Include gimple-pretty-print.h.
19051 * tree-vect-slp.c: Include tree-pretty-print.h and
19052 gimple-pretty-print.h.
19053 * tree-vect-stmts.c: Include tree-pretty-print.h and
19054 gimple-pretty-print.h.
19055 * tree-vectorizer.c: Include tree-pretty-print.h.
19056 * tree-vrp.c: Include tree-pretty-print.h and
19057 gimple-pretty-print.h.
19058 * value-prof.c: Include tree-pretty-print.h and
19059 gimple-pretty-print.h.
19060 * var-tracking.c: Include tree-pretty-print.h.
19061 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
19062 (tree-diagnostic.o): New dependencies.
19063 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
19064 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
19065 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
19066 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
19067 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
19068 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
19069 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
19070 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
19071 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
19072 tree-ssa-address.o, tree-ssa-loop-niter.o,
19073 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
19074 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
19075 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
19076 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
19077 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
19078 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
19079 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
19080 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
19081 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
19082 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
19083 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
19084 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
19085 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
19086 tree-switch-conversion.o, var-tracking.o, value-prof.o,
19087 cfgexpand.o, pretty-print.o): Update dependencies.
19089 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
19091 * tree-ssa-structalias.c: Remove tm_p.h from include.
19093 2010-05-21 Jeff Law <law@redhat.com>
19095 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
19097 2010-05-21 Jason Merrill <jason@redhat.com>
19099 * tree-eh.c (cleanup_is_dead_in): New.
19100 (lower_try_finally): Don't generate a dead cleanup region.
19101 (lower_cleanup): Likewise.
19103 2010-05-21 Jakub Jelinek <jakub@redhat.com>
19106 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
19107 unchain each use from the cyclic next_regno_use chain first.
19109 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
19111 * real: Do not include gmp.h, mpfr.h, and mpc.h.
19112 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
19113 (real_value_negate, real_value_abs): New prototypes.
19114 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
19115 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
19116 new include file for interface between MPFR and REAL_VALUE_TYPE.
19117 * real.c: Include realmpfr.h.
19118 (real_arithmetic2): Remove legacy function.
19119 (real_value_negate): New.
19120 (real_value_abs): New.
19121 (mfpr_from_real, real_from_mpfr): Move from here...
19122 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
19123 * builtins.c: Include realmpfr.h.
19124 * fold-const.c: Include realmpfr.h.
19125 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
19126 (fold_negate_const): Likewise.
19127 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
19128 * toplev.c: Include realmpfr.h.
19129 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
19130 and real_value_negate.
19131 * fixed-value.c (check_real_for_fixed_mode): Likewise.
19132 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
19133 (vfp3_const_double_index): Likewise.
19134 (arm_print_operand): Likewise.
19135 * Makefile.in: Update dependencies.
19137 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19139 * config/s390/s390.c (override_options): Increase the default
19140 of max-completely-peel-times.
19142 2010-05-21 Julian Brown <julian@codesourcery.com>
19143 Mark Mitchell <mark@codesourcery.com>
19145 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
19146 sibling calls for Thumb-1.
19147 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
19148 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
19150 (*call_insn, *call_value_insn): Don't use for Thumb-2.
19151 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
19153 (return): New expander.
19154 (*arm_return): New name for ARM return insn.
19155 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
19157 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
19159 * config.gcc (sparc64-*-rtems*): New target.
19161 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
19163 * tree.c (build_function_decl_skip_args): Fix grammar.
19164 (build_function_type_list_1): Fix typos, adjust formatting.
19166 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
19168 * tree.h: Include real.h and fixed-value.h as basic datatypes.
19169 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
19170 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
19171 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
19172 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
19173 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
19174 tree-pretty-print.c, tree-loop-distribution.c,
19175 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
19176 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
19177 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
19178 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
19179 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
19180 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
19181 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
19182 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
19183 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
19184 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
19185 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
19186 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
19187 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
19188 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
19189 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
19190 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
19191 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
19192 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
19193 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
19194 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
19195 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
19196 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
19197 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
19198 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
19199 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
19200 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
19201 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
19202 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
19203 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
19204 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
19205 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
19206 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
19207 config/score/score7.c, config/score/score.c, config/arm/arm.c,
19208 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
19209 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
19210 config/bfin/bfin.c: Clean up redundant includes.
19211 * Makefile.in: Update accordingly.
19213 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
19215 PR middle-end/44204
19216 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
19217 statement has no arguments.
19219 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
19222 * varasm.c (emutls_decl): Merge attributes to new decl.
19224 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
19226 PR middle-end/44101
19227 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
19228 around the uniquized constructor if its type requires a conversion.
19230 2010-05-21 Jakub Jelinek <jakub@redhat.com>
19233 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
19234 at -O0 goto_locus of any of the incoming edges differs from
19235 goto_locus of outgoing edge, or gimple_location of any of the
19238 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
19240 * ira.c (ira_non_ordered_class_hard_regs): Define.
19241 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
19242 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
19243 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
19244 cost of unaligned hard regs when allocating multi-reg pseudos.
19246 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
19248 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
19249 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
19250 for TARGET_NO_FLOAT.
19251 * config/mips/mips.c (mips_file_start): Expand conditional expression
19252 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
19253 (mips_override_options): Move -mno-float override -msoft-float and
19255 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
19256 Condition(TARGET_SUPPORTS_NO_FLOAT).
19257 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
19258 __mips_no_float here.
19259 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
19260 (TARGET_SUPPORTS_NO_FLOAT): Define.
19261 * config/mips/sdemtk.opt: Delete.
19263 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
19265 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
19267 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
19270 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
19271 * configure: Regenerate.
19272 * config.in: Regenerate.
19273 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
19274 instead of sahf only for 64bit targets.
19276 2010-05-20 Jakub Jelinek <jakub@redhat.com>
19279 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
19280 setup_ref_regs for DEBUG_INSNs.
19282 2010-05-20 Jan Hubicka <jh@suse.cz>
19284 PR middle-end/44197
19285 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
19287 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
19290 * df-scan.c (df_ref_compare): Stabilize sort.
19292 2010-05-20 Jakub Jelinek <jakub@redhat.com>
19294 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
19295 argument. Don't use DW_OP_piece if offset is non-zero,
19296 put offset into second DW_OP_bit_piece argument.
19297 (dw_sra_loc_expr): Adjust callers. For memory expressions
19300 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
19303 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
19304 settings for 16-bit-constant "addo" alternative.
19306 2010-05-19 James E. Wilson <wilson@codesourcery.com>
19308 * config/mips/mips-dsp.md (add<DSPV:mode>3,
19309 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
19312 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
19313 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
19316 2010-05-19 Joseph Myers <joseph@codesourcery.com>
19318 * diagnostic.c (FLOAT, FFS): Don't undefine.
19319 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
19320 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
19323 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
19325 * combine.c (propagate_for_debug): Call make_compound_operation
19326 on the source value.
19327 (try_combine): When implementing a split chosen by find_split_point,
19328 either copy i2src or set it to null. Assert that i2src is not null
19329 before substituting into CALL_INSN_FUNCTION_USAGE.
19331 2010-05-19 Anatoly Sokolov <aesok@post.ru>
19333 * double-int.h (double_int_ior): New function.
19334 * tree.h (build_int_cst_wide_type): Remove.
19335 * tree.c (build_int_cst_wide_type): Remove.
19336 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
19337 of build_int_cst_wide_type.
19338 * stor-layout.c (set_sizetype): (Ditto.).
19339 * dojump.c (do_jump): Use build_int_cstu instead of
19340 build_int_cst_wide_type.
19342 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
19344 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
19345 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
19346 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
19347 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
19348 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
19349 propagate the 'data' argument to copy_tree_r.
19350 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
19351 Propagate 'data' argument to walk_tree.
19352 (copy_if_shared): New function.
19353 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
19354 (unmark_visited): New function.
19355 (unshare_body): Call copy_if_shared instead of doing it manually.
19356 (unvisit_body): Call unmark_visited instead of doing it manually.
19358 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
19360 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
19361 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
19362 * hooks.c: Likewise.
19363 * target-def.h (TARGET_FOLD_BUILTIN): Define to
19364 hook_tree_tree_int_treep_bool_null.
19365 * target.h (struct gcc_target): Update signature of fold_builtin
19367 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
19368 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
19369 instead of the call expression.
19370 (fold_builtin_call_array): Pass n and argarray directly.
19371 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
19373 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
19374 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
19375 `i' and use it in place of `arity'.
19376 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
19377 Dereference `args' directly.
19378 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
19380 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19382 * doc/sourcebuild.texi (Effective-Target Keywords): Document
19384 (Directives): Document optional dg-require-effective-target
19387 2010-05-19 Richard Guenther <rguenther@suse.de>
19390 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
19392 2010-05-19 Richard Guenther <rguenther@suse.de>
19394 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
19395 * common.opt (fwhopr=): New.
19396 * opts.c (common_handle_option): Handle OPT_fwhopr.
19397 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
19398 * collect2.c (main): Match -fwhopr*.
19399 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
19400 Execute ltrans stage in parallel when jobs is bigger than 1.
19402 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19404 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
19405 pentiumpro on Solaris 8/x86 with Sun as.
19406 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
19408 (gcc_cv_as_ix86_quad): Check for .quad directive.
19409 * configure: Regenerate.
19410 * config.in: Regenerate.
19411 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
19413 2010-05-19 Martin Jambor <mjambor@suse.cz>
19415 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
19416 also for indirect edges. Actual printing moved...
19417 (ipa_print_node_jump_functions_for_edge): ...here.
19418 (ipa_compute_jump_functions): Renamed to
19419 ipa_compute_jump_functions_for_edge and made static.
19420 (ipa_compute_jump_functions): New function.
19421 (make_edge_direct_to_target): Check if the number of arguments on
19422 the newly direct edge is the same as the number of parametrs of
19424 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
19425 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
19426 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
19427 analysis functions unconditionally, call the new
19428 ipa_analyze_params_uses on the node instead of every edge.
19430 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
19432 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
19434 (dump_mem_ref): Adopt debug code to handle a tree as step. This
19435 also checks for a constant int vs. non-constant but
19436 loop-invariant steps.
19437 (find_or_create_group): Change the sort algorithm to only consider
19438 steps that are constant ints.
19439 (idx_analyze_ref): Adopt code to handle a tree instead of a
19440 HOST_WIDE_INT for step.
19441 (gather_memory_references_ref): Handle tree instead of int and be
19442 prepared to see a NULL_TREE.
19443 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
19444 prefetches if the step cannot be calculated at compile time.
19445 (issue_prefetch_ref): Issue prefetches for non-constant but
19446 loop-invariant steps.
19448 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
19451 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
19453 * tree.h (build_call_list): Remove.
19454 * tree.c (build_call_list): Remove.
19456 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
19458 * tree.h (build_call_list): Remove.
19459 * tree.c (build_call_list): Remove.
19461 2010-05-18 Jan Hubicka <jh@suse.cz>
19463 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
19465 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
19467 PR rtl-optimization/43332
19468 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
19470 2010-05-18 Anatoly Sokolov <aesok@post.ru>
19472 * tree.h (build_int_cstu): Implement as static inline.
19473 * tree.c (build_int_cstu): Remove function.
19474 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
19477 2010-05-18 Richard Guenther <rguenther@suse.de>
19480 * lto-wrapper.c (verbose): New variable. Initialize from -v.
19481 (debug): Initialize from -save-temps.
19482 (collect_execute): Print command-line when verbose.
19483 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
19484 for ltrans invocation. Produce -dumpbase flag again.
19485 (process_args): Remove.
19487 * collect2.c (maybe_run_lto_and_relink): Only pass object
19488 files to lto-wrapper.
19489 * gcc.c (LINK_COMMAND_SPEC): Likewise.
19491 2010-05-18 Jan Hubicka <jh@suse.cz>
19493 * opts.c (decode_options): Do not disable whopr at ipa_cp.
19494 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
19496 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
19499 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
19501 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
19504 2010-05-18 Jakub Jelinek <jakub@redhat.com>
19507 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
19508 rtx_equal_p inline.
19510 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
19512 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
19513 lto-macho as lto_binary_reader.
19515 * darwin.c (darwin_asm_named_section): Do not add assembler comment
19516 after .section directive; just print it before the directive instead.
19518 2010-05-17 Jan Hubicka <jh@suse.cz>
19520 * cgraph.c (cgraph_create_virtual_clone): Only check
19521 versionable_function_p when not in wpa and checking is enabled.
19522 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
19523 there are no more functions to materialize.
19525 2010-05-17 Jan Hubicka <jh@suse.cz>
19527 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
19528 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
19530 (output_cgraph): Call output_cgraph_opt_summary.
19531 (input_cgrpah): Call input_cgraph_opt_summary.
19532 (output_cgraph_opt_summary_p, output_node_opt_summary,
19533 input_node_opt_summary, input_cgraph_opt_section): New functions.
19534 * lto-section-in.c (lto_section_name): Add cgraphopt.
19535 * tree-inline.c (tree_function_versioning): Handle parm_num.
19536 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
19537 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
19539 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
19541 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
19542 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
19543 the insn to prefetch ratio heuristic to loops with known trip count.
19545 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
19547 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
19548 (schedule_prefetches): Do not generate a prefetch if the unroll factor
19549 is far from what is required by the prefetch.
19551 2010-05-17 Jan Hubicka <jh@suse.cz>
19553 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
19554 (ipcp_estimate_growth): Likewise.
19555 (ipcp_const_param_count): Likewise.
19556 (ipcp_insert_stage): Likewise.
19557 * ipa-prop.c (visit_load_for_mod_analysis): New function.
19558 (visit_store_addr_for_mod_analysis): Set used flag.
19559 (ipa_detect_param_modifications): Set used flag for SSE params;
19560 update use of walk_stmt_load_store_addr_ops.
19561 (ipa_print_node_params): Print used flag.
19562 (ipa_write_node_info): Stream used flag.
19563 (ipa_read_node_info): Likewise.
19564 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
19565 (ipa_is_param_used): New function.
19566 (lto_ipa_fixup_call_notes): Remove unused declaration.
19568 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19571 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
19572 * configure: Regenerate.
19573 * config.in: Regenerate.
19574 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
19575 !HAVE_AS_IX86_REP_LOCK_PREFIX.
19576 Don't emit whitespace.
19577 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
19578 (*rep_movsi): Likewise.
19579 (*rep_movsi_rex64): Likewise.
19580 (*rep_movqi): Likewise.
19581 (*rep_movqi_rex64): Likewise.
19582 (*rep_stosdi_rex64): Likewise.
19583 (*rep_stossi): Likewise.
19584 (*rep_stossi_rex64): Likewise.
19585 (*rep_stosqi): Likewise.
19586 (*rep_stosqi_rex64): Likewise.
19587 (*cmpstrnqi_nz_1): Use {%;} after repz.
19588 (*cmpstrnqi_nz_rex_1): Likewise.
19589 (*cmpstrnqi_1): Likewise.
19590 (*cmpstrnqi_rex_1): Likewise.
19591 (*strlenqi_1): Use {%;} after repnz.
19592 (*strlenqi_rex_1): Likewise.
19593 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
19594 (*sync_compare_and_swap<mode>): Likewise.
19595 (sync_double_compare_and_swap<mode>): Likewise.
19596 (*sync_double_compare_and_swapdi_pic): Likewise.
19597 (sync_old_add<mode>): Likewise.
19598 (sync_add<mode>): Likewise.
19599 (sync_sub<mode>): Likewise.
19600 (sync_<code><mode>): Likewise.
19602 2010-05-17 Martin Jambor <mjambor@suse.cz>
19604 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
19605 otr_token and polymorphic.
19606 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
19607 (cgraph_clone_edge): Copy the above fields.
19608 * tree.c (get_binfo_at_offset): New function.
19609 * tree.h (get_binfo_at_offset): Declare.
19610 * ipa-prop.h (enum jump_func_type): Added known_type jump function
19611 type, reordered items, updated comments.
19612 (union jump_func_value): Added base_type field, reordered fields.
19613 (enum ipa_lattice_type): Moved down in the file.
19614 (struct ipa_param_descriptor): New field polymorphic.
19615 (ipa_is_param_polymorphic): New function.
19616 * ipa-prop.c: Include gimple.h and gimple-fold.h.
19617 (ipa_print_node_jump_functions): Print known type jump functions.
19618 (compute_complex_pass_through): Renamed to...
19619 (compute_complex_assign_jump_func): this.
19620 (compute_complex_ancestor_jump_func): New function.
19621 (compute_known_type_jump_func): Likewise.
19622 (compute_scalar_jump_functions): Create known type and complex ancestor
19624 (ipa_note_param_call): New parameter polymorphic, set the corresponding
19625 flag in the call note accordingly.
19626 (ipa_analyze_call_uses): Renamed to...
19627 (ipa_analyze_indirect_call_uses): this. New parameter target, define
19628 variable var only in the block where it is used.
19629 (ipa_analyze_virtual_call_uses): New function.
19630 (ipa_analyze_call_uses): Likewise.
19631 (combine_known_type_and_ancestor_jfs): Likewise.
19632 (update_jump_functions_after_inlining): Implemented handling of a
19633 number of new jump function types combination.
19634 (print_edge_addition_message): Removed.
19635 (make_edge_direct_to_target): New function.
19636 (try_make_edge_direct_simple_call): Likewise.
19637 (try_make_edge_direct_virtual_call): Likewise.
19638 (update_call_notes_after_inlining): Renamed to...
19639 (update_indirect_edges_after_inlining): this. Moved edge creation for
19640 indirect calls to try_make_edge_direct_simple_call, also calls
19641 try_make_edge_direct_virtual_call for virtual calls.
19642 (ipa_print_node_params): Changed the header message.
19643 (ipa_write_jump_function): Stream also known type jump functions.
19644 (ipa_read_jump_function): Likewise.
19645 (ipa_write_indirect_edge_info): Stream new fields in
19646 cgraph_indirect_call_info.
19647 (ipa_read_indirect_edge_info): Likewise.
19648 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
19651 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19653 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
19655 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
19657 * tree.h (CALL_EXPR_ARGS): Delete.
19658 (call_expr_arglist): Delete.
19659 * tree.c (call_expr_arglist): Delete.
19660 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
19661 targetm.fold_builtin.
19662 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
19663 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
19664 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
19665 arglist parameter. Use CALL_EXPR_ARG.
19666 (picochip_expand_builtin_3op): Likewise.
19667 (picochip_expand_builtin_2opvoid): Likewise.
19668 (picochip_expand_array_get): Likewise.
19669 (picochip_expand_array_put): Likewise.
19670 (picochip_expand_array_testport): Likewise.
19671 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
19672 rather than arglist.
19673 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
19675 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
19676 than TREE_VALUE and TREE_CHAIN.
19677 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
19678 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
19681 2010-05-17 Jakub Jelinek <jakub@redhat.com>
19684 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
19685 to have no fallthru edge.
19687 PR middle-end/44102
19688 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
19689 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
19690 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
19691 add BARRIER after previous bb if needed.
19693 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
19695 * tree.c (build_function_type_list_1): Remove bogus assert condition.
19697 2010-05-17 Alan Modra <amodra@gmail.com>
19699 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
19700 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
19701 with copy_reg rtx param.
19702 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
19703 Correct cases where code for ABI_V4 did not initialise the reg
19704 used to access frame. Also leave frame_reg_rtx as sp for large
19705 frames that save no regs.
19707 2010-05-17 Martin Jambor <mjambor@suse.cz>
19709 PR middle-end/44133
19710 * tree-sra.c (create_access_replacement): New parameter rename, mark
19711 the replaement for renaming only when it is true.
19712 (get_access_replacement): Pass true in the rename parameter of
19713 create_access_replacement.
19714 (get_unrenamed_access_replacement): New function.
19715 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
19716 replacement declaration from it.
19718 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
19720 * function.c (try_fit_stack_local, add_frame_space): New static
19722 (assign_stack_local_1): Use them. Look for opportunities to use
19723 space previously wasted on alignment.
19724 * function.h (struct frame_space): New.
19725 (struct rtl_data): Add FRAME_SPACE_LIST member.
19726 * reload1.c (something_was_spilled): New static variable.
19727 (alter_reg): Set it.
19728 (reload): Test it in addition to testing if the frame size changed.
19730 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
19732 * config/s390/s390.c: Define sane prefetch settings and activate
19733 flag_prefetch_loop_arrays on -O3.
19734 * config/s390/s390.h: Declare that read can use write prefetch.
19736 2010-05-17 Jakub Jelinek <jakub@redhat.com>
19738 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
19741 2010-05-16 Jan Hubicka <jh@suse.cz>
19743 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
19744 function body; do not check stdarg field of struct function.
19746 2010-05-16 Jan Hubicka <jh@suse.cz>
19748 * cgraph.c (dump_cgraph_node): Dump versionable flag.
19749 * cgraph.h (cgraph_local_info): Add versionable flag.
19750 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
19751 (ipcp_versionable_function_p): Use it.
19752 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
19755 2010-05-16 Jan Hubicka <jh@suse.cz>
19757 * cgraph.c (cgraph_clone_node): Take decl argument and insert
19758 clone into hash when it is different from orig.
19759 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
19760 * cgraph.h (cgraph_clone_node): Update prototype.
19761 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
19762 (lto_cgraph_encoder_delete): Delete body map.
19763 (lto_cgraph_encoder_size): Move to header.
19764 (lto_cgraph_encoder_encode_body_p,
19765 lto_set_cgraph_encoder_encode_body): New.
19766 (lto_output_node): Do not take written_decls argument; output clone_of
19768 (add_node_to): Add include_body_argument; call
19769 lto_set_cgraph_encoder_encode_body on master of the clone.
19770 (add_references): Update use of add_node_to.
19771 (compute_ltrans_boundary): Likewise.
19772 (output_cgraph): Do not create written_decls bitmap.
19773 (input_node): Take nodes argument; stream in clone_of correctly.
19774 (input_cgraph_1): Update use of input_node.
19775 * lto-streamer-out.c (lto_output): Use encoder info to decide
19776 what bodies to output.
19777 * ipa-inline.c (cgraph_clone_inlined_nodes,
19778 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
19779 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
19780 (lto_cgraph_encoder_size): Define here.
19781 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
19784 2010-05-16 Richard Guenther <rguenther@suse.de>
19786 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
19788 * ipa-type-escape.c (gate_type_escape_vars): Run when
19789 -fipa-struct-reorg runs.
19790 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
19791 * common.opt (fipa-type-escape): Remove.
19793 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
19795 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
19796 (decode_options): Likewise.
19797 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
19799 2010-05-16 Jan Hubicka <jh@suse.cz>
19801 * ipa.c (function_and_variable_visibility): Also bring local all
19804 2010-05-16 Richard Guenther <rguenther@suse.de>
19806 * alias.c (nonoverlapping_memrefs_p): Remove use of
19807 IPA type-escape information.
19809 2010-05-16 Joseph Myers <joseph@codesourcery.com>
19811 * c-common.c (c_common_reswords): Add _Static_assert for C.
19812 * c-parser.c (c_token_starts_declaration,
19813 c_parser_next_token_starts_declaration,
19814 c_parser_static_assert_declaration_no_semi,
19815 c_parser_static_assert_declaration): New.
19816 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
19817 Handle static assertions if static_assert_ok.
19818 (c_parser_external_declaration, c_parser_declaration_or_fndef,
19819 c_parser_compound_statement_nostart, c_parser_label,
19820 c_parser_for_statement, c_parser_objc_methodprotolist,
19821 c_parser_omp_for_loop): All callers of
19822 c_parser_declaration_or_fndef changed.
19823 (c_parser_struct_declaration): Handle static assertions.
19824 (c_parser_compound_statement_nostart): Use
19825 c_parser_next_token_starts_declaration and
19826 c_token_starts_declaration to detect start of declarations.
19827 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
19830 2010-05-16 Anatoly Sokolov <aesok@post.ru>
19832 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
19833 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19834 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19835 TARGET_FUNCTION_VALUE_REGNO_P): Define.
19836 (mmix_function_outgoing_value): Rename to...
19837 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
19838 (mmix_function_value_regno_p): Make static.
19839 (mmix_libcall_value): New function.
19840 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
19841 mmix_function_value_regno_p): Remove declaration.
19843 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
19845 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
19846 BUILT_IN_ALLOCA if stack checking is enabled.
19848 2010-05-16 Richard Guenther <rguenther@suse.de>
19850 * var-tracking.c (vars_copy_1): Inline ...
19851 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
19852 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
19853 (variable_merge_over_cur): Adjust. Merge asserts.
19854 (variable_merge_over_src): Likewise.
19855 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
19856 (variable_post_merge_new_vals): Merge asserts.
19857 (variable_post_merge_perm_vals): Likewise.
19858 (find_mem_expr_in_1pdv): Likewise.
19859 (dataflow_set_different_value): Remove.
19860 (onepart_variable_different_p): Merge asserts.
19861 (variable_different_p): Likewise.
19862 (dataflow_set_different_1): Inline ...
19863 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
19864 (emit_notes_for_differences_1): Merge asserts.
19866 2010-05-16 Richard Guenther <rguenther@suse.de>
19868 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
19869 * optabs.c (libfunc_decl_hash): Likewise.
19870 * varasm.c (emutls_decl): Likewise.
19872 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
19874 * c-decl.c: Don't include gimple.h.
19875 (merge_decls): Do not copy gimple_body.
19877 2010-05-15 Jason Merrill <jason@redhat.com>
19879 * c.opt: Add -fnothrow-opt.
19881 2010-05-15 Jan Hubicka <jh@suse.cz>
19883 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
19885 * passes.c (ipa_write_summaries): Write all analyzed nodes.
19887 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
19889 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
19890 * Makefile.in: Add it.
19891 Fix all other Makefile dependencies for changes below.
19892 * tree.h: Include it instead of defining VEC primitives here.
19893 * gimple.h: Likewise.
19895 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
19896 * except.h: Include vecir.h, break dependence on tree.h.
19898 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
19900 * tree-iterator.c: ...to here.
19901 * tree-iterator.h: Fix file introduction comment. Add extern markers.
19903 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
19905 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
19906 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
19907 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
19908 tree-mudflap.h, and target.h.
19909 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
19910 predict.h, tree-inline.h, gimple.h, and langhooks.h.
19911 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
19912 Add FIXME for why gimple.h is still included (should be unnecessary
19913 since GCC 4.5 gimplification unit-at-a-time).
19914 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
19915 * c-pragma.c: Add FIXME for why function.h needs to be included just
19916 for cfun, at front-end level.
19917 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
19918 Do not include ggc.h, but include vecprim.h for VEC(char).
19919 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
19920 Explain why target.h is included.
19921 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
19922 Explain why gimple.h is included.
19923 * c-ppoutput.c: Do not include tm.h.
19924 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
19925 * c-parses.c: Explain why rtl.h is included, and that this (and only
19926 this) is also why tm.h must be included.
19927 Do not include except.h.
19928 * c-lang.c: Do not include ggc.h.
19930 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
19932 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
19934 2010-05-15 Joseph Myers <joseph@codesourcery.com>
19936 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
19937 unions by default if those structs and unions have no tags. Do
19938 not condition anonymous struct and unions handling on flag_iso.
19939 Allow anonymous structs and unions for C1X.
19940 (finish_struct): Do not diagnose lack of named fields when
19941 anonymous structs and unions present for C1X. Accept flexible
19942 array members in structure with anonymous structs or unions but no
19943 directly named fields.
19944 * doc/extend.texi (Unnamed Fields): Update.
19946 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
19948 * gimple.h (compare_field_offset): Rename into...
19949 (gimple_compare_field_offset): ...this.
19950 * gimple.c (compare_field_offset): Rename into...
19951 (gimple_compare_field_offset): ...this. Compare the full access if
19952 the offset is self-referential.
19953 (gimple_types_compatible_p): Adjust for above renaming.
19954 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
19955 DECL_NONADDRESSABLE_P flag of fields before merging them.
19957 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
19959 * tree.h (ctor_to_list): Delete.
19960 * tree.c (ctor_to_list): Delete.
19962 2010-05-15 Jan Hubicka <jh@suse.cz>
19964 * ipa-reference.c: Include toplev.h
19965 (is_proper_for_analysis): Only add to all_module_statics
19966 if it is allocated.
19967 (write_node_summary_p, stream_out_bitmap,
19968 ipa_reference_write_optimization_summary,
19969 ipa_reference_read_optimization_summary): New.
19970 (struct ipa_opt_pass_d pass_ipa_reference): Add
19971 optimization summary streaming.
19972 * lto-cgraph.c (referenced_from_this_partition_p,
19973 reachable_from_this_partition_p): New functions.
19974 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
19975 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
19976 * opts.c (decode_options): Enable ipa_reference.
19977 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
19978 * lto-streamer.h (referenced_from_this_partition_p,
19979 reachable_from_this_partition_p): Declare.
19981 2010-05-15 Richard Guenther <rguenther@suse.de>
19983 PR tree-optimization/44038
19984 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
19985 taking the address of a V_C_E of a constant.
19987 2010-05-14 Jan Hubicka <jh@suse.cz>
19989 * tree.h (memory_identifier_string): Remove.
19990 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
19991 (ipa_reference_global_vars_info_d): Remove statics_not_read and
19992 statics_not_written.
19993 (ipa_reference_optimization_summary_d): New structure.
19994 (ipa_reference_optimization_summary_t): New type and vector.
19995 (ipa_reference_vars_info_d): Embedd structures instead of using
19997 (reference_vars_to_consider): Remove out of GGC space.
19998 (module_statics_escape): Remove.
19999 (global_info_obstack): Rename to ...
20000 (optimization_summary_obstack): ... this one.
20001 (initialization_status_t): Remove.
20002 (memory_identifier_string): Remove.
20003 (get_reference_vars_info): Fix indenting.
20004 (set_reference_vars_info): Likewise.
20005 (get_reference_optimization_summary): New.
20006 (set_reference_optimization_summary): New.
20007 (get_global_reference_vars_info): Remove.
20008 (ipa_reference_get_read_global): Remove.
20009 (ipa_reference_get_written_global): Remove.
20010 (ipa_reference_get_not_read_global): Update.
20011 (ipa_reference_get_not_written_global): Update.
20012 (is_proper_for_analysis): Outlaw addressable.
20013 (propagate_bits): Update for new datastructures.
20014 (analyze_variable): Remove.
20015 (init_function_info): Update for new datastructures.
20016 (clean_function_local_data): Remove.
20017 (clean_function): Remove.
20018 (copy_global_bitmap): Use optimizations_summary_obstack.
20019 (duplicate_node_data): Duplicate optimization summary only.
20020 (remove_node_data): Remove optimization summary only.
20021 (generate_summary): Do not analyze variables; do not compute
20022 module_statics_escape; do not prune solutions by it.
20023 (read_write_all_from_decl): Fix typos in comments.
20024 (propagate): Doscover readonly and nonaddressable first;
20025 update for new datastructures; share global bitmaps.
20026 * ipa-reference.h (ipa_reference_get_read_global,
20027 ipa_reference_get_written_global): Remove.
20028 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
20029 * Makefile.in: Remove ipa-refereference from GT files.
20031 2010-05-14 Jakub Jelinek <jakub@redhat.com>
20034 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
20035 for all SYMBOL_REF_DECLs.
20037 2010-05-14 Jan Hubicka <jh@suse.cz>
20039 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
20040 (varpool_all_refs_explicit_p): New inline function.
20041 * ipa-reference.c: Update comment.
20042 (module_statics_written): Remove.
20043 (get_static_decl): Remove.
20044 (ipa_init): Do not initialize module_statics_written.
20045 (analyze_function): Likewise.
20046 (generate_summary): Likewise; do not compute module_statics_readonly
20047 and do not update variable flags.
20048 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
20049 * ipa.c: Inlucde flags.h
20050 (cgraph_local_node_p): New.
20051 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
20052 promote functions to local.
20053 (ipa_discover_readonly_nonaddressable_vars): New function.
20054 (function_and_variable_visibility): Use cgraph_local_node_p.
20055 * varpool.c (varpool_finalize_decl): Set force_output for
20056 DECL_PRESERVE_P vars.
20058 2010-05-14 Jan Hubicka <jh@suse.cz>
20060 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
20062 2010-05-14 Richard Guenther <rguenther@suse.de>
20064 PR tree-optimization/44119
20065 * tree-ssa-pre.c (eliminate): Properly mark replacement of
20066 a PHI node necessary.
20068 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
20070 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
20072 2010-05-14 Jason Merrill <jason@redhat.com>
20075 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
20076 (gimple_call_set_nothrow): New.
20077 * gimple.c (gimple_build_call_from_tree): Call it.
20078 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
20081 * gimplify.c (gimplify_seq_add_stmt): No longer static.
20082 * gimple.h: Declare it.
20083 * gimple.c (gimple_build_eh_filter): No ops.
20085 2010-05-14 Jan Hubicka <jh@suse.cz>
20087 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
20088 nodes already in queue.
20089 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
20090 re-enqueueing node.
20092 2010-05-14 Jakub Jelinek <jakub@redhat.com>
20095 * cfgexpand.c (expand_debug_expr): If non-memory op0
20096 has BLKmode, return NULL.
20098 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
20100 * config.gcc: Add support for --with-cpu option for bdver1.
20101 * config/i386/i386.h (TARGET_BDVER1): New macro.
20102 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
20103 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
20104 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
20105 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
20106 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
20107 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
20108 (processor_type): Add PROCESSOR_BDVER1.
20109 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
20110 processor_type in config/i386/i386.h.
20111 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
20112 movaps <reg, reg> instead of movapd <reg, reg> when replacing
20113 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
20114 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
20115 to emit packed xor instead of packed double/packed integer
20116 xor for SSE and AVX when moving a zero value.
20117 * config/i386/sse.md: Add check for
20118 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
20119 movapd/movdqa for SSE and AVX.
20120 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
20121 single logical operations i.e and, or and xor instead of packed double
20122 logical operations for SSE and AVX.
20123 * config/i386/i386-c.c (ix86_target_macros_internal):
20124 Add PROCESSOR_BDVER1.
20125 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
20126 (has_fma4, has_xop): New.
20127 * config/i386/i386.c (bdver1_cost): New variable.
20128 (m_BDVER1): New macro.
20129 (m_AMD_MULTIPLE): Add m_BDVER1.
20130 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
20131 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
20132 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
20133 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
20134 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
20135 x86_tune_sse_partial_reg_dependency,
20136 x86_tune_sse_unaligned_load_optimal,
20137 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
20138 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
20139 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
20140 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
20141 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
20142 Enable/disable for bdver1.
20143 (processor_target_table): Add bdver1_cost.
20144 (cpu_names): Add bdver1.
20145 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
20146 processor_alias_table.
20147 (ix86_expand_vector_move_misalign): Change.
20148 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
20149 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
20150 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
20151 of movupd/movdqu for SSE and AVX.
20152 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
20153 (ix86_tune_adjust_cost): Add code for bdver1.
20154 (standard_sse_constant_opcode): Add check for
20155 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
20156 of packed double xor for SSE and AVX.
20158 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
20160 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
20161 result to unsigned.
20163 2010-05-14 Tristan Gingold <gingold@adacore.com>
20165 * toplev.c (default_debug_hooks): Remove this variable.
20166 (process_options): Remove assignments to default_debug_hooks.
20168 2010-05-14 Martin Jambor <mjambor@suse.cz>
20170 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
20171 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
20172 * langhooks.h (struct lang_hooks_for_decls): Removed field
20174 * tree.c (free_lang_data): Remove assignment to
20175 lang_hooks.fold_obj_type_ref.
20176 * tree.def (OBJ_TYPE_REF): Update comment.
20178 2010-05-14 Richard Guenther <rguenther@suse.de>
20180 PR tree-optimization/44124
20181 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
20183 2010-05-14 Alan Modra <amodra@gmail.com>
20186 * config/rs6000/rs6000.c (struct machine_function): Reorder
20187 fields for better packing. Add lr_save_state.
20188 (rs6000_ra_ever_killed): Return lr_save_state if set.
20189 (rs6000_emit_eh_reg_restore): Set lr_save_state.
20191 2010-05-13 Jan Hubicka <jh@suse.cz>
20193 * varpool.c (decide_is_variable_needed): Drop code checking
20194 TREE_SYMBOL_REFERENCED.
20196 2010-05-13 Jan Hubicka <jh@suse.cz>
20198 * final.c (output_addr_const): Do not call mark_decl_referenced.
20199 * cgraphunit.c (process_function_and_variable_attributes): Use
20200 mark_needed_node dirrectly.
20201 (assemble_thunk): Do not call mark_decl_referenced.
20203 2010-05-13 Anatoly Sokolov <aesok@post.ru>
20205 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
20207 2010-05-13 Jeff Law <law@redhat.com>
20209 * ira-conflicts.c (print_allocno_conflicts): New function broken out
20211 (print_conflicts): Call print_allocno_conflicts.
20213 2010-05-13 Jakub Jelinek <jakub@redhat.com>
20216 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
20219 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
20221 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
20222 t-mingw-w64 or t-mingw-w32 for multilib configuration.
20223 * config/i386/t-mingw-w32: New.
20224 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
20226 2010-05-13 Martin Jambor <mjambor@suse.cz>
20228 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
20230 * gimple-fold.c (get_base_binfo_for_type): New function.
20231 (gimple_get_relevant_ref_binfo): Likewise.
20232 (gimple_fold_obj_type_ref_known_binfo): Likewise.
20233 (gimple_fold_obj_type_ref): Likewise.
20234 (fold_gimple_call): Simplify condition for folding virtual calls
20235 and call gimple_fold_obj_type_ref.
20236 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
20237 (gimple_fold_obj_type_ref_known_binfo): Likewise.
20239 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
20241 * config/rs6000/rs6000-protos.h
20242 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
20243 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
20244 (rs6000_debug_mode_dependent_address)
20245 (rs6000_mode_dependent_address_ptr): Likewise.
20247 2010-05-13 Jakub Jelinek <jakub@redhat.com>
20250 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
20252 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
20253 * tree-sra.c (create_access_replacement): Call unshare_expr before
20254 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
20255 * dwarf2out.c: Include tree-flow.h.
20256 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
20257 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
20258 Handle DW_OP_bit_piece.
20259 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
20260 construct_piece_list, adjust_piece_list): New functions.
20261 (add_var_loc_to_decl): Handle SRA optimized variables.
20262 Adjust for var_loc_note to loc field renaming.
20263 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
20264 in VAR_LOCATION note.
20265 (new_loc_descr_op_bit_piece): New function.
20266 (dw_sra_loc_expr): New function.
20267 (dw_loc_list): Use it. Don't handle the last range after the
20268 loop, handle it inside of the loop. Adjust for var_loc_note
20269 to loc field renaming.
20270 (add_location_or_const_value_attribute): Only special case
20271 single entry loc lists if loc is NOTE_P. Adjust for
20272 var_loc_note to loc field renaming.
20273 (dwarf2out_var_location): Don't set newloc->var_loc_note
20274 and newloc->next here.
20276 2010-05-12 Jan Hubicka <jh@suse.cz>
20278 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
20280 * cgraph.h (cgraph_only_called_directly_p,
20281 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
20282 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
20283 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
20285 * ipa.c (cgraph_remove_unreachable_nodes): Use
20286 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
20288 * tree-inline.c (copy_bb): Check address_taken flag.
20289 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
20290 externally_visible flag.
20292 2010-05-12 Jason Merrill <jason@redhat.com>
20296 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
20297 * sdbout.c (plain_type_1): Likewise.
20298 * dwarf2out.c (is_base_type): Likewise.
20299 (gen_type_die_with_usage): Likewise. Generate
20300 DW_TAG_unspecified_type for any LANG_TYPE.
20302 2010-05-12 Jan Hubicka <jh@suse.cz>
20304 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
20306 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
20307 (cgraph_clone_edge): Update.
20308 (cgraph_node_remove_callees): Remove indirect calls too.
20309 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
20310 (cgraph_create_indirect_edge): Update prototype.
20311 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
20312 is_proper_for_analysis.
20313 (add_new_function, visited_nodes, function_insertion_hook_holder,
20314 get_local_reference_vars_info, mark_address_taken, mark_address,
20315 mark_load, mark_store, check_asm_memory_clobber, check_call,
20316 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
20317 (ipa_init): Do not initialize visited_nodes;
20318 function_insertion_hook_holder.
20319 (analyze_variable): Rewrite.
20320 (analyze_function): Rewrite.
20321 (copy_local_bitmap): Remove.
20322 (duplicate_node_dat): Do not duplicate local info.
20323 (generate_summary): Simplify to only walk cgraph.
20324 (write_node_summary_p, ipa_reference_write_summary,
20325 ipa_reference_read_summary): Remove.
20326 (propagate): Do not remove function insertion;
20328 (pass_ipa_reference): NULLify summary handling fields.
20329 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
20330 (input_edge): Input ecf_flags.
20331 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
20332 (update_indirect_edges_after_inlining): Ignore edges with unknown
20335 2010-05-12 Sriraman Tallam <tmsriram@google.com>
20337 * implicit-zee.c: New file.
20338 * tree-pass.h (pass_implicit_zee): Declare.
20339 * passes.c (init_optimization_passes): Add zee pass.
20340 * common.opt (fzee): New flag.
20341 * timevar.def (TV_ZEE): Define.
20342 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
20344 * Makefile.in (implicit-zee.o): Add new build file.
20346 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
20347 Nathan Froyd <froydnj@codesourcery.com>
20349 * c-common.c (sync_resolve_params): Remove write-only variable.
20351 2010-05-12 Anatoly Sokolov <aesok@post.ru>
20353 * target.h (struct gcc_target): Add mode_dependent_address_p field.
20354 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
20355 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
20356 * targhooks.c (default_mode_dependent_address_p): New function.
20357 * targhooks.h (default_mode_dependent_address_p): Declare function.
20358 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
20359 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
20360 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
20361 target hook. Change return type to bool.
20362 * recog.h (mode_dependent_address_p): Change return type to bool.
20364 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
20365 Nathan Froyd <froydnj@codesourcery.com>
20367 * tree-mudflap.c (build_function_type_0, build_function_type_1,
20368 build_function_type_2, build_function_type_3): Remove.
20369 (mudflap_init): Use build_function_type_list.
20371 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
20372 Nathan Froyd <froydnj@codesourcery.com>
20374 * coverage.c (build_fn_info_value): Call build_constructor instead of
20375 build_constructor_from_list.
20376 (build_ctr_info_value): Likewise.
20377 (build_gcov_info): Likewise.
20379 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
20381 * tree.c (build_constructor): Compute TREE_CONSTANT for the
20382 resultant constructor.
20383 (build_constructor_single): Don't set TREE_CONSTANT.
20384 (build_constructor_from_list): Don't compute TREE_CONSTANT.
20386 2010-05-12 Jan Hubicka <jh@suse.cz>
20388 * cgraph.h (struct varpool_node): Add aux.
20389 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
20390 * varpool.c (varpool_remove_node): Do not remove initializer.
20391 (varpool_reset_queue): Export.
20392 (varpool_finalize_decl): Volatile vars are forced to be output.
20393 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
20395 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
20396 process_references, varpool_can_remove_if_no_refs): New functions.
20397 (cgraph_remove_unreachable_nodes): Handle variables too.
20399 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
20402 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
20404 2010-05-12 Jakub Jelinek <jakub@redhat.com>
20406 PR middle-end/44085
20407 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
20408 change value of ORT_TASK.
20409 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
20410 (omp_notice_threadprivate_variable): New function.
20411 (omp_notice_variable): Call it for threadprivate variables.
20412 If enclosing ctx is a task, print enclosing task rather than
20413 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
20414 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
20415 if task has untied clause.
20418 * dwarf2out.c (base_type_die): Don't add name attribute here.
20419 (modified_type_die): Instead of sizetype use
20420 its underlying original type. If a DW_TAG_base_type doesn't
20421 have name added, add __unknown__.
20422 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
20423 always call force_type_die instead.
20425 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
20427 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
20428 for __stack_chk_guard.
20430 2010-05-11 Jakub Jelinek <jakub@redhat.com>
20432 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
20433 don't call start_source_file debug hook here...
20434 (finish_options): ... but here, after outputting predefined and
20435 command line defines and undefs.
20437 PR middle-end/44071
20438 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
20440 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
20441 optimizing away empty bb with no successors, move over its
20442 footer chain to fallthru predecessor.
20443 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
20444 (rtl_split_edge): For asm goto call patch_jump_insn even if
20445 splitting fallthru edge.
20448 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
20449 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
20450 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
20451 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
20455 * c-parser.c (c_parser_expression): Mark LHS of a comma
20456 expression as read if it is a decl, handled component or
20457 COMPOUND_EXPR with that on the RHS.
20458 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
20459 if it is a decl or handled component.
20461 2010-05-11 Jan Hubicka <jh@suse.cz>
20463 * lto-symtab.c (lto_symtab_free): New function.
20464 * lto-streamer.h (lto_symtab_free): Declare.
20466 2010-05-11 Jan Hubicka <jh@suse.cz>
20468 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
20469 that if function is needed it is reachable.
20470 (lto_output_node): See if it the function is reachable or referenced.
20471 (output_cgraph): Update call of lto_output_node.
20472 * lto-streamer.h (reachable_from_other_partition_p): Declare.
20474 2010-05-11 Jan Hubicka <jh@suse.cz>
20476 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
20479 2010-05-11 Jan Hubicka <jh@suse.cz>
20481 PR tree-optimize/44063
20482 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
20484 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
20486 (estimate_function_body_sizes): Compute sizes even when disregarding.
20488 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
20490 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
20492 2010-05-11 Jan Hubicka <jh@suse.cz>
20494 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
20495 into every boundary.
20497 2010-05-11 Jan Hubicka <jh@suse.cz>
20499 * matrix-reorg.c (matrix_reorg): Rebuild edges.
20501 2010-05-11 Jan Hubicka <jh@suse.cz>
20503 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
20504 lto_streamer_cache_delete): Put nodes into heap.
20505 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
20508 2010-05-11 Jan Hubicka <jh@suse.cz>
20510 * cgraphbuild.c (cgraph_rebuild_references): New.
20511 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
20512 out extern inlines.
20513 * cgraph.h (cgraph_rebuild_references): Declare.
20514 * tree-inline.c (tree_function_versioning): Use it.
20515 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
20517 2010-05-11 Jan Hubicka <jh@suse.cz>
20519 * cgraph.c: Include ipa-utils.h
20520 (cgraph_create_virtual_clone): Update references.
20521 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
20523 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
20525 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
20526 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
20529 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
20531 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
20533 2010-05-11 Jakub Jelinek <jakub@redhat.com>
20535 * gcc.c (execute): For -### don't quote arguments that
20536 contain just alphanumerics and _/-. characters.
20537 * doc/invoke.texi: Document that change for -###.
20540 * df-problems.c (struct dead_debug): Add to_rescan field.
20541 (dead_debug_init): Clear to_rescan field.
20542 (dead_debug_finish): Rescan all debug insns in to_rescan
20543 bitmap and free the bitmap.
20544 (dead_debug_insert_before): Instead of rescanning debug insns
20545 immediately queue their rescanning until dead_debug_finish.
20546 (df_note_bb_compute): After dead_debug_add do continue instead
20549 2010-05-10 Jakub Jelinek <jakub@redhat.com>
20552 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
20553 clear also INSN_REG_USE_LIST.
20555 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20557 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
20559 2010-05-10 Jan Hubicka <jh@suse.cz>
20561 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
20564 2010-05-10 Jan Hubicka <jh@suse.cz>
20566 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
20568 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
20569 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
20570 (lto_streamer_cache_create): Init alloc pool.
20571 (lto_streamer_cache_delete): Free alloc pool.
20572 * lto-streamer.h: Include alloc pool.
20573 (lto_streamer_cache_d): Use alloc pool.
20574 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
20576 2010-05-10 Jan Hubicka <jh@suse.cz>
20578 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
20579 * cgraphbuild.c: Include except.h
20580 (record_type_list, record_eh_tables): New function.
20581 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
20583 2010-05-10 Jan Hubicka <jh@suse.cz>
20585 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
20586 __frame_dummy_init_array_entry, force_to_data): Attribute as used
20587 rather than unused.
20589 2010-05-10 Michael Matz <matz@suse.de>
20591 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
20592 (can_reassociate_p): Use FLOAT_TYPE_P.
20593 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
20594 (vect_force_simple_reduction): ... this.
20595 * tree-parloops.c (gather_scalar_reductions): Use
20596 vect_force_simple_reduction.
20597 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
20598 vect_is_simple_reduction, add modify argument, if true rewrite
20599 "a-b" into "a+(-b)".
20600 (vect_is_simple_reduction, vect_force_simple_reduction): New
20602 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
20604 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
20605 Vladimir Makarov <vmakarov@redhat.com>
20607 PR rtl-optimization/44012
20608 * ira-build.c (remove_unnecessary_allocnos): Nullify
20609 regno_allocno_map of the removed allocno.
20611 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20613 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
20615 * configure: Regenerate.
20617 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20619 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
20621 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
20622 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
20624 * configure: Regenerate.
20626 2010-05-10 Richard Guenther <rguenther@suse.de>
20628 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
20629 marked if the entry identifier is marked.
20631 2010-05-10 Richard Guenther <rguenther@suse.de>
20633 * c-common.c (struct c_common_attributes): Add fnspec attribute.
20634 (handle_fnspec_attribute): New function.
20635 * gimple.h (gimple_call_return_flags): Declare.
20636 (gimple_call_arg_flags): Likewise.
20637 * gimple.c (gimple_call_arg_flags): New function.
20638 (gimple_call_return_flags): Likewise.
20639 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
20640 New argument flags.
20641 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
20642 return value flags.
20643 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
20644 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
20646 (make_heapvar_for): ... this new function.
20647 (handle_rhs_call): Handle fnspec attribute argument specifiers.
20648 (handle_lhs_call): Likewise.
20649 (find_func_aliases): Adjust.
20651 2010-05-10 Richard Guenther <rguenther@suse.de>
20653 PR tree-optimization/44050
20654 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
20656 2010-05-10 Wei Guozhi <carrot@google.com>
20659 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
20661 2010-05-09 Joseph Myers <joseph@codesourcery.com>
20664 * c-typeck.c (lookup_field): Take a type directly. Update
20666 (build_component_ref): Update call to lookup_field.
20667 (set_init_label): Use lookup_field to find initialized field.
20668 Handle returned list of fields like a sequence of designators.
20670 2010-05-09 Richard Guenther <rguenther@suse.de>
20672 PR middle-end/44024
20673 * fold-const.c (tree_single_nonzero_warnv_p): Properly
20674 handle &FUNCTION_DECL.
20676 2010-05-09 Joseph Myers <joseph@codesourcery.com>
20679 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
20680 structures and unions recursively.
20681 (detect_field_duplicates): Move duplicate detection with a hash to
20682 detect_field_duplicates_hash. Always use a hash if anonymous
20683 structures or unions are present.
20684 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
20687 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
20690 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
20691 detect Atom, Core 2 and Core i7.
20693 2010-05-09 Richard Guenther <rguenther@suse.de>
20695 * gcc.c (store_arg): Handle temporary file deletion for
20698 2010-05-09 Richard Guenther <rguenther@suse.de>
20700 PR middle-end/44043
20701 * ipa-inline.c (estimate_function_body_sizes): Return after
20702 disregarding inline limits.
20704 2010-05-09 Richard Guenther <rguenther@suse.de>
20706 * gcc.c (store_arg): Revert last change.
20708 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
20710 PR middle-end/28685
20711 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
20712 (optimize_ops_list): Call it.
20714 2010-05-08 Richard Guenther <rguenther@suse.de>
20716 PR tree-optimization/44030
20717 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
20718 NECESSARY flag if we propagate from a inserted expression.
20720 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
20722 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
20723 domain types as equal if they are both PLACEHOLDER_EXPRs.
20725 2010-05-08 Richard Guenther <rguenther@suse.de>
20727 * lto-wrapper.c (run_gcc): Remove linker output from
20728 command line for LTRANS invocation.
20730 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
20732 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
20733 lto-macho as lto_binary_reader.
20734 * target.h (struct gcc_target): New hooks lto_start and lto_end.
20735 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
20736 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
20737 in lto_start and lto_end calls.
20738 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
20740 (scan_prog_file): Update is_elf_or_coff call.
20741 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
20743 * collect2.c (main): Fix enum comparison.
20745 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
20747 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
20748 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
20749 and TARGET_ASM_LTO_END.
20750 * darwin.c: Include obstack.h and lto-streamer.h.
20751 (lto_section_names_offset, lto_section_names_obstack,
20752 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
20754 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
20755 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
20756 to a temporary file.
20757 (darwin_asm_lto_end): New function. Restore asm_out_file.
20758 (darwin_asm_named_section): For LTO sections, replace the name with
20759 the offset of the section name in a string table, and build this
20761 (darwin_file_start): Initialize global vars for LTO support.
20762 (darwin_file_end): If output to asm_out_file was redirected, append it
20763 to the proper asm_out_file here. Add the section names section.
20765 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
20767 * c-pragma.c (pending_weak_d, pending_weak): New.
20768 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
20769 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
20770 handle_pragma_weak): Update the uses of pending_weaks.
20772 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20774 PR documentation/44016
20775 * doc/standards.texi (Standards): Link to unversioned
20776 cxx0x_status.html page.
20778 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
20781 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
20782 in addition to TREE_USED, to avoid "set but unused" warnings.
20784 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
20786 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
20787 (is_loop_prefetching_profitable): Do not insert prefetches
20788 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
20789 times the prefetch ahead distance.
20791 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
20793 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
20794 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
20795 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
20798 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
20800 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
20801 a diagnostic info when the insn-to-mem ratio is too small.
20803 2010-05-07 Richard Guenther <rguenther@suse.de>
20805 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
20807 (store_arg): Queue temp_filename for deletion instead of
20808 the whole argument.
20810 2010-05-07 Richard Guenther <rguenther@suse.de>
20812 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
20813 (run_gcc): Handle LTRANS phase invocation.
20814 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
20816 2010-05-07 Jakub Jelinek <jakub@redhat.com>
20818 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
20819 this is also meaningful on PARM_DECLs and RESULT_DECLs.
20821 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20823 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
20825 2010-05-07 Richard Guenther <rguenther@suse.de>
20827 PR tree-optimization/44020
20828 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
20829 code when PRE is not yet initialized.
20831 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20833 * config/mips/dbxmdebug.h: Remove.
20834 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
20836 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
20838 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
20839 with null pointer and also warn about ordered comparison of zero with
20840 pointer if -Wextra.
20842 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
20844 * graphite-blocking.c
20845 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
20846 * graphite-clast-to-gimple.c
20847 (clast_to_gcc_expression): Same.
20848 (precision_for_value): Same.
20849 (precision_for_interval): Same.
20850 (gcc_type_for_interval): Same.
20851 (graphite_create_new_guard): Same.
20852 (compute_bounds_for_level): Same.
20853 (graphite_create_new_loop_guard): Same.
20854 * graphite-interchange.c
20855 (build_linearized_memory_access): Same.
20856 (pdr_stride_in_loop): Same.
20857 (memory_strides_in_loop_1): Same.
20858 (memory_strides_in_loop): Same.
20859 (extend_scattering): Same.
20860 (psct_scattering_dim_for_loop_depth): Same.
20861 (pbb_number_of_iterations): Same.
20863 (debug_iteration_domains): Same.
20865 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
20866 (ppl_set_inhomogeneous_gmp): Same.
20867 (ppl_strip_loop): Same.
20868 (ppl_lexico_compare_linear_expressions): Same.
20869 (ppl_read_polyhedron_matrix): Same.
20870 (ppl_max_for_le_pointset): Same.
20872 (ppl_read_polyhedron_matrix): Same.
20873 (tree_int_to_gmp): Same.
20874 (gmp_cst_to_tree): Same.
20875 (ppl_set_inhomogeneous): Same.
20876 (ppl_set_inhomogeneous_tree): Same.
20877 (ppl_set_coef): Same.
20878 (ppl_set_coef_tree): Same.
20879 * graphite-sese-to-poly.c
20880 (build_pbb_scattering_polyhedrons): Same.
20881 (build_scop_scattering): Same.
20882 (scan_tree_for_params_right_scev): Same.
20883 (scan_tree_for_params): Same.
20884 (find_params_in_bb): Same.
20885 (find_scop_parameters): Same.
20886 (add_upper_bounds_from_estimated_nit): Same.
20887 (build_loop_iteration_domains): Same.
20888 (add_condition_to_domain): Same.
20889 (pdr_add_memory_accesses): Same.
20891 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
20893 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
20894 CLooG's value_* macros to their respective mpz_* counterparts.
20895 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
20896 (graphite_create_new_loop_guard): Same.
20897 * graphite-interchange.c (build_linearized_memory_access): Same.
20898 (pdr_stride_in_loop): Same.
20899 (memory_strides_in_loop_1): Same.
20900 (1st_interchange_profitable_p): Same.
20901 * graphite-poly.c (extend_scattering): Same.
20902 (psct_scattering_dim_for_loop_depth): Same.
20903 (pbb_number_of_iterations): Same.
20904 (pbb_number_of_iterations_at_time): Same.
20905 * graphite-poly.h (new_1st_loop): Same.
20906 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
20907 (oppose_constraint): Same.
20908 (insert_constraint_into_matrix): Same.
20909 (ppl_set_inhomogeneous_gmp): Same.
20910 (ppl_set_coef_gmp): Same.
20911 (ppl_strip_loop): Same.
20912 (ppl_lexico_compare_linear_expressions): Same.
20913 (ppl_max_for_le_pointset): Same.
20914 (ppl_min_for_le_pointset): Same.
20915 (ppl_build_realtion): Same.
20916 * graphite-ppl.h (gmp_cst_to_tree): Same.
20917 (ppl_set_inhomogeneous): Same.
20918 (ppl_set_inhomogeneous_tree): Same.
20919 (ppl_set_coef): Same.
20920 (ppl_set_coef_tree): Same.
20921 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
20922 (build_scop_scattering): Same.
20923 (add_value_to_dim): Same.
20924 (scan_tree_for_params_right_scev): Same.
20925 (scan_tree_for_params_int): Same.
20926 (scan_tree_for_params): Same.
20927 (find_params_in_bb): Same.
20928 (find_scop_parameters): Same.
20929 (add_upper_bounds_from_estimated_nit): Same.
20930 (build_loop_iteration_domains): Same.
20931 (create_linear_expr_from_tree): Same.
20932 (add_condition_to_domain): Same.
20933 (pdr_add_memory_accesses): Same.
20935 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
20936 Jason Merrill <jason@redhat.com>
20938 * c-common.c (c_common_reswords): Add nullptr.
20939 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
20940 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
20941 (gen_type_die_with_usage): Likewise.
20942 * dbxout.c (dbxout_type): Likewise.
20943 * sdbout.c (plain_type_1): Likewise.
20945 2010-05-06 Jason Merrill <jason@redhat.com>
20947 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
20948 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
20950 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
20952 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
20953 stripping WITH_SIZE_EXPR.
20954 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
20957 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20959 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
20960 list of obsolete configurations.
20961 Disabled check for obsolete configurations.
20962 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
20963 Removed support for previous versions.
20964 * config/mips/iris.h: Removed.
20965 * config/mips/iris5.h: Removed.
20966 * config/mips/iris6.h: Merged old iris.h contents.
20967 (TARGET_IRIX): Removed.
20968 (DRIVER_SELF_SPECS): Removed mabi=32.
20969 (IDENT_ASM_OP): Removed undef.
20970 (STARTFILE_SPEC): Removed mabi=32.
20971 (ENDFILE_SPEC): Likewise.
20972 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
20973 (MACHINE_TYPE): Update for IRIX 6.5.
20974 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
20975 TARGET_IRIX by TARGET_IRIX6.
20976 (mips_file_start): Likewise.
20977 (mips_output_external): Remove IRIX 5/6 O32 support.
20978 (mips_output_function_prologue): Likewise.
20979 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
20981 (TARGET_CPU_CPP_BUILTINS): Likewise.
20982 (TARGET_IRIX): Removed.
20983 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
20984 (MULTILIB_DIRNAMES): Removed 32.
20985 (MULTILIB_OSDIRNAMES): Removed ../lib.
20986 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
20987 (Specific, mips-sgi-irix5): Document removal.
20988 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
20989 Remove references to older IRIX 6 releases and the O32 ABI.
20991 2010-05-06 Jakub Jelinek <jakub@redhat.com>
20994 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
20995 instead of DF_REF_REAL_REG.
20997 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
21000 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
21001 handling to still return true for x64 targets.
21003 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
21005 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
21007 2010-05-06 Jan Hubicka <jh@suse.cz>
21009 PR tree-optimization/43791
21010 * ipa-inline.c (update_caller_keys): Remove bogus
21011 disregard_inline_limits check.
21013 2010-05-06 Michael Matz <matz@suse.de>
21015 PR tree-optimization/43984
21016 * tree-ssa-pre.c (inserted_phi_names): Remove.
21017 (inserted_exprs): Change to bitmap.
21018 (create_expression_by_pieces): Set bits, don't append to vector.
21019 (insert_into_preds_of_block): Don't handle inserted_phi_names.
21020 (eliminate): Don't look at inserted_phi_names, remove deleted
21021 insns from inserted_exprs.
21022 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
21023 (init_pre, fini_pre): Allocate and free bitmaps.
21024 (execute_pre): Insert insns on edges before elimination.
21026 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
21028 * tree.c (initializer_zerop): Handle STRING_CST.
21030 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
21033 * doc/invoke.texi (Wimplicit): Document as C only.
21034 * opts.c (common_handle_option): Add argument kind.
21035 (handle_option): Rename as read_cmdline_option. Factor out code to...
21036 (handle_option): ... here. New.
21037 (handle_options): Rename as read_cmdline_options.
21038 (decode_options): Update call.
21039 (set_option): Use option index instead of option pointer. Classify
21040 diagnostics correctly.
21041 (enable_warning_as_error): Call handle_option.
21042 * opts.h (set_option): Update declaration.
21043 (handle_option): Declare.
21044 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
21045 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
21046 * c-opts.c (set_Wimplicit): Delete.
21047 (c_family_lang_mask): New static constant.
21048 (c_common_handle_option): Add argument kind. Use handle_option
21049 instead of set_Wimplicit.
21050 (c_common_post_options): warn_implicit and warn_implicit_int
21051 are disabled by default.
21052 * c-common.c (warn_implicit): Do not define here.
21053 * c-common.h (warn_implicit): Do not declare here.
21054 (c_common_handle_option): Update declaration.
21055 * lto-opts.c (lto_reissue_options): Update call to set_option.
21057 2010-05-06 Richard Guenther <rguenther@suse.de>
21059 PR tree-optimization/43571
21060 * domwalk.c (walk_dominator_tree): Walk the dominator
21061 sons in more optimal order.
21063 2010-05-06 Richard Guenther <rguenther@suse.de>
21065 PR tree-optimization/43934
21066 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
21067 (stmt_cost): Likewise.
21068 (extract_true_false_args_from_phi): New helper.
21069 (determine_max_movement): For PHI nodes verify we can hoist them
21070 and compute their cost.
21071 (determine_invariantness_stmt): Handle PHI nodes.
21072 (move_computations_stmt): Likewise. Hoist PHI nodes in
21073 if-converted form using COND_EXPRs.
21074 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
21075 (tree_ssa_lim): Likewise.
21076 * tree-flow.h (tree_ssa_lim): Adjust prototype.
21077 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
21079 2010-05-06 Richard Guenther <rguenther@suse.de>
21081 PR tree-optimization/43987
21082 * tree-ssa-structalias.c (could_have_pointers): For possibly
21083 address-taken variables force pointers to be recorded.
21084 (create_variable_info_for_1): Likewise.
21085 (push_fields_onto_fieldstack): Pass in wheter all fields
21086 must have pointers.
21087 (find_func_aliases): Query types instead of vars whether
21088 they contain pointers where appropriate.
21090 2010-05-06 Jan Hubicka <jh@suse.cz>
21092 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
21093 (record_reference, mark_address, mark_load, mark_store): Record
21095 (record_references_in_initializer): Update call of record_references.
21096 (rebuild_cgraph_edges): Remove all references before rebuiding.
21097 * cgraph.c (cgraph_create_node): Clear ref list.
21098 (cgraph_remove_node): Remove references.
21099 (dump_cgraph_node): Dump references.
21100 (cgraph_clone_node): Clone references.
21101 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
21102 (struct cgraph_node, varpool_node): Add ref_lst.
21103 * ipa-ref.c: New file.
21104 * ipa-ref.h: New file.
21105 * ipa-ref-inline.h: New file.
21106 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
21107 (referenced_from_other_partition_p): New function.
21108 (lto_output_varpool_node): Take set arugment; call
21109 referenced_from_other_partition.
21110 (lto_output_ref): New.
21111 (add_references): New.
21112 (output_refs): New.
21113 (output_cgraph): Compute boundary based on references; output refs.
21114 (output_varpool): Accept cgraph_node_set argument.
21117 (input_cgraph): Call input_refs.
21118 * lto-section-in.c (lto_section_name): Add refs.
21119 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
21120 (ipa-ref.o): New file.
21121 * varpool.c (varpool_node): Clear ipa ref list.
21122 (varpool_remove_node): Remove references.
21123 (dump_varpool_node): Dump references.
21124 (varpool_assemble_decl): Only compile finalized ones.
21125 (varpool_extra_name_alias): Initialize ref list.
21126 * lto-streamer.c (lto-get_section_name): Add .refs section.
21127 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
21128 (referenced_from_other_partition_p): Declared.
21130 2010-05-06 Ira Rosen <irar@il.ibm.com>
21132 PR tree-optimization/43901
21133 * tree-vect-stmts.c (vectorizable_call): Assert that vector
21134 type is not NULL if it's transformation phase, and return
21135 FALSE if it's analysis.
21136 (vectorizable_conversion, vectorizable_operation,
21137 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
21139 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
21141 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
21143 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
21145 * config/mips/mips-protos.h
21146 (mips_small_register_classes_for_mode_p): Delete prototype.
21148 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
21150 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
21151 * config/arm/arm.c (multiple_operation_profitable_p,
21152 compute_offset_order): New static functions.
21153 (load_multiple_sequence, store_multiple_sequence): Use them.
21154 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
21155 memory offsets, not register numbers.
21156 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
21158 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
21160 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
21161 (get_pending_sizes, put_pending_size, put_pending_sizes):
21162 Update the uses of pending_sizes.
21163 * c-decl.c (store_parm_decls): Likewise.
21164 * c-tree.h (struct c_arg_info): Likewise.
21165 * tree.h: Update the prototype for get_pending_sizes and
21168 2010-05-05 Jason Merrill <jason@redhat.com>
21171 * c-common.c (handle_aligned_attribute): Respect
21172 ATTR_FLAG_TYPE_IN_PLACE.
21175 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
21176 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
21177 (TARGET_INITIALIZER): Use it.
21178 * c-common.c (attribute_takes_identifier_p): Call it.
21179 * c-common.h: Update prototype.
21180 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
21181 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
21183 2010-05-05 Jakub Jelinek <jakub@redhat.com>
21186 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
21187 DW_ID_down_case for Fortran compilation units.
21189 2010-05-05 Jan Hubicka <jh@suse.cz>
21191 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
21194 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
21196 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
21197 a variable-sized RESULT_DECL.
21199 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
21201 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
21203 2010-05-05 Jason Merrill <jason@redhat.com>
21206 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
21208 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
21210 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
21211 Jakub Jelinek <jakub@redhat.com>
21214 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
21215 (dead_debug_init, dead_debug_finish): New functions.
21216 (dead_debug_add, dead_debug_insert_before): Likewise.
21217 (df_note_bb_compute): Initialize a dead_debug object, add dead
21218 debug uses to it, insert debug bind insns before death insns,
21219 reset debug insns that refer to pending uses at the end.
21220 * rtl.h (make_debug_expr_from_rtl): New prototype.
21221 * varasm.c (make_debug_expr_from_rtl): New function.
21223 2010-05-05 Jan Hubicka <jh@suse.cz>
21225 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
21226 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
21227 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
21228 lto_varpool_encoder_deref, lto_varpool_encoder_size,
21229 lto_varpool_encoder_encode_initializer_p,
21230 lto_set_varpool_encoder_encode_initializer): New functions.
21231 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
21232 call output_varpool.
21233 (input_varpool_node): Do not always set analyzed.
21234 (input_cgraph_1): Return vector of cgraph nodes.
21235 (input_varpool_1): Return vector of varpools.
21236 (input_cgraph): Free the vectors.
21237 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
21238 output only initializers needed.
21239 (lto_output): Only call output_cgraph.
21240 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
21241 * lto-section-out.c (lto_new_out_decl_state): Initialize
21242 state->varpool_node_encoder.
21243 * lto-streamer.h (lto_varpool_encoder_d): New.
21244 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
21245 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
21246 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
21247 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
21248 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
21250 (output_varpool, input_varpool): Remove declarations.
21252 2010-05-05 Jan Hubicka <jh@suse.cz>
21254 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
21255 with body can prevail.
21257 2010-05-05 Jan Hubicka <jh@suse.cz>
21259 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
21262 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
21264 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
21266 * gengtype.h (erro_at_line): Constify pos argument.
21268 * gengtype.c: Include hashtab.h.
21269 (enum gc_used): Document GC_MAYBE_POINTED_TO.
21270 (error_at_line): Constify pos argument.
21271 (do_typedef): Initialize p->opt field.
21272 (get_file_gtfilename): Fix comment typo.
21273 (struct walk_type_data): Constify line field.
21274 (get_output_file_for_structure): New function.
21275 (write_local_func_for_structure): Constify orig_s argument.
21276 Use get_output_file_for_structure.
21277 (write_func_for_structure): Use get_output_file_for_structure.
21278 (INDENT): New define.
21279 (dump_pair, dump_type, dump_type_list, dump_typekind)
21280 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
21281 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
21283 (seen_types): New variable.
21284 (main): New variable do_dump. Process "-d" command line option.
21285 Call dump_everything if dump requested.
21287 2010-05-05 Jakub Jelinek <jakub@redhat.com>
21289 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
21290 in a temporary instead of invoking the macro multiple times.
21291 (track_expr_p): Likewise.
21293 2010-05-04 Neil Vachharajani <nvachhar@google.com>
21295 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
21297 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
21298 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
21299 conditions for printing notes.
21300 * common.opt (-Wcoverage-mismatch): Allow negative, default to
21301 true, update documentation.
21302 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
21304 2010-05-04 Jakub Jelinek <jakub@redhat.com>
21307 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
21310 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
21313 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
21314 (*sse_prologue_save_insn1): Likewise.
21315 (SSE prologue save splitter): Likewise.
21317 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
21319 * tree.c (free_lang_data_in_one_sizepos): New inline function.
21320 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
21321 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
21322 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
21323 all decls. Call it on DECL_FIELD_OFFSET of fields.
21324 (find_decls_types_r): Follow DECL_VALUE_EXPR.
21325 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
21327 2010-05-04 Martin Jambor <mjambor@suse.cz>
21329 * tree-sra.c (build_access_from_expr_1): The first parameter type
21330 changed to simple tree.
21331 (build_access_from_expr): Likewise, gsi parameter was eliminated.
21332 (scan_assign_result): Renamed to assignment_mod_result, enum elements
21334 (build_accesses_from_assign): Removed all parameters except for a
21335 simple gimple statement. Now returns a simple bool.
21336 (scan_function): All non-analysis parts moved to separate functions
21337 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
21338 parameters and updated both callers.
21339 (sra_modify_expr): Removed parameter data.
21340 (sra_modify_function_body): New function.
21341 (perform_intra_sra): Call sra_modify_function_body to modify the
21343 (replace_removed_params_ssa_names): Parameter data changed into
21344 adjustments vector.
21345 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
21346 changed the parameter dont_convert to convert with the opposite
21348 (sra_ipa_modify_assign): Parameter data changed into adjustments
21349 vector, return value changed to bool.
21350 (ipa_sra_modify_function_body): New function.
21351 (sra_ipa_reset_debug_stmts): Updated a comment.
21352 (modify_function): Use ipa_sra_modify_function_body to modify function
21355 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
21357 PR middle-end/43671
21358 * alias.c (true_dependence): Handle the same VALUE in x and mem.
21359 (canon_true_dependence): Likewise.
21360 (write_dependence_p): Likewise.
21362 2010-05-04 Jan Hubicka <jh@suse.cz>
21364 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
21365 * cgraphbuild.c: Include ipa-utils.h
21366 (record_reference_ctx): New struct.
21367 (record_reference): Simplify to work on initializers; not statements.
21368 (mark_address, mark_load, mark_store): New.
21369 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
21370 walk PHI nodes too.
21371 (record_references_in_initializer): Update use of record_reference.
21372 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
21373 walk PHI nodes too.
21375 2010-05-04 Jan Hubicka <jh@suse.cz>
21377 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
21378 node will be removed anyway.
21379 (lto_varpool_replace_node): Allow also unanalyzed nodes;
21380 relink aliases of node into prevailing node.
21381 * varpool.c (varpool_remove_node): Remove aliases properly;
21382 when removing node, remove all its aliases too; remove DECL_INITIAL
21383 of removed node; ggc_free the varpool node.
21385 2010-05-04 Richard Guenther <rguenther@suse.de>
21387 PR tree-optimization/43879
21388 * tree-ssa-structalias.c (alias_get_name): Use
21389 DECL_ASSEMBLER_NAME if available.
21390 (create_function_info_for): Return the varinfo node.
21391 (ipa_pta_execute): Associate same-body aliases and extra names
21392 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
21394 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
21396 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
21398 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
21401 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
21402 only if HONOR_REG_ALLOC_ORDER is not defined.
21404 2010-05-04 Richard Guenther <rguenther@suse.de>
21406 PR tree-optimization/43949
21407 * tree-vrp.c (extract_range_from_binary_expr): Only handle
21410 2010-04-26 Jason Merrill <jason@redhat.com>
21412 * c.opt (-fstrict-enums): New.
21413 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
21415 2010-05-03 David Ung <davidu@mips.com>
21416 James E. Wilson <wilson@codesourcery.com>
21418 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
21419 emit the trap instruction before the divide for TUNE_74K.
21421 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
21423 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
21424 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
21425 based on the above, for new target hook.
21427 * hooks.c (hook_bool_mode_true): New generic hook.
21428 * hooks.h (hook_bool_mode_true): Add prototype.
21430 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
21432 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
21433 target hook, set to hook_bool_mode_false.
21434 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
21435 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
21436 with targetm.small_register_classes_for_mode_p.
21437 (find_reusable_reload): Likewise.
21438 (combine_reloads): Likewise.
21439 * reload1.c (reload_as_needed): Likewise.
21440 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
21441 * ifcvt.c (noce_process_if_block, check_cond_move_block,
21442 dead_or_predicable): Likewise.
21443 * regmove.c (optimize_reg_copy_1): Likewise.
21444 * calls.c (prepare_call_address): Likewise.
21445 (precompute_register_parameters): Likewise.
21447 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
21449 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
21450 implementation of the hook that considers all register classes
21451 small except for SH64.
21452 (sh_override_options): Use the new hook.
21453 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
21456 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
21458 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
21459 implementation of the hook that considers all register classes
21461 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
21464 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
21466 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
21467 implementation of the hook that considers all register classes
21469 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
21472 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
21474 * config/m32c/m32c.h: Likewise.
21475 * config/pdp11/pdp11.h: Likewise.
21476 * config/avr/avr.h: Likewise.
21477 * config/xtensa/xtensa.h: Likewise.
21478 * config/m68hc11/m68hc11.h: Likewise.
21479 * config/mn10300/mn10300.h: Likewise.
21480 * config/mcore/mcore.h: Likewise.
21481 * config/h8300/h8300.h: Likewise.
21482 * config/bfin/bfin.h: Likewise.
21484 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
21485 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
21487 2010-05-03 Anatoly Sokolov <aesok@post.ru>
21489 * double-int.h (tree_to_double_int): Remove macro.
21490 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
21491 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
21492 (tree_to_double_int): New function.
21493 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
21495 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
21497 2010-05-03 Richard Guenther <rguenther@suse.de>
21499 PR tree-optimization/43971
21500 * tree-ssa-structalias.c (get_constraint_for_1): Fix
21501 constraints in the !flag_delete_null_pointer_checks case.
21503 2010-05-03 Jakub Jelinek <jakub@redhat.com>
21506 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
21507 result mode matches original rtl mode.
21509 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
21512 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
21514 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
21516 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
21517 when processing flag options.
21519 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
21521 * gcov-iov.c (main): Change format string placeholder
21522 from %#08x to 0x%08x.
21523 * genchecksum.c (dosum): Change format string placeholder
21524 from %#02x to 0x%02x.
21526 2010-05-02 Richard Guenther <rguenther@suse.de>
21528 PR tree-optimization/43879
21529 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
21531 2010-05-02 Bruno Haible <bruno@clisp.org>
21533 * doc/extend.texi (Function Attributes): Fix a typo.
21535 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
21538 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
21539 placeholder from 0x%x to %#x.
21540 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
21541 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
21542 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
21543 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
21544 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
21545 * config/i386/i386.c (ix86_target_string): Ditto.
21546 * config/i386/i386.c (output_pic_addr_const): Ditto.
21547 (print_operand): Ditto.
21549 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
21551 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
21552 placeholder from 0x%x to %#x.
21553 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
21554 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
21555 (ASM_OUTPUT_DEBUG_DATA): Ditto.
21556 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
21557 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
21558 * optc-gen.awk: Ditto.
21559 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
21560 (HOST_WIDE_INT_PRINT_HEX): Ditto.
21561 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
21562 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
21564 2010-05-01 Anatoly Sokolov <aesok@post.ru>
21566 * target.h (struct calls): Add function_value_regno_p field.
21567 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
21568 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
21569 * targhooks.c (default_function_value_regno_p): New function.
21570 * targhooks.h (default_function_value_regno_p): Declare function.
21571 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
21572 * builtins.c. (apply_result_size): (Ditto.).
21573 * combine.c. (likely_spilled_retval_p): (Ditto.).
21574 * mode-switching.c. Include 'target.h'.
21575 (create_pre_exit): Use function_value_regno_p hook.
21576 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
21577 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
21578 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
21580 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
21581 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
21582 (ix86_function_value_regno_p): Declare as static, change argument
21583 type to const unsigned int.
21584 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
21586 2010-05-01 Richard Guenther <rguenther@suse.de>
21588 PR tree-optimization/43949
21589 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
21591 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
21593 2010-05-01 Anatoly Sokolov <aesok@post.ru>
21595 * rtl.h (CONST_DOUBLE_P): Define.
21596 (rtx_to_double_int): Declare.
21597 * emit-rtl.c (rtx_to_double_int): New function.
21598 * dwarf2out.c (insert_double): New function.
21599 (loc_descriptor, add_const_value_attribute): Clean up, use
21600 rtx_to_double_int and insert_double functions.
21602 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
21604 * doc/extend.texi (Inline): Add missing return keyword to examples.
21605 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
21608 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
21610 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
21611 the variable part of the offset as well. Use highest_pow2_factor for
21612 all alignment checks.
21614 2010-04-30 Richard Guenther <rguenther@suse.de>
21616 PR tree-optimization/43879
21617 * tree-ssa-structalias.c (type_could_have_pointers): Functions
21620 2010-04-30 Jan Hubicka <jh@suse.cz>
21622 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
21624 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
21626 2010-04-30 Jan Hubicka <jh@suse.cz>
21628 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
21630 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
21631 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
21632 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
21633 cgraph_node_set_needs_ltrans_p): Remove.
21635 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
21637 * sdbout.c: Include vec.h, do not include varray.h.
21638 (deferred_global_decls, sdbout_global_decl,
21639 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
21640 * toplev.c: Do not include varray.h.
21641 (dump_memory_report): Do not dump VARRAY statistics.
21642 * gengtype.c (open_base_file): Ignore varray.h.
21643 * Makefile.in: Update for abovementioned changes.
21644 Remove all traces of varray.c and varray.h.
21645 * varray.c: Remove file.
21646 * varray.h: Remove file.
21648 2010-04-30 Jan Hubicka <jh@suse.cz>
21650 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
21653 2010-04-30 Jan Hubicka <jh@suse.cz>
21655 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
21658 2010-04-30 Richard Guenther <rguenther@suse.de>
21660 * tree-ssa-structalias.c (get_constraint_for_1): Generate
21661 constraints for CONSTRUCTOR.
21663 2010-04-30 Richard Guenther <rguenther@suse.de>
21666 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
21667 first after all lowering passes.
21669 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
21671 * toplev.c: Include varray.h for statistics dumping.
21672 * tree.h: Do not declare varray_head_tag.
21673 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
21674 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
21675 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
21676 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
21677 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
21678 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
21679 c-common.c, c-common.h, reg-stack.c, basic-block.h,
21680 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
21682 * Makefile.in: Update for abovementioned changes.
21684 2010-04-30 Jakub Jelinek <jakub@redhat.com>
21687 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
21689 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
21691 * config/picochip/picochip.c (picochip_legitimize_address): Define.
21692 Use this function to do machine-specific conversion.
21693 (picochip_legitimize_reload_address): Likewise.
21694 (picochip_legitimate_address_p): Check valid base register only if
21696 (picochip_check_conditional_copy): Check for modw only if opnd is
21698 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
21699 to call the function in c.
21700 * config/picochip/picochip-protos.h
21701 (picochip_legitimize_reload_address): Define.
21702 * config/picochip/picochip.md (supported_compare1): Define.
21704 2010-04-30 Jan Hubicka <jh@suse.cz>
21706 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
21707 (cgraph_global_info): Remove inlined.
21708 (LTO_cgraph_tag_names): Remove.
21709 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
21710 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
21711 simplify cgraph tags and document.
21712 (lto_output_node): Use only LTO_cgraph_unavail_node and
21713 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
21714 for_functions_valid, global info, process and output flags.
21715 (input_overwrite_node): Initialize estimated stack size and
21716 estimated growth. Do not read flags we no longer store.
21717 (input_node): Likewise do not read info no longer stored.
21718 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
21721 2010-04-30 Richard Guenther <rguenther@suse.de>
21723 PR tree-optimization/43879
21724 * tree-ssa-structalias.c (get_constraint_for_1): Properly
21725 handle non-zero initializers.
21727 2010-04-30 Richard Guenther <rguenther@suse.de>
21729 * builtins.c (fold_builtin_1): Delete free (0).
21731 2010-04-29 Jan Hubicka <jh@suse.cz>
21733 * gengtype.c (open_base_files): Add lto-streamer.h
21734 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
21735 (pass_ipa_cp): GGC collect.
21736 * toplev. (compile_file): Do not output symbols.
21737 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
21738 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
21739 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
21740 * lto-section-in.c: Include ggc.h
21741 (lto_new_in_decl_state): Alloc in GGC.
21742 (lto_delete_in_decl_state): Likewise.
21743 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
21746 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
21749 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
21750 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
21751 (HONOR_REG_ALLOC_ORDER): Describe new macro.
21752 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
21753 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
21754 account only if HONOR_REG_ALLOC_ORDER is not defined.
21755 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
21756 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
21758 2010-04-29 Jon Grant <04@jguk.org>
21760 * collect2.c (vflag): Change type from int to bool.
21762 (helpflag): New global bool.
21763 (main): Set vflag and debug with boolean, not integer truth values.
21764 Accept new "--help" option and output usage text if found.
21765 * collect2.h (vflag): Update prototype.
21768 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
21771 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
21773 2010-04-29 Richard Guenther <rguenther@suse.de>
21776 * plugin.h (invoke_plugin_callbacks): Annotate arguments
21777 with ATTRIBUTE_UNUSED.
21779 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
21782 * config/i386/i386.c (get_some_local_dynamic_name): Replace
21783 INSN_P with NONDEBUG_INSN_P.
21784 (distance_non_agu_define): Likewise.
21785 (distance_agu_use): Likewise.
21787 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
21789 From Dominique d'Humieres <dominiq@lps.ens.fr>
21791 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
21794 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
21796 * plugin.h (invoke_plugin_callbacks): New inline function.
21797 * plugin.c (flag_plugin_added): New global flag.
21798 (add_new_plugin): Initialize above flag.
21799 (invoke_plugin_callbacks): Rename to ...
21800 (invoke_plugin_callbacks_full): ... this.
21802 2010-04-28 Jan Hubicka <jh@suse.cz>
21804 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
21805 (lto_varpool_replace_node): New.
21806 (lto_symtab_resolve_symbols): Resolve varpool nodes.
21807 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
21808 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
21809 * cgraph.h (varpool_node_ptr): New type.
21810 (varpool_node_ptr): New vector.
21811 (varpool_node_set_def): New structure.
21812 (varpool_node_set): New type.
21813 (varpool_node_set): New vector.
21814 (varpool_node_set_element_def): New structure.
21815 (varpool_node_set_element, const_varpool_node_set_element): New types.
21816 (varpool_node_set_iterator): New type.
21817 (varpool_node): Add prev pointers, add used_from_other_partition,
21818 in_other_partition.
21819 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
21820 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
21821 varpool_get_node, varpool_remove_node): Declare.
21822 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
21823 varpool_node_set_size): New inlines.
21824 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
21825 * tree-pass.h (varpool_node_set_def): Forward declare.
21826 (ipa_opt_pass_d): Summary writting takes vnode sets too.
21827 (ipa_write_optimization_summaries): Update prototype.
21828 * ipa-cp.c (ipcp_write_summary): Update.
21829 * ipa-reference.c (ipa_reference_write_summary): Update.
21830 * lto-cgraph.c (lto_output_varpool_node): New static function.
21831 (output_varpool): New function.
21832 (input_varpool_node): New static function.
21833 (input_varpool_1): New function.
21834 (input_cgraph): Input varpool.
21835 * ipa-pure-const.c (pure_const_write_summary): Update.
21836 * lto-streamer-out.c (lto_output): Update, output varpool too.
21837 (write_global_stream): Kill WPA hack.
21838 (produce_asm_for_decls): Update.
21839 (output_alias_pair_p): Handle variables.
21840 (output_unreferenced_globals): Output only needed partition of varpool.
21841 * ipa-inline.c (inline_write_summary): Update.
21842 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
21844 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
21845 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
21846 varpool_node_set_new, varpool_node_set_add,
21847 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
21848 debug_varpool_node_set): New functions.
21849 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
21850 (execute_one_pass): Process new decls too.
21851 (ipa_write_summaries_2): Pass around vsets.
21852 (ipa_write_summaries_1): Likewise.
21853 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
21855 (ipa_write_optimization_summaries_1): Pass around vsets.
21856 (ipa_write_optimization_summaries): Likewise.
21857 * varpool.c (varpool_get_node): New.
21858 (varpool_node): Update doubly linked lists.
21859 (varpool_remove_node): New.
21860 (dump_varpool_node): More dumping.
21861 (varpool_enqueue_needed_node): Update doubly linked lists.
21862 (decide_is_variable_needed): Kill ltrans hack.
21863 (varpool_finalize_decl): Kill lto hack.
21864 (varpool_assemble_decl): Skip decls in other partitions.
21865 (varpool_assemble_pending_decls): Update doubly linkes lists.
21866 (varpool_empty_needed_queue): Likewise.
21867 (varpool_extra_name_alias): Likewise.
21868 * lto-streamer.c (lto_get_section_name): Add vars section.
21869 * lto-streamer.h (lto_section_type): Update.
21870 (output_varpool, input_varpool): Declare.
21872 2010-04-28 Mike Stump <mikestump@comcast.net>
21874 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
21876 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
21878 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
21879 record or union type with RECORD_OR_UNION_TYPE_P predicate.
21880 (lto_input_ts_type_tree_pointers): Likewise.
21881 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
21882 (lto_output_ts_type_tree_pointers): Likewise.
21884 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
21886 Uniquization of constants at the Tree level
21887 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
21888 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
21890 (tree_output_constant_def): Declare.
21891 * gimplify.c (gimplify_init_constructor): When using block copy, first
21892 uniquize the constant constructor on the RHS.
21893 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
21894 DECL_IN_CONSTANT_POOL flag.
21895 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
21896 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
21898 (assemble_variable): Deal with symbols belonging to the tree constant
21900 (get_constant_section): Add ALIGN parameter and simplify.
21901 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
21902 (assemble_constant_contents): Use the expression of the VAR_DECL.
21903 (output_constant_def_contents): Use the alignment of the VAR_DECL.
21904 (tree_output_constant_def): New global function.
21905 (mark_constant): Use the expression of the VAR_DECL.
21906 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
21908 (output_object_block): Likewise and assemble the expression.
21910 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
21912 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
21913 hash_tree, eq_tree): New tree hash table.
21914 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
21915 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
21916 lto_orig_address_remove): Reimplement.
21918 2010-04-28 Xinliang David Li <davidxl@google.com>
21921 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
21922 (compute_uninit_opnds_pos): New function.
21923 (is_non_loop_exit_postdominating): New function.
21924 (compute_control_dep_chain): New function.
21925 (find_pdom): New function.
21926 (convert_control_dep_chain_into_preds): New function.
21927 (find_predicates): New function.
21928 (find_control_equiv_block): New function.
21929 (collect_phi_def_edges): New function.
21930 (find_def_preds): New function.
21931 (find_dom): New function.
21932 (dump_predicates): New function.
21933 (get_cmp_code): New function.
21934 (is_value_included_in): New function.
21935 (find_matching_predicate_in_rest_chains): New function.
21936 (use_pred_not_overlap_with_undef_path_pred): New function.
21937 (is_use_properly_guarded): New function.
21938 (normalize_cond_1): New function.
21939 (is_and_or_or): New function.
21940 (normalize_cond): New function.
21941 (is_gcond_subset_of): New function.
21942 (is_subset_of_any): New function.
21943 (is_or_set_subset_of): New function.
21944 (is_and_set_subset_of): New function.
21945 (is_norm_cond_subset_of): New function.
21946 (is_pred_expr_subset_of): New function.
21947 (is_pred_chain_subset_of): New function.
21948 (is_included_in): New function.
21949 (is_superset_of): New function.
21950 (find_uninit_use): New function.
21951 (warn_uninitialized_phi): New function.
21952 (compute_possibly_undefined_names): New function.
21953 (ssa_undefined_value_p): New function.
21954 (execute_late_warn_uninitialized): New function.
21955 * tree-ssa.c (ssa_undefined_value_p): Removed.
21956 (warn_uninit): Changed to extern.
21957 (warn_uninitialized_phi): Removed.
21958 (warn_uninitialized_vars): Changed to extern.
21959 (execute_late_warn_uninitialized): Removed
21960 * tree-flow.h: Add new prototypes.
21961 * timevar.def: Add new time variable.
21962 * Makefile.in: Add new build file.
21964 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
21966 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
21969 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21972 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
21974 2010-04-28 Martin Jambor <mjambor@suse.cz>
21976 * cgraph.h (struct cgraph_node): New field indirect_calls.
21977 (struct cgraph_indirect_call_info): New type.
21978 (struct cgraph_edge): Removed field indirect_call. New fields
21979 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
21980 (cgraph_create_indirect_edge): Declare.
21981 (cgraph_make_edge_direct): Likewise.
21982 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
21983 * ipa-prop.h (struct ipa_param_call_note): Removed.
21984 (struct ipa_node_params): Removed field param_calls.
21985 (ipa_create_all_structures_for_iinln): Declare.
21986 * cgraph.c: Described indirect edges and uids in initial comment.
21987 (cgraph_add_edge_to_call_site_hash): New function.
21988 (cgraph_edge): Search also among the indirect edges, use
21989 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
21990 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
21991 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
21993 (initialize_inline_failed): Assign a reason to indirect edges.
21994 (cgraph_create_edge_1): New function.
21995 (cgraph_create_edge): Moved some functionality to
21996 cgraph_create_edge_1.
21997 (cgraph_create_indirect_edge): New function.
21998 (cgraph_edge_remove_callee): Add an assert checking for
22000 (cgraph_edge_remove_caller): Special-case indirect edges.
22001 (cgraph_remove_edge): Likewise.
22002 (cgraph_set_edge_callee): New function.
22003 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
22004 (cgraph_make_edge_direct): New function.
22005 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
22006 the declaration of the call statement matches.
22007 (cgraph_node_remove_callees): Special-case indirect edges.
22008 (cgraph_clone_edge): Likewise.
22009 (cgraph_clone_node): Clone also the indirect edges.
22010 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
22011 indirect_call, dump count of indirect_calls edges.
22012 * ipa-prop.c (iinlining_processed_edges): New variable.
22013 (ipa_note_param_call): Create indirect edges instead of
22014 creating notes. New parameter node.
22015 (ipa_analyze_call_uses): New parameter node, pass it on to
22016 ipa_note_param_call.
22017 (ipa_analyze_stmt_uses): Likewise.
22018 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
22019 (print_edge_addition_message): Work on edges rather than on notes.
22020 (update_call_notes_after_inlining): Likewise, renamed to
22021 update_indirect_edges_after_inlining.
22022 (ipa_create_all_structures_for_iinln): New function.
22023 (ipa_free_node_params_substructures): Do not free notes.
22024 (ipa_edge_duplication_hook): Propagate bits within
22025 iinlining_processed_edges bitmap.
22026 (ipa_node_duplication_hook): Do not duplicate notes.
22027 (free_all_ipa_structures_after_ipa_cp): Renamed to
22028 ipa_free_all_structures_after_ipa_cp.
22029 (free_all_ipa_structures_after_iinln): Renamed to
22030 ipa_free_all_structures_after_iinln.
22031 (ipa_write_param_call_note): Removed.
22032 (ipa_read_param_call_note): Removed.
22033 (ipa_write_indirect_edge_info): New function.
22034 (ipa_read_indirect_edge_info): Likewise.
22035 (ipa_write_node_info): Do not stream notes, do stream information
22037 (ipa_read_node_info): Likewise.
22038 (lto_ipa_fixup_call_notes): Removed.
22039 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
22040 * ipa-inline.c (pass_ipa_inline): Likewise.
22041 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
22042 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
22043 * tree-inline.c (copy_bb): Removed an unnecessary double check for
22045 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
22047 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
22048 (output_cgraph): Stream also indirect edges.
22049 (lto_output_edge): Added capability to stream indirect edges.
22050 (input_edge): Likewise.
22051 (input_cgraph_1): Likewise.
22052 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
22055 2010-04-28 Richard Guenther <rguenther@suse.de>
22057 PR tree-optimization/43879
22058 PR tree-optimization/43909
22059 * tree-ssa-structalias.c (struct variable_info): Add
22060 only_restrict_pointers flag.
22061 (new_var_info): Initialize it. Increment stats.total_vars here.
22062 (create_function_info_for): Do not increment stats.total_vars here.
22063 (get_function_part_constraint): Fix build with C++.
22064 (insert_into_field_list): Remove.
22065 (push_fields_onto_fieldstack): Properly merge fields.
22066 (create_variable_info_for): Split and simplify.
22067 (create_variable_info_for_1): New piece.
22068 (intra_create_variable_infos): Properly make restrict constraints
22071 2010-04-28 Richard Guenther <rguenther@suse.de>
22074 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
22076 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
22077 Jan Hubicka <hubicka@ucw.cz>
22079 * doc/invoke.texi (-Wsuggest-attribute=const,
22080 -Wsuggest-attribute=pure): Document.
22081 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
22082 (function_always_visible_to_compiler_p,
22083 suggest_attribute, warn_function_pure, warn_function_const):
22085 (check_call): Improve debug info.
22086 (analyze_function): Do not check availability.
22087 (add_new_function): Check availability.
22088 (propagate): Output warnings.
22089 (skip_function_for_local_pure_const): New function.
22090 (local_pure_const): Use it; output warnings.
22091 * common.opt (Wsuggest-attribute=const,
22092 Wsuggest-attribute=pure): New.
22094 2010-04-27 Jakub Jelinek <jakub@redhat.com>
22096 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
22097 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
22098 or DW_CFA_def_cfa_offset{,_sf}.
22100 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
22102 * tree.h: Fix truncated long macros.
22104 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
22106 * collect2.c (TARGET_64BIT): Redefine to target's default.
22107 * tlink.c: Likewise.
22108 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
22109 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
22110 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
22111 for underscoring __USER_LABEL_PREFIX__.
22112 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
22113 (SUB_LINK_ENTRY32): New.
22114 (SUB_LINK_ENTRY64): New.
22115 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
22116 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
22117 (SUB_LINK_ENTRY64): New.
22118 (SUB_LINK_ENTRY): New.
22119 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
22120 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
22121 x64 target is choosen.
22122 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
22123 * configure: Regenerated.
22124 * configure.ac (leading-mingw64-underscores): Option added.
22126 2010-04-27 Jan Hubicka <jh@suse.cz>
22128 * doc/invoke.texi (-fipa-profile): Document.
22129 * opts.c (decode_options): Enable ipa-profile at -O1.
22130 * timevar.def (TV_IPA_PROFILE): Define.
22131 * common.opt (fipa-profile): Add.
22132 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
22134 (cgraph_propagate_frequency): Handle only local ones.
22135 * tree-pass.h (pass_ipa_profile): Declare.
22136 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
22137 (pass_ipa_profile): Use TV_IPA_PROFILE.
22138 * ipa.c (ipa_profile): New function.
22139 (gate_ipa_profile): Likewise.
22140 (pass_ipa_profile): New global variable.
22141 * passes.c (pass_ipa_profile): New.
22143 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
22145 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
22147 2010-04-27 Martin Jambor <mjambor@suse.cz>
22149 PR middle-end/43812
22150 * ipa.c (dissolve_same_comdat_group_list): New function.
22151 (function_and_variable_visibility): Call
22152 dissolve_same_comdat_group_list when comdat group contains external or
22154 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
22155 lists are circular and that they contain only DECL_ONE_ONLY nodes.
22157 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
22159 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
22160 (const_hash_1) <VECTOR_CST>: New case.
22161 (compare_constant) <VECTOR_CST>: Likewise.
22162 <ADDR_EXPR>: Deal with LABEL_REFs.
22163 (copy_constant) <VECTOR_CST>: New case.
22165 2010-04-27 Jan Hubicka <jh@suse.cz>
22167 * cgraph.c (cgraph_propagate_frequency): New function.
22168 * cgraph.h (cgraph_propagate_frequency): Declare.
22169 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
22170 cgraph_propagate_frequency.
22172 2010-04-27 Jakub Jelinek <jakub@redhat.com>
22174 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
22176 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
22179 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
22180 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
22181 here to determine which regs to push and how much stack to reserve.
22183 2010-04-27 Jie Zhang <jie@codesourcery.com>
22185 * doc/gimple.texi (gimple_statement_with_ops): Remove
22186 addresses_taken field.
22187 (gimple_statement_with_memory_ops): Likewise.
22189 2010-04-27 Jan Hubicka <jh@suse.cz>
22191 * tree-inline.c (eni_inlining_weights): Remove.
22192 (estimate_num_insns): Special case more builtins.
22194 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
22197 * c-typeck.c (build_binary_op): Move forward check for comparison
22198 pointer with null pointer constant and adjust the diagnostic message.
22200 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
22203 * configure.ac (gcc_cv_as_section_has_align): Set if installed
22204 binutils supports extended .section directive needed by LTO, or
22205 warn if older binutils found.
22206 (LTO_BINARY_READER): New AC_SUBST'd variable.
22207 (LTO_USE_LIBELF): Likewise.
22208 * config.gcc (lto_binary_reader): New target-specific configure
22210 * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
22211 (LTO_USE_LIBELF): Likewise.
22212 * configure: Regenerate.
22214 * collect2.c (is_elf): Rename from this ...
22215 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
22216 object files in addition to ELF-formatted ones.
22217 (scan_prog_file): Caller updated. Also allow for LTO info marker
22218 symbol to be prefixed or not by an extra underscore.
22220 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
22221 * config/i386/winnt.c: Also #include lto-streamer.h
22222 (i386_pe_asm_named_section): Specify 1-byte section alignment for
22223 LTO named sections.
22224 (i386_pe_asm_output_aligned_decl_common): Add comment.
22225 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
22227 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
22230 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
22231 Add missing earlyclobber for second alternative.
22233 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
22235 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
22236 bits for artificial defs at the top of the block.
22237 * fwprop.c (single_def_use_enter_block): Don't call it.
22239 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
22242 * configure.ac: Use "$gcc_cv_nm -g" on darwin
22243 instead of "$gcc_cv_objdump -T".
22244 Use "-undefined dynamic_lookup" on darwin.
22245 * configure: Regenerate.
22247 2010-04-26 Jakub Jelinek <jakub@redhat.com>
22250 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
22252 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
22254 * c-parser.c (struct c_token): Move location field up.
22255 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
22256 (struct c_declspecs): Convert typespec_word, storage_class, and
22257 default_int_p into bitfields.
22258 (struct c_declarator): Move loc field up.
22260 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
22262 * cfgloop.h (struct loop): Move can_be_parallel field up.
22263 * ipa-prop.h (struct ip_node_params): Move bitfields up.
22264 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
22266 (struct iv_cand): Convert pos field into a bitfield.
22267 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
22269 (struct _stmt_vec_info): Shuffle fields for better packing.
22271 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
22273 * varasm.c (IN_NAMED_SECTION): Remove guard.
22274 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
22275 (IN_NAMED_SECTION_P): ...this.
22276 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
22277 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
22279 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
22281 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
22282 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
22283 of shadowing it. Fix comments.
22285 2010-04-26 Jan Hubicka <jh@suse.cz>
22287 * cgraph.c (cgraph_create_node): Set node frequency to normal.
22288 (cgraph_clone_node): Copy function frequency.
22289 * cgraph.h (node_frequency): New enum
22290 (struct cgraph_node): Add.
22291 * final.c (rest_of_clean_state): Update.
22292 * lto-cgraph.c (lto_output_node): Output node frequency.
22293 (input_overwrite_node): Input node frequency.
22294 * tre-ssa-loop-ivopts (computation_cost): Update.
22295 * lto-streamer-out.c (output_function): Do not output function
22297 * predict.c (maybe_hot_frequency_p): Update and handle functions
22299 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
22301 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
22302 (compute_function_frequency): Set noreturn functions to be executed
22304 (choose_function_section): Update.
22305 * lto-streamer-in.c (input_function): Do not input function frequency.
22306 * function.c (allocate_struct_function): Do not initialize function
22308 * function.h (function_frequency): Remove.
22309 (struct function): Remove function frequency.
22310 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
22311 (try_update): Update.
22312 * tree-inline.c (initialize_cfun): Do not update function frequency.
22313 * passes.c (pass_init_dump_file): Update.
22314 * i386.c (ix86_compute_frame_layout): Update.
22315 (ix86_pad_returns): Update.
22317 2010-04-26 Jie Zhang <jie@codesourcery.com>
22319 PR tree-optimization/43833
22320 * tree-vrp.c (range_int_cst_p): New.
22321 (range_int_cst_singleton_p): New.
22322 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
22323 when both operands are constants. Use range_int_cst_p in
22326 2010-04-26 Jan Hubicka <jh@suse.cz>
22328 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
22330 2010-04-26 Richard Guenther <rguenther@suse.de>
22333 * gimple.c (gimple_decl_printable_name): Deal gracefully
22334 with a NULL DECL_NAME.
22336 2010-04-26 Richard Guenther <rguenther@suse.de>
22339 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
22340 if emitting debug information and it is either a function
22341 or a namespace decl.
22343 2010-04-26 Ira Rosen <irar@il.ibm.com>
22345 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
22346 determine if the statement is vectorizable, and a macro to access it.
22347 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
22348 Skip statements that can't be vectorized. If the analysis fails,
22349 mark the statement as unvectorizable if vectorizing basic block.
22350 (vect_compute_data_refs_alignment): Likewise.
22351 (vect_verify_datarefs_alignment): Skip statements marked as
22352 unvectorizable. Add print.
22353 (vect_analyze_group_access): Skip statements that can't be
22354 vectorized. If the analysis fails, mark the statement as
22355 unvectorizable if vectorizing basic block.
22356 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
22357 * tree-vect-stmts.c (vectorizable_store): Fix the number of
22358 generated stmts for SLP.
22359 (new_stmt_vec_info): Initialize the new field.
22360 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
22361 statements marked as unvectorizable.
22363 2010-04-25 Joseph Myers <joseph@codesourcery.com>
22365 * c-common.c (flag_isoc1x): New.
22366 (flag_isoc99): Update comment.
22367 * c-common.h (flag_isoc1x): New.
22368 (flag_isoc99): Update comment.
22369 * c-cppbuiltin.c (builtin_define_float_constants): Also define
22370 __<type>_DECIMAL_DIG__.
22371 * c-opts.c (set_std_c1x): New.
22372 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
22373 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
22374 * c.opt (-std=c1x, -std=gnu1x): New options.
22375 * doc/cpp.texi: Mention -std=c1x.
22376 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
22377 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
22378 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
22379 * doc/standards.texi: Mention C1X.
22380 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
22381 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
22382 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
22385 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
22387 * config/i386/gmon-sol2.c (_mcleanup): Change format string
22388 placeholder from 0x%x to %#x.
22389 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
22390 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
22391 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
22392 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
22393 * config/i386/i386.c (ix86_target_string): Ditto.
22394 (output_pic_addr_const): Ditto.
22395 (print_operand): Ditto.
22397 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
22399 * combine.c (find_split_point): Add third argument. Use it
22400 to find nested multiply-accumulate instructions. Adjust calls.
22401 (try_combine): Adjust call to find_split_point.
22403 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
22405 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
22407 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
22409 PR tree-optimization/41442
22410 * fold-const.c (merge_truthop_with_opposite_arm): New function.
22411 (fold_binary_loc): Call it.
22413 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
22415 * toplev.c (general_init): Set default for fdiagnostics-show-option.
22416 * opts.c (common_handle_option): Allow disabling it.
22417 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
22419 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
22421 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
22422 between modes if both types are integral.
22424 2010-04-23 Richard Guenther <rguenther@suse.de>
22426 PR tree-optimization/43572
22427 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
22429 2010-04-23 Richard Guenther <rguenther@suse.de>
22432 * tree-inline.c (tree_can_inline_p): Also check compatibility
22435 2010-04-23 Martin Jambor <mjambor@suse.cz>
22437 PR tree-optimization/43846
22438 * tree-sra.c (struct access): New flag grp_assignment_read.
22439 (build_accesses_from_assign): Set grp_assignment_read.
22440 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
22441 (enum mark_read_status): New type.
22442 (analyze_access_subtree): Propagate grp_assignment_read, create
22443 accesses also if both direct_read and root->grp_assignment_read.
22445 2010-04-23 Martin Jambor <mjambor@suse.cz>
22447 PR middle-end/43835
22448 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
22449 function does not have type attributes.
22451 2010-04-23 Richard Guenther <rguenther@suse.de>
22454 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
22457 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
22459 * sese.h (create_if_region_on_edge): Remove.
22461 * sese.c (create_if_region_on_edge): Make static.
22463 * tree-inline.c: Do not include ggc.h.
22465 * expr.c: Do not include ggc.h.
22467 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
22470 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
22473 * config/sh/sh.c (find_barrier): Don't emit a constant pool
22474 in the middle of insns for casesi_worker_2.
22476 2010-04-22 David Edelsohn <edelsohn@gnu.org>
22478 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
22480 2010-04-22 Ira Rosen <irar@il.ibm.com>
22482 PR tree-optimization/43842
22483 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
22484 loop unrolling in update of exit phis. Fix comment.
22485 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
22486 least two reduction statements in the loop before starting SLP
22489 2010-04-22 Nick Clifton <nickc@redhat.com>
22491 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
22493 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
22495 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
22496 to simplify a + ~a.
22498 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
22500 * tree-parloops.c (loop_parallel_p): New argument
22501 parloop_obstack. Pass it down.
22502 (parallelize_loops): New variable parloop_obstack. Initialize it,
22503 pass it down, free it.
22505 * tree-loop-linear.c (linear_transform_loops): Pass down
22508 * tree-data-ref.h (lambda_compute_access_matrices): New argument
22509 of type struct obstack *.
22511 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
22512 scratch_obstack. Initialize it, pass down, free it.
22514 * lambda.h (lambda_loop_new): Remove.
22515 (lambda_matrix_new, lambda_matrix_inverse)
22516 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
22517 argument of type struct obstack *.
22519 * lambda-trans.c (lambda_trans_matrix_new): New argument
22520 lambda_obstack. Pass it down, use obstack allocation for ret.
22521 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
22524 * lambda-mat.c (lambda_matrix_get_column)
22525 (lambda_matrix_project_to_null): Remove.
22526 (lambda_matrix_new): New argument lambda_obstack. Use obstack
22527 allocation for mat.
22528 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
22531 * lambda-code.c (lambda_loop_new): New function.
22532 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
22533 (lambda_compute_auxillary_space, lambda_compute_target_space)
22534 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
22535 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
22536 (build_access_matrix): New argument lambda_obstack. Use obstack
22538 (lambda_compute_step_signs, lambda_compute_access_matrices): New
22539 argument lambda_obstack. Pass it down.
22541 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
22543 * optabs.h (expand_widening_mult): Declare.
22545 2010-04-22 Richard Guenther <rguenther@suse.de>
22547 PR tree-optimization/43845
22548 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
22549 lookup the CALL_EXPR function and arguments.
22551 2010-04-22 Nick Clifton <nickc@redhat.com>
22553 * config/stormy16/stormy16.c
22554 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
22555 * config/stormy16/stormy16.h: Tidy up formatting.
22556 (DONT_USE_BUILTIN_SETJMP): Remove definition.
22557 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
22558 (ineqbranchsi): Delete pattern.
22559 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
22560 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
22561 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
22562 stormy16-lib2-ucmpsi2.c.
22564 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
22566 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
22567 df_simulate_find_noclobber_defs as appropriate. Keep track of an
22568 extra set merge_set_noclobber, and use it to relax the final test
22570 * df.h (df_simulate_find_noclobber_defs): Declare.
22571 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
22573 (df_simulate_find_noclobber_defs): New function.
22575 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
22577 * config/i386/i386.md: Use {} around multi-line preparation statements.
22579 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
22581 * c-tree.h (push_init_level, pop_init_level, set_init_index)
22582 (process_init_element): New argument of type struct obstack *.
22584 * c-typeck.c (push_init_level, pop_init_level, set_designator)
22585 (set_init_index, set_init_label, set_nonincremental_init)
22586 (set_nonincremental_init_from_string, find_init_member)
22587 (output_init_element, output_pending_init_elements)
22588 (process_init_element): New argument braced_init_obstack. Pass it
22590 (push_range_stack, add_pending_init): New argument
22591 braced_init_obstack. Use obstack allocation.
22593 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
22594 braced_init_obstack. Pass it down.
22595 (c_parser_braced_init): New variables ret, braced_init_obstack.
22596 Initialize obstack, pass it down and finally free it.
22598 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
22600 PR middle-end/29274
22601 * tree-pass.h (pass_optimize_widening_mul): Declare.
22602 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
22603 gate_optimize_widening_mul): New static functions.
22604 (pass_optimize_widening_mul): New.
22605 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
22606 <case MULT_EXPR>: Remove support for widening multiplies.
22607 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
22608 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
22609 simplify_gen_unary rather than directly building extensions.
22610 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
22612 * expmed.c (expand_widening_mult): New function.
22613 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
22615 2010-04-21 Jan Hubicka <jh@suse.cz>
22617 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
22618 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
22619 * lto-wpa-fixup.c: Remove.
22620 * Makefile.in (lto-wpa-fixup.o): Remove.
22621 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
22622 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
22623 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
22625 2010-04-21 Jan Hubicka <jh@suse.cz>
22627 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
22628 add write_optimization_summary, read_optimization_summary.
22629 (ipa_write_summaries_of_cgraph_node_set): Remove.
22630 (ipa_write_optimization_summaries): Declare.
22631 (ipa_read_optimization_summaries): Declare.
22632 * ipa-cp.c (pass_ipa_cp): Update.
22633 * ipa-reference.c (pass_ipa_reference): Update.
22634 * ipa-pure-const.c (pass_ipa_pure_const): Update.
22635 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
22637 * ipa-inline.c (pass_ipa_inline): Update.
22638 * ipa.c (pass_ipa_whole_program): Update.
22639 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
22640 * passes.c (ipa_write_summaries_1): Do not test wpa.
22641 (ipa_write_optimization_summaries_1): New.
22642 (ipa_write_optimization_summaries): New.
22643 (ipa_read_summaries): Do not test ltrans.
22644 (ipa_read_optimization_summaries_1): New.
22645 (ipa_read_optimization_summaries): New.
22647 2010-04-21 Jan Hubicka <jh@suse.cz>
22649 * lto-cgraph.c (lto_output_node): Do not output comdat groups
22650 for boundary nodes.
22651 (output_cgraph): Do not arrange comdat groups for boundary nodes.
22653 2010-04-21 Jakub Jelinek <jakub@redhat.com>
22656 * dwarf2out.c (add_name_and_src_coords_attributes): Add
22657 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
22659 2010-04-21 Jan Hubicka <jh@suse.cz>
22661 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
22663 2010-04-21 Jan Hubicka <jh@suse.cz>
22665 * varpool.c (decide_is_variable_needed): Variable is always needed
22668 2010-04-21 Jan Hubicka <jh@suse.cz>
22670 * opts.c (decode_options): Enable pure-const pass for whopr.
22672 2010-04-21 Jan Hubicka <jh@suse.cz>
22674 * cgraph.c (dump_cgraph_node): Dump also assembler name.
22675 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
22677 (cgraph_decide_inlining): Do not expect callee to be removed in all
22680 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
22682 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
22684 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
22686 * config/i386/i386.md (x86_shrd): Add athlon_decode and
22687 amdfam10_decode attributes.
22689 2010-04-21 Jakub Jelinek <jakub@redhat.com>
22691 PR middle-end/43570
22692 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
22693 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
22694 (lower_copyprivate_clauses): Use private var in outer
22695 context instead of original var. Make sure the types
22696 are correct for VLAs.
22698 2010-04-21 Richard Guenther <rguenther@suse.de>
22700 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
22701 to non-pointer objects.
22703 2010-04-21 Jakub Jelinek <jakub@redhat.com>
22705 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
22706 last chain entry if it starts with the still current label.
22707 (add_location_or_const_value_attribute): Check that
22708 loc_list->first->next is NULL instead of comparing ->first with ->last.
22709 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
22710 to add_var_loc_to_decl.
22712 * dwarf2out.c (output_call_frame_info): For dw_cie_version
22713 >= 4 add also address size and segment size fields into CIE header.
22715 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
22716 long as address size is the same as sizeof (void *) and
22718 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
22719 address size or segment size is unexpected, return DW_EH_PE_omit.
22720 (classify_object_over_fdes): If get_cie_encoding returned
22721 DW_EH_PE_omit, return -1.
22722 (init_object): If classify_object_over_fdes returned -1,
22723 pretend there were no FDEs at all.
22725 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
22727 * config/i386/i386.md (bswap<mode>2): Macroize expander from
22728 bswap{si,di}2 using SWI48 mode iterator.
22729 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
22730 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
22731 set modrm attribute of bswap insn to 0 and remove length attribute.
22732 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
22733 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
22734 set mode attribute to <MODE> and remove length attribute.
22736 2010-04-20 James E. Wilson <wilson@codesourcery.com>
22738 PR rtl-optimization/43520
22739 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
22740 zero available registers.
22742 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22744 * builtins.c (fold_builtin_cproj): Fold more cases.
22746 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22748 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
22749 (fold_builtin_1): Fold builtin cproj.
22750 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
22751 Use ATTR_CONST_NOTHROW_LIST.
22753 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
22755 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
22756 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
22757 ffsi2_no_cmove for !TARGET_CMOVE.
22758 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
22759 (ffssi2): Remove expander.
22760 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
22762 (ctz<mode>2): Ditto from ctz{si,di}2.
22763 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
22765 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
22768 2010-04-20 Jakub Jelinek <jakub@redhat.com>
22770 * dwarf2out.c (AT_linkage_name): Define.
22771 (clone_as_declaration): Handle DW_AT_linkage_name.
22772 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
22773 of DW_AT_MIPS_linkage_name.
22774 (move_linkage_attr): Likewise.
22775 (dwarf2out_finish): Likewise.
22777 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
22779 PR middle-end/41952
22780 * fold-const.c (fold_comparison): New folding rule.
22782 2010-04-20 Anatoly Sokolov <aesok@post.ru>
22784 * double-int.h (double_int_setbit): Declare.
22785 * double-int.c (double_int_setbit): New function.
22786 * rtl.h (immed_double_int_const): Declare.
22787 * emit-rtl.c (immed_double_int_const): New function.
22788 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
22789 and immed_double_int_const functions.
22790 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
22791 expand_copysign_bit): (Ditto.).
22792 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
22793 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
22794 * dojump.c (prefer_and_bit_test): (Ditto.).
22795 * expr.c (convert_modes, reduce_to_bit_field_precision,
22796 const_vector_from_tree): (Ditto.).
22797 * expmed.c (mask_rtx, lshift_value): (Ditto.).
22799 2010-04-20 Jan Hubicka <jh@suse.cz>
22801 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
22802 (dump_cgraph_node): Dump new flags.
22803 * cgraph.h (struct cgraph_node): Add flags
22804 reachable_from_other_partition and in_other_partition.
22805 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
22806 other partition can not be removed.
22807 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
22808 the other partition must be output; silence sanity checking on
22809 leaking functions bodies from other paritition.
22810 * lto-cgraph.c (reachable_from_other_partition_p): New function.
22811 (lto_output_node): Output new flags; do not sanity check that inline
22812 clones are output; drop lto_forced_extern_inline_p code; do not mock
22813 visibility flags at partition boundaries.
22814 (add_node_to): New function.
22815 (output_cgraph): Use it to sort functions so masters appear before
22817 (input_overwrite_node): Input new flags.
22818 * passes.c (ipa_write_summaries): Do not call
22819 lto_new_extern_inline_states.
22820 * lto-section-out.c (forced_extern_inline,
22821 lto_new_extern_inline_states lto_delete_extern_inline_states,
22822 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
22823 * lto-streamer.h (lto_new_extern_inline_states,
22824 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
22825 lto_forced_extern_inline_p): Kill.
22827 2010-04-20 Richard Guenther <rguenther@suse.de>
22829 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
22830 from vars that can have pointers.
22831 (process_constraint): Dump useless constraints.
22833 2010-04-20 Richard Guenther <rguenther@suse.de>
22835 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
22836 (dump_sa_points_to_info): Remove asserts.
22837 (init_base_vars): nothing_id isn't an escape point nor does it
22840 2010-04-20 Jakub Jelinek <jakub@redhat.com>
22842 * tree.h (TYPE_REF_IS_RVALUE): Define.
22843 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
22844 should_move_die_to_comdat, prune_unused_types_walk): Handle
22845 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
22846 (modified_type_die, gen_reference_type_die): Emit
22847 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
22848 if TYPE_REF_IS_RVALUE and -gdwarf-4.
22850 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22853 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
22854 calls for -fpic -m31 if they have been sibcall optimized.
22856 2010-04-19 James E. Wilson <wilson@codesourcery.com>
22858 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
22859 ar.lc fixed and call-used.
22861 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
22863 2010-04-19 Jan Hubicka <jh@suse.cz>
22865 * opts.c (decode_options): Disable whpr incompatible passes.
22866 * lto/lto.c (lto_1_to_1_map): Skip clones.
22867 (read_cgraph_and_symbols): Do not mark everything as needed.
22868 (do_whole_program_analysis): Do map only after optimizing;
22869 set proper cgraph_state; use passmanager.
22871 2010-04-19 DJ Delorie <dj@redhat.com>
22873 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
22874 POINTER_PLUS_EXPR and fix them.
22876 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
22878 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
22879 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
22880 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
22881 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
22882 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
22883 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
22884 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
22885 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
22886 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
22887 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
22888 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
22890 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
22892 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
22893 (check_cond_move_block): Likewise.
22894 (cond_move_process_if_block): Likewise.
22895 (noce_find_if_block): Improve formatting.
22896 (find_if_header): Pass 0 to memset and tweak conditions.
22897 (cond_exec_find_if_block): Fix long lines and tweak conditions.
22899 2010-04-19 Jakub Jelinek <jakub@redhat.com>
22901 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
22904 PR middle-end/43337
22905 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
22906 with non-local decl doesn't need chain.
22908 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
22910 * ira-color.c (allocno_reload_assign): Avoid accumulating
22911 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
22913 2010-04-19 Martin Jambor <mjambor@suse.cz>
22915 * gimple.h (create_tmp_reg): Declare.
22916 * gimplify.c (create_tmp_reg): New function.
22917 (gimplify_return_expr): Use create_tmp_reg.
22918 (gimplify_omp_atomic): Likewise.
22919 (gimple_regimplify_operands): Likewise.
22920 * tree-dfa.c (make_rename_temp): Likewise.
22921 * tree-predcom.c (predcom_tmp_var): Likewise.
22922 (reassociate_to_the_same_stmt): Likewise.
22923 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
22924 (get_replaced_param_substitute): Likewise.
22925 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
22926 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
22927 * tree-ssa-pre.c (get_representative_for): Likewise.
22928 (create_expression_by_pieces): Likewise.
22929 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
22930 (create_tailcall_accumulator): Likewise.
22932 2010-04-19 Martin Jambor <mjambor@suse.cz>
22934 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
22936 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
22938 2010-04-19 Richard Guenther <rguenther@suse.de>
22940 PR tree-optimization/43796
22941 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
22942 from SCEV in the lattice.
22943 (vrp_visit_phi_node): Dump change.
22945 2010-04-19 Richard Guenther <rguenther@suse.de>
22947 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
22948 * configure: Re-generated.
22950 2010-04-19 Richard Guenther <rguenther@suse.de>
22952 PR tree-optimization/43783
22953 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
22954 constant ARRAY_REF operands two and three if possible.
22956 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
22959 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
22961 2010-04-19 Jie Zhang <jie@codesourcery.com>
22964 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
22966 2010-04-19 Ira Rosen <irar@il.ibm.com>
22968 PR tree-optimization/37027
22969 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
22970 and macro to access it.
22971 (vectorizable_reduction): Add argument.
22972 (vect_get_slp_defs): Likewise.
22973 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
22974 statements for possible use in SLP.
22975 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
22976 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
22977 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
22979 (vectorizable_reduction): Likewise.
22980 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
22982 (vectorizable_type_demotion, vectorizable_type_promotion,
22983 vectorizable_store): Likewise.
22984 (vect_analyze_stmt): Update call to vectorizable_reduction.
22985 (vect_transform_stmt): Likewise.
22986 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
22987 (vect_build_slp_tree): Fix indentation. Check that there are no loads
22988 from different interleaving chains in same node.
22989 (vect_slp_rearrange_stmts): New function.
22990 (vect_supported_load_permutation_p): Allow load permutations for
22991 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
22992 inside SLP nodes if necessary.
22993 (vect_analyze_slp_instance): Handle reductions.
22994 (vect_analyze_slp): Try to build SLP instances originating from groups
22996 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
22997 (vect_get_constant_vectors): Create initial vectors for reductions
22998 according to reduction code. Add new argument.
22999 (vect_get_slp_defs): Add new argument, pass it to
23000 vect_get_constant_vectors.
23001 (vect_schedule_slp_instance): Remove SLP tree root statements.
23003 2010-04-19 Jakub Jelinek <jakub@redhat.com>
23005 * tree.h (ENUM_IS_SCOPED): Define.
23006 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
23007 for ENUM_IS_SCOPED enums.
23009 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
23011 * fold-const.c (fold_comparison): Use ssizetype.
23012 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
23013 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
23014 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
23015 * tree-object-size.c (compute_object_sizes): Use size_type_node.
23017 * tree.h (initialize_sizetypes): Remove parameter.
23018 (build_common_tree_nodes): Remove second parameter.
23019 * stor-layout.c (initialize_sizetypes): Remove parameter.
23020 Always create an unsigned type.
23021 (set_sizetype): Assert that the passed type is unsigned and simplify.
23022 * tree.c (build_common_tree_nodes): Remove second parameter.
23023 Adjust call to initialize_sizetypes.
23024 * c-decl.c (c_init_decl_processing): Remove second argument in call to
23025 build_common_tree_nodes.
23027 2010-04-18 Matthias Klose <doko@ubuntu.com>
23029 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
23031 2010-04-18 Ira Rosen <irar@il.ibm.com>
23033 PR tree-optimization/43771
23034 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
23035 load permutation doesn't have gaps.
23037 2010-04-18 Jan Hubicka <jh@suse.cz>
23039 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
23040 (sse_prologue_save_insn expander): Use new pattern.
23041 (sse_prologue_save_insn1): New pattern and splitter.
23042 (sse_prologue_save_insn): Update to deal also with 64bit aligned
23044 * i386.c (setup_incoming_varargs_64): Do not compute jump
23046 (ix86_gimplify_va_arg): Update alignment needed.
23047 (ix86_local_alignment): Do not align all local arrays to 128bit.
23049 2010-04-17 Jan Hubicka <jh@suse.cz>
23051 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
23053 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
23055 * arm.md (negdi2): Remove redundant code to force values into a
23058 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
23060 * arm/bpabi.S: Add EABI alignment attributes to objects.
23061 * arm/bpabi-v6m.S: Likewise.
23062 * arm/crti.asm: Likewise.
23063 * arm/crtn.asm: Likewise.
23064 * arm/lib1funcs.asm: Likewise.
23065 * arm/libunwind.S: Likewise.
23067 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
23069 * arm-protos.h (tune_params): New structure.
23070 * arm.c (current_tune): New variable.
23071 (arm_constant_limit): Delete.
23072 (struct processors): Add pointer to the tune parameters.
23073 (arm_slowmul_tune): New tuning option.
23074 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
23075 (all_cores): Adjust to pick up the tuning model.
23076 (arm_constant_limit): New function.
23077 (arm_override_options): Select the appropriate tuning model. Delete
23078 initialization of arm_const_limit.
23079 (arm_split_constant): Use the new constant-limit model.
23080 (arm_rtx_costs): Pick up the current tuning model.
23081 * arm.md (is_strongarm, is_xscale): Delete.
23082 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
23083 for Xscale variant architectures.
23084 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
23086 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23088 * config/arm/arm.c (arm_gen_constant): Remove unused variable
23090 (arm_rtx_costs_1): Remove unused variable extra_cost.
23091 (arm_unwind_emit_set): Use variable offset.
23092 (thumb1_output_casesi): Remove unused variable flags.
23094 2010-04-16 Jeff Law <law@redhat.com>
23096 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
23097 needing assignment rather than doing a two-phase assignment. Remove
23098 unused variable 'm'.
23100 2010-04-16 Jakub Jelinek <jakub@redhat.com>
23103 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
23105 2010-04-16 Doug Kwan <dougkwan@google.com>
23107 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
23108 (next_operand_entry_id): New static variable.
23109 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
23110 (add_to_ops_vec): Assigned unique ID to operand entry.
23111 (struct oecount_s): New field ID.
23112 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
23113 (undistribute_ops_list): Assign unique IDs to oecounts.
23114 (init_reassoc): reset next_operand_entry_id.
23116 2010-04-16 Doug Kwan <dougkwan@google.com>
23118 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
23119 missing left parenthesis.
23121 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
23123 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
23124 *btdi_rex64 using SWI48 mode iterator.
23125 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
23126 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
23127 *jcc_btdi_mask_rex64.
23129 2010-04-16 Anatoly Sokolov <aesok@post.ru>
23131 * double-int.h (tree_to_double_int): Convert to macro.
23132 * double-int.c (tree_to_double_int): Remove.
23134 2010-04-16 Jakub Jelinek <jakub@redhat.com>
23137 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
23138 with want_address 2 and in case a single element list might be
23139 possible, call it again with want_address 0.
23141 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
23143 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
23144 case 'W' print operands for HI mode.
23145 * config/h8300/h8300.h (Y0, Y2) : New constraints.
23146 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
23147 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
23148 * config/h8300/predicate.md (bit_register_indirect_operand): New.
23150 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
23152 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
23153 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
23154 #xx:3 and #xx:4 mode.
23156 * config/h8300/h8300.md (inverted load with HImode dest): Add
23157 support for H8300SX.
23159 * config/h8300/predicate.md (bit_operand): Allow immediate values that
23160 satisfy 'U' constraint.
23162 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23164 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
23165 * configure: Regenerate.
23166 * config.in: Regenerate.
23167 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
23170 2010-04-16 Richard Guenther <rguenther@suse.de>
23172 * tree.h (struct tree_decl_minimal): Move pt_uid ...
23173 (struct tree_decl_common): ... here.
23174 (DECL_PT_UID): Adjust.
23175 (SET_DECL_PT_UID): Likewise.
23176 (DECL_PT_UID_SET_P): Likewise.
23178 2010-04-16 Richard Guenther <rguenther@suse.de>
23180 PR tree-optimization/43572
23181 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
23182 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
23183 * tree-flow.h (is_call_clobbered): Remove.
23184 * tree-flow-inline.h (is_call_clobbered): Likewise.
23185 * tree-dfa.c (dump_variable): Do not dump call clobber state.
23186 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
23187 (execute_return_slot_opt): Adjust.
23188 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
23189 check for call clobbered vars here.
23190 (find_tail_calls): Move tailcall verification to the
23193 2010-04-16 Diego Novillo <dnovillo@google.com>
23195 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
23197 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
23200 * config/arm/arm.md (cbranchqi4): New pattern.
23201 * config/arm/predicates.md (const0_operand,
23202 cbranchqi4_comparison_operator): New predicates.
23204 2010-04-16 Richard Guenther <rguenther@suse.de>
23206 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
23207 (dump_gimple_stmt): Likewise.
23209 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
23211 * recog.h (struct recog_data): New field is_operator.
23212 (struct insn_operand_data): New field is_operator.
23213 * recog.c (extract_insn): Set recog_data.is_operator.
23214 * genoutput.c (output_operand_data): Emit code to set the
23216 * reload.c (find_reloads): Use it rather than testing for an
23217 empty constraint string.
23220 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
23221 If the previous insn is a cbranchsi4_insn with the same arguments,
23222 omit the compare instruction.
23224 * config/arm/arm.md (addsi3_cbranch): If destination is a high
23225 register, inputs must be low registers and we need a low register
23226 scratch. Handle alternative 2 like alternative 3.
23228 2010-04-16 Jakub Jelinek <jakub@redhat.com>
23230 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
23231 don't call get_addr on both. If one expression is a VALUE and
23232 the other a REG, check VALUE's locs if the REG isn't among them.
23234 2010-04-16 Christian Bruel <christian.bruel@st.com>
23236 * config/sh/sh.h (sh_frame_pointer_required): New function.
23237 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
23238 (flag_omit_frame_pointer) Set.
23239 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
23240 (rounded_frame_size): Adjust size with outgoing_args_size.
23241 (sh_set_return_address): Must return from stack pointer.
23242 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
23243 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
23244 (ACCUMULATE_OUTGOING_ARGS): Define.
23245 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
23246 * config/sh/sh.opt (maccumulate-outgoing-args): New option.
23248 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
23251 * config/sh/sh.c (sh_legitimize_reload_address): Use
23252 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
23253 Remove a unneeded check for offset_base.
23255 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
23257 * configure: Regenerated.
23259 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23261 * config/s390/s390.c (s390_call_save_register_used): Switch back
23262 to HARD_REGNO_NREGS.
23264 2010-04-15 Richard Guenther <rguenther@suse.de>
23266 * alias.c (alias_set_subset_of): Handle alias-set zero
23269 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
23270 Julian Brown <julian@codesourcery.com>
23272 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
23273 alternatives according to use of high and low regs.
23274 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
23275 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
23276 optimizing for size on Thumb-2.
23278 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
23280 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
23282 2010-04-15 Richard Guenther <rguenther@suse.de>
23284 * tree-ssa-structalias.c (struct variable_info): Add
23286 (new_var_info): Initialize it.
23287 (dump_constraints): Support printing last added constraints.
23288 (debug_constraints): Adjust.
23289 (dump_constraint_graph): Likewise.
23290 (make_heapvar_for): Check for NULL cfun.
23291 (get_function_part_constraint): New function.
23292 (get_fi_for_callee): Likewise.
23293 (find_func_aliases): Properly implement IPA PTA constraints.
23294 (process_ipa_clobber): New function.
23295 (find_func_clobbers): Likewise.
23296 (insert_into_field_list_sorted): Remove.
23297 (create_function_info_for): Properly allocate vars for IPA mode.
23298 Do not use insert_into_field_list_sorted.
23299 (create_variable_info_for): Properly generate constraints for
23300 global vars in IPA mode.
23301 (dump_solution_for_var): Always dump the solution.
23302 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
23303 (find_what_var_points_to): Adjust.
23304 (pt_solution_set): Change.
23305 (pt_solution_ior_into): New function.
23306 (pt_solution_empty_p): Export.
23307 (pt_solution_includes_global): Adjust.
23308 (pt_solution_includes_1): Likewise.
23309 (pt_solutions_intersect_1): Likewise.
23310 (dump_sa_points_to_info): Check some invariants.
23311 (solve_constraints): Move constraint dumping ...
23312 (compute_points_to_sets): ... here.
23313 (ipa_pta_execute): ... and here.
23314 (compute_may_aliases): Do not re-compute points-to info
23315 locally if IPA info is available.
23316 (ipa_escaped_pt): New global var.
23317 (ipa_pta_execute): Properly implement IPA PTA.
23318 * tree-into-ssa.c (dump_decl_set): Support dumping
23319 decls not in referenced-vars.
23320 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
23321 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
23322 (dump_points_to_solution): Likewise.
23323 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
23324 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
23325 (remap_gimple_stmt): Reset call clobber/use information if necessary.
23326 (copy_decl_to_var): Copy DECL_PT_UID.
23327 (copy_result_decl_to_var): Likewise.
23328 * tree.c (make_node_stat): Initialize DECL_PT_UID.
23329 (copy_node_stat): Copy it.
23330 * tree.h (DECL_PT_UID): New macro.
23331 (SET_DECL_PT_UID): Likewise.
23332 (DECL_PT_UID_SET_P): Likewise.
23333 (struct tree_decl_minimal): Add pt_uid member.
23334 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
23335 (pt_solution_empty_p): Declare.
23336 (pt_solution_set): Adjust.
23337 (ipa_escaped_pt): Declare.
23338 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
23339 * gimple-pretty-print.c (pp_points_to_solution): New function.
23340 (dump_gimple_call): Dump call clobber/use information.
23341 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
23342 * tree-pass.h (TDF_ALIAS): New dump option.
23343 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
23344 * doc/invoke.texi (-fipa-pta): Update documentation.
23346 2010-04-15 Richard Guenther <rguenther@suse.de>
23348 * Makefile.in (OBJS-common): Add gimple-fold.o.
23349 (gimple-fold.o): New rule.
23350 * tree.h (maybe_fold_offset_to_reference,
23351 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
23353 * gimple.h: ... here.
23354 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
23355 may_propagate_address_into_dereference): Move prototypes ...
23356 * gimple.h: ... here.
23357 * tree-ssa-ccp.c (get_symbol_constant_value,
23358 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
23359 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
23360 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
23361 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
23362 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
23363 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
23364 gimplify_and_update_call_from_tree): Move ...
23365 * gimple-fold.c: ... here. New file.
23366 (ccp_fold_builtin): Rename to ...
23367 (gimple_fold_builtin): ... this.
23368 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
23370 2010-04-15 Richard Guenther <rguenther@suse.de>
23372 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
23373 fit_double_type, force_fit_type_double, add_double_with_sign,
23374 neg_double, mul_double_with_sign, lshift_double, rshift_double,
23375 lrotate_double, rrotate_double, div_and_round_double): Move ...
23376 * double-int.c: ... here.
23377 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
23378 add_double, neg_double, mul_double_with_sign, mul_double,
23379 lshift_double, rshift_double, lrotate_double, rrotate_double,
23380 div_and_round_double): Move prototypes ...
23381 * double-int.h: ... here.
23383 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
23386 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
23387 matching constraints to ensure inputs match the output.
23389 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
23392 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
23393 in an input-only operand.
23395 2010-04-15 Anatoly Sokolov <aesok@post.ru>
23397 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
23398 (double_int_not, double_int_lshift, double_int_rshift): Declare.
23399 (double_int_negative_p): Convert to static inline function.
23400 * double-int.c (double_int_lshift, double_int_lshift): New functions.
23401 (double_int_negative_p): Remove.
23402 * tree.h (lshift_double, rshift_double):
23403 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
23404 * fold-const.c (fold_convert_const_int_from_real,
23405 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
23406 (lshift_double): Change type of arith argument to bool.
23407 (rshift_double): Change type of arith argument to bool. Correct
23409 * expmed.c (mask_rtx, lshift_value): (Ditto.).
23411 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
23414 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
23415 at the start and end of the then/else blocks, and omit them from the
23417 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
23418 argument; all callers changed. Pass zero to old_insns_match_p instead.
23419 (flow_find_head_matching_sequence): New function.
23420 (old_insns_match_p): Check REG_EH_REGION notes for calls.
23421 * basic-block.h (flow_find_cross_jump,
23422 flow_find_head_matching_sequence): Declare functions.
23424 2010-04-14 Jason Merrill <jason@redhat.com>
23427 * c-common.c (attribute_takes_identifier_p): New fn.
23428 * c-common.h: Declare it.
23430 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
23432 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
23433 splitter condition.
23434 (*udivmod<mode>4): Ditto.
23436 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
23438 * config/i386/i386.md (maxmin_int): Rename code attribute from
23439 maxminiprefix and update all users.
23440 (maxmin_float): Ditto from maxminfprefix.
23441 (logic): Ditto from logicprefix.
23442 (absneg_mnemonic): Ditto from absnegprefix.
23443 * config/i386/mmx.md: Update all users of maxminiprefix,
23444 maxminfprefix and logicprefix for rename.
23445 * config/i386/sse.md: Ditto.
23446 * config/i386/sync.md (sync_<code><mode>): Update for
23447 logicprefix rename.
23449 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
23452 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
23453 warnings converted to errors.
23455 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
23457 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
23458 used insn_type variable.
23459 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
23460 to avoid set-but-not-used warning.
23462 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
23464 * df-core.c (df_ref_debug): Change format string placeholder
23466 * dwarf2asm.c (dw2_asm_output_data_raw,
23467 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
23468 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
23469 * dwarf2out.c (output_cfi, output_cfi_directive,
23470 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
23471 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
23473 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
23474 * print-rtl.c (print_rtx): Ditto.
23476 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
23478 PR middle-end/42694
23479 * builtins.c (expand_builtin_pow_root): New function to expand pow
23480 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
23481 series of sqrt and cbrt calls under -ffast-math.
23482 (expand_builtin_pow): Call it.
23484 2010-04-14 Michael Matz <matz@suse.de>
23486 PR tree-optimization/42963
23487 * tree-cfg.c (touched_switch_bbs): New static variable.
23488 (group_case_labels_stmt): New function broken out from ...
23489 (group_case_labels): ... here, use the above.
23490 (start_recording_case_labels): Allocate touched_switch_bbs.
23491 (end_recording_case_labels): Deallocate it, call
23492 group_case_labels_stmt.
23493 (gimple_redirect_edge_and_branch): Remember index of affected BB.
23495 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
23497 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
23498 from insn template.
23500 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
23502 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
23504 2010-04-13 Jan Hubicka <jh@suse.cz>
23506 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
23507 of optimized out static functions.
23508 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
23509 cost computation. Also sanity check for overflows.
23510 (update_caller_keys): Update cgraph_edge_badness call; properly
23511 update fibheap and sanity check that it is up to date.
23512 (add_new_edges_to_heap): Update cgraph_edge_badness.
23513 (cgraph_decide_inlining_of_small_function): Likewise;
23514 add sanity checking that badness in heap is up to date;
23515 improve dumping of reason; Update badness of calls to the
23516 offline copy of function currently inlined; dump badness
23517 of functions not inlined because of unit growth limits.
23519 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
23521 PR middle-end/32628
23522 * c-common.c (pointer_int_sum): Disregard overflow that occured only
23523 because of sign-extension change when converting to sizetype here...
23524 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
23526 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
23527 the folding to constants. Remove redundant final conversion.
23528 (fold_binary) <associate>: Do not associate if the re-association of
23529 constants alone overflows.
23530 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
23531 to the end of the list.
23532 (multiple_of_p) <COND_EXPR>: New case.
23534 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
23536 * opt-functions.awk (opt_sanitized_name): New.
23538 * optc-gen.awk: Use it
23539 * opth-gen.awk: Use it.
23541 2010-04-13 Martin Jambor <mjambor@suse.cz>
23543 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
23544 (sra_modify_assign): Delete stmts loading dead data even if racc has no
23545 children. Call replace_uses_with_default_def_ssa_name to handle
23548 2010-04-13 Michael Matz <matz@suse.de>
23550 PR middle-end/43730
23551 * builtins.c (expand_builtin_interclass_mathfn): Also create
23552 a register if the predicate doesn't match.
23554 2010-04-13 Diego Novillo <dnovillo@google.com>
23556 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
23557 * c-pch.c: Include timevar.h.
23558 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
23559 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
23560 * ggc-common.c: Include timevar.h.
23561 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
23562 * timevar.def (TV_PCH_SAVE): Define.
23563 (TV_PCH_CPP_SAVE): Define.
23564 (TV_PCH_PTR_REALLOC): Define.
23565 (TV_PCH_PTR_SORT): Define.
23566 (TV_PCH_RESTORE): Define.
23567 (TV_PCH_CPP_RESTORE): Define.
23569 2010-04-13 Michael Matz <matz@suse.de>
23571 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
23573 (can_reassociate_p): New function.
23574 (break_up_subtract_bb, reassociate_bb): Use it.
23576 2010-04-13 Richard Guenther <rguenther@suse.de>
23579 * builtins.c (c_readstr): Fix assert.
23581 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
23583 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
23584 when generating cltd insn.
23586 (*ashl<mode>3_1): Remove special handling for register operand 2.
23587 (*ashlsi3_1_zext): Ditto.
23588 (*ashlhi3_1): Ditto.
23589 (*ashlhi3_1_lea): Ditto.
23590 (*ashlqi3_1): Ditto.
23591 (*ashlqi3_1_lea): Ditto.
23592 (*<shiftrt_insn><mode>3_1): Ditto.
23593 (*<shiftrt_insn>si3_1_zext): Ditto.
23594 (*<shiftrt_insn>qi3_1_slp): Ditto.
23595 (*<rotate_insn><mode>3_1): Ditto.
23596 (*<rotate_insn>si3_1_zext): Ditto.
23597 (*<rotate_insn>qi3_1_slp): Ditto.
23599 2010-04-13 Richard Guenther <rguenther@suse.de>
23601 * tree-ssa-structalias.c (callused_id): Remove.
23602 (call_stmt_vars): New.
23603 (get_call_vi): Likewise.
23604 (lookup_call_use_vi): Likewise.
23605 (lookup_call_clobber_vi): Likewise.
23606 (get_call_use_vi): Likewise.
23607 (get_call_clobber_vi): Likewise.
23608 (make_transitive_closure_constraints): Likewise.
23609 (handle_const_call): Adjust to do per-call call-used handling.
23610 (handle_pure_call): Likewise.
23611 (find_what_var_points_to): Remove general callused handling.
23612 (init_base_vars): Likewise.
23613 (init_alias_vars): Initialize call_stmt_vars.
23614 (compute_points_to_sets): Process call-used and call-clobbered
23615 vars for call statements.
23616 (delete_points_to_sets): Free call_stmt_vars.
23618 2010-04-13 Richard Guenther <rguenther@suse.de>
23620 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
23621 Only add RW dependence for dependence distance zero.
23622 Adjust maximal vectorization factor according to dependences.
23623 Move alignment handling ...
23624 (vect_find_same_alignment_drs): ... here. New function.
23625 (vect_analyze_data_ref_dependences): Adjust.
23626 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
23627 (vect_analyze_data_refs): Adjust minimal vectorization factor
23628 according to data references.
23629 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
23630 dependences before determining the vectorization factor.
23631 Analyze alignment after determining the vectorization factor.
23632 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
23633 dependences before alignment.
23634 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
23636 (vect_analyze_data_refs): Likewise.
23637 (MAX_VECTORIZATION_FACTOR): New define.
23639 2010-04-13 Duncan Sands <baldrick@free.fr>
23641 * except.h (lang_eh_type_covers): Remove.
23642 * except.c (lang_eh_type_covers): Likewise.
23644 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23645 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23647 * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
23648 * config/s390/s390.c: Replace UNTIS_PER_WORD with
23649 UNITS_PER_LONG where it is ABI relevant.
23650 (s390_return_addr_rtx): Likewise.
23651 (s390_back_chain_rtx): Likewise.
23652 (s390_frame_area): Likewise.
23653 (s390_frame_info): Likewise.
23654 (s390_initial_elimination_offset): Likewise.
23655 (save_gprs): Likewise.
23656 (s390_emit_prologue): Likewise.
23657 (s390_emit_epilogue): Likewise.
23658 (s390_function_arg_advance): Likewise.
23659 (s390_function_arg): Likewise.
23660 (s390_va_start): Likewise.
23661 (s390_gimplify_va_arg): Likewise.
23662 (s390_function_profiler): Likewise.
23663 (s390_optimize_prologue): Likewise.
23664 (s390_rtx_costs): Likewise.
23665 (s390_secondary_reload): Likewise.
23666 (s390_promote_function_mode): Likewise.
23667 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
23668 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
23669 registers available.
23670 (s390_unwind_word_mode): New function.
23671 (s390_function_value): Split 64 bit values into register pair if
23672 used as return value.
23673 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
23674 function call parameters. Handle parallels.
23675 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
23676 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
23677 (DWARF_CIE_DATA_ALIGNMENT): New macro.
23678 (s390_expand_setmem): Remove unused variable src_addr.
23679 * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
23680 deal with 64 bit registers.
23681 * config/s390/s390.h: Define __zarch__ predefined macro.
23682 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
23683 (UNITS_PER_LONG): New macro.
23684 * libjava/include/s390-signal.h: Define extended ucontext
23685 structure containing the upper halfs of the 64 bit registers.
23687 2010-04-13 Simon Baldwin <simonb@google.com>
23689 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
23691 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
23693 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
23694 rvalue on the RHS if the LHS is of a non-renamable type.
23695 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
23697 2010-04-13 Matthias Klose <doko@ubuntu.com>
23699 * gcc.c (cc1_options): Handle -iplugindir before processing
23700 the cc1 spec. Only add -iplugindir once.
23701 (cpp_unique_options): Add -iplugindir option if -fplugin* options
23703 * common.opt (iplugindir): Remove `Separate' property, initialize.
23704 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
23706 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
23707 (distclean): Remove plugin dir.
23708 * doc/invoke.texi: Document -iplugindir.
23710 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
23712 * doc/plugins.texi (Loading Plugins): Document short
23713 -fplugin=foo option.
23714 (Plugin API): Mention default_plugin_dir_name function.
23716 * gcc.c (find_file_spec_function): Add new declaration.
23717 (static_spec_func): Use it for "find-file".
23718 (find_file_spec_function): Add new function.
23719 (cc1_options): Add -iplugindir option if -fplugin* options found.
23721 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
23723 * plugin.c (add_new_plugin): Updated comment, and handle short
23725 (default_plugin_dir_name): Added new function.
23727 * common.opt (iplugindir): New option to set the plugin directory.
23729 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
23731 * config/i386/i386.md (any_rotate): New code iterator.
23732 (rotate_insn): New code attribute.
23734 (SWIM124): New mode iterator.
23735 (<rotate_insn>ti3): New expander.
23736 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
23737 any_rotate code iterator.
23738 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
23739 using any_rotate code iterator and SWIM124 mode iterator.
23740 (ix86_rotlti3): New insn_and_split pattern.
23741 (ix86_rotrti3): Ditto.
23742 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
23743 ix86_rotl{di,ti}3 patterns.
23744 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
23745 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
23746 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
23747 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
23748 code iterator and SWI mode iterator.
23749 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
23750 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
23752 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
23753 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
23754 (bswap rotatert splitter): Add splitter.
23755 (bswap splitter): Macroize splitter using any_rotate code iterator.
23756 Add insn predicate to split only for TARGET_USE_XCHGB or when
23757 optimizing function for size.
23759 2010-04-12 Steve Ellcey <sje@cup.hp.com>
23761 * config/pa/pa.c (emit_move_sequence): Remove use of
23762 deleted variable flag_argument_noalias.
23764 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23766 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
23768 Add to unsupported targets list.
23769 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
23770 sparc*-sun-solaris2.[567]* from target lists.
23771 * configure: Regenerate.
23772 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
23774 Remove Solaris 7 patch references.
23775 (Specific, sparc-sun-solaris2.7): Removed.
23776 (sparc-sun-solaris2*): Update Solaris 7 example.
23777 (sparc64-*-solaris2*): Likewise.
23779 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23781 * config.build (alpha*-dec-osf4*): Remove.
23782 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
23783 of obsolete configurations.
23784 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
23786 * config/alpha/t-osf4: Renamed to ...
23787 * config/alpha/t-osf5: ... this.
23788 * config/alpha/osf.h: Renamed to ...
23789 * config/alpha/osf5.h: ... this.
23790 Merged old osf5.h contents.
23792 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
23793 (EXTRA_SPECS): Removed.
23794 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
23795 reflect removal of Tru64 UNIX V4.0/V5.0 support.
23798 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23800 * doc/contrib.texi (Contributors, Rainer Orth): Update.
23802 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
23805 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
23806 __thiscall convention.
23808 2010-04-12 Steve Ellcey <sje@cup.hp.com>
23810 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
23812 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
23814 2010-04-12 Steve Ellcey <sje@cup.hp.com>
23816 * function.c (assign_parms_initialize_all): Add unused attribute
23819 2010-04-12 Richard Guenther <rguenther@suse.de>
23821 * gsstruct.def (GSS_CALL): New.
23822 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
23823 * gimple.h: Include tree-ssa-alias.h.
23824 (struct gimple_statement_call): New.
23825 (union gimple_statement_struct_d): Add gimple_call member.
23826 (gimple_call_reset_alias_info): Declare.
23827 (gimple_call_use_set): New function.
23828 (gimple_call_clobber_set): Likewise.
23829 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
23830 * gimple.c (gimple_call_reset_alias_info): New function.
23831 (gimple_build_call_1): Call it.
23832 * lto-streamer-in.c (input_gimple_stmt): Likewise.
23833 * tree-inline.c (remap_gimple_stmt): Likewise.
23834 (expand_call_inline): Remove callused handling.
23835 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
23836 * tree-dfa.c (dump_variable): Likewise.
23837 * tree-parloops.c (parallelize_loops): Likewise.
23838 * tree-ssa.c (init_tree_ssa): Likewise.
23839 (delete_tree_ssa): Likewise.
23840 * tree-flow-inline.h (is_call_used): Remove.
23841 * tree-flow.h (struct gimple_df): Remove callused member.
23842 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
23843 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
23844 (ref_maybe_used_by_call_p_1): Simplify.
23845 (call_may_clobber_ref_p_1): Likewise.
23846 * tree-ssa-structalias.c (compute_points_to_sets): Set
23847 the call stmt used and clobbered sets.
23848 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
23849 (find_tail_calls): Verify the tail call.
23851 2010-04-12 Richard Guenther <rguenther@suse.de>
23853 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
23854 single-iteration always-inline inlining.
23855 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
23856 (cgraph_decide_inlining): Do not handle always-inline specially.
23857 (try_inline): Remove always-inline cycle detection special case.
23858 Do not recurse on always-inlines.
23859 (cgraph_early_inlining): Do not iterate if not optimizing.
23860 (cgraph_gate_early_inlining): remove.
23861 (pass_early_inline): Run unconditionally.
23862 (gate_cgraph_decide_inlining): New function.
23863 (pass_ipa_inline): Use it. Do not run the IPA inliner if
23864 not inlining or optimizing.
23865 (cgraph_decide_inlining_of_small_functions): Also consider
23866 always-inline functions.
23867 (cgraph_default_inline_p): Return true for nodes which should
23868 disregard inline limits.
23869 (estimate_function_body_sizes): Assume zero size and time for
23870 nodes which are marked as disregarding inline limits.
23871 (cgraph_decide_recursive_inlining): Do not perform recursive
23872 inlining on always-inline nodes.
23874 2010-04-12 Jakub Jelinek <jakub@redhat.com>
23877 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
23878 for exprs satisfying handled_component_p.
23880 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
23882 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
23883 non-constant aggregate elements.
23885 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
23886 is a real initialization.
23888 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
23891 * c-decl.c (start_function): Move forward check for nested function.
23893 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
23895 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
23896 * config/sh/sh.c: Include reload.h.
23897 (sh_legitimize_reload_address): New.
23898 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
23899 sh_legitimize_reload_address.
23901 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
23903 * config/sh/sh.md (*movqi_pop): New insn pattern.
23904 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
23906 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
23908 * config/i386/i386.md (any_shiftrt): New code iterator.
23909 (shiftrt_insn): New code attribute.
23911 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
23912 using any_shiftrt code iterator.
23913 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
23914 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
23915 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
23916 pattern from corresponding peephole2 patterns.
23917 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
23918 using any_shiftrt code iterator.
23919 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
23920 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
23921 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
23922 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
23923 *{ashr,lshr}<mode>3_cmp_zext.
23924 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
23926 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
23928 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
23930 (*lshr<mode>3_cconly): Ditto.
23932 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
23934 * config/i386/i386.md (lshr<mode>3): Macroize expander from
23935 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
23936 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
23937 pattern from *lshr{di,ti}3_1 and corresponding splitters using
23939 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
23940 from corresponding peephole2 patterns.
23941 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
23942 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
23943 and *lshrdi3_1_rex64 using SWI mode iterator.
23944 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
23945 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
23946 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
23947 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
23948 and *lshrdi3_cmp_rex64 using SWI mode iterator.
23949 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
23950 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
23951 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
23952 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
23955 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
23957 * config/i386/i386.md (ashr<mode>3): Macroize expander from
23958 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
23959 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
23960 pattern from *ashr{di,ti}3_1 and corresponding splitters using
23962 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
23963 from corresponding peephole2 patterns.
23964 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
23965 (ashrsi3_cvt): Rename from ashrsi3_31.
23966 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
23967 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
23968 and x86_64_shift_adj_3 using SWI48 mode iterator.
23969 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
23970 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
23971 and *ashrdi3_1_rex64 using SWI mode iterator.
23972 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
23973 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
23974 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
23975 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
23976 and *ashrdi3_cmp_rex64 using SWI mode iterator.
23977 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
23978 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
23979 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
23980 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
23982 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
23983 * config/i386/i386.c (ix86_split_ashr): Update for renamed
23984 x86_shift<mode>_adj_3 expanders.
23986 2010-04-10 Wei Guozhi <carrot@google.com>
23989 * config/arm/arm.c (arm_pic_static_addr): New function.
23990 (legitimize_pic_address): Call arm_pic_static_addr when it detects
23992 (arm_output_addr_const_extra): Output expression for new pattern.
23993 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
23995 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
23997 * ira-costs.c (record_reg_classes): Ignore alternatives that are
24000 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
24001 * web.c: Include "insn-config.h" and "recog.h".
24002 (union_match_dups): New function.
24003 (web_main): Call it.
24004 (union_defs): Don't try to recognize match_dups.
24006 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
24007 if doing so would replace the entire pattern.
24009 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
24013 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
24014 and splitter pattern. Change splitter operand 1 predicate to
24017 2010-04-09 Martin Jambor <mjambor@suse.cz>
24019 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
24020 lattices are addresses of CONST_DECLs with the same initial value.
24021 (ipcp_print_all_lattices): Print values of CONST_DECLs.
24022 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
24024 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
24025 Bernd Schmidt <bernds@codesourcery.com>
24027 * loop-invariant.c (replace_uses): New static function.
24028 (move_invariant_reg): Use it to ensure we can replace the uses.
24030 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
24032 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
24034 (picochip_override_options): Enable section anchors only above -O1.
24035 (picochip_reorg): Fixed a couple of build warnings.
24037 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24039 * configure.ac (plugin -rdynamic test): Log result.
24040 * configure: Regenerate.
24041 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
24042 (RDYNAMIC_SPEC): Define.
24043 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
24045 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24047 * configure.ac: Determine Sun ld version numbers.
24048 (comdat_group): Restrict GNU ld version checks to gld.
24049 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
24050 (enable_comdat): Support --enable-comdat.
24051 * configure: Regenerate.
24052 * doc/install.texi (Configuration): Document --enable-comdat.
24054 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24056 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
24057 * config/sol2-gld.h: ... here.
24058 * config.gcc (sparc*-*-solaris2*): Reflect this.
24059 (i[34567]86-*-solaris2*): Use it.
24061 2010-04-09 Steve Ellcey <sje@cup.hp.com>
24063 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
24065 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
24067 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
24070 * diagnostic.c (diagnostic_initialize): Initialize
24071 some_warnings_are_errors.
24072 (diagnostic_finish): New.
24073 (diagnostic_action_after_output): Call it before exiting.
24074 (diagnostic_report_diagnostic): Do not print message here. Set
24075 some_warnings_are_errors.
24076 * diagnostic.h (diagnostic_context): Delete
24077 issue_warnings_are_errors_message. Add some_warnings_are_errors.
24078 (diagnostic_finish): Declare.
24079 * toplev.c (toplev_main): Call it before exit.
24081 2010-04-09 Jason Merrill <jason@redhat.com>
24084 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
24085 for incomplete type.
24088 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
24089 based on a warning flag.
24091 2010-04-09 Richard Guenther <rguenther@suse.de>
24093 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
24095 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
24098 * varasm.c (default_assemble_visibility): Wrap vars that are
24099 set, but unused, by targets without GAS.
24100 * config/rs6000/rs6000.c (paired_emit_vector_compare):
24101 Remove set, but unused, vars.
24102 (rs6000_legitimize_tls_address): Likewise.
24103 (altivec_expand_dst_builtin): Likewise.
24104 * config/darwin.c (machopic_classify_symbol): Likewise.
24105 (machopic_indirection_name): Likewise.
24107 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
24109 * config/i386/i386.md (DWI): New mode iterator.
24110 (S): New mode attribute.
24111 (shift_operand): Ditto.
24112 (shift_immediate_operand): Ditto.
24113 (ashl_input_operand): Ditto.
24114 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
24115 using SDWIM mode iterator.
24116 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
24117 pattern from *ashl{di,ti}3_1 and corresponding splitters using
24119 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
24120 from corresponding peephole2 patterns.
24121 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
24122 and x86_64_shift_adj_1 using SWI48 mode iterator.
24123 (x86_shift<mode>_adj_2): Ditto.
24124 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
24125 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
24126 using SWI48 mode iterator.
24127 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
24128 *ashldi3_cmp_rex64 using SWI mode iterator.
24129 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
24130 *ashldi3_cconly_rex64 using SWI mode iterator.
24131 * config/i386/i386.c (ix86_split_ashl): Update for renamed
24132 x86_shift<mode>_adj_{1,2}.
24133 (ix86_split_ashr): Ditto.
24134 (ix86_split_lshr): Ditto.
24136 2010-04-09 Richard Guenther <rguenther@suse.de>
24138 * target.h (builtin_conversion): Pass in input and output types.
24139 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
24140 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
24141 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
24142 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
24144 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
24146 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
24148 2010-04-09 Richard Guenther <rguenther@suse.de>
24151 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
24153 2010-04-09 Richard Guenther <rguenther@suse.de>
24155 * tree-vectorizer.h (struct _stmt_vec_info): Document
24156 that vectype is the type of the LHS.
24157 (supportable_widening_operation, supportable_narrowing_operation):
24158 Get both input and output vector types as arguments.
24159 (vect_is_simple_use_1): Declare.
24160 (get_same_sized_vectype): Likewise.
24161 * tree-vect-loop.c (vect_determine_vectorization_factor):
24162 Set STMT_VINFO_VECTYPE to the vector type of the def.
24163 (vectorizable_reduction): Adjust.
24164 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
24165 Adjust. Specify the output vector type.
24166 (vect_pattern_recog_1): Adjust.
24167 * tree-vect-stmts.c (get_same_sized_vectype): New function.
24168 (vectorizable_call): Adjust.
24169 (vectorizable_conversion): Likewise.
24170 (vectorizable_operation): Likewise.
24171 (vectorizable_type_demotion): Likewise.
24172 (vectorizable_type_promotion): Likewise.
24173 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
24175 (vect_is_simple_use_1): New function.
24176 (supportable_widening_operation): Get both input and output
24178 (supportable_narrowing_operation): Likewise.
24179 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
24181 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
24183 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
24184 __thiscall and _thiscall as predefined macros.
24185 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
24186 thiscall attribute handling.
24187 (ix86_comp_type_attributes): Likewise.
24188 (ix86_function_regparm): Likewise.
24189 (ix86_return_pops_args): Likewise.
24190 (init_cumulative_args): Likewise.
24191 (find_drap_reg): Likewise.
24192 (ix86_static_chain): Likewise.
24193 (x86_this_parameter): Likewise.
24194 (x86_output_mi_thunk): Likewise.
24195 (ix86_attribute_table): Add description for thiscall attribute.
24196 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
24197 * doc/extend.texi: Add documentation for thiscall.
24199 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
24202 * c.opt (Wint-to-pointer-cast): Available in C++.
24203 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
24205 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
24207 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
24208 * calls.c (expand_call): Pass the function type to aggregate_value_p.
24209 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
24210 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
24211 function type instead. Reorder and simplify checks.
24213 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
24215 2010-04-08 Jing Yu <jingyu@google.com>
24216 Zdenek Dvorak <ook@ucw.cz>
24218 PR tree-optimization/42720
24219 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
24220 loop unswitch conditions here from ...
24221 (tree_unswitch_single_loop): ... here.
24223 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
24225 * tree-if-conv.c: Fix comments and simplify logic.
24227 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
24229 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
24230 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
24231 (main_tree_if_conversion): Update call to tree_if_conversion.
24233 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
24236 * doc/invoke.texi (-b,-V): Delete.
24237 * doc/tm.texi: Do not mention -b.
24238 * gcc.c (display_help): Delete -b and -V.
24239 (process_command): Delete -b and -V.
24240 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
24242 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
24243 Wolfgang Gellerich <gellerich@de.ibm.com>
24245 Implement target hook for loop unrolling
24246 * target.h (loop_unroll_adjust): Add a new target hook function.
24247 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
24248 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
24249 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
24250 (s390_loop_unroll_adjust): Implement the new target hook for s390.
24251 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
24253 (decide_unroll_stupid): Likewise.
24255 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24258 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
24260 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24262 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
24263 (Specific, *-*-solaris2*): Likewise.
24264 Don't prefer Sun as over GNU as.
24266 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
24268 * config/s390/s390.c (override_options): Adjust the z10 defaults
24269 for max-unroll-times, max-completely-peeled-insns
24270 and max-completely-peel-times.
24272 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24274 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
24275 instructions for z10.
24276 (s390_expand_setmem): Likewise.
24277 (s390_expand_cmpmem): Likewise.
24279 2010-04-08 Richard Guenther <rguenther@suse.de>
24281 PR tree-optimization/43679
24282 * tree-ssa-pre.c (eliminate): Only propagate copies.
24284 2010-04-08 Jakub Jelinek <jakub@redhat.com>
24287 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
24288 set but not used variable warning.
24290 2010-04-08 Wei Guozhi <carrot@google.com>
24293 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
24294 (arm_size_rtx_costs): Call the new function when optimized for size.
24296 2010-04-08 Jakub Jelinek <jakub@redhat.com>
24299 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
24300 op0 is not a MEM, just return NULL instead of assertion
24302 (discover_nonconstant_array_refs): Don't walk debug stmts.
24304 2010-04-08 Doug Kwan <dougkwan@google.com>
24306 * configure.ac: Recognize gold and do not use its version number
24307 to test ld features.
24308 * configure: Regenerate.
24310 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
24312 PR middle-end/40815
24313 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
24314 (negate_value): Move code to push elements to broken_up_substracts ...
24315 (eliminate_plus_minus_pair): ... here. Push operands that have no
24316 negative pair to plus_negates.
24317 (repropagate_negates, init_reassoc, fini_reassoc): Update.
24319 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24321 * doc/install.texi (Configuration): Move description of
24322 --enable-lto, --with-libelf*, --enable-gold from Java section to
24325 * doc/generic.texi (Working with declarations)
24326 (Function Properties, C and C++ Trees): Fix typos.
24327 * doc/sourcebuild.texi (Top Level): Likewise.
24329 2010-04-07 Jakub Jelinek <jakub@redhat.com>
24332 * tree.h (DECL_READ_P): Define.
24333 (struct tree_decl_common): Add decl_read_flag.
24334 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
24335 a set but not used warning.
24336 (merge_decls): Merge DECL_READ_P flag.
24337 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
24338 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
24339 * c-common.c (handle_used_attribute, handle_unused_attribute):
24341 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
24343 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
24345 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
24346 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
24347 c_parser_binary_expression, c_parser_cast_expression,
24348 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
24349 Call default_function_array_read_conversion instead of
24350 default_function_array_conversion where needed.
24351 (c_parser_unary_expression, c_parser_conditional_expression,
24352 c_parser_postfix_expression_after_primary, c_parser_initelt):
24353 Likewise. Call mark_exp_read where needed.
24354 (c_parser_statement_after_labels, c_parser_asm_operands,
24355 c_parser_typeof_specifier, c_parser_sizeof_expression,
24356 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
24358 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
24360 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
24361 (warn_unused_but_set_parameter): Default to warn_unused
24363 * doc/invoke.texi: Document -Wunused-but-set-variable and
24364 -Wunused-but-set-parameter.
24366 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
24367 used count variable.
24368 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
24369 when operandN variables aren't used in the body of the expander
24371 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
24372 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
24373 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
24374 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
24375 FOR_EACH_IMM_USE_ON_STMT): Likewise.
24376 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
24377 * tree.c (PROCESS_ARG): Likewise.
24379 2010-04-07 Simon Baldwin <simonb@google.com>
24381 * diagnostic.h (diagnostic_override_option_index): New macro to
24382 set a diagnostic's option_index.
24383 * c-tree.h (c_cpp_error): Add warning reason argument.
24384 * opts.c (_warning_as_error_callback): New.
24385 (register_warning_as_error_callback): Store callback for
24386 warnings enabled via enable_warning_as_error.
24387 (enable_warning_as_error): Call callback, minor code tidy.
24388 * opts.h (register_warning_as_error_callback): Declare.
24389 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
24390 response to -Werror=.
24391 (c_common_init_options): Register warning_as_error_callback in opts.c.
24392 * common.opt: Add -Wno-cpp option.
24393 * c-common.c (struct reason_option_codes_t): Map cpp warning
24394 reason codes to gcc option indexes.
24395 * (c_option_controlling_cpp_error): New function, lookup the gcc
24396 option index for a cpp warning reason code.
24397 * (c_cpp_error): Add warning reason argument, call
24398 c_option_controlling_cpp_error for diagnostic_override_option_index.
24399 * doc/invoke.texi: Document -Wno-cpp.
24401 2010-04-07 Richard Guenther <rguenther@suse.de>
24403 * ipa-reference.c (mark_load): Use get_base_address.
24404 (mark_store): Likewise.
24406 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
24407 inserting GIMPLE_NOPs into the IL.
24408 * tree-ssa-structalias.c (get_constraint_for_component_ref):
24409 Explicitly strip handled components and indirect references.
24411 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
24412 folding address expressions.
24413 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
24414 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
24415 operand_equal_p to compare decls.
24416 (ptr_deref_may_alias_decl_p): Likewise.
24417 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
24418 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
24419 Handle reversed comparison ops.
24420 * tree-sra.c (asm_visit_addr): Use get_base_address.
24421 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
24422 * ipa-reference.c (mark_address): Use get_base_address.
24424 2010-04-07 Richard Guenther <rguenther@suse.de>
24426 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
24427 Propagate constants everywhere.
24429 2010-04-07 Jakub Jelinek <jakub@redhat.com>
24432 * tree.c (MAX_INT_CACHED_PREC): Define.
24433 (nonstandard_integer_type_cache): New array.
24434 (build_nonstandard_integer_type): Cache results for precision
24435 <= MAX_INT_CACHED_PREC.
24437 2010-04-07 Richard Guenther <rguenther@suse.de>
24439 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
24440 -fargument-noalias-global, -fargument-noalias-anything): Remove.
24441 * common.opt: Likewise.
24442 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
24443 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
24444 (nonoverlapping_memrefs_p): Likewise.
24445 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
24446 * opts.c (common_handle_option): Handle OPT_fargument_alias,
24447 OPT_fargument_noalias, OPT_fargument_noalias_anything and
24448 OPT_fargument_noalias_global for backward compatibility.
24450 2010-04-07 Richard Guenther <rguenther@suse.de>
24452 PR tree-optimization/43270
24453 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
24454 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
24455 * tree-ssa-pre.c (phi_translate_1): Adjust.
24456 (fully_constant_expression): Split out vn_reference handling to ...
24457 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
24458 Fold reads from constant strings.
24459 (vn_reference_lookup): Handle fully constant references.
24460 (vn_reference_lookup_pieces): Likewise.
24461 * Makefile.in (expmed.o-warn): Add -Wno-error.
24463 2010-04-07 Martin Jambor <mjambor@suse.cz>
24465 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
24467 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
24470 * gcc.c: Add -static-libstdc++ to list of recognized options.
24472 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24474 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
24476 2010-04-07 Richard Guenther <rguenther@suse.de>
24478 PR middle-end/42617
24479 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
24480 bases build simple mem attributes to retain points-to information.
24482 2010-04-07 Richard Guenther <rguenther@suse.de>
24484 PR middle-end/42617
24485 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
24486 preserve points-to related information.
24488 2010-04-07 Richard Guenther <rguenther@suse.de>
24490 PR middle-end/42617
24491 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
24492 discard plain indirect references.
24493 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
24494 * tree.c (tree_nop_conversion): Likewise.
24496 2010-04-07 Dodji Seketeli <dodji@redhat.com>
24499 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
24501 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
24503 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
24504 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
24506 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
24508 * tree-if-conv.c: Fix indentation and comments.
24510 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
24512 * tree-if-conv.c: Sort static functions in topological order.
24514 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
24516 * tree-if-conv.c: Fix indentation and comments.
24518 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
24520 PR middle-end/43519
24521 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
24522 lang_hooks.types.type_for_size instead of
24523 build_nonstandard_integer_type.
24524 When converting an unsigned type to signed, double its precision.
24525 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
24526 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
24527 (graphite_create_new_loop_guard): When ub + 1 wraps around,
24530 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
24532 PR middle-end/43519
24533 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
24534 POINTER_PLUS_EXPR for pointer types.
24536 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
24538 PR middle-end/43519
24539 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
24540 * graphite-clast-to-gimple.c: Include langhooks.h.
24541 (max_signed_precision_type): New.
24542 (max_precision_type): Takes two types as arguments.
24543 (precision_for_value): New.
24544 (precision_for_interval): New.
24545 (gcc_type_for_interval): New.
24546 (gcc_type_for_value): New.
24547 (gcc_type_for_clast_term): New.
24548 (gcc_type_for_clast_red): New.
24549 (gcc_type_for_clast_bin): New.
24550 (gcc_type_for_clast_expr): Split up into several functions.
24551 (gcc_type_for_clast_eq): Rewritten.
24552 (compute_bounds_for_level): New.
24553 (compute_type_for_level_1): New.
24554 (compute_type_for_level): New.
24555 (gcc_type_for_cloog_iv): Removed.
24556 (gcc_type_for_iv_of_clast_loop): Rewritten.
24557 (graphite_create_new_loop): Compute the lower and upper bound types
24558 with gcc_type_for_clast_expr.
24559 (graphite_create_new_loop_guard): Same.
24560 (find_cloog_iv_in_expr): Removed.
24561 (compute_cloog_iv_types_1): Removed.
24562 (compute_cloog_iv_types): Removed.
24563 (gloog): Do not call compute_cloog_iv_types.
24564 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
24565 GBB_CLOOG_IV_TYPES.
24566 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
24567 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
24568 (GBB_CLOOG_IV_TYPES): Removed.
24570 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
24572 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
24573 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
24574 (detect_commutative_reduction): Same.
24576 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
24578 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
24579 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
24581 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
24582 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
24583 (rewrite_commutative_reductions_out_of_ssa): Same.
24584 * passes.c (execute_function_todo): Call verify_ssa for every pass
24585 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
24586 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
24587 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
24588 with an extra argument.
24589 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
24590 verify_ssa only when the extra argument is true.
24591 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
24592 with an extra argument.
24593 (tree_transform_and_unroll_loop): Same.
24595 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
24597 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
24598 for all the passes of the LNO having LOOP_CLOSED_SSA.
24599 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
24600 * tree-loop-distribution.c (pass_loop_distribution): Same.
24601 * tree-pass.h (TODO_verify_loops): Removed.
24602 * tree-ssa-loop.c (pass_tree_loop_init): Same.
24604 (pass_tree_unswitch): Same.
24605 (pass_predcom): Same.
24606 (pass_vectorize): Same.
24607 (pass_linear_transform): Same.
24608 (pass_graphite_transforms): Same.
24609 (pass_iv_canon): Same.
24610 (pass_complete_unroll): Same.
24611 (pass_complete_unrolli): Same.
24612 (pass_parallelize_loops): Same.
24613 (pass_loop_prefetch): Same.
24614 (pass_iv_optimize): Same.
24616 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
24618 PR middle-end/32824
24619 * passes.c (init_optimization_passes): Move pass_lim before
24620 pass_copy_prop and pass_dce_loop.
24622 2010-04-06 Jakub Jelinek <jakub@redhat.com>
24625 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
24626 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
24627 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
24628 MULTI_* defines for 4 argument vpermil2p* builtins.
24630 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
24632 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
24633 * config/i386/i386.c (x86_maybe_negate_const_int): New.
24634 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
24635 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
24636 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
24637 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
24638 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
24639 Use x86_maybe_negate_const_int to output insn mnemonic.
24640 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
24641 check from instruction predicate. Update comments.
24642 * config/i386/sync.md (sync_add<mode>): Use
24643 x86_maybe_negate_const_int to output insn mnemonic.
24645 2010-04-06 Jan Hubicka <jh@suse.cz>
24647 PR tree-optimization/42906
24648 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
24649 IGNORE_SELF argument. Set visited_control_parents for fully
24651 (find_obviously_necessary_stmts): Update call of
24652 mark_control_dependent_edges_necessary.
24653 (propagate_necessity): Likewise. Handle PHI edges more curefully.
24655 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
24657 * config/i386/i386.md: Remove comment about 'e' and 'E'
24660 2010-04-06 Richard Guenther <rguenther@suse.de>
24662 PR tree-optimization/43627
24663 * tree-vrp.c (extract_range_from_unary_expr): Widenings
24664 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
24667 2010-04-06 Jakub Jelinek <jakub@redhat.com>
24669 * BASE-VER: Change to 4.6.0.
24672 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
24675 2010-04-06 Richard Guenther <rguenther@suse.de>
24677 PR middle-end/43661
24678 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
24680 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24682 * doc/invoke.texi (Optimize Options): Document that LTO
24683 won't remove object access purely due to incompatible
24686 2010-04-04 Matthias Klose <doko@ubuntu.com>
24688 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
24689 Initialize variable.
24691 2010-04-03 Richard Guenther <rguenther@suse.de>
24693 PR middle-end/42509
24694 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
24695 require a non-NULL MEM_OFFSET.
24697 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
24699 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
24700 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
24701 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
24702 config/alpha/predicates.md, config/arm/arm.md,
24703 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
24704 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
24705 config/darwin9.h, config/darwin.c, config/darwin.h,
24706 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
24707 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
24708 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
24709 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
24710 config/mips/mips.md, config/mn10300/mn10300.c,
24711 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
24712 config/rs6000/aix.h, config/rs6000/dfp.md,
24713 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
24714 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
24715 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
24716 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
24717 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
24718 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
24719 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
24720 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
24721 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
24722 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
24723 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
24724 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
24725 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
24726 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
24727 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
24728 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
24729 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
24730 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
24731 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
24732 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
24733 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
24734 opt-functions.awk, opth-gen.awk, params.def, passes.c,
24735 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
24736 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
24737 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
24738 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
24739 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
24740 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
24741 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
24742 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
24743 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
24744 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
24745 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
24746 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
24747 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
24748 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
24750 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24753 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
24754 * aclocal.m4: Regenerate.
24756 2010-04-02 Richard Guenther <rguenther@suse.de>
24758 PR tree-optimization/43629
24759 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
24760 if we have seen a constant value.
24762 2010-04-02 Joseph Myers <joseph@codesourcery.com>
24764 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
24766 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
24769 * arm.c (legitimize_tls_address): Adjust call to
24770 gen_tls_load_dot_plus_four.
24771 (arm_note_pic_base): New function.
24772 (arm_cannot_copy_insn_p): Use it.
24773 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
24776 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24781 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24783 * Makefile.in ($(out_object_file)): Depend on
24784 gt-$(basename $(notdir $(out_file))).h.
24786 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
24788 * config.gcc (lm32-*-rtems*): Add t-lm32.
24790 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
24792 * config.gcc: Add lm32-*-rtems*.
24793 * config/lm32/rtems.h: New file.
24795 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
24798 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
24800 2010-04-01 Jakub Jelinek <jakub@redhat.com>
24802 * dwarf2out.c (output_compilation_unit_header): For
24803 -gdwarf-4 use version 4 instead of version 3.
24804 (output_line_info): For version 4 and above emit additional
24805 maximum ops per insn header field.
24806 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
24808 * dwarf2out.c (is_c_family, is_java): Remove.
24809 (lower_bound_default): New function.
24810 (add_bound_info, gen_descr_array_type_die): Use it.
24812 2010-04-01 Dodji Seketeli <dodji@redhat.com>
24815 * dwarf2out.c (gen_variable_die): Allow debug info for variable
24816 re-declaration when it happens in a function.
24818 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
24820 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
24821 (cgraph_remove_function_insertion_hook): Same.
24822 (cgraph_call_function_insertion_hooks): Same.
24824 2010-04-01 Richard Guenther <rguenther@suse.de>
24826 PR middle-end/43614
24827 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
24828 and TREE_THIS_VOLATILE.
24829 (copy_ref_info): Likewise.
24830 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
24831 * tree.c (build6_stat): Ignore side-effects of all but arg5
24832 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
24835 2010-04-01 Richard Guenther <rguenther@suse.de>
24837 PR tree-optimization/43607
24838 * ipa-type-escape.c (check_call): Do not access non-existing
24841 2010-04-01 Richard Guenther <rguenther@suse.de>
24843 PR middle-end/43602
24845 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
24846 Jack Howarth <howarth@bromo.med.uc.edu>
24848 * tree-profile.c (tree_init_ic_make_global_vars): Make static
24851 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24853 * doc/install.texi (Prerequisites): Document libelf usability on
24854 IRIX 5/6 and Solaris 2.
24855 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
24856 Update GNU as, GNU ld requirements.
24857 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
24858 Document Sun Studio compiler download.
24859 Update and simplify as, ld recommendations.
24860 (Specific, *-*-solaris2.7): Note obsoletion, removal.
24862 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24864 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
24865 with_tune_32 to pentium4.
24867 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
24869 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
24871 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24873 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
24874 obsoletion, removal.
24876 Document GNU as requirement.
24877 Update configure requirements.
24878 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
24879 Recomment IRIX 6.5.18+.
24880 Document IDF/IDL requirement.
24881 Document GNU as requirement.
24882 Document GNU ld bootstrap failure.
24883 Remove freeware.sgi.com reference.
24885 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24887 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
24888 UNIX V4.0, V5.0 obsoletion, removal.
24889 Remove --with-gc=simple reference.
24890 Update VM requirements during bootstrap.
24891 Remove -oldas bootstrap description.
24892 Update binutils reference.
24893 Remove comparison failure note.
24895 2010-03-31 Richard Guenther <rguenther@suse.de>
24896 Zdenek Dvorak <ook@ucw.cz>
24897 Sebastian Pop <sebastian.pop@amd.com>
24899 PR middle-end/43464
24900 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
24901 with multiple arguments.
24902 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
24904 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
24906 * graphite-dependences.c (print_pddr): Call print_pdr with an
24908 * graphite-poly.c (debug_pdr): Add an extra argument for the
24911 (print_pbb_domain): Same.
24913 (print_scop_context): Same.
24914 (print_scop): Same.
24915 (print_cloog): Same.
24916 (debug_pbb_domain): Same.
24918 (print_pdrs): Same.
24919 (debug_pdrs): Same.
24920 (debug_scop_context): Same.
24921 (debug_scop): Same.
24922 (debug_cloog): Same.
24923 (print_scop_params): Same.
24924 (debug_scop_params): Same.
24925 (print_iteration_domain): Same.
24926 (print_iteration_domains): Same.
24927 (debug_iteration_domain): Same.
24928 (debug_iteration_domains): Same.
24929 (print_scattering_function): Same.
24930 (print_scattering_functions): Same.
24931 (debug_scattering_function): Same.
24932 (debug_scattering_functions): Same.
24933 * graphite-poly.h (debug_pdr): Update declaration.
24935 (print_pbb_domain): Same.
24937 (print_scop_context): Same.
24938 (print_scop): Same.
24939 (print_cloog): Same.
24940 (debug_pbb_domain): Same.
24942 (print_pdrs): Same.
24943 (debug_pdrs): Same.
24944 (debug_scop_context): Same.
24945 (debug_scop): Same.
24946 (debug_cloog): Same.
24947 (print_scop_params): Same.
24948 (debug_scop_params): Same.
24949 (print_iteration_domain): Same.
24950 (print_iteration_domains): Same.
24951 (debug_iteration_domain): Same.
24952 (debug_iteration_domains): Same.
24953 (print_scattering_function): Same.
24954 (print_scattering_functions): Same.
24955 (debug_scattering_function): Same.
24956 (debug_scattering_functions): Same.
24958 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
24960 * graphite-poly.c (print_scattering_function_1): New.
24961 (print_scattering_function): Call it.
24962 (print_scop_params): Remove spaces at the end of lines.
24963 (print_cloog): New.
24964 (debug_cloog): New.
24965 * graphite-poly.h (print_cloog): Declared.
24966 (debug_cloog): Declared.
24968 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
24970 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
24972 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
24973 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
24974 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
24975 to switch between adding the IV bump in loop->latch or in loop->header.
24977 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
24979 * graphite-poly.c (print_scattering_function): Pretty print following
24980 the scoplib format.
24982 (print_pbb_domain): Same.
24983 (dump_gbb_cases): Same.
24984 (dump_gbb_conditions): Same.
24985 (print_pdrs): Same.
24987 (print_scop_params): Same.
24988 (print_scop_context): Same.
24989 (print_scop): Same.
24990 (print_pbb_body): New.
24991 (lst_indent_to): New.
24992 (print_lst): Start new lines with a #.
24993 * graphite-poly.h (pbb_bb): New.
24994 (pbb_index): Use pbb_bb.
24995 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
24997 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
24999 2010-03-31 Jakub Jelinek <jakub@redhat.com>
25001 * dwarf2out.c (size_of_die): For -gdwarf-4 use
25002 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
25003 and 0 instead of 1 for dw_val_class_flag.
25004 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
25005 dw_val_class_range_list, dw_val_class_loc_list,
25006 dw_val_class_lineptr and dw_val_class_macptr, use
25007 DW_FORM_flag_present for dw_val_class_flag and
25008 DW_FORM_exprloc for dw_val_class_loc.
25009 (output_die): For -gdwarf-4 print dw_val_class_loc
25010 size as uleb128 instead of 1 or 2 bytes and don't print
25011 anything for dw_val_class_flag.
25013 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
25014 instead of cselib_lookup following by tweaking locs->setting_insn.
25017 * cselib.c (cselib_process_insn): Clear cselib_current_insn
25018 even before returning from label, setjmp call or volatile asm
25021 2010-03-31 Richard Guenther <rguenther@suse.de>
25023 PR middle-end/43600
25024 * cgraphunit.c (cgraph_output_in_order): Do not allocate
25025 temporary data on stack.
25027 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25029 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
25030 (PUSHSECTION_ASM_OP): Remove.
25031 (POPSECTION_ASM_OP): Remove.
25032 (PUSHSECTION_FORMAT): Remove.
25033 * config/sol2.h (PUSHSECTION_FORMAT): Define.
25034 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
25035 * config/sol2.c (solaris_output_init_fini): Use it.
25037 2010-03-31 Jie Zhang <jie@codesourcery.com>
25040 * opt-functions.awk (var_type_struct): Use signed char type
25041 for simple variables.
25043 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25045 * config/sol2.c: Include output.h.
25046 (solaris_assemble_visibility): New function.
25047 * config/t-sol2 (sol2.o): Add output.h dependency.
25048 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
25049 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
25052 2010-03-31 Jakub Jelinek <jakub@redhat.com>
25055 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
25056 V2SImode or XFmode on PRE_DEC.
25059 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
25062 2010-03-31 Jie Zhang <jie@codesourcery.com>
25065 * reload.h (caller_save_initialized_p): Declare.
25066 * toplev.c (backend_init_target): Don't call
25067 init_caller_save but set caller_save_initialized_p to false.
25068 * caller-save.c (caller_save_initialized_p): Define.
25069 (init_caller_save): Check caller_save_initialized_p.
25070 * ira.c (ira): Call init_caller_save if flag_caller_saves.
25072 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25075 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
25076 and soft-fp/t-softfp to tmake_file.
25077 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
25078 (LIBGCC2_TF_CEXT): Define.
25081 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
25084 * cselib.c (n_useless_values): Document handling of debug locs.
25085 (n_useless_debug_values, n_debug_values): New variables.
25086 (new_elt_loc_list): Don't add to debug values, keep count.
25087 (promote_debug_loc): New.
25088 (cselib_reset_table): Zero new variables.
25089 (entry_and_rtx_equal_p): Promote debug locs.
25090 (discard_useless_locs): Increment n_useless_debug_values for
25092 (remove_useless_values): Adjust n_useless_values and n_debug_values
25093 with n_useless_debug_values.
25094 (add_mem_for_addr): Promote debug locs.
25095 (cselib_lookup_mem): Likewise.
25096 (cselib_lookup_addr): Renamed to...
25097 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
25098 (cselib_log_lookup): ... this. Turn into...
25099 (cselib_lookup_addr): ... new wrapper.
25100 (cselib_lookup_from_insn): New.
25101 (cselib_invalidate_regno): Increment n_useless_debug_values for
25103 (cselib_invalidate_mem): Likewise.
25104 (cselib_process_insn): Take n_deleted and n_debug_values into
25105 account to guard remove_useless_value call.
25106 (cselib_finish): Zero n_useless_debug_values.
25107 * cselib.h (cselib_lookup_from_insn): Declare.
25108 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
25109 (sched_analyze_2): Likewise.
25111 2010-03-30 Jakub Jelinek <jakub@redhat.com>
25113 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
25115 (adjust_mems): Replace narrowing SUBREG of expression containing
25116 just PLUS, MINUS, MULT and ASHIFT of registers and constants
25117 with operations in the narrower mode.
25120 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
25121 regs_invalidated_by_call instead all call_used_reg_set registers.
25123 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
25125 PR middle-end/43430
25126 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
25127 pointer comparisons with types_compatible_p.
25128 * tree-vect-stmts.c (vectorizable_call): Same.
25129 (vectorizable_condition): Same.
25131 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25133 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
25134 stack check if the mask would be zero.
25136 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
25137 Jack Howarth <howarth@bromo.med.uc.edu>
25139 * tree-profile.c (tree_init_ic_make_global_vars): Make static
25142 2010-03-30 Joseph Myers <joseph@codesourcery.com>
25145 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
25147 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
25148 Include ___unordxf2 and ___unordtf2.
25149 * config/i386/libgcc-glibc.ver: Do not define inheritance from
25152 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
25154 * config/lm32/t-lm32: New file.
25155 * config.gcc: Use the above file when targetting lm32.
25157 2010-03-28 Duncan Sands <baldrick@free.fr>
25159 * Makefile.in (PLUGIN_HEADERS): Add except.h.
25161 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
25163 PR middle-end/43431
25164 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
25165 Improve vectorization cost model diagnostic.
25167 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
25169 PR middle-end/43436
25170 * tree-vect-data-refs.c (vect_analyze_data_refs): When
25171 compute_data_dependences_for_loop returns false, early exit
25172 and output an extra diagnostic for the failed data reference
25175 2010-03-29 Richard Guenther <rguenther@suse.de>
25177 PR tree-optimization/43560
25178 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
25179 (can_sm_ref_p): Treat stores to readonly locations as trapping.
25181 2010-03-29 Jie Zhang <jie@codesourcery.com>
25184 * toplev.c (process_options): Set optimization_default_node
25185 and optimization_current_node.
25186 * opts.c (decode_options): Don't set optimization_default_node
25187 and optimization_current_node.
25189 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
25191 * config/rtems.h: Abandon -qrtems_debug.
25193 2010-03-28 Jan Hubicka <jh@suse.cz>
25195 PR tree-optimization/43505
25196 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
25197 map should not be copied.
25199 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25201 PR middle-end/41674
25202 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
25203 cdtors, set DECL_PRESERVE_P.
25204 * ipa.c (cgraph_externally_visible_p): Return true if declaration
25205 should be preseved.
25207 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
25209 PR tree-optimization/43528
25210 * stor-layout.c (place_field): Check that constant fits into
25211 unsigned HWI when skipping calculation of MS bitfield layout.
25213 2010-03-27 Jan Hubicka <jh@suse.cz>
25215 PR middle-end/43391
25216 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
25217 notice_global_symbol work.
25219 2010-03-27 Jakub Jelinek <jakub@redhat.com>
25221 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
25222 instead of dwarf2out_decl.
25223 (struct var_loc_node): Remove section_label field.
25224 (dwarf2out_function_decl): New function.
25225 (dwarf2out_var_location): Don't set section_label field.
25226 (dwarf2out_begin_function): Don't empty decl_loc_table here.
25228 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
25230 PR tree-optimization/43544
25231 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
25232 First argument for builtin vectorized function hook is now a
25233 tree to be able to distinguish between machine specific and
25235 * targhooks.c (default_builtin_vectorized_function): Ditto.
25236 * targhooks.h (default_builtin_vectorized_function): Ditto.
25237 * target.h (struct gcc_target): Ditto.
25238 * tree-vect-stmts.c (vectorizable_function): Ditto.
25239 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
25240 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
25243 2010-03-26 Joseph Myers <joseph@codesourcery.com>
25246 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
25247 nested binding iff it is a FUNCTION_DECL.
25248 (store_parm_decls_newstyle): Pass nested=true to bind for
25249 FUNCTION_DECLs amongst parameters.
25251 2010-03-26 Jakub Jelinek <jakub@redhat.com>
25253 * var-tracking.c (vt_expand_loc_callback): Don't run
25254 cselib_expand_value_rtx_cb in dummy mode if
25255 cselib_dummy_expand_value_rtx_cb returned false.
25257 * var-tracking.c (emit_note_insn_var_location): For one part
25258 notes with offset 0, don't add EXPR_LIST around the location.
25259 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
25260 add_location_or_const_value_attribute): Adjust for that change.
25263 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
25264 into first operand and location into second.
25265 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
25266 dw_cfi_oprnd_loc for DW_CFA_expression.
25267 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
25268 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
25269 assume first argument is regnum and second argument is location.
25271 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
25274 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
25275 of scratch register to DImode. Split to DImode comparison operator.
25276 Use SImode subreg of scratch register in the multiplication.
25277 (*cmp_sadd_sidi): Ditto.
25278 (*cmp_ssub_si): Ditto.
25279 (*cmp_ssub_sidi): Ditto.
25281 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
25284 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
25285 Remove invalid assert and wrong comment.
25287 2010-03-26 Jakub Jelinek <jakub@redhat.com>
25290 * flags.h (final_insns_dump_p): New extern.
25291 * final.c (final_insns_dump_p): New variable.
25292 (rest_of_clean_state): Set it before -fdump-final-insns=
25293 dumping, clear afterwards.
25294 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
25295 MEM_ALIAS_SET on MEMs.
25297 2010-03-26 David S. Miller <davem@davemloft.net>
25299 * configure.ac: Fix sparc GOTDATA_OP bug check.
25300 * configure: Rebuild.
25302 2010-03-26 Alan Modra <amodra@gmail.com>
25304 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
25306 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25308 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
25309 TLS_SECTION_ASM_FLAG.
25311 2010-03-25 Jakub Jelinek <jakub@redhat.com>
25314 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
25315 Clear first_function_block_is_cold.
25318 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
25319 argument if the argument is truth_value_p.
25321 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
25323 * config/rs6000/constraints.md: Update copyright year for my changes.
25326 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
25327 used in reg+reg addressing, swap registers.
25329 2010-03-24 Jakub Jelinek <jakub@redhat.com>
25332 * target.h (struct gcc_target): Add code_end hook.
25333 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
25334 if not yet defined.
25335 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
25336 * toplev.c (compile_file): Call targetm.asm_out.code_end
25337 hook before unwind info/debug info output.
25338 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
25339 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
25340 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
25341 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
25342 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
25343 * config/i386/i386.c (ix86_file_end): Renamed to...
25344 (ix86_code_end): ... this. Make static. Don't call
25345 file_end_indicate_exec_stack. Emit unwind info using
25346 final_start_function/final_end_function.
25347 (darwin_x86_file_end): Remove.
25348 (TARGET_ASM_CODE_END): Define.
25349 * config/i386/i386.h (TARGET_ASM_FILE_END,
25350 NEED_INDICATE_EXEC_STACK): Don't define.
25351 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
25352 (TARGET_ASM_FILE_END): Define to darwin_file_end.
25353 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
25354 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
25357 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
25358 at the beginning and final_end_function at the end.
25359 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
25361 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25363 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
25364 and Sun as TLS syntax.
25365 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
25366 * configure: Regenerate.
25367 * config.in: Regenerate.
25368 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
25369 (default_elf_asm_named_section): Use it.
25370 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
25371 (i386_output_dwarf_dtprel): Likewise.
25372 (output_addr_const_extra): Likewise.
25373 (output_pic_addr_const): Lowercase @GOTTPOFF.
25374 (output_addr_const_extra): Likewise.
25375 (output_pic_addr_const): Lowercase @GOTNTPOFF.
25376 (output_addr_const_extra): Likewise.
25377 (output_pic_addr_const): Lowercase @INDNTPOFF.
25378 (output_addr_const_extra): Likewise.
25379 (output_pic_addr_const): Lowercase @NTPOFF.
25380 (output_addr_const_extra): Likewise.
25381 (output_pic_addr_const): Lowercase @TPOFF.
25382 (output_addr_const_extra): Likewise.
25383 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
25384 (*tls_global_dynamic_64): Likewise.
25385 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
25386 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
25388 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
25389 (ASM_OUTPUT_TLS_COMMON): Use it.
25390 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
25393 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
25394 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
25395 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
25396 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
25397 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
25398 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
25400 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25402 * config/i386/i386.c (override_options): Don't accept
25403 -mtls-dialect=sun any longer.
25404 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
25405 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
25406 (*tls_local_dynamic_base_32_sun): Likewise.
25407 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
25409 2010-03-24 Jakub Jelinek <jakub@redhat.com>
25412 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
25413 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
25416 * ira.c (adjust_cleared_regs): New function.
25417 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
25421 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
25423 * expr.c (expand_expr_real): Restore previous
25424 curr_insn_source_location and curr_insn_block after
25425 expand_expr_real_1 call.
25426 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
25427 instead of expand_expr_real_1.
25429 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
25431 PR rtl-optimization/43413
25432 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
25435 2010-03-22 James E. Wilson <wilson@codesourcery.com>
25438 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
25439 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
25441 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
25443 * config/i386/i386.c (ix86_target_string): Add -mfma.
25444 Fix a typo in comment.
25446 2010-03-22 Mike Stump <mikestump@comcast.net>
25449 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
25450 Don't overly align based upon packed packed fields.
25452 2010-03-22 Jason Merrill <jason@redhat.com>
25454 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
25455 Use () rather than [], and move before the element type.
25457 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25459 * doc/configfiles.texi (Configuration Files): Removed
25460 fixinc/Makefile*, intl/Makefile.*.
25461 * doc/makefile.texi: Fixed markup. Abstract from version
25462 control system used.
25463 (Makefile): Removed obsolete java/parse.y example.
25464 * doc/sourcebuild.texi: Likewise.
25465 (Top Level): Added config, gnattools, libdecnumber, libgcc,
25466 libgomp, libssp. Removed fastjar.
25467 (Miscellaneous Docs): Clarify location.
25468 Added COPYING3, COPYING3.LIB.
25469 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
25471 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25474 * config/i386/i386.c (x86_function_profiler)
25475 [!NO_PROFILE_COUNTERS]: Fix typo.
25476 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
25479 2010-03-22 Janis Johnson <janis187@us.ibm.com>
25480 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25482 * doc/sourcebuild.texi (Test Directives): Split into six
25483 subsections, with most of the current text in new subsections
25484 Directives, Selectors, and Final Actions.
25485 (Directives): Split list of test directives into multiple
25487 (Selectors): Describe use and syntax of selectors.
25488 (Effective-Target Keywords): Describe all existing keywords.
25489 (Add Options): Describe features for dg-add-options.
25490 (Require Support): Describe variants of dg-require-support.
25491 (Final Actions): Describe commands to use in dg-final.
25493 2010-03-22 Michael Matz <matz@suse.de>
25495 PR middle-end/43475
25496 * recog.c (validate_replace_rtx_group): Replace also in
25497 REG_EQUAL and REG_EQUIV notes.
25499 2010-03-22 Richard Guenther <rguenther@suse.de>
25501 PR tree-optimization/43390
25502 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
25503 sure vector extracts are type correct.
25505 2010-03-22 Richard Guenther <rguenther@suse.de>
25507 PR middle-end/40106
25508 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
25509 x * sqrt (x) even when optimizing for size if the target
25510 has native support for sqrt.
25512 2010-03-22 Jakub Jelinek <jakub@redhat.com>
25514 * varasm.c (make_decl_rtl_for_debug): Also clear
25515 flag_mudflap for the duration of make_decl_rtl call.
25518 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
25519 locs from preserved VALUEs.
25521 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25523 PR middle-end/42718
25524 * pa.md (movmemsi): Set align to one if zero.
25525 (movmemdi): Likewise.
25527 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
25530 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
25531 with their corresponding prologue pushes.
25533 2010-03-20 Andrew Pinski <pinskia@gmail.com>
25536 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
25537 at the begining or end.
25538 (spu_expand_epilogue): Likewise.
25540 2010-03-20 Richard Guenther <rguenther@suse.de>
25542 PR rtl-optimization/43438
25543 * combine.c (make_extraction): Properly zero-/sign-extend an
25544 extraction of the low part of a CONST_INT. Also handle
25547 2010-03-19 Mike Stump <mikestump@comcast.net>
25549 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
25550 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
25551 (override_options): Use SUBTARGET32_DEFAULT_CPU.
25553 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
25556 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
25559 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
25561 PR rtl-optimization/42258
25562 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
25563 use that may match DEF.
25566 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
25567 the cost of loading the constant rather than assuming
25569 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
25570 outer code is AND, do the same tests as the andsi3 expander and
25571 return COSTS_N_INSNS (1) if and is cheap.
25573 * optabs.c (avoid_expensive_constant): Fix formatting.
25575 2010-03-19 Michael Matz <matz@suse.de>
25578 * attribs.c (decl_attributes): When rebuilding a function pointer
25579 type use the same qualifiers as the original pointer type.
25581 2010-03-19 Martin Jambor <mjambor@suse.cz>
25583 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
25584 and is_gimple_ip_invariant_address.
25586 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25589 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25591 * config/arm/arm.c (arm_override_options): Turn off
25592 flag_dwarf2_cfi_asm for AAPCS variants.
25594 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25597 * config/arm/arm.c (emit_multi_reg_push): Update comments.
25598 Use PRE_MODIFY instead of PRE_DEC.
25599 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
25600 (vfp_emit_fstmd): Likewise.
25602 2010-03-19 Michael Matz <matz@suse.de>
25605 * builtins.c (expand_builtin_interclass_mathfn,
25606 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
25609 2010-03-19 Richard Guenther <rguenther@suse.de>
25611 PR tree-optimization/43415
25612 * tree-ssa-pre.c (phi_translate): Split out worker to ...
25613 (phi_translate_1): ... this.
25614 (phi_translate): Move all caching here. Cache all NARY
25615 and REFERENCE translations.
25617 2010-03-19 David S. Miller <davem@davemloft.net>
25619 With help from Eric Botcazou.
25620 * config/sparc/sparc.c: Include dwarf2out.h.
25621 (emit_pic_helper): Delete.
25622 (pic_helper_symbol_name): Delete.
25623 (pic_helper_emitted_p): Delete.
25624 (pic_helper_needed): New.
25625 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
25626 (get_pc_thunk_name): New.
25627 (load_pic_register): Remove 'delay_pic_helper' arg. Use
25628 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
25629 Set pic_helper_needed to true. Don't call emit_pic_helper.
25630 (sparc_expand_prologue): Update load_pic_register call.
25631 (sparc_output_mi_thunk): Likewise.
25632 (sparc_file_end): Emit a hidden comdat symbol for the PIC
25633 thunk if possible. Output CFI information as needed.
25635 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
25636 Jack Howarth <howarth@bromo.med.uc.edu>
25639 * config/i386/i386.h: Fix ABI on darwin x86-32.
25641 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
25643 * tree.h: Declare make_decl_rtl_for_debug.
25644 * varasm.c (make_decl_rtl_for_debug): New.
25645 * dwarf2out.c (rtl_for_decl_location): Call it.
25646 * cfgexpand.c (expand_debug_expr): Call it.
25648 2010-03-18 Jakub Jelinek <jakub@redhat.com>
25651 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
25655 * var-tracking.c (vt_init_cfa_base): Do nothing if
25656 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
25658 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
25661 * var-tracking.c (canonicalize_vars_star): New.
25662 (dataflow_post_merge_adjust): Use it.
25664 2010-03-18 Jakub Jelinek <jakub@redhat.com>
25667 * var-tracking.c (non_suitable_const): New function.
25668 (add_uses): For DEBUG_INSNs with constants, don't record any
25669 value, instead just the constant value itself.
25670 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
25671 is not VAR_LOC_UNKNOWN_P, set var to the constant.
25672 (emit_notes_in_bb): Likewise.
25673 (emit_note_insn_var_location): For onepart variables if
25674 cur_loc is a VOIDmode constant, use DECL_MODE.
25676 2010-03-18 Martin Jambor <mjambor@suse.cz>
25678 PR middle-end/42450
25679 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
25680 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
25681 all non-clones. Moved call redirection...
25682 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
25683 (cgraph_materialize_all_clones): Dispose of all
25684 combined_args_to_skip bitmaps.
25685 (verify_cgraph_node): Do not check for edges pointing to wrong
25686 nodes in inline clones.
25687 * tree-inline.c (copy_bb): Call
25688 cgraph_redirect_edge_call_stmt_to_callee.
25689 * ipa.c (cgraph_remove_unreachable_nodes): Call
25690 cgraph_node_remove_callees even when there are used clones.
25692 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
25694 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
25696 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
25699 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
25702 2010-03-18 Michael Matz <matz@suse.de>
25704 PR middle-end/43419
25705 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
25706 into sqrt(x) if we need to preserve signed zeros.
25708 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
25709 Eric Botcazou <ebotcazou@adacore.com>
25711 PR rtl-optimization/43360
25712 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
25713 note if we don't know its invariant status.
25715 2010-03-18 Michael Matz <matz@suse.de>
25717 PR tree-optimization/43402
25718 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
25719 PHI chains of ssa names registered for update.
25721 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
25724 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
25725 non-offsettable and pre_modify update addressing.
25726 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
25727 and "2" alternatives "#".
25728 (*movdd_softfloat32): Make all alternatives "#";
25729 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
25730 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
25731 (*movdf_softfloat32): Make all alternatives "#";
25732 (movdi): Use the new DIFD mode iterator to create a common splitter
25733 for movdi, movdf and movdd patterns.
25735 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
25737 * common.opt (dumpdir): Remove redundant tab.
25739 2010-03-17 Martin Jambor <mjambor@suse.cz>
25741 PR tree-optimization/43347
25742 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
25743 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
25745 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
25747 PR rtl-optimization/42216
25748 * regrename.c (create_new_chain): New function, broken out from...
25749 (scan_rtx_reg): ... here. Call it. Handle the case where we are
25750 appending a use to an empty chain.
25751 (build_def_use): Remove previous changes that convert OP_INOUT to
25752 OP_OUT operands; instead detect the case where an OP_INOUT operand
25753 uses a previously untracked register and create an empty chain for it.
25755 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25757 * doc/extend.texi (Function Attributes): Rewrite unfinished
25758 sentence in ms_abi documentation.
25760 2010-03-17 Alan Modra <amodra@gmail.com>
25762 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
25763 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
25764 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
25765 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
25767 2010-03-16 Richard Henderson <rth@redhat.com>
25769 PR middle-end/43365
25770 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
25771 (lower_try_finally): Save and restore eh_seq around the expansion
25772 of the try-finally.
25774 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
25776 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
25777 statements before splitting block.
25779 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25781 * doc/sourcebuild.texi (Testsuites): Fix markup.
25782 Use pathnames relative to gcc/testsuite.
25783 (Test Directives): Move description of how timeout is determined.
25784 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
25785 (C Tests): Correct gcc.misc-tests directory.
25786 Framework tests now live in gcc.test-framework.
25788 2010-03-16 Richard Guenther <rguenther@suse.de>
25790 PR middle-end/43379
25791 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
25792 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
25794 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
25795 Alexandre Oliva <aoliva@redhat.com>
25797 PR tree-optimization/42917
25798 * lambda-code.c (remove_iv): Skip debug statements.
25799 (lambda_loopnest_to_gcc_loopnest): Likewise.
25800 (not_interesting_stmt): Debug statements are not interesting.
25802 2010-03-16 Jakub Jelinek <jakub@redhat.com>
25806 * cselib.c (cselib_preserve_constants,
25807 cfa_base_preserved_val): New static variables.
25808 (preserve_only_constants): New function.
25809 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
25810 clear its REG_VALUES. If cselib_preserve_constants, don't
25811 empty the whole hash table, but preserve there VALUEs with constants,
25812 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
25813 (cselib_preserve_cfa_base_value): New function.
25814 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
25815 (cselib_init): Change argument to int bitfield. Set
25816 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
25818 (cselib_finish): Clear cselib_preserve_constants and
25819 cfa_base_preserved_val.
25820 * cselib.h (enum cselib_record_what): New enum.
25821 (cselib_init): Change argument to int.
25822 (cselib_preserve_cfa_base_value): New prototype.
25823 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
25824 * dse.c (dse_step1): Likewise.
25825 * cfgcleanup.c (thread_jump): Likewise.
25826 * sched-deps.c (sched_analyze): Likewise.
25827 * gcse.c (local_cprop_pass): Likewise.
25828 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
25829 If FN is non-NULL, call the callback always and whenever it returns
25830 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
25831 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
25832 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
25833 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
25834 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
25835 * var-tracking.c: Include recog.h.
25836 (bb_stack_adjust_offset): Remove.
25837 (vt_stack_adjustments): Don't call it, instead just gather the
25838 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
25839 (adjust_stack_reference): Remove.
25840 (compute_cfa_pointer): New function.
25841 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
25842 (struct adjust_mem_data): New type.
25843 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
25845 (get_address_mode): New function.
25846 (replace_expr_with_values): Use it.
25847 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
25848 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
25849 (adjust_sets): Remove.
25850 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
25851 Use get_address_mode.
25852 (get_adjusted_src): Remove.
25853 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
25854 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
25855 (add_with_sets): Don't call adjust_sets.
25856 (fp_setter, vt_init_cfa_base): New functions.
25857 (vt_initialize): Change return type to bool. Move most of pool etc.
25858 initialization to the beginning of the function from end. Pass
25859 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
25860 If !frame_pointer_needed, call vt_stack_adjustment before mos
25861 vector is filled, call vt_init_cfa_base if argp/framep has been
25862 eliminated to sp. If frame_pointer_needed and argp/framep has
25863 been eliminated to hard frame pointer, set
25864 hard_frame_pointer_adjustment and call vt_init_cfa_base after
25865 encountering fp setter in the prologue. For MO_ADJUST, call
25866 log_op_type before pusing the op into mos vector, not afterwards.
25867 Call adjust_insn before cselib_process_insn/add_with_sets,
25868 call cancel_changes (0) afterwards.
25869 (variable_tracking_main_1): Adjust for vt_initialize calling
25870 vt_stack_adjustments and returning whether it succeeded or not.
25872 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
25874 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
25877 2010-03-15 Jakub Jelinek <jakub@redhat.com>
25879 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
25881 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
25882 drap_reg has not been set.
25884 2010-03-15 Michael Matz <matz@suse.de>
25886 PR middle-end/43300
25887 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
25888 use it to expand block copies.
25889 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
25890 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
25891 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
25893 2010-03-15 Richard Guenther <rguenther@suse.de>
25895 PR tree-optimization/43367
25896 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
25899 2010-03-15 Richard Guenther <rguenther@suse.de>
25901 PR tree-optimization/43317
25902 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
25904 2010-03-15 Martin Jambor <mjambor@suse.cz>
25906 PR tree-optimization/43141
25907 * tree-sra.c (create_abstract_origin): New function.
25908 (modify_function): Call create_abstract_origin.
25910 2010-03-15 Chris Demetriou <cgd@google.com>
25912 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
25915 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
25917 PR middle-end/43354
25918 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
25919 call insert_out_of_ssa_copy for default definitions.
25921 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
25923 * graphite-clast-to-gimple.c (my_long_long): Defined.
25924 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
25925 * graphite-sese-to-poly.c (my_long_long): Defined.
25926 (scop_ivs_can_be_represented): Use it.
25928 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
25930 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
25931 graphite-max-bbs-per-function, and loop-block-tile-size.
25932 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
25934 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
25936 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
25938 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
25939 forward declaration.
25940 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
25941 (add_upper_bounds_from_estimated_nit): New.
25942 (build_loop_iteration_domains): Use it.
25944 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
25946 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
25948 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
25950 PR middle-end/43306
25951 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
25952 should be an INTEGER_CST. Also handle CASE_CONVERT.
25954 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
25956 * graphite.c (graphite_initialize): To bound the number of bbs per
25957 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
25958 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
25959 * doc/invoke.texi: Document it.
25961 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
25963 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
25964 * graphite-sese-to-poly.h (build_poly_scop): Same.
25966 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
25968 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
25969 the number of parameters in the scop. Use as an upper bound
25970 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
25971 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
25972 * doc/invoke.texi: Document it.
25974 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
25976 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
25977 * doc/c-tree.texi: Remove.
25978 * doc/generic.texi: Merge c-tree.texi here.
25979 * doc/gccint.texi (Trees): Remove menu entry.
25980 (c-tree.texi): Remove @include.
25981 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
25982 * doc/languages.texi (Reading RTL): Ditto.
25984 2010-03-12 Steve Ellcey <sje@cup.hp.com>
25987 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
25989 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
25991 PR middle-end/42431
25992 * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
25993 code added to work around reload clobbering CONST insns.
25995 2010-03-12 Jakub Jelinek <jakub@redhat.com>
25997 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
25998 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
25999 (cselib_preserve_only_values): Remove retain argument, don't
26000 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
26001 * cselib.h (cselib_preserve_only_values): Remove retain argument.
26002 * var-tracking.c (micro_operation): Move insn field before union.
26003 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
26004 (struct variable_tracking_info_def): Remove n_mos field, change
26005 mos into a vector of micro_operations.
26006 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
26007 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
26008 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
26009 changing into a vector.
26010 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
26011 come before all other uops generated by add_stores.
26012 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
26014 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
26015 a vector. Run just one pass over the bbs instead of separate counting
26016 and computation phase.
26017 (vt_finalize): Free VTI (bb)->mos vector instead of array.
26020 * tree-inline.c (remap_decls): Put old_var rather than origin_var
26021 into *nonlocalized_list vector.
26022 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
26023 even if origin is non-NULL.
26024 (gen_variable_die): Likewise.
26025 (process_scope_var): Don't change origin.
26026 (gen_decl_die): Likewise.
26027 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
26028 before adding new edges instead of after it, fix moving over
26031 2010-03-11 David S. Miller <davem@davemloft.net>
26033 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
26035 * configure: Rebuild.
26037 2010-03-11 Martin Jambor <mjambor@suse.cz>
26039 PR tree-optimization/43257
26040 * tree.c (assign_assembler_name_if_neeeded): New function.
26041 (free_lang_data_in_cgraph): Assembler name assignment moved to the
26042 above new function.
26043 * tree.h (assign_assembler_name_if_neeeded): Declare.
26044 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
26045 the function if needed.
26047 2010-03-11 Chris Demetriou <cgd@google.com>
26049 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
26050 include/stdint-gcc.h, and include/stdint.h world-readable.
26052 2010-03-11 Richard Guenther <rguenther@suse.de>
26054 PR tree-optimization/43255
26055 * tree-vrp.c (process_assert_insertions_for): Do not insert
26056 asserts for trivial conditions.
26058 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26060 PR tree-optimization/43280
26061 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
26062 generation. Move calculation of size out of the if branch.
26063 (find_bswap): Modify compare number generation.
26065 2010-03-11 Richard Guenther <rguenther@suse.de>
26068 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
26069 (input_gimple_stmt): Fixup handled component types during
26070 operand read. Also fix up decls in ADDR_EXPRs.
26072 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
26074 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
26075 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
26077 2010-03-10 Jan Hubicka <jh@suse.cz>
26080 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
26081 * varasm.c (get_variable_section): Don't do that here...
26082 (make_decl_rtl): ... and here.
26083 (do_assemble_alias): Produce decl RTL.
26084 (assemble_alias): Likewise.
26086 2010-03-10 Jakub Jelinek <jakub@redhat.com>
26089 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
26090 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
26092 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
26093 (based_loc_descr): Only express drap or vdrap regno based expressions
26094 using DW_OP_fbreg when not optimizing.
26095 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
26096 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
26097 REG_CFA_SET_VDRAP note.
26099 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
26101 PR tree-optimization/43236
26102 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
26103 error in calculation of base address in reverse iteration case.
26104 (generate_builtin): Take number of latch executions if the statement
26107 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
26109 PR middle-end/42859
26110 * tree-eh.c: Include pointer-set.h.
26111 (lower_eh_dispatch): Filter out duplicate case labels and
26112 remove the unneeded edge when the label is unused. Return
26113 true when some edges are removed.
26114 (execute_lower_eh_dispatch): When any lowering resulted in
26115 removing an edge, also delete unreachable blocks.
26117 2010-03-10 Jakub Jelinek <jakub@redhat.com>
26120 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
26121 UNSPEC_MACHOPIC_OFFSET.
26123 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
26126 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
26127 (m68k_delegitimize_address): New function.
26129 2010-03-09 Jakub Jelinek <jakub@redhat.com>
26132 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
26135 * var-tracking.c (adjust_sets): New function.
26136 (count_with_sets, add_with_sets): Use it.
26137 (get_adjusted_src): New inline function.
26138 (add_stores): Use it.
26141 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
26142 call cselib_dummy_expand_value_rtx_cb instead of
26143 cselib_expand_value_rtx_cb.
26146 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
26147 * config/i386/i386.c: Include debug.h and dwarf2out.h.
26148 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
26149 and .cfi_endproc around the pic thunks.
26150 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
26151 all queued unwind info register saves are saved before the call.
26152 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
26153 considered as sp-=4 for unwind info and the pop as sp+=4 which
26154 also clobbers dest, but doesn't actually restore it.
26157 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
26158 RTX_FRAME_RELATED_P.
26160 2010-03-09 Jie Zhang <jie@codesourcery.com>
26162 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
26163 whitespaces in output template.
26165 2010-03-09 Jie Zhang <jie@codesourcery.com>
26167 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
26168 out array boundary.
26170 2010-03-08 Jakub Jelinek <jakub@redhat.com>
26172 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
26173 builtins.exp in a separate job.
26175 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
26177 * graphite-sese-to-poly.c (add_param_constraints): Use
26178 lower_bound_in_type and upper_bound_in_type.
26180 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
26182 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
26183 instead of unsigned_type_node.
26185 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
26186 Reza Yazdani <reza.yazdani@amd.com>
26188 PR middle-end/43065
26189 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
26190 on pointer type parameters.
26192 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
26194 PR middle-end/42644
26195 PR middle-end/42130
26196 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
26197 handle conversions from pointer to integers.
26198 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
26199 induction variable, to be able to work with code generated by CLooG.
26200 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
26201 (build_poly_scop): Bail out if we cannot codegen a loop.
26203 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
26205 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
26206 code generation with gloog_error.
26208 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
26210 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
26211 Call fold_convert on all the returned values.
26212 (expand_scalar_variables_expr): Pass to
26213 expand_scalar_variables_ssa_name the type of the resulting expression.
26215 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
26217 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
26218 ppl_min_for_le_pointset.
26219 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
26220 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
26222 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
26224 * graphite-dependences.c (map_into_dep_poly): Removed.
26225 (dependence_polyhedron_1): Use combine_context_id_scat.
26227 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
26229 * graphite-poly.h (struct poly_scattering): Add layout documentation.
26230 (struct poly_bb): Same.
26231 (combine_context_id_scat): New.
26233 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
26235 PR middle-end/42326
26236 * sese.c (name_defined_in_loop_p): Return false for default
26239 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
26241 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
26242 and clean up the logic.
26244 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
26246 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
26249 2010-03-08 Jakub Jelinek <jakub@redhat.com>
26251 * var-tracking.c (remove_cselib_value_chains): Define only for
26253 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
26254 delete_slot_part, emit_notes_for_differences_1): Don't call
26255 remove_cselib_value_chains here.
26256 (set_slot_part, emit_notes_for_differences_2): Don't call
26257 add_cselib_value_chains here.
26258 (preserved_values): New vector.
26259 (preserve_value): New function.
26260 (add_uses, add_stores, vt_add_function_parameters): Use it
26261 instead of cselib_preserve_value.
26262 (changed_values_stack): New vector.
26263 (check_changed_vars_0): New function.
26264 (check_changed_vars_1, check_changed_vars_2): Use it.
26265 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
26266 changed_values_stack VALUEs.
26267 (vt_emit_notes): For all preserved_values call
26268 add_cselib_value_chains. If ENABLE_CHECKING call
26269 remove_cselib_value_chains before verifying value_chains is empty.
26270 Initialize and free changed_values_stack.
26271 (vt_initialize): Initialize preserved_values.
26272 (vt_finalize): Free preserved_values.
26274 2010-03-08 Richard Guenther <rguenther@suse.de>
26276 PR tree-optimization/43269
26277 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
26280 2010-03-08 Martin Jambor <mjambor@suse.cz>
26282 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
26283 (ipa_is_param_called): Removed.
26284 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
26285 (ipa_print_node_params): Do not print the called flag.
26286 (ipa_write_node_info): Do not stream the called flag.
26287 (ipa_read_node_info): Likewise.
26289 2010-03-07 Jakub Jelinek <jakub@redhat.com>
26292 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
26293 * cselib.c (struct expand_value_data): Add dummy field.
26294 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
26296 (cselib_dummy_expand_value_rtx_cb): New function.
26297 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
26299 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
26300 * var-tracking.c: Include pointer-set.h.
26301 (variable): Change n_var_parts to char from int. Add
26302 cur_loc_changed and in_changed_variables fields.
26303 (variable_canonicalize): Remove.
26304 (shared_var_p): New inline function.
26305 (unshare_variable): Maintain cur_loc_changed and
26306 in_changed_variables fields. If var was in changed_variables,
26307 replace it there with new_var. Just copy cur_loc instead of
26308 resetting it to something else.
26309 (variable_union): Don't recompute cur_loc. Use shared_var_p.
26310 (dataflow_set_union): Don't call variable_canonicalize.
26311 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
26312 of their DEBUG_EXPR_TREE_DECLs.
26313 (canonicalize_loc_order_check): Verify that cur_loc is NULL
26314 and in_changed_variables and cur_loc_changed is false.
26315 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
26316 and cur_loc_changed. Don't update cur_loc here.
26317 (variable_merge_over_src): Don't call variable_canonicalize.
26318 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
26319 removing loc that is equal to cur_loc, clear cur_loc,
26320 set cur_loc_changed and ensure variable_was_changed is called.
26321 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
26322 compare pointers in cur_loc check, if it is equal to loc,
26323 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
26324 (variable_different_p): Remove compare_current_location argument,
26325 don't compare cur_loc.
26326 (dataflow_set_different_1): Adjust variable_different_p caller.
26327 (variable_was_changed): If dv had some var in changed_variables
26328 already, reset in_changed_variables flag for it and propagate
26329 cur_loc_changed over to the new variable. On empty var
26330 always set cur_loc_changed. Set in_changed_variables on whatever
26331 var is added to changed_variables.
26332 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
26333 Use shared_var_p. When removing loc that is equal to cur_loc,
26334 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
26335 end, don't set it to something else, just call variable_was_changed.
26336 (delete_slot_part): Use shared_var_p. When cur_loc equals to
26337 loc being removed, clear cur_loc and set cur_loc_changed.
26338 Set cur_loc_changed if all locations have been removed.
26339 (struct expand_loc_callback_data): New type.
26340 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
26341 allocated. Always create SUBREGs if simplify_subreg failed.
26342 Prefer to use cur_loc, when that fails and still in
26343 changed_variables (and seen first time) recompute it. Set
26344 cur_loc_changed of variables which had to change cur_loc and
26345 compute elcd->cur_loc_changed if any of the subexpressions used
26346 had to change cur_loc.
26347 (vt_expand_loc): Adjust to pass arguments in
26348 expand_loc_callback_data structure.
26349 (vt_expand_loc_dummy): New function.
26350 (emitted_notes): New variable.
26351 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
26352 that weren't used for any other decl in current
26353 emit_notes_for_changes call call vt_expand_loc_dummy to update
26354 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
26355 first loc_chain location if NULL before. Always use just
26356 cur_loc instead of first loc_chain location. When cur_loc_changed
26357 is false, when not --enable-checking=rtl just don't emit any note.
26358 When rtl checking, compute the note and assert it is the same
26359 as previous note. Clear cur_loc_changed and in_changed_variables
26360 at the end before removing from changed_variables.
26361 (check_changed_vars_3): New function.
26362 (emit_notes_for_changes): Traverse changed_vars to call
26363 check_changed_vars_3 on each changed var.
26364 (emit_notes_for_differences_1): Clear cur_loc_changed and
26365 in_changed_variables. Recompute cur_loc of new_var.
26366 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
26367 (vt_emit_notes): Initialize and destroy emitted_notes.
26369 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
26371 PR rtl-optimization/42220
26372 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
26373 Use verify_reg_tracked to determine if we should use OP_OUT rather
26375 (build_def_use): If we see an in-out operand for a register that we
26376 know nothing about, treat is an output if possible, fail the block if
26379 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
26382 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
26385 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
26388 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
26389 uses of relevant DEFs that are dead outside the loop too.
26391 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
26393 * var-tracking.c (dataflow_set_merge): Swap src and src2.
26395 2010-01-13 Jakub Jelinek <jakub@redhat.com>
26397 * var-tracking.c (values_to_unmark): New variable.
26398 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
26399 values_to_unmark vector. Moved body to...
26400 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
26401 instead queue it into values_to_unmark vector.
26402 (vt_find_locations): Free values_to_unmark vector.
26404 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
26406 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
26407 (site.exp): Export them when plugins are enabled.
26409 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
26411 PR middle-end/42326
26412 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
26413 that contain scevs.
26414 (chrec_fold_multiply): Same.
26416 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
26419 * c-decl.c (build_compound_literal): Return early if init is
26420 an error_mark_node.
26422 2010-03-04 Martin Jambor <mjambor@suse.cz>
26424 PR tree-optimization/43164
26425 PR tree-optimization/43191
26426 * tree-sra.c (type_consists_of_records_p): Reject records with
26427 zero-size bit-fields at the end.
26429 2010-03-04 Mike Stump <mikestump@comcast.net>
26431 * Makefile.in (TAGS): Remove *.y.
26433 2010-03-04 Richard Guenther <rguenther@suse.de>
26435 PR tree-optimization/40761
26436 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
26438 (my_rev_post_order_compute): New function.
26439 (init_pre): Call it.
26441 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
26443 PR middle-end/43209
26444 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
26445 decrease the cost of an IV candidate when the cost is infinite.
26447 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26449 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
26450 Use '3DNow!' for the extension of that name, ensure normal space
26452 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
26454 2010-03-03 Jeff Law <law@redhat.com>
26456 * PR middle-end/32693
26457 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
26458 than gen_rtx_SUBREG.
26459 (extract_bit_field_1): Likewise.
26461 2010-03-03 Janis Johnson <janis187@us.ibm.com>
26463 * doc/sourcebuild.texi (Test directives): Document that arguments
26464 include-opts and exclude-opts are now optional for dg-skip-if,
26465 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
26467 2010-03-03 Jason Merrill <jason@redhat.com>
26470 * cgraph.h (varpool_node): Add extra_name field.
26471 * varpool.c (varpool_extra_name_alias): New.
26472 (varpool_assemble_decl): Emit extra name aliases.
26473 (varpool_mark_needed_node): Look past an extra name alias.
26474 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
26475 * lto-streamer-in.c (lto_input_tree): Read it.
26476 * lto-streamer-out.c (output_unreferenced_globals): Write it.
26478 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
26480 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
26481 (sparc*-*-solaris2*): ...this.
26483 2010-03-03 Jakub Jelinek <jakub@redhat.com>
26486 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
26487 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
26488 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
26489 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
26492 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
26493 fallthrough to default handling, just with want_address 0 instead of 2.
26494 For single element lists, add_AT_loc directly, otherwise create an
26495 artificial variable DIE and stick location list to it.
26498 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
26499 (VAL_EXPR_HAS_REVERSE): Define.
26500 (reverse_op): New function.
26501 (add_stores): For reversible operations add an extra MO_VAL_USE.
26503 2010-03-02 Jason Merrill <jason@redhat.com>
26505 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
26507 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
26509 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
26510 (sparc64-*-linux*): Likewise.
26511 (sparc64-*-solaris2*): Include assembler files before linker ones.
26512 (sparc-*-solaris2*): Simplify and reorder to match previous case.
26513 * config/sparc/gas.h: Delete.
26514 * config/sparc/sol2-64.h: Add copyright notice.
26515 * config/sparc/sol2-gas-bi.h: Likewise.
26516 * config/sparc/sol2-gld.h: Likewise.
26517 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
26518 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
26519 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
26520 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
26521 (sparc_elf_asm_named_section): Rename into...
26522 (sparc_solaris_elf_asm_named_section): ...this. Always define.
26524 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
26526 * config/alpha/alpha.c (override_options): Fix -mtune error message.
26528 2010-03-02 Jeff Law <law@redhat.com>
26530 PR middle-end/42431
26531 * reload1.c (rtx_p, substitute_stack): Declare.
26532 (substitute): Record addresses of changed rtxs.
26533 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
26534 Restore the original rtx when complete.
26535 (reload): Free subsitute_stack when complete.
26537 2010-03-02 Janis Johnson <janis187@us.ibm.com>
26539 * doc/gccint.texi (menu): Add Testsuites as a chapter.
26540 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
26542 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
26543 LTO Testing, gcov Testing, profopt Testing, compat Testing,
26544 Torture Tests): Change from subsection to section.
26546 2010-03-02 Jakub Jelinek <jakub@redhat.com>
26547 Steven Bosscher <steven@gcc.gnu.org>
26549 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
26552 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
26554 PR middle-end/42640
26555 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
26556 the assignment from the new induction variable to the assignment
26557 of the value from the original loop PHI function.
26559 2010-03-01 Janis Johnson <janis187@us.ibm.com>
26560 Daniel Jacobowitz <dan@codesourcery.com>
26562 * doc/sourcebuild.texi (Test directives): Clarify options to
26565 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26567 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
26568 Disable cfi directives unless GCC and gas agree on using read-only
26569 .eh_frame sections for 64-bit.
26570 * configure: Regenerate.
26572 2010-03-01 Richard Guenther <rguenther@suse.de>
26574 PR tree-optimization/43220
26575 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
26576 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
26578 2010-03-01 Richard Guenther <rguenther@suse.de>
26579 Martin Jambor <mjambor@suse.cz>
26581 PR middle-end/41250
26582 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
26583 gimplified parameters.
26585 2010-03-01 Christian Bruel <christian.bruel@st.com>
26587 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
26589 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
26591 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
26593 2010-03-01 Richard Guenther <rguenther@suse.de>
26595 PR middle-end/43213
26596 * expr.c (expand_assignment): Use the alias-oracle to tell
26597 if the rhs aliases the result decl.
26599 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26602 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
26603 to sol_gt_pch_get_address.
26604 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
26605 64-bit, SPARC and x86.
26606 (sol_gt_pch_get_address): New function.
26608 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
26610 * toplev.h (inform_n, error_n): Declare.
26611 * diagnostic.c (inform_n, error_n): New function.
26613 2010-03-01 Jakub Jelinek <jakub@redhat.com>
26615 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
26616 has no rtl yet when processing local_decls, queue it and recheck
26617 if deferred stack allocation hasn't assigned it rtl.
26619 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
26621 * config/sh/sh.c (unspec_bbr_uid): New.
26622 (gen_block_redirect): Use it instead of INSN_UID.
26623 (gen_far_branch): Likewise.
26625 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
26627 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
26628 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
26630 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26632 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
26633 (Warning Options): -Wno-conversion-null is valid for
26634 Objective-C++ as well.
26635 * doc/tm.texi (Named Address Spaces): Likewise.
26636 * doc/plugins.texi (Plugins): Replace TABs with spaces.
26637 * doc/tree-ssa.texi (Tree SSA): Likewise.
26639 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
26642 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
26643 by default. Don't set the default arch for
26644 i[34567]86-*-darwin*|x86_64-*-darwin*.
26646 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
26649 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
26650 default. Set the default 32bit/64bit archs with $with_arch
26651 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
26653 2010-02-27 Richard Guenther <rguenther@suse.de>
26655 PR tree-optimization/43186
26656 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
26657 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
26658 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
26659 unroller iterations.
26661 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
26663 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
26664 required and i[34567]86-*-* targets don't support 64bit ISA.
26666 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
26669 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
26670 the same alias set.
26672 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
26674 * config.gcc: Set the default arch at least to Prescott for
26675 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
26676 if SSE math is enabled.
26678 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
26680 * diagnostic.c (diagnostic_initialize): Update.
26681 (diagnostic_report_diagnostic): Test inhibit_notes_p for
26683 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
26684 (diagnostic_inhibit_notes): New.
26685 * toplev.c (process_options): inhibit notes with -fcompare-debug.
26687 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
26690 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
26691 * doc/standards.texi: Likewise.
26692 * doc/extend.texi: Likewise.
26693 * doc/trouble.texi: Likewise.
26694 * doc/cppopts.texi: Likewise.
26695 * doc/install.texi: Likewise.
26696 * c.opt (std=c90,std=gnu90): New options.
26697 * c-opts.c (c_common_handle_option): Handle them.
26699 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
26702 * c-decl.c (undeclared_variable): Use an informative note.
26704 2010-02-26 Richard Guenther <rguenther@suse.de>
26706 PR tree-optimization/43186
26707 * gimple.h (gimple_fold): Remove.
26708 * gimple.c (gimple_fold): Remove. Inline into single user ...
26709 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
26710 Try harder for conditions.
26712 2010-02-26 Jakub Jelinek <jakub@redhat.com>
26715 * function.c (used_types_insert): Don't skip through named pointer
26716 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
26717 and it is different from the main variant's type.
26719 2010-02-26 Nick Clifton <nickc@redhat.com>
26721 * config/rx/rx.md (sminsi3): Remove bogus alternative.
26723 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
26725 * config.gcc: Support --with-fpmath=sse for x86.
26727 * config/i386/ssemath.h: New.
26729 * doc/install.texi (--with-fpmath=sse): Documented.
26731 2010-02-26 Richard Guenther <rguenther@suse.de>
26733 PR tree-optimization/43188
26734 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
26735 vector types of over-aligned element type.
26737 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
26740 * config/i386/i386.c (expand_vec_perm_blend): Use correct
26741 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
26743 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
26745 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
26747 2010-02-26 Jakub Jelinek <jakub@redhat.com>
26749 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
26750 * var-tracking.c: Include diagnostic.h.
26751 (debug_dv): New function.
26752 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
26755 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
26756 (add_value_chain, add_value_chains, remove_value_chain,
26757 remove_value_chains): Handle DEBUG_EXPRs.
26758 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
26761 * regcprop.c (struct queued_debug_insn_change): New type.
26762 (struct value_data_entry): Add debug_insn_changes field.
26763 (struct value_data): Add n_debug_insn_changes field.
26764 (debug_insn_changes_pool): New variable.
26765 (free_debug_insn_changes, apply_debug_insn_changes,
26766 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
26767 (kill_value_one_regno): Call free_debug_insn_changes if needed.
26768 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
26770 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
26772 (copyprop_hardreg_forward_1): Don't call apply_change_group for
26773 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
26774 changes, call cprop_find_used_regs via note_stores.
26775 (copyprop_hardreg_forward): When copying vd from predecessor
26776 which has any queued DEBUG_INSN changes, make sure the pointers are
26777 cleared. At the end call df_analyze and then if there are any
26778 DEBUG_INSN changes queued at the end of some basic block for still
26779 live registers, apply them.
26780 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
26782 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
26784 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
26787 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
26789 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
26790 targets. Set the default with_cpu/with_arch from arch/cpu.
26791 Allow x86-64 and native for with_cpu/with_arch.
26793 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
26795 * ebitmap.c: Change calls to verify_popcount with calls to
26796 sbitmap_verify_popcount.
26797 (ebitmap_clear_bit): Fixed map->cacheindex test and
26798 map>cache update when bit clearing results in an empty
26801 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
26804 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
26805 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
26806 and support both V2DF and V2DI modes.
26807 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
26808 support both V2DF and V2DI modes.
26809 (general): Delete trailing whitespace from a few patterns.
26811 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
26812 V2DF/V2DI interleave high/low builtins.
26814 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
26817 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
26818 interleave high/low functions.
26820 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
26822 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
26823 #pragma extern_prefix.
26825 2010-02-25 Jakub Jelinek <jakub@redhat.com>
26828 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
26829 BLKmode, assert op0 is a MEM and just adjust its mode.
26832 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
26833 if bitpos isn't multiple of mode's bitsize.
26835 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
26837 * c.opt (-ftemplate-depth=): New.
26838 (-ftemplate-depth-): Deprecate.
26839 * optc-gen.awk: Handle -ftemplate-depth=.
26840 * opth-gen.awk: Likewise.
26841 * c-opts.c (c_common_handle_option): Likewise.
26842 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
26844 2010-02-24 Jason Merrill <jason@redhat.com>
26846 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
26848 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26850 * cfg.c (alloc_aux_for_block): Remove inline.
26851 (alloc_aux_for_edge): Likewise.
26853 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26855 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
26857 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26859 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
26860 * config/i386/sol2-gas.h: New file.
26861 * config.gcc (i[34567]86-*-solaris2*): Use it.
26863 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
26866 * c-typeck.c (ep_convert_and_check): New.
26867 (build_conditional_expr): Use it.
26868 (build_binary_op): Likewise.
26870 2010-02-24 Jakub Jelinek <jakub@redhat.com>
26872 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
26875 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
26876 bounds even for -O+.
26877 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
26878 expr needs to have DECL_NAME set.
26880 2010-02-24 Nick Clifton <nickc@redhat.com>
26882 * config/mep/mep.c: Include gimple.h.
26883 (mep_function_uses_sp): Delete unused function.
26884 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
26885 parameters. Use unsigned integers to count args. Return a
26886 NULL_RTX instead of an error_mark_node. Toidy up formatting.
26888 2010-02-23 Jakub Jelinek <jakub@redhat.com>
26891 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
26892 greater or equal to nelt instead of 2 * nelt.
26893 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
26896 2010-02-23 Jason Merrill <jason@redhat.com>
26899 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
26900 in cfun->local_decls even if they have register types.
26903 * stor-layout.c (place_field): Don't warn about unnecessary
26904 DECL_PACKED if the type is packed.
26906 2010-02-23 Jakub Jelinek <jakub@redhat.com>
26909 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
26910 GOTOFF relocs, even when the base reg isn't pic pointer.
26912 2010-02-23 Michael Matz <matz@suse.de>
26915 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
26916 (expand_gimple_basic_block): Generate and use debug temps if there
26917 are debug uses left after the last real use of TERed ssa names.
26918 Unlink debug immediate uses when they are expanded.
26920 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
26923 * config/i386/i386.c (override_options): Reorganise to provide
26924 better error messages.
26926 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
26928 PR middle-end/43083
26929 * graphite-scop-detection.c (create_single_exit_edge): Move
26930 the call to find_single_exit_edge to....
26931 (create_sese_edges): ...here. Don't handle multiple edges
26932 exiting the function.
26933 (build_graphite_scops): Don't handle multiple edges
26934 exiting the function.
26936 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
26938 PR middle-end/43097
26939 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
26940 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
26942 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
26944 PR middle-end/43026
26945 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
26947 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
26950 * c-typeck.c (convert_arguments): Print declaration location.
26951 * c-common.c (validate_nargs): Rename as
26952 builtin_function_validate_nargs.
26953 (check_builtin_function_arguments): Update.
26955 2010-02-22 Richard Guenther <rguenther@suse.de>
26958 * tree-inline.c (declare_return_variable): Use the type of
26959 the call stmt lhs if available.
26961 2010-02-22 Duncan Sands <baldrick@free.fr>
26963 * passes.c (register_pass): Always consider all pass lists when
26964 ref_pass_instance_number is zero.
26966 2010-02-22 Richard Guenther <rguenther@suse.de>
26968 PR tree-optimization/42749
26969 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
26970 parameter. Do arithmetic in the original type.
26971 (update_accumulator_with_ops): Likewise.
26972 (adjust_accumulator_values): Adjust.
26974 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26976 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
26977 (QI to BLKmode splitter): New splitter.
26979 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
26981 * config/i386/i386.c (initial_ix86_tune_features): Turn on
26982 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
26984 2010-02-22 Richard Guenther <rguenther@suse.de>
26986 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
26988 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
26990 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
26991 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
26992 ($(T)crti.o, $(T)crtn.o): Remove rules.
26994 2010-02-21 Tobias Burnus <burnus@net-b.de>
26997 * doc/invoke.texi (-fassociative-math): Document that this
26998 option is automatically enabled for Fortran.
27000 2010-02-20 David S. Miller <davem@davemloft.net>
27002 * configure.ac: Test if linker and assembler properly support
27003 GOTDATA_OP relocations.
27004 * configure: Rebuild.
27005 * config.in: Likewise.
27006 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
27007 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
27008 (movsi_high_pic): Likewise.
27009 (movdi_lo_sum_pic): Likewise.
27010 (movdi_high_pic): Likewise.
27011 (movsi_pic_gotdata_op): New pattern.
27012 (movdi_pic_gotdata_op): Likewise.
27013 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
27014 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
27016 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
27019 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
27020 attribute to ssemul.
27021 (xop_mulv2div2di3_high): Ditto.
27023 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
27026 * c.opt (Wconversion-null): New option.
27027 * doc/invoke.texi (Wconversion-null): Document.
27029 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
27031 * common.opt (Wlarger-than-): Add Undocumented.
27033 2010-02-19 Mike Stump <mikestump@comcast.net>
27035 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
27037 2010-02-19 Jason Merrill <jason@redhat.com>
27040 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
27041 * configure: Likewise.
27043 2010-02-20 Alan Modra <amodra@gmail.com>
27045 PR middle-end/42344
27046 * cgraph.h (cgraph_make_decl_local): Declare.
27047 * cgraph.c (cgraph_make_decl_local): New function.
27048 (cgraph_make_node_local): Use it.
27049 * cgraphunit.c (cgraph_function_versioning): Likewise.
27050 * ipa.c (function_and_variable_visibility): Likewise.
27052 2010-02-19 Jakub Jelinek <jakub@redhat.com>
27055 * except.c (sjlj_emit_function_enter): Don't call
27056 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
27058 * rtl.h (add_reg_br_prob_note): Remove prototype.
27060 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
27063 * c-common.c (conversion_warning): Remove widening conversions
27064 before checking the conversion of integers to reals.
27066 2010-02-19 Mike Stump <mikestump@comcast.net>
27068 PR middle-end/43125
27069 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
27072 * cgraphunit.c (process_function_and_variable_attributes): Check
27073 DECL_PRESERVE_P instead of looking up attribute "used".
27074 * ipa-pure-const.c (check_decl): Likewise.
27075 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
27076 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
27077 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
27078 instead of attribute "used".
27079 * config/sol2-c.c (solaris_pragma_init): Likewise.
27080 (solaris_pragma_fini): Likewise.
27082 2010-02-19 Jakub Jelinek <jakub@redhat.com>
27084 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
27085 Use XCNEW instead of xcalloc.
27086 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
27087 XNEW instead of xmalloc.
27088 (get_fields): Use XNEWVEC instead of xmalloc.
27091 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
27092 populate vars array.
27093 (create_new_general_access): For debug stmts just reset value.
27094 (get_stmt_accesses): For accesses within debug stmts just record them
27095 using add_access_to_acc_sites instead of preventing the peeling or
27096 counting them as accesses.
27098 PR middle-end/42233
27099 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
27101 2010-02-19 Richard Guenther <rguenther@suse.de>
27103 PR tree-optimization/42916
27104 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
27107 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
27109 * configure.ac: Replace all uses of changequote in macro arguments
27110 with proper quoting.
27112 2010-02-19 Jakub Jelinek <jakub@redhat.com>
27114 PR middle-end/42233
27115 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
27117 2010-02-19 Richard Guenther <rguenther@suse.de>
27119 PR tree-optimization/42944
27120 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
27121 test for aliasing with errno.
27123 2010-02-19 Jakub Jelinek <jakub@redhat.com>
27125 PR middle-end/42233
27126 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
27127 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
27128 * dojump.c: Include output.h.
27129 (inv): New inline function.
27130 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
27131 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
27132 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
27133 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
27134 argument, pass it down to other calls.
27135 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
27136 add REG_BR_PROB note to the conditional jump.
27137 * cfgexpand.c (add_reg_br_prob_note): Removed.
27138 (expand_gimple_cond): Don't call it, add the probability
27139 as last argument to jumpif_1/jumpifnot_1.
27140 * Makefile.in (dojump.o): Depend on output.h.
27141 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
27143 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
27144 * stmt.c (do_jump_if_equal): Likewise.
27145 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
27146 * loop-unswitch.c (compare_and_jump_seq): Likewise.
27147 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
27149 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
27150 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
27151 jumpifnot_1 callers.
27152 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
27154 (store_expr): Adjust jumpifnot caller.
27155 (store_constructor): Adjust jumpif caller.
27157 PR middle-end/42233
27158 * gimplify.c (gimple_boolify): For __builtin_expect call
27159 gimple_boolify also on its first argument.
27161 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
27163 * configure.ac (gnu-unique-object): Wrap regexps using [] in
27165 (__stack_chk_fail): Ditto. Remove quadrigraphs.
27166 * configure: Regenerated.
27168 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27170 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
27171 lang_hooks.types_compatible_p instead of comptypes.
27173 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
27175 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
27176 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
27177 if __prefer_thumb__ is defined.
27179 2010-02-18 Martin Jambor <mjambor@suse.cz>
27181 PR tree-optimization/43066
27182 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
27183 array with zero-sized element type.
27185 2010-02-18 Jakub Jelinek <jakub@redhat.com>
27187 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
27188 rtx, allocate struct var_loc_node here and return it to the
27189 caller, and only if it is actually needed.
27190 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
27191 move it earlier and return immediately if it returns NULL.
27193 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
27195 * config/sparc/gas.h: New file. Restore
27196 TARGET_ASM_NAMED_SECTION to its ELF default.
27197 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
27198 check !HAVE_GNU_AS.
27199 * config/sparc/sparc.c (sparc_elf_asm_named_section):
27200 Likewise. Add ATTRIBUTE_UNUSED to prototype.
27201 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
27202 after sparc/sysv4.h.
27204 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
27206 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
27208 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
27210 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
27211 patterns from predicated pattern.
27213 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
27216 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
27217 for insn mnemonic suffix.
27219 2010-02-17 Richard Guenther <rguenther@suse.de>
27221 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
27224 2010-02-17 Jakub Jelinek <jakub@redhat.com>
27227 * caller-save.c (save_call_clobbered_regs): If BB ends with
27228 a DEBUG_INSN, move any notes in between last real insn and the last
27229 DEBUG_INSN after the last DEBUG_INSN.
27231 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
27233 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
27234 Fix return type. Fix argument type. Explain meaning of return value.
27236 2010-02-16 Richard Guenther <rguenther@suse.de>
27238 PR tree-optimization/41043
27239 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
27240 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
27242 (vrp_visit_phi_node): ... but only for loop PHI nodes.
27244 2010-02-16 Ira Rosen <irar@il.ibm.com>
27246 PR tree-optimization/43074
27247 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
27248 * tree-vect-loop.c (vect_analyze_loop_operations): Add
27249 vectorizable cycles in hybrid SLP check.
27250 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
27252 2010-02-16 Richard Guenther <rguenther@suse.de>
27254 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
27255 (true_dependence): If memrefs_conflict_p computes must-alias
27256 trust it. Move TBAA check after offset-based disambiguation.
27257 (canon_true_dependence): Likewise.
27259 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
27261 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
27262 * doc/invoke.texi: Document it.
27263 * var-tracking.c: Include toplev.h and params.h.
27264 (vt_find_locations): Return bool indicating success. Compute
27265 hash sizes unconditionally. Check new parameter, report.
27266 (variable_tracking_main_1): Check vt_find_locations results and
27267 retry. Renamed from...
27268 (variable_tracking_main): ... this. New wrapper to preserve
27269 flag_var_tracking_assignments.
27270 * Makefile.in (var-tracking.o): Adjust dependencies.
27272 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
27273 Jakub Jelinek <jakub@redhat.com>
27276 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
27277 if weak_import attribute is present.
27278 * config/darwin.c (machopic_select_section): Likewise.
27280 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
27282 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
27283 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
27284 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
27285 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
27287 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
27290 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
27291 Fix argument types.
27293 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
27294 Rewrite text to refer to the names.
27296 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
27298 * config/i386/i386-builtin-types.def
27299 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
27300 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
27301 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
27302 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
27303 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
27304 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
27305 IX86_BUILTIN_VPERMIL2PS256.
27306 (MULTI_ARG_4_DF2_DI_I): Defined.
27307 (MULTI_ARG_4_DF2_DI_I1): Defined.
27308 (MULTI_ARG_4_SF2_SI_I): Defined.
27309 (MULTI_ARG_4_SF2_SI_I1): Defined.
27310 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
27311 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
27312 __builtin_ia32_vpermil2ps256.
27313 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
27314 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
27315 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
27316 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
27317 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
27318 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
27319 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
27320 CODE_FOR_xop_vpermil2v8sf3.
27321 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
27322 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
27323 * config/i386/xopintrin.h (_mm_permute2_pd): New.
27324 (_mm256_permute2_pd): New.
27325 (_mm_permute2_ps): New.
27326 (_mm256_permute2_ps): New.
27328 2010-02-15 Nick Clifton <nickc@redhat.com>
27330 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
27331 boolean parameters. Use emit_jump_insn when emitting a pop
27332 instruction containing a return insn.
27333 (push): Use 'true' rather than '1' as second parameter to F.
27334 (h8300_expand_prologue): Likewise.
27335 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
27336 (h8300_expand_epilogue): Likewise.
27338 2010-02-15 Richard Guenther <rguenther@suse.de>
27340 PR middle-end/43068
27341 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
27344 2010-02-15 Nick Clifton <nickc@redhat.com>
27346 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
27349 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
27351 * intl.c (fake_ngettext): New function.
27352 * intl.h (fake_ngettext): Declare.
27353 (ngettext): Define macro.
27354 * collect2.c (notice_translated): New function.
27355 (main): Use notice_translated and ngettext.
27356 * collect2.h (notice_translated): Declare.
27358 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
27360 * reorg.c (delete_computation): Comment fixes.
27361 * caller-save.c (setup_save_areas): Idem.
27362 * sel-sched-dump.c (dump_lv_set): Idem.
27365 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27367 * config/s390/s390.c (s390_sched_init): New function.
27368 (TARGET_SCHED_INIT): Target hook defined.
27370 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
27371 Jack Howarth <howarth@bromo.med.uc.edu>
27372 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
27375 Partial revert of unintended change in fix for PR41605.
27376 * config/darwin.h: Fix typo.
27377 * config/darwin9.h: Same.
27379 2010-02-11 Jakub Jelinek <jakub@redhat.com>
27381 * c-pch.c (pch_init): Clear v.
27383 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
27385 PR middle-end/42930
27386 * graphite-scop-detection.c (graphite_can_represent_scev): Call
27387 graphite_can_represent_init for MULT_EXPR.
27389 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
27391 PR middle-end/42914
27392 PR middle-end/42530
27393 * graphite-sese-to-poly.c (remove_phi): New.
27394 (translate_scalar_reduction_to_array): Call remove_phi.
27396 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
27398 PR middle-end/42771
27399 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
27400 * graphite-clast-to-gimple.h (gloog): Update declaration.
27401 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
27402 * graphite-poly.h (struct poly_bb): Add missing comments.
27403 (struct scop): Add poly_scop_p field.
27404 (POLY_SCOP_P): New.
27405 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
27406 * graphite.c (graphite_transform_loops): Build the polyhedral
27407 representation for each scop before code generation.
27408 * sese.c (rename_variables_in_operand): Removed.
27409 (rename_variables_in_expr): Return the renamed expression.
27410 (rename_sese_parameters): New.
27411 * sese.h (rename_sese_parameters): Declared.
27413 2010-02-11 Richard Guenther <rguenther@suse.de>
27415 PR tree-optimization/42998
27416 * tree-ssa-pre.c (create_expression_by_pieces): Treat
27417 POINTER_PLUS_EXPR properly.
27419 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
27420 Changpeng Fang <changpeng.fang@amd.com>
27422 PR middle-end/40886
27423 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
27424 the cost of an IV candidate when the IV is used in a test against zero.
27426 * gcc.dg/tree-ssa/ivopts-3.c: New.
27428 2010-02-11 Richard Guenther <rguenther@suse.de>
27431 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
27432 pointer-vs-decl case by swapping refs. Handle some cases
27433 of pointer-vs-decl disambiguations more conservatively.
27434 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
27435 to false after expanding.
27437 2010-02-11 Richard Guenther <rguenther@suse.de>
27440 * gcc.c (process_command): Handle LTO file@offset case more
27443 2010-02-11 Jakub Jelinek <jakub@redhat.com>
27445 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
27446 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
27448 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
27450 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
27451 if MEM's mode size isn't DWARF2_ADDR_SIZE.
27452 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
27453 Optimize eq/ne comparisons when both arguments are known to be
27455 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
27456 Don't mask operands unnecessarily if they are known to be already
27459 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
27461 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
27464 2010-02-10 Richard Guenther <rguenther@suse.de>
27466 PR tree-optimization/43017
27467 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
27468 for wrapping signed arithmetic.
27470 2010-02-10 Jakub Jelinek <jakub@redhat.com>
27473 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
27474 if no debug info should be emitted for it.
27476 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
27478 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
27479 note when flag_exceptions is set.
27481 2010-02-10 Duncan Sands <baldrick@free.fr>
27483 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
27485 2010-02-10 Richard Guenther <rguenther@suse.de>
27488 * tree.c (get_unwidened): Handle constants.
27489 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
27491 2010-02-10 Martin Jambor <mjambor@suse.cz>
27494 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
27495 check for variable argument counts independently.
27497 2010-02-10 Christian Bruel <christian.bruel@st.com>
27500 * config/sh/sh.c (find_barrier): Increase length for non delayed
27501 conditional branches.
27503 2010-02-10 Christian Bruel <christian.bruel@st.com>
27505 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
27507 2010-02-10 Jakub Jelinek <jakub@redhat.com>
27509 * builtins.c (set_builtin_user_assembler_name): Also handle
27510 ffs if int is smaller than word.
27512 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
27514 PR middle-end/42973
27515 * ira-conflicts.c (get_dup): Remove.
27516 (process_reg_shuffles): Add new parameter. Use it as an
27517 additional guard for copy generation.
27518 (add_insn_allocno_copies): Rewrite.
27520 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
27522 * common.opt (fsched2-use-traces): Preserved for backward
27524 * doc/invoke.texi: Remove the documentation about option
27525 -fsched2-use-traces.
27526 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
27527 flag_sched2_use_traces.
27528 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
27529 the backward compatibility flag section.
27531 2010-02-09 Richard Guenther <rguenther@suse.de>
27533 PR tree-optimization/43008
27534 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
27535 make HEAP variables initialized from global memory if they
27536 are not known builtin functions.
27537 (find_func_aliases): Adjust.
27539 2010-02-09 Richard Guenther <rguenther@suse.de>
27541 PR tree-optimization/43000
27542 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
27543 arithmetic manually.
27545 2010-02-08 Jakub Jelinek <jakub@redhat.com>
27547 PR tree-optimization/42931
27548 * tree-loop-linear.c (try_interchange_loops): Don't call
27549 double_int_mul if estimated_loop_iterations failed.
27551 2010-02-08 Martin Jambor <mjambor@suse.cz>
27553 PR middle-end/42898
27554 * tree-sra.c (build_accesses_from_assign): Do not mark in
27555 should_scalarize_away_bitmap if stmt has volatile ops.
27556 (sra_modify_assign): Do not process assigns piecemeal if if stmt
27559 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
27561 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
27563 2010-02-07 Adam Nemet <adambnmet@gmail.com>
27565 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
27566 before the pattern.
27568 2010-02-07 Andrew Pinski <pinskia@gmail.com>
27570 PR middle-end/42946
27571 * df-core.c (df_finish_pass): Change type of saved_flags to int.
27573 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
27575 PR middle-end/42988
27576 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
27577 to unknown_dependence.
27578 (graphite_legal_transform_dr): Handle the unknown_dependence.
27579 (graphite_carried_dependence_level_k): Same.
27581 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
27583 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
27585 2010-02-07 Richard Guenther <rguenther@suse.de>
27587 PR middle-end/42991
27588 * expr.c (get_inner_reference): Always initialize *pbitsize.
27590 2010-02-07 Richard Guenther <rguenther@suse.de>
27592 PR middle-end/42956
27593 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
27594 new ARRAY_REFs on variable size element or minimal index arrays.
27596 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
27597 gimple_fold_indirect_ref.
27599 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
27602 * arm.c (arm_override_options): Just return if the user has specified
27603 an invalid fpu name.
27605 2010-02-03 Jason Merrill <jason@redhat.com>
27608 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
27609 i386_pe_maybe_record_exported_symbol.
27611 2010-02-05 Steve Ellcey <sje@cup.hp.com>
27614 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
27615 (pa_delegitimize_address): New function.
27617 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
27619 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
27620 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
27622 2010-02-05 Richard Guenther <rguenther@suse.de>
27625 * lto-streamer-in.c (get_resolution): Deal with references
27626 to undefined functions.
27628 2010-02-05 Richard Guenther <rguenther@suse.de>
27630 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
27631 (fold_const_aggregate_ref): Likewise.
27632 (ccp_fold_stmt): Substitute loads.
27633 (maybe_fold_reference): Verify types before substituting.
27635 (fold_gimple_assign): Unshare properly.
27636 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
27638 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
27640 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
27641 for rs6000_gen_cell_microcode.
27643 2010-02-04 Richard Guenther <rguenther@suse.de>
27645 PR rtl-optimization/42952
27646 * dse.c (const_or_frame_p): Remove MEM handling.
27648 2010-02-04 Nick Clifton <nickc@redhat.com>
27650 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
27651 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
27652 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
27653 (mn10300_asm_output_mi_thunk): New function.
27654 (mn10300_can_output_mu_thunk): New function.
27655 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
27656 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
27657 (FUNCTION_ARG): Delete incorrect comment.
27659 2010-02-03 Jason Merrill <jason@redhat.com>
27662 * fold-const.c (operand_equal_p): Handle erroneous types.
27664 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
27666 * config/h8300/h8300.md (can_delay): Fix attibute condition.
27668 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
27670 PR rtl-optimization/42941
27671 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
27674 2010-02-03 Jason Merrill <jason@redhat.com>
27677 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
27679 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
27682 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
27683 (cselib_reset_table): Renamed from...
27684 (cselib_reset_table_with_next_value): ... this.
27685 (cselib_get_next_uid): Renamed from...
27686 (cselib_get_next_unknown_value): ... this.
27687 * cselib.c (next_uid): Renamed from...
27688 (next_unknown_value): ... this.
27689 (cselib_clear_table): Adjust.
27690 (cselib_reset_table): Adjust. Renamed from...
27691 (cselib_reset_table_with_next_value): ... this.
27692 (cselib_get_next_uid): Adjust. Renamed from...
27693 (cselib_get_next_unknown_value): ... this.
27694 (get_value_hash): Use hash.
27695 (cselib_hash_rtx): Likewise.
27696 (new_cselib_val): Adjust. Set and dump uid.
27697 (cselib_lookup_mem): Pass next_uid as hash.
27698 (cselib_subst_to_values): Likewise.
27699 (cselib_log_lookup): Dump uid.
27700 (cselib_lookup): Pass next_uid as hash. Adjust.
27701 (cselib_process_insn): Adjust.
27702 (cselib_init): Initialize next_uid.
27703 (cselib_finish): Adjust.
27704 (dump_cselib_table): Likewise.
27705 * dse.c (canon_address): Dump value uid.
27706 * print-rtl.c (print_rtx): Print value uid.
27707 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
27709 (dv_uid): New function, sort of renamed from...
27710 (dv_htab_hash): ... this, reimplemented in terms of it and...
27711 (dv_uid2hash): ... this. New.
27712 (variable_htab_eq): Drop excess assertions.
27713 (tie_break_pointers): Removed.
27714 (canon_value_cmp): Compare uids.
27715 (variable_post_merge_New_vals): Print uids.
27716 (vt_add_function_parameters): Adjust.
27717 (vt_initialize): Reset table. Adjust.
27719 2010-02-03 Richard Guenther <rguenther@suse.de>
27721 PR tree-optimization/42944
27722 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
27723 (call_may_clobber_ref_p_1): Likewise. Properly handle
27724 malloc and calloc clobbering errno.
27726 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
27728 * doc/invoke.texi: Fix name of sched1 dump.
27730 * opts.c (decode_options): Set flag_tree_switch_conversion
27731 only conditionally on optimize >= 2.
27733 * gcse.c: Assorted comment fixes in pass description.
27735 2010-02-03 Anthony Green <green@moxielogic.com>
27737 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
27738 nop padding in order to maintain alignment of storage location of
27739 target function address.
27740 (moxie_trampoline_init): Store target function address at newly
27742 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
27744 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
27746 2010-02-03 Richard Guenther <rguenther@suse.de>
27748 PR middle-end/42927
27749 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
27751 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27753 * config.gcc: Reenable check for obsolete targets.
27754 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
27755 mips-sgi-irix6.[0-4]*.
27757 2010-02-02 Nick Clifton <nickc@redhat.com>
27759 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
27760 constant size of 4 as being the same as 0.
27761 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
27762 can take values in the range 0..4.
27764 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
27767 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
27768 as _darwin10_Unwind_FindEnclosingFunction().
27769 * libgcc-libsystem.ver: New.
27771 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
27774 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
27775 implicitly set registers.
27777 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
27779 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
27780 (arm_override_options): Allow automatic selection of the thread
27781 pointer register if thumb2.
27782 (legitimize_pic_address): Improve code sequences for Thumb2.
27783 (arm_call_tls_get_addr): Likewise.
27784 (legitimize_tls_address): Likewise.
27785 * arm.md (pic_load_addr_arm): Delete. Replace with ...
27786 (pic_load_addr_32bit): ... this. New named pattern.
27787 * thumb2.md (pic_load_addr_thumb2): Delete.
27788 (pic_load_dot_plus_four): Delete.
27789 (tls_load_dot_plus_four): New named pattern.
27791 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27794 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
27795 Document fix for TLS bug.
27797 2010-01-31 Richard Guenther <rguenther@suse.de>
27799 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
27800 conservatively correct.
27802 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27806 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27808 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
27810 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27812 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
27814 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
27816 * config.gcc: Adjust order of makefile fragments for mingw targets.
27818 2010-01-31 Richard Guenther <rguenther@suse.de>
27820 PR middle-end/42898
27821 * gimplify.c (gimplify_init_constructor): For volatile LHS
27822 initialize a temporary.
27824 2010-01-31 Matthias Klose <doko@ubuntu.com>
27826 * configure.ac: Fix __stack_chk_fail check for cross builds configured
27828 * configure: Regenerate.
27830 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
27832 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
27833 the same alias set and their sizes different constantness.
27834 (aliasing_component_refs_p): Revert 2009-10-24 change.
27836 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27838 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
27841 2010-01-29 Richard Guenther <rguenther@suse.de>
27843 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
27844 Assert we successfully updated the call.
27846 2010-01-29 Jakub Jelinek <jakub@redhat.com>
27848 PR rtl-optimization/42889
27849 * df.h (df_set_bb_dirty_nonlr): New prototype.
27850 * df-core.c (df_set_bb_dirty_nonlr): New function.
27851 * df-scan.c (df_insn_rescan): Call it instead of
27852 df_set_bb_dirty for DEBUG_INSNs.
27854 2010-01-29 Richard Guenther <rguenther@suse.de>
27856 PR middle-end/37448
27857 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
27858 quadratic behavior in most cases.
27860 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
27863 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
27864 in the call to gen_x86_movsicc_0_m1.
27866 2010-01-28 Richard Guenther <rguenther@suse.de>
27868 PR tree-optimization/42871
27869 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
27871 2010-01-28 Richard Guenther <rguenther@suse.de>
27873 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
27874 into call arguments.
27876 2010-01-28 Richard Guenther <rguenther@suse.de>
27878 PR middle-end/42883
27879 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
27880 the forwarder if the destination is an EH landing pad.
27882 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
27884 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
27885 block list passed to gimple_duplicate_sese_tail.
27886 (parallelize_loops): Avoid parallelization when the function
27887 has_nonlocal_label.
27888 Avoid parallelization when the preheader is IRREDUCIBLE.
27889 Try to optimize when estimated_loop_iterations_int is unresolved.
27890 Add the loop's location to the dump file.
27891 * tree-cfg.c (add_phi_args_after_redirect): Remove.
27892 (gimple_duplicate_sese_tail): Remove the check for the latch.
27893 Redirect nexits to the exit block.
27894 Remove handling of the incoming edges to the latch.
27895 Redirect the backedge from the copied latch to the exit bb.
27897 2010-01-28 Michael Matz <matz@suse.de>
27900 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
27901 Wrap force_reg into a sequence, emit it before user.
27903 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
27905 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
27907 (arm_legacy_rev): Likewise.
27908 (thumb_legacy_rev): Likewise.
27910 2010-01-27 Jakub Jelinek <jakub@redhat.com>
27912 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
27913 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
27914 on MEM's address failed, try avoid_constant_pool_reference and
27915 recurse if it returned something different.
27916 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
27917 address, try avoid_constant_pool_reference and recurse if it
27918 returned something different.
27919 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
27920 address and avoid_constant_pool_reference returned something
27921 different, don't set have_address.
27923 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
27926 * var-tracking.c (val_store): Add modified argument, obey it.
27928 (count_uses): Move down logging of main.
27929 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
27930 don't need resolution.
27931 (emit_notes_in_bb): Likewise.
27933 2010-01-27 Richard Guenther <rguenther@suse.de>
27935 PR middle-end/42878
27936 * tree-inline.c (remap_decl): Delay remapping of SSA name
27937 default definitions until we need them.
27939 2010-01-27 Jakub Jelinek <jakub@redhat.com>
27941 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
27942 (rs6000_delegitimize_address): New function.
27944 * config/s390/s390.c (s390_delegitimize_address): Call
27945 delegitimize_mem_from_attrs.
27947 PR middle-end/42874
27948 * tree-inline.c (cannot_copy_type_1): Removed.
27949 (copy_forbidden): Don't forbid copying of functions containing
27950 records/unions with variable length fields.
27952 2010-01-27 Christian Bruel <christian.bruel@st.com>
27956 * config/sh/sh.c (find_barrier): Increase length for non delayed
27957 conditional branches.
27959 2010-01-27 Matthias Klose <doko@ubuntu.com>
27961 * configure.ac (gnu-unique-object): Fix ldd version check.
27962 * configure: Regenerate.
27964 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27966 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
27968 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
27969 Test for HAVE_GNU_AS value.
27971 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27973 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
27974 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
27975 INT64_TYPE): Define.
27976 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
27977 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
27978 INT_LEAST64_TYPE): Define.
27979 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
27980 UINT_LEAST64_TYPE): Define.
27981 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
27982 INT_FAST64_TYPE): Define.
27983 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
27984 UINT_FAST64_TYPE): Define.
27985 (INTMAX_TYPE, UINTMAX_TYPE): Define.
27986 (INTPTR_TYPE, UINTPTR_TYPE): Define.
27987 (SIG_ATOMIC_TYPE): Define.
27989 2010-01-26 Richard Guenther <rguenther@suse.de>
27991 * df-scan.c (df_scan_set_bb_info): Remove assert.
27992 (df_insn_rescan_debug_internal): Merge asserts.
27993 (df_install_ref): Likewise.
27994 (df_mark_reg): Use bitmap_set_range.
27995 (df_hard_reg_used_p): Remove assert.
27996 (df_hard_reg_used_count): Likewise.
27998 2010-01-26 Richard Guenther <rguenther@suse.de>
28000 PR rtl-optimization/42685
28001 * web.c (web_main): Ignore DEBUG_INSNs.
28003 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
28005 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
28007 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
28008 Fix types of fndecl and arglist parameters.
28010 2010-01-26 Richard Guenther <rguenther@suse.de>
28012 PR middle-end/42806
28013 * tree-eh.c (unsplit_eh): Skip debug insns.
28015 2010-01-26 Richard Guenther <rguenther@suse.de>
28017 PR tree-optimization/42250
28018 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
28020 2010-01-26 Jakub Jelinek <jakub@redhat.com>
28023 * omp-low.c (expand_omp_sections): Only use single_pred if
28024 l2_bb is single_pred_p.
28026 2010-01-25 Christian Bruel <christian.bruel@st.com>
28029 * config/sh/sh.c (find_barrier): Increase length for non delayed
28030 conditional branches.
28031 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
28033 2010-01-24 David S. Miller <davem@davemloft.net>
28035 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
28036 define if not using GAS.
28037 * config/sparc/sparc.c (sparc_elf_asm_named_section):
28038 Likewise. Delete SECTION_MERGE code, which is only applicable
28041 2010-01-24 Mark Mitchell <mark@codesourcery.com>
28044 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
28045 mangling of va_list in system headers.
28047 2010-01-23 Toon Moene <toon@moene.org>
28049 * tree-predcom.c (combine_chains): Return NULL, not false.
28051 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
28053 * tree-loop-distribution.c (distribute_loop): Fix declaration and
28054 initialization of variable res to agree with return type.
28056 2010-01-22 Steve Ellcey <sje@cup.hp.com>
28058 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
28059 * tree-sra.c: Add include of expr.h.
28061 2010-01-22 Jakub Jelinek <jakub@redhat.com>
28063 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
28064 insert the debug stmt on the single non-EH edge from the stmt.
28066 2010-01-22 Richard Henderson <rth@redhat.com>
28069 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
28070 the RHS until after generate_subtree_copies has insertted its
28071 code before the current statement.
28073 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
28075 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
28077 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
28079 2010-01-21 Martin Jambor <mjambor@suse.cz>
28081 PR tree-optimization/42585
28082 * tree-sra.c (struct access): New field grp_total_scalarization.
28083 (dump_access): Dump the new field.
28084 (should_scalarize_away_bitmap): New variable.
28085 (cannot_scalarize_away_bitmap): Likewise.
28086 (sra_initialize): Allocate new bitmaps.
28087 (sra_deinitialize): Free new bitmaps.
28088 (create_access_1): New function.
28089 (create_access): Parts moved to create_access_1.
28090 (type_consists_of_records_p): New function.
28091 (completely_scalarize_record): Likewise.
28092 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
28093 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
28094 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
28096 (analyze_all_variable_accesses): Completely scalarize small eligible
28099 2010-01-21 Martin Jambor <mjambor@suse.cz>
28101 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
28103 2010-01-21 Andrew Haley <aph@redhat.com>
28105 * gcc.c (process_command): Move lang_specific_driver before
28106 setting cc_libexec_prefix.
28108 2010-01-21 Richard Guenther <rguenther@suse.de>
28110 PR middle-end/19988
28111 * fold-const.c (negate_expr_p): Pretend only negative
28112 real constants are easily negatable.
28114 2010-01-20 Janis Johnson <janis187@us.ibm.com>
28115 Jason Merrill <jason@redhat.com>
28117 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
28118 (TYPE_TRANSPARENT_AGGR): this, for union and record.
28119 * calls.c (initialize argument_information): Handle it.
28120 * c-common.c (handle_transparent_union_attribute): Use new name.
28121 * c-decl.c (finish_struct): Ditto.
28122 * c-typeck.c (type_lists_compatible_p): Ditto.
28123 (convert_for_assignment): Use new name and also handle record.
28124 * function.c (aggregate_value_p): Handle it.
28125 (pass_by_reference): Ditto.
28126 (assign_parm_data_types): Ditto.
28127 * print-tree.c (print_node): Ditto.
28128 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
28129 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
28130 * tree.c (first_field): New fn.
28132 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
28135 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
28136 even when linking statically, for now.
28138 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
28141 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
28142 without a cselib val.
28143 (count_uses): Accept MO_VAL_SET with no val on stores.
28144 (add_stores): Likewise.
28146 2010-01-20 Jakub Jelinek <jakub@redhat.com>
28148 * var-tracking.c (check_value_val): Add a compile time assertion.
28149 (dv_is_decl_p): Simplify.
28150 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
28151 gcc_assert if ENABLE_CHECKING.
28153 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
28156 * var-tracking.c: Include tree-flow.h.
28157 (mem_dies_at_call): New.
28158 (dataflow_set_preserve_mem_locs): Use it.
28159 (dataflow_set_remove_mem_locs): Likewise.
28160 (dump_var): Renamed from dump_variable. Adjust all callers.
28161 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
28162 * Makefile.in (var-tracking.o): Adjust deps.
28164 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
28166 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
28168 2010-01-20 Richard Guenther <rguenther@suse.de>
28170 PR tree-optimization/42717
28171 * tree-ssa-dce.c (get_live_post_dom): Remove.
28172 (forward_edge_to_pdom): Take an arbitrary edge to copy
28173 degenerate PHI args from.
28174 (remove_dead_stmt): Use the first post-dominator even if it
28175 does not contain live statements as redirection destination.
28177 2010-01-20 Richard Guenther <rguenther@suse.de>
28179 * tree-inline.c (estimate_num_insns): Handle EH builtins.
28181 2010-01-20 Jakub Jelinek <jakub@redhat.com>
28183 * sel-sched.c (create_speculation_check): Remove set but not used
28185 (try_transformation_cache): Remove set but not used variable ds.
28186 (calculate_privileged_insns): Remove set but not used variables
28187 cur_insn and min_spec_insn.
28188 (find_best_expr): Remove set but not used variable avail_n.
28189 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
28191 * cgraphunit.c (assemble_thunk): Remove set but not used variable
28193 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
28194 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
28195 new_scop_exit_edge.
28197 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
28200 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
28201 cpu types. Add support for *-sse3 cpu types.
28202 (x86_64-*-*): Ditto.
28204 2010-01-20 Jakub Jelinek <jakub@redhat.com>
28206 PR middle-end/42803
28207 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
28208 argument, call initializer_constant_valid_p_1 instead of
28209 initializer_constant_valid_p, pass CACHE to it, return NULL
28210 immediately if first call returns NULL.
28211 (initializer_constant_valid_p_1): New function.
28212 (initializer_constant_valid_p): Use it.
28214 2010-01-20 Thomas Quinot <quinot@adacore.com>
28216 * tree.def (PLACEHOLDER_EXPR): Fix comment.
28218 2010-01-20 Jakub Jelinek <jakub@redhat.com>
28220 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
28221 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
28222 (loc_list_from_tree): Don't handle unsigned division. Handle
28223 signed modulo using DW_OP_{over,over,div,mul,minus}.
28224 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
28225 modulo instead of signed.
28227 2010-01-20 DJ Delorie <dj@redhat.com>
28229 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
28231 (h8300_emit_stack_adjustment): Propogate it.
28233 (h8300_expand_prologue): Likewise.
28234 (h8300_expand_epilogue): Likewise.
28236 2010-01-19 Michael Matz <matz@suse.de>
28238 PR tree-optimization/41783
28239 * tree-data-ref.c (toplevel): Include flags.h.
28240 (dump_data_dependence_relation): Also dump the inputs if the
28241 result will be unknown.
28242 (split_constant_offset_1): Look through some conversions.
28243 * tree-predcom.c (determine_roots_comp): Restart a new chain if
28244 the offset from last element is too large.
28245 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
28246 (reassociate_to_the_same_stmt): Handle vector registers.
28247 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
28248 (e.g. conversions).
28249 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
28250 wide_prolog_niters argument, emit widening instructions.
28251 (vect_do_peeling_for_alignment): Adjust caller, use widened
28252 variant of the iteration cound.
28253 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
28255 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28258 * config/arm/neon-testgen.m (emit_automatics): New parameter
28259 features. Adjust for Fixed_return_reg feature.
28260 (test_intrinsic): Call emit_automatics with new feature.
28261 * config/arm/neon.ml: Update copyright years.
28262 (features): New Fixed_return_reg feature.
28263 (ops): Update feature for Vget_low.
28265 2010-01-19 Jakub Jelinek <jakub@redhat.com>
28267 PR tree-optimization/42719
28268 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
28272 * fwprop.c (all_uses_available_at): Return false if def_set dest
28273 is a REG that is used in def_insn.
28275 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
28277 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
28279 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
28280 Add argument names.
28282 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
28284 * target.h (struct gcc_target) <secondary_reload>: Change type
28285 of last argument to secondary_reload_info *.
28287 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
28290 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
28291 memory references with unaligned offsets. Remove CQImode handling.
28292 (unaligned_memory_operand): Return 1 for memory references with
28293 unaligned offsets. Remove CQImode handling.
28295 2010-01-18 Richard Guenther <rguenther@suse.de>
28297 PR middle-end/39954
28298 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
28301 2010-01-18 Richard Guenther <rguenther@suse.de>
28303 PR tree-optimization/42781
28304 * tree-ssa-structalias.c (find_what_var_points_to): Skip
28305 restrict processing only if the original variable was artificial.
28307 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
28309 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
28310 find number of popped argument bytes.
28312 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
28313 Fix the text that describes the return value for invalid insns.
28315 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
28317 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
28318 Clarify what 'cost of the -dependence' is. Fix quoting.
28320 * toplev.c (default_get_pch_validity): Rename argument to "sz".
28321 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
28323 2010-01-17 Jakub Jelinek <jakub@redhat.com>
28325 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
28326 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
28328 2010-01-17 Richard Guenther <rguenther@suse.de>
28330 PR middle-end/42248
28331 * function.c (split_complex_args): Take a VEC to modify.
28332 (assign_parms_augmented_arg_list): Build a VEC instead of
28333 a chain of PARM_DECLs.
28334 (assign_parms_unsplit_complex): Take a VEC of arguments.
28335 Do not fixup unmodified parms.
28336 (assign_parms): Deal with the VEC.
28337 (gimplify_parameters): Likewise.
28339 2010-01-17 Richard Guenther <rguenther@suse.de>
28341 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
28342 node existence check.
28343 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
28344 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
28345 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
28346 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
28347 (gimple_execute_on_growing_pred): Likewise.
28349 2010-01-17 Richard Guenther <rguenther@suse.de>
28351 PR tree-optimization/42773
28352 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
28353 (compute_antic_aux): Likewise.
28354 (compute_partial_antic_aux): Likewise.
28356 2010-01-17 Jie Zhang <jie.zhang@analog.com>
28359 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
28362 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
28364 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
28367 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
28368 Fix markup for strict argument.
28370 (TARGET_SCHED_REORDER2): Fix argument types.
28372 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
28373 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
28375 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
28376 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
28378 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
28381 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
28382 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
28383 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
28384 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
28385 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
28387 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
28389 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
28391 (TARGET_ASM_RELOC_RW_MASK): Add return type.
28392 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
28394 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
28396 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
28399 (TARGET_ASM_NAMED_SECTION): Fix argument list.
28401 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
28402 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
28404 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
28406 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
28408 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
28409 referring to it. Fix language.
28411 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
28413 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
28415 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
28417 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
28419 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
28420 '@var{stream}. Remove stray 'and'.
28422 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
28424 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
28426 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
28428 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
28429 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
28431 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
28432 Fix description of return value.
28433 Rename argument "sz" to "len."
28435 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
28436 Clarify meaning of 'true' return value.
28438 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
28440 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
28441 rep_mode versus mode_rep.
28443 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
28445 (TARGET_BUILTIN_DECL): Fix name.
28447 (TARGET_COMMUTATIVE_P): Fix type of first argument.
28449 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
28451 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
28453 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
28455 (TARGET_RELAXED_ORDERING): Use @deftypevr.
28457 (TARGET_GET_DRAP_RTX): Note that this is a hook.
28460 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
28461 Rename argument tm_fn to md_fn.
28463 (TARGET_OPTION_PRINT): Fix argument list.
28465 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
28468 * config/i386/i386.c (ix86_fixup_binary_operands):
28469 Revert FMA4 fixup of operands.
28471 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28474 * Makefile.in (write_entries_to_file, install-plugin):
28475 Use \012 instead of \n with tr.
28477 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
28479 * configure.ac (HAVE_AS_REF): New C macro.
28480 * configure: Regenerate.
28481 * config.in: Likewise.
28482 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
28484 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
28487 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
28489 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
28491 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
28493 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
28495 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
28497 (TARGET_IN_SMALL_DATA_P): Fix argument type.
28499 (TARGET_BINDS_LOCAL_P): Fix argument type.
28501 (TARGET_ASM_FILE_END): Use prototype.
28503 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
28505 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
28507 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
28509 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
28511 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
28512 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
28514 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
28515 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
28517 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
28518 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
28519 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
28520 (TARGET_ADDR_SPACE_CONVERT): Likewise.
28522 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
28524 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
28526 (TARGET_INIT_BUILTINS): Use prototype.
28528 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
28529 Put 'const char *' in braces. Fix parameter types.
28530 (TARGET_INVALID_CONVERSION): Fix parameter types.
28531 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
28532 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
28534 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
28537 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
28539 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
28541 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
28543 * doc/tm.texi (TARGET_HELP): Fix return type.
28545 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
28546 in braces. Fix argument types.
28548 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
28550 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
28552 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
28554 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
28555 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
28557 (TARGET_MANGLE_TYPE): Fix argument types.
28559 (TARGET_IRA_COVER_CLASSES): Use prototype.
28561 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
28563 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
28565 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
28567 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
28569 (TARGET_CALLEE_COPIES): Fix argument types.
28571 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
28573 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
28575 (TARGET_FUNCTION_VALUE): Fix argument types.
28577 (TARGET_RETURN_IN_MSB): Fix argument type.
28579 (TARGET_RETURN_IN_MEMORY): Fix argument types.
28581 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
28583 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
28585 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
28586 agree with return type.
28588 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
28590 2010-01-15 Jing Yu <jingyu@google.com>
28592 PR rtl-optimization/42691
28593 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
28594 a pseudo to a constant and are merged, and adjust comments.
28596 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
28598 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
28600 2010-01-15 Richard Guenther <rguenther@suse.de>
28602 PR middle-end/42739
28603 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
28604 labels of computed or non-local gotos to the destination.
28605 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
28606 landing pad label is the first label.
28608 2010-01-15 Richard Guenther <rguenther@suse.de>
28610 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
28612 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
28615 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
28616 to allow generation of the xssqrtdp instruction on power7.
28617 (sqrtdf2_fpr): Ditto.
28619 2010-01-14 Jakub Jelinek <jakub@redhat.com>
28621 PR middle-end/42674
28622 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
28623 functions with noreturn attribute.
28626 * varasm.c (declare_weak): Add weak attribute to decl if it
28627 doesn't have one already.
28628 (assemble_external): Only add decls to weak_decls if they also
28629 have weak attribute.
28631 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
28633 * var-tracking.c (var_reg_delete): Don't delete the association
28634 between REGs and values or one-part variables if the register
28637 2010-01-14 Jakub Jelinek <jakub@redhat.com>
28640 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
28641 because its first operand is a non-localized variable.
28643 2010-01-14 Martin Jambor <mjambor@suse.cz>
28645 PR tree-optimization/42706
28646 * tree-sra.c (encountered_recursive_call): New variable.
28647 (encountered_unchangable_recursive_call): Likewise.
28648 (sra_initialize): Initialize both new variables.
28649 (callsite_has_enough_arguments_p): New function.
28650 (scan_function): Call decl and flags check only for IPA-SRA, check
28651 whether there is a recursive call and whether it has enough arguments.
28652 (all_callers_have_enough_arguments_p): New function.
28653 (convert_callers): Look for recursive calls only when
28654 encountered_recursive_call is set.
28655 (ipa_early_sra): Bail out either if
28656 !all_callers_have_enough_arguments_p or
28657 encountered_unchangable_recursive_call.
28659 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
28661 * sel-sched.c: Add 2010 to copyright years.
28662 * sel-sched-ir.c: Likewise.
28663 * sel-sched-ir.h: Likewise.
28665 2010-01-14 Martin Jambor <mjambor@suse.cz>
28667 PR tree-optimization/42714
28668 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
28669 constructors specially.
28671 2010-01-14 Andi Kleen <ak@linux.intel.com>
28673 * config/i386/drivers-i386.c (detect_caches_intel):
28674 Add l2sizekb parameter and fill in.
28675 (host_detect_local_cpu): Add l2sizekb, fill in.
28676 Add Atom small cache heuristic.
28678 2010-01-14 Andi Kleen <ak@linux.intel.com>
28680 * config/i386/drivers-i386.c (detect_caches_cpuid4):
28681 Add level3 parameter and fill in.
28682 (detect_caches_intel): Handle level3 cache.
28684 2010-01-14 Andi Kleen <ak@linux.intel.com>
28686 * config/i386/drivers-i386.c (host_detect_local_cpu):
28687 Fix core duo detection.
28689 2010-01-14 Andi Kleen <ak@linux.intel.com>
28691 * config/i386/drivers-i386.c (host_detect_local_cpu):
28692 Fix Atom detection.
28694 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
28696 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
28697 (rs6000_variable_issue_1): this. Use...
28698 (rs6000_variable_issue): here. Reimplement. Print debug info.
28700 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
28702 * sel-sched-ir.c (sel_restore_other_notes): Rename to
28703 sel_restore_notes. Update all callers. Call reemit_notes
28706 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
28708 PR rtl-optimization/42246
28709 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
28712 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
28714 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
28715 all successors is the same as number of successors in current region.
28717 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
28719 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
28720 to rename is not separable. Otherwise check that its LHS is not NULL.
28722 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
28724 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
28726 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
28728 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
28729 available registers when failed to discover LHS register class.
28730 Fix indentation. Update comment.
28732 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
28733 Alexander Monakov <amonakov@ispras.ru>
28735 PR rtl-optimization/42389
28736 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
28738 (advance_state_on_fence): Likewise.
28739 (sel_target_adjust_priority): Print debug output only when
28740 sched_verbose >= 4, not 2.
28741 (get_expr_cost): Do not issue all unique insns on the next cycle.
28742 (fill_insns): Initialize can_issue_more from the value saved
28744 * sel-sched-ir.c (flist_add): New parameter issue_more.
28745 Init FENCE_ISSUE_MORE with it.
28746 (merge_fences): Likewise.
28747 (init_fences): Update call to flist_add.
28748 (add_to_fences, add_clean_fence_to_fences)
28749 (add_dirty_fence_to_fences): Likewise.
28750 (move_fence_to_fences): Update call to merge_fences.
28751 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
28753 * sel-sched-ir.h (struct _fence): New field issue_more.
28754 (FENCE_ISSUE_MORE): New accessor macro.
28756 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
28758 PR rtl-optimization/42388
28759 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
28760 that have no predecessors nor successors. Do not call move_bb_info
28761 for empty blocks outside of current region.
28763 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
28765 PR rtl-optimization/42294
28766 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
28767 * sel-sched.c (move_exprs_to_boundary): Transitively add all
28768 originators' originators.
28770 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
28772 PR rtl-optimization/39453
28773 PR rtl-optimization/42246
28774 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
28776 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
28778 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
28779 Alexander Monakov <amonakov@ispras.ru>
28781 PR middle-end/42245
28782 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
28783 (maybe_tidy_empty_bb): ... here. Make static. Add new
28784 argument. Update all callers.
28785 (tidy_control_flow): ... and here. Recompute topological order
28786 of basic blocks in region if necessary.
28787 (sel_redirect_edge_and_branch): Change return type. Return true
28788 if topological order might have been invalidated.
28789 (purge_empty_blocks): Export and move from...
28790 * sel-sched.c (purge_empty_blocks): ... here.
28791 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
28792 (maybe_tidy_empty_bb): Delete prototype.
28793 (purge_empty_blocks): Declare.
28795 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
28797 PR rtl-optimization/42249
28798 * sel-sched.c (try_replace_dest_reg): When chosen register
28799 and original register is the same, do not bail out early, but
28800 still check all original insns for validity of replacing destination
28801 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
28804 2010-01-14 Jakub Jelinek <jakub@redhat.com>
28807 Port from no-undefined-overflow branch:
28808 2009-03-09 Richard Guenther <rguenther@suse.de>
28810 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
28812 2010-01-14 Richard Guenther <rguenther@suse.de>
28815 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
28817 2010-01-14 Ira Rosen <irar@il.ibm.com>
28819 PR tree-optimization/42709
28820 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
28821 as scalar type in creation of constant vector operand.
28823 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28826 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
28827 (check-parallel-%): Match `testsuite' directory component only
28830 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
28832 PR translation/39521
28833 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
28836 2010-01-13 Richard Guenther <rguenther@suse.de>
28838 PR tree-optimization/42730
28839 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
28842 2010-01-13 Steve Ellcey <sje@cup.hp.com>
28845 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
28846 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
28849 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
28851 * config/bfin/libgcc-bfin.ver: Regenerate based on current
28852 libgcc-std.ver. Add entries for ___smulsi3_highpart and
28853 ___umulsi3_highpart.
28855 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
28856 rather than schedule_insns if the pass is enabled.
28858 2010-01-13 Martin Jambor <mjambor@suse.cz>
28860 PR tree-optimization/42704
28861 * tree-sra.c (sra_modify_assign): Do not delete assignments to
28864 2010-01-13 Martin Jambor <mjambor@suse.cz>
28866 PR tree-optimization/42703
28867 * tree-sra.c (analyze_access_subtree): Check that we can build a
28868 reference to the original data within the aggregate.
28870 2010-01-13 Richard Guenther <rguenther@suse.de>
28872 PR tree-optimization/42705
28873 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
28875 2010-01-13 Richard Guenther <rguenther@suse.de>
28877 PR middle-end/42716
28878 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
28880 2010-01-13 Jakub Jelinek <jakub@redhat.com>
28883 * var-tracking.c (values_to_unmark): New variable.
28884 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
28885 values_to_unmark vector. Moved body to...
28886 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
28887 instead queue it into values_to_unmark vector.
28888 (vt_find_locations): Free values_to_unmark vector.
28890 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
28892 * config/s390/s390.c (override_options): Set
28893 default of max-pending-list-length to 256
28895 2010-01-13 Richard Guenther <rguenther@suse.de>
28898 * tree-pass.h (PROP_gimple_lcx): New.
28899 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
28900 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
28901 before the final cleanup_eh.
28902 (dump_properties): Dump PROP_gimple_lcx.
28903 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
28904 (tree_lower_complex_O0): Remove.
28905 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
28906 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
28907 tree_lower_complex, schedule TODO_update_ssa.
28908 * lto-streamer-out.c (output_function): Stream the functions
28910 * lto-streamer-in.c (input_function): Likewise.
28911 (lto_read_body): Do not override them here.
28913 2010-01-12 Joseph Myers <joseph@codesourcery.com>
28916 * c-typeck.c (build_c_cast): Fold value cast to union type before
28917 wrapping it in a CONSTRUCTOR.
28919 2010-01-12 Jakub Jelinek <jakub@redhat.com>
28921 PR rtl-optimization/42699
28922 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
28925 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28927 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
28928 SUBTARGET_WARN_UNUSED_SPEC): Move ...
28929 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
28930 SUBTARGET_WARN_UNUSED_SPEC): ... here
28931 * config/mips/iris5.h (LIBGCC_SPEC): Define.
28933 2010-01-12 Julian Brown <julian@codesourcery.com>
28935 * config/arm/neon-schedgen.ml (Utils): Don't try to
28936 open missing module.
28937 (find_with_result): New.
28939 2010-01-12 Jakub Jelinek <jakub@redhat.com>
28942 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
28943 sharing when canonicalizing ({lt,ge}u (plus a b) b).
28945 PR tree-optimization/42645
28946 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
28947 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
28948 decl_map, set processing_debug_stmt to -1 and return name without
28951 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
28953 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
28954 binutils version, and reword target configuration description.
28956 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
28958 * config/avr/avr.h (LINKER_NAME): Remove.
28960 2010-01-11 Janis Johnson <janis187@us.ibm.com>
28963 * config/rs6000/rs6000.c (rs6000_override_options): On targets
28964 that support VSX, warn for -mno-altivec if vsx is not disabled,
28967 2010-01-11 Joseph Myers <joseph@codesourcery.com>
28968 Shujing Zhao <pearly.zhao@oracle.com>
28970 PR translation/42469
28971 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
28972 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
28973 character between option name and help text.
28974 * c.opt (imultilib): Likewise.
28976 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
28978 * lto-streamer-out.c (output_unreferenced_globals): Output static
28981 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
28983 PR rtl-optimization/42621
28984 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
28985 optimizing for size.
28986 (duplicate_computed_gotos): Remove now-redundant check.
28988 2010-01-10 Steve Ellcey <sje@cup.hp.com>
28991 * configure.ac: Save and restore LDFLAGS and LIBS
28992 * configure: Regenerate.
28994 2010-01-10 Richard Guenther <rguenther@suse.de>
28996 PR middle-end/42667
28997 * builtins.c (fold_builtin_strlen): Add type argument and
28998 convert the resulting length to it.
28999 (fold_builtin_1): Adjust.
29001 2010-01-09 Jakub Jelinek <jakub@redhat.com>
29003 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
29004 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
29006 (num_insns_constant_wide): Adjust for that change.
29008 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
29011 * web.c (union_defs): Add used argument, to combine uses of
29012 uninitialized regs.
29013 (entry_register): Adjust type and tests of used argument.
29014 (web_main): Widen used for new use. Pass it to union_defs.
29015 * df.h (union_defs): Adjust prototype.
29017 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
29020 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
29021 uses in new incoming argument. Free body.
29022 (reset_debug_uses_in_loop): New.
29023 (analyze_insn_to_expand_var): Call the latter if the former found
29024 anything. Fix whitespace. Reject invalid dest overlaps before
29025 going through all insns in the loop.
29027 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
29030 * haifa-sched.c (dying_use_p): Debug insns don't count.
29032 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
29034 PR middle-end/42363
29035 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
29036 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
29037 (verify_gimple_call): Reject LHS in noreturn calls.
29039 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
29043 * tree-vect-loop-manip.c (adjust_info): New type.
29044 (adjust_vec): New pointer to vector.
29045 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
29046 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
29047 (slpeel_update_phis_for_duplicate_loop): Use them.
29048 (slpeel_update_phi_nodes_for_guard1): Likewise.
29049 (slpeel_update_phi_nodes_for_guard2): Likewise.
29050 (slpeel_tree_peel_loop_to_edge): Likewise.
29051 (vect_update_ivs_after_vectorizer): Likewise.
29053 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
29055 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
29056 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
29058 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
29060 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
29061 bogus uninitialized warning.
29063 2010-01-09 Richard Guenther <rguenther@suse.de>
29065 PR middle-end/42512
29066 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
29067 the evolution is compatible with the initial condition.
29069 2010-01-09 Jakub Jelinek <jakub@redhat.com>
29071 * gcc.c (process_command): Update copyright notice dates.
29072 * gcov.c (print_version): Likewise.
29073 * gcov-dump.c (print_version): Likewise.
29074 * mips-tfile.c (main): Likewise.
29075 * mips-tdump.c (main): Likewise.
29077 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
29080 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
29082 (rotlhi3_8): Delete.
29084 (rotlsi3_8): Delete.
29085 (rotlsi3_16): Delete.
29086 (rotlsi3_24): Delete.
29087 (rotl<mode>3): New.
29088 (*rotw<mode>3): New.
29089 (*rotb<mode>3): New.
29090 * config/avr/avr.c (avr_rotate_bytes): New function.
29091 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
29093 2010-01-08 Steve Ellcey <sje@cup.hp.com>
29096 * configure.ac: Modify -rdynamic check.
29097 * configure: Regenerate.
29099 2010-01-08 DJ Delorie <dj@redhat.com>
29101 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
29102 register popping order.
29104 2010-01-08 Richard Guenther <rguenther@suse.de>
29107 * c.opt (fsigned-char): Also let LTO handle this option.
29108 (funsigned-char): Likewise.
29110 2010-01-07 Richard Guenther <rguenther@suse.de>
29112 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
29113 (gimple_op): Likewise.
29114 (gimple_op_ptr): Likewise.
29115 (gimple_assign_set_lhs): Remove gcc_assert.
29116 (gimple_assign_set_rhs1): Likewise.
29117 (gimple_assign_set_rhs2): Likewise.
29118 (gimple_call_set_lhs): Likewise.
29119 (gimple_call_set_fn): Likewise.
29120 (gimple_call_set_fndecl): Likewise.
29121 (gimple_call_fndecl): Likewise.
29122 (gimple_call_return_type): Likewise.
29123 (gimple_call_set_chain): Likewise.
29124 (gimple_call_num_args): Likewise.
29125 (gimple_call_set_arg): Likewise.
29126 (gimple_cond_set_code): Likewise.
29127 (gimple_cond_set_lhs): Likewise.
29128 (gimple_cond_set_rhs): Likewise.
29129 (gimple_cond_set_true_label): Likewise.
29130 (gimple_cond_set_false_label): Likewise.
29131 (gimple_label_set_label): Likewise.
29132 (gimple_goto_set_dest): Likewise.
29133 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
29134 (gimple_debug_bind_get_value): Likewise.
29135 (gimple_debug_bind_get_value_ptr): Likewise.
29136 (gimple_debug_bind_set_var): Likewise.
29137 (gimple_debug_bind_set_value): Likewise.
29138 (gimple_debug_bind_reset_value): Likewise.
29139 (gimple_debug_bind_has_value_p): Likewise.
29140 (gimple_return_retval_ptr): Remove gcc_assert.
29141 (gimple_return_retval): Likewise.
29142 (gimple_return_set_retval): Likewise.
29143 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
29144 (safe_referenced_var_iterator): Remove.
29145 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
29146 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
29147 (fill_referenced_var_vec): Remove.
29148 (first_readonly_imm_use): Remove redundant gcc_assert.
29149 (phi_arg_index_from_use): Combine gcc_asserts.
29150 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
29151 (first_imm_use_stmt): Remove redundant gcc_assert.
29152 * tree-cfg.c (verify_gimple_call): Verify function and chain
29153 operands. Verify arguments.
29154 (verify_types_in_gimple_stmt): Verify condition code and labels.
29156 2010-01-07 Richard Guenther <rguenther@suse.de>
29158 PR tree-optimization/42641
29159 * sese.c (rename_map_elt_info): Use the SSA name version, do
29162 2010-01-07 Jakub Jelinek <jakub@redhat.com>
29164 PR tree-optimization/42625
29165 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
29166 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
29168 2010-01-07 Duncan Sands <baldrick@free.fr>
29170 * Makefile.in (PLUGIN_HEADERS): Add version.h.
29172 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
29175 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
29176 note itself is not function_invariant_p.
29178 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
29180 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
29181 Do not add the DF_NOTE problem.
29182 * store-motion.c (execute_rtl_store_motion): Likewise.
29184 2010-01-07 Martin Jambor <mjambor@suse.cz>
29186 PR tree-optimization/42157
29187 * tree-sra.c (compare_access_positions): Stabilize sort if both
29188 accesses have integer types, return zero immediately if they are the
29191 2010-01-06 Richard Henderson <rth@redhat.com>
29193 PR middle-end/41883
29194 * haifa-sched.c (add_to_note_list): Merge into ...
29195 (concat_note_lists): ... here, and ...
29196 (unlink_other_notes, rm_other_notes): Merge into...
29197 (remove_notes): ... here. Create REG_SAVE_NOTEs for
29198 NOTE_INSN_EPILOGUE_BEG.
29200 2010-01-06 Richard Guenther <rguenther@suse.de>
29202 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
29203 not inline regular functions into always-inline functions.
29205 2010-01-06 Nick Clifton <nickc@redhat.com>
29207 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
29208 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
29210 (OVERRIDE_OPTIONS): Delete.
29211 (OPTIMIZATION_OPTIONS): Define.
29212 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
29213 * config/rx/rx.c (rx_handle_option): Issue an error message if
29214 -mcpu=rx200 and -fpu are used together.
29215 (rx_set_optimization_options): New function. Issue an error
29216 message if an optimization attribute attempts to reset the FPU/
29217 math optimization pairing.
29218 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
29219 * config/rx/rx.opt: Set the default to 32-bit doubles.
29220 * config/rx/t-rx: Add multilibs for -nofpu option.
29221 * doc/invoke.texi: Update documentation of RX options.
29223 2010-01-06 Richard Guenther <rguenther@suse.de>
29225 * tree-ssa-pre.c (name_to_id): New global.
29226 (alloc_expression_id): Simplify SSA name handling.
29227 (lookup_expression_id): Likewise.
29228 (init_pre): Zero name_to_id.
29229 (fini_pre): Free it.
29231 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
29233 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
29235 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
29238 * config/i386/sse.md (smaxv2di3): New.
29239 (umaxv2di3): Likewise.
29240 (sminv2di3): Likewise.
29241 (uminv2di3): Likewise.
29243 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
29246 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
29247 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
29248 (legitimize_tls_address): Likewise.
29249 (sparc_tls_referenced_p): Likewise.
29250 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
29251 and adjust calls to legitimize_pic_address.
29252 (legitimate_constant_p) Use sparc_tls_referenced_p.
29253 (legitimate_pic_operand_p): Likewise.
29254 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
29255 (sparc_tls_symbol_ref_1): Delete.
29256 (sparc_tls_referenced_p): Make static, recognize specific patterns.
29257 (legitimize_tls_address): Make static, handle CONST patterns.
29258 (legitimize_pic_address): Make static, remove unused parameter and
29259 adjust recursive calls.
29260 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
29261 and adjust call to legitimize_pic_address.
29262 (sparc_output_mi_thunk): Likewise.
29264 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
29265 H.J. Lu <hongjiu.lu@intel.com>
29268 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
29269 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
29270 operands to make them signed.
29273 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
29276 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
29277 GTU to GT for V4SI and V2DI.
29279 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
29280 (umin<mode>3): Removed.
29282 (uminv4si3): Likewise.
29284 2010-01-05 Martin Jambor <mjambor@suse.cz>
29286 PR tree-optimization/42462
29287 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
29288 current_function_decl to helper functions and macros.
29290 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29293 * flags.h: Don't include real.h.
29294 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
29295 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
29296 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
29297 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
29298 * dominance.c: Update copyright.
29299 * gimple.c (walk_gimple_op): Remove inline.
29300 * tree-ssa-reassoc.c: Include real.h.
29301 * Makefile.in (FLAGS_H): Remove $(REAL_H).
29302 (tree-ssa-reassoc.o): Depend on $(REAL_H).
29304 2010-01-05 Nick Clifton <nickc@redhat.com>
29306 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
29307 register to push into the stack frame when the accumulator has to
29308 be saved during interrupts.
29310 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
29312 * doc/invoke.texi: Remove the documentation about option
29313 -Wunreachable-code.
29314 * common.opt (Wunreachable-code): Preserved for backward
29316 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
29317 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
29318 the backward compatibility flag section.
29320 2010-01-05 Richard Guenther <rguenther@suse.de>
29322 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
29324 2010-01-05 Jakub Jelinek <jakub@redhat.com>
29327 * cfgexpand.c (expand_one_var): Diagnose too large variables.
29329 PR tree-optimization/42508
29330 * tree-sra.c (convert_callers): Check for recursive call
29331 by comparing cgraph nodes instead of decls.
29332 (modify_function): Call ipa_modify_formal_parameters also
29333 on all same_body aliases.
29335 * cgraphunit.c (cgraph_materialize_all_clones): Compare
29336 cgraph nodes when checking for same_body aliases.
29338 2010-01-05 Richard Guenther <rguenther@suse.de>
29340 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
29341 allocation and lookup.
29342 (get_or_alloc_expr_for_constant): Likewise.
29343 (phi_translate): Sink allocation.
29345 2010-01-04 Richard Guenther <rguenther@suse.de>
29347 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
29348 a new entry only if needed.
29349 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
29350 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
29352 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
29354 (phi_translate): Handle CONSTANTs early.
29356 2010-01-04 Martin Jambor <mjambor@suse.cz>
29358 PR tree-optimization/42398
29359 * tree-sra.c (struct access): Removed flag grp_different_types.
29360 (dump_access): Do not dump the removed flag.
29361 (sort_and_splice_var_accesses): Do not set the removed flag.
29362 (sra_modify_expr): Check for type compatibility directly.
29364 2010-01-04 Martin Jambor <mjambor@suse.cz>
29366 PR tree-optimization/42366
29367 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
29368 edges with variable number of parameters.
29369 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
29370 flag instead of asserting it.
29371 (ipa_read_node_info): Read uses_analysis_done flag.
29373 2010-01-04 Richard Guenther <rguenther@suse.de>
29375 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
29376 iterative_hash_* as intended.
29377 (vn_reference_compute_hash): Likewise. Simplify hashing
29379 (vn_reference_lookup_2): Likewise.
29380 (vn_nary_op_compute_hash): Likewise.
29381 (vn_phi_compute_hash): Likewise.
29382 (expressions_equal_p): Remove strange code.
29383 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
29384 (pre_expr_hash): Likewise. Simplify hashing SSA names.
29385 (bitmap_insert_into_set_1): Take value-id as parameter.
29386 (add_to_value): Pass it.
29387 (bitmap_insert_into_set): Likewise.
29388 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
29390 2010-01-04 Jakub Jelinek <jakub@redhat.com>
29393 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
29394 (do_self_spec): For switches with SWITCH_IGNORE set set also
29395 SWITCH_IGNORE_PERMANENTLY.
29396 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
29399 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
29401 * lto-streamer-out.c (output_unreferenced_globals): Output the full
29402 tree of an unreferenced global var.
29404 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
29407 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
29408 GTU to GT for V4SI and V2DI.
29410 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
29411 (umin<mode>3): Removed.
29413 (uminv4si3): Likewise.
29415 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
29418 * collect2.c (main): Turn on trace in collect2 if -v is passed
29421 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
29423 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
29424 description of expression operand.
29426 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
29428 * configure.ac: Add install-html to target_list for Make-hooks.
29429 * configure: Regenerate.
29430 * fortran/Make-lang.in (F95_HTMLFILES): New.
29431 (fortran.html): Use it.
29432 (fortran.install-html): New.
29433 * Makefile.in (install-html): Add lang.install-html.
29434 * java/Make-lang.in (JAVA_HTMLFILES): New.
29435 (java.html): Use it.
29436 (java.install-html): New.
29437 * objc/Make-lang.in (objc.install-html): New.
29438 * objcp/Make-lang.in (obj-c++.install-html): New.
29439 * cp/Make-lang.in (c++.install-html): New.
29440 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
29441 * lto/Make-lang.in (lto.install-html): New.
29443 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
29446 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
29448 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
29450 PR rtl-optimization/41862
29451 * store-motion.c (store_killed_in_insn, compute_store_table,
29452 remove_reachable_equiv_notes, replace_store_insn,
29453 build_store_vectors): Ignore all DEBUG_INSNs.
29455 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
29458 * common.opt: Add dumpdir.
29460 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
29462 (option_map): Add --dumpdir.
29464 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
29466 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
29468 * opts.c (decode_options): Try dump_dir_name first if
29469 dump_base_name isn't an absolute path.
29470 (common_handle_option): Handle OPT_dumpdir.
29472 * toplev.c (dump_dir_name): New.
29473 (print_switch_values): Also ignore -dumpdir.
29475 * toplev.h (dump_dir_name): New.
29477 2010-01-03 Richard Guenther <rguenther@suse.de>
29479 PR tree-optimization/42589
29480 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
29481 double-word expansion of bswap32.
29483 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
29485 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
29486 with BLOCK_FOR_INSN.
29487 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
29488 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
29489 noce_process_if_block): Likewise.
29490 * gcse.c (compute_local_properties, insert_expr_in_table,
29491 insert_set_in_table, canon_list_insert, find_avail_set,
29492 pre_insert_copy_insn): Likewise.
29494 * basic-block.h (BLOCK_NUM): Move from here...
29495 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
29497 2010-01-03 Richard Guenther <rguenther@suse.de>
29499 PR tree-optimization/42438
29500 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
29501 contains_may_not_return_call flag.
29502 (BB_MAY_NOTRETURN): New.
29503 (valid_in_sets): Trapping nary operations are not valid
29504 in blocks that may not return.
29505 (insert_into_preds_of_block): Remove check for trapping expressions.
29506 (compute_avail): Compute also BB_MAY_NOTRETURN.
29508 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
29510 * doc/invoke.texi: Add 2010 to copyright years.
29512 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
29514 * config/sparc/sparc.c: Fix formatting nits.
29516 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
29517 Alexander Monakov <amonakov@ispras.ru>
29519 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
29521 2010-01-02 Richard Guenther <rguenther@suse.de>
29523 PR middle-end/42577
29524 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
29525 (simplify_switch_using_ranges): Mark to be removed edges
29528 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29530 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
29532 * collect2.c (scan_libraries): Add missing argument in call to
29535 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
29538 * config/alpha/predicates.md (aligned_memory_operand): Return false
29540 (unaligned_memory_operand): Return true for CQImode.
29541 * config/alpha/alpha.c (get_aligned_mem): Assert that location
29542 doesn not cross aligned SImode word boundary.
29544 2010-01-02 Anatoly Sokolov <aesok@post.ru>
29546 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
29548 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
29549 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
29551 2010-01-02 Richard Guenther <rguenther@suse.de>
29554 * toplev.c (compile_file): Emit LTO marker properly. Change
29555 it to __gnu_lto_v1.
29556 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
29558 2010-01-01 Richard Guenther <rguenther@suse.de>
29561 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
29563 2010-01-01 Richard Guenther <rguenther@suse.de>
29566 * c-decl.c (grokdeclarator): For zero-size arrays force
29567 structural equality checks as layout_type does.
29569 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
29571 * builtins.c: Update copyright to 2010.
29573 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
29576 * lto-streamer-out.c (produce_asm): Revert the last change.
29577 (copy_function): Likewise.
29579 * lto-streamer.c (lto_get_section_name): Skip any leading
29582 2010-01-01 Richard Guenther <rguenther@suse.de>
29584 PR middle-end/42559
29585 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
29589 Copyright (C) 2010 Free Software Foundation, Inc.
29591 Copying and distribution of this file, with or without modification,
29592 are permitted in any medium without royalty provided the copyright
29593 notice and this notice are preserved.