1 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
3 * config/i386/i386.md (*addqi_2): Do not assert operands[2] == 255
4 for TYPE_INCDEC operands.
8 (*addqi_ext_1_rex64): Ditto.
11 (*addqi_4): Check for incdec_operand in QImode.
13 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
14 using SWI mode iterator.
15 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
16 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
18 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
19 using SWI mode iterator.
21 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
24 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
25 * c-format.c (gcc_diag_flag_specs): Add hash.
26 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
27 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
28 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
29 pp_c_cv_qualifiers. Handle qualifiers spelling here.
30 (pp_c_type_qualifier_list): Call the function above.
31 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
32 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
33 (WARN_FOR_QUALIFIERS): New macro.
34 (convert_for_assignment): Use it.
36 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
38 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
40 2010-06-04 Jan Hubicka <jh@suse.cz>
42 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
43 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
44 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
45 DF_BYTE_LR_OUT): Update for embedded bitmaps.
46 * fwprop.c (single_def_use_enter_block): Likewise.
47 * ddg.c (create_ddg_dep_from_intra_loop_link,
48 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
49 * loop-iv.c (latch_dominating_def): Likewise.
50 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
51 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
52 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
53 df_rd_transfer_function, df_rd_top_dump,
54 df_rd_bottom_dump): Update.
55 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
56 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
57 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
58 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
59 df_lr_verify_solution_start, df_lr_verify_solution_end,
60 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
61 df_live_free_bb_info, df_live_alloc, df_live_reset,
62 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
63 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
64 df_live_verify_solution_start, df_live_verify_solution_end,
65 df_live_verify_transfer_functions, df_chain_create_bb,
66 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
67 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
68 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
69 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
70 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
71 df_byte_lr_transfer_function, df_byte_lr_top_dump,
72 df_byte_lr_bottom_dump, df_create_unused_note,
73 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
74 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
75 df_md_transfer_function, df_md_init, df_md_confluence_0,
77 df_md_top_dump, df_md_bottom_dump): Update.
78 (struct df_lr_problem_data): Embedd bitmap headers.
80 2010-06-04 Jan Hubicka <jh@suse.cz>
82 * dce.c (dce_process_block): Do not re-scan already marked
85 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
87 PR rtl-optimization/39871
88 PR rtl-optimization/40615
89 PR rtl-optimization/42500
90 PR rtl-optimization/42502
91 * ira.c (init_reg_equiv_memory_loc: New function.
93 * reload.h (calculate_elim_costs_all_insns): Declare.
94 * ira-costs.c: Include "reload.h".
95 (regno_equiv_gains): New static variable.
96 (init_costs): Allocate it.
97 (finish_costs): Free it.
98 (ira_costs): Call calculate_elim_costs_all_insns.
99 (find_costs_and_classes): Take estimated elimination costs
101 (ira_adjust_equiv_reg_cost): New function.
102 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
103 * reload1.c (init_eliminable_invariants, free_reg_equiv,
104 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
105 (elim_bb): New static variable.
106 (reload): Move code out of here into init_eliminable_invariants and
107 free_reg_equiv. Call them.
108 (calculate_elim_costs_all_insns): New function.
109 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
110 all callers changed. If FOR_COSTS is true, don't call alter_reg,
111 but call note_reg_elim_costly if we turned a valid memory address
113 * Makefile.in (ira-costs.o): Depend on reload.h.
115 2010-06-04 Julian Brown <julian@codesourcery.com>
117 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
120 2010-06-04 Richard Guenther <rguenther@suse.de>
123 * cgraph.h (struct varpool_node): Add lto_file_data field.
124 * lto-cgraph.c (input_varpool_node): Initialize it.
126 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
128 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
129 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
130 predicate in "type" attribute calculation.
131 (*addsi_1_zext): Ditto.
132 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
133 (*addsi_2_zext): Ditto.
134 (*add<mode>_3): Ditto.
135 (*addsi_3_zext): Ditto.
136 (*add<mode>_5): Ditto.
138 2010-06-03 Jan Hubicka <jh@suse.cz>
140 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
142 * cfganal.c (compute_dominance_frontiers_1): Likewise.
144 2010-06-03 Jan Hubicka <jh@suse.cz>
146 * df-problems.c (df_create_unused_note, df_note_bb_compute):
147 micro-optimize the checks when to add new note.
149 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
151 * final.c (output_asm_insn): Call
152 targetm.asm_out.print_operand_punct_valid_p. Update comments.
153 (output_operand): Call targetm.asm_out.print_operand. Update comments.
154 (output_address): Call targetm.asm_out.print_operand_address.
156 * target.h (struct gcc_target): Add print_operand,
157 print_operand_address, and print_operand_punct_valid_p fields.
158 * targhooks.h (default_print_operand): Declare.
159 (default_print_operand_address): Declare.
160 (default_print_operand_punct_valid_p): Declare.
161 * targhooks.c (default_print_operand): Define.
162 (default_print_operand_address): Define.
163 (default_print_operand_punct_valid_p): Define.
164 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
165 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
166 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
167 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
168 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
169 * vmsdbgout.c (addr_const_to_string): Update comment.
170 * config/i386/i386.c (print_operand): Rename to...
171 (ix86_print_operand): ...this. Make static.
172 (print_operand_address): Rename to...
173 (ix86_print_operand_address): ...this. Make static. Call
174 ix86_print_operand instead of PRINT_OPERAND.
175 (ix86_print_operand_punct_valid_p): New function.
176 (TARGET_PRINT_OPERAND): Define.
177 (TARGET_PRINT_OPERAND_ADDRESS): Define.
178 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
179 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
180 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
181 (PRINT_OPERAND): Delete.
182 (PRINT_OPERAND_ADDRESS): Delete.
183 * config/i386/i386-protos.h (print_operand): Delete prototype.
184 (print_operand_address): Delete prototype.
186 2010-06-03 Richard Guenther <rguenther@suse.de>
188 PR tree-optimization/44403
189 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
190 Preserve pointer qualifiers.
191 (vect_create_data_ref_ptr): Likewise.
193 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
196 * defaults.h (MAX_FIXED_MODE_SIZE): New.
198 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
200 2010-06-03 Jakub Jelinek <jakub@redhat.com>
203 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
204 return false if merging the bbs would lead to goto_locus
205 location being lost from the IL.
207 2010-06-03 Jan Hubicka <jh@suse.cz>
208 Jakub Jelinek <jakub@redhat.com>
210 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
211 set->regs[i] is NULL or has just one entry.
213 2010-06-03 Jan Hubicka <jh@suse.cz>
215 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
216 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
218 2010-06-03 Paul Brook <paul@codesourcery.com>
220 * config/arm/arm.c (FL_TUNE): Define.
221 (arm_default_cpu, arm_cpu_select): Remove.
222 (all_cores): Populate core field.
223 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
224 (arm_find_cpu): New function.
225 (arm_handle_option): Lookup cpu/architecture names.
226 (arm_override_options): Cleanup mcpu/march/mtune handling.
227 (arm_file_start): Ditto.
229 2010-06-03 Alan Modra <amodra@gmail.com>
232 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
233 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
234 rtx to gen_load_toc_v4_PIC_1b. Tidy.
235 (rs6000_emit_load_toc_table): Likewise.
237 2010-06-02 Jan Hubicka <jh@suse.cz>
239 * passes.c (init_optimization_passes): Put ipa reference
240 after ipa pure-const.
242 2010-06-02 Jan Hubicka <jh@suse.cz>
244 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
245 calls_read_all and calls_write_all.
246 (get_reference_optimization_summary): Fix formatting.
247 (is_proper_for_analysis): Check that decl is not readonly.
248 (propagate_bits): Check CONST/PURE/noreturn flags.
249 (ipa_init): Move all_module_statics to optimization_summary_obstack.
250 (analyze_function): Ignore indirect edges.
251 (copy_global_bitmap): For all module statics, do nothing.
252 (generate_summary): Do not print calls_read_all/calls_write_all.
253 (read_write_all_from_decl): Take node as argument; check
254 cgraph_node_cannot_return.
255 (propagate): Reorganize read_all/write_all computation;
256 check indirect edges; check ecf flags; use all_module_statics
257 in the results; do not free all_module_statics.
258 (stream_out_bitmap): Handle all_module_statics.
259 (ipa_reference_write_optimization_summary): Likewise; use
260 varpool/cgraph encoders to get boundaries.
261 (ipa_reference_read_optimization_summary): Read in all_module_statics;
262 use it when possible.
264 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
267 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
268 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
270 * doc/extend.texi (powerpc builtins): Document vec_recip,
271 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
273 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
274 (rs6000_emit_swrsqrt): Ditto.
275 (rs6000_emit_swdivsf): Delete.
276 (rs6000_emit_swdivdf): Ditto.
277 (rs6000_emit_swrsqrtsf): Ditto.
279 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
280 describe the reciprocal estimate support for each type.
281 (recip_options): Map -mrecip=<opt> into option bits.
282 (gen_2arg_fn_t): New typedef for binary rtx gen function.
283 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
284 reciprocal estimate instructions.
285 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
286 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
287 Set up rs6000_recip_bits based on the -mrecip* options. Print the
288 cost information if -mdebug=cost or -mdebug=reg.
289 (rs6000_override_options): Set -mrecip-precision for power6, and
290 power7 machines. If -mvsx or -mdfp, enable various options that
291 came in previous instruction set ISAs, unless the option was
292 explicitly disabled by the command line option. Parse
293 -mrecip=<opt> options.
294 (rs6000_builtin_vectorized_function): Add support for vectorizing
295 the reciprocal estimate builtins and expansions.
296 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
297 (bdesc_2arg): Add reciprocal estimate builtins.
298 (bdesc_1arg): Add reciprocal square root estimate builtins.
299 (rs6000_expand_builtin): Rewrite to use a switch statement,
300 instead of multiple if/then/elses. Add reciprocal estimate builtins.
301 (rs6000_init_builtins): Create declarations for reciprocal
303 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
304 sized, prefer traditional floating point registers, if integer
305 vector types, prefer altivec registers. Don't actually look at
306 the memory address any more.
307 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
309 (rs6000_load_constant_and_splat): New helper function to load up
310 the constant for reciprocal estimate instructions.
311 (rs6000_emit_madd): New helper function for generating
312 multiply/add type instructions, based on the current switches.
313 (rs6000_emit_msub): Ditto.
314 (rs6000_emit_mnsub): Ditto.
315 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
316 replace a divide with a reciprocal estimate and fixup, adding
317 support for machines with high precision and vectors.
318 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
319 low precision machines.
320 (rs6000_emit_swdiv): New common function to be called to replace a
321 division with reciprocal estimate and fixup.
322 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
323 for double and vector types. Add support for high precision machines.
325 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
326 the reciprocal estimate instructions can be generated.
328 (TARGET_FRSQRTES): Ditto.
329 (TARGET_FRSQRTE): Ditto.
330 (RS6000_RECIP_*): New macros for reciprocal estimate support.
332 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
333 square root estimate on vectors.
334 (re<mode>2): New insn for reciprocal division estimate on vectors.
336 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
338 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
339 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
340 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
341 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
342 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
343 (RS6000_BUILTIN_RSQRT): Ditto.
344 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
345 floating point builtin.
347 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
348 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
349 __RECIP_PRECISION__ based on the command line switches.
350 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
352 * config/rs6000/rs6000.opt (-mrecip): Document add support for
353 replacing division instructions with reciprocal estimate and fixup.
354 (-mrecip=<opt>): New option.
355 (-mrecip-precision): Ditto.
357 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
358 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
359 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
362 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
363 (UNSPEC_VREFP): Ditto.
364 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
365 conterparts with regard to support of -mno-fused-madd and -ffast-math.
366 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
367 reciprocal estimate instructions to be generated.
368 (altivec_vrefp): Ditto.
370 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
372 (rreg): New mode attribute for reciprocal estimate support.
373 (recip<mode>3): New insn for division using reciprocal estimate
375 (divide define_split): New define_split to convert floating point
376 division to use reciprocal estimate if the user used the
377 appropriate options and the split is run when we can add new
378 pseudo registers for the fixup.
379 (rsqrt<mode>2): New insn for reciprocal square root support.
380 (recipsf3): Move into recip<mode>3.
382 (fres): Use TARGET_FRES.
383 (rsqrtsf2): Move into rsqrt<mode>2.
384 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
385 (copysignsf3): Add support for VSX.
386 (fred): Use TARGET_FRE.
388 (rsqrtdf_internal1): New function for frsqrte instruciton.
390 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
393 2010-06-03 Richard Guenther <rguenther@suse.de>
396 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
397 (set_user_assembler_libfunc): Likewise.
399 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
401 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
403 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
405 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
406 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
407 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
408 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
409 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
410 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
411 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
412 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
413 * defaults.h: Updated for above mentioned changes.
415 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
417 * c-common.c: Remove header include of tm_p.h.
418 * Makefile.in (c-common.o): Remove TM_P_H dependency.
420 2010-06-02 Jakub Jelinek <jakub@redhat.com>
422 * tree.h (struct tree_decl_map): New type.
423 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
424 (tree_decl_map_hash): New prototype.
425 (debug_expr_for_decl, value_expr_for_decl): Change into
426 tree_decl_map hashtab from tree_map.
427 (init_ttree): Adjust initialization.
428 (tree_decl_map_hash): New function.
429 (decl_debug_expr_lookup, decl_debug_expr_insert,
430 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
432 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
434 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
436 * configure: Regenerate.
437 * config.in: Regenerate.
439 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
440 (X86_64_EMULATION): Define.
441 (TARGET_LD_EMULATION): Use them.
443 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
444 (SPARC64_EMULATION): Define.
445 (LINK_ARCH_SPEC): Use them.
447 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
449 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
450 smallest_mode_for_size for computing the precision types of new
451 graphite IVs. Do not call lang_hooks.types.type_for_size.
453 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
455 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
457 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
459 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
462 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
463 return false instead.
465 2010-06-02 Jan Hubicka <jh@suse.cz>
468 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
469 create new cgraph node to check callee.
471 2010-06-02 Richard Guenther <rguenther@suse.de>
473 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
475 2010-06-02 Richard Guenther <rguenther@suse.de>
477 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
478 (lto_wrapper_cleanup): ... this. Do not exit.
479 (fatal): Adjust. Exit here.
480 (fatal_perror): Likewise.
481 (fatal_signal): New function.
482 (main): Set up signal handlers to cleanup temporary files.
483 * Makefile.in (lto-wrapper.o): Adjust dependencies.
485 2010-06-02 Richard Guenther <rguenther@suse.de>
487 PR tree-optimization/44377
488 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
490 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
492 * config/s390/2097.md (z10_fhex): Remove insn reservation.
493 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
494 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
495 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
497 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
499 2010-06-02 Jan Hubicka <jh@suse.cz>
501 * bitmap.c (bitmap_descriptor): Add search_iter.
502 (bitmap_find_bit): Increment it.
503 (print_statistics): Print it.
505 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
507 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
508 instead of gimple_build_call_vec. Delete unnecessary local variable.
510 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
512 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
513 change from yesterday.
515 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
517 * c-ada-spec.c: Clean up redundant includes.
519 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
521 * gimplify.c: Do not include except.h and optabs.h.
522 (gimplify_body): Do not initialize RTL profiling.
523 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
524 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
525 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
526 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
529 * tree-pretty-print.h: Include pretty-print.h.
530 * gimple-pretty-print.h: Include pretty-print.h.
532 * tree-pretty-print.c: Do not include diagnostic.h.
533 * tree-vrp.c: Likewise.
534 * tree-tailcall.c: Likewise
535 * tree-scalar-evolution.c: Likewise
536 * tree-ssa-dse.c: Likewise
537 * tree-chrec.c: Likewise
538 * tree-ssa-sccvn.c: Likewise
539 * tree-ssa-copyrename.c: Likewise
540 * tree-nomudflap.c: Likewise
541 * tree-call-cdce.c: Likewise
542 * tree-stdarg.c: Likewise
543 * tree-ssa-math-opts.c: Likewise
544 * tree-nrv.c: Likewise
545 * tree-ssa-sink.c: Likewise
546 * tree-browser.c: Likewise
547 * tree-ssa-loop-ivcanon.c: Likewise
548 * tree-ssa-loop.c: Likewise
549 * tree-parloops.c: Likewise
550 * tree-ssa-address.c: Likewise
551 * tree-ssa-ifcombine.c: Likewise
552 * tree-if-conv.c: Likewise
553 * tree-data-ref.c: Likewise
554 * tree-affine.c: Likewise
555 * tree-ssa-phiopt.c: Likewise
556 * tree-ssa-coalesce.c: Likewise
557 * tree-ssa-pre.c: Likewise
558 * tree-ssa-live.c: Likewise
559 * tree-predcom.c: Likewise
560 * tree-ssa-forwprop.c: Likewise
561 * tree-ssa-dce.c: Likewise
562 * tree-ssa-ter.c: Likewise
563 * tree-ssa-loop-prefetch.c: Likewise
564 * tree-optimize.c: Likewise
565 * tree-ssa-phiprop.c: Likewise
566 * tree-object-size.c: Likewise
567 * tree-outof-ssa.c: Likewise
568 * tree-ssa-structalias.c: Likewise
569 * tree-switch-conversion.c: Likewise
570 * tree-ssa-reassoc.c: Likewise
571 * tree-ssa-operands.c: Likewise
572 * tree-vectorizer.c: Likewise
573 * tree-vect-data-refs.c: Likewise
574 * tree-vect-generic.c: Likewise
575 * tree-vect-stmts.c: Likewise
576 * tree-vect-patterns.c: Likewise
577 * tree-vect-slp.c: Likewise
578 * tree-vect-loop.c: Likewise
579 * tree-ssa-loop-ivopts.c: Likewise
580 * tree-ssa-loop-im.c: Likewise
581 * tree-ssa-loop-niter.c: Likewise
582 * tree-ssa-loop-unswitch.c: Likewise
583 * tree-ssa-loop-manip.c: Likewise
584 * tree-ssa-loop-ch.c: Likewise
585 * tree-dump.c: Likewise
586 * tree-complex.c: Likewise
588 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
589 * tree-ssa-uninit.c: Likewise
590 * tree-ssa-threadupdate.c: Likewise
591 * tree-ssa-uncprop.c: Likewise
592 * tree-ssa-ccp.c: Likewise
593 * tree-ssa-dom.c: Likewise
594 * tree-ssa-propagate.c: Likewise
595 * tree-ssa-alias.c: Likewise
596 * tree-dfa.c: Likewise
597 * tree-cfgcleanup.c: Likewise
598 * tree-sra.c: Likewise
599 * tree-ssa-copy.c: Likewise
600 * tree-ssa.c: Likewise
601 * tree-profile.c: Likewise
602 * tree-cfg.c: Likewise
603 * tree-ssa-threadedge.c: Likewise
604 * tree-vect-loop-manip.c: Likewise
606 * tree-inline.c: Do not include diagnostic.h and expr.h.
608 (copy_decl_for_dup_finish): Do not use NULL_RTX.
610 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
611 * tree-loop-distribution.c: Likewise.
613 2010-06-01 Jan Hubicka <jh@suse.cz>
615 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
617 2010-06-01 Jan Hubicka <jh@suse.cz>
619 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
621 (split_bbs_on_noreturn_calls) .... here.
622 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
623 * tree-flow.h (fixup_noreturn_call): New.
625 2010-06-01 Jan Hubicka <jh@suse.cz>
627 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
629 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
631 * tree.h (build_nt_call_list): Delete.
632 * tree.c (build_nt_call_list): Delete.
634 2010-06-01 Jan Hubicka <jh@suse.cz>
636 * fwprop.c: Make emit-rtl.h include last.
637 * rtlanal.c: Include emit-rtl.h.
638 * genautomata.c: Output emit-rtl include into insn-automata.c
639 * df-scan.c: Include emit-rtl.h.
640 * haifa-sched.c: Indlude emit-rtl.h.
641 * mode-switching.c: Indlude emit-rtl.h.
642 * graph.c: Indlude emit-rtl.h.
643 * sel-sched.c: Include emit-rtl.h.
644 * sel-sched-ir.c: Include emit-rtl.h.
645 * ira-build.c: Include emit-rtl.h.
646 * emit-rtl.c: (first_insn, last_insn): Remove defines.
647 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
649 (set_new_first_and_last_insn, get_last_insn_anywhere,
650 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
651 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
652 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
653 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
654 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
655 Use accessor functions.
656 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
657 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
658 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
659 mem_expr_equal_p): Move here from rtl.h.
660 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
661 Move here from emit-rtl.c; make inline.
662 * cfglayout.h: Include emit-rtl.h.
663 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
664 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
665 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
666 mem_expr_equal_p, get_insns, set_first-insn,
667 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
668 * reg-stack.c: Include emit-rtl.h.
671 2010-06-01 Jan Hubicka <jh@suse.cz>
673 * cgraph.h (tree_function_versioning): Update prototype.
674 (cgraph_function_versioning): Update prototype.
675 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
677 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
678 (cgraph_materialize_clone, save_inline_function_body): Update use of
679 tree_function_versioning.
680 * tree-inline.c (copy_bb): Look for previous copied block to link
681 after; fix debug output.
682 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
683 (copy_body): Likewise.
684 (expand_call_inline): Update use of copy_body.
685 (tree_function_versioning): Update use of copy body; accept
686 blocks_to_copy and new_entry.
688 2010-06-01 Jan Hubicka <jh@suse.cz>
690 * gegenrtl.c: Remove unnecesary prototypes.
692 (gendef): Produce static inline.
694 (main): Do not decode parameters; generate header only.
695 * Makefile.in (genrtl.c): Remove.
697 2010-06-01 Jan Hubicka <jh@suse.cz>
699 * tree-switch-conversion.c (build_one_array): Make it readonly.
701 2010-06-01 Richard Guenther <rguenther@suse.de>
703 * optabs.c (init_optabs): Guard all accesses to reinit.
704 * ipa-pure-const.c (propagate): Fix another typo.
705 * opts.c (common_handle_option): Split assignment to bool.
706 * c-opts.c (c_common_handle_option): Likewise.
708 2010-06-01 Arnaud Charlet <charlet@adacore.com>
709 Matthew Gingell <gingell@adacore.com>
711 * doc/invoke.texi: Mention -fdump-ada-spec.
712 * tree-dump.c (dump_files): Add ada-spec.
713 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
714 * tree-pass.h (tree_dump_index): Add TDI_ada.
715 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
716 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
717 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
718 * c-decl.c: Include c-ada-spec.h.
719 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
721 (c_write_global_declarations): Add handling of -fdump-ada-spec.
722 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
723 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
724 * c-ada-spec.h, c-ada-spec.c: New files.
726 2010-06-01 Richard Guenther <rguenther@suse.de>
729 * ipa-pure-const.c (get_function_state): Hand back varying state
730 if we do not have one.
731 (has_function_state): New function.
732 (duplicate_node_data): Adjust.
733 (remove_node_data): Likewise.
734 (pure_const_write_summary): Likewise.
735 (propagate): Likewise. Fix typo.
737 2010-06-01 Jan Hubicka <jh@suse.cz>
739 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
740 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
741 (execute_all_ipa_transforms): Do not play with the states.
743 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
745 * config/arm/t-linux-androideabi: New.
746 * config.gcc (arm*-*-linux-androideabi): Include multilib configuration.
748 2010-06-01 Jan Hubicka <jh@suse.cz>
750 * tree-inline.c (estimate_num_insns): For stdarg functions look
751 into call statement to count cost of argument passing.
753 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
755 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
756 argument for fprintf.
757 (ix86_output_addr_diff_elt): Likewise.
758 (x86_function_profiler): Likewise.
759 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
761 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
763 2010-05-31 Jakub Jelinek <jakub@redhat.com>
766 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
767 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
768 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
769 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
770 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
771 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
772 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
773 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
776 2010-05-31 Jan Hubicka <jh@suse.cz>
778 * tree.h (tree_range_check_failed): Declare noreturn.
780 2010-05-31 Jan Hubicka <jh@suse.cz>
782 * gimple.c (gimple_call_builtin_p): New function.
783 * gimple.h (gimple_call_builtin_p): Declare.
784 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
786 (execute_warn_function_return): BUILT_IN_RETURN is return.
787 (split_critical_edges): Return edges are not critical.
788 (is_ctrl_altering_stmt): Builtin_in_return is altering.
789 (gimple_verify_flow_info): Handle built_in_return.
790 (execute_warn_function_return): Handle built_in_return.
791 * ipa-pure-const.c (check_call): Ignore builtin_return.
793 2010-05-31 Jakub Jelinek <jakub@redhat.com>
796 * expr.c (expand_assignment): Don't store anything for out-of-bounds
797 array accesses with non-MEM.
799 PR tree-optimization/44182
800 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
801 newly needs to end a bb is followed by debug stmts, instead return
802 true from the function at the end.
803 (maybe_move_debug_stmts_to_successors): New function.
804 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
806 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
809 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
811 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
813 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
814 for nested functions in non-optimized compilation.
816 2010-05-31 Richard Guenther <rguenther@suse.de>
818 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
820 2010-05-30 Jan Hubicka <jh@suse.cz>
822 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
824 2010-05-30 Richard Guenther <rguenther@suse.de>
827 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
828 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
831 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
833 * config/darwin.c (output_objc_section_asm_op): Add comment.
834 (name_needs_quotes): Add '_' to list of valid comment chars.
835 (machopic_output_function_base_name): Remove unneeded quotes.
836 (darwin_encode_section_info): Adjust asm whitespace.
837 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
838 (ASM_OUTPUT_LOCAL): Ditto.
839 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
840 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
841 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
843 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
845 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
846 RS6000_OUTPUT_BASENAME unconditionally.
847 (rs6000_output_function_epilogue): Likewise.
849 2010-05-30 Jan Hubicka <jh@suse.cz>
851 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
854 2010-05-30 Richard Guenther <rguenther@suse.de>
856 * tree-cfg.c (verify_gimple_assign_single): Implement
857 verification for COND_EXPR rhs.
859 2010-05-30 Jan Hubicka <jh@suse.cz>
861 * cgraph.h (cgraph_dump_file): Declare.
862 * cgraphunit.c (cgraph_dump_file): Export.
863 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
865 2010-05-30 Jan Hubicka <jh@suse.cz>
867 * dwarf2out.c (reference_to_unused,
868 premark_types_used_by_global_vars_helper): Avoid creation of new
871 2010-05-30 Jan Hubicka <jh@suse.cz>
873 * cgraph.h (cgraph_node_cannot_return,
874 cgraph_edge_cannot_lead_to_return): New functions.
875 * cgraph.c (cgraph_node_cannot_return,
876 cgraph_edge_cannot_lead_to_return): Use them.
877 * ipa-pure-const.c (pure_const_names): New static var.
878 (check_call): Handle calls not leading to return.
879 (pure_const_read_summary): Dump info read.
880 (propagate): Dump info about propagation process; ignore side effects
881 of functions not leading to exit; fix handling of pure functions.
883 2010-05-30 Jan Hubicka <jh@suse.cz>
885 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
886 for tail call epilogues.
888 2010-05-30 Jan Hubicka <jh@suse.cz>
890 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
891 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
894 2010-05-29 Jan Hubicka <jh@suse.cz>
896 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
897 node; remove references in node we no longer keep in cgrpah but need
900 2010-05-29 Jan Hubicka <jh@suse.cz>
902 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
904 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
907 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
909 2010-05-29 Jan Hubicka <jh@suse.cz>
911 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
912 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
913 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
914 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
915 debug_names_replaced_by, debug_update_ssa): Likewise.
916 * sbitmap.c (debug_sbitmap): Likewise.
917 * genrecog.c (debug_decision, debug_decision_list): Likewise.
918 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
919 debug_tree_chain): Likewise.
920 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
921 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
922 * optabs.c (debug_optab_libfuncs): Likewise.
923 (verify_loop_closed_ssa): Likewise.
924 * value-prof.c (verify_histograms): Likewise.
925 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
926 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
927 * cfghooks.c (verify_flow_info): Likewise.
928 * fold-const.c (debug_fold_checksum): Likewise.
929 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
930 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
932 * omega.c (debug_omega_problem): Likewise.
933 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
934 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
935 * dominance.c (verify_dominators, debug_dominance_info,
936 debug_dominance_tree): Likewise.
937 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
938 * df_regno_debug, df_ref_debug,
939 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
940 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
941 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
942 * sel-sched.c (debug_state): Likewise.
943 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
945 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
946 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
947 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
948 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
950 * c-pretty-print.c (debug_c_tree): Likewise.
951 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
952 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
953 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
954 * ebitmap.c (debug_ebitmap): Likewise.
955 * function.c (debug_find_var_in_block_tree): Likewise.
956 * print-rtl.c (debug_rtx): Likewise.
957 (debug_rtx_count): Likewise.
958 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
959 * stor-layout.c (debug_rli): Likewise.
960 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
961 * tree-data-ref.c (debug_data_references,
962 debug_data_dependence_relations, debug_data_reference,
963 debug_data_dependence_relation, debug_rdg_vertex,
964 debug_rdg_component, debug_rdg): Likewise.
965 * tree-affine.c (debug_aff): Likewise.
966 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
968 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
969 * emit-rtl.c (verify_rtl_sharing): Likewise.
970 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
971 debug_value_expressions): Likewise.
972 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
973 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
974 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
975 * cfglayout.c (verify_insn_chain): Likewise.
976 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
977 debug_clast_stmt, debug_generated_program): Likewise.
978 * ggc-page.c (debug_print_page_list): Likewise.
979 * tree-ssa-ter.c (debug_ter): Likewise.
980 * graphite-dependences.c (debug_pddr): Likewise.
981 * sched-deps.c (debug_ds): Likewise.
982 * tree-ssa.c (verify_ssa): Likewise.
983 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
984 debug_scattering_functions, debug_iteration_domains, debug_pdr,
985 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
986 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
987 * tree-inline.c (debug_find_tree): Likewise.
988 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
989 debug_ppl_powerset_matrix): Likewise.
990 * var-tracking.c (debug_dv): Likewise.
991 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
992 * cfgloop.c (verify_loop_structure): Likewise.
993 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
994 * c-common.c (verify_sequence_points): Likewise.
995 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
996 debug_candidates, debug_rgn_dependencies): Likewise.
997 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
998 * debug_constraint_graph, debug_solution_for_var,
999 debug_sa_points_to_info): Likewise.
1000 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
1002 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
1003 debug_loops, debug_loop, debug_loop_num): Likewise.
1004 * passes.c (debug_pass): Likewise.
1005 (dump_properties): Likewise; add cfglayout property.
1006 (debug_properties): Likewise.
1007 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
1008 * varpool.c (debug_varpool): Likewise.
1009 * regcprop.c (debug_value_data): Likewise.
1010 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
1011 debug_immediate_uses_for): Likewise.
1013 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
1016 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
1017 Filter out insn-flags.h.
1019 2010-05-29 Jan Hubicka <jh@suse.cz>
1021 * cgraph.h (struct varpool_node_set_def,
1022 struct cgraph_node_set_def): Remove unused AUX pointer.
1023 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
1026 2010-05-29 Jan Hubicka <jh@suse.cz>
1029 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
1031 2010-05-29 Richard Guenther <rguenther@suse.de>
1033 * lto-streamer.c (cached_bp): New global variable.
1034 (bitpack_create): Return the cached bitpack, if available.
1035 (bitpack_delete): Clear and cache the bitpack, if appropriate.
1036 (bp_pack_value): Remove redundant asserts.
1038 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
1041 * tree-if-conv.c (is_true_predicate): New.
1042 (is_predicated): Use is_true_predicate.
1043 (add_to_predicate_list): Same. Do not use unshare_expr.
1044 (add_to_dst_predicate_list): Same.
1046 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
1048 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
1050 (predicate_bbs): Same.
1051 (clean_predicate_lists): Same.
1052 (find_phi_replacement_condition): Do not AND the predicate from
1055 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
1058 * Makefile.in (build/gencondmd.o): Add a missing `\'.
1060 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1063 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
1064 (negdf2): Adjust expander pattern and use negdf2_slow.
1067 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
1069 * basic-block.h (struct control_flow_graph): Move last_label_uid field
1071 * df.h (struct df_base_ref): Move regno field up.
1072 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
1073 * expr.h (struct separate_ops): Move location field up.
1074 * optabs.h (struct optab_d): Move libcall_basename field down.
1075 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
1076 * config/i386/i386.h (struct machine_function): Convert call_abi field
1077 into a bitfield. Move cfa field to the end of the structure.
1079 2010-05-29 Jan Hubicka <jh@suse.cz>
1081 * varpool.c (varpool_get_node): Fix lookup.
1083 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
1085 * config/spu/spu-protos.h: Do not include rtl.h. Protect
1086 RTL specific prototypes with #ifdef RTX_CODE.
1087 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
1088 * config/spu/t-spu-elf: Fix dependencies.
1090 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
1092 2010-05-29 Mike Stump <mikestump@comcast.net>
1095 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
1096 TM_H when building to avoid dependency loops.
1098 2010-05-29 Jan Hubicka <jh@suse.cz>
1100 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
1101 refs and body; not the whole node for masters of materialized
1104 2010-05-29 Mike Stump <mikestump@comcast.net>
1106 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
1108 2010-05-29 Jan Hubicka <jh@suse.cz>
1110 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
1111 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
1112 use of clone_function_name.
1113 * cgraph.h (cgraph_create_virtual_clone,
1114 cgraph_function_versioning): update prototypes.
1115 (clone_function_name): Declare.
1116 * ipa-cp.c (ipcp_insert_stage): Update call of
1117 cgraph_create_virtual_clone.
1118 * omp-low.c (create_omp_child_function_name): Use
1119 cgraph_create_virtual_clone.
1120 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
1121 (cgraph_function_versioning): Take SUFFIX argument; produce new name
1122 and make decl local.
1124 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
1126 * vec.h: Include statistics.h
1127 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
1130 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
1132 * c-lex.c: Do not include c-tree.h.
1133 * c-pretty-print.c: Likewise.
1134 * c-opts.c: Likewise.
1135 * c-gimplify.c: Likewise.
1136 * c-common.c: Likewise.
1137 * c-dump.c: Likewise. Include c-common.h.
1139 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
1141 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
1142 before including diagnostic-core.h.
1143 (c_cpp_error): New prototype moved from c-tree.h.
1144 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
1145 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
1146 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
1147 (c_cpp_error): Prototype moved to c-common.h.
1148 * Makefile.in: Update dependency for C_COMMON_H.
1150 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
1152 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
1153 * c-common.c (c_register_addr_space): Remove here.
1154 * c-decl.c (c_register_addr_space): Re-add here.
1156 2010-05-28 Mike Stump <mikestump@comcast.net>
1158 * config/darwin-c.c: Remove c-tree.h include.
1160 2010-05-28 Joseph Myers <joseph@codesourcery.com>
1162 * gcc.c: Include diagnostic.h.
1163 (error_count): Remove. All users changed to use errorcount.
1164 (programname): Remove. All users changed to use progname.
1165 (fancy_abort, internal_error, fatal_error, error, warning, inform,
1167 (execute): Don't include "Internal error" and bug reporting
1168 information in argument of internal_error call.
1169 (process_command): Don't increment error_count after calling
1171 (input_filename): Rename to gcc_input_filename. All users
1173 (main): Call diagnostic_initialize. Register delete_temp_files
1174 with atexit. Use seen_error to test for errors.
1175 * gcc.h: Include diagnostic-core.h.
1176 (fatal_error, error, warning): Remove.
1177 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
1178 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
1179 (gcc.o): Update dependencies.
1181 2010-05-28 Jeff Law <law@redhat.com>
1183 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
1185 * ira.h (ira_bad_reload_regno): Declare
1186 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
1188 * ira-color.c (update_curr_costs): Free updated hard reg costs.
1189 (ira_reassign_conflict_allocnos): Remove bogus asserts.
1190 (allocno_reload_assign): Likewise.
1192 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
1194 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
1197 2010-05-28 Richard Guenther <rguenther@suse.de>
1200 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
1201 Stream fixed-point constants mode.
1202 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
1204 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
1205 Stream fixed-point constants mode.
1206 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
1209 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
1211 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
1212 only place it was called from.
1213 (number_of_latch_executions): Do not return chrec_dont_know when the
1214 may_be_zero is a runtime condition: instead, return a COND_EXPR
1215 including the may_be_zero condition.
1216 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
1218 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
1221 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
1223 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
1224 generate COND_EXPRs for degenerate_phi_result.
1226 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
1229 * tree-if-conv.c (if_convertible_loop_p): Check the
1230 if-convertibility of phi nodes in non predicated BBs.
1232 2010-05-28 Joseph Myers <joseph@codesourcery.com>
1234 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
1236 2010-05-28 Joseph Myers <joseph@codesourcery.com>
1239 * gcc.c (inform, warning, inform): New functions.
1240 (fatal_ice): Rename to internal_error; change cmsgid parameter to
1241 gmsgid. All callers changed.
1242 (notice): Rename to fnotice; add parameter fp. All callers
1244 (fatal_error): Rename to fatal_signal. All users changed.
1245 (fatal): Rename to fatal_error; change cmsgid parameter to
1246 gmsgid. All callers changed.
1247 (process_command): Use warning instead of error for warnings.
1248 (end_going_arg): Don't use _() around argument of error.
1249 (do_spec_1): Use inform for message from %n specs. Use warning
1250 instead of error for warnings.
1251 (main): Use inform for comparison messages. Use warning for
1252 message about unused linker input.
1253 (error): Increment error_count. Print "error: ".
1254 * gcc.h (fatal): Change to fatal_error.
1256 * config/darwin-driver.c (darwin_default_min_version): Use warning
1257 instead of fprintf for warnings.
1258 * cppspec.c (lang_specific_driver): Use fatal_error instead of
1261 2010-05-28 Julian Brown <julian@codesourcery.com>
1263 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
1264 (*thumb2_addsi3_compare0_scratch): New.
1265 * config/arm/constraints.md (Pv): New.
1266 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
1268 (*addsi3_compare0_scratch): Likewise.
1270 2010-05-28 Jan Hubicka <jh@suse.cz>
1272 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
1274 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
1275 only on local statics.
1277 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
1279 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
1281 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
1284 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
1285 (OPTION_GLIBC): Define.
1287 2010-05-28 Jakub Jelinek <jakub@redhat.com>
1290 * dwarf2out.c (double_int_type_size_in_bits): New function.
1291 (round_up_to_align): Change first argument and return value to
1293 (field_byte_offset): Work internally on double_ints.
1296 * builtins.c (expand_movstr): Use a temporary pseudo instead
1297 of target even when target is not NULL and not const0_rtx, but
1298 fails movstr predicate.
1299 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
1301 2010-05-28 Joseph Myers <joseph@codesourcery.com>
1303 * final.c (rest_of_clean_state): Use %m in errors instead of
1305 * gengtype.c (read_input_list, close_output_files): Use xstrerror
1306 instead of strerror.
1307 * toplev.c (process_options): Use %m in errors instead of strerror
1309 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
1312 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
1314 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
1315 (ix86_canonical_va_list_type): Make static. Add declaration.
1316 (ix86_enum_va_list): Make static. Reindent.
1317 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
1318 (ix86_canonical_va_list_type): Ditto.
1319 (ix86_enum_va_list): Ditto.
1321 2010-05-28 Richard Guenther <rguenther@suse.de>
1323 * lto-wrapper.c (run_gcc): With -save-temps generate a
1324 user-visible ltrans filename. Fixup ltrans unit numbering.
1326 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
1328 * c-common.c (c_common_nodes_and_builtins): Replace use
1329 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
1330 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
1331 to ix86_enum_va_list.
1332 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
1333 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
1334 (TARGET_ENUM_VA_LIST_P): Add hook description.
1335 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
1336 * target.h (gcc_target): Add enum_va_list hook.
1339 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
1340 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
1341 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
1343 2010-05-28 Alan Modra <amodra@gmail.com>
1346 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
1347 emit_library_call machinery to set up __tls_get_addr calls.
1349 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1351 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
1353 2010-05-28 Dodji Seketeli <dodji@redhat.com>
1355 Revert fix for PR c++/44188
1356 * c-common.c (is_typedef_decl): Revert the moving of this
1358 * tree.c (is_typedef_decl): ... here.
1359 (typdef_variant_p): Revert the moving of this definition
1360 here from gcc/cp/tree.c.
1361 * c-common.h (is_typedef_decl): Revert the moving of this
1363 * tree.h (is_typedef_decl): ... here.
1364 (typedef_variant_p): Revert the moving of this declaration here
1365 from gcc/cp/cp-tree.h
1366 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
1367 (gen_tagged_type_die): Revert the splitting out of ...
1368 (gen_type_die_with_usage): ... this function. Revert the anonymous
1369 tagged type handling.
1370 (gen_typedef_die): Revert emitting DW_TAG_typedef for
1371 typedefs naming anonymous tagged types.
1373 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
1375 * config/rs6000/rs6000-modes.def (PSImode): Delete.
1377 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
1379 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
1380 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
1382 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
1384 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
1385 XER_REGS to CA_REGS throughout.
1386 * config/rs6000/rs6000.h: Same.
1387 (ADDITIONAL_REGISTER_NAMES): Add "xer".
1388 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
1389 that mode_iterator "P" is the size for arithmetic carries as well.
1390 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
1392 2010-05-28 Jakub Jelinek <jakub@redhat.com>
1395 * combine.c (struct rtx_subst_pair): Define unconditionally.
1396 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
1397 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
1398 Call make_compound_operation on pair->to.
1399 (propagate_for_debug): Don't call make_compound_operation here.
1400 Always use simplify_replace_fn_rtx.
1402 2010-05-27 Sterling Augustine <sterling@tensilica.com>
1404 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
1405 * config/xtensa/xtensa.c (override_options): Check
1406 TARGET_FORCE_NO_PIC and set flag_pic.
1407 * config/xtensa/xtensa.opt: Document -mforce-no-pic
1409 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
1412 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
1413 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
1415 2010-05-27 Joseph Myers <joseph@codesourcery.com>
1417 * diagnostic-core.h: New. Contents moved from diagnostic.h and
1419 * diagnostic.c: Don't include toplev.h.
1420 (progname): Define. Moved from toplev.c.
1421 (seen_error): New function.
1422 * diagnostic.h: Include diagnostic-core.h.
1423 (diagnostic_t, emit_diagnostic): Don't declare here.
1424 * toplev.c (progname): Move to toplev.c.
1425 (emit_debug_global_declarations, compile_file, finalize,
1426 do_compile, toplev_main): Use seen_error.
1427 * toplev.h: Include diagnostic-core.h.
1428 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
1429 internal_error, warning, warning_at, error, error_n, error_at,
1430 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
1431 verbatim, fnotice, progname): Move to diagnostic-core.h.
1432 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
1433 (expand_builtin_expect): Use seen_error.
1434 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
1435 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
1436 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
1437 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
1438 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
1439 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
1440 errorcount for errors.
1441 * c-opts.c (c_common_finish): Use seen_error.
1442 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
1443 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
1444 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
1445 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
1446 (get_coverage_counts): Use seen_error.
1447 * dwarf2out.c (dwarf2out_finish): Use seen_error.
1448 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
1449 gimplify_body): Use seen_error.
1450 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
1451 * ipa-pure-const.c (gate_pure_const): Use seen_error.
1452 * ipa-reference.c (gate_reference): Use seen_error.
1453 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
1454 * lambda-code.c: Include diagnostic-core.h instead of
1456 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
1457 * lto-compress.c: Include diagnostic-core.h instead of
1459 * lto-section-in.c: Include diagnostic-core.h instead of
1461 * lto-streamer-out.c: Include diagnostic-core.h instead of
1463 * lto-streamer.c: Include diagnostic-core.h instead of
1465 (gate_lto_out): Use seen_error.
1466 * matrix-reorg.c: Include diagnostic-core.h instead of
1468 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
1469 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
1470 (gate_expand_omp, lower_omp_1): Use seen_error.
1471 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
1472 (rest_of_decl_compilation, rest_of_type_compilation,
1473 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
1474 * tree-cfg.c (label_to_block_fn): Use seen_error.
1475 * tree-inline.c (optimize_inline_calls): Use seen_error.
1476 * tree-mudflap.c (mudflap_finish_file): Use
1478 * tree-optimize.c (gate_all_optimizations,
1479 gate_all_early_local_passes, gate_all_early_optimizations): Use
1481 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
1482 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
1483 (varpool_remove_unreferenced_decls,
1484 varpool_assemble_pending_decls): Use seen_error.
1485 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
1486 (TOPLEV_H, DIAGNOSTIC_H): Update.
1487 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
1488 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
1489 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
1490 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
1491 coverage.o, lambda-code.o): Update dependencies.
1493 2010-05-25 Dodji Seketeli <dodji@redhat.com>
1496 * c-common.c (is_typedef_decl): Move this definition ...
1497 * tree.c (is_typedef_decl): ... here.
1498 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
1499 * c-common.h (is_typedef_decl): Move this declaration ...
1500 * tree.h (is_typedef_decl): ... here.
1501 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
1502 * dwarf2out.c (is_naming_typedef_decl): New function.
1503 (gen_tagged_type_die): Split out of ...
1504 (gen_type_die_with_usage): ... this function. When an anonymous
1505 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
1506 is emitted for the typedef.
1507 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
1508 anonymous tagged types.
1510 2010-05-27 Jason Merrill <jason@redhat.com>
1512 * print-tree.c (debug_vec_tree): New fn.
1513 (print_vec_tree): New fn.
1514 * tree.h: Declare them.
1515 * gdbinit.in (pvt): New command.
1517 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
1519 * gdbinit.in (pdd): New command.
1521 2010-05-27 Jan Hubicka <jh@suse.cz>
1523 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
1524 (update_caller_keys): Return early if there are no callers;
1525 only update fibheap when decresing the key.
1526 (update_callee_keys): Avoid recursion.
1527 (decide_inlining_of_small_functions): When badness does not match;
1528 re-insert into fibheap.
1530 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
1532 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
1533 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
1534 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
1535 (ALL_HOST_OBJS): Now a union of the above two.
1536 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
1537 all files in ALL_HOST_FRONTEND_OBJS.
1538 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
1540 * c-common.c: Pretend to be a backend file by undefining
1541 IN_GCC_FRONTEND (still need rtl.h here).
1543 2010-05-27 Jan Hubicka <jh@suse.cz>
1545 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
1546 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
1548 2010-05-27 Jan Hubicka <jh@suse.cz>
1550 * sched-ebb.c: Rename struct deps to struct deps_desc.
1552 * sel-sched-ir.c: Likewise.
1553 * sched-deps.c: Likewise.
1554 * sched-int.h: Likewise.
1555 * sched-rgn.c: Likewise.
1557 2010-05-27 Jon Beniston <jon@beniston.com>
1560 * config/lm32/lm32.h: Remove definition of
1561 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
1563 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
1566 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
1568 2010-05-27 Richard Guenther <rguenther@suse.de>
1570 PR tree-optimization/44284
1571 * tree-vect-stmts.c (vectorizable_assignment): Handle
1572 sign-changing conversions as simple copy.
1574 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
1576 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
1578 (__gthread_active_p): Check for pthread_create if compiling against
1581 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
1583 Support compilation for Android platform. Reimplement -mandroid.
1585 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
1586 (*android*): Set ANDROID_DEFAULT.
1587 (arm*-*-linux*): Include linux-android.h.
1588 (arm*-*-eabi*): Don't include previous -mandroid implementation.
1589 * config/arm/eabi.h: Remove, move Android-specific parts ...
1590 * config/linux-android.h: ... here. New file.
1591 * config/arm/eabi.opt: Rename to ...
1592 * config/linux-android.opt: ... this.
1593 (mandroid): Allow -mno-android option. Initialize based on
1595 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
1596 Move logic to corresponding LINUX_TARGET_* macros.
1597 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
1598 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
1599 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
1600 Android definitions.
1601 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
1602 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
1605 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
1607 Add support for Bionic C library
1609 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
1611 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
1612 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
1614 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
1615 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
1616 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
1617 to support multiple C libraries. Handle Bionic.
1618 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
1619 (BIONIC_DYNAMIC_LINKER64): Define.
1620 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
1622 (TARGET_HAS_SINCOS): Enable for Bionic.
1624 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
1625 the last option specified on command line take effect.
1626 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
1628 (mglibc, muclibc): Update.
1630 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
1631 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
1634 * doc/invoke.texi (-mglibc, -muclibc): Update.
1635 (-mbionic): Document.
1637 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1639 * c-common.h (c_register_addr_space): Add prototype.
1640 (ADDR_SPACE_KEYWORD): Remove.
1641 * c-common.c (c_register_addr_space): New function.
1642 (c_addr_space_name): Reimplement.
1643 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
1645 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
1646 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
1648 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
1649 Remove TARGET_ADDR_SPACE_KEYWORDS.
1651 2010-05-27 Joseph Myers <joseph@codesourcery.com>
1653 * input.c: New file.
1654 * input.h (main_input_filename): Move declaration to toplev.h.
1655 * toplev.c (input_location, line_table): Move to input.c
1656 * toplev.h (main_input_filename): Move declaration from input.h.
1657 * tree.c (expand_location): Move to input.c.
1658 * Makefile.in (OBJS-common): Add input.o.
1659 (input.o): Add dependencies.
1661 2010-05-27 Richard Guenther <rguenther@suse.de>
1663 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
1664 for non-existant files.
1665 (fork_execute): Mark args_name file as deleted.
1667 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
1670 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
1671 (narrow_signed_type): Likewise.
1673 2010-05-26 Jan Hubicka <jh@suse.cz>
1675 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
1676 edge only when checking is enabled; check using former_clone_of;
1677 check inline clones too.
1678 (cgraph_materialize_clone): Record former_clone_of pointer.
1679 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
1680 combining redirections; dump args_to_skip bitmap
1681 (cgraph_materialize_all_clones): Do no redirection here.
1682 * ipa-inline.c (inline_transform): Do redirection here.
1683 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
1686 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
1688 * config/avr/avr-c.c: Do not include regs.h.
1689 Include cpplib.h for cpp_define and tree.h for c-common.h.
1690 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
1691 * config/avr/t-avr: Fix dependencies for avr-c.o.
1693 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
1695 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
1696 string instead of SYMBOL_REF rtx.
1697 * rtl.h (set_stack_check_libfunc): Move prototype from here...
1698 * libfuncs.h: ...to here. Adjust for explow.c change.
1700 2010-05-26 Joseph Myers <joseph@codesourcery.com>
1702 * pretty-print.c: Don't include ggc.h.
1703 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
1704 (identifier_to_locale): Use them for allocation.
1705 * pretty-print.h (identifier_to_locale_alloc,
1706 identifier_to_locale_free): Declare.
1707 * toplev.c (alloc_for_identifier_to_locale): New.
1708 (general_init): Set identifier_to_locale_alloc and
1709 identifier_to_locale_free.
1710 * Makefile.in (pretty-print.o): Update dependencies.
1712 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
1714 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
1715 pointer types if they have different alignment or mode.
1717 2010-05-26 Anatoly Sokolov <aesok@post.ru>
1719 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
1720 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
1721 * config/sparc/sparc-protos.h (function_value): Remove declaration.
1722 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
1723 sparc_function_value_regno_p): New functions.
1724 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1725 TARGET_FUNCTION_VALUE_REGNO_P): Define.
1726 (function_value): Rename to...
1727 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
1728 argument to 'outgoing'.
1729 (function_arg_record_value, function_arg_union_value,
1730 function_arg_vector_value): Update comment.
1732 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
1734 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
1735 (fde_needed_for_eh_p): New predicate.
1736 (output_call_frame_info): Use it throughout to decide whether FDEs
1737 are needed for EH purpose.
1738 (dwarf2out_begin_prologue): Reorder assignments.
1740 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
1742 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
1743 special case loop->header.
1744 (is_predicated): New.
1745 (if_convertible_loop_p): Call it.
1747 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
1749 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
1750 iterator in parameter. Do not generate code during the analysis.
1751 (tree_if_convert_cond_stmt): Removed.
1752 (tree_if_convert_stmt): Removed.
1753 (predicate_bbs): New.
1754 (if_convertible_loop_p): Call predicate_bbs.
1755 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
1756 now contains all the analysis part.
1758 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
1760 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
1761 statements in the analysis part.
1762 (tree_if_convert_stmt): Update comment.
1763 (remove_conditions_and_labels): New.
1764 (combine_blocks): Call remove_conditions_and_labels.
1765 (tree_if_conversion): Update comment.
1767 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
1769 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
1770 than 2 predecessors or more than 2 successors.
1772 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
1774 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
1775 of loops in which the data dependence analysis fails.
1777 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
1779 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
1780 CDI_POST_DOMINATORS.
1781 (tree_if_conversion): Same.
1783 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
1785 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
1787 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
1789 * tree-if-conv.c: Update copyright years. Fix comments.
1792 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
1794 * builtin-types.def (BT_INT128): New primitive type.
1795 (BT_UINT128): Likewise.
1796 * c-common.c (c_common_r): Add __int128 keyword.
1797 (c_common_type_for_size): Handle __int128.
1798 (c_common_type_for_mode): Likewise.
1799 (c_common_signed_or_unsigned_type): Likewise.
1800 (c_common_nodes_and_builtins): Add builtin type
1801 if target supports 128-bit integer scalar.
1802 * c-common.h (enum rid): Add RID_INT128.
1803 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
1804 if target supports 128-bit integer scalar.
1805 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
1806 (finish_declspecs): Likewise.
1807 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
1808 (c_token_starts_declspecs): Likewise.
1809 (c_parser_declspecs): Likewise.
1810 (c_parser_attributes): Likewise.
1811 (c_parser_objc_selector): Likewise.
1812 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
1813 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
1814 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
1815 * tree.c (make_or_reuse_type): Likewise.
1816 (make_unsigned_type): Likewise.
1817 (build_common_tree_nodes_2): Likewise.
1818 * tree.h (enum integer_type_kind): Add itk_int128 and
1819 itk_unsigned_int128.
1820 (int128_integer_type_node): New define.
1821 (int128_unsigned_type_node): New define.
1822 * doc/extend.texi: Add documentation about __int128 type.
1824 2010-05-26 Richard Guenther <rguenther@suse.de>
1826 * tree-ssa-sccvn.c (copy_nary): Adjust.
1827 (copy_phis): Rename to ...
1828 (copy_phi): ... this. Adjust.
1829 (copy_references): Rename to ...
1830 (copy_reference): ... this. Adjust.
1831 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
1832 result into the valid table.
1834 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
1836 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
1837 insn-config.h, insn-codes.h, recog.h, and optabs.h.
1839 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1841 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
1843 2010-05-26 Richard Guenther <rguenther@suse.de>
1845 * opts.c (common_handle_option): Handle OPT_Ofast.
1847 2010-05-26 Joseph Myers <joseph@codesourcery.com>
1849 * diagnostic.c: Don't include opts.h.
1850 (permissive_error_option): Define.
1851 (diagnostic_initialize): Take n_opts parameter. Allocate memory
1852 for classify_diagnostic. Don't use memset for
1853 classify_diagnostic. Initialize new and recently added fields.
1854 (diagnostic_classify_diagnostic): Use context->n_opts instead of
1856 (diagnostic_report_diagnostic): Pass context parameter to
1857 diagnostic_report_warnings_p. Use option_enabled and option_name
1859 (emit_diagnostic): Use permissive_error_option.
1860 (permerror): Likewise.
1861 * diagnostic.h: Don't include options.h.
1862 (struct diagnostic_context): Add n_opts, opt_permissive,
1863 inhibit_warnings, warn_system_headers, option_enabled and
1864 option_name fields. Change classify_diagnostic to a pointer.
1865 * opts-diagnostic.h: New file.
1866 * opts.c: Include opts-diagnostic.h.
1867 (common_handle_option): Set global_dc fields for -Wfatal-errors,
1868 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
1869 (option_name): New function.
1870 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
1871 (c_common_handle_option): Set global_dc->permissive for
1873 * c-common.c (c_cpp_error): Save and restore
1874 global_dc->warn_system_headers, not variable warn_system_headers.
1875 * toplev.c: Include opts-diagnostic.h.
1876 (general_init): Update call to diagnostic_initialize. Set
1877 global_dc->show_column, global_dc->option_enabled and
1878 global_dc->option_name.
1879 (process_options): Don't set global_dc fields here.
1880 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
1881 (diagnostic.o, opts.o, toplev.o): Update dependencies.
1883 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
1885 * config/picochip/picochip.md (movsi): Split a movsi from a
1888 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1890 * ggc-zone.c: Update copyright year.
1891 (poison_region): Mark memory for Valgrind as undefined before
1892 memset () call and inaccessible afterwards.
1893 (ggc_pch_total_size): Change type of i to int.
1895 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1897 * ggc-common.c (ggc_free_overhead): Allow empty slot.
1899 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1901 * ggc-common.c: Update copyright year.
1902 (ggc_rlimit_bound): Remove prototype. Compile only if
1903 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
1904 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
1905 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
1906 (ggc_min_heapsize_heuristic): Likewise.
1908 2010-05-26 Richard Guenther <rguenther@suse.de>
1910 PR rtl-optimization/44164
1911 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
1912 no-common access-path disambiguation.
1913 (indirect_ref_may_alias_decl_p): Adjust.
1914 (indirect_refs_may_alias_p): Likewise.
1915 (refs_may_alias_p_1): Likewise.
1917 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
1919 * c-typeck.c: Do not include expr.h.
1921 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
1923 * rtl.h (decl_default_tls_model): Move prototype from here...
1924 * output.h: ...to here.
1925 * c-decl.c: Do not include rtl.h.
1926 * c-pragma.c: Likewise.
1927 * c-parser.c: Likewise.
1928 * c-gimplify.c: Likewise. And also not hard-reg-set.
1929 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
1930 FIXME note for it. Add a FIXME note for expr.h.
1931 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
1932 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
1935 2010-05-26 Jakub Jelinek <jakub@redhat.com>
1938 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
1939 or total_size is larger than red zone size for non-V4 ABI, emit a
1940 stack_tie resp. frame_tie insn before stack pointer restore.
1941 * config/rs6000/rs6000.md (frame_tie): New insn.
1943 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
1945 * function.h (struct function): Add can_throw_non_call_exceptions bit.
1946 * lto-streamer-in.c (input_function): Stream it in.
1947 * lto-streamer-out.c (output_function): Stream it out.
1948 * function.c (allocate_struct_function): Set it.
1949 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
1950 for flag_non_call_exceptions.
1951 * cfgbuild.c (control_flow_insn_p): Likewise.
1952 (make_edges): Likewise.
1953 * cfgexpand.c (expand_stack_alignment): Likewise.
1954 * combine.c (distribute_notes): Likewise.
1955 * cse.c (cse_extended_basic_block): Likewise.
1956 * except.c (insn_could_throw_p): Likewise.
1957 * gcse.c (simple_mem): Likewise.
1958 * ipa-pure-const.c (check_call): Likewise.
1959 (check_stmt ): Likewise.
1960 * lower-subreg.c (lower-subreg.c): Likewise.
1961 * optabs.c (emit_libcall_block): Likewise.
1962 (prepare_cmp_insn): Likewise.
1963 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
1964 * postreload.c (rest_of_handle_postreload): Likewise.
1965 * reload1.c (reload_as_needed): Likewise.
1966 (emit_input_reload_insns): Likewise.
1967 (emit_output_reload_insns): Likewise.
1968 (fixup_abnormal_edges): Likewise.
1969 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
1970 * store-motion.c (find_moveable_store): Likewise.
1971 * tree-eh.c (stmt_could_throw_p): Likewise.
1972 (tree_could_throw_p): Likewise.
1973 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
1974 * config/arm/arm.c (arm_expand_prologue): Likewise.
1975 (thumb1_expand_prologue): Likewise.
1976 * config/rx/rx.md (cbranchsf4): Likewise.
1978 * config/s390/s390.c (s390_emit_prologue): Likewise.
1979 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
1980 (inline_forbidden_into_p): New predicate.
1981 (expand_call_inline): Use it to forbid inlining.
1982 (tree_can_inline_p): Likewise.
1984 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
1986 * config/i386/i386-c.c: Do not include rtl.h.
1987 * config/i386/t-i386: Update dependencies.
1989 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
1991 * attribs.c: Do not include rtl.h.
1992 * Makefile.in: Update dependencies.
1994 2010-05-25 Anatoly Sokolov <aesok@post.ru>
1996 * double-int.h (double_int_and): New.
1997 * combine.c (try_combine): Clean up, use double_int_* and
1998 immed_double_int_const functions.
2000 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2002 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
2003 stderr to /dev/null instead of grep -q.
2004 * configure: Regenerate.
2006 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
2008 * Makefile.in (EXCEPT_H): Fix typo.
2010 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
2012 * ira-build.c (update_conflict_hard_reg_costs): New.
2013 (ira_build): Call update_conflict_hard_reg_costs.
2015 2010-05-25 Jakub Jelinek <jakub@redhat.com>
2018 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
2020 (intersect_loc_chains): Walk the s2var's loc_chain together
2021 with s1node chain as long as the locations are equal, don't
2022 call find_loc_in_1pdv in that case.
2025 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
2026 (copy_bind_expr): ... instead of here.
2027 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
2028 if the block hasn't been remapped.
2029 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
2030 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
2032 2010-05-25 Richard Guenther <rguenther@suse.de>
2035 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
2036 out-of-bounds array accesses.
2038 2010-05-25 Richard Guenther <rguenther@suse.de>
2040 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
2041 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
2042 (run_gcc): Re-organize to make cleanup easier.
2044 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2046 * config/s390/s390.c (optimization_options): Fix and move the
2047 flag_prefetch_loop_arrays override ...
2048 (override_options): ... here.
2050 2010-05-25 Joseph Myers <joseph@codesourcery.com>
2052 * diagnostic.c: Don't include plugin.h.
2053 (diagnostic_report_diagnostic): Don't handle plugins specially
2054 here. Pass context to internal_error callback.
2055 * diagnostic.h (struct diagnostic_context): Add context parameter
2056 to internal_error callback.
2057 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
2058 * plugin.h (struct diagnostic_context): Declare.
2059 (warn_if_plugins, plugins_internal_error_function): Declare.
2060 * toplev.c (general_init): Set global_dc->internal_error.
2061 * Makefile.in (diagnostic.o): Update dependencies.
2063 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
2065 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
2066 * config/rs6000/t-darwin64: New.
2067 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
2070 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
2073 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
2074 match the original (and intended) behaviour before r159557. This
2075 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
2078 2010-05-25 Richard Guenther <rguenther@suse.de>
2080 * doc/invoke.texi: Document -Ofast.
2081 * target.h (struct gcc_target): Add handle_ofast.
2082 * target-def.h (TARGET_HANDLE_OFAST): Add.
2083 (TARGET_INITIALIZER): Adjust.
2084 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
2085 * common.opt (Ofast): Add.
2087 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
2089 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
2090 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
2092 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
2095 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
2096 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
2097 false_rtx. Use false_rtx to compute the correct *ptest for reversed
2098 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
2100 2010-05-25 Jakub Jelinek <jakub@redhat.com>
2102 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
2103 DW_OP_minus with negated offset instead of DW_OP_plus.
2104 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
2106 2010-05-25 Wei Guozhi <carrot@google.com>
2108 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
2109 tst instruction and a new alternative.
2110 * config/arm/constraints.md (Pu): New constraint.
2112 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
2114 * function.c (assign_stack_local_1): Initialize variable
2115 to avoid warning when bootstrapping at -O3.
2117 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
2119 * configure.ac (all_lang_makefiles): Remove everything related to it.
2120 * configure: Regenerate.
2121 * Makefile.in: Fix reference to ada Make-lang.in.
2122 Remove support for LANG_MAKEFILES.
2124 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
2125 Sandra Loosemore <sandra@codesourcery.com>
2127 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
2128 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
2129 description. Add arm_neon_fp16_ok.
2130 (Add Options): Add arm_neon and arm_neon_fp16.
2132 2010-05-24 Joseph Myers <joseph@codesourcery.com>
2134 * diagnostic.c: Don't include flags.h.
2135 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
2136 context parameters. Check flags in the context passed as a parameter.
2137 (diagnostic_build_prefix): Add context parameter. Check
2138 show_column flag in context.
2139 (diagnostic_action_after_output): Check fatal_errors flag in context.
2140 (diagnostic_report_current_module): Check show_column flag in context.
2141 (default_diagnostic_starter): Update call to
2142 diagnostic_build_prefix.
2143 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
2144 (emit_diagnostic): Pass context to permissive_error_kind.
2145 (permerror): Pass context to permissive_error_kind.
2146 * diagnostic.h (struct diagnostic_context): Add show_column,
2147 pedantic_errors, permissive and fatal_errors fields.
2148 (diagnostic_build_prefix): Update prototype.
2150 * toplev.c (process_options): Set flags in global_dc from
2151 flag_show_column, flag_pedantic_errors, flag_permissive,
2153 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
2154 to diagnostic_build_prefix.
2155 * Makefile.in (diagnostic.o): Update dependencies.
2157 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
2159 * config/i386/ia32intrin.h (__crc32q): Define only if
2160 __SSE4_2__ is defined.
2162 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
2166 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
2167 DECL_VISIBILITY_SPECIFIED.
2168 (emutls_decl): Set DECL_PRESERVE_P and copy
2169 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
2170 (emutls_finalize_control_var): New callback.
2171 (emutls_finish): Finalize emutls control variables.
2172 * toplev.c (compile_file): Move the call to emutls_finish ()
2173 before varpool_assemble_pending_decls ().
2175 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
2177 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
2178 added to the preprocessor condition.
2180 2010-05-24 Paul Brook <paul@codesourcery.com>
2182 * gengtype-lex.l: Add HARD_REG_SET.
2183 * expr.c (expand_expr_real_1): Record writes to hard registers.
2184 * function.c (rtl_data): Add asm_clobbers.
2185 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
2186 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
2187 Use crtl->asm_clobbers.
2189 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2191 * doc/makefile.texi (Makefile): Mention stages 'profile'
2192 and 'feedback' for profiledbootstrap.
2194 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
2197 * config/i386/i386.c (def_builtin): Properly check
2198 OPTION_MASK_ISA_64BIT.
2200 2010-05-23 Joseph Myers <joseph@codesourcery.com>
2202 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
2203 typedefs with different but compatible types. Allow duplicate
2204 typedefs with the same type except for pedantic non-C1X, but give
2205 warning for variably modified types.
2206 * c-typeck.c (tagged_types_tu_compatible_p,
2207 function_types_compatible_p, type_lists_compatible_p,
2208 comptypes_internal): Add parameter different_types_p; set
2209 *different_types_p for different but compatible types. All
2211 (comptypes_check_different_types): New.
2212 * c-tree.h (comptypes_check_different_types): Declare.
2214 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
2216 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
2217 * jump.c: Include basic-block.h.
2218 * profile.c: Likewise.
2219 * tree-profile.c: Likewise.
2220 * coverage.c: Likewise.
2221 * basic-block.h (optimize_function_for_size_p): Move to function.h.
2222 (optimize_function_for_speed_p): Likewise.
2223 * function.h (optimize_function_for_size_p,
2224 optimize_function_for_speed_p): Moved here from basic-block.h.
2225 * Makefile.in: Update dependencies.
2227 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2229 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
2230 before calling make; allow override through $MAKE.
2231 * doc/invoke.texi (Optimize Options): Document override.
2233 2010-05-23 Anatoly Sokolov <aesok@post.ru>
2235 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
2236 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
2237 (rs6000_mode_dependent_address_ptr): Make static.
2238 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
2239 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
2242 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
2245 * config/i386/i386.c: Make sure that the correct regparm is passed.
2247 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
2249 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
2250 * sbitmap.c: ...to here to internalize sbitmap element access.
2251 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
2252 Explain why basic-block.h is included.
2253 * function.h: Include tm.h for CUMULATIVE_ARGS.
2254 * Makefile.in: Update dependencies.
2256 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
2258 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
2260 * sbitmap.h (struct sbitmap_def): Do not typedef here.
2261 * sbitmap.c: Include sbitmap.h.
2262 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
2263 hard-reg-set.h. Split everything related to regsets out from here...
2264 * regset.h: ...to here. New file.
2265 * df.h: Include regset.h and sbitmap.h.
2266 * tree-flow.h: Likewise.
2267 * cfgloop.h: Likewise.
2268 * except.h: Do not include sbitmap.h. Include hashtab.h.
2269 * cgraph.h: Include vec.h and function.h.
2270 * reload.h (struct insn_chain): Change types of live_throughout
2271 and dead_or_set from regset_head to bitmap_head.
2272 (compute_use_by_pseudos): Be defined also if regset.h is not included.
2273 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
2274 spilled_regs from regset_head to bitmap_head to avoid dependency
2276 * sel-sched-ir.h: Include regset.h.
2277 * reload.c: Include df.h before reload.h.
2278 * caller-save.c: Likewise.
2279 * reload1.c: Likewise.
2281 (mark_elimination): Update type of r to bitmap, consistent with
2283 * dominance.c: Include bitmap.h.
2284 * modulo-sched.c: Include df.h.
2285 * cfganal.c: Include bitmap.h and sbitmap.h.
2286 * cfgbuild.c: Include sbitmap.h.
2287 * lcm.c: Include sbitmap.h.
2288 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
2289 * domwalk.c: Include sbitmap.h, exclude ggc.h.
2290 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
2291 * cselib.c: Include bitmap.h.
2292 * tree-optimize.c: Include regset.h.
2293 * stmt.c: Include bitmap.h.
2294 * Makefile.in: Update dependencies.
2296 2010-05-22 Jan Hubicka <jh@suse.cz>
2298 * cgraph.h (struct varpool_node): Add same_comdat_group.
2299 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
2301 (output_varpool): Update call of lto_output_varpool_node.
2302 (input_varpool): Read same_comdat_group pointer.
2303 (input_varpool_1): Fixup same_comdat_group pointer.
2304 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
2305 group is needed, all are.
2306 * varpool.c (varpool_remove_node): Remove node from same comdat group
2308 (varpool_analyze_pending_decls): Walk same comdat groups.
2310 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
2312 * rtl.h (union rtunion_def): Remove rt_bit member.
2313 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
2314 * print-rtl (print_rtx): Do not print the member.
2315 * gengtype.c (adjust_field_rtx_def): Do not handle it.
2316 * gengenrtl.c (type_from_format): Likewise.
2317 (accessor_from_format): Likewise.
2319 2010-05-22 Joseph Myers <joseph@codesourcery.com>
2321 * dbgcnt.c: Include toplev.h instead of errors.h.
2322 * ira-emit.c: Don't include errors.h.
2323 * ira.c: Include toplev.h instead of errors.h.
2324 * lto-compress.c: Include toplev.h instead of errors.h.
2325 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
2326 ira.o, dbgcnt.o): Update dependencies.
2328 2010-05-22 Richard Guenther <rguenther@suse.de>
2330 * gimple.c (gimple_types_compatible_p): Check type qualifications
2331 before merging pointer to complete and pointer to incomplete type.
2332 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
2333 we use our own resolution algorithm. The gold linker plugin
2334 doesn't do the job we want it to do here.
2336 2010-05-22 Anatoly Sokolov <aesok@post.ru>
2338 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
2339 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
2340 (sparc_mode_dependent_address_p): New function.
2342 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
2344 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
2346 * timevar.c: Do not include any core headers.
2347 (timevar_print): De-i18n-ize.
2348 (print_time): Likewise.
2349 * timevar.h (timevar_push, timevar_pop): Make inline functions.
2351 2010-05-21 Joseph Myers <joseph@codesourcery.com>
2353 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
2355 (diagnostic_initialize): Initialize x_data not last_function.
2356 (diagnostic_report_current_function): Move to tree-diagnostic.c.
2357 (default_diagnostic_starter): Call
2358 diagnostic_report_current_module not
2359 diagnostic_report_current_function.
2360 (diagnostic_report_diagnostic): Initialize x_data not
2362 (verbatim): Likewise.
2363 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
2365 (struct diagnostic_context): Change last_function to x_data.
2366 (diagnostic_auxiliary_data): Replace with
2367 diagnostic_context_auxiliary_data and
2368 diagnostic_info_auxiliary_data.
2369 (diagnostic_last_function_changed, diagnostic_set_last_function,
2370 diagnostic_report_current_function): Move to tree-diagnostic.h.
2371 (print_declaration, dump_generic_node, print_generic_stmt,
2372 print_generic_stmt_indented, print_generic_expr,
2373 print_generic_decl, debug_c_tree, dump_omp_clauses,
2374 print_call_name, debug_generic_expr, debug_generic_stmt,
2375 debug_tree_chain, default_tree_printer): Move to
2376 tree-pretty-print.h.
2377 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
2378 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
2379 gimple-pretty-print.h.
2380 * pretty-print.c: Don't include tree.h
2381 (pp_base_format): Don't handle %K here.
2382 (pp_base_tree_identifier): Move to tree-pretty-print.c.
2383 * pretty-print.h (text_info): Change abstract_origin to x_data.
2384 (pp_tree_identifier, pp_unsupported_tree,
2385 pp_base_tree_identifier): Move to tree-pretty-print.h.
2386 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
2387 tree-pretty-print.h: New files.
2388 * tree-pretty-print.c: Include tree-pretty-print.h.
2389 (percent_K_format): New. Moved from pretty-print.c.
2390 (pp_base_tree_identifier): Move from pretty-print.c.
2391 * c-objc-common.c: Include tree-pretty-print.h.
2392 (c_tree_printer): Handle %K here.
2393 * langhooks.c: Include tree-diagnostic.h.
2394 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
2395 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
2396 (default_tree_printer): Handle %K using percent_K_format.
2397 (general_init): Use default_tree_diagnostic_starter.
2398 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
2399 (free_lang_data): Use default_tree_diagnostic_starter.
2400 * c-pretty-print.c: Include tree-pretty-print.h.
2401 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
2402 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
2403 * dwarf2out.c: Include tree-pretty-print.h.
2404 * except.c: Include tree-pretty-print.h.
2405 * gimple-pretty-print.c: Include tree-pretty-print.h and
2406 gimple-pretty-print.h.
2407 * gimplify.c: Include tree-pretty-print.h.
2408 * graphite-poly.c: Include tree-pretty-print.h and
2409 gimple-pretty-print.h.
2410 * ipa-cp.c: Include tree-pretty-print.h.
2411 * ipa-inline.c: Include gimple-pretty-print.h.
2412 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
2413 * ipa-pure-const.c: Include gimple-pretty-print.h.
2414 * ipa-struct-reorg.c: Include tree-pretty-print.h and
2415 gimple-pretty-print.h.
2416 * ipa-type-escape.c: Include tree-pretty-print.h.
2417 * print-rtl.c: Include tree-pretty-print.h.
2418 * print-tree.c: Include gimple-pretty-print.h.
2419 * sese.c: Include tree-pretty-print.h.
2420 * tree-affine.c: Include tree-pretty-print.h.
2421 * tree-browser.c: Include tree-pretty-print.h.
2422 * tree-call-cdce.c: Include gimple-pretty-print.h.
2423 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
2424 * tree-chrec.c: Include tree-pretty-print.h.
2425 * tree-data-ref.c: Include tree-pretty-print.h and
2426 gimple-pretty-print.h.
2427 * tree-dfa.c: Include tree-pretty-print.h.
2428 * tree-if-conv.c: Include tree-pretty-print.h and
2429 gimple-pretty-print.h.
2430 * tree-inline.c: Include tree-pretty-print.h.
2431 * tree-into-ssa.c: Include tree-pretty-print.h and
2432 gimple-pretty-print.h.
2433 * tree-nrv.c: Include tree-pretty-print.h.
2434 * tree-object-size.c: Include tree-pretty-print.h and
2435 gimple-pretty-print.h.
2436 * tree-outof-ssa.c: Include tree-pretty-print.h and
2437 gimple-pretty-print.h.
2438 * tree-parloops.c: Include tree-pretty-print.h and
2439 gimple-pretty-print.h.
2440 * tree-predcom.c: Include tree-pretty-print.h and
2441 gimple-pretty-print.h.
2442 * tree-scalar-evolution.c: Include tree-pretty-print.h and
2443 gimple-pretty-print.h.
2444 * tree-sra.c: Include tree-pretty-print.h.
2445 * tree-ssa-address.c: Include tree-pretty-print.h.
2446 * tree-ssa-alias.c: Include tree-pretty-print.h.
2447 * tree-ssa-ccp.c: Include tree-pretty-print.h and
2448 gimple-pretty-print.h.
2449 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
2450 * tree-ssa-copy.c: Include tree-pretty-print.h and
2451 gimple-pretty-print.h.
2452 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
2453 * tree-ssa-dce.c: Include tree-pretty-print.h and
2454 gimple-pretty-print.h.
2455 * tree-ssa-dom.c: Include tree-pretty-print.h and
2456 gimple-pretty-print.h.
2457 * tree-ssa-dse.c: Include gimple-pretty-print.h.
2458 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
2459 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
2460 * tree-ssa-live.c: Include tree-pretty-print.h and
2461 gimple-pretty-print.h.
2462 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
2463 gimple-pretty-print.h.
2464 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
2465 gimple-pretty-print.h.
2466 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
2467 gimple-pretty-print.h.
2468 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
2469 gimple-pretty-print.h.
2470 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
2471 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
2472 * tree-ssa-operands.c: Include tree-pretty-print.h and
2473 gimple-pretty-print.h.
2474 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
2475 gimple-pretty-print.h.
2476 * tree-ssa-pre.c: Include tree-pretty-print.h and
2477 gimple-pretty-print.h.
2478 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
2479 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
2480 gimple-pretty-print.h.
2481 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
2482 gimple-pretty-print.h.
2483 * tree-ssa-sink.c: Include gimple-pretty-print.h.
2484 * tree-ssa-ter.c: Include tree-pretty-print.h and
2485 gimple-pretty-print.h.
2486 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
2487 * tree-ssa.c: Include tree-pretty-print.h and
2488 gimple-pretty-print.h.
2489 * tree-stdarg.c: Include gimple-pretty-print.h.
2490 * tree-switch-conversion.c: Include gimple-pretty-print.h.
2491 * tree-tailcall.c: Include tree-pretty-print.h and
2492 gimple-pretty-print.h.
2493 * tree-vect-data-refs.c: Include tree-pretty-print.h and
2494 gimple-pretty-print.h.
2495 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
2496 gimple-pretty-print.h.
2497 * tree-vect-loop.c: Include tree-pretty-print.h and
2498 gimple-pretty-print.h.
2499 * tree-vect-patterns.c: Include gimple-pretty-print.h.
2500 * tree-vect-slp.c: Include tree-pretty-print.h and
2501 gimple-pretty-print.h.
2502 * tree-vect-stmts.c: Include tree-pretty-print.h and
2503 gimple-pretty-print.h.
2504 * tree-vectorizer.c: Include tree-pretty-print.h.
2505 * tree-vrp.c: Include tree-pretty-print.h and
2506 gimple-pretty-print.h.
2507 * value-prof.c: Include tree-pretty-print.h and
2508 gimple-pretty-print.h.
2509 * var-tracking.c: Include tree-pretty-print.h.
2510 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
2511 (tree-diagnostic.o): New dependencies.
2512 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
2513 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
2514 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
2515 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
2516 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
2517 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
2518 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
2519 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
2520 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
2521 tree-ssa-address.o, tree-ssa-loop-niter.o,
2522 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
2523 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
2524 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
2525 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
2526 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
2527 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
2528 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
2529 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
2530 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
2531 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
2532 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
2533 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
2534 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
2535 tree-switch-conversion.o, var-tracking.o, value-prof.o,
2536 cfgexpand.o, pretty-print.o): Update dependencies.
2538 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
2540 * tree-ssa-structalias.c: Remove tm_p.h from include.
2542 2010-05-21 Jeff Law <law@redhat.com>
2544 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
2546 2010-05-21 Jason Merrill <jason@redhat.com>
2548 * tree-eh.c (cleanup_is_dead_in): New.
2549 (lower_try_finally): Don't generate a dead cleanup region.
2550 (lower_cleanup): Likewise.
2552 2010-05-21 Jakub Jelinek <jakub@redhat.com>
2555 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
2556 unchain each use from the cyclic next_regno_use chain first.
2558 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
2560 * real: Do not include gmp.h, mpfr.h, and mpc.h.
2561 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
2562 (real_value_negate, real_value_abs): New prototypes.
2563 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
2564 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
2565 new include file for interface between MPFR and REAL_VALUE_TYPE.
2566 * real.c: Include realmpfr.h.
2567 (real_arithmetic2): Remove legacy function.
2568 (real_value_negate): New.
2569 (real_value_abs): New.
2570 (mfpr_from_real, real_from_mpfr): Move from here...
2571 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
2572 * builtins.c: Include realmpfr.h.
2573 * fold-const.c: Include realmpfr.h.
2574 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
2575 (fold_negate_const): Likewise.
2576 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
2577 * toplev.c: Include realmpfr.h.
2578 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
2579 and real_value_negate.
2580 * fixed-value.c (check_real_for_fixed_mode): Likewise.
2581 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
2582 (vfp3_const_double_index): Likewise.
2583 (arm_print_operand): Likewise.
2584 * Makefile.in: Update dependencies.
2586 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2588 * config/s390/s390.c (override_options): Increase the default
2589 of max-completely-peel-times.
2591 2010-05-21 Julian Brown <julian@codesourcery.com>
2592 Mark Mitchell <mark@codesourcery.com>
2594 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
2595 sibling calls for Thumb-1.
2596 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
2597 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
2599 (*call_insn, *call_value_insn): Don't use for Thumb-2.
2600 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
2602 (return): New expander.
2603 (*arm_return): New name for ARM return insn.
2604 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
2606 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
2608 * config.gcc (sparc64-*-rtems*): New target.
2610 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
2612 * tree.c (build_function_decl_skip_args): Fix grammar.
2613 (build_function_type_list_1): Fix typos, adjust formatting.
2615 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
2617 * tree.h: Include real.h and fixed-value.h as basic datatypes.
2618 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
2619 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
2620 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
2621 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
2622 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
2623 tree-pretty-print.c, tree-loop-distribution.c,
2624 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
2625 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
2626 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
2627 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
2628 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
2629 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
2630 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
2631 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
2632 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
2633 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
2634 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
2635 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
2636 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
2637 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
2638 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
2639 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
2640 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
2641 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
2642 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
2643 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
2644 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
2645 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
2646 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
2647 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
2648 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
2649 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
2650 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
2651 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
2652 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
2653 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
2654 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
2655 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
2656 config/score/score7.c, config/score/score.c, config/arm/arm.c,
2657 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
2658 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
2659 config/bfin/bfin.c: Clean up redundant includes.
2660 * Makefile.in: Update accordingly.
2662 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
2665 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
2666 statement has no arguments.
2668 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
2671 * varasm.c (emutls_decl): Merge attributes to new decl.
2673 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
2676 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
2677 around the uniquized constructor if its type requires a conversion.
2679 2010-05-21 Jakub Jelinek <jakub@redhat.com>
2682 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
2683 at -O0 goto_locus of any of the incoming edges differs from
2684 goto_locus of outgoing edge, or gimple_location of any of the
2687 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
2689 * ira.c (ira_non_ordered_class_hard_regs): Define.
2690 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
2691 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
2692 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
2693 cost of unaligned hard regs when allocating multi-reg pseudos.
2695 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
2697 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
2698 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
2699 for TARGET_NO_FLOAT.
2700 * config/mips/mips.c (mips_file_start): Expand conditional expression
2701 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
2702 (mips_override_options): Move -mno-float override -msoft-float and
2704 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
2705 Condition(TARGET_SUPPORTS_NO_FLOAT).
2706 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
2707 __mips_no_float here.
2708 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
2709 (TARGET_SUPPORTS_NO_FLOAT): Define.
2710 * config/mips/sdemtk.opt: Delete.
2712 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
2714 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
2716 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
2719 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
2720 * configure: Regenerate.
2721 * config.in: Regenerate.
2722 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
2723 instead of sahf only for 64bit targets.
2725 2010-05-20 Jakub Jelinek <jakub@redhat.com>
2728 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
2729 setup_ref_regs for DEBUG_INSNs.
2731 2010-05-20 Jan Hubicka <jh@suse.cz>
2734 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
2736 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2739 * df-scan.c (df_ref_compare): Stabilize sort.
2741 2010-05-20 Jakub Jelinek <jakub@redhat.com>
2743 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
2744 argument. Don't use DW_OP_piece if offset is non-zero,
2745 put offset into second DW_OP_bit_piece argument.
2746 (dw_sra_loc_expr): Adjust callers. For memory expressions
2749 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
2752 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
2753 settings for 16-bit-constant "addo" alternative.
2755 2010-05-19 James E. Wilson <wilson@codesourcery.com>
2757 * config/mips/mips-dsp.md (add<DSPV:mode>3,
2758 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
2761 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
2762 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
2765 2010-05-19 Joseph Myers <joseph@codesourcery.com>
2767 * diagnostic.c (FLOAT, FFS): Don't undefine.
2768 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
2769 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
2772 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
2774 * combine.c (propagate_for_debug): Call make_compound_operation
2775 on the source value.
2776 (try_combine): When implementing a split chosen by find_split_point,
2777 either copy i2src or set it to null. Assert that i2src is not null
2778 before substituting into CALL_INSN_FUNCTION_USAGE.
2780 2010-05-19 Anatoly Sokolov <aesok@post.ru>
2782 * double-int.h (double_int_ior): New function.
2783 * tree.h (build_int_cst_wide_type): Remove.
2784 * tree.c (build_int_cst_wide_type): Remove.
2785 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
2786 of build_int_cst_wide_type.
2787 * stor-layout.c (set_sizetype): (Ditto.).
2788 * dojump.c (do_jump): Use build_int_cstu instead of
2789 build_int_cst_wide_type.
2791 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
2793 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
2794 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
2795 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
2796 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
2797 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
2798 propagate the 'data' argument to copy_tree_r.
2799 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
2800 Propagate 'data' argument to walk_tree.
2801 (copy_if_shared): New function.
2802 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
2803 (unmark_visited): New function.
2804 (unshare_body): Call copy_if_shared instead of doing it manually.
2805 (unvisit_body): Call unmark_visited instead of doing it manually.
2807 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
2809 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
2810 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
2811 * hooks.c: Likewise.
2812 * target-def.h (TARGET_FOLD_BUILTIN): Define to
2813 hook_tree_tree_int_treep_bool_null.
2814 * target.h (struct gcc_target): Update signature of fold_builtin
2816 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
2817 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
2818 instead of the call expression.
2819 (fold_builtin_call_array): Pass n and argarray directly.
2820 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
2822 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
2823 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
2824 `i' and use it in place of `arity'.
2825 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
2826 Dereference `args' directly.
2827 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
2829 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2831 * doc/sourcebuild.texi (Effective-Target Keywords): Document
2833 (Directives): Document optional dg-require-effective-target
2836 2010-05-19 Richard Guenther <rguenther@suse.de>
2839 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
2841 2010-05-19 Richard Guenther <rguenther@suse.de>
2843 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
2844 * common.opt (fwhopr=): New.
2845 * opts.c (common_handle_option): Handle OPT_fwhopr.
2846 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
2847 * collect2.c (main): Match -fwhopr*.
2848 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
2849 Execute ltrans stage in parallel when jobs is bigger than 1.
2851 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2853 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
2854 pentiumpro on Solaris 8/x86 with Sun as.
2855 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
2857 (gcc_cv_as_ix86_quad): Check for .quad directive.
2858 * configure: Regenerate.
2859 * config.in: Regenerate.
2860 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
2862 2010-05-19 Martin Jambor <mjambor@suse.cz>
2864 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
2865 also for indirect edges. Actual printing moved...
2866 (ipa_print_node_jump_functions_for_edge): ...here.
2867 (ipa_compute_jump_functions): Renamed to
2868 ipa_compute_jump_functions_for_edge and made static.
2869 (ipa_compute_jump_functions): New function.
2870 (make_edge_direct_to_target): Check if the number of arguments on
2871 the newly direct edge is the same as the number of parametrs of
2873 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
2874 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
2875 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
2876 analysis functions unconditionally, call the new
2877 ipa_analyze_params_uses on the node instead of every edge.
2879 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
2881 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
2883 (dump_mem_ref): Adopt debug code to handle a tree as step. This
2884 also checks for a constant int vs. non-constant but
2885 loop-invariant steps.
2886 (find_or_create_group): Change the sort algorithm to only consider
2887 steps that are constant ints.
2888 (idx_analyze_ref): Adopt code to handle a tree instead of a
2889 HOST_WIDE_INT for step.
2890 (gather_memory_references_ref): Handle tree instead of int and be
2891 prepared to see a NULL_TREE.
2892 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
2893 prefetches if the step cannot be calculated at compile time.
2894 (issue_prefetch_ref): Issue prefetches for non-constant but
2895 loop-invariant steps.
2897 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
2900 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
2902 * tree.h (build_call_list): Remove.
2903 * tree.c (build_call_list): Remove.
2905 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
2907 * tree.h (build_call_list): Remove.
2908 * tree.c (build_call_list): Remove.
2910 2010-05-18 Jan Hubicka <jh@suse.cz>
2912 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
2914 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
2916 PR rtl-optimization/43332
2917 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
2919 2010-05-18 Anatoly Sokolov <aesok@post.ru>
2921 * tree.h (build_int_cstu): Implement as static inline.
2922 * tree.c (build_int_cstu): Remove function.
2923 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
2926 2010-05-18 Richard Guenther <rguenther@suse.de>
2929 * lto-wrapper.c (verbose): New variable. Initialize from -v.
2930 (debug): Initialize from -save-temps.
2931 (collect_execute): Print command-line when verbose.
2932 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
2933 for ltrans invocation. Produce -dumpbase flag again.
2934 (process_args): Remove.
2936 * collect2.c (maybe_run_lto_and_relink): Only pass object
2937 files to lto-wrapper.
2938 * gcc.c (LINK_COMMAND_SPEC): Likewise.
2940 2010-05-18 Jan Hubicka <jh@suse.cz>
2942 * opts.c (decode_options): Do not disable whopr at ipa_cp.
2943 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
2945 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
2948 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
2950 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
2953 2010-05-18 Jakub Jelinek <jakub@redhat.com>
2956 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
2959 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
2961 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
2962 lto-macho as lto_binary_reader.
2964 * darwin.c (darwin_asm_named_section): Do not add assembler comment
2965 after .section directive; just print it before the directive instead.
2967 2010-05-17 Jan Hubicka <jh@suse.cz>
2969 * cgraph.c (cgraph_create_virtual_clone): Only check
2970 versionable_function_p when not in wpa and checking is enabled.
2971 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
2972 there are no more functions to materialize.
2974 2010-05-17 Jan Hubicka <jh@suse.cz>
2976 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
2977 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
2979 (output_cgraph): Call output_cgraph_opt_summary.
2980 (input_cgrpah): Call input_cgraph_opt_summary.
2981 (output_cgraph_opt_summary_p, output_node_opt_summary,
2982 input_node_opt_summary, input_cgraph_opt_section): New functions.
2983 * lto-section-in.c (lto_section_name): Add cgraphopt.
2984 * tree-inline.c (tree_function_versioning): Handle parm_num.
2985 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
2986 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
2988 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
2990 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
2991 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
2992 the insn to prefetch ratio heuristic to loops with known trip count.
2994 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
2996 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
2997 (schedule_prefetches): Do not generate a prefetch if the unroll factor
2998 is far from what is required by the prefetch.
3000 2010-05-17 Jan Hubicka <jh@suse.cz>
3002 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
3003 (ipcp_estimate_growth): Likewise.
3004 (ipcp_const_param_count): Likewise.
3005 (ipcp_insert_stage): Likewise.
3006 * ipa-prop.c (visit_load_for_mod_analysis): New function.
3007 (visit_store_addr_for_mod_analysis): Set used flag.
3008 (ipa_detect_param_modifications): Set used flag for SSE params;
3009 update use of walk_stmt_load_store_addr_ops.
3010 (ipa_print_node_params): Print used flag.
3011 (ipa_write_node_info): Stream used flag.
3012 (ipa_read_node_info): Likewise.
3013 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
3014 (ipa_is_param_used): New function.
3015 (lto_ipa_fixup_call_notes): Remove unused declaration.
3017 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3020 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
3021 * configure: Regenerate.
3022 * config.in: Regenerate.
3023 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
3024 !HAVE_AS_IX86_REP_LOCK_PREFIX.
3025 Don't emit whitespace.
3026 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
3027 (*rep_movsi): Likewise.
3028 (*rep_movsi_rex64): Likewise.
3029 (*rep_movqi): Likewise.
3030 (*rep_movqi_rex64): Likewise.
3031 (*rep_stosdi_rex64): Likewise.
3032 (*rep_stossi): Likewise.
3033 (*rep_stossi_rex64): Likewise.
3034 (*rep_stosqi): Likewise.
3035 (*rep_stosqi_rex64): Likewise.
3036 (*cmpstrnqi_nz_1): Use {%;} after repz.
3037 (*cmpstrnqi_nz_rex_1): Likewise.
3038 (*cmpstrnqi_1): Likewise.
3039 (*cmpstrnqi_rex_1): Likewise.
3040 (*strlenqi_1): Use {%;} after repnz.
3041 (*strlenqi_rex_1): Likewise.
3042 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
3043 (*sync_compare_and_swap<mode>): Likewise.
3044 (sync_double_compare_and_swap<mode>): Likewise.
3045 (*sync_double_compare_and_swapdi_pic): Likewise.
3046 (sync_old_add<mode>): Likewise.
3047 (sync_add<mode>): Likewise.
3048 (sync_sub<mode>): Likewise.
3049 (sync_<code><mode>): Likewise.
3051 2010-05-17 Martin Jambor <mjambor@suse.cz>
3053 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
3054 otr_token and polymorphic.
3055 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
3056 (cgraph_clone_edge): Copy the above fields.
3057 * tree.c (get_binfo_at_offset): New function.
3058 * tree.h (get_binfo_at_offset): Declare.
3059 * ipa-prop.h (enum jump_func_type): Added known_type jump function
3060 type, reordered items, updated comments.
3061 (union jump_func_value): Added base_type field, reordered fields.
3062 (enum ipa_lattice_type): Moved down in the file.
3063 (struct ipa_param_descriptor): New field polymorphic.
3064 (ipa_is_param_polymorphic): New function.
3065 * ipa-prop.c: Include gimple.h and gimple-fold.h.
3066 (ipa_print_node_jump_functions): Print known type jump functions.
3067 (compute_complex_pass_through): Renamed to...
3068 (compute_complex_assign_jump_func): this.
3069 (compute_complex_ancestor_jump_func): New function.
3070 (compute_known_type_jump_func): Likewise.
3071 (compute_scalar_jump_functions): Create known type and complex ancestor
3073 (ipa_note_param_call): New parameter polymorphic, set the corresponding
3074 flag in the call note accordingly.
3075 (ipa_analyze_call_uses): Renamed to...
3076 (ipa_analyze_indirect_call_uses): this. New parameter target, define
3077 variable var only in the block where it is used.
3078 (ipa_analyze_virtual_call_uses): New function.
3079 (ipa_analyze_call_uses): Likewise.
3080 (combine_known_type_and_ancestor_jfs): Likewise.
3081 (update_jump_functions_after_inlining): Implemented handling of a
3082 number of new jump function types combination.
3083 (print_edge_addition_message): Removed.
3084 (make_edge_direct_to_target): New function.
3085 (try_make_edge_direct_simple_call): Likewise.
3086 (try_make_edge_direct_virtual_call): Likewise.
3087 (update_call_notes_after_inlining): Renamed to...
3088 (update_indirect_edges_after_inlining): this. Moved edge creation for
3089 indirect calls to try_make_edge_direct_simple_call, also calls
3090 try_make_edge_direct_virtual_call for virtual calls.
3091 (ipa_print_node_params): Changed the header message.
3092 (ipa_write_jump_function): Stream also known type jump functions.
3093 (ipa_read_jump_function): Likewise.
3094 (ipa_write_indirect_edge_info): Stream new fields in
3095 cgraph_indirect_call_info.
3096 (ipa_read_indirect_edge_info): Likewise.
3097 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
3100 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3102 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
3104 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
3106 * tree.h (CALL_EXPR_ARGS): Delete.
3107 (call_expr_arglist): Delete.
3108 * tree.c (call_expr_arglist): Delete.
3109 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
3110 targetm.fold_builtin.
3111 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
3112 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
3113 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
3114 arglist parameter. Use CALL_EXPR_ARG.
3115 (picochip_expand_builtin_3op): Likewise.
3116 (picochip_expand_builtin_2opvoid): Likewise.
3117 (picochip_expand_array_get): Likewise.
3118 (picochip_expand_array_put): Likewise.
3119 (picochip_expand_array_testport): Likewise.
3120 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
3121 rather than arglist.
3122 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
3124 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
3125 than TREE_VALUE and TREE_CHAIN.
3126 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
3127 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
3130 2010-05-17 Jakub Jelinek <jakub@redhat.com>
3133 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
3134 to have no fallthru edge.
3137 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
3138 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
3139 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
3140 add BARRIER after previous bb if needed.
3142 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
3144 * tree.c (build_function_type_list_1): Remove bogus assert condition.
3146 2010-05-17 Alan Modra <amodra@gmail.com>
3148 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
3149 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
3150 with copy_reg rtx param.
3151 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
3152 Correct cases where code for ABI_V4 did not initialise the reg
3153 used to access frame. Also leave frame_reg_rtx as sp for large
3154 frames that save no regs.
3156 2010-05-17 Martin Jambor <mjambor@suse.cz>
3159 * tree-sra.c (create_access_replacement): New parameter rename, mark
3160 the replaement for renaming only when it is true.
3161 (get_access_replacement): Pass true in the rename parameter of
3162 create_access_replacement.
3163 (get_unrenamed_access_replacement): New function.
3164 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
3165 replacement declaration from it.
3167 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
3169 * function.c (try_fit_stack_local, add_frame_space): New static
3171 (assign_stack_local_1): Use them. Look for opportunities to use
3172 space previously wasted on alignment.
3173 * function.h (struct frame_space): New.
3174 (struct rtl_data): Add FRAME_SPACE_LIST member.
3175 * reload1.c (something_was_spilled): New static variable.
3176 (alter_reg): Set it.
3177 (reload): Test it in addition to testing if the frame size changed.
3179 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
3181 * config/s390/s390.c: Define sane prefetch settings and activate
3182 flag_prefetch_loop_arrays on -O3.
3183 * config/s390/s390.h: Declare that read can use write prefetch.
3185 2010-05-17 Jakub Jelinek <jakub@redhat.com>
3187 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
3190 2010-05-16 Jan Hubicka <jh@suse.cz>
3192 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
3193 function body; do not check stdarg field of struct function.
3195 2010-05-16 Jan Hubicka <jh@suse.cz>
3197 * cgraph.c (dump_cgraph_node): Dump versionable flag.
3198 * cgraph.h (cgraph_local_info): Add versionable flag.
3199 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
3200 (ipcp_versionable_function_p): Use it.
3201 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
3204 2010-05-16 Jan Hubicka <jh@suse.cz>
3206 * cgraph.c (cgraph_clone_node): Take decl argument and insert
3207 clone into hash when it is different from orig.
3208 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
3209 * cgraph.h (cgraph_clone_node): Update prototype.
3210 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
3211 (lto_cgraph_encoder_delete): Delete body map.
3212 (lto_cgraph_encoder_size): Move to header.
3213 (lto_cgraph_encoder_encode_body_p,
3214 lto_set_cgraph_encoder_encode_body): New.
3215 (lto_output_node): Do not take written_decls argument; output clone_of
3217 (add_node_to): Add include_body_argument; call
3218 lto_set_cgraph_encoder_encode_body on master of the clone.
3219 (add_references): Update use of add_node_to.
3220 (compute_ltrans_boundary): Likewise.
3221 (output_cgraph): Do not create written_decls bitmap.
3222 (input_node): Take nodes argument; stream in clone_of correctly.
3223 (input_cgraph_1): Update use of input_node.
3224 * lto-streamer-out.c (lto_output): Use encoder info to decide
3225 what bodies to output.
3226 * ipa-inline.c (cgraph_clone_inlined_nodes,
3227 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
3228 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
3229 (lto_cgraph_encoder_size): Define here.
3230 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
3233 2010-05-16 Richard Guenther <rguenther@suse.de>
3235 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
3237 * ipa-type-escape.c (gate_type_escape_vars): Run when
3238 -fipa-struct-reorg runs.
3239 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
3240 * common.opt (fipa-type-escape): Remove.
3242 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
3244 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
3245 (decode_options): Likewise.
3246 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
3248 2010-05-16 Jan Hubicka <jh@suse.cz>
3250 * ipa.c (function_and_variable_visibility): Also bring local all
3253 2010-05-16 Richard Guenther <rguenther@suse.de>
3255 * alias.c (nonoverlapping_memrefs_p): Remove use of
3256 IPA type-escape information.
3258 2010-05-16 Joseph Myers <joseph@codesourcery.com>
3260 * c-common.c (c_common_reswords): Add _Static_assert for C.
3261 * c-parser.c (c_token_starts_declaration,
3262 c_parser_next_token_starts_declaration,
3263 c_parser_static_assert_declaration_no_semi,
3264 c_parser_static_assert_declaration): New.
3265 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
3266 Handle static assertions if static_assert_ok.
3267 (c_parser_external_declaration, c_parser_declaration_or_fndef,
3268 c_parser_compound_statement_nostart, c_parser_label,
3269 c_parser_for_statement, c_parser_objc_methodprotolist,
3270 c_parser_omp_for_loop): All callers of
3271 c_parser_declaration_or_fndef changed.
3272 (c_parser_struct_declaration): Handle static assertions.
3273 (c_parser_compound_statement_nostart): Use
3274 c_parser_next_token_starts_declaration and
3275 c_token_starts_declaration to detect start of declarations.
3276 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
3279 2010-05-16 Anatoly Sokolov <aesok@post.ru>
3281 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
3282 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
3283 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3284 TARGET_FUNCTION_VALUE_REGNO_P): Define.
3285 (mmix_function_outgoing_value): Rename to...
3286 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
3287 (mmix_function_value_regno_p): Make static.
3288 (mmix_libcall_value): New function.
3289 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
3290 mmix_function_value_regno_p): Remove declaration.
3292 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
3294 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
3295 BUILT_IN_ALLOCA if stack checking is enabled.
3297 2010-05-16 Richard Guenther <rguenther@suse.de>
3299 * var-tracking.c (vars_copy_1): Inline ...
3300 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
3301 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
3302 (variable_merge_over_cur): Adjust. Merge asserts.
3303 (variable_merge_over_src): Likewise.
3304 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
3305 (variable_post_merge_new_vals): Merge asserts.
3306 (variable_post_merge_perm_vals): Likewise.
3307 (find_mem_expr_in_1pdv): Likewise.
3308 (dataflow_set_different_value): Remove.
3309 (onepart_variable_different_p): Merge asserts.
3310 (variable_different_p): Likewise.
3311 (dataflow_set_different_1): Inline ...
3312 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
3313 (emit_notes_for_differences_1): Merge asserts.
3315 2010-05-16 Richard Guenther <rguenther@suse.de>
3317 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
3318 * optabs.c (libfunc_decl_hash): Likewise.
3319 * varasm.c (emutls_decl): Likewise.
3321 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
3323 * c-decl.c: Don't include gimple.h.
3324 (merge_decls): Do not copy gimple_body.
3326 2010-05-15 Jason Merrill <jason@redhat.com>
3328 * c.opt: Add -fnothrow-opt.
3330 2010-05-15 Jan Hubicka <jh@suse.cz>
3332 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
3334 * passes.c (ipa_write_summaries): Write all analyzed nodes.
3336 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
3338 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
3339 * Makefile.in: Add it.
3340 Fix all other Makefile dependencies for changes below.
3341 * tree.h: Include it instead of defining VEC primitives here.
3342 * gimple.h: Likewise.
3344 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
3345 * except.h: Include vecir.h, break dependence on tree.h.
3347 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
3349 * tree-iterator.c: ...to here.
3350 * tree-iterator.h: Fix file introduction comment. Add extern markers.
3352 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
3354 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
3355 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
3356 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
3357 tree-mudflap.h, and target.h.
3358 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
3359 predict.h, tree-inline.h, gimple.h, and langhooks.h.
3360 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
3361 Add FIXME for why gimple.h is still included (should be unnecessary
3362 since GCC 4.5 gimplification unit-at-a-time).
3363 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
3364 * c-pragma.c: Add FIXME for why function.h needs to be included just
3365 for cfun, at front-end level.
3366 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
3367 Do not include ggc.h, but include vecprim.h for VEC(char).
3368 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
3369 Explain why target.h is included.
3370 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
3371 Explain why gimple.h is included.
3372 * c-ppoutput.c: Do not include tm.h.
3373 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
3374 * c-parses.c: Explain why rtl.h is included, and that this (and only
3375 this) is also why tm.h must be included.
3376 Do not include except.h.
3377 * c-lang.c: Do not include ggc.h.
3379 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
3381 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
3383 2010-05-15 Joseph Myers <joseph@codesourcery.com>
3385 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
3386 unions by default if those structs and unions have no tags. Do
3387 not condition anonymous struct and unions handling on flag_iso.
3388 Allow anonymous structs and unions for C1X.
3389 (finish_struct): Do not diagnose lack of named fields when
3390 anonymous structs and unions present for C1X. Accept flexible
3391 array members in structure with anonymous structs or unions but no
3392 directly named fields.
3393 * doc/extend.texi (Unnamed Fields): Update.
3395 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
3397 * gimple.h (compare_field_offset): Rename into...
3398 (gimple_compare_field_offset): ...this.
3399 * gimple.c (compare_field_offset): Rename into...
3400 (gimple_compare_field_offset): ...this. Compare the full access if
3401 the offset is self-referential.
3402 (gimple_types_compatible_p): Adjust for above renaming.
3403 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
3404 DECL_NONADDRESSABLE_P flag of fields before merging them.
3406 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
3408 * tree.h (ctor_to_list): Delete.
3409 * tree.c (ctor_to_list): Delete.
3411 2010-05-15 Jan Hubicka <jh@suse.cz>
3413 * ipa-reference.c: Include toplev.h
3414 (is_proper_for_analysis): Only add to all_module_statics
3416 (write_node_summary_p, stream_out_bitmap,
3417 ipa_reference_write_optimization_summary,
3418 ipa_reference_read_optimization_summary): New.
3419 (struct ipa_opt_pass_d pass_ipa_reference): Add
3420 optimization summary streaming.
3421 * lto-cgraph.c (referenced_from_this_partition_p,
3422 reachable_from_this_partition_p): New functions.
3423 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
3424 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
3425 * opts.c (decode_options): Enable ipa_reference.
3426 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
3427 * lto-streamer.h (referenced_from_this_partition_p,
3428 reachable_from_this_partition_p): Declare.
3430 2010-05-15 Richard Guenther <rguenther@suse.de>
3432 PR tree-optimization/44038
3433 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
3434 taking the address of a V_C_E of a constant.
3436 2010-05-14 Jan Hubicka <jh@suse.cz>
3438 * tree.h (memory_identifier_string): Remove.
3439 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
3440 (ipa_reference_global_vars_info_d): Remove statics_not_read and
3441 statics_not_written.
3442 (ipa_reference_optimization_summary_d): New structure.
3443 (ipa_reference_optimization_summary_t): New type and vector.
3444 (ipa_reference_vars_info_d): Embedd structures instead of using
3446 (reference_vars_to_consider): Remove out of GGC space.
3447 (module_statics_escape): Remove.
3448 (global_info_obstack): Rename to ...
3449 (optimization_summary_obstack): ... this one.
3450 (initialization_status_t): Remove.
3451 (memory_identifier_string): Remove.
3452 (get_reference_vars_info): Fix indenting.
3453 (set_reference_vars_info): Likewise.
3454 (get_reference_optimization_summary): New.
3455 (set_reference_optimization_summary): New.
3456 (get_global_reference_vars_info): Remove.
3457 (ipa_reference_get_read_global): Remove.
3458 (ipa_reference_get_written_global): Remove.
3459 (ipa_reference_get_not_read_global): Update.
3460 (ipa_reference_get_not_written_global): Update.
3461 (is_proper_for_analysis): Outlaw addressable.
3462 (propagate_bits): Update for new datastructures.
3463 (analyze_variable): Remove.
3464 (init_function_info): Update for new datastructures.
3465 (clean_function_local_data): Remove.
3466 (clean_function): Remove.
3467 (copy_global_bitmap): Use optimizations_summary_obstack.
3468 (duplicate_node_data): Duplicate optimization summary only.
3469 (remove_node_data): Remove optimization summary only.
3470 (generate_summary): Do not analyze variables; do not compute
3471 module_statics_escape; do not prune solutions by it.
3472 (read_write_all_from_decl): Fix typos in comments.
3473 (propagate): Doscover readonly and nonaddressable first;
3474 update for new datastructures; share global bitmaps.
3475 * ipa-reference.h (ipa_reference_get_read_global,
3476 ipa_reference_get_written_global): Remove.
3477 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
3478 * Makefile.in: Remove ipa-refereference from GT files.
3480 2010-05-14 Jakub Jelinek <jakub@redhat.com>
3483 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
3484 for all SYMBOL_REF_DECLs.
3486 2010-05-14 Jan Hubicka <jh@suse.cz>
3488 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
3489 (varpool_all_refs_explicit_p): New inline function.
3490 * ipa-reference.c: Update comment.
3491 (module_statics_written): Remove.
3492 (get_static_decl): Remove.
3493 (ipa_init): Do not initialize module_statics_written.
3494 (analyze_function): Likewise.
3495 (generate_summary): Likewise; do not compute module_statics_readonly
3496 and do not update variable flags.
3497 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
3498 * ipa.c: Inlucde flags.h
3499 (cgraph_local_node_p): New.
3500 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
3501 promote functions to local.
3502 (ipa_discover_readonly_nonaddressable_vars): New function.
3503 (function_and_variable_visibility): Use cgraph_local_node_p.
3504 * varpool.c (varpool_finalize_decl): Set force_output for
3505 DECL_PRESERVE_P vars.
3507 2010-05-14 Jan Hubicka <jh@suse.cz>
3509 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
3511 2010-05-14 Richard Guenther <rguenther@suse.de>
3513 PR tree-optimization/44119
3514 * tree-ssa-pre.c (eliminate): Properly mark replacement of
3515 a PHI node necessary.
3517 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
3519 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
3521 2010-05-14 Jason Merrill <jason@redhat.com>
3524 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
3525 (gimple_call_set_nothrow): New.
3526 * gimple.c (gimple_build_call_from_tree): Call it.
3527 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
3530 * gimplify.c (gimplify_seq_add_stmt): No longer static.
3531 * gimple.h: Declare it.
3532 * gimple.c (gimple_build_eh_filter): No ops.
3534 2010-05-14 Jan Hubicka <jh@suse.cz>
3536 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
3537 nodes already in queue.
3538 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
3541 2010-05-14 Jakub Jelinek <jakub@redhat.com>
3544 * cfgexpand.c (expand_debug_expr): If non-memory op0
3545 has BLKmode, return NULL.
3547 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
3549 * config.gcc: Add support for --with-cpu option for bdver1.
3550 * config/i386/i386.h (TARGET_BDVER1): New macro.
3551 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
3552 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
3553 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
3554 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
3555 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
3556 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
3557 (processor_type): Add PROCESSOR_BDVER1.
3558 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
3559 processor_type in config/i386/i386.h.
3560 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
3561 movaps <reg, reg> instead of movapd <reg, reg> when replacing
3562 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
3563 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
3564 to emit packed xor instead of packed double/packed integer
3565 xor for SSE and AVX when moving a zero value.
3566 * config/i386/sse.md: Add check for
3567 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
3568 movapd/movdqa for SSE and AVX.
3569 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
3570 single logical operations i.e and, or and xor instead of packed double
3571 logical operations for SSE and AVX.
3572 * config/i386/i386-c.c (ix86_target_macros_internal):
3573 Add PROCESSOR_BDVER1.
3574 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
3575 (has_fma4, has_xop): New.
3576 * config/i386/i386.c (bdver1_cost): New variable.
3577 (m_BDVER1): New macro.
3578 (m_AMD_MULTIPLE): Add m_BDVER1.
3579 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
3580 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
3581 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
3582 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
3583 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
3584 x86_tune_sse_partial_reg_dependency,
3585 x86_tune_sse_unaligned_load_optimal,
3586 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
3587 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
3588 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
3589 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
3590 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
3591 Enable/disable for bdver1.
3592 (processor_target_table): Add bdver1_cost.
3593 (cpu_names): Add bdver1.
3594 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
3595 processor_alias_table.
3596 (ix86_expand_vector_move_misalign): Change.
3597 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
3598 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
3599 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
3600 of movupd/movdqu for SSE and AVX.
3601 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
3602 (ix86_tune_adjust_cost): Add code for bdver1.
3603 (standard_sse_constant_opcode): Add check for
3604 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
3605 of packed double xor for SSE and AVX.
3607 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
3609 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
3612 2010-05-14 Tristan Gingold <gingold@adacore.com>
3614 * toplev.c (default_debug_hooks): Remove this variable.
3615 (process_options): Remove assignments to default_debug_hooks.
3617 2010-05-14 Martin Jambor <mjambor@suse.cz>
3619 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
3620 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
3621 * langhooks.h (struct lang_hooks_for_decls): Removed field
3623 * tree.c (free_lang_data): Remove assignment to
3624 lang_hooks.fold_obj_type_ref.
3625 * tree.def (OBJ_TYPE_REF): Update comment.
3627 2010-05-14 Richard Guenther <rguenther@suse.de>
3629 PR tree-optimization/44124
3630 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
3632 2010-05-14 Alan Modra <amodra@gmail.com>
3635 * config/rs6000/rs6000.c (struct machine_function): Reorder
3636 fields for better packing. Add lr_save_state.
3637 (rs6000_ra_ever_killed): Return lr_save_state if set.
3638 (rs6000_emit_eh_reg_restore): Set lr_save_state.
3640 2010-05-13 Jan Hubicka <jh@suse.cz>
3642 * varpool.c (decide_is_variable_needed): Drop code checking
3643 TREE_SYMBOL_REFERENCED.
3645 2010-05-13 Jan Hubicka <jh@suse.cz>
3647 * final.c (output_addr_const): Do not call mark_decl_referenced.
3648 * cgraphunit.c (process_function_and_variable_attributes): Use
3649 mark_needed_node dirrectly.
3650 (assemble_thunk): Do not call mark_decl_referenced.
3652 2010-05-13 Anatoly Sokolov <aesok@post.ru>
3654 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
3656 2010-05-13 Jeff Law <law@redhat.com>
3658 * ira-conflicts.c (print_allocno_conflicts): New function broken out
3660 (print_conflicts): Call print_allocno_conflicts.
3662 2010-05-13 Jakub Jelinek <jakub@redhat.com>
3665 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
3668 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
3670 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
3671 t-mingw-w64 or t-mingw-w32 for multilib configuration.
3672 * config/i386/t-mingw-w32: New.
3673 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
3675 2010-05-13 Martin Jambor <mjambor@suse.cz>
3677 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
3679 * gimple-fold.c (get_base_binfo_for_type): New function.
3680 (gimple_get_relevant_ref_binfo): Likewise.
3681 (gimple_fold_obj_type_ref_known_binfo): Likewise.
3682 (gimple_fold_obj_type_ref): Likewise.
3683 (fold_gimple_call): Simplify condition for folding virtual calls
3684 and call gimple_fold_obj_type_ref.
3685 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
3686 (gimple_fold_obj_type_ref_known_binfo): Likewise.
3688 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
3690 * config/rs6000/rs6000-protos.h
3691 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
3692 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
3693 (rs6000_debug_mode_dependent_address)
3694 (rs6000_mode_dependent_address_ptr): Likewise.
3696 2010-05-13 Jakub Jelinek <jakub@redhat.com>
3699 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
3701 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
3702 * tree-sra.c (create_access_replacement): Call unshare_expr before
3703 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
3704 * dwarf2out.c: Include tree-flow.h.
3705 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
3706 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
3707 Handle DW_OP_bit_piece.
3708 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
3709 construct_piece_list, adjust_piece_list): New functions.
3710 (add_var_loc_to_decl): Handle SRA optimized variables.
3711 Adjust for var_loc_note to loc field renaming.
3712 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
3713 in VAR_LOCATION note.
3714 (new_loc_descr_op_bit_piece): New function.
3715 (dw_sra_loc_expr): New function.
3716 (dw_loc_list): Use it. Don't handle the last range after the
3717 loop, handle it inside of the loop. Adjust for var_loc_note
3718 to loc field renaming.
3719 (add_location_or_const_value_attribute): Only special case
3720 single entry loc lists if loc is NOTE_P. Adjust for
3721 var_loc_note to loc field renaming.
3722 (dwarf2out_var_location): Don't set newloc->var_loc_note
3723 and newloc->next here.
3725 2010-05-12 Jan Hubicka <jh@suse.cz>
3727 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
3729 * cgraph.h (cgraph_only_called_directly_p,
3730 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
3731 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
3732 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
3734 * ipa.c (cgraph_remove_unreachable_nodes): Use
3735 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
3737 * tree-inline.c (copy_bb): Check address_taken flag.
3738 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
3739 externally_visible flag.
3741 2010-05-12 Jason Merrill <jason@redhat.com>
3745 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
3746 * sdbout.c (plain_type_1): Likewise.
3747 * dwarf2out.c (is_base_type): Likewise.
3748 (gen_type_die_with_usage): Likewise. Generate
3749 DW_TAG_unspecified_type for any LANG_TYPE.
3751 2010-05-12 Jan Hubicka <jh@suse.cz>
3753 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
3755 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
3756 (cgraph_clone_edge): Update.
3757 (cgraph_node_remove_callees): Remove indirect calls too.
3758 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
3759 (cgraph_create_indirect_edge): Update prototype.
3760 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
3761 is_proper_for_analysis.
3762 (add_new_function, visited_nodes, function_insertion_hook_holder,
3763 get_local_reference_vars_info, mark_address_taken, mark_address,
3764 mark_load, mark_store, check_asm_memory_clobber, check_call,
3765 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
3766 (ipa_init): Do not initialize visited_nodes;
3767 function_insertion_hook_holder.
3768 (analyze_variable): Rewrite.
3769 (analyze_function): Rewrite.
3770 (copy_local_bitmap): Remove.
3771 (duplicate_node_dat): Do not duplicate local info.
3772 (generate_summary): Simplify to only walk cgraph.
3773 (write_node_summary_p, ipa_reference_write_summary,
3774 ipa_reference_read_summary): Remove.
3775 (propagate): Do not remove function insertion;
3777 (pass_ipa_reference): NULLify summary handling fields.
3778 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
3779 (input_edge): Input ecf_flags.
3780 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
3781 (update_indirect_edges_after_inlining): Ignore edges with unknown
3784 2010-05-12 Sriraman Tallam <tmsriram@google.com>
3786 * implicit-zee.c: New file.
3787 * tree-pass.h (pass_implicit_zee): Declare.
3788 * passes.c (init_optimization_passes): Add zee pass.
3789 * common.opt (fzee): New flag.
3790 * timevar.def (TV_ZEE): Define.
3791 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
3793 * Makefile.in (implicit-zee.o): Add new build file.
3795 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
3796 Nathan Froyd <froydnj@codesourcery.com>
3798 * c-common.c (sync_resolve_params): Remove write-only variable.
3800 2010-05-12 Anatoly Sokolov <aesok@post.ru>
3802 * target.h (struct gcc_target): Add mode_dependent_address_p field.
3803 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
3804 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
3805 * targhooks.c (default_mode_dependent_address_p): New function.
3806 * targhooks.h (default_mode_dependent_address_p): Declare function.
3807 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
3808 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
3809 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
3810 target hook. Change return type to bool.
3811 * recog.h (mode_dependent_address_p): Change return type to bool.
3813 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
3814 Nathan Froyd <froydnj@codesourcery.com>
3816 * tree-mudflap.c (build_function_type_0, build_function_type_1,
3817 build_function_type_2, build_function_type_3): Remove.
3818 (mudflap_init): Use build_function_type_list.
3820 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
3821 Nathan Froyd <froydnj@codesourcery.com>
3823 * coverage.c (build_fn_info_value): Call build_constructor instead of
3824 build_constructor_from_list.
3825 (build_ctr_info_value): Likewise.
3826 (build_gcov_info): Likewise.
3828 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
3830 * tree.c (build_constructor): Compute TREE_CONSTANT for the
3831 resultant constructor.
3832 (build_constructor_single): Don't set TREE_CONSTANT.
3833 (build_constructor_from_list): Don't compute TREE_CONSTANT.
3835 2010-05-12 Jan Hubicka <jh@suse.cz>
3837 * cgraph.h (struct varpool_node): Add aux.
3838 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
3839 * varpool.c (varpool_remove_node): Do not remove initializer.
3840 (varpool_reset_queue): Export.
3841 (varpool_finalize_decl): Volatile vars are forced to be output.
3842 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
3844 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
3845 process_references, varpool_can_remove_if_no_refs): New functions.
3846 (cgraph_remove_unreachable_nodes): Handle variables too.
3848 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
3851 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
3853 2010-05-12 Jakub Jelinek <jakub@redhat.com>
3856 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
3857 change value of ORT_TASK.
3858 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
3859 (omp_notice_threadprivate_variable): New function.
3860 (omp_notice_variable): Call it for threadprivate variables.
3861 If enclosing ctx is a task, print enclosing task rather than
3862 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
3863 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
3864 if task has untied clause.
3867 * dwarf2out.c (base_type_die): Don't add name attribute here.
3868 (modified_type_die): Instead of sizetype use
3869 its underlying original type. If a DW_TAG_base_type doesn't
3870 have name added, add __unknown__.
3871 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
3872 always call force_type_die instead.
3874 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
3876 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
3877 for __stack_chk_guard.
3879 2010-05-11 Jakub Jelinek <jakub@redhat.com>
3881 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
3882 don't call start_source_file debug hook here...
3883 (finish_options): ... but here, after outputting predefined and
3884 command line defines and undefs.
3887 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
3889 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
3890 optimizing away empty bb with no successors, move over its
3891 footer chain to fallthru predecessor.
3892 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
3893 (rtl_split_edge): For asm goto call patch_jump_insn even if
3894 splitting fallthru edge.
3897 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
3898 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
3899 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
3900 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
3904 * c-parser.c (c_parser_expression): Mark LHS of a comma
3905 expression as read if it is a decl, handled component or
3906 COMPOUND_EXPR with that on the RHS.
3907 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
3908 if it is a decl or handled component.
3910 2010-05-11 Jan Hubicka <jh@suse.cz>
3912 * lto-symtab.c (lto_symtab_free): New function.
3913 * lto-streamer.h (lto_symtab_free): Declare.
3915 2010-05-11 Jan Hubicka <jh@suse.cz>
3917 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
3918 that if function is needed it is reachable.
3919 (lto_output_node): See if it the function is reachable or referenced.
3920 (output_cgraph): Update call of lto_output_node.
3921 * lto-streamer.h (reachable_from_other_partition_p): Declare.
3923 2010-05-11 Jan Hubicka <jh@suse.cz>
3925 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
3928 2010-05-11 Jan Hubicka <jh@suse.cz>
3930 PR tree-optimize/44063
3931 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
3933 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
3935 (estimate_function_body_sizes): Compute sizes even when disregarding.
3937 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
3939 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
3941 2010-05-11 Jan Hubicka <jh@suse.cz>
3943 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
3944 into every boundary.
3946 2010-05-11 Jan Hubicka <jh@suse.cz>
3948 * matrix-reorg.c (matrix_reorg): Rebuild edges.
3950 2010-05-11 Jan Hubicka <jh@suse.cz>
3952 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
3953 lto_streamer_cache_delete): Put nodes into heap.
3954 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
3957 2010-05-11 Jan Hubicka <jh@suse.cz>
3959 * cgraphbuild.c (cgraph_rebuild_references): New.
3960 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
3962 * cgraph.h (cgraph_rebuild_references): Declare.
3963 * tree-inline.c (tree_function_versioning): Use it.
3964 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
3966 2010-05-11 Jan Hubicka <jh@suse.cz>
3968 * cgraph.c: Include ipa-utils.h
3969 (cgraph_create_virtual_clone): Update references.
3970 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
3972 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
3974 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
3975 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
3978 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
3980 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
3982 2010-05-11 Jakub Jelinek <jakub@redhat.com>
3984 * gcc.c (execute): For -### don't quote arguments that
3985 contain just alphanumerics and _/-. characters.
3986 * doc/invoke.texi: Document that change for -###.
3989 * df-problems.c (struct dead_debug): Add to_rescan field.
3990 (dead_debug_init): Clear to_rescan field.
3991 (dead_debug_finish): Rescan all debug insns in to_rescan
3992 bitmap and free the bitmap.
3993 (dead_debug_insert_before): Instead of rescanning debug insns
3994 immediately queue their rescanning until dead_debug_finish.
3995 (df_note_bb_compute): After dead_debug_add do continue instead
3998 2010-05-10 Jakub Jelinek <jakub@redhat.com>
4001 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
4002 clear also INSN_REG_USE_LIST.
4004 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4006 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
4008 2010-05-10 Jan Hubicka <jh@suse.cz>
4010 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
4013 2010-05-10 Jan Hubicka <jh@suse.cz>
4015 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
4017 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
4018 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
4019 (lto_streamer_cache_create): Init alloc pool.
4020 (lto_streamer_cache_delete): Free alloc pool.
4021 * lto-streamer.h: Include alloc pool.
4022 (lto_streamer_cache_d): Use alloc pool.
4023 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
4025 2010-05-10 Jan Hubicka <jh@suse.cz>
4027 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
4028 * cgraphbuild.c: Include except.h
4029 (record_type_list, record_eh_tables): New function.
4030 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
4032 2010-05-10 Jan Hubicka <jh@suse.cz>
4034 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
4035 __frame_dummy_init_array_entry, force_to_data): Attribute as used
4038 2010-05-10 Michael Matz <matz@suse.de>
4040 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
4041 (can_reassociate_p): Use FLOAT_TYPE_P.
4042 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
4043 (vect_force_simple_reduction): ... this.
4044 * tree-parloops.c (gather_scalar_reductions): Use
4045 vect_force_simple_reduction.
4046 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
4047 vect_is_simple_reduction, add modify argument, if true rewrite
4048 "a-b" into "a+(-b)".
4049 (vect_is_simple_reduction, vect_force_simple_reduction): New
4051 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
4053 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
4054 Vladimir Makarov <vmakarov@redhat.com>
4056 PR rtl-optimization/44012
4057 * ira-build.c (remove_unnecessary_allocnos): Nullify
4058 regno_allocno_map of the removed allocno.
4060 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4062 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
4064 * configure: Regenerate.
4066 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4068 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
4070 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
4071 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
4073 * configure: Regenerate.
4075 2010-05-10 Richard Guenther <rguenther@suse.de>
4077 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
4078 marked if the entry identifier is marked.
4080 2010-05-10 Richard Guenther <rguenther@suse.de>
4082 * c-common.c (struct c_common_attributes): Add fnspec attribute.
4083 (handle_fnspec_attribute): New function.
4084 * gimple.h (gimple_call_return_flags): Declare.
4085 (gimple_call_arg_flags): Likewise.
4086 * gimple.c (gimple_call_arg_flags): New function.
4087 (gimple_call_return_flags): Likewise.
4088 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
4090 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
4092 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
4093 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
4095 (make_heapvar_for): ... this new function.
4096 (handle_rhs_call): Handle fnspec attribute argument specifiers.
4097 (handle_lhs_call): Likewise.
4098 (find_func_aliases): Adjust.
4100 2010-05-10 Richard Guenther <rguenther@suse.de>
4102 PR tree-optimization/44050
4103 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
4105 2010-05-10 Wei Guozhi <carrot@google.com>
4108 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
4110 2010-05-09 Joseph Myers <joseph@codesourcery.com>
4113 * c-typeck.c (lookup_field): Take a type directly. Update
4115 (build_component_ref): Update call to lookup_field.
4116 (set_init_label): Use lookup_field to find initialized field.
4117 Handle returned list of fields like a sequence of designators.
4119 2010-05-09 Richard Guenther <rguenther@suse.de>
4122 * fold-const.c (tree_single_nonzero_warnv_p): Properly
4123 handle &FUNCTION_DECL.
4125 2010-05-09 Joseph Myers <joseph@codesourcery.com>
4128 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
4129 structures and unions recursively.
4130 (detect_field_duplicates): Move duplicate detection with a hash to
4131 detect_field_duplicates_hash. Always use a hash if anonymous
4132 structures or unions are present.
4133 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
4136 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
4139 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
4140 detect Atom, Core 2 and Core i7.
4142 2010-05-09 Richard Guenther <rguenther@suse.de>
4144 * gcc.c (store_arg): Handle temporary file deletion for
4147 2010-05-09 Richard Guenther <rguenther@suse.de>
4150 * ipa-inline.c (estimate_function_body_sizes): Return after
4151 disregarding inline limits.
4153 2010-05-09 Richard Guenther <rguenther@suse.de>
4155 * gcc.c (store_arg): Revert last change.
4157 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
4160 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
4161 (optimize_ops_list): Call it.
4163 2010-05-08 Richard Guenther <rguenther@suse.de>
4165 PR tree-optimization/44030
4166 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
4167 NECESSARY flag if we propagate from a inserted expression.
4169 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
4171 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
4172 domain types as equal if they are both PLACEHOLDER_EXPRs.
4174 2010-05-08 Richard Guenther <rguenther@suse.de>
4176 * lto-wrapper.c (run_gcc): Remove linker output from
4177 command line for LTRANS invocation.
4179 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
4181 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
4182 lto-macho as lto_binary_reader.
4183 * target.h (struct gcc_target): New hooks lto_start and lto_end.
4184 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
4185 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
4186 in lto_start and lto_end calls.
4187 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
4189 (scan_prog_file): Update is_elf_or_coff call.
4190 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
4192 * collect2.c (main): Fix enum comparison.
4194 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
4196 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
4197 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
4198 and TARGET_ASM_LTO_END.
4199 * darwin.c: Include obstack.h and lto-streamer.h.
4200 (lto_section_names_offset, lto_section_names_obstack,
4201 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
4203 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
4204 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
4205 to a temporary file.
4206 (darwin_asm_lto_end): New function. Restore asm_out_file.
4207 (darwin_asm_named_section): For LTO sections, replace the name with
4208 the offset of the section name in a string table, and build this
4210 (darwin_file_start): Initialize global vars for LTO support.
4211 (darwin_file_end): If output to asm_out_file was redirected, append it
4212 to the proper asm_out_file here. Add the section names section.
4214 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
4216 * c-pragma.c (pending_weak_d, pending_weak): New.
4217 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
4218 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
4219 handle_pragma_weak): Update the uses of pending_weaks.
4221 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4223 PR documentation/44016
4224 * doc/standards.texi (Standards): Link to unversioned
4225 cxx0x_status.html page.
4227 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
4230 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
4231 in addition to TREE_USED, to avoid "set but unused" warnings.
4233 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
4235 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
4236 (is_loop_prefetching_profitable): Do not insert prefetches
4237 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
4238 times the prefetch ahead distance.
4240 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
4242 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
4243 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
4244 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
4247 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
4249 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
4250 a diagnostic info when the insn-to-mem ratio is too small.
4252 2010-05-07 Richard Guenther <rguenther@suse.de>
4254 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
4256 (store_arg): Queue temp_filename for deletion instead of
4259 2010-05-07 Richard Guenther <rguenther@suse.de>
4261 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
4262 (run_gcc): Handle LTRANS phase invocation.
4263 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
4265 2010-05-07 Jakub Jelinek <jakub@redhat.com>
4267 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
4268 this is also meaningful on PARM_DECLs and RESULT_DECLs.
4270 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4272 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
4274 2010-05-07 Richard Guenther <rguenther@suse.de>
4276 PR tree-optimization/44020
4277 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
4278 code when PRE is not yet initialized.
4280 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4282 * config/mips/dbxmdebug.h: Remove.
4283 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
4285 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
4287 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
4288 with null pointer and also warn about ordered comparison of zero with
4291 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
4293 * graphite-blocking.c
4294 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
4295 * graphite-clast-to-gimple.c
4296 (clast_to_gcc_expression): Same.
4297 (precision_for_value): Same.
4298 (precision_for_interval): Same.
4299 (gcc_type_for_interval): Same.
4300 (graphite_create_new_guard): Same.
4301 (compute_bounds_for_level): Same.
4302 (graphite_create_new_loop_guard): Same.
4303 * graphite-interchange.c
4304 (build_linearized_memory_access): Same.
4305 (pdr_stride_in_loop): Same.
4306 (memory_strides_in_loop_1): Same.
4307 (memory_strides_in_loop): Same.
4308 (extend_scattering): Same.
4309 (psct_scattering_dim_for_loop_depth): Same.
4310 (pbb_number_of_iterations): Same.
4312 (debug_iteration_domains): Same.
4314 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
4315 (ppl_set_inhomogeneous_gmp): Same.
4316 (ppl_strip_loop): Same.
4317 (ppl_lexico_compare_linear_expressions): Same.
4318 (ppl_read_polyhedron_matrix): Same.
4319 (ppl_max_for_le_pointset): Same.
4321 (ppl_read_polyhedron_matrix): Same.
4322 (tree_int_to_gmp): Same.
4323 (gmp_cst_to_tree): Same.
4324 (ppl_set_inhomogeneous): Same.
4325 (ppl_set_inhomogeneous_tree): Same.
4326 (ppl_set_coef): Same.
4327 (ppl_set_coef_tree): Same.
4328 * graphite-sese-to-poly.c
4329 (build_pbb_scattering_polyhedrons): Same.
4330 (build_scop_scattering): Same.
4331 (scan_tree_for_params_right_scev): Same.
4332 (scan_tree_for_params): Same.
4333 (find_params_in_bb): Same.
4334 (find_scop_parameters): Same.
4335 (add_upper_bounds_from_estimated_nit): Same.
4336 (build_loop_iteration_domains): Same.
4337 (add_condition_to_domain): Same.
4338 (pdr_add_memory_accesses): Same.
4340 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
4342 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
4343 CLooG's value_* macros to their respective mpz_* counterparts.
4344 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
4345 (graphite_create_new_loop_guard): Same.
4346 * graphite-interchange.c (build_linearized_memory_access): Same.
4347 (pdr_stride_in_loop): Same.
4348 (memory_strides_in_loop_1): Same.
4349 (1st_interchange_profitable_p): Same.
4350 * graphite-poly.c (extend_scattering): Same.
4351 (psct_scattering_dim_for_loop_depth): Same.
4352 (pbb_number_of_iterations): Same.
4353 (pbb_number_of_iterations_at_time): Same.
4354 * graphite-poly.h (new_1st_loop): Same.
4355 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
4356 (oppose_constraint): Same.
4357 (insert_constraint_into_matrix): Same.
4358 (ppl_set_inhomogeneous_gmp): Same.
4359 (ppl_set_coef_gmp): Same.
4360 (ppl_strip_loop): Same.
4361 (ppl_lexico_compare_linear_expressions): Same.
4362 (ppl_max_for_le_pointset): Same.
4363 (ppl_min_for_le_pointset): Same.
4364 (ppl_build_realtion): Same.
4365 * graphite-ppl.h (gmp_cst_to_tree): Same.
4366 (ppl_set_inhomogeneous): Same.
4367 (ppl_set_inhomogeneous_tree): Same.
4368 (ppl_set_coef): Same.
4369 (ppl_set_coef_tree): Same.
4370 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
4371 (build_scop_scattering): Same.
4372 (add_value_to_dim): Same.
4373 (scan_tree_for_params_right_scev): Same.
4374 (scan_tree_for_params_int): Same.
4375 (scan_tree_for_params): Same.
4376 (find_params_in_bb): Same.
4377 (find_scop_parameters): Same.
4378 (add_upper_bounds_from_estimated_nit): Same.
4379 (build_loop_iteration_domains): Same.
4380 (create_linear_expr_from_tree): Same.
4381 (add_condition_to_domain): Same.
4382 (pdr_add_memory_accesses): Same.
4384 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
4385 Jason Merrill <jason@redhat.com>
4387 * c-common.c (c_common_reswords): Add nullptr.
4388 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
4389 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
4390 (gen_type_die_with_usage): Likewise.
4391 * dbxout.c (dbxout_type): Likewise.
4392 * sdbout.c (plain_type_1): Likewise.
4394 2010-05-06 Jason Merrill <jason@redhat.com>
4396 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
4397 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
4399 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
4401 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
4402 stripping WITH_SIZE_EXPR.
4403 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
4406 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4408 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
4409 list of obsolete configurations.
4410 Disabled check for obsolete configurations.
4411 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
4412 Removed support for previous versions.
4413 * config/mips/iris.h: Removed.
4414 * config/mips/iris5.h: Removed.
4415 * config/mips/iris6.h: Merged old iris.h contents.
4416 (TARGET_IRIX): Removed.
4417 (DRIVER_SELF_SPECS): Removed mabi=32.
4418 (IDENT_ASM_OP): Removed undef.
4419 (STARTFILE_SPEC): Removed mabi=32.
4420 (ENDFILE_SPEC): Likewise.
4421 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
4422 (MACHINE_TYPE): Update for IRIX 6.5.
4423 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
4424 TARGET_IRIX by TARGET_IRIX6.
4425 (mips_file_start): Likewise.
4426 (mips_output_external): Remove IRIX 5/6 O32 support.
4427 (mips_output_function_prologue): Likewise.
4428 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
4430 (TARGET_CPU_CPP_BUILTINS): Likewise.
4431 (TARGET_IRIX): Removed.
4432 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
4433 (MULTILIB_DIRNAMES): Removed 32.
4434 (MULTILIB_OSDIRNAMES): Removed ../lib.
4435 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
4436 (Specific, mips-sgi-irix5): Document removal.
4437 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
4438 Remove references to older IRIX 6 releases and the O32 ABI.
4440 2010-05-06 Jakub Jelinek <jakub@redhat.com>
4443 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
4444 instead of DF_REF_REAL_REG.
4446 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
4449 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
4450 handling to still return true for x64 targets.
4452 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
4454 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
4456 2010-05-06 Jan Hubicka <jh@suse.cz>
4458 PR tree-optimization/43791
4459 * ipa-inline.c (update_caller_keys): Remove bogus
4460 disregard_inline_limits check.
4462 2010-05-06 Michael Matz <matz@suse.de>
4464 PR tree-optimization/43984
4465 * tree-ssa-pre.c (inserted_phi_names): Remove.
4466 (inserted_exprs): Change to bitmap.
4467 (create_expression_by_pieces): Set bits, don't append to vector.
4468 (insert_into_preds_of_block): Don't handle inserted_phi_names.
4469 (eliminate): Don't look at inserted_phi_names, remove deleted
4470 insns from inserted_exprs.
4471 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
4472 (init_pre, fini_pre): Allocate and free bitmaps.
4473 (execute_pre): Insert insns on edges before elimination.
4475 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
4477 * tree.c (initializer_zerop): Handle STRING_CST.
4479 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
4482 * doc/invoke.texi (Wimplicit): Document as C only.
4483 * opts.c (common_handle_option): Add argument kind.
4484 (handle_option): Rename as read_cmdline_option. Factor out code to...
4485 (handle_option): ... here. New.
4486 (handle_options): Rename as read_cmdline_options.
4487 (decode_options): Update call.
4488 (set_option): Use option index instead of option pointer. Classify
4489 diagnostics correctly.
4490 (enable_warning_as_error): Call handle_option.
4491 * opts.h (set_option): Update declaration.
4492 (handle_option): Declare.
4493 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
4494 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
4495 * c-opts.c (set_Wimplicit): Delete.
4496 (c_family_lang_mask): New static constant.
4497 (c_common_handle_option): Add argument kind. Use handle_option
4498 instead of set_Wimplicit.
4499 (c_common_post_options): warn_implicit and warn_implicit_int
4500 are disabled by default.
4501 * c-common.c (warn_implicit): Do not define here.
4502 * c-common.h (warn_implicit): Do not declare here.
4503 (c_common_handle_option): Update declaration.
4504 * lto-opts.c (lto_reissue_options): Update call to set_option.
4506 2010-05-06 Richard Guenther <rguenther@suse.de>
4508 PR tree-optimization/43571
4509 * domwalk.c (walk_dominator_tree): Walk the dominator
4510 sons in more optimal order.
4512 2010-05-06 Richard Guenther <rguenther@suse.de>
4514 PR tree-optimization/43934
4515 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
4516 (stmt_cost): Likewise.
4517 (extract_true_false_args_from_phi): New helper.
4518 (determine_max_movement): For PHI nodes verify we can hoist them
4519 and compute their cost.
4520 (determine_invariantness_stmt): Handle PHI nodes.
4521 (move_computations_stmt): Likewise. Hoist PHI nodes in
4522 if-converted form using COND_EXPRs.
4523 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
4524 (tree_ssa_lim): Likewise.
4525 * tree-flow.h (tree_ssa_lim): Adjust prototype.
4526 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
4528 2010-05-06 Richard Guenther <rguenther@suse.de>
4530 PR tree-optimization/43987
4531 * tree-ssa-structalias.c (could_have_pointers): For possibly
4532 address-taken variables force pointers to be recorded.
4533 (create_variable_info_for_1): Likewise.
4534 (push_fields_onto_fieldstack): Pass in wheter all fields
4536 (find_func_aliases): Query types instead of vars whether
4537 they contain pointers where appropriate.
4539 2010-05-06 Jan Hubicka <jh@suse.cz>
4541 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
4542 (record_reference, mark_address, mark_load, mark_store): Record
4544 (record_references_in_initializer): Update call of record_references.
4545 (rebuild_cgraph_edges): Remove all references before rebuiding.
4546 * cgraph.c (cgraph_create_node): Clear ref list.
4547 (cgraph_remove_node): Remove references.
4548 (dump_cgraph_node): Dump references.
4549 (cgraph_clone_node): Clone references.
4550 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
4551 (struct cgraph_node, varpool_node): Add ref_lst.
4552 * ipa-ref.c: New file.
4553 * ipa-ref.h: New file.
4554 * ipa-ref-inline.h: New file.
4555 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
4556 (referenced_from_other_partition_p): New function.
4557 (lto_output_varpool_node): Take set arugment; call
4558 referenced_from_other_partition.
4559 (lto_output_ref): New.
4560 (add_references): New.
4562 (output_cgraph): Compute boundary based on references; output refs.
4563 (output_varpool): Accept cgraph_node_set argument.
4566 (input_cgraph): Call input_refs.
4567 * lto-section-in.c (lto_section_name): Add refs.
4568 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
4569 (ipa-ref.o): New file.
4570 * varpool.c (varpool_node): Clear ipa ref list.
4571 (varpool_remove_node): Remove references.
4572 (dump_varpool_node): Dump references.
4573 (varpool_assemble_decl): Only compile finalized ones.
4574 (varpool_extra_name_alias): Initialize ref list.
4575 * lto-streamer.c (lto-get_section_name): Add .refs section.
4576 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
4577 (referenced_from_other_partition_p): Declared.
4579 2010-05-06 Ira Rosen <irar@il.ibm.com>
4581 PR tree-optimization/43901
4582 * tree-vect-stmts.c (vectorizable_call): Assert that vector
4583 type is not NULL if it's transformation phase, and return
4584 FALSE if it's analysis.
4585 (vectorizable_conversion, vectorizable_operation,
4586 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
4588 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
4590 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
4592 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
4594 * config/mips/mips-protos.h
4595 (mips_small_register_classes_for_mode_p): Delete prototype.
4597 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
4599 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
4600 * config/arm/arm.c (multiple_operation_profitable_p,
4601 compute_offset_order): New static functions.
4602 (load_multiple_sequence, store_multiple_sequence): Use them.
4603 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
4604 memory offsets, not register numbers.
4605 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
4607 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
4609 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
4610 (get_pending_sizes, put_pending_size, put_pending_sizes):
4611 Update the uses of pending_sizes.
4612 * c-decl.c (store_parm_decls): Likewise.
4613 * c-tree.h (struct c_arg_info): Likewise.
4614 * tree.h: Update the prototype for get_pending_sizes and
4617 2010-05-05 Jason Merrill <jason@redhat.com>
4620 * c-common.c (handle_aligned_attribute): Respect
4621 ATTR_FLAG_TYPE_IN_PLACE.
4624 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
4625 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
4626 (TARGET_INITIALIZER): Use it.
4627 * c-common.c (attribute_takes_identifier_p): Call it.
4628 * c-common.h: Update prototype.
4629 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
4630 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
4632 2010-05-05 Jakub Jelinek <jakub@redhat.com>
4635 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
4636 DW_ID_down_case for Fortran compilation units.
4638 2010-05-05 Jan Hubicka <jh@suse.cz>
4640 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
4643 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
4645 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
4646 a variable-sized RESULT_DECL.
4648 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
4650 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
4652 2010-05-05 Jason Merrill <jason@redhat.com>
4655 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
4657 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
4659 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
4660 Jakub Jelinek <jakub@redhat.com>
4663 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
4664 (dead_debug_init, dead_debug_finish): New functions.
4665 (dead_debug_add, dead_debug_insert_before): Likewise.
4666 (df_note_bb_compute): Initialize a dead_debug object, add dead
4667 debug uses to it, insert debug bind insns before death insns,
4668 reset debug insns that refer to pending uses at the end.
4669 * rtl.h (make_debug_expr_from_rtl): New prototype.
4670 * varasm.c (make_debug_expr_from_rtl): New function.
4672 2010-05-05 Jan Hubicka <jh@suse.cz>
4674 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
4675 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
4676 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
4677 lto_varpool_encoder_deref, lto_varpool_encoder_size,
4678 lto_varpool_encoder_encode_initializer_p,
4679 lto_set_varpool_encoder_encode_initializer): New functions.
4680 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
4681 call output_varpool.
4682 (input_varpool_node): Do not always set analyzed.
4683 (input_cgraph_1): Return vector of cgraph nodes.
4684 (input_varpool_1): Return vector of varpools.
4685 (input_cgraph): Free the vectors.
4686 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
4687 output only initializers needed.
4688 (lto_output): Only call output_cgraph.
4689 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
4690 * lto-section-out.c (lto_new_out_decl_state): Initialize
4691 state->varpool_node_encoder.
4692 * lto-streamer.h (lto_varpool_encoder_d): New.
4693 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
4694 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
4695 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
4696 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
4697 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
4699 (output_varpool, input_varpool): Remove declarations.
4701 2010-05-05 Jan Hubicka <jh@suse.cz>
4703 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
4704 with body can prevail.
4706 2010-05-05 Jan Hubicka <jh@suse.cz>
4708 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
4711 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4713 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
4715 * gengtype.h (erro_at_line): Constify pos argument.
4717 * gengtype.c: Include hashtab.h.
4718 (enum gc_used): Document GC_MAYBE_POINTED_TO.
4719 (error_at_line): Constify pos argument.
4720 (do_typedef): Initialize p->opt field.
4721 (get_file_gtfilename): Fix comment typo.
4722 (struct walk_type_data): Constify line field.
4723 (get_output_file_for_structure): New function.
4724 (write_local_func_for_structure): Constify orig_s argument.
4725 Use get_output_file_for_structure.
4726 (write_func_for_structure): Use get_output_file_for_structure.
4727 (INDENT): New define.
4728 (dump_pair, dump_type, dump_type_list, dump_typekind)
4729 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
4730 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
4732 (seen_types): New variable.
4733 (main): New variable do_dump. Process "-d" command line option.
4734 Call dump_everything if dump requested.
4736 2010-05-05 Jakub Jelinek <jakub@redhat.com>
4738 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
4739 in a temporary instead of invoking the macro multiple times.
4740 (track_expr_p): Likewise.
4742 2010-05-04 Neil Vachharajani <nvachhar@google.com>
4744 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
4746 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
4747 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
4748 conditions for printing notes.
4749 * common.opt (-Wcoverage-mismatch): Allow negative, default to
4750 true, update documentation.
4751 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
4753 2010-05-04 Jakub Jelinek <jakub@redhat.com>
4756 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
4759 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
4762 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
4763 (*sse_prologue_save_insn1): Likewise.
4764 (SSE prologue save splitter): Likewise.
4766 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
4768 * tree.c (free_lang_data_in_one_sizepos): New inline function.
4769 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
4770 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
4771 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
4772 all decls. Call it on DECL_FIELD_OFFSET of fields.
4773 (find_decls_types_r): Follow DECL_VALUE_EXPR.
4774 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
4776 2010-05-04 Martin Jambor <mjambor@suse.cz>
4778 * tree-sra.c (build_access_from_expr_1): The first parameter type
4779 changed to simple tree.
4780 (build_access_from_expr): Likewise, gsi parameter was eliminated.
4781 (scan_assign_result): Renamed to assignment_mod_result, enum elements
4783 (build_accesses_from_assign): Removed all parameters except for a
4784 simple gimple statement. Now returns a simple bool.
4785 (scan_function): All non-analysis parts moved to separate functions
4786 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
4787 parameters and updated both callers.
4788 (sra_modify_expr): Removed parameter data.
4789 (sra_modify_function_body): New function.
4790 (perform_intra_sra): Call sra_modify_function_body to modify the
4792 (replace_removed_params_ssa_names): Parameter data changed into
4794 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
4795 changed the parameter dont_convert to convert with the opposite
4797 (sra_ipa_modify_assign): Parameter data changed into adjustments
4798 vector, return value changed to bool.
4799 (ipa_sra_modify_function_body): New function.
4800 (sra_ipa_reset_debug_stmts): Updated a comment.
4801 (modify_function): Use ipa_sra_modify_function_body to modify function
4804 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
4807 * alias.c (true_dependence): Handle the same VALUE in x and mem.
4808 (canon_true_dependence): Likewise.
4809 (write_dependence_p): Likewise.
4811 2010-05-04 Jan Hubicka <jh@suse.cz>
4813 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
4814 * cgraphbuild.c: Include ipa-utils.h
4815 (record_reference_ctx): New struct.
4816 (record_reference): Simplify to work on initializers; not statements.
4817 (mark_address, mark_load, mark_store): New.
4818 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
4820 (record_references_in_initializer): Update use of record_reference.
4821 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
4824 2010-05-04 Jan Hubicka <jh@suse.cz>
4826 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
4827 node will be removed anyway.
4828 (lto_varpool_replace_node): Allow also unanalyzed nodes;
4829 relink aliases of node into prevailing node.
4830 * varpool.c (varpool_remove_node): Remove aliases properly;
4831 when removing node, remove all its aliases too; remove DECL_INITIAL
4832 of removed node; ggc_free the varpool node.
4834 2010-05-04 Richard Guenther <rguenther@suse.de>
4836 PR tree-optimization/43879
4837 * tree-ssa-structalias.c (alias_get_name): Use
4838 DECL_ASSEMBLER_NAME if available.
4839 (create_function_info_for): Return the varinfo node.
4840 (ipa_pta_execute): Associate same-body aliases and extra names
4841 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
4843 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
4845 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
4847 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
4850 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
4851 only if HONOR_REG_ALLOC_ORDER is not defined.
4853 2010-05-04 Richard Guenther <rguenther@suse.de>
4855 PR tree-optimization/43949
4856 * tree-vrp.c (extract_range_from_binary_expr): Only handle
4859 2010-04-26 Jason Merrill <jason@redhat.com>
4861 * c.opt (-fstrict-enums): New.
4862 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
4864 2010-05-03 David Ung <davidu@mips.com>
4865 James E. Wilson <wilson@codesourcery.com>
4867 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
4868 emit the trap instruction before the divide for TUNE_74K.
4870 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
4872 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
4873 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
4874 based on the above, for new target hook.
4876 * hooks.c (hook_bool_mode_true): New generic hook.
4877 * hooks.h (hook_bool_mode_true): Add prototype.
4879 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
4881 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
4882 target hook, set to hook_bool_mode_false.
4883 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
4884 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
4885 with targetm.small_register_classes_for_mode_p.
4886 (find_reusable_reload): Likewise.
4887 (combine_reloads): Likewise.
4888 * reload1.c (reload_as_needed): Likewise.
4889 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
4890 * ifcvt.c (noce_process_if_block, check_cond_move_block,
4891 dead_or_predicable): Likewise.
4892 * regmove.c (optimize_reg_copy_1): Likewise.
4893 * calls.c (prepare_call_address): Likewise.
4894 (precompute_register_parameters): Likewise.
4896 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
4898 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
4899 implementation of the hook that considers all register classes
4900 small except for SH64.
4901 (sh_override_options): Use the new hook.
4902 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
4905 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
4907 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
4908 implementation of the hook that considers all register classes
4910 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
4913 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
4915 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
4916 implementation of the hook that considers all register classes
4918 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
4921 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
4923 * config/m32c/m32c.h: Likewise.
4924 * config/pdp11/pdp11.h: Likewise.
4925 * config/avr/avr.h: Likewise.
4926 * config/xtensa/xtensa.h: Likewise.
4927 * config/m68hc11/m68hc11.h: Likewise.
4928 * config/mn10300/mn10300.h: Likewise.
4929 * config/mcore/mcore.h: Likewise.
4930 * config/h8300/h8300.h: Likewise.
4931 * config/bfin/bfin.h: Likewise.
4933 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
4934 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
4936 2010-05-03 Anatoly Sokolov <aesok@post.ru>
4938 * double-int.h (tree_to_double_int): Remove macro.
4939 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
4940 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
4941 (tree_to_double_int): New function.
4942 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
4944 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
4946 2010-05-03 Richard Guenther <rguenther@suse.de>
4948 PR tree-optimization/43971
4949 * tree-ssa-structalias.c (get_constraint_for_1): Fix
4950 constraints in the !flag_delete_null_pointer_checks case.
4952 2010-05-03 Jakub Jelinek <jakub@redhat.com>
4955 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
4956 result mode matches original rtl mode.
4958 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
4961 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
4963 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
4965 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
4966 when processing flag options.
4968 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
4970 * gcov-iov.c (main): Change format string placeholder
4971 from %#08x to 0x%08x.
4972 * genchecksum.c (dosum): Change format string placeholder
4973 from %#02x to 0x%02x.
4975 2010-05-02 Richard Guenther <rguenther@suse.de>
4977 PR tree-optimization/43879
4978 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
4980 2010-05-02 Bruno Haible <bruno@clisp.org>
4982 * doc/extend.texi (Function Attributes): Fix a typo.
4984 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
4987 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
4988 placeholder from 0x%x to %#x.
4989 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
4990 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
4991 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
4992 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
4993 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
4994 * config/i386/i386.c (ix86_target_string): Ditto.
4995 * config/i386/i386.c (output_pic_addr_const): Ditto.
4996 (print_operand): Ditto.
4998 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
5000 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
5001 placeholder from 0x%x to %#x.
5002 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
5003 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
5004 (ASM_OUTPUT_DEBUG_DATA): Ditto.
5005 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
5006 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
5007 * optc-gen.awk: Ditto.
5008 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
5009 (HOST_WIDE_INT_PRINT_HEX): Ditto.
5010 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
5011 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
5013 2010-05-01 Anatoly Sokolov <aesok@post.ru>
5015 * target.h (struct calls): Add function_value_regno_p field.
5016 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
5017 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
5018 * targhooks.c (default_function_value_regno_p): New function.
5019 * targhooks.h (default_function_value_regno_p): Declare function.
5020 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
5021 * builtins.c. (apply_result_size): (Ditto.).
5022 * combine.c. (likely_spilled_retval_p): (Ditto.).
5023 * mode-switching.c. Include 'target.h'.
5024 (create_pre_exit): Use function_value_regno_p hook.
5025 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
5026 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
5027 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
5029 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
5030 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
5031 (ix86_function_value_regno_p): Declare as static, change argument
5032 type to const unsigned int.
5033 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
5035 2010-05-01 Richard Guenther <rguenther@suse.de>
5037 PR tree-optimization/43949
5038 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
5040 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
5042 2010-05-01 Anatoly Sokolov <aesok@post.ru>
5044 * rtl.h (CONST_DOUBLE_P): Define.
5045 (rtx_to_double_int): Declare.
5046 * emit-rtl.c (rtx_to_double_int): New function.
5047 * dwarf2out.c (insert_double): New function.
5048 (loc_descriptor, add_const_value_attribute): Clean up, use
5049 rtx_to_double_int and insert_double functions.
5051 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
5053 * doc/extend.texi (Inline): Add missing return keyword to examples.
5054 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
5057 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
5059 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
5060 the variable part of the offset as well. Use highest_pow2_factor for
5061 all alignment checks.
5063 2010-04-30 Richard Guenther <rguenther@suse.de>
5065 PR tree-optimization/43879
5066 * tree-ssa-structalias.c (type_could_have_pointers): Functions
5069 2010-04-30 Jan Hubicka <jh@suse.cz>
5071 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
5073 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
5075 2010-04-30 Jan Hubicka <jh@suse.cz>
5077 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
5079 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
5080 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
5081 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
5082 cgraph_node_set_needs_ltrans_p): Remove.
5084 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
5086 * sdbout.c: Include vec.h, do not include varray.h.
5087 (deferred_global_decls, sdbout_global_decl,
5088 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
5089 * toplev.c: Do not include varray.h.
5090 (dump_memory_report): Do not dump VARRAY statistics.
5091 * gengtype.c (open_base_file): Ignore varray.h.
5092 * Makefile.in: Update for abovementioned changes.
5093 Remove all traces of varray.c and varray.h.
5094 * varray.c: Remove file.
5095 * varray.h: Remove file.
5097 2010-04-30 Jan Hubicka <jh@suse.cz>
5099 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
5102 2010-04-30 Jan Hubicka <jh@suse.cz>
5104 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
5107 2010-04-30 Richard Guenther <rguenther@suse.de>
5109 * tree-ssa-structalias.c (get_constraint_for_1): Generate
5110 constraints for CONSTRUCTOR.
5112 2010-04-30 Richard Guenther <rguenther@suse.de>
5115 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
5116 first after all lowering passes.
5118 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
5120 * toplev.c: Include varray.h for statistics dumping.
5121 * tree.h: Do not declare varray_head_tag.
5122 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
5123 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
5124 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
5125 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
5126 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
5127 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
5128 c-common.c, c-common.h, reg-stack.c, basic-block.h,
5129 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
5131 * Makefile.in: Update for abovementioned changes.
5133 2010-04-30 Jakub Jelinek <jakub@redhat.com>
5136 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
5138 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
5140 * config/picochip/picochip.c (picochip_legitimize_address): Define.
5141 Use this function to do machine-specific conversion.
5142 (picochip_legitimize_reload_address): Likewise.
5143 (picochip_legitimate_address_p): Check valid base register only if
5145 (picochip_check_conditional_copy): Check for modw only if opnd is
5147 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
5148 to call the function in c.
5149 * config/picochip/picochip-protos.h
5150 (picochip_legitimize_reload_address): Define.
5151 * config/picochip/picochip.md (supported_compare1): Define.
5153 2010-04-30 Jan Hubicka <jh@suse.cz>
5155 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
5156 (cgraph_global_info): Remove inlined.
5157 (LTO_cgraph_tag_names): Remove.
5158 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
5159 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
5160 simplify cgraph tags and document.
5161 (lto_output_node): Use only LTO_cgraph_unavail_node and
5162 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
5163 for_functions_valid, global info, process and output flags.
5164 (input_overwrite_node): Initialize estimated stack size and
5165 estimated growth. Do not read flags we no longer store.
5166 (input_node): Likewise do not read info no longer stored.
5167 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
5170 2010-04-30 Richard Guenther <rguenther@suse.de>
5172 PR tree-optimization/43879
5173 * tree-ssa-structalias.c (get_constraint_for_1): Properly
5174 handle non-zero initializers.
5176 2010-04-30 Richard Guenther <rguenther@suse.de>
5178 * builtins.c (fold_builtin_1): Delete free (0).
5180 2010-04-29 Jan Hubicka <jh@suse.cz>
5182 * gengtype.c (open_base_files): Add lto-streamer.h
5183 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
5184 (pass_ipa_cp): GGC collect.
5185 * toplev. (compile_file): Do not output symbols.
5186 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
5187 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
5188 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
5189 * lto-section-in.c: Include ggc.h
5190 (lto_new_in_decl_state): Alloc in GGC.
5191 (lto_delete_in_decl_state): Likewise.
5192 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
5195 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
5198 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
5199 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
5200 (HONOR_REG_ALLOC_ORDER): Describe new macro.
5201 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
5202 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
5203 account only if HONOR_REG_ALLOC_ORDER is not defined.
5204 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
5205 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
5207 2010-04-29 Jon Grant <04@jguk.org>
5209 * collect2.c (vflag): Change type from int to bool.
5211 (helpflag): New global bool.
5212 (main): Set vflag and debug with boolean, not integer truth values.
5213 Accept new "--help" option and output usage text if found.
5214 * collect2.h (vflag): Update prototype.
5217 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
5220 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
5222 2010-04-29 Richard Guenther <rguenther@suse.de>
5225 * plugin.h (invoke_plugin_callbacks): Annotate arguments
5226 with ATTRIBUTE_UNUSED.
5228 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
5231 * config/i386/i386.c (get_some_local_dynamic_name): Replace
5232 INSN_P with NONDEBUG_INSN_P.
5233 (distance_non_agu_define): Likewise.
5234 (distance_agu_use): Likewise.
5236 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
5238 From Dominique d'Humieres <dominiq@lps.ens.fr>
5240 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
5243 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
5245 * plugin.h (invoke_plugin_callbacks): New inline function.
5246 * plugin.c (flag_plugin_added): New global flag.
5247 (add_new_plugin): Initialize above flag.
5248 (invoke_plugin_callbacks): Rename to ...
5249 (invoke_plugin_callbacks_full): ... this.
5251 2010-04-28 Jan Hubicka <jh@suse.cz>
5253 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
5254 (lto_varpool_replace_node): New.
5255 (lto_symtab_resolve_symbols): Resolve varpool nodes.
5256 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
5257 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
5258 * cgraph.h (varpool_node_ptr): New type.
5259 (varpool_node_ptr): New vector.
5260 (varpool_node_set_def): New structure.
5261 (varpool_node_set): New type.
5262 (varpool_node_set): New vector.
5263 (varpool_node_set_element_def): New structure.
5264 (varpool_node_set_element, const_varpool_node_set_element): New types.
5265 (varpool_node_set_iterator): New type.
5266 (varpool_node): Add prev pointers, add used_from_other_partition,
5268 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
5269 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
5270 varpool_get_node, varpool_remove_node): Declare.
5271 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
5272 varpool_node_set_size): New inlines.
5273 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
5274 * tree-pass.h (varpool_node_set_def): Forward declare.
5275 (ipa_opt_pass_d): Summary writting takes vnode sets too.
5276 (ipa_write_optimization_summaries): Update prototype.
5277 * ipa-cp.c (ipcp_write_summary): Update.
5278 * ipa-reference.c (ipa_reference_write_summary): Update.
5279 * lto-cgraph.c (lto_output_varpool_node): New static function.
5280 (output_varpool): New function.
5281 (input_varpool_node): New static function.
5282 (input_varpool_1): New function.
5283 (input_cgraph): Input varpool.
5284 * ipa-pure-const.c (pure_const_write_summary): Update.
5285 * lto-streamer-out.c (lto_output): Update, output varpool too.
5286 (write_global_stream): Kill WPA hack.
5287 (produce_asm_for_decls): Update.
5288 (output_alias_pair_p): Handle variables.
5289 (output_unreferenced_globals): Output only needed partition of varpool.
5290 * ipa-inline.c (inline_write_summary): Update.
5291 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
5293 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
5294 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
5295 varpool_node_set_new, varpool_node_set_add,
5296 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
5297 debug_varpool_node_set): New functions.
5298 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
5299 (execute_one_pass): Process new decls too.
5300 (ipa_write_summaries_2): Pass around vsets.
5301 (ipa_write_summaries_1): Likewise.
5302 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
5304 (ipa_write_optimization_summaries_1): Pass around vsets.
5305 (ipa_write_optimization_summaries): Likewise.
5306 * varpool.c (varpool_get_node): New.
5307 (varpool_node): Update doubly linked lists.
5308 (varpool_remove_node): New.
5309 (dump_varpool_node): More dumping.
5310 (varpool_enqueue_needed_node): Update doubly linked lists.
5311 (decide_is_variable_needed): Kill ltrans hack.
5312 (varpool_finalize_decl): Kill lto hack.
5313 (varpool_assemble_decl): Skip decls in other partitions.
5314 (varpool_assemble_pending_decls): Update doubly linkes lists.
5315 (varpool_empty_needed_queue): Likewise.
5316 (varpool_extra_name_alias): Likewise.
5317 * lto-streamer.c (lto_get_section_name): Add vars section.
5318 * lto-streamer.h (lto_section_type): Update.
5319 (output_varpool, input_varpool): Declare.
5321 2010-04-28 Mike Stump <mikestump@comcast.net>
5323 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
5325 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
5327 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
5328 record or union type with RECORD_OR_UNION_TYPE_P predicate.
5329 (lto_input_ts_type_tree_pointers): Likewise.
5330 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
5331 (lto_output_ts_type_tree_pointers): Likewise.
5333 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
5335 Uniquization of constants at the Tree level
5336 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
5337 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
5339 (tree_output_constant_def): Declare.
5340 * gimplify.c (gimplify_init_constructor): When using block copy, first
5341 uniquize the constant constructor on the RHS.
5342 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
5343 DECL_IN_CONSTANT_POOL flag.
5344 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
5345 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
5347 (assemble_variable): Deal with symbols belonging to the tree constant
5349 (get_constant_section): Add ALIGN parameter and simplify.
5350 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
5351 (assemble_constant_contents): Use the expression of the VAR_DECL.
5352 (output_constant_def_contents): Use the alignment of the VAR_DECL.
5353 (tree_output_constant_def): New global function.
5354 (mark_constant): Use the expression of the VAR_DECL.
5355 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
5357 (output_object_block): Likewise and assemble the expression.
5359 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
5361 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
5362 hash_tree, eq_tree): New tree hash table.
5363 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
5364 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
5365 lto_orig_address_remove): Reimplement.
5367 2010-04-28 Xinliang David Li <davidxl@google.com>
5370 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
5371 (compute_uninit_opnds_pos): New function.
5372 (is_non_loop_exit_postdominating): New function.
5373 (compute_control_dep_chain): New function.
5374 (find_pdom): New function.
5375 (convert_control_dep_chain_into_preds): New function.
5376 (find_predicates): New function.
5377 (find_control_equiv_block): New function.
5378 (collect_phi_def_edges): New function.
5379 (find_def_preds): New function.
5380 (find_dom): New function.
5381 (dump_predicates): New function.
5382 (get_cmp_code): New function.
5383 (is_value_included_in): New function.
5384 (find_matching_predicate_in_rest_chains): New function.
5385 (use_pred_not_overlap_with_undef_path_pred): New function.
5386 (is_use_properly_guarded): New function.
5387 (normalize_cond_1): New function.
5388 (is_and_or_or): New function.
5389 (normalize_cond): New function.
5390 (is_gcond_subset_of): New function.
5391 (is_subset_of_any): New function.
5392 (is_or_set_subset_of): New function.
5393 (is_and_set_subset_of): New function.
5394 (is_norm_cond_subset_of): New function.
5395 (is_pred_expr_subset_of): New function.
5396 (is_pred_chain_subset_of): New function.
5397 (is_included_in): New function.
5398 (is_superset_of): New function.
5399 (find_uninit_use): New function.
5400 (warn_uninitialized_phi): New function.
5401 (compute_possibly_undefined_names): New function.
5402 (ssa_undefined_value_p): New function.
5403 (execute_late_warn_uninitialized): New function.
5404 * tree-ssa.c (ssa_undefined_value_p): Removed.
5405 (warn_uninit): Changed to extern.
5406 (warn_uninitialized_phi): Removed.
5407 (warn_uninitialized_vars): Changed to extern.
5408 (execute_late_warn_uninitialized): Removed
5409 * tree-flow.h: Add new prototypes.
5410 * timevar.def: Add new time variable.
5411 * Makefile.in: Add new build file.
5413 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
5415 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
5418 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5421 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
5423 2010-04-28 Martin Jambor <mjambor@suse.cz>
5425 * cgraph.h (struct cgraph_node): New field indirect_calls.
5426 (struct cgraph_indirect_call_info): New type.
5427 (struct cgraph_edge): Removed field indirect_call. New fields
5428 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
5429 (cgraph_create_indirect_edge): Declare.
5430 (cgraph_make_edge_direct): Likewise.
5431 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
5432 * ipa-prop.h (struct ipa_param_call_note): Removed.
5433 (struct ipa_node_params): Removed field param_calls.
5434 (ipa_create_all_structures_for_iinln): Declare.
5435 * cgraph.c: Described indirect edges and uids in initial comment.
5436 (cgraph_add_edge_to_call_site_hash): New function.
5437 (cgraph_edge): Search also among the indirect edges, use
5438 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
5439 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
5440 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
5442 (initialize_inline_failed): Assign a reason to indirect edges.
5443 (cgraph_create_edge_1): New function.
5444 (cgraph_create_edge): Moved some functionality to
5445 cgraph_create_edge_1.
5446 (cgraph_create_indirect_edge): New function.
5447 (cgraph_edge_remove_callee): Add an assert checking for
5449 (cgraph_edge_remove_caller): Special-case indirect edges.
5450 (cgraph_remove_edge): Likewise.
5451 (cgraph_set_edge_callee): New function.
5452 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
5453 (cgraph_make_edge_direct): New function.
5454 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
5455 the declaration of the call statement matches.
5456 (cgraph_node_remove_callees): Special-case indirect edges.
5457 (cgraph_clone_edge): Likewise.
5458 (cgraph_clone_node): Clone also the indirect edges.
5459 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
5460 indirect_call, dump count of indirect_calls edges.
5461 * ipa-prop.c (iinlining_processed_edges): New variable.
5462 (ipa_note_param_call): Create indirect edges instead of
5463 creating notes. New parameter node.
5464 (ipa_analyze_call_uses): New parameter node, pass it on to
5465 ipa_note_param_call.
5466 (ipa_analyze_stmt_uses): Likewise.
5467 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
5468 (print_edge_addition_message): Work on edges rather than on notes.
5469 (update_call_notes_after_inlining): Likewise, renamed to
5470 update_indirect_edges_after_inlining.
5471 (ipa_create_all_structures_for_iinln): New function.
5472 (ipa_free_node_params_substructures): Do not free notes.
5473 (ipa_edge_duplication_hook): Propagate bits within
5474 iinlining_processed_edges bitmap.
5475 (ipa_node_duplication_hook): Do not duplicate notes.
5476 (free_all_ipa_structures_after_ipa_cp): Renamed to
5477 ipa_free_all_structures_after_ipa_cp.
5478 (free_all_ipa_structures_after_iinln): Renamed to
5479 ipa_free_all_structures_after_iinln.
5480 (ipa_write_param_call_note): Removed.
5481 (ipa_read_param_call_note): Removed.
5482 (ipa_write_indirect_edge_info): New function.
5483 (ipa_read_indirect_edge_info): Likewise.
5484 (ipa_write_node_info): Do not stream notes, do stream information
5486 (ipa_read_node_info): Likewise.
5487 (lto_ipa_fixup_call_notes): Removed.
5488 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
5489 * ipa-inline.c (pass_ipa_inline): Likewise.
5490 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
5491 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
5492 * tree-inline.c (copy_bb): Removed an unnecessary double check for
5494 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
5496 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
5497 (output_cgraph): Stream also indirect edges.
5498 (lto_output_edge): Added capability to stream indirect edges.
5499 (input_edge): Likewise.
5500 (input_cgraph_1): Likewise.
5501 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
5504 2010-04-28 Richard Guenther <rguenther@suse.de>
5506 PR tree-optimization/43879
5507 PR tree-optimization/43909
5508 * tree-ssa-structalias.c (struct variable_info): Add
5509 only_restrict_pointers flag.
5510 (new_var_info): Initialize it. Increment stats.total_vars here.
5511 (create_function_info_for): Do not increment stats.total_vars here.
5512 (get_function_part_constraint): Fix build with C++.
5513 (insert_into_field_list): Remove.
5514 (push_fields_onto_fieldstack): Properly merge fields.
5515 (create_variable_info_for): Split and simplify.
5516 (create_variable_info_for_1): New piece.
5517 (intra_create_variable_infos): Properly make restrict constraints
5520 2010-04-28 Richard Guenther <rguenther@suse.de>
5523 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
5525 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
5526 Jan Hubicka <hubicka@ucw.cz>
5528 * doc/invoke.texi (-Wsuggest-attribute=const,
5529 -Wsuggest-attribute=pure): Document.
5530 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
5531 (function_always_visible_to_compiler_p,
5532 suggest_attribute, warn_function_pure, warn_function_const):
5534 (check_call): Improve debug info.
5535 (analyze_function): Do not check availability.
5536 (add_new_function): Check availability.
5537 (propagate): Output warnings.
5538 (skip_function_for_local_pure_const): New function.
5539 (local_pure_const): Use it; output warnings.
5540 * common.opt (Wsuggest-attribute=const,
5541 Wsuggest-attribute=pure): New.
5543 2010-04-27 Jakub Jelinek <jakub@redhat.com>
5545 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
5546 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
5547 or DW_CFA_def_cfa_offset{,_sf}.
5549 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
5551 * tree.h: Fix truncated long macros.
5553 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
5555 * collect2.c (TARGET_64BIT): Redefine to target's default.
5556 * tlink.c: Likewise.
5557 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
5558 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
5559 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
5560 for underscoring __USER_LABEL_PREFIX__.
5561 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
5562 (SUB_LINK_ENTRY32): New.
5563 (SUB_LINK_ENTRY64): New.
5564 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
5565 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
5566 (SUB_LINK_ENTRY64): New.
5567 (SUB_LINK_ENTRY): New.
5568 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
5569 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
5570 x64 target is choosen.
5571 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
5572 * configure: Regenerated.
5573 * configure.ac (leading-mingw64-underscores): Option added.
5575 2010-04-27 Jan Hubicka <jh@suse.cz>
5577 * doc/invoke.texi (-fipa-profile): Document.
5578 * opts.c (decode_options): Enable ipa-profile at -O1.
5579 * timevar.def (TV_IPA_PROFILE): Define.
5580 * common.opt (fipa-profile): Add.
5581 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
5583 (cgraph_propagate_frequency): Handle only local ones.
5584 * tree-pass.h (pass_ipa_profile): Declare.
5585 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
5586 (pass_ipa_profile): Use TV_IPA_PROFILE.
5587 * ipa.c (ipa_profile): New function.
5588 (gate_ipa_profile): Likewise.
5589 (pass_ipa_profile): New global variable.
5590 * passes.c (pass_ipa_profile): New.
5592 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
5594 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
5596 2010-04-27 Martin Jambor <mjambor@suse.cz>
5599 * ipa.c (dissolve_same_comdat_group_list): New function.
5600 (function_and_variable_visibility): Call
5601 dissolve_same_comdat_group_list when comdat group contains external or
5603 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
5604 lists are circular and that they contain only DECL_ONE_ONLY nodes.
5606 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
5608 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
5609 (const_hash_1) <VECTOR_CST>: New case.
5610 (compare_constant) <VECTOR_CST>: Likewise.
5611 <ADDR_EXPR>: Deal with LABEL_REFs.
5612 (copy_constant) <VECTOR_CST>: New case.
5614 2010-04-27 Jan Hubicka <jh@suse.cz>
5616 * cgraph.c (cgraph_propagate_frequency): New function.
5617 * cgraph.h (cgraph_propagate_frequency): Declare.
5618 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
5619 cgraph_propagate_frequency.
5621 2010-04-27 Jakub Jelinek <jakub@redhat.com>
5623 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
5625 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
5628 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
5629 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
5630 here to determine which regs to push and how much stack to reserve.
5632 2010-04-27 Jie Zhang <jie@codesourcery.com>
5634 * doc/gimple.texi (gimple_statement_with_ops): Remove
5635 addresses_taken field.
5636 (gimple_statement_with_memory_ops): Likewise.
5638 2010-04-27 Jan Hubicka <jh@suse.cz>
5640 * tree-inline.c (eni_inlining_weights): Remove.
5641 (estimate_num_insns): Special case more builtins.
5643 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
5646 * c-typeck.c (build_binary_op): Move forward check for comparison
5647 pointer with null pointer constant and adjust the diagnostic message.
5649 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
5652 * configure.ac (gcc_cv_as_section_has_align): Set if installed
5653 binutils supports extended .section directive needed by LTO, or
5654 warn if older binutils found.
5655 (LTO_BINARY_READER): New AC_SUBST'd variable.
5656 (LTO_USE_LIBELF): Likewise.
5657 * gcc/config.gcc (lto_binary_reader): New target-specific configure
5659 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
5660 (LTO_USE_LIBELF): Likewise.
5661 * configure: Regenerate.
5663 * collect2.c (is_elf): Rename from this ...
5664 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
5665 object files in addition to ELF-formatted ones.
5666 (scan_prog_file): Caller updated. Also allow for LTO info marker
5667 symbol to be prefixed or not by an extra underscore.
5669 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
5670 * config/i386/winnt.c: Also #include lto-streamer.h
5671 (i386_pe_asm_named_section): Specify 1-byte section alignment for
5673 (i386_pe_asm_output_aligned_decl_common): Add comment.
5674 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
5676 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
5679 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
5680 Add missing earlyclobber for second alternative.
5682 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
5684 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
5685 bits for artificial defs at the top of the block.
5686 * fwprop.c (single_def_use_enter_block): Don't call it.
5688 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
5691 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
5692 instead of "$gcc_cv_objdump -T".
5693 Use "-undefined dynamic_lookup" on darwin.
5694 * gcc/configure: Regenerate.
5696 2010-04-26 Jakub Jelinek <jakub@redhat.com>
5699 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
5701 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
5703 * c-parser.c (struct c_token): Move location field up.
5704 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
5705 (struct c_declspecs): Convert typespec_word, storage_class, and
5706 default_int_p into bitfields.
5707 (struct c_declarator): Move loc field up.
5709 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
5711 * cfgloop.h (struct loop): Move can_be_parallel field up.
5712 * ipa-prop.h (struct ip_node_params): Move bitfields up.
5713 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
5715 (struct iv_cand): Convert pos field into a bitfield.
5716 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
5718 (struct _stmt_vec_info): Shuffle fields for better packing.
5720 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
5722 * varasm.c (IN_NAMED_SECTION): Remove guard.
5723 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
5724 (IN_NAMED_SECTION_P): ...this.
5725 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
5726 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
5728 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
5730 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
5731 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
5732 of shadowing it. Fix comments.
5734 2010-04-26 Jan Hubicka <jh@suse.cz>
5736 * cgraph.c (cgraph_create_node): Set node frequency to normal.
5737 (cgraph_clone_node): Copy function frequency.
5738 * cgraph.h (node_frequency): New enum
5739 (struct cgraph_node): Add.
5740 * final.c (rest_of_clean_state): Update.
5741 * lto-cgraph.c (lto_output_node): Output node frequency.
5742 (input_overwrite_node): Input node frequency.
5743 * tre-ssa-loop-ivopts (computation_cost): Update.
5744 * lto-streamer-out.c (output_function): Do not output function
5746 * predict.c (maybe_hot_frequency_p): Update and handle functions
5748 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
5750 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
5751 (compute_function_frequency): Set noreturn functions to be executed
5753 (choose_function_section): Update.
5754 * lto-streamer-in.c (input_function): Do not input function frequency.
5755 * function.c (allocate_struct_function): Do not initialize function
5757 * function.h (function_frequency): Remove.
5758 (struct function): Remove function frequency.
5759 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
5760 (try_update): Update.
5761 * tree-inline.c (initialize_cfun): Do not update function frequency.
5762 * passes.c (pass_init_dump_file): Update.
5763 * i386.c (ix86_compute_frame_layout): Update.
5764 (ix86_pad_returns): Update.
5766 2010-04-26 Jie Zhang <jie@codesourcery.com>
5768 PR tree-optimization/43833
5769 * tree-vrp.c (range_int_cst_p): New.
5770 (range_int_cst_singleton_p): New.
5771 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
5772 when both operands are constants. Use range_int_cst_p in
5775 2010-04-26 Jan Hubicka <jh@suse.cz>
5777 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
5779 2010-04-26 Richard Guenther <rguenther@suse.de>
5782 * gimple.c (gimple_decl_printable_name): Deal gracefully
5783 with a NULL DECL_NAME.
5785 2010-04-26 Richard Guenther <rguenther@suse.de>
5788 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
5789 if emitting debug information and it is either a function
5790 or a namespace decl.
5792 2010-04-26 Ira Rosen <irar@il.ibm.com>
5794 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
5795 determine if the statement is vectorizable, and a macro to access it.
5796 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
5797 Skip statements that can't be vectorized. If the analysis fails,
5798 mark the statement as unvectorizable if vectorizing basic block.
5799 (vect_compute_data_refs_alignment): Likewise.
5800 (vect_verify_datarefs_alignment): Skip statements marked as
5801 unvectorizable. Add print.
5802 (vect_analyze_group_access): Skip statements that can't be
5803 vectorized. If the analysis fails, mark the statement as
5804 unvectorizable if vectorizing basic block.
5805 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
5806 * tree-vect-stmts.c (vectorizable_store): Fix the number of
5807 generated stmts for SLP.
5808 (new_stmt_vec_info): Initialize the new field.
5809 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
5810 statements marked as unvectorizable.
5812 2010-04-25 Joseph Myers <joseph@codesourcery.com>
5814 * c-common.c (flag_isoc1x): New.
5815 (flag_isoc99): Update comment.
5816 * c-common.h (flag_isoc1x): New.
5817 (flag_isoc99): Update comment.
5818 * c-cppbuiltin.c (builtin_define_float_constants): Also define
5819 __<type>_DECIMAL_DIG__.
5820 * c-opts.c (set_std_c1x): New.
5821 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
5822 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
5823 * c.opt (-std=c1x, -std=gnu1x): New options.
5824 * doc/cpp.texi: Mention -std=c1x.
5825 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
5826 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
5827 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
5828 * doc/standards.texi: Mention C1X.
5829 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
5830 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
5831 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
5834 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
5836 * config/i386/gmon-sol2.c (_mcleanup): Change format string
5837 placeholder from 0x%x to %#x.
5838 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
5839 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
5840 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
5841 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
5842 * config/i386/i386.c (ix86_target_string): Ditto.
5843 (output_pic_addr_const): Ditto.
5844 (print_operand): Ditto.
5846 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
5848 * combine.c (find_split_point): Add third argument. Use it
5849 to find nested multiply-accumulate instructions. Adjust calls.
5850 (try_combine): Adjust call to find_split_point.
5852 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
5854 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
5856 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
5858 PR tree-optimization/41442
5859 * fold-const.c (merge_truthop_with_opposite_arm): New function.
5860 (fold_binary_loc): Call it.
5862 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
5864 * toplev.c (general_init): Set default for fdiagnostics-show-option.
5865 * opts.c (common_handle_option): Allow disabling it.
5866 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
5868 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
5870 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
5871 between modes if both types are integral.
5873 2010-04-23 Richard Guenther <rguenther@suse.de>
5875 PR tree-optimization/43572
5876 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
5878 2010-04-23 Richard Guenther <rguenther@suse.de>
5881 * tree-inline.c (tree_can_inline_p): Also check compatibility
5884 2010-04-23 Martin Jambor <mjambor@suse.cz>
5886 PR tree-optimization/43846
5887 * tree-sra.c (struct access): New flag grp_assignment_read.
5888 (build_accesses_from_assign): Set grp_assignment_read.
5889 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
5890 (enum mark_read_status): New type.
5891 (analyze_access_subtree): Propagate grp_assignment_read, create
5892 accesses also if both direct_read and root->grp_assignment_read.
5894 2010-04-23 Martin Jambor <mjambor@suse.cz>
5897 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
5898 function does not have type attributes.
5900 2010-04-23 Richard Guenther <rguenther@suse.de>
5903 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
5906 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5908 * sese.h (create_if_region_on_edge): Remove.
5910 * sese.c (create_if_region_on_edge): Make static.
5912 * tree-inline.c: Do not include ggc.h.
5914 * expr.c: Do not include ggc.h.
5916 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
5919 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
5922 * config/sh/sh.c (find_barrier): Don't emit a constant pool
5923 in the middle of insns for casesi_worker_2.
5925 2010-04-22 David Edelsohn <edelsohn@gnu.org>
5927 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
5929 2010-04-22 Ira Rosen <irar@il.ibm.com>
5931 PR tree-optimization/43842
5932 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
5933 loop unrolling in update of exit phis. Fix comment.
5934 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
5935 least two reduction statements in the loop before starting SLP
5938 2010-04-22 Nick Clifton <nickc@redhat.com>
5940 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
5942 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
5944 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
5947 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5949 * tree-parloops.c (loop_parallel_p): New argument
5950 parloop_obstack. Pass it down.
5951 (parallelize_loops): New variable parloop_obstack. Initialize it,
5952 pass it down, free it.
5954 * tree-loop-linear.c (linear_transform_loops): Pass down
5957 * tree-data-ref.h (lambda_compute_access_matrices): New argument
5958 of type struct obstack *.
5960 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
5961 scratch_obstack. Initialize it, pass down, free it.
5963 * lambda.h (lambda_loop_new): Remove.
5964 (lambda_matrix_new, lambda_matrix_inverse)
5965 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
5966 argument of type struct obstack *.
5968 * lambda-trans.c (lambda_trans_matrix_new): New argument
5969 lambda_obstack. Pass it down, use obstack allocation for ret.
5970 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
5973 * lambda-mat.c (lambda_matrix_get_column)
5974 (lambda_matrix_project_to_null): Remove.
5975 (lambda_matrix_new): New argument lambda_obstack. Use obstack
5977 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
5980 * lambda-code.c (lambda_loop_new): New function.
5981 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
5982 (lambda_compute_auxillary_space, lambda_compute_target_space)
5983 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
5984 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
5985 (build_access_matrix): New argument lambda_obstack. Use obstack
5987 (lambda_compute_step_signs, lambda_compute_access_matrices): New
5988 argument lambda_obstack. Pass it down.
5990 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
5992 * optabs.h (expand_widening_mult): Declare.
5994 2010-04-22 Richard Guenther <rguenther@suse.de>
5996 PR tree-optimization/43845
5997 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
5998 lookup the CALL_EXPR function and arguments.
6000 2010-04-22 Nick Clifton <nickc@redhat.com>
6002 * config/stormy16/stormy16.c
6003 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
6004 * config/stormy16/stormy16.h: Tidy up formatting.
6005 (DONT_USE_BUILTIN_SETJMP): Remove definition.
6006 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
6007 (ineqbranchsi): Delete pattern.
6008 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
6009 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
6010 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
6011 stormy16-lib2-ucmpsi2.c.
6013 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
6015 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
6016 df_simulate_find_noclobber_defs as appropriate. Keep track of an
6017 extra set merge_set_noclobber, and use it to relax the final test
6019 * df.h (df_simulate_find_noclobber_defs): Declare.
6020 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
6022 (df_simulate_find_noclobber_defs): New function.
6024 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
6026 * config/i386/i386.md: Use {} around multi-line preparation statements.
6028 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6030 * c-tree.h (push_init_level, pop_init_level, set_init_index)
6031 (process_init_element): New argument of type struct obstack *.
6033 * c-typeck.c (push_init_level, pop_init_level, set_designator)
6034 (set_init_index, set_init_label, set_nonincremental_init)
6035 (set_nonincremental_init_from_string, find_init_member)
6036 (output_init_element, output_pending_init_elements)
6037 (process_init_element): New argument braced_init_obstack. Pass it
6039 (push_range_stack, add_pending_init): New argument
6040 braced_init_obstack. Use obstack allocation.
6042 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
6043 braced_init_obstack. Pass it down.
6044 (c_parser_braced_init): New variables ret, braced_init_obstack.
6045 Initialize obstack, pass it down and finally free it.
6047 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
6050 * tree-pass.h (pass_optimize_widening_mul): Declare.
6051 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
6052 gate_optimize_widening_mul): New static functions.
6053 (pass_optimize_widening_mul): New.
6054 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
6055 <case MULT_EXPR>: Remove support for widening multiplies.
6056 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
6057 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
6058 simplify_gen_unary rather than directly building extensions.
6059 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
6061 * expmed.c (expand_widening_mult): New function.
6062 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
6064 2010-04-21 Jan Hubicka <jh@suse.cz>
6066 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
6067 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
6068 * lto-wpa-fixup.c: Remove.
6069 * Makefile.in (lto-wpa-fixup.o): Remove.
6070 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
6071 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
6072 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
6074 2010-04-21 Jan Hubicka <jh@suse.cz>
6076 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
6077 add write_optimization_summary, read_optimization_summary.
6078 (ipa_write_summaries_of_cgraph_node_set): Remove.
6079 (ipa_write_optimization_summaries): Declare.
6080 (ipa_read_optimization_summaries): Declare.
6081 * ipa-cp.c (pass_ipa_cp): Update.
6082 * ipa-reference.c (pass_ipa_reference): Update.
6083 * ipa-pure-const.c (pass_ipa_pure_const): Update.
6084 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
6086 * ipa-inline.c (pass_ipa_inline): Update.
6087 * ipa.c (pass_ipa_whole_program): Update.
6088 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
6089 * passes.c (ipa_write_summaries_1): Do not test wpa.
6090 (ipa_write_optimization_summaries_1): New.
6091 (ipa_write_optimization_summaries): New.
6092 (ipa_read_summaries): Do not test ltrans.
6093 (ipa_read_optimization_summaries_1): New.
6094 (ipa_read_optimization_summaries): New.
6096 2010-04-21 Jan Hubicka <jh@suse.cz>
6098 * lto-cgraph.c (lto_output_node): Do not output comdat groups
6100 (output_cgraph): Do not arrange comdat groups for boundary nodes.
6102 2010-04-21 Jakub Jelinek <jakub@redhat.com>
6105 * dwarf2out.c (add_name_and_src_coords_attributes): Add
6106 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
6108 2010-04-21 Jan Hubicka <jh@suse.cz>
6110 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
6112 2010-04-21 Jan Hubicka <jh@suse.cz>
6114 * varpool.c (decide_is_variable_needed): Variable is always needed
6117 2010-04-21 Jan Hubicka <jh@suse.cz>
6119 * opts.c (decode_options): Enable pure-const pass for whopr.
6121 2010-04-21 Jan Hubicka <jh@suse.cz>
6123 * cgraph.c (dump_cgraph_node): Dump also assembler name.
6124 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
6126 (cgraph_decide_inlining): Do not expect callee to be removed in all
6129 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
6131 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
6133 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
6135 * config/i386/i386.md (x86_shrd): Add athlon_decode and
6136 amdfam10_decode attributes.
6138 2010-04-21 Jakub Jelinek <jakub@redhat.com>
6141 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
6142 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
6143 (lower_copyprivate_clauses): Use private var in outer
6144 context instead of original var. Make sure the types
6145 are correct for VLAs.
6147 2010-04-21 Richard Guenther <rguenther@suse.de>
6149 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
6150 to non-pointer objects.
6152 2010-04-21 Jakub Jelinek <jakub@redhat.com>
6154 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
6155 last chain entry if it starts with the still current label.
6156 (add_location_or_const_value_attribute): Check that
6157 loc_list->first->next is NULL instead of comparing ->first with ->last.
6158 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
6159 to add_var_loc_to_decl.
6161 * dwarf2out.c (output_call_frame_info): For dw_cie_version
6162 >= 4 add also address size and segment size fields into CIE header.
6164 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
6165 long as address size is the same as sizeof (void *) and
6167 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
6168 address size or segment size is unexpected, return DW_EH_PE_omit.
6169 (classify_object_over_fdes): If get_cie_encoding returned
6170 DW_EH_PE_omit, return -1.
6171 (init_object): If classify_object_over_fdes returned -1,
6172 pretend there were no FDEs at all.
6174 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
6176 * config/i386/i386.md (bswap<mode>2): Macroize expander from
6177 bswap{si,di}2 using SWI48 mode iterator.
6178 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
6179 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
6180 set modrm attribute of bswap insn to 0 and remove length attribute.
6181 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
6182 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
6183 set mode attribute to <MODE> and remove length attribute.
6185 2010-04-20 James E. Wilson <wilson@codesourcery.com>
6187 PR rtl-optimization/43520
6188 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
6189 zero available registers.
6191 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6193 * builtins.c (fold_builtin_cproj): Fold more cases.
6195 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6197 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
6198 (fold_builtin_1): Fold builtin cproj.
6199 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
6200 Use ATTR_CONST_NOTHROW_LIST.
6202 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
6204 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
6205 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
6206 ffsi2_no_cmove for !TARGET_CMOVE.
6207 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
6208 (ffssi2): Remove expander.
6209 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
6211 (ctz<mode>2): Ditto from ctz{si,di}2.
6212 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
6214 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
6217 2010-04-20 Jakub Jelinek <jakub@redhat.com>
6219 * dwarf2out.c (AT_linkage_name): Define.
6220 (clone_as_declaration): Handle DW_AT_linkage_name.
6221 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
6222 of DW_AT_MIPS_linkage_name.
6223 (move_linkage_attr): Likewise.
6224 (dwarf2out_finish): Likewise.
6226 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
6229 * fold-const.c (fold_comparison): New folding rule.
6231 2010-04-20 Anatoly Sokolov <aesok@post.ru>
6233 * double-int.h (double_int_setbit): Declare.
6234 * double-int.c (double_int_setbit): New function.
6235 * rtl.h (immed_double_int_const): Declare.
6236 * emit-rtl.c (immed_double_int_const): New function.
6237 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
6238 and immed_double_int_const functions.
6239 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
6240 expand_copysign_bit): (Ditto.).
6241 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
6242 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
6243 * dojump.c (prefer_and_bit_test): (Ditto.).
6244 * expr.c (convert_modes, reduce_to_bit_field_precision,
6245 const_vector_from_tree): (Ditto.).
6246 * expmed.c (mask_rtx, lshift_value): (Ditto.).
6248 2010-04-20 Jan Hubicka <jh@suse.cz>
6250 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
6251 (dump_cgraph_node): Dump new flags.
6252 * cgraph.h (struct cgraph_node): Add flags
6253 reachable_from_other_partition and in_other_partition.
6254 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
6255 other partition can not be removed.
6256 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
6257 the other partition must be output; silence sanity checking on
6258 leaking functions bodies from other paritition.
6259 * lto-cgraph.c (reachable_from_other_partition_p): New function.
6260 (lto_output_node): Output new flags; do not sanity check that inline
6261 clones are output; drop lto_forced_extern_inline_p code; do not mock
6262 visibility flags at partition boundaries.
6263 (add_node_to): New function.
6264 (output_cgraph): Use it to sort functions so masters appear before
6266 (input_overwrite_node): Input new flags.
6267 * passes.c (ipa_write_summaries): Do not call
6268 lto_new_extern_inline_states.
6269 * lto-section-out.c (forced_extern_inline,
6270 lto_new_extern_inline_states lto_delete_extern_inline_states,
6271 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
6272 * lto-streamer.h (lto_new_extern_inline_states,
6273 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
6274 lto_forced_extern_inline_p): Kill.
6276 2010-04-20 Richard Guenther <rguenther@suse.de>
6278 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
6279 from vars that can have pointers.
6280 (process_constraint): Dump useless constraints.
6282 2010-04-20 Richard Guenther <rguenther@suse.de>
6284 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
6285 (dump_sa_points_to_info): Remove asserts.
6286 (init_base_vars): nothing_id isn't an escape point nor does it
6289 2010-04-20 Jakub Jelinek <jakub@redhat.com>
6291 * tree.h (TYPE_REF_IS_RVALUE): Define.
6292 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
6293 should_move_die_to_comdat, prune_unused_types_walk): Handle
6294 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
6295 (modified_type_die, gen_reference_type_die): Emit
6296 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
6297 if TYPE_REF_IS_RVALUE and -gdwarf-4.
6299 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6302 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
6303 calls for -fpic -m31 if they have been sibcall optimized.
6305 2010-04-19 James E. Wilson <wilson@codesourcery.com>
6307 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
6308 ar.lc fixed and call-used.
6310 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
6312 2010-04-19 Jan Hubicka <jh@suse.cz>
6314 * opts.c (decode_options): Disable whpr incompatible passes.
6315 * lto/lto.c (lto_1_to_1_map): Skip clones.
6316 (read_cgraph_and_symbols): Do not mark everything as needed.
6317 (do_whole_program_analysis): Do map only after optimizing;
6318 set proper cgraph_state; use passmanager.
6320 2010-04-19 DJ Delorie <dj@redhat.com>
6322 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
6323 POINTER_PLUS_EXPR and fix them.
6325 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
6327 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
6328 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
6329 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
6330 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
6331 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
6332 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
6333 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
6334 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
6335 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
6336 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
6337 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
6339 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
6341 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
6342 (check_cond_move_block): Likewise.
6343 (cond_move_process_if_block): Likewise.
6344 (noce_find_if_block): Improve formatting.
6345 (find_if_header): Pass 0 to memset and tweak conditions.
6346 (cond_exec_find_if_block): Fix long lines and tweak conditions.
6348 2010-04-19 Jakub Jelinek <jakub@redhat.com>
6350 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
6354 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
6355 with non-local decl doesn't need chain.
6357 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
6359 * ira-color.c (allocno_reload_assign): Avoid accumulating
6360 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
6362 2010-04-19 Martin Jambor <mjambor@suse.cz>
6364 * gimple.h (create_tmp_reg): Declare.
6365 * gimplify.c (create_tmp_reg): New function.
6366 (gimplify_return_expr): Use create_tmp_reg.
6367 (gimplify_omp_atomic): Likewise.
6368 (gimple_regimplify_operands): Likewise.
6369 * tree-dfa.c (make_rename_temp): Likewise.
6370 * tree-predcom.c (predcom_tmp_var): Likewise.
6371 (reassociate_to_the_same_stmt): Likewise.
6372 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
6373 (get_replaced_param_substitute): Likewise.
6374 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
6375 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
6376 * tree-ssa-pre.c (get_representative_for): Likewise.
6377 (create_expression_by_pieces): Likewise.
6378 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
6379 (create_tailcall_accumulator): Likewise.
6381 2010-04-19 Martin Jambor <mjambor@suse.cz>
6383 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
6385 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
6387 2010-04-19 Richard Guenther <rguenther@suse.de>
6389 PR tree-optimization/43796
6390 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
6391 from SCEV in the lattice.
6392 (vrp_visit_phi_node): Dump change.
6394 2010-04-19 Richard Guenther <rguenther@suse.de>
6396 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
6397 * configure: Re-generated.
6399 2010-04-19 Richard Guenther <rguenther@suse.de>
6401 PR tree-optimization/43783
6402 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
6403 constant ARRAY_REF operands two and three if possible.
6405 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
6408 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
6410 2010-04-19 Jie Zhang <jie@codesourcery.com>
6413 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
6415 2010-04-19 Ira Rosen <irar@il.ibm.com>
6417 PR tree-optimization/37027
6418 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
6419 and macro to access it.
6420 (vectorizable_reduction): Add argument.
6421 (vect_get_slp_defs): Likewise.
6422 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
6423 statements for possible use in SLP.
6424 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
6425 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
6426 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
6428 (vectorizable_reduction): Likewise.
6429 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
6431 (vectorizable_type_demotion, vectorizable_type_promotion,
6432 vectorizable_store): Likewise.
6433 (vect_analyze_stmt): Update call to vectorizable_reduction.
6434 (vect_transform_stmt): Likewise.
6435 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
6436 (vect_build_slp_tree): Fix indentation. Check that there are no loads
6437 from different interleaving chains in same node.
6438 (vect_slp_rearrange_stmts): New function.
6439 (vect_supported_load_permutation_p): Allow load permutations for
6440 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
6441 inside SLP nodes if necessary.
6442 (vect_analyze_slp_instance): Handle reductions.
6443 (vect_analyze_slp): Try to build SLP instances originating from groups
6445 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
6446 (vect_get_constant_vectors): Create initial vectors for reductions
6447 according to reduction code. Add new argument.
6448 (vect_get_slp_defs): Add new argument, pass it to
6449 vect_get_constant_vectors.
6450 (vect_schedule_slp_instance): Remove SLP tree root statements.
6452 2010-04-19 Jakub Jelinek <jakub@redhat.com>
6454 * tree.h (ENUM_IS_SCOPED): Define.
6455 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
6456 for ENUM_IS_SCOPED enums.
6458 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
6460 * fold-const.c (fold_comparison): Use ssizetype.
6461 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
6462 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
6463 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
6464 * tree-object-size.c (compute_object_sizes): Use size_type_node.
6466 * tree.h (initialize_sizetypes): Remove parameter.
6467 (build_common_tree_nodes): Remove second parameter.
6468 * stor-layout.c (initialize_sizetypes): Remove parameter.
6469 Always create an unsigned type.
6470 (set_sizetype): Assert that the passed type is unsigned and simplify.
6471 * tree.c (build_common_tree_nodes): Remove second parameter.
6472 Adjust call to initialize_sizetypes.
6473 * c-decl.c (c_init_decl_processing): Remove second argument in call to
6474 build_common_tree_nodes.
6476 2010-04-18 Matthias Klose <doko@ubuntu.com>
6478 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
6480 2010-04-18 Ira Rosen <irar@il.ibm.com>
6482 PR tree-optimization/43771
6483 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
6484 load permutation doesn't have gaps.
6486 2010-04-18 Jan Hubicka <jh@suse.cz>
6488 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
6489 (sse_prologue_save_insn expander): Use new pattern.
6490 (sse_prologue_save_insn1): New pattern and splitter.
6491 (sse_prologue_save_insn): Update to deal also with 64bit aligned
6493 * i386.c (setup_incoming_varargs_64): Do not compute jump
6495 (ix86_gimplify_va_arg): Update alignment needed.
6496 (ix86_local_alignment): Do not align all local arrays to 128bit.
6498 2010-04-17 Jan Hubicka <jh@suse.cz>
6500 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
6502 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
6504 * arm.md (negdi2): Remove redundant code to force values into a
6507 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
6509 * arm/bpabi.S: Add EABI alignment attributes to objects.
6510 * arm/bpabi-v6m.S: Likewise.
6511 * arm/crti.asm: Likewise.
6512 * arm/crtn.asm: Likewise.
6513 * arm/lib1funcs.asm: Likewise.
6514 * arm/libunwind.S: Likewise.
6516 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
6518 * arm-protos.h (tune_params): New structure.
6519 * arm.c (current_tune): New variable.
6520 (arm_constant_limit): Delete.
6521 (struct processors): Add pointer to the tune parameters.
6522 (arm_slowmul_tune): New tuning option.
6523 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
6524 (all_cores): Adjust to pick up the tuning model.
6525 (arm_constant_limit): New function.
6526 (arm_override_options): Select the appropriate tuning model. Delete
6527 initialization of arm_const_limit.
6528 (arm_split_constant): Use the new constant-limit model.
6529 (arm_rtx_costs): Pick up the current tuning model.
6530 * arm.md (is_strongarm, is_xscale): Delete.
6531 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
6532 for Xscale variant architectures.
6533 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
6535 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6537 * config/arm/arm.c (arm_gen_constant): Remove unused variable
6539 (arm_rtx_costs_1): Remove unused variable extra_cost.
6540 (arm_unwind_emit_set): Use variable offset.
6541 (thumb1_output_casesi): Remove unused variable flags.
6543 2010-04-16 Jeff Law <law@redhat.com>
6545 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
6546 needing assignment rather than doing a two-phase assignment. Remove
6547 unused variable 'm'.
6549 2010-04-16 Jakub Jelinek <jakub@redhat.com>
6552 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
6554 2010-04-16 Doug Kwan <dougkwan@google.com>
6556 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
6557 (next_operand_entry_id): New static variable.
6558 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
6559 (add_to_ops_vec): Assigned unique ID to operand entry.
6560 (struct oecount_s): New field ID.
6561 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
6562 (undistribute_ops_list): Assign unique IDs to oecounts.
6563 (init_reassoc): reset next_operand_entry_id.
6565 2010-04-16 Doug Kwan <dougkwan@google.com>
6567 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
6568 missing left parenthesis.
6570 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
6572 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
6573 *btdi_rex64 using SWI48 mode iterator.
6574 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
6575 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
6576 *jcc_btdi_mask_rex64.
6578 2010-04-16 Anatoly Sokolov <aesok@post.ru>
6580 * double-int.h (tree_to_double_int): Convert to macro.
6581 * double-int.c (tree_to_double_int): Remove.
6583 2010-04-16 Jakub Jelinek <jakub@redhat.com>
6586 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
6587 with want_address 2 and in case a single element list might be
6588 possible, call it again with want_address 0.
6590 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
6592 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
6593 case 'W' print operands for HI mode.
6594 * config/h8300/h8300.h (Y0, Y2) : New constraints.
6595 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
6596 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
6597 * config/h8300/predicate.md (bit_register_indirect_operand): New.
6599 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
6601 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
6602 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
6603 #xx:3 and #xx:4 mode.
6605 * config/h8300/h8300.md (inverted load with HImode dest): Add
6606 support for H8300SX.
6608 * config/h8300/predicate.md (bit_operand): Allow immediate values that
6609 satisfy 'U' constraint.
6611 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6613 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
6614 * configure: Regenerate.
6615 * config.in: Regenerate.
6616 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
6619 2010-04-16 Richard Guenther <rguenther@suse.de>
6621 * tree.h (struct tree_decl_minimal): Move pt_uid ...
6622 (struct tree_decl_common): ... here.
6623 (DECL_PT_UID): Adjust.
6624 (SET_DECL_PT_UID): Likewise.
6625 (DECL_PT_UID_SET_P): Likewise.
6627 2010-04-16 Richard Guenther <rguenther@suse.de>
6629 PR tree-optimization/43572
6630 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
6631 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
6632 * tree-flow.h (is_call_clobbered): Remove.
6633 * tree-flow-inline.h (is_call_clobbered): Likewise.
6634 * tree-dfa.c (dump_variable): Do not dump call clobber state.
6635 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
6636 (execute_return_slot_opt): Adjust.
6637 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
6638 check for call clobbered vars here.
6639 (find_tail_calls): Move tailcall verification to the
6642 2010-04-16 Diego Novillo <dnovillo@google.com>
6644 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
6646 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
6649 * config/arm/arm.md (cbranchqi4): New pattern.
6650 * config/arm/predicates.md (const0_operand,
6651 cbranchqi4_comparison_operator): New predicates.
6653 2010-04-16 Richard Guenther <rguenther@suse.de>
6655 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
6656 (dump_gimple_stmt): Likewise.
6658 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
6660 * recog.h (struct recog_data): New field is_operator.
6661 (struct insn_operand_data): New field is_operator.
6662 * recog.c (extract_insn): Set recog_data.is_operator.
6663 * genoutput.c (output_operand_data): Emit code to set the
6665 * reload.c (find_reloads): Use it rather than testing for an
6666 empty constraint string.
6669 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
6670 If the previous insn is a cbranchsi4_insn with the same arguments,
6671 omit the compare instruction.
6673 * config/arm/arm.md (addsi3_cbranch): If destination is a high
6674 register, inputs must be low registers and we need a low register
6675 scratch. Handle alternative 2 like alternative 3.
6677 2010-04-16 Jakub Jelinek <jakub@redhat.com>
6679 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
6680 don't call get_addr on both. If one expression is a VALUE and
6681 the other a REG, check VALUE's locs if the REG isn't among them.
6683 2010-04-16 Christian Bruel <christian.bruel@st.com>
6685 * config/sh/sh.h (sh_frame_pointer_required): New function.
6686 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
6687 (flag_omit_frame_pointer) Set.
6688 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
6689 (rounded_frame_size): Adjust size with outgoing_args_size.
6690 (sh_set_return_address): Must return from stack pointer.
6691 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
6692 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
6693 (ACCUMULATE_OUTGOING_ARGS): Define.
6694 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
6695 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
6697 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
6700 * config/sh/sh.c (sh_legitimize_reload_address): Use
6701 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
6702 Remove a unneeded check for offset_base.
6704 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
6706 * configure: Regenerated.
6708 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6710 * config/s390/s390.c (s390_call_save_register_used): Switch back
6711 to HARD_REGNO_NREGS.
6713 2010-04-15 Richard Guenther <rguenther@suse.de>
6715 * alias.c (alias_set_subset_of): Handle alias-set zero
6718 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
6719 Julian Brown <julian@codesourcery.com>
6721 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
6722 alternatives according to use of high and low regs.
6723 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
6724 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
6725 optimizing for size on Thumb-2.
6727 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
6729 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
6731 2010-04-15 Richard Guenther <rguenther@suse.de>
6733 * tree-ssa-structalias.c (struct variable_info): Add
6735 (new_var_info): Initialize it.
6736 (dump_constraints): Support printing last added constraints.
6737 (debug_constraints): Adjust.
6738 (dump_constraint_graph): Likewise.
6739 (make_heapvar_for): Check for NULL cfun.
6740 (get_function_part_constraint): New function.
6741 (get_fi_for_callee): Likewise.
6742 (find_func_aliases): Properly implement IPA PTA constraints.
6743 (process_ipa_clobber): New function.
6744 (find_func_clobbers): Likewise.
6745 (insert_into_field_list_sorted): Remove.
6746 (create_function_info_for): Properly allocate vars for IPA mode.
6747 Do not use insert_into_field_list_sorted.
6748 (create_variable_info_for): Properly generate constraints for
6749 global vars in IPA mode.
6750 (dump_solution_for_var): Always dump the solution.
6751 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
6752 (find_what_var_points_to): Adjust.
6753 (pt_solution_set): Change.
6754 (pt_solution_ior_into): New function.
6755 (pt_solution_empty_p): Export.
6756 (pt_solution_includes_global): Adjust.
6757 (pt_solution_includes_1): Likewise.
6758 (pt_solutions_intersect_1): Likewise.
6759 (dump_sa_points_to_info): Check some invariants.
6760 (solve_constraints): Move constraint dumping ...
6761 (compute_points_to_sets): ... here.
6762 (ipa_pta_execute): ... and here.
6763 (compute_may_aliases): Do not re-compute points-to info
6764 locally if IPA info is available.
6765 (ipa_escaped_pt): New global var.
6766 (ipa_pta_execute): Properly implement IPA PTA.
6767 * tree-into-ssa.c (dump_decl_set): Support dumping
6768 decls not in referenced-vars.
6769 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
6770 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
6771 (dump_points_to_solution): Likewise.
6772 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
6773 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
6774 (remap_gimple_stmt): Reset call clobber/use information if necessary.
6775 (copy_decl_to_var): Copy DECL_PT_UID.
6776 (copy_result_decl_to_var): Likewise.
6777 * tree.c (make_node_stat): Initialize DECL_PT_UID.
6778 (copy_node_stat): Copy it.
6779 * tree.h (DECL_PT_UID): New macro.
6780 (SET_DECL_PT_UID): Likewise.
6781 (DECL_PT_UID_SET_P): Likewise.
6782 (struct tree_decl_minimal): Add pt_uid member.
6783 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
6784 (pt_solution_empty_p): Declare.
6785 (pt_solution_set): Adjust.
6786 (ipa_escaped_pt): Declare.
6787 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
6788 * gimple-pretty-print.c (pp_points_to_solution): New function.
6789 (dump_gimple_call): Dump call clobber/use information.
6790 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
6791 * tree-pass.h (TDF_ALIAS): New dump option.
6792 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
6793 * doc/invoke.texi (-fipa-pta): Update documentation.
6795 2010-04-15 Richard Guenther <rguenther@suse.de>
6797 * Makefile.in (OBJS-common): Add gimple-fold.o.
6798 (gimple-fold.o): New rule.
6799 * tree.h (maybe_fold_offset_to_reference,
6800 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
6802 * gimple.h: ... here.
6803 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
6804 may_propagate_address_into_dereference): Move prototypes ...
6805 * gimple.h: ... here.
6806 * tree-ssa-ccp.c (get_symbol_constant_value,
6807 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
6808 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
6809 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
6810 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
6811 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
6812 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
6813 gimplify_and_update_call_from_tree): Move ...
6814 * gimple-fold.c: ... here. New file.
6815 (ccp_fold_builtin): Rename to ...
6816 (gimple_fold_builtin): ... this.
6817 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
6819 2010-04-15 Richard Guenther <rguenther@suse.de>
6821 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
6822 fit_double_type, force_fit_type_double, add_double_with_sign,
6823 neg_double, mul_double_with_sign, lshift_double, rshift_double,
6824 lrotate_double, rrotate_double, div_and_round_double): Move ...
6825 * double-int.c: ... here.
6826 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
6827 add_double, neg_double, mul_double_with_sign, mul_double,
6828 lshift_double, rshift_double, lrotate_double, rrotate_double,
6829 div_and_round_double): Move prototypes ...
6830 * double-int.h: ... here.
6832 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
6835 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
6836 matching constraints to ensure inputs match the output.
6838 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
6841 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
6842 in an input-only operand.
6844 2010-04-15 Anatoly Sokolov <aesok@post.ru>
6846 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
6847 (double_int_not, double_int_lshift, double_int_rshift): Declare.
6848 (double_int_negative_p): Convert to static inline function.
6849 * double-int.c (double_int_lshift, double_int_lshift): New functions.
6850 (double_int_negative_p): Remove.
6851 * tree.h (lshift_double, rshift_double):
6852 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
6853 * fold-const.c (fold_convert_const_int_from_real,
6854 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
6855 (lshift_double): Change type of arith argument to bool.
6856 (rshift_double): Change type of arith argument to bool. Correct
6858 * expmed.c (mask_rtx, lshift_value): (Ditto.).
6860 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
6863 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
6864 at the start and end of the then/else blocks, and omit them from the
6866 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
6867 argument; all callers changed. Pass zero to old_insns_match_p instead.
6868 (flow_find_head_matching_sequence): New function.
6869 (old_insns_match_p): Check REG_EH_REGION notes for calls.
6870 * basic-block.h (flow_find_cross_jump,
6871 flow_find_head_matching_sequence): Declare functions.
6873 2010-04-14 Jason Merrill <jason@redhat.com>
6876 * c-common.c (attribute_takes_identifier_p): New fn.
6877 * c-common.h: Declare it.
6879 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
6881 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
6883 (*udivmod<mode>4): Ditto.
6885 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
6887 * config/i386/i386.md (maxmin_int): Rename code attribute from
6888 maxminiprefix and update all users.
6889 (maxmin_float): Ditto from maxminfprefix.
6890 (logic): Ditto from logicprefix.
6891 (absneg_mnemonic): Ditto from absnegprefix.
6892 * config/i386/mmx.md: Update all users of maxminiprefix,
6893 maxminfprefix and logicprefix for rename.
6894 * config/i386/sse.md: Ditto.
6895 * config/i386/sync.md (sync_<code><mode>): Update for
6898 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
6901 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
6902 warnings converted to errors.
6904 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
6906 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
6907 used insn_type variable.
6908 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
6909 to avoid set-but-not-used warning.
6911 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
6913 * df-core.c (df_ref_debug): Change format string placeholder
6915 * dwarf2asm.c (dw2_asm_output_data_raw,
6916 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
6917 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
6918 * dwarf2out.c (output_cfi, output_cfi_directive,
6919 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
6920 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
6922 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
6923 * print-rtl.c (print_rtx): Ditto.
6925 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6928 * builtins.c (expand_builtin_pow_root): New function to expand pow
6929 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
6930 series of sqrt and cbrt calls under -ffast-math.
6931 (expand_builtin_pow): Call it.
6933 2010-04-14 Michael Matz <matz@suse.de>
6935 PR tree-optimization/42963
6936 * tree-cfg.c (touched_switch_bbs): New static variable.
6937 (group_case_labels_stmt): New function broken out from ...
6938 (group_case_labels): ... here, use the above.
6939 (start_recording_case_labels): Allocate touched_switch_bbs.
6940 (end_recording_case_labels): Deallocate it, call
6941 group_case_labels_stmt.
6942 (gimple_redirect_edge_and_branch): Remember index of affected BB.
6944 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
6946 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
6949 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
6951 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
6953 2010-04-13 Jan Hubicka <jh@suse.cz>
6955 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
6956 of optimized out static functions.
6957 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
6958 cost computation. Also sanity check for overflows.
6959 (update_caller_keys): Update cgraph_edge_badness call; properly
6960 update fibheap and sanity check that it is up to date.
6961 (add_new_edges_to_heap): Update cgraph_edge_badness.
6962 (cgraph_decide_inlining_of_small_function): Likewise;
6963 add sanity checking that badness in heap is up to date;
6964 improve dumping of reason; Update badness of calls to the
6965 offline copy of function currently inlined; dump badness
6966 of functions not inlined because of unit growth limits.
6968 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
6971 * c-common.c (pointer_int_sum): Disregard overflow that occured only
6972 because of sign-extension change when converting to sizetype here...
6973 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
6975 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
6976 the folding to constants. Remove redundant final conversion.
6977 (fold_binary) <associate>: Do not associate if the re-association of
6978 constants alone overflows.
6979 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
6980 to the end of the list.
6981 (multiple_of_p) <COND_EXPR>: New case.
6983 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
6985 * opt-functions.awk (opt_sanitized_name): New.
6987 * optc-gen.awk: Use it
6988 * opth-gen.awk: Use it.
6990 2010-04-13 Martin Jambor <mjambor@suse.cz>
6992 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
6993 (sra_modify_assign): Delete stmts loading dead data even if racc has no
6994 children. Call replace_uses_with_default_def_ssa_name to handle
6997 2010-04-13 Michael Matz <matz@suse.de>
7000 * builtins.c (expand_builtin_interclass_mathfn): Also create
7001 a register if the predicate doesn't match.
7003 2010-04-13 Diego Novillo <dnovillo@google.com>
7005 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
7006 * c-pch.c: Include timevar.h.
7007 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
7008 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
7009 * ggc-common.c: Include timevar.h.
7010 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
7011 * timevar.def (TV_PCH_SAVE): Define.
7012 (TV_PCH_CPP_SAVE): Define.
7013 (TV_PCH_PTR_REALLOC): Define.
7014 (TV_PCH_PTR_SORT): Define.
7015 (TV_PCH_RESTORE): Define.
7016 (TV_PCH_CPP_RESTORE): Define.
7018 2010-04-13 Michael Matz <matz@suse.de>
7020 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
7022 (can_reassociate_p): New function.
7023 (break_up_subtract_bb, reassociate_bb): Use it.
7025 2010-04-13 Richard Guenther <rguenther@suse.de>
7028 * builtins.c (c_readstr): Fix assert.
7030 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
7032 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
7033 when generating cltd insn.
7035 (*ashl<mode>3_1): Remove special handling for register operand 2.
7036 (*ashlsi3_1_zext): Ditto.
7037 (*ashlhi3_1): Ditto.
7038 (*ashlhi3_1_lea): Ditto.
7039 (*ashlqi3_1): Ditto.
7040 (*ashlqi3_1_lea): Ditto.
7041 (*<shiftrt_insn><mode>3_1): Ditto.
7042 (*<shiftrt_insn>si3_1_zext): Ditto.
7043 (*<shiftrt_insn>qi3_1_slp): Ditto.
7044 (*<rotate_insn><mode>3_1): Ditto.
7045 (*<rotate_insn>si3_1_zext): Ditto.
7046 (*<rotate_insn>qi3_1_slp): Ditto.
7048 2010-04-13 Richard Guenther <rguenther@suse.de>
7050 * tree-ssa-structalias.c (callused_id): Remove.
7051 (call_stmt_vars): New.
7052 (get_call_vi): Likewise.
7053 (lookup_call_use_vi): Likewise.
7054 (lookup_call_clobber_vi): Likewise.
7055 (get_call_use_vi): Likewise.
7056 (get_call_clobber_vi): Likewise.
7057 (make_transitive_closure_constraints): Likewise.
7058 (handle_const_call): Adjust to do per-call call-used handling.
7059 (handle_pure_call): Likewise.
7060 (find_what_var_points_to): Remove general callused handling.
7061 (init_base_vars): Likewise.
7062 (init_alias_vars): Initialize call_stmt_vars.
7063 (compute_points_to_sets): Process call-used and call-clobbered
7064 vars for call statements.
7065 (delete_points_to_sets): Free call_stmt_vars.
7067 2010-04-13 Richard Guenther <rguenther@suse.de>
7069 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
7070 Only add RW dependence for dependence distance zero.
7071 Adjust maximal vectorization factor according to dependences.
7072 Move alignment handling ...
7073 (vect_find_same_alignment_drs): ... here. New function.
7074 (vect_analyze_data_ref_dependences): Adjust.
7075 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
7076 (vect_analyze_data_refs): Adjust minimal vectorization factor
7077 according to data references.
7078 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
7079 dependences before determining the vectorization factor.
7080 Analyze alignment after determining the vectorization factor.
7081 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
7082 dependences before alignment.
7083 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
7085 (vect_analyze_data_refs): Likewise.
7086 (MAX_VECTORIZATION_FACTOR): New define.
7088 2010-04-13 Duncan Sands <baldrick@free.fr>
7090 * except.h (lang_eh_type_covers): Remove.
7091 * except.c (lang_eh_type_covers): Likewise.
7093 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7094 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7096 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
7097 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
7098 UNITS_PER_LONG where it is ABI relevant.
7099 (s390_return_addr_rtx): Likewise.
7100 (s390_back_chain_rtx): Likewise.
7101 (s390_frame_area): Likewise.
7102 (s390_frame_info): Likewise.
7103 (s390_initial_elimination_offset): Likewise.
7104 (save_gprs): Likewise.
7105 (s390_emit_prologue): Likewise.
7106 (s390_emit_epilogue): Likewise.
7107 (s390_function_arg_advance): Likewise.
7108 (s390_function_arg): Likewise.
7109 (s390_va_start): Likewise.
7110 (s390_gimplify_va_arg): Likewise.
7111 (s390_function_profiler): Likewise.
7112 (s390_optimize_prologue): Likewise.
7113 (s390_rtx_costs): Likewise.
7114 (s390_secondary_reload): Likewise.
7115 (s390_promote_function_mode): Likewise.
7116 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
7117 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
7118 registers available.
7119 (s390_unwind_word_mode): New function.
7120 (s390_function_value): Split 64 bit values into register pair if
7121 used as return value.
7122 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
7123 function call parameters. Handle parallels.
7124 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
7125 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
7126 (DWARF_CIE_DATA_ALIGNMENT): New macro.
7127 (s390_expand_setmem): Remove unused variable src_addr.
7128 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
7129 deal with 64 bit registers.
7130 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
7131 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
7132 (UNITS_PER_LONG): New macro.
7133 * libjava/include/s390-signal.h: Define extended ucontext
7134 structure containing the upper halfs of the 64 bit registers.
7136 2010-04-13 Simon Baldwin <simonb@google.com>
7138 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
7140 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
7142 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
7143 rvalue on the RHS if the LHS is of a non-renamable type.
7144 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
7146 2010-04-13 Matthias Klose <doko@ubuntu.com>
7148 * gcc.c (cc1_options): Handle -iplugindir before processing
7149 the cc1 spec. Only add -iplugindir once.
7150 (cpp_unique_options): Add -iplugindir option if -fplugin* options
7152 * common.opt (iplugindir): Remove `Separate' property, initialize.
7153 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
7155 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
7156 (distclean): Remove plugin dir.
7157 * doc/invoke.texi: Document -iplugindir.
7159 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
7161 * doc/plugins.texi (Loading Plugins): Document short
7162 -fplugin=foo option.
7163 (Plugin API): Mention default_plugin_dir_name function.
7165 * gcc.c (find_file_spec_function): Add new declaration.
7166 (static_spec_func): Use it for "find-file".
7167 (find_file_spec_function): Add new function.
7168 (cc1_options): Add -iplugindir option if -fplugin* options found.
7170 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
7172 * plugin.c (add_new_plugin): Updated comment, and handle short
7174 (default_plugin_dir_name): Added new function.
7176 * common.opt (iplugindir): New option to set the plugin directory.
7178 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
7180 * config/i386/i386.md (any_rotate): New code iterator.
7181 (rotate_insn): New code attribute.
7183 (SWIM124): New mode iterator.
7184 (<rotate_insn>ti3): New expander.
7185 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
7186 any_rotate code iterator.
7187 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
7188 using any_rotate code iterator and SWIM124 mode iterator.
7189 (ix86_rotlti3): New insn_and_split pattern.
7190 (ix86_rotrti3): Ditto.
7191 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
7192 ix86_rotl{di,ti}3 patterns.
7193 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
7194 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
7195 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
7196 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
7197 code iterator and SWI mode iterator.
7198 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
7199 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
7201 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
7202 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
7203 (bswap rotatert splitter): Add splitter.
7204 (bswap splitter): Macroize splitter using any_rotate code iterator.
7205 Add insn predicate to split only for TARGET_USE_XCHGB or when
7206 optimizing function for size.
7208 2010-04-12 Steve Ellcey <sje@cup.hp.com>
7210 * config/pa/pa.c (emit_move_sequence): Remove use of
7211 deleted variable flag_argument_noalias.
7213 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7215 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
7217 Add to unsupported targets list.
7218 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
7219 sparc*-sun-solaris2.[567]* from target lists.
7220 * configure: Regenerate.
7221 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
7223 Remove Solaris 7 patch references.
7224 (Specific, sparc-sun-solaris2.7): Removed.
7225 (sparc-sun-solaris2*): Update Solaris 7 example.
7226 (sparc64-*-solaris2*): Likewise.
7228 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7230 * config.build (alpha*-dec-osf4*): Remove.
7231 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
7232 of obsolete configurations.
7233 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
7235 * config/alpha/t-osf4: Renamed to ...
7236 * config/alpha/t-osf5: ... this.
7237 * config/alpha/osf.h: Renamed to ...
7238 * config/alpha/osf5.h: ... this.
7239 Merged old osf5.h contents.
7241 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
7242 (EXTRA_SPECS): Removed.
7243 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
7244 reflect removal of Tru64 UNIX V4.0/V5.0 support.
7247 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7249 * doc/contrib.texi (Contributors, Rainer Orth): Update.
7251 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
7254 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
7255 __thiscall convention.
7257 2010-04-12 Steve Ellcey <sje@cup.hp.com>
7259 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
7261 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
7263 2010-04-12 Steve Ellcey <sje@cup.hp.com>
7265 * function.c (assign_parms_initialize_all): Add unused attribute
7268 2010-04-12 Richard Guenther <rguenther@suse.de>
7270 * gsstruct.def (GSS_CALL): New.
7271 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
7272 * gimple.h: Include tree-ssa-alias.h.
7273 (struct gimple_statement_call): New.
7274 (union gimple_statement_struct_d): Add gimple_call member.
7275 (gimple_call_reset_alias_info): Declare.
7276 (gimple_call_use_set): New function.
7277 (gimple_call_clobber_set): Likewise.
7278 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
7279 * gimple.c (gimple_call_reset_alias_info): New function.
7280 (gimple_build_call_1): Call it.
7281 * lto-streamer-in.c (input_gimple_stmt): Likewise.
7282 * tree-inline.c (remap_gimple_stmt): Likewise.
7283 (expand_call_inline): Remove callused handling.
7284 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
7285 * tree-dfa.c (dump_variable): Likewise.
7286 * tree-parloops.c (parallelize_loops): Likewise.
7287 * tree-ssa.c (init_tree_ssa): Likewise.
7288 (delete_tree_ssa): Likewise.
7289 * tree-flow-inline.h (is_call_used): Remove.
7290 * tree-flow.h (struct gimple_df): Remove callused member.
7291 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
7292 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
7293 (ref_maybe_used_by_call_p_1): Simplify.
7294 (call_may_clobber_ref_p_1): Likewise.
7295 * tree-ssa-structalias.c (compute_points_to_sets): Set
7296 the call stmt used and clobbered sets.
7297 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
7298 (find_tail_calls): Verify the tail call.
7300 2010-04-12 Richard Guenther <rguenther@suse.de>
7302 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
7303 single-iteration always-inline inlining.
7304 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
7305 (cgraph_decide_inlining): Do not handle always-inline specially.
7306 (try_inline): Remove always-inline cycle detection special case.
7307 Do not recurse on always-inlines.
7308 (cgraph_early_inlining): Do not iterate if not optimizing.
7309 (cgraph_gate_early_inlining): remove.
7310 (pass_early_inline): Run unconditionally.
7311 (gate_cgraph_decide_inlining): New function.
7312 (pass_ipa_inline): Use it. Do not run the IPA inliner if
7313 not inlining or optimizing.
7314 (cgraph_decide_inlining_of_small_functions): Also consider
7315 always-inline functions.
7316 (cgraph_default_inline_p): Return true for nodes which should
7317 disregard inline limits.
7318 (estimate_function_body_sizes): Assume zero size and time for
7319 nodes which are marked as disregarding inline limits.
7320 (cgraph_decide_recursive_inlining): Do not perform recursive
7321 inlining on always-inline nodes.
7323 2010-04-12 Jakub Jelinek <jakub@redhat.com>
7326 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
7327 for exprs satisfying handled_component_p.
7329 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
7331 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
7332 non-constant aggregate elements.
7334 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
7335 is a real initialization.
7337 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
7340 * c-decl.c (start_function): Move forward check for nested function.
7342 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
7344 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
7345 * config/sh/sh.c: Include reload.h.
7346 (sh_legitimize_reload_address): New.
7347 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
7348 sh_legitimize_reload_address.
7350 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
7352 * config/sh/sh.md (*movqi_pop): New insn pattern.
7353 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
7355 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
7357 * config/i386/i386.md (any_shiftrt): New code iterator.
7358 (shiftrt_insn): New code attribute.
7360 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
7361 using any_shiftrt code iterator.
7362 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
7363 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
7364 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
7365 pattern from corresponding peephole2 patterns.
7366 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
7367 using any_shiftrt code iterator.
7368 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
7369 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
7370 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
7371 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
7372 *{ashr,lshr}<mode>3_cmp_zext.
7373 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
7375 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
7377 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
7379 (*lshr<mode>3_cconly): Ditto.
7381 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
7383 * config/i386/i386.md (lshr<mode>3): Macroize expander from
7384 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
7385 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
7386 pattern from *lshr{di,ti}3_1 and corresponding splitters using
7388 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
7389 from corresponding peephole2 patterns.
7390 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
7391 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
7392 and *lshrdi3_1_rex64 using SWI mode iterator.
7393 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
7394 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
7395 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
7396 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
7397 and *lshrdi3_cmp_rex64 using SWI mode iterator.
7398 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
7399 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
7400 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
7401 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
7404 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
7406 * config/i386/i386.md (ashr<mode>3): Macroize expander from
7407 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
7408 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
7409 pattern from *ashr{di,ti}3_1 and corresponding splitters using
7411 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
7412 from corresponding peephole2 patterns.
7413 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
7414 (ashrsi3_cvt): Rename from ashrsi3_31.
7415 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
7416 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
7417 and x86_64_shift_adj_3 using SWI48 mode iterator.
7418 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
7419 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
7420 and *ashrdi3_1_rex64 using SWI mode iterator.
7421 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
7422 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
7423 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
7424 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
7425 and *ashrdi3_cmp_rex64 using SWI mode iterator.
7426 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
7427 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
7428 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
7429 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
7431 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
7432 * config/i386/i386.c (ix86_split_ashr): Update for renamed
7433 x86_shift<mode>_adj_3 expanders.
7435 2010-04-10 Wei Guozhi <carrot@google.com>
7438 * config/arm/arm.c (arm_pic_static_addr): New function.
7439 (legitimize_pic_address): Call arm_pic_static_addr when it detects
7441 (arm_output_addr_const_extra): Output expression for new pattern.
7442 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
7444 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
7446 * ira-costs.c (record_reg_classes): Ignore alternatives that are
7449 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
7450 * web.c: Include "insn-config.h" and "recog.h".
7451 (union_match_dups): New function.
7452 (web_main): Call it.
7453 (union_defs): Don't try to recognize match_dups.
7455 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
7456 if doing so would replace the entire pattern.
7458 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
7462 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
7463 and splitter pattern. Change splitter operand 1 predicate to
7466 2010-04-09 Martin Jambor <mjambor@suse.cz>
7468 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
7469 lattices are addresses of CONST_DECLs with the same initial value.
7470 (ipcp_print_all_lattices): Print values of CONST_DECLs.
7471 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
7473 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
7474 Bernd Schmidt <bernds@codesourcery.com>
7476 * loop-invariant.c (replace_uses): New static function.
7477 (move_invariant_reg): Use it to ensure we can replace the uses.
7479 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
7481 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
7483 (picochip_override_options): Enable section anchors only above -O1.
7484 (picochip_reorg): Fixed a couple of build warnings.
7486 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7488 * configure.ac (plugin -rdynamic test): Log result.
7489 * configure: Regenerate.
7490 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
7491 (RDYNAMIC_SPEC): Define.
7492 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
7494 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7496 * configure.ac: Determine Sun ld version numbers.
7497 (comdat_group): Restrict GNU ld version checks to gld.
7498 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
7499 (enable_comdat): Support --enable-comdat.
7500 * configure: Regenerate.
7501 * doc/install.texi (Configuration): Document --enable-comdat.
7503 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7505 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
7506 * config/sol2-gld.h: ... here.
7507 * config.gcc (sparc*-*-solaris2*): Reflect this.
7508 (i[34567]86-*-solaris2*): Use it.
7510 2010-04-09 Steve Ellcey <sje@cup.hp.com>
7512 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
7514 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
7516 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
7519 * diagnostic.c (diagnostic_initialize): Initialize
7520 some_warnings_are_errors.
7521 (diagnostic_finish): New.
7522 (diagnostic_action_after_output): Call it before exiting.
7523 (diagnostic_report_diagnostic): Do not print message here. Set
7524 some_warnings_are_errors.
7525 * diagnostic.h (diagnostic_context): Delete
7526 issue_warnings_are_errors_message. Add some_warnings_are_errors.
7527 (diagnostic_finish): Declare.
7528 * toplev.c (toplev_main): Call it before exit.
7530 2010-04-09 Jason Merrill <jason@redhat.com>
7533 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
7534 for incomplete type.
7537 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
7538 based on a warning flag.
7540 2010-04-09 Richard Guenther <rguenther@suse.de>
7542 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
7544 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
7547 * varasm.c (default_assemble_visibility): Wrap vars that are
7548 set, but unused, by targets without GAS.
7549 * config/rs6000/rs6000.c (paired_emit_vector_compare):
7550 Remove set, but unused, vars.
7551 (rs6000_legitimize_tls_address): Likewise.
7552 (altivec_expand_dst_builtin): Likewise.
7553 * config/darwin.c (machopic_classify_symbol): Likewise.
7554 (machopic_indirection_name): Likewise.
7556 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
7558 * config/i386/i386.md (DWI): New mode iterator.
7559 (S): New mode attribute.
7560 (shift_operand): Ditto.
7561 (shift_immediate_operand): Ditto.
7562 (ashl_input_operand): Ditto.
7563 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
7564 using SDWIM mode iterator.
7565 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
7566 pattern from *ashl{di,ti}3_1 and corresponding splitters using
7568 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
7569 from corresponding peephole2 patterns.
7570 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
7571 and x86_64_shift_adj_1 using SWI48 mode iterator.
7572 (x86_shift<mode>_adj_2): Ditto.
7573 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
7574 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
7575 using SWI48 mode iterator.
7576 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
7577 *ashldi3_cmp_rex64 using SWI mode iterator.
7578 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
7579 *ashldi3_cconly_rex64 using SWI mode iterator.
7580 * config/i386/i386.c (ix86_split_ashl): Update for renamed
7581 x86_shift<mode>_adj_{1,2}.
7582 (ix86_split_ashr): Ditto.
7583 (ix86_split_lshr): Ditto.
7585 2010-04-09 Richard Guenther <rguenther@suse.de>
7587 * target.h (builtin_conversion): Pass in input and output types.
7588 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
7589 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
7590 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
7591 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
7593 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
7595 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
7597 2010-04-09 Richard Guenther <rguenther@suse.de>
7600 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
7602 2010-04-09 Richard Guenther <rguenther@suse.de>
7604 * tree-vectorizer.h (struct _stmt_vec_info): Document
7605 that vectype is the type of the LHS.
7606 (supportable_widening_operation, supportable_narrowing_operation):
7607 Get both input and output vector types as arguments.
7608 (vect_is_simple_use_1): Declare.
7609 (get_same_sized_vectype): Likewise.
7610 * tree-vect-loop.c (vect_determine_vectorization_factor):
7611 Set STMT_VINFO_VECTYPE to the vector type of the def.
7612 (vectorizable_reduction): Adjust.
7613 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
7614 Adjust. Specify the output vector type.
7615 (vect_pattern_recog_1): Adjust.
7616 * tree-vect-stmts.c (get_same_sized_vectype): New function.
7617 (vectorizable_call): Adjust.
7618 (vectorizable_conversion): Likewise.
7619 (vectorizable_operation): Likewise.
7620 (vectorizable_type_demotion): Likewise.
7621 (vectorizable_type_promotion): Likewise.
7622 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
7624 (vect_is_simple_use_1): New function.
7625 (supportable_widening_operation): Get both input and output
7627 (supportable_narrowing_operation): Likewise.
7628 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
7630 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
7632 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
7633 __thiscall and _thiscall as predefined macros.
7634 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
7635 thiscall attribute handling.
7636 (ix86_comp_type_attributes): Likewise.
7637 (ix86_function_regparm): Likewise.
7638 (ix86_return_pops_args): Likewise.
7639 (init_cumulative_args): Likewise.
7640 (find_drap_reg): Likewise.
7641 (ix86_static_chain): Likewise.
7642 (x86_this_parameter): Likewise.
7643 (x86_output_mi_thunk): Likewise.
7644 (ix86_attribute_table): Add description for thiscall attribute.
7645 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
7646 * doc/extend.texi: Add documentation for thiscall.
7648 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
7651 * c.opt (Wint-to-pointer-cast): Available in C++.
7652 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
7654 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
7656 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
7657 * calls.c (expand_call): Pass the function type to aggregate_value_p.
7658 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
7659 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
7660 function type instead. Reorder and simplify checks.
7662 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
7664 2010-04-08 Jing Yu <jingyu@google.com>
7665 Zdenek Dvorak <ook@ucw.cz>
7667 PR tree-optimization/42720
7668 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
7669 loop unswitch conditions here from ...
7670 (tree_unswitch_single_loop): ... here.
7672 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
7674 * tree-if-conv.c: Fix comments and simplify logic.
7676 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
7678 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
7679 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
7680 (main_tree_if_conversion): Update call to tree_if_conversion.
7682 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
7685 * doc/invoke.texi (-b,-V): Delete.
7686 * doc/tm.texi: Do not mention -b.
7687 * gcc.c (display_help): Delete -b and -V.
7688 (process_command): Delete -b and -V.
7689 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
7691 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
7692 Wolfgang Gellerich <gellerich@de.ibm.com>
7694 Implement target hook for loop unrolling
7695 * target.h (loop_unroll_adjust): Add a new target hook function.
7696 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
7697 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
7698 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
7699 (s390_loop_unroll_adjust): Implement the new target hook for s390.
7700 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
7702 (decide_unroll_stupid): Likewise.
7704 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7707 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
7709 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7711 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
7712 (Specific, *-*-solaris2*): Likewise.
7713 Don't prefer Sun as over GNU as.
7715 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
7717 * config/s390/s390.c (override_options): Adjust the z10 defaults
7718 for max-unroll-times, max-completely-peeled-insns
7719 and max-completely-peel-times.
7721 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7723 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
7724 instructions for z10.
7725 (s390_expand_setmem): Likewise.
7726 (s390_expand_cmpmem): Likewise.
7728 2010-04-08 Richard Guenther <rguenther@suse.de>
7730 PR tree-optimization/43679
7731 * tree-ssa-pre.c (eliminate): Only propagate copies.
7733 2010-04-08 Jakub Jelinek <jakub@redhat.com>
7736 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
7737 set but not used variable warning.
7739 2010-04-08 Wei Guozhi <carrot@google.com>
7742 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
7743 (arm_size_rtx_costs): Call the new function when optimized for size.
7745 2010-04-08 Jakub Jelinek <jakub@redhat.com>
7748 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
7749 op0 is not a MEM, just return NULL instead of assertion
7751 (discover_nonconstant_array_refs): Don't walk debug stmts.
7753 2010-04-08 Doug Kwan <dougkwan@google.com>
7755 * configure.ac: Recognize gold and do not use its version number
7756 to test ld features.
7757 * configure: Regenerate.
7759 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
7762 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
7763 (negate_value): Move code to push elements to broken_up_substracts ...
7764 (eliminate_plus_minus_pair): ... here. Push operands that have no
7765 negative pair to plus_negates.
7766 (repropagate_negates, init_reassoc, fini_reassoc): Update.
7768 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7770 * doc/install.texi (Configuration): Move description of
7771 --enable-lto, --with-libelf*, --enable-gold from Java section to
7774 * doc/generic.texi (Working with declarations)
7775 (Function Properties, C and C++ Trees): Fix typos.
7776 * doc/sourcebuild.texi (Top Level): Likewise.
7778 2010-04-07 Jakub Jelinek <jakub@redhat.com>
7781 * tree.h (DECL_READ_P): Define.
7782 (struct tree_decl_common): Add decl_read_flag.
7783 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
7784 a set but not used warning.
7785 (merge_decls): Merge DECL_READ_P flag.
7786 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
7787 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
7788 * c-common.c (handle_used_attribute, handle_unused_attribute):
7790 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
7792 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
7794 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
7795 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
7796 c_parser_binary_expression, c_parser_cast_expression,
7797 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
7798 Call default_function_array_read_conversion instead of
7799 default_function_array_conversion where needed.
7800 (c_parser_unary_expression, c_parser_conditional_expression,
7801 c_parser_postfix_expression_after_primary, c_parser_initelt):
7802 Likewise. Call mark_exp_read where needed.
7803 (c_parser_statement_after_labels, c_parser_asm_operands,
7804 c_parser_typeof_specifier, c_parser_sizeof_expression,
7805 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
7807 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
7809 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
7810 (warn_unused_but_set_parameter): Default to warn_unused
7812 * doc/invoke.texi: Document -Wunused-but-set-variable and
7813 -Wunused-but-set-parameter.
7815 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
7816 used count variable.
7817 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
7818 when operandN variables aren't used in the body of the expander
7820 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
7821 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
7822 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
7823 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
7824 FOR_EACH_IMM_USE_ON_STMT): Likewise.
7825 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
7826 * tree.c (PROCESS_ARG): Likewise.
7828 2010-04-07 Simon Baldwin <simonb@google.com>
7830 * diagnostic.h (diagnostic_override_option_index): New macro to
7831 set a diagnostic's option_index.
7832 * c-tree.h (c_cpp_error): Add warning reason argument.
7833 * opts.c (_warning_as_error_callback): New.
7834 (register_warning_as_error_callback): Store callback for
7835 warnings enabled via enable_warning_as_error.
7836 (enable_warning_as_error): Call callback, minor code tidy.
7837 * opts.h (register_warning_as_error_callback): Declare.
7838 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
7839 response to -Werror=.
7840 (c_common_init_options): Register warning_as_error_callback in opts.c.
7841 * common.opt: Add -Wno-cpp option.
7842 * c-common.c (struct reason_option_codes_t): Map cpp warning
7843 reason codes to gcc option indexes.
7844 * (c_option_controlling_cpp_error): New function, lookup the gcc
7845 option index for a cpp warning reason code.
7846 * (c_cpp_error): Add warning reason argument, call
7847 c_option_controlling_cpp_error for diagnostic_override_option_index.
7848 * doc/invoke.texi: Document -Wno-cpp.
7850 2010-04-07 Richard Guenther <rguenther@suse.de>
7852 * ipa-reference.c (mark_load): Use get_base_address.
7853 (mark_store): Likewise.
7855 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
7856 inserting GIMPLE_NOPs into the IL.
7857 * tree-ssa-structalias.c (get_constraint_for_component_ref):
7858 Explicitly strip handled components and indirect references.
7860 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
7861 folding address expressions.
7862 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
7863 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
7864 operand_equal_p to compare decls.
7865 (ptr_deref_may_alias_decl_p): Likewise.
7866 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
7867 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
7868 Handle reversed comparison ops.
7869 * tree-sra.c (asm_visit_addr): Use get_base_address.
7870 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
7871 * ipa-reference.c (mark_address): Use get_base_address.
7873 2010-04-07 Richard Guenther <rguenther@suse.de>
7875 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
7876 Propagate constants everywhere.
7878 2010-04-07 Jakub Jelinek <jakub@redhat.com>
7881 * tree.c (MAX_INT_CACHED_PREC): Define.
7882 (nonstandard_integer_type_cache): New array.
7883 (build_nonstandard_integer_type): Cache results for precision
7884 <= MAX_INT_CACHED_PREC.
7886 2010-04-07 Richard Guenther <rguenther@suse.de>
7888 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
7889 -fargument-noalias-global, -fargument-noalias-anything): Remove.
7890 * common.opt: Likewise.
7891 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
7892 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
7893 (nonoverlapping_memrefs_p): Likewise.
7894 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
7895 * opts.c (common_handle_option): Handle OPT_fargument_alias,
7896 OPT_fargument_noalias, OPT_fargument_noalias_anything and
7897 OPT_fargument_noalias_global for backward compatibility.
7899 2010-04-07 Richard Guenther <rguenther@suse.de>
7901 PR tree-optimization/43270
7902 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
7903 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
7904 * tree-ssa-pre.c (phi_translate_1): Adjust.
7905 (fully_constant_expression): Split out vn_reference handling to ...
7906 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
7907 Fold reads from constant strings.
7908 (vn_reference_lookup): Handle fully constant references.
7909 (vn_reference_lookup_pieces): Likewise.
7910 * Makefile.in (expmed.o-warn): Add -Wno-error.
7912 2010-04-07 Martin Jambor <mjambor@suse.cz>
7914 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
7916 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
7919 * gcc.c: Add -static-libstdc++ to list of recognized options.
7921 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7923 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
7925 2010-04-07 Richard Guenther <rguenther@suse.de>
7928 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
7929 bases build simple mem attributes to retain points-to information.
7931 2010-04-07 Richard Guenther <rguenther@suse.de>
7934 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
7935 preserve points-to related information.
7937 2010-04-07 Richard Guenther <rguenther@suse.de>
7940 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
7941 discard plain indirect references.
7942 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
7943 * tree.c (tree_nop_conversion): Likewise.
7945 2010-04-07 Dodji Seketeli <dodji@redhat.com>
7948 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
7950 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
7952 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
7953 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
7955 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
7957 * tree-if-conv.c: Fix indentation and comments.
7959 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
7961 * tree-if-conv.c: Sort static functions in topological order.
7963 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
7965 * tree-if-conv.c: Fix indentation and comments.
7967 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
7970 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
7971 lang_hooks.types.type_for_size instead of
7972 build_nonstandard_integer_type.
7973 When converting an unsigned type to signed, double its precision.
7974 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
7975 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
7976 (graphite_create_new_loop_guard): When ub + 1 wraps around,
7979 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
7982 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
7983 POINTER_PLUS_EXPR for pointer types.
7985 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
7988 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
7989 * graphite-clast-to-gimple.c: Include langhooks.h.
7990 (max_signed_precision_type): New.
7991 (max_precision_type): Takes two types as arguments.
7992 (precision_for_value): New.
7993 (precision_for_interval): New.
7994 (gcc_type_for_interval): New.
7995 (gcc_type_for_value): New.
7996 (gcc_type_for_clast_term): New.
7997 (gcc_type_for_clast_red): New.
7998 (gcc_type_for_clast_bin): New.
7999 (gcc_type_for_clast_expr): Split up into several functions.
8000 (gcc_type_for_clast_eq): Rewritten.
8001 (compute_bounds_for_level): New.
8002 (compute_type_for_level_1): New.
8003 (compute_type_for_level): New.
8004 (gcc_type_for_cloog_iv): Removed.
8005 (gcc_type_for_iv_of_clast_loop): Rewritten.
8006 (graphite_create_new_loop): Compute the lower and upper bound types
8007 with gcc_type_for_clast_expr.
8008 (graphite_create_new_loop_guard): Same.
8009 (find_cloog_iv_in_expr): Removed.
8010 (compute_cloog_iv_types_1): Removed.
8011 (compute_cloog_iv_types): Removed.
8012 (gloog): Do not call compute_cloog_iv_types.
8013 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
8015 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
8016 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
8017 (GBB_CLOOG_IV_TYPES): Removed.
8019 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
8021 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
8022 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
8023 (detect_commutative_reduction): Same.
8025 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
8027 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
8028 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
8030 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
8031 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
8032 (rewrite_commutative_reductions_out_of_ssa): Same.
8033 * passes.c (execute_function_todo): Call verify_ssa for every pass
8034 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
8035 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
8036 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
8037 with an extra argument.
8038 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
8039 verify_ssa only when the extra argument is true.
8040 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
8041 with an extra argument.
8042 (tree_transform_and_unroll_loop): Same.
8044 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
8046 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
8047 for all the passes of the LNO having LOOP_CLOSED_SSA.
8048 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
8049 * tree-loop-distribution.c (pass_loop_distribution): Same.
8050 * tree-pass.h (TODO_verify_loops): Removed.
8051 * tree-ssa-loop.c (pass_tree_loop_init): Same.
8053 (pass_tree_unswitch): Same.
8054 (pass_predcom): Same.
8055 (pass_vectorize): Same.
8056 (pass_linear_transform): Same.
8057 (pass_graphite_transforms): Same.
8058 (pass_iv_canon): Same.
8059 (pass_complete_unroll): Same.
8060 (pass_complete_unrolli): Same.
8061 (pass_parallelize_loops): Same.
8062 (pass_loop_prefetch): Same.
8063 (pass_iv_optimize): Same.
8065 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
8068 * passes.c (init_optimization_passes): Move pass_lim before
8069 pass_copy_prop and pass_dce_loop.
8071 2010-04-06 Jakub Jelinek <jakub@redhat.com>
8074 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
8075 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
8076 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
8077 MULTI_* defines for 4 argument vpermil2p* builtins.
8079 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
8081 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
8082 * config/i386/i386.c (x86_maybe_negate_const_int): New.
8083 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
8084 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
8085 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
8086 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
8087 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
8088 Use x86_maybe_negate_const_int to output insn mnemonic.
8089 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
8090 check from instruction predicate. Update comments.
8091 * config/i386/sync.md (sync_add<mode>): Use
8092 x86_maybe_negate_const_int to output insn mnemonic.
8094 2010-04-06 Jan Hubicka <jh@suse.cz>
8096 PR tree-optimization/42906
8097 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
8098 IGNORE_SELF argument. Set visited_control_parents for fully
8100 (find_obviously_necessary_stmts): Update call of
8101 mark_control_dependent_edges_necessary.
8102 (propagate_necessity): Likewise. Handle PHI edges more curefully.
8104 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
8106 * config/i386/i386.md: Remove comment about 'e' and 'E'
8109 2010-04-06 Richard Guenther <rguenther@suse.de>
8111 PR tree-optimization/43627
8112 * tree-vrp.c (extract_range_from_unary_expr): Widenings
8113 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
8116 2010-04-06 Jakub Jelinek <jakub@redhat.com>
8118 * BASE-VER: Change to 4.6.0.
8121 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
8124 2010-04-06 Richard Guenther <rguenther@suse.de>
8127 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
8129 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8131 * doc/invoke.texi (Optimize Options): Document that LTO
8132 won't remove object access purely due to incompatible
8135 2010-04-04 Matthias Klose <doko@ubuntu.com>
8137 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
8138 Initialize variable.
8140 2010-04-03 Richard Guenther <rguenther@suse.de>
8143 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
8144 require a non-NULL MEM_OFFSET.
8146 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
8148 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
8149 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
8150 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
8151 config/alpha/predicates.md, config/arm/arm.md,
8152 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
8153 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
8154 config/darwin9.h, config/darwin.c, config/darwin.h,
8155 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
8156 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
8157 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
8158 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
8159 config/mips/mips.md, config/mn10300/mn10300.c,
8160 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
8161 config/rs6000/aix.h, config/rs6000/dfp.md,
8162 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
8163 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
8164 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
8165 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
8166 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
8167 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
8168 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
8169 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
8170 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
8171 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
8172 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
8173 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
8174 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
8175 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
8176 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
8177 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
8178 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
8179 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
8180 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
8181 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
8182 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
8183 opt-functions.awk, opth-gen.awk, params.def, passes.c,
8184 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
8185 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
8186 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
8187 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
8188 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
8189 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
8190 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
8191 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
8192 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
8193 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
8194 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
8195 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
8196 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
8197 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
8199 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8202 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
8203 * aclocal.m4: Regenerate.
8205 2010-04-02 Richard Guenther <rguenther@suse.de>
8207 PR tree-optimization/43629
8208 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
8209 if we have seen a constant value.
8211 2010-04-02 Joseph Myers <joseph@codesourcery.com>
8213 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
8215 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
8218 * arm.c (legitimize_tls_address): Adjust call to
8219 gen_tls_load_dot_plus_four.
8220 (arm_note_pic_base): New function.
8221 (arm_cannot_copy_insn_p): Use it.
8222 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
8225 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8230 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8232 * Makefile.in ($(out_object_file)): Depend on
8233 gt-$(basename $(notdir $(out_file))).h.
8235 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
8237 * config.gcc (lm32-*-rtems*): Add t-lm32.
8239 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
8241 * config.gcc: Add lm32-*-rtems*.
8242 * config/lm32/rtems.h: New file.
8244 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
8247 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
8249 2010-04-01 Jakub Jelinek <jakub@redhat.com>
8251 * dwarf2out.c (output_compilation_unit_header): For
8252 -gdwarf-4 use version 4 instead of version 3.
8253 (output_line_info): For version 4 and above emit additional
8254 maximum ops per insn header field.
8255 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
8257 * dwarf2out.c (is_c_family, is_java): Remove.
8258 (lower_bound_default): New function.
8259 (add_bound_info, gen_descr_array_type_die): Use it.
8261 2010-04-01 Dodji Seketeli <dodji@redhat.com>
8264 * dwarf2out.c (gen_variable_die): Allow debug info for variable
8265 re-declaration when it happens in a function.
8267 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
8269 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
8270 (cgraph_remove_function_insertion_hook): Same.
8271 (cgraph_call_function_insertion_hooks): Same.
8273 2010-04-01 Richard Guenther <rguenther@suse.de>
8276 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
8277 and TREE_THIS_VOLATILE.
8278 (copy_ref_info): Likewise.
8279 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
8280 * tree.c (build6_stat): Ignore side-effects of all but arg5
8281 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
8284 2010-04-01 Richard Guenther <rguenther@suse.de>
8286 PR tree-optimization/43607
8287 * ipa-type-escape.c (check_call): Do not access non-existing
8290 2010-04-01 Richard Guenther <rguenther@suse.de>
8294 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
8295 Jack Howarth <howarth@bromo.med.uc.edu>
8297 * tree-profile.c (tree_init_ic_make_global_vars): Make static
8300 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8302 * doc/install.texi (Prerequisites): Document libelf usability on
8303 IRIX 5/6 and Solaris 2.
8304 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
8305 Update GNU as, GNU ld requirements.
8306 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
8307 Document Sun Studio compiler download.
8308 Update and simplify as, ld recommendations.
8309 (Specific, *-*-solaris2.7): Note obsoletion, removal.
8311 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8313 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
8314 with_tune_32 to pentium4.
8316 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
8318 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
8320 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8322 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
8323 obsoletion, removal.
8325 Document GNU as requirement.
8326 Update configure requirements.
8327 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
8328 Recomment IRIX 6.5.18+.
8329 Document IDF/IDL requirement.
8330 Document GNU as requirement.
8331 Document GNU ld bootstrap failure.
8332 Remove freeware.sgi.com reference.
8334 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8336 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
8337 UNIX V4.0, V5.0 obsoletion, removal.
8338 Remove --with-gc=simple reference.
8339 Update VM requirements during bootstrap.
8340 Remove -oldas bootstrap description.
8341 Update binutils reference.
8342 Remove comparison failure note.
8344 2010-03-31 Richard Guenther <rguenther@suse.de>
8345 Zdenek Dvorak <ook@ucw.cz>
8346 Sebastian Pop <sebastian.pop@amd.com>
8349 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
8350 with multiple arguments.
8351 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
8353 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
8355 * graphite-dependences.c (print_pddr): Call print_pdr with an
8357 * graphite-poly.c (debug_pdr): Add an extra argument for the
8360 (print_pbb_domain): Same.
8362 (print_scop_context): Same.
8364 (print_cloog): Same.
8365 (debug_pbb_domain): Same.
8369 (debug_scop_context): Same.
8371 (debug_cloog): Same.
8372 (print_scop_params): Same.
8373 (debug_scop_params): Same.
8374 (print_iteration_domain): Same.
8375 (print_iteration_domains): Same.
8376 (debug_iteration_domain): Same.
8377 (debug_iteration_domains): Same.
8378 (print_scattering_function): Same.
8379 (print_scattering_functions): Same.
8380 (debug_scattering_function): Same.
8381 (debug_scattering_functions): Same.
8382 * graphite-poly.h (debug_pdr): Update declaration.
8384 (print_pbb_domain): Same.
8386 (print_scop_context): Same.
8388 (print_cloog): Same.
8389 (debug_pbb_domain): Same.
8393 (debug_scop_context): Same.
8395 (debug_cloog): Same.
8396 (print_scop_params): Same.
8397 (debug_scop_params): Same.
8398 (print_iteration_domain): Same.
8399 (print_iteration_domains): Same.
8400 (debug_iteration_domain): Same.
8401 (debug_iteration_domains): Same.
8402 (print_scattering_function): Same.
8403 (print_scattering_functions): Same.
8404 (debug_scattering_function): Same.
8405 (debug_scattering_functions): Same.
8407 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
8409 * graphite-poly.c (print_scattering_function_1): New.
8410 (print_scattering_function): Call it.
8411 (print_scop_params): Remove spaces at the end of lines.
8414 * graphite-poly.h (print_cloog): Declared.
8415 (debug_cloog): Declared.
8417 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
8419 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
8421 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
8422 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
8423 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
8424 to switch between adding the IV bump in loop->latch or in loop->header.
8426 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
8428 * graphite-poly.c (print_scattering_function): Pretty print following
8431 (print_pbb_domain): Same.
8432 (dump_gbb_cases): Same.
8433 (dump_gbb_conditions): Same.
8436 (print_scop_params): Same.
8437 (print_scop_context): Same.
8439 (print_pbb_body): New.
8440 (lst_indent_to): New.
8441 (print_lst): Start new lines with a #.
8442 * graphite-poly.h (pbb_bb): New.
8443 (pbb_index): Use pbb_bb.
8444 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
8446 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
8448 2010-03-31 Jakub Jelinek <jakub@redhat.com>
8450 * dwarf2out.c (size_of_die): For -gdwarf-4 use
8451 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
8452 and 0 instead of 1 for dw_val_class_flag.
8453 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
8454 dw_val_class_range_list, dw_val_class_loc_list,
8455 dw_val_class_lineptr and dw_val_class_macptr, use
8456 DW_FORM_flag_present for dw_val_class_flag and
8457 DW_FORM_exprloc for dw_val_class_loc.
8458 (output_die): For -gdwarf-4 print dw_val_class_loc
8459 size as uleb128 instead of 1 or 2 bytes and don't print
8460 anything for dw_val_class_flag.
8462 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
8463 instead of cselib_lookup following by tweaking locs->setting_insn.
8466 * cselib.c (cselib_process_insn): Clear cselib_current_insn
8467 even before returning from label, setjmp call or volatile asm
8470 2010-03-31 Richard Guenther <rguenther@suse.de>
8473 * cgraphunit.c (cgraph_output_in_order): Do not allocate
8474 temporary data on stack.
8476 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8478 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
8479 (PUSHSECTION_ASM_OP): Remove.
8480 (POPSECTION_ASM_OP): Remove.
8481 (PUSHSECTION_FORMAT): Remove.
8482 * config/sol2.h (PUSHSECTION_FORMAT): Define.
8483 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
8484 * config/sol2.c (solaris_output_init_fini): Use it.
8486 2010-03-31 Jie Zhang <jie@codesourcery.com>
8489 * opt-functions.awk (var_type_struct): Use signed char type
8490 for simple variables.
8492 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8494 * config/sol2.c: Include output.h.
8495 (solaris_assemble_visibility): New function.
8496 * config/t-sol2 (sol2.o): Add output.h dependency.
8497 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
8498 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
8501 2010-03-31 Jakub Jelinek <jakub@redhat.com>
8504 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
8505 V2SImode or XFmode on PRE_DEC.
8508 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
8511 2010-03-31 Jie Zhang <jie@codesourcery.com>
8514 * reload.h (caller_save_initialized_p): Declare.
8515 * toplev.c (backend_init_target): Don't call
8516 init_caller_save but set caller_save_initialized_p to false.
8517 * caller-save.c (caller_save_initialized_p): Define.
8518 (init_caller_save): Check caller_save_initialized_p.
8519 * ira.c (ira): Call init_caller_save if flag_caller_saves.
8521 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8524 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
8525 and soft-fp/t-softfp to tmake_file.
8526 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
8527 (LIBGCC2_TF_CEXT): Define.
8530 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
8533 * cselib.c (n_useless_values): Document handling of debug locs.
8534 (n_useless_debug_values, n_debug_values): New variables.
8535 (new_elt_loc_list): Don't add to debug values, keep count.
8536 (promote_debug_loc): New.
8537 (cselib_reset_table): Zero new variables.
8538 (entry_and_rtx_equal_p): Promote debug locs.
8539 (discard_useless_locs): Increment n_useless_debug_values for
8541 (remove_useless_values): Adjust n_useless_values and n_debug_values
8542 with n_useless_debug_values.
8543 (add_mem_for_addr): Promote debug locs.
8544 (cselib_lookup_mem): Likewise.
8545 (cselib_lookup_addr): Renamed to...
8546 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
8547 (cselib_log_lookup): ... this. Turn into...
8548 (cselib_lookup_addr): ... new wrapper.
8549 (cselib_lookup_from_insn): New.
8550 (cselib_invalidate_regno): Increment n_useless_debug_values for
8552 (cselib_invalidate_mem): Likewise.
8553 (cselib_process_insn): Take n_deleted and n_debug_values into
8554 account to guard remove_useless_value call.
8555 (cselib_finish): Zero n_useless_debug_values.
8556 * cselib.h (cselib_lookup_from_insn): Declare.
8557 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
8558 (sched_analyze_2): Likewise.
8560 2010-03-30 Jakub Jelinek <jakub@redhat.com>
8562 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
8564 (adjust_mems): Replace narrowing SUBREG of expression containing
8565 just PLUS, MINUS, MULT and ASHIFT of registers and constants
8566 with operations in the narrower mode.
8569 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
8570 regs_invalidated_by_call instead all call_used_reg_set registers.
8572 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
8575 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
8576 pointer comparisons with types_compatible_p.
8577 * tree-vect-stmts.c (vectorizable_call): Same.
8578 (vectorizable_condition): Same.
8580 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8582 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
8583 stack check if the mask would be zero.
8585 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
8586 Jack Howarth <howarth@bromo.med.uc.edu>
8588 * tree-profile.c (tree_init_ic_make_global_vars): Make static
8591 2010-03-30 Joseph Myers <joseph@codesourcery.com>
8594 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
8596 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
8597 Include ___unordxf2 and ___unordtf2.
8598 * config/i386/libgcc-glibc.ver: Do not define inheritance from
8601 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
8603 * config/lm32/t-lm32: New file.
8604 * config.gcc: Use the above file when targetting lm32.
8606 2010-03-28 Duncan Sands <baldrick@free.fr>
8608 * Makefile.in (PLUGIN_HEADERS): Add except.h.
8610 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
8613 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
8614 Improve vectorization cost model diagnostic.
8616 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
8619 * tree-vect-data-refs.c (vect_analyze_data_refs): When
8620 compute_data_dependences_for_loop returns false, early exit
8621 and output an extra diagnostic for the failed data reference
8624 2010-03-29 Richard Guenther <rguenther@suse.de>
8626 PR tree-optimization/43560
8627 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
8628 (can_sm_ref_p): Treat stores to readonly locations as trapping.
8630 2010-03-29 Jie Zhang <jie@codesourcery.com>
8633 * toplev.c (process_options): Set optimization_default_node
8634 and optimization_current_node.
8635 * opts.c (decode_options): Don't set optimization_default_node
8636 and optimization_current_node.
8638 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
8640 * config/rtems.h: Abandon -qrtems_debug.
8642 2010-03-28 Jan Hubicka <jh@suse.cz>
8644 PR tree-optimization/43505
8645 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
8646 map should not be copied.
8648 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8651 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
8652 cdtors, set DECL_PRESERVE_P.
8653 * ipa.c (cgraph_externally_visible_p): Return true if declaration
8656 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
8658 PR tree-optimization/43528
8659 * stor-layout.c (place_field): Check that constant fits into
8660 unsigned HWI when skipping calculation of MS bitfield layout.
8662 2010-03-27 Jan Hubicka <jh@suse.cz>
8665 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
8666 notice_global_symbol work.
8668 2010-03-27 Jakub Jelinek <jakub@redhat.com>
8670 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
8671 instead of dwarf2out_decl.
8672 (struct var_loc_node): Remove section_label field.
8673 (dwarf2out_function_decl): New function.
8674 (dwarf2out_var_location): Don't set section_label field.
8675 (dwarf2out_begin_function): Don't empty decl_loc_table here.
8677 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
8679 PR tree-optimization/43544
8680 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
8681 First argument for builtin vectorized function hook is now a
8682 tree to be able to distinguish between machine specific and
8684 * targhooks.c (default_builtin_vectorized_function): Ditto.
8685 * targhooks.h (default_builtin_vectorized_function): Ditto.
8686 * target.h (struct gcc_target): Ditto.
8687 * tree-vect-stmts.c (vectorizable_function): Ditto.
8688 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
8689 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
8692 2010-03-26 Joseph Myers <joseph@codesourcery.com>
8695 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
8696 nested binding iff it is a FUNCTION_DECL.
8697 (store_parm_decls_newstyle): Pass nested=true to bind for
8698 FUNCTION_DECLs amongst parameters.
8700 2010-03-26 Jakub Jelinek <jakub@redhat.com>
8702 * var-tracking.c (vt_expand_loc_callback): Don't run
8703 cselib_expand_value_rtx_cb in dummy mode if
8704 cselib_dummy_expand_value_rtx_cb returned false.
8706 * var-tracking.c (emit_note_insn_var_location): For one part
8707 notes with offset 0, don't add EXPR_LIST around the location.
8708 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
8709 add_location_or_const_value_attribute): Adjust for that change.
8712 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
8713 into first operand and location into second.
8714 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
8715 dw_cfi_oprnd_loc for DW_CFA_expression.
8716 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
8717 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
8718 assume first argument is regnum and second argument is location.
8720 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
8723 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
8724 of scratch register to DImode. Split to DImode comparison operator.
8725 Use SImode subreg of scratch register in the multiplication.
8726 (*cmp_sadd_sidi): Ditto.
8727 (*cmp_ssub_si): Ditto.
8728 (*cmp_ssub_sidi): Ditto.
8730 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
8733 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
8734 Remove invalid assert and wrong comment.
8736 2010-03-26 Jakub Jelinek <jakub@redhat.com>
8739 * flags.h (final_insns_dump_p): New extern.
8740 * final.c (final_insns_dump_p): New variable.
8741 (rest_of_clean_state): Set it before -fdump-final-insns=
8742 dumping, clear afterwards.
8743 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
8744 MEM_ALIAS_SET on MEMs.
8746 2010-03-26 David S. Miller <davem@davemloft.net>
8748 * configure.ac: Fix sparc GOTDATA_OP bug check.
8749 * configure: Rebuild.
8751 2010-03-26 Alan Modra <amodra@gmail.com>
8753 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
8755 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8757 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
8758 TLS_SECTION_ASM_FLAG.
8760 2010-03-25 Jakub Jelinek <jakub@redhat.com>
8763 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
8764 Clear first_function_block_is_cold.
8767 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
8768 argument if the argument is truth_value_p.
8770 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
8772 * config/rs6000/constraints.md: Update copyright year for my changes.
8775 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
8776 used in reg+reg addressing, swap registers.
8778 2010-03-24 Jakub Jelinek <jakub@redhat.com>
8781 * target.h (struct gcc_target): Add code_end hook.
8782 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
8784 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
8785 * toplev.c (compile_file): Call targetm.asm_out.code_end
8786 hook before unwind info/debug info output.
8787 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
8788 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
8789 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
8790 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
8791 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
8792 * config/i386/i386.c (ix86_file_end): Renamed to...
8793 (ix86_code_end): ... this. Make static. Don't call
8794 file_end_indicate_exec_stack. Emit unwind info using
8795 final_start_function/final_end_function.
8796 (darwin_x86_file_end): Remove.
8797 (TARGET_ASM_CODE_END): Define.
8798 * config/i386/i386.h (TARGET_ASM_FILE_END,
8799 NEED_INDICATE_EXEC_STACK): Don't define.
8800 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
8801 (TARGET_ASM_FILE_END): Define to darwin_file_end.
8802 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
8803 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
8806 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
8807 at the beginning and final_end_function at the end.
8808 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
8810 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8812 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
8813 and Sun as TLS syntax.
8814 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
8815 * configure: Regenerate.
8816 * config.in: Regenerate.
8817 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
8818 (default_elf_asm_named_section): Use it.
8819 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
8820 (i386_output_dwarf_dtprel): Likewise.
8821 (output_addr_const_extra): Likewise.
8822 (output_pic_addr_const): Lowercase @GOTTPOFF.
8823 (output_addr_const_extra): Likewise.
8824 (output_pic_addr_const): Lowercase @GOTNTPOFF.
8825 (output_addr_const_extra): Likewise.
8826 (output_pic_addr_const): Lowercase @INDNTPOFF.
8827 (output_addr_const_extra): Likewise.
8828 (output_pic_addr_const): Lowercase @NTPOFF.
8829 (output_addr_const_extra): Likewise.
8830 (output_pic_addr_const): Lowercase @TPOFF.
8831 (output_addr_const_extra): Likewise.
8832 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
8833 (*tls_global_dynamic_64): Likewise.
8834 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
8835 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
8837 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
8838 (ASM_OUTPUT_TLS_COMMON): Use it.
8839 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
8842 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
8843 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
8844 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
8845 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
8846 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
8847 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
8849 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8851 * config/i386/i386.c (override_options): Don't accept
8852 -mtls-dialect=sun any longer.
8853 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
8854 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
8855 (*tls_local_dynamic_base_32_sun): Likewise.
8856 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
8858 2010-03-24 Jakub Jelinek <jakub@redhat.com>
8861 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
8862 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
8865 * ira.c (adjust_cleared_regs): New function.
8866 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
8870 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
8872 * expr.c (expand_expr_real): Restore previous
8873 curr_insn_source_location and curr_insn_block after
8874 expand_expr_real_1 call.
8875 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
8876 instead of expand_expr_real_1.
8878 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
8880 PR rtl-optimization/43413
8881 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
8884 2010-03-22 James E. Wilson <wilson@codesourcery.com>
8887 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
8888 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
8890 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
8892 * config/i386/i386.c (ix86_target_string): Add -mfma.
8893 Fix a typo in comment.
8895 2010-03-22 Mike Stump <mikestump@comcast.net>
8898 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
8899 Don't overly align based upon packed packed fields.
8901 2010-03-22 Jason Merrill <jason@redhat.com>
8903 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
8904 Use () rather than [], and move before the element type.
8906 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8908 * doc/configfiles.texi (Configuration Files): Removed
8909 fixinc/Makefile*, intl/Makefile.*.
8910 * doc/makefile.texi: Fixed markup. Abstract from version
8911 control system used.
8912 (Makefile): Removed obsolete gcc/java/parse.y example.
8913 * doc/sourcebuild.texi: Likewise.
8914 (Top Level): Added config, gnattools, libdecnumber, libgcc,
8915 libgomp, libssp. Removed fastjar.
8916 (Miscellaneous Docs): Clarify location.
8917 Added COPYING3, COPYING3.LIB.
8918 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
8920 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8923 * config/i386/i386.c (x86_function_profiler)
8924 [!NO_PROFILE_COUNTERS]: Fix typo.
8925 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
8928 2010-03-22 Janis Johnson <janis187@us.ibm.com>
8929 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8931 * doc/sourcebuild.texi (Test Directives): Split into six
8932 subsections, with most of the current text in new subsections
8933 Directives, Selectors, and Final Actions.
8934 (Directives): Split list of test directives into multiple
8936 (Selectors): Describe use and syntax of selectors.
8937 (Effective-Target Keywords): Describe all existing keywords.
8938 (Add Options): Describe features for dg-add-options.
8939 (Require Support): Describe variants of dg-require-support.
8940 (Final Actions): Describe commands to use in dg-final.
8942 2010-03-22 Michael Matz <matz@suse.de>
8945 * recog.c (validate_replace_rtx_group): Replace also in
8946 REG_EQUAL and REG_EQUIV notes.
8948 2010-03-22 Richard Guenther <rguenther@suse.de>
8950 PR tree-optimization/43390
8951 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
8952 sure vector extracts are type correct.
8954 2010-03-22 Richard Guenther <rguenther@suse.de>
8957 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
8958 x * sqrt (x) even when optimizing for size if the target
8959 has native support for sqrt.
8961 2010-03-22 Jakub Jelinek <jakub@redhat.com>
8963 * varasm.c (make_decl_rtl_for_debug): Also clear
8964 flag_mudflap for the duration of make_decl_rtl call.
8967 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
8968 locs from preserved VALUEs.
8970 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8973 * pa.md (movmemsi): Set align to one if zero.
8974 (movmemdi): Likewise.
8976 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
8979 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
8980 with their corresponding prologue pushes.
8982 2010-03-20 Andrew Pinski <pinskia@gmail.com>
8985 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
8986 at the begining or end.
8987 (spu_expand_epilogue): Likewise.
8989 2010-03-20 Richard Guenther <rguenther@suse.de>
8991 PR rtl-optimization/43438
8992 * combine.c (make_extraction): Properly zero-/sign-extend an
8993 extraction of the low part of a CONST_INT. Also handle
8996 2010-03-19 Mike Stump <mikestump@comcast.net>
8998 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
8999 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
9000 (override_options): Use SUBTARGET32_DEFAULT_CPU.
9002 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
9005 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
9008 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
9010 PR rtl-optimization/42258
9011 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
9012 use that may match DEF.
9015 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
9016 the cost of loading the constant rather than assuming
9018 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
9019 outer code is AND, do the same tests as the andsi3 expander and
9020 return COSTS_N_INSNS (1) if and is cheap.
9022 * optabs.c (avoid_expensive_constant): Fix formatting.
9024 2010-03-19 Michael Matz <matz@suse.de>
9027 * attribs.c (decl_attributes): When rebuilding a function pointer
9028 type use the same qualifiers as the original pointer type.
9030 2010-03-19 Martin Jambor <mjambor@suse.cz>
9032 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
9033 and is_gimple_ip_invariant_address.
9035 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9038 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9040 * config/arm/arm.c (arm_override_options): Turn off
9041 flag_dwarf2_cfi_asm for AAPCS variants.
9043 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9046 * config/arm/arm.c (emit_multi_reg_push): Update comments.
9047 Use PRE_MODIFY instead of PRE_DEC.
9048 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
9049 (vfp_emit_fstmd): Likewise.
9051 2010-03-19 Michael Matz <matz@suse.de>
9054 * builtins.c (expand_builtin_interclass_mathfn,
9055 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
9058 2010-03-19 Richard Guenther <rguenther@suse.de>
9060 PR tree-optimization/43415
9061 * tree-ssa-pre.c (phi_translate): Split out worker to ...
9062 (phi_translate_1): ... this.
9063 (phi_translate): Move all caching here. Cache all NARY
9064 and REFERENCE translations.
9066 2010-03-19 David S. Miller <davem@davemloft.net>
9068 With help from Eric Botcazou.
9069 * config/sparc/sparc.c: Include dwarf2out.h.
9070 (emit_pic_helper): Delete.
9071 (pic_helper_symbol_name): Delete.
9072 (pic_helper_emitted_p): Delete.
9073 (pic_helper_needed): New.
9074 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
9075 (get_pc_thunk_name): New.
9076 (load_pic_register): Remove 'delay_pic_helper' arg. Use
9077 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
9078 Set pic_helper_needed to true. Don't call emit_pic_helper.
9079 (sparc_expand_prologue): Update load_pic_register call.
9080 (sparc_output_mi_thunk): Likewise.
9081 (sparc_file_end): Emit a hidden comdat symbol for the PIC
9082 thunk if possible. Output CFI information as needed.
9084 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9085 Jack Howarth <howarth@bromo.med.uc.edu>
9088 * config/i386/i386.h: Fix ABI on darwin x86-32.
9090 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
9092 * tree.h: Declare make_decl_rtl_for_debug.
9093 * varasm.c (make_decl_rtl_for_debug): New.
9094 * dwarf2out.c (rtl_for_decl_location): Call it.
9095 * cfgexpand.c (expand_debug_expr): Call it.
9097 2010-03-18 Jakub Jelinek <jakub@redhat.com>
9100 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
9104 * var-tracking.c (vt_init_cfa_base): Do nothing if
9105 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
9107 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
9110 * var-tracking.c (canonicalize_vars_star): New.
9111 (dataflow_post_merge_adjust): Use it.
9113 2010-03-18 Jakub Jelinek <jakub@redhat.com>
9116 * var-tracking.c (non_suitable_const): New function.
9117 (add_uses): For DEBUG_INSNs with constants, don't record any
9118 value, instead just the constant value itself.
9119 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
9120 is not VAR_LOC_UNKNOWN_P, set var to the constant.
9121 (emit_notes_in_bb): Likewise.
9122 (emit_note_insn_var_location): For onepart variables if
9123 cur_loc is a VOIDmode constant, use DECL_MODE.
9125 2010-03-18 Martin Jambor <mjambor@suse.cz>
9128 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
9129 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
9130 all non-clones. Moved call redirection...
9131 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
9132 (cgraph_materialize_all_clones): Dispose of all
9133 combined_args_to_skip bitmaps.
9134 (verify_cgraph_node): Do not check for edges pointing to wrong
9135 nodes in inline clones.
9136 * tree-inline.c (copy_bb): Call
9137 cgraph_redirect_edge_call_stmt_to_callee.
9138 * ipa.c (cgraph_remove_unreachable_nodes): Call
9139 cgraph_node_remove_callees even when there are used clones.
9141 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
9143 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
9145 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
9148 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
9151 2010-03-18 Michael Matz <matz@suse.de>
9154 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
9155 into sqrt(x) if we need to preserve signed zeros.
9157 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
9158 Eric Botcazou <ebotcazou@adacore.com>
9160 PR rtl-optimization/43360
9161 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
9162 note if we don't know its invariant status.
9164 2010-03-18 Michael Matz <matz@suse.de>
9166 PR tree-optimization/43402
9167 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
9168 PHI chains of ssa names registered for update.
9170 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
9173 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
9174 non-offsettable and pre_modify update addressing.
9175 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
9176 and "2" alternatives "#".
9177 (*movdd_softfloat32): Make all alternatives "#";
9178 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
9179 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
9180 (*movdf_softfloat32): Make all alternatives "#";
9181 (movdi): Use the new DIFD mode iterator to create a common splitter
9182 for movdi, movdf and movdd patterns.
9184 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
9186 * common.opt (dumpdir): Remove redundant tab.
9188 2010-03-17 Martin Jambor <mjambor@suse.cz>
9190 PR tree-optimization/43347
9191 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
9192 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
9194 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
9196 PR rtl-optimization/42216
9197 * regrename.c (create_new_chain): New function, broken out from...
9198 (scan_rtx_reg): ... here. Call it. Handle the case where we are
9199 appending a use to an empty chain.
9200 (build_def_use): Remove previous changes that convert OP_INOUT to
9201 OP_OUT operands; instead detect the case where an OP_INOUT operand
9202 uses a previously untracked register and create an empty chain for it.
9204 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9206 * doc/extend.texi (Function Attributes): Rewrite unfinished
9207 sentence in ms_abi documentation.
9209 2010-03-17 Alan Modra <amodra@gmail.com>
9211 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
9212 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
9213 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
9214 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
9216 2010-03-16 Richard Henderson <rth@redhat.com>
9219 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
9220 (lower_try_finally): Save and restore eh_seq around the expansion
9223 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
9225 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
9226 statements before splitting block.
9228 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9230 * doc/sourcebuild.texi (Testsuites): Fix markup.
9231 Use pathnames relative to gcc/testsuite.
9232 (Test Directives): Move description of how timeout is determined.
9233 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
9234 (C Tests): Correct gcc.misc-tests directory.
9235 Framework tests now live in gcc.test-framework.
9237 2010-03-16 Richard Guenther <rguenther@suse.de>
9240 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
9241 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
9243 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
9244 Alexandre Oliva <aoliva@redhat.com>
9246 PR tree-optimization/42917
9247 * lambda-code.c (remove_iv): Skip debug statements.
9248 (lambda_loopnest_to_gcc_loopnest): Likewise.
9249 (not_interesting_stmt): Debug statements are not interesting.
9251 2010-03-16 Jakub Jelinek <jakub@redhat.com>
9255 * cselib.c (cselib_preserve_constants,
9256 cfa_base_preserved_val): New static variables.
9257 (preserve_only_constants): New function.
9258 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
9259 clear its REG_VALUES. If cselib_preserve_constants, don't
9260 empty the whole hash table, but preserve there VALUEs with constants,
9261 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
9262 (cselib_preserve_cfa_base_value): New function.
9263 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
9264 (cselib_init): Change argument to int bitfield. Set
9265 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
9267 (cselib_finish): Clear cselib_preserve_constants and
9268 cfa_base_preserved_val.
9269 * cselib.h (enum cselib_record_what): New enum.
9270 (cselib_init): Change argument to int.
9271 (cselib_preserve_cfa_base_value): New prototype.
9272 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
9273 * dse.c (dse_step1): Likewise.
9274 * cfgcleanup.c (thread_jump): Likewise.
9275 * sched-deps.c (sched_analyze): Likewise.
9276 * gcse.c (local_cprop_pass): Likewise.
9277 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
9278 If FN is non-NULL, call the callback always and whenever it returns
9279 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
9280 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
9281 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
9282 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
9283 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
9284 * var-tracking.c: Include recog.h.
9285 (bb_stack_adjust_offset): Remove.
9286 (vt_stack_adjustments): Don't call it, instead just gather the
9287 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
9288 (adjust_stack_reference): Remove.
9289 (compute_cfa_pointer): New function.
9290 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
9291 (struct adjust_mem_data): New type.
9292 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
9294 (get_address_mode): New function.
9295 (replace_expr_with_values): Use it.
9296 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
9297 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
9298 (adjust_sets): Remove.
9299 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
9300 Use get_address_mode.
9301 (get_adjusted_src): Remove.
9302 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
9303 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
9304 (add_with_sets): Don't call adjust_sets.
9305 (fp_setter, vt_init_cfa_base): New functions.
9306 (vt_initialize): Change return type to bool. Move most of pool etc.
9307 initialization to the beginning of the function from end. Pass
9308 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
9309 If !frame_pointer_needed, call vt_stack_adjustment before mos
9310 vector is filled, call vt_init_cfa_base if argp/framep has been
9311 eliminated to sp. If frame_pointer_needed and argp/framep has
9312 been eliminated to hard frame pointer, set
9313 hard_frame_pointer_adjustment and call vt_init_cfa_base after
9314 encountering fp setter in the prologue. For MO_ADJUST, call
9315 log_op_type before pusing the op into mos vector, not afterwards.
9316 Call adjust_insn before cselib_process_insn/add_with_sets,
9317 call cancel_changes (0) afterwards.
9318 (variable_tracking_main_1): Adjust for vt_initialize calling
9319 vt_stack_adjustments and returning whether it succeeded or not.
9321 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
9323 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
9326 2010-03-15 Jakub Jelinek <jakub@redhat.com>
9328 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
9330 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
9331 drap_reg has not been set.
9333 2010-03-15 Michael Matz <matz@suse.de>
9336 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
9337 use it to expand block copies.
9338 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
9339 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
9340 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
9342 2010-03-15 Richard Guenther <rguenther@suse.de>
9344 PR tree-optimization/43367
9345 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
9348 2010-03-15 Richard Guenther <rguenther@suse.de>
9350 PR tree-optimization/43317
9351 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
9353 2010-03-15 Martin Jambor <mjambor@suse.cz>
9355 PR tree-optimization/43141
9356 * tree-sra.c (create_abstract_origin): New function.
9357 (modify_function): Call create_abstract_origin.
9359 2010-03-15 Chris Demetriou <cgd@google.com>
9361 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
9364 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
9367 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
9368 call insert_out_of_ssa_copy for default definitions.
9370 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
9372 * graphite-clast-to-gimple.c (my_long_long): Defined.
9373 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
9374 * graphite-sese-to-poly.c (my_long_long): Defined.
9375 (scop_ivs_can_be_represented): Use it.
9377 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
9379 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
9380 graphite-max-bbs-per-function, and loop-block-tile-size.
9381 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
9383 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
9385 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
9387 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
9388 forward declaration.
9389 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
9390 (add_upper_bounds_from_estimated_nit): New.
9391 (build_loop_iteration_domains): Use it.
9393 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
9395 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
9397 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
9400 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
9401 should be an INTEGER_CST. Also handle CASE_CONVERT.
9403 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
9405 * graphite.c (graphite_initialize): To bound the number of bbs per
9406 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
9407 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
9408 * doc/invoke.texi: Document it.
9410 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
9412 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
9413 * graphite-sese-to-poly.h (build_poly_scop): Same.
9415 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
9417 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
9418 the number of parameters in the scop. Use as an upper bound
9419 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
9420 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
9421 * doc/invoke.texi: Document it.
9423 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
9425 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
9426 * doc/c-tree.texi: Remove.
9427 * doc/generic.texi: Merge c-tree.texi here.
9428 * doc/gccint.texi (Trees): Remove menu entry.
9429 (c-tree.texi): Remove @include.
9430 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
9431 * doc/languages.texi (Reading RTL): Ditto.
9433 2010-03-12 Steve Ellcey <sje@cup.hp.com>
9436 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
9438 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
9441 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
9442 code added to work around reload clobbering CONST insns.
9444 2010-03-12 Jakub Jelinek <jakub@redhat.com>
9446 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
9447 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
9448 (cselib_preserve_only_values): Remove retain argument, don't
9449 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
9450 * cselib.h (cselib_preserve_only_values): Remove retain argument.
9451 * var-tracking.c (micro_operation): Move insn field before union.
9452 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
9453 (struct variable_tracking_info_def): Remove n_mos field, change
9454 mos into a vector of micro_operations.
9455 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
9456 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
9457 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
9458 changing into a vector.
9459 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
9460 come before all other uops generated by add_stores.
9461 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
9463 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
9464 a vector. Run just one pass over the bbs instead of separate counting
9465 and computation phase.
9466 (vt_finalize): Free VTI (bb)->mos vector instead of array.
9469 * tree-inline.c (remap_decls): Put old_var rather than origin_var
9470 into *nonlocalized_list vector.
9471 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
9472 even if origin is non-NULL.
9473 (gen_variable_die): Likewise.
9474 (process_scope_var): Don't change origin.
9475 (gen_decl_die): Likewise.
9476 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
9477 before adding new edges instead of after it, fix moving over
9480 2010-03-11 David S. Miller <davem@davemloft.net>
9482 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
9484 * configure: Rebuild.
9486 2010-03-11 Martin Jambor <mjambor@suse.cz>
9488 PR tree-optimization/43257
9489 * tree.c (assign_assembler_name_if_neeeded): New function.
9490 (free_lang_data_in_cgraph): Assembler name assignment moved to the
9492 * tree.h (assign_assembler_name_if_neeeded): Declare.
9493 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
9494 the function if needed.
9496 2010-03-11 Chris Demetriou <cgd@google.com>
9498 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
9499 include/stdint-gcc.h, and include/stdint.h world-readable.
9501 2010-03-11 Richard Guenther <rguenther@suse.de>
9503 PR tree-optimization/43255
9504 * tree-vrp.c (process_assert_insertions_for): Do not insert
9505 asserts for trivial conditions.
9507 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9509 PR tree-optimization/43280
9510 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
9511 generation. Move calculation of size out of the if branch.
9512 (find_bswap): Modify compare number generation.
9514 2010-03-11 Richard Guenther <rguenther@suse.de>
9517 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
9518 (input_gimple_stmt): Fixup handled component types during
9519 operand read. Also fix up decls in ADDR_EXPRs.
9521 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
9523 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
9524 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
9526 2010-03-10 Jan Hubicka <jh@suse.cz>
9529 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
9530 * varasm.c (get_variable_section): Don't do that here...
9531 (make_decl_rtl): ... and here.
9532 (do_assemble_alias): Produce decl RTL.
9533 (assemble_alias): Likewise.
9535 2010-03-10 Jakub Jelinek <jakub@redhat.com>
9538 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
9539 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
9541 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
9542 (based_loc_descr): Only express drap or vdrap regno based expressions
9543 using DW_OP_fbreg when not optimizing.
9544 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
9545 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
9546 REG_CFA_SET_VDRAP note.
9548 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
9550 PR tree-optimization/43236
9551 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
9552 error in calculation of base address in reverse iteration case.
9553 (generate_builtin): Take number of latch executions if the statement
9556 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
9559 * tree-eh.c: Include pointer-set.h.
9560 (lower_eh_dispatch): Filter out duplicate case labels and
9561 remove the unneeded edge when the label is unused. Return
9562 true when some edges are removed.
9563 (execute_lower_eh_dispatch): When any lowering resulted in
9564 removing an edge, also delete unreachable blocks.
9566 2010-03-10 Jakub Jelinek <jakub@redhat.com>
9569 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9570 UNSPEC_MACHOPIC_OFFSET.
9572 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
9575 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
9576 (m68k_delegitimize_address): New function.
9578 2010-03-09 Jakub Jelinek <jakub@redhat.com>
9581 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
9584 * var-tracking.c (adjust_sets): New function.
9585 (count_with_sets, add_with_sets): Use it.
9586 (get_adjusted_src): New inline function.
9587 (add_stores): Use it.
9590 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
9591 call cselib_dummy_expand_value_rtx_cb instead of
9592 cselib_expand_value_rtx_cb.
9595 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
9596 * config/i386/i386.c: Include debug.h and dwarf2out.h.
9597 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
9598 and .cfi_endproc around the pic thunks.
9599 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
9600 all queued unwind info register saves are saved before the call.
9601 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
9602 considered as sp-=4 for unwind info and the pop as sp+=4 which
9603 also clobbers dest, but doesn't actually restore it.
9606 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
9607 RTX_FRAME_RELATED_P.
9609 2010-03-09 Jie Zhang <jie@codesourcery.com>
9611 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
9612 whitespaces in output template.
9614 2010-03-09 Jie Zhang <jie@codesourcery.com>
9616 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
9619 2010-03-08 Jakub Jelinek <jakub@redhat.com>
9621 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
9622 builtins.exp in a separate job.
9624 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9626 * graphite-sese-to-poly.c (add_param_constraints): Use
9627 lower_bound_in_type and upper_bound_in_type.
9629 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9631 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
9632 instead of unsigned_type_node.
9634 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9635 Reza Yazdani <reza.yazdani@amd.com>
9638 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
9639 on pointer type parameters.
9641 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
9645 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
9646 handle conversions from pointer to integers.
9647 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
9648 induction variable, to be able to work with code generated by CLooG.
9649 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
9650 (build_poly_scop): Bail out if we cannot codegen a loop.
9652 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
9654 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
9655 code generation with gloog_error.
9657 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9659 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
9660 Call fold_convert on all the returned values.
9661 (expand_scalar_variables_expr): Pass to
9662 expand_scalar_variables_ssa_name the type of the resulting expression.
9664 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9666 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
9667 ppl_min_for_le_pointset.
9668 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
9669 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
9671 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9673 * graphite-dependences.c (map_into_dep_poly): Removed.
9674 (dependence_polyhedron_1): Use combine_context_id_scat.
9676 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9678 * graphite-poly.h (struct poly_scattering): Add layout documentation.
9679 (struct poly_bb): Same.
9680 (combine_context_id_scat): New.
9682 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9685 * sese.c (name_defined_in_loop_p): Return false for default
9688 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9690 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
9691 and clean up the logic.
9693 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9695 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
9698 2010-03-08 Jakub Jelinek <jakub@redhat.com>
9700 * var-tracking.c (remove_cselib_value_chains): Define only for
9702 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
9703 delete_slot_part, emit_notes_for_differences_1): Don't call
9704 remove_cselib_value_chains here.
9705 (set_slot_part, emit_notes_for_differences_2): Don't call
9706 add_cselib_value_chains here.
9707 (preserved_values): New vector.
9708 (preserve_value): New function.
9709 (add_uses, add_stores, vt_add_function_parameters): Use it
9710 instead of cselib_preserve_value.
9711 (changed_values_stack): New vector.
9712 (check_changed_vars_0): New function.
9713 (check_changed_vars_1, check_changed_vars_2): Use it.
9714 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
9715 changed_values_stack VALUEs.
9716 (vt_emit_notes): For all preserved_values call
9717 add_cselib_value_chains. If ENABLE_CHECKING call
9718 remove_cselib_value_chains before verifying value_chains is empty.
9719 Initialize and free changed_values_stack.
9720 (vt_initialize): Initialize preserved_values.
9721 (vt_finalize): Free preserved_values.
9723 2010-03-08 Richard Guenther <rguenther@suse.de>
9725 PR tree-optimization/43269
9726 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
9729 2010-03-08 Martin Jambor <mjambor@suse.cz>
9731 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
9732 (ipa_is_param_called): Removed.
9733 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
9734 (ipa_print_node_params): Do not print the called flag.
9735 (ipa_write_node_info): Do not stream the called flag.
9736 (ipa_read_node_info): Likewise.
9738 2010-03-07 Jakub Jelinek <jakub@redhat.com>
9741 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
9742 * cselib.c (struct expand_value_data): Add dummy field.
9743 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
9745 (cselib_dummy_expand_value_rtx_cb): New function.
9746 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
9748 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
9749 * var-tracking.c: Include pointer-set.h.
9750 (variable): Change n_var_parts to char from int. Add
9751 cur_loc_changed and in_changed_variables fields.
9752 (variable_canonicalize): Remove.
9753 (shared_var_p): New inline function.
9754 (unshare_variable): Maintain cur_loc_changed and
9755 in_changed_variables fields. If var was in changed_variables,
9756 replace it there with new_var. Just copy cur_loc instead of
9757 resetting it to something else.
9758 (variable_union): Don't recompute cur_loc. Use shared_var_p.
9759 (dataflow_set_union): Don't call variable_canonicalize.
9760 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
9761 of their DEBUG_EXPR_TREE_DECLs.
9762 (canonicalize_loc_order_check): Verify that cur_loc is NULL
9763 and in_changed_variables and cur_loc_changed is false.
9764 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
9765 and cur_loc_changed. Don't update cur_loc here.
9766 (variable_merge_over_src): Don't call variable_canonicalize.
9767 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
9768 removing loc that is equal to cur_loc, clear cur_loc,
9769 set cur_loc_changed and ensure variable_was_changed is called.
9770 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
9771 compare pointers in cur_loc check, if it is equal to loc,
9772 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
9773 (variable_different_p): Remove compare_current_location argument,
9774 don't compare cur_loc.
9775 (dataflow_set_different_1): Adjust variable_different_p caller.
9776 (variable_was_changed): If dv had some var in changed_variables
9777 already, reset in_changed_variables flag for it and propagate
9778 cur_loc_changed over to the new variable. On empty var
9779 always set cur_loc_changed. Set in_changed_variables on whatever
9780 var is added to changed_variables.
9781 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
9782 Use shared_var_p. When removing loc that is equal to cur_loc,
9783 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
9784 end, don't set it to something else, just call variable_was_changed.
9785 (delete_slot_part): Use shared_var_p. When cur_loc equals to
9786 loc being removed, clear cur_loc and set cur_loc_changed.
9787 Set cur_loc_changed if all locations have been removed.
9788 (struct expand_loc_callback_data): New type.
9789 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
9790 allocated. Always create SUBREGs if simplify_subreg failed.
9791 Prefer to use cur_loc, when that fails and still in
9792 changed_variables (and seen first time) recompute it. Set
9793 cur_loc_changed of variables which had to change cur_loc and
9794 compute elcd->cur_loc_changed if any of the subexpressions used
9795 had to change cur_loc.
9796 (vt_expand_loc): Adjust to pass arguments in
9797 expand_loc_callback_data structure.
9798 (vt_expand_loc_dummy): New function.
9799 (emitted_notes): New variable.
9800 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
9801 that weren't used for any other decl in current
9802 emit_notes_for_changes call call vt_expand_loc_dummy to update
9803 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
9804 first loc_chain location if NULL before. Always use just
9805 cur_loc instead of first loc_chain location. When cur_loc_changed
9806 is false, when not --enable-checking=rtl just don't emit any note.
9807 When rtl checking, compute the note and assert it is the same
9808 as previous note. Clear cur_loc_changed and in_changed_variables
9809 at the end before removing from changed_variables.
9810 (check_changed_vars_3): New function.
9811 (emit_notes_for_changes): Traverse changed_vars to call
9812 check_changed_vars_3 on each changed var.
9813 (emit_notes_for_differences_1): Clear cur_loc_changed and
9814 in_changed_variables. Recompute cur_loc of new_var.
9815 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
9816 (vt_emit_notes): Initialize and destroy emitted_notes.
9818 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
9820 PR rtl-optimization/42220
9821 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
9822 Use verify_reg_tracked to determine if we should use OP_OUT rather
9824 (build_def_use): If we see an in-out operand for a register that we
9825 know nothing about, treat is an output if possible, fail the block if
9828 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
9831 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
9834 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
9837 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
9838 uses of relevant DEFs that are dead outside the loop too.
9840 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
9842 * var-tracking.c (dataflow_set_merge): Swap src and src2.
9844 2010-01-13 Jakub Jelinek <jakub@redhat.com>
9846 * var-tracking.c (values_to_unmark): New variable.
9847 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
9848 values_to_unmark vector. Moved body to...
9849 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
9850 instead queue it into values_to_unmark vector.
9851 (vt_find_locations): Free values_to_unmark vector.
9853 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
9855 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
9856 (site.exp): Export them when plugins are enabled.
9858 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
9861 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
9863 (chrec_fold_multiply): Same.
9865 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
9868 * c-decl.c (build_compound_literal): Return early if init is
9871 2010-03-04 Martin Jambor <mjambor@suse.cz>
9873 PR tree-optimization/43164
9874 PR tree-optimization/43191
9875 * tree-sra.c (type_consists_of_records_p): Reject records with
9876 zero-size bit-fields at the end.
9878 2010-03-04 Mike Stump <mikestump@comcast.net>
9880 * Makefile.in (TAGS): Remove *.y.
9882 2010-03-04 Richard Guenther <rguenther@suse.de>
9884 PR tree-optimization/40761
9885 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
9887 (my_rev_post_order_compute): New function.
9888 (init_pre): Call it.
9890 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
9893 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
9894 decrease the cost of an IV candidate when the cost is infinite.
9896 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9898 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
9899 Use '3DNow!' for the extension of that name, ensure normal space
9901 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
9903 2010-03-03 Jeff Law <law@redhat.com>
9905 * PR middle-end/32693
9906 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
9907 than gen_rtx_SUBREG.
9908 (extract_bit_field_1): Likewise.
9910 2010-03-03 Janis Johnson <janis187@us.ibm.com>
9912 * doc/sourcebuild.texi (Test directives): Document that arguments
9913 include-opts and exclude-opts are now optional for dg-skip-if,
9914 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
9916 2010-03-03 Jason Merrill <jason@redhat.com>
9919 * cgraph.h (varpool_node): Add extra_name field.
9920 * varpool.c (varpool_extra_name_alias): New.
9921 (varpool_assemble_decl): Emit extra name aliases.
9922 (varpool_mark_needed_node): Look past an extra name alias.
9923 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
9924 * lto-streamer-in.c (lto_input_tree): Read it.
9925 * lto-streamer-out.c (output_unreferenced_globals): Write it.
9927 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
9929 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
9930 (sparc*-*-solaris2*): ...this.
9932 2010-03-03 Jakub Jelinek <jakub@redhat.com>
9935 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
9936 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
9937 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
9938 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
9941 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
9942 fallthrough to default handling, just with want_address 0 instead of 2.
9943 For single element lists, add_AT_loc directly, otherwise create an
9944 artificial variable DIE and stick location list to it.
9947 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
9948 (VAL_EXPR_HAS_REVERSE): Define.
9949 (reverse_op): New function.
9950 (add_stores): For reversible operations add an extra MO_VAL_USE.
9952 2010-03-02 Jason Merrill <jason@redhat.com>
9954 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
9956 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
9958 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
9959 (sparc64-*-linux*): Likewise.
9960 (sparc64-*-solaris2*): Include assembler files before linker ones.
9961 (sparc-*-solaris2*): Simplify and reorder to match previous case.
9962 * config/sparc/gas.h: Delete.
9963 * config/sparc/sol2-64.h: Add copyright notice.
9964 * config/sparc/sol2-gas-bi.h: Likewise.
9965 * config/sparc/sol2-gld.h: Likewise.
9966 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
9967 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
9968 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
9969 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
9970 (sparc_elf_asm_named_section): Rename into...
9971 (sparc_solaris_elf_asm_named_section): ...this. Always define.
9973 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
9975 * config/alpha/alpha.c (override_options): Fix -mtune error message.
9977 2010-03-02 Jeff Law <law@redhat.com>
9980 * reload1.c (rtx_p, substitute_stack): Declare.
9981 (substitute): Record addresses of changed rtxs.
9982 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
9983 Restore the original rtx when complete.
9984 (reload): Free subsitute_stack when complete.
9986 2010-03-02 Janis Johnson <janis187@us.ibm.com>
9988 * doc/gccint.texi (menu): Add Testsuites as a chapter.
9989 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
9991 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
9992 LTO Testing, gcov Testing, profopt Testing, compat Testing,
9993 Torture Tests): Change from subsection to section.
9995 2010-03-02 Jakub Jelinek <jakub@redhat.com>
9996 Steven Bosscher <steven@gcc.gnu.org>
9998 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
10001 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
10003 PR middle-end/42640
10004 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
10005 the assignment from the new induction variable to the assignment
10006 of the value from the original loop PHI function.
10008 2010-03-01 Janis Johnson <janis187@us.ibm.com>
10009 Daniel Jacobowitz <dan@codesourcery.com>
10011 * doc/sourcebuild.texi (Test directives): Clarify options to
10014 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10016 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
10017 Disable cfi directives unless GCC and gas agree on using read-only
10018 .eh_frame sections for 64-bit.
10019 * configure: Regenerate.
10021 2010-03-01 Richard Guenther <rguenther@suse.de>
10023 PR tree-optimization/43220
10024 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
10025 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
10027 2010-03-01 Richard Guenther <rguenther@suse.de>
10028 Martin Jambor <mjambor@suse.cz>
10030 PR middle-end/41250
10031 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
10032 gimplified parameters.
10034 2010-03-01 Christian Bruel <christian.bruel@st.com>
10036 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
10038 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
10040 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
10042 2010-03-01 Richard Guenther <rguenther@suse.de>
10044 PR middle-end/43213
10045 * expr.c (expand_assignment): Use the alias-oracle to tell
10046 if the rhs aliases the result decl.
10048 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10051 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
10052 to sol_gt_pch_get_address.
10053 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
10054 64-bit, SPARC and x86.
10055 (sol_gt_pch_get_address): New function.
10057 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
10059 * toplev.h (inform_n, error_n): Declare.
10060 * diagnostic.c (inform_n, error_n): New function.
10062 2010-03-01 Jakub Jelinek <jakub@redhat.com>
10064 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
10065 has no rtl yet when processing local_decls, queue it and recheck
10066 if deferred stack allocation hasn't assigned it rtl.
10068 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
10070 * config/sh/sh.c (unspec_bbr_uid): New.
10071 (gen_block_redirect): Use it instead of INSN_UID.
10072 (gen_far_branch): Likewise.
10074 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
10076 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
10077 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
10079 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10081 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
10082 (Warning Options): -Wno-conversion-null is valid for
10083 Objective-C++ as well.
10084 * doc/tm.texi (Named Address Spaces): Likewise.
10085 * doc/plugins.texi (Plugins): Replace TABs with spaces.
10086 * doc/tree-ssa.texi (Tree SSA): Likewise.
10088 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
10091 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
10092 by default. Don't set the default arch for
10093 i[34567]86-*-darwin*|x86_64-*-darwin*.
10095 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
10098 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
10099 default. Set the default 32bit/64bit archs with $with_arch
10100 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
10102 2010-02-27 Richard Guenther <rguenther@suse.de>
10104 PR tree-optimization/43186
10105 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
10106 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
10107 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
10108 unroller iterations.
10110 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
10112 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
10113 required and i[34567]86-*-* targets don't support 64bit ISA.
10115 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
10118 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
10119 the same alias set.
10121 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
10123 * config.gcc: Set the default arch at least to Prescott for
10124 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
10125 if SSE math is enabled.
10127 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
10129 * diagnostic.c (diagnostic_initialize): Update.
10130 (diagnostic_report_diagnostic): Test inhibit_notes_p for
10132 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
10133 (diagnostic_inhibit_notes): New.
10134 * toplev.c (process_options): inhibit notes with -fcompare-debug.
10136 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
10139 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
10140 * doc/standards.texi: Likewise.
10141 * doc/extend.texi: Likewise.
10142 * doc/trouble.texi: Likewise.
10143 * doc/cppopts.texi: Likewise.
10144 * doc/install.texi: Likewise.
10145 * c.opt (std=c90,std=gnu90): New options.
10146 * c-opts.c (c_common_handle_option): Handle them.
10148 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
10151 * c-decl.c (undeclared_variable): Use an informative note.
10153 2010-02-26 Richard Guenther <rguenther@suse.de>
10155 PR tree-optimization/43186
10156 * gimple.h (gimple_fold): Remove.
10157 * gimple.c (gimple_fold): Remove. Inline into single user ...
10158 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
10159 Try harder for conditions.
10161 2010-02-26 Jakub Jelinek <jakub@redhat.com>
10164 * function.c (used_types_insert): Don't skip through named pointer
10165 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
10166 and it is different from the main variant's type.
10168 2010-02-26 Nick Clifton <nickc@redhat.com>
10170 * config/rx/rx.md (sminsi3): Remove bogus alternative.
10172 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
10174 * config.gcc: Support --with-fpmath=sse for x86.
10176 * config/i386/ssemath.h: New.
10178 * doc/install.texi (--with-fpmath=sse): Documented.
10180 2010-02-26 Richard Guenther <rguenther@suse.de>
10182 PR tree-optimization/43188
10183 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
10184 vector types of over-aligned element type.
10186 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
10189 * config/i386/i386.c (expand_vec_perm_blend): Use correct
10190 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
10192 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10194 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
10196 2010-02-26 Jakub Jelinek <jakub@redhat.com>
10198 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
10199 * var-tracking.c: Include diagnostic.h.
10200 (debug_dv): New function.
10201 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
10204 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
10205 (add_value_chain, add_value_chains, remove_value_chain,
10206 remove_value_chains): Handle DEBUG_EXPRs.
10207 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
10210 * regcprop.c (struct queued_debug_insn_change): New type.
10211 (struct value_data_entry): Add debug_insn_changes field.
10212 (struct value_data): Add n_debug_insn_changes field.
10213 (debug_insn_changes_pool): New variable.
10214 (free_debug_insn_changes, apply_debug_insn_changes,
10215 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
10216 (kill_value_one_regno): Call free_debug_insn_changes if needed.
10217 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
10219 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
10221 (copyprop_hardreg_forward_1): Don't call apply_change_group for
10222 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
10223 changes, call cprop_find_used_regs via note_stores.
10224 (copyprop_hardreg_forward): When copying vd from predecessor
10225 which has any queued DEBUG_INSN changes, make sure the pointers are
10226 cleared. At the end call df_analyze and then if there are any
10227 DEBUG_INSN changes queued at the end of some basic block for still
10228 live registers, apply them.
10229 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
10231 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
10233 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
10236 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
10238 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
10239 targets. Set the default with_cpu/with_arch from arch/cpu.
10240 Allow x86-64 and native for with_cpu/with_arch.
10242 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
10244 * ebitmap.c: Change calls to verify_popcount with calls to
10245 sbitmap_verify_popcount.
10246 (ebitmap_clear_bit): Fixed map->cacheindex test and
10247 map>cache update when bit clearing results in an empty
10250 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
10253 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
10254 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
10255 and support both V2DF and V2DI modes.
10256 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
10257 support both V2DF and V2DI modes.
10258 (general): Delete trailing whitespace from a few patterns.
10260 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10261 V2DF/V2DI interleave high/low builtins.
10263 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
10266 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
10267 interleave high/low functions.
10269 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
10271 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
10272 #pragma extern_prefix.
10274 2010-02-25 Jakub Jelinek <jakub@redhat.com>
10277 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
10278 BLKmode, assert op0 is a MEM and just adjust its mode.
10281 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
10282 if bitpos isn't multiple of mode's bitsize.
10284 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
10286 * c.opt (-ftemplate-depth=): New.
10287 (-ftemplate-depth-): Deprecate.
10288 * optc-gen.awk: Handle -ftemplate-depth=.
10289 * opth-gen.awk: Likewise.
10290 * c-opts.c (c_common_handle_option): Likewise.
10291 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
10293 2010-02-24 Jason Merrill <jason@redhat.com>
10295 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
10297 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10299 * cfg.c (alloc_aux_for_block): Remove inline.
10300 (alloc_aux_for_edge): Likewise.
10302 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10304 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
10306 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10308 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
10309 * config/i386/sol2-gas.h: New file.
10310 * config.gcc (i[34567]86-*-solaris2*): Use it.
10312 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
10315 * c-typeck.c (ep_convert_and_check): New.
10316 (build_conditional_expr): Use it.
10317 (build_binary_op): Likewise.
10319 2010-02-24 Jakub Jelinek <jakub@redhat.com>
10321 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
10324 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
10325 bounds even for -O+.
10326 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
10327 expr needs to have DECL_NAME set.
10329 2010-02-24 Nick Clifton <nickc@redhat.com>
10331 * config/mep/mep.c: Include gimple.h.
10332 (mep_function_uses_sp): Delete unused function.
10333 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
10334 parameters. Use unsigned integers to count args. Return a
10335 NULL_RTX instead of an error_mark_node. Toidy up formatting.
10337 2010-02-23 Jakub Jelinek <jakub@redhat.com>
10340 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
10341 greater or equal to nelt instead of 2 * nelt.
10342 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
10345 2010-02-23 Jason Merrill <jason@redhat.com>
10348 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
10349 in cfun->local_decls even if they have register types.
10352 * stor-layout.c (place_field): Don't warn about unnecessary
10353 DECL_PACKED if the type is packed.
10355 2010-02-23 Jakub Jelinek <jakub@redhat.com>
10358 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
10359 GOTOFF relocs, even when the base reg isn't pic pointer.
10361 2010-02-23 Michael Matz <matz@suse.de>
10364 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
10365 (expand_gimple_basic_block): Generate and use debug temps if there
10366 are debug uses left after the last real use of TERed ssa names.
10367 Unlink debug immediate uses when they are expanded.
10369 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
10372 * config/i386/i386.c (override_options): Reorganise to provide
10373 better error messages.
10375 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
10377 PR middle-end/43083
10378 * graphite-scop-detection.c (create_single_exit_edge): Move
10379 the call to find_single_exit_edge to....
10380 (create_sese_edges): ...here. Don't handle multiple edges
10381 exiting the function.
10382 (build_graphite_scops): Don't handle multiple edges
10383 exiting the function.
10385 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
10387 PR middle-end/43097
10388 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
10389 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
10391 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
10393 PR middle-end/43026
10394 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
10396 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
10399 * c-typeck.c (convert_arguments): Print declaration location.
10400 * c-common.c (validate_nargs): Rename as
10401 builtin_function_validate_nargs.
10402 (check_builtin_function_arguments): Update.
10404 2010-02-22 Richard Guenther <rguenther@suse.de>
10407 * tree-inline.c (declare_return_variable): Use the type of
10408 the call stmt lhs if available.
10410 2010-02-22 Duncan Sands <baldrick@free.fr>
10412 * passes.c (register_pass): Always consider all pass lists when
10413 ref_pass_instance_number is zero.
10415 2010-02-22 Richard Guenther <rguenther@suse.de>
10417 PR tree-optimization/42749
10418 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
10419 parameter. Do arithmetic in the original type.
10420 (update_accumulator_with_ops): Likewise.
10421 (adjust_accumulator_values): Adjust.
10423 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10425 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
10426 (QI to BLKmode splitter): New splitter.
10428 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
10430 * config/i386/i386.c (initial_ix86_tune_features): Turn on
10431 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
10433 2010-02-22 Richard Guenther <rguenther@suse.de>
10435 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
10437 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
10439 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
10440 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
10441 ($(T)crti.o, $(T)crtn.o): Remove rules.
10443 2010-02-21 Tobias Burnus <burnus@net-b.de>
10446 * doc/invoke.texi (-fassociative-math): Document that this
10447 option is automatically enabled for Fortran.
10449 2010-02-20 David S. Miller <davem@davemloft.net>
10451 * configure.ac: Test if linker and assembler properly support
10452 GOTDATA_OP relocations.
10453 * configure: Rebuild.
10454 * config.in: Likewise.
10455 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
10456 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
10457 (movsi_high_pic): Likewise.
10458 (movdi_lo_sum_pic): Likewise.
10459 (movdi_high_pic): Likewise.
10460 (movsi_pic_gotdata_op): New pattern.
10461 (movdi_pic_gotdata_op): Likewise.
10462 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
10463 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
10465 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
10468 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
10469 attribute to ssemul.
10470 (xop_mulv2div2di3_high): Ditto.
10472 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
10475 * c.opt (Wconversion-null): New option.
10476 * doc/invoke.texi (Wconversion-null): Document.
10478 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
10480 * common.opt (Wlarger-than-): Add Undocumented.
10482 2010-02-19 Mike Stump <mikestump@comcast.net>
10484 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
10486 2010-02-19 Jason Merrill <jason@redhat.com>
10489 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
10490 * configure: Likewise.
10492 2010-02-20 Alan Modra <amodra@gmail.com>
10494 PR middle-end/42344
10495 * cgraph.h (cgraph_make_decl_local): Declare.
10496 * cgraph.c (cgraph_make_decl_local): New function.
10497 (cgraph_make_node_local): Use it.
10498 * cgraphunit.c (cgraph_function_versioning): Likewise.
10499 * ipa.c (function_and_variable_visibility): Likewise.
10501 2010-02-19 Jakub Jelinek <jakub@redhat.com>
10504 * except.c (sjlj_emit_function_enter): Don't call
10505 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
10507 * rtl.h (add_reg_br_prob_note): Remove prototype.
10509 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
10512 * c-common.c (conversion_warning): Remove widening conversions
10513 before checking the conversion of integers to reals.
10515 2010-02-19 Mike Stump <mikestump@comcast.net>
10517 PR middle-end/43125
10518 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
10521 * cgraphunit.c (process_function_and_variable_attributes): Check
10522 DECL_PRESERVE_P instead of looking up attribute "used".
10523 * ipa-pure-const.c (check_decl): Likewise.
10524 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
10525 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
10526 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
10527 instead of attribute "used".
10528 * config/sol2-c.c (solaris_pragma_init): Likewise.
10529 (solaris_pragma_fini): Likewise.
10531 2010-02-19 Jakub Jelinek <jakub@redhat.com>
10533 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
10534 Use XCNEW instead of xcalloc.
10535 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
10536 XNEW instead of xmalloc.
10537 (get_fields): Use XNEWVEC instead of xmalloc.
10540 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
10541 populate vars array.
10542 (create_new_general_access): For debug stmts just reset value.
10543 (get_stmt_accesses): For accesses within debug stmts just record them
10544 using add_access_to_acc_sites instead of preventing the peeling or
10545 counting them as accesses.
10547 PR middle-end/42233
10548 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
10550 2010-02-19 Richard Guenther <rguenther@suse.de>
10552 PR tree-optimization/42916
10553 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
10556 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
10558 * configure.ac: Replace all uses of changequote in macro arguments
10559 with proper quoting.
10561 2010-02-19 Jakub Jelinek <jakub@redhat.com>
10563 PR middle-end/42233
10564 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
10566 2010-02-19 Richard Guenther <rguenther@suse.de>
10568 PR tree-optimization/42944
10569 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
10570 test for aliasing with errno.
10572 2010-02-19 Jakub Jelinek <jakub@redhat.com>
10574 PR middle-end/42233
10575 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
10576 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
10577 * dojump.c: Include output.h.
10578 (inv): New inline function.
10579 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
10580 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
10581 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
10582 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
10583 argument, pass it down to other calls.
10584 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
10585 add REG_BR_PROB note to the conditional jump.
10586 * cfgexpand.c (add_reg_br_prob_note): Removed.
10587 (expand_gimple_cond): Don't call it, add the probability
10588 as last argument to jumpif_1/jumpifnot_1.
10589 * Makefile.in (dojump.o): Depend on output.h.
10590 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
10592 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
10593 * stmt.c (do_jump_if_equal): Likewise.
10594 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
10595 * loop-unswitch.c (compare_and_jump_seq): Likewise.
10596 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
10598 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
10599 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
10600 jumpifnot_1 callers.
10601 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
10603 (store_expr): Adjust jumpifnot caller.
10604 (store_constructor): Adjust jumpif caller.
10606 PR middle-end/42233
10607 * gimplify.c (gimple_boolify): For __builtin_expect call
10608 gimple_boolify also on its first argument.
10610 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
10612 * configure.ac (gnu-unique-object): Wrap regexps using [] in
10614 (__stack_chk_fail): Ditto. Remove quadrigraphs.
10615 * configure: Regenerated.
10617 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10619 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
10620 lang_hooks.types_compatible_p instead of comptypes.
10622 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
10624 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
10625 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
10626 if __prefer_thumb__ is defined.
10628 2010-02-18 Martin Jambor <mjambor@suse.cz>
10630 PR tree-optimization/43066
10631 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
10632 array with zero-sized element type.
10634 2010-02-18 Jakub Jelinek <jakub@redhat.com>
10636 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
10637 rtx, allocate struct var_loc_node here and return it to the
10638 caller, and only if it is actually needed.
10639 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
10640 move it earlier and return immediately if it returns NULL.
10642 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
10644 * config/sparc/gas.h: New file. Restore
10645 TARGET_ASM_NAMED_SECTION to its ELF default.
10646 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
10647 check !HAVE_GNU_AS.
10648 * config/sparc/sparc.c (sparc_elf_asm_named_section):
10649 Likewise. Add ATTRIBUTE_UNUSED to prototype.
10650 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
10651 after sparc/sysv4.h.
10653 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
10655 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
10657 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
10659 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
10660 patterns from predicated pattern.
10662 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
10665 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
10666 for insn mnemonic suffix.
10668 2010-02-17 Richard Guenther <rguenther@suse.de>
10670 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
10673 2010-02-17 Jakub Jelinek <jakub@redhat.com>
10676 * caller-save.c (save_call_clobbered_regs): If BB ends with
10677 a DEBUG_INSN, move any notes in between last real insn and the last
10678 DEBUG_INSN after the last DEBUG_INSN.
10680 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
10682 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
10683 Fix return type. Fix argument type. Explain meaning of return value.
10685 2010-02-16 Richard Guenther <rguenther@suse.de>
10687 PR tree-optimization/41043
10688 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
10689 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
10691 (vrp_visit_phi_node): ... but only for loop PHI nodes.
10693 2010-02-16 Ira Rosen <irar@il.ibm.com>
10695 PR tree-optimization/43074
10696 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
10697 * tree-vect-loop.c (vect_analyze_loop_operations): Add
10698 vectorizable cycles in hybrid SLP check.
10699 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
10701 2010-02-16 Richard Guenther <rguenther@suse.de>
10703 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
10704 (true_dependence): If memrefs_conflict_p computes must-alias
10705 trust it. Move TBAA check after offset-based disambiguation.
10706 (canon_true_dependence): Likewise.
10708 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
10710 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
10711 * doc/invoke.texi: Document it.
10712 * var-tracking.c: Include toplev.h and params.h.
10713 (vt_find_locations): Return bool indicating success. Compute
10714 hash sizes unconditionally. Check new parameter, report.
10715 (variable_tracking_main_1): Check vt_find_locations results and
10716 retry. Renamed from...
10717 (variable_tracking_main): ... this. New wrapper to preserve
10718 flag_var_tracking_assignments.
10719 * Makefile.in (var-tracking.o): Adjust dependencies.
10721 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
10722 Jakub Jelinek <jakub@redhat.com>
10725 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
10726 if weak_import attribute is present.
10727 * config/darwin.c (machopic_select_section): Likewise.
10729 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
10731 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
10732 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
10733 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
10734 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
10736 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
10739 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
10740 Fix argument types.
10742 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
10743 Rewrite text to refer to the names.
10745 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
10747 * config/i386/i386-builtin-types.def
10748 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
10749 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
10750 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
10751 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
10752 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
10753 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
10754 IX86_BUILTIN_VPERMIL2PS256.
10755 (MULTI_ARG_4_DF2_DI_I): Defined.
10756 (MULTI_ARG_4_DF2_DI_I1): Defined.
10757 (MULTI_ARG_4_SF2_SI_I): Defined.
10758 (MULTI_ARG_4_SF2_SI_I1): Defined.
10759 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
10760 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
10761 __builtin_ia32_vpermil2ps256.
10762 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
10763 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
10764 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
10765 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
10766 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
10767 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
10768 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
10769 CODE_FOR_xop_vpermil2v8sf3.
10770 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
10771 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
10772 * config/i386/xopintrin.h (_mm_permute2_pd): New.
10773 (_mm256_permute2_pd): New.
10774 (_mm_permute2_ps): New.
10775 (_mm256_permute2_ps): New.
10777 2010-02-15 Nick Clifton <nickc@redhat.com>
10779 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
10780 boolean parameters. Use emit_jump_insn when emitting a pop
10781 instruction containing a return insn.
10782 (push): Use 'true' rather than '1' as second parameter to F.
10783 (h8300_expand_prologue): Likewise.
10784 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
10785 (h8300_expand_epilogue): Likewise.
10787 2010-02-15 Richard Guenther <rguenther@suse.de>
10789 PR middle-end/43068
10790 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
10793 2010-02-15 Nick Clifton <nickc@redhat.com>
10795 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
10798 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
10800 * intl.c (fake_ngettext): New function.
10801 * intl.h (fake_ngettext): Declare.
10802 (ngettext): Define macro.
10803 * collect2.c (notice_translated): New function.
10804 (main): Use notice_translated and ngettext.
10805 * collect2.h (notice_translated): Declare.
10807 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
10809 * reorg.c (delete_computation): Comment fixes.
10810 * caller-save.c (setup_save_areas): Idem.
10811 * sel-sched-dump.c (dump_lv_set): Idem.
10814 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10816 * config/s390/s390.c (s390_sched_init): New function.
10817 (TARGET_SCHED_INIT): Target hook defined.
10819 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
10820 Jack Howarth <howarth@bromo.med.uc.edu>
10821 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10824 Partial revert of unintended change in fix for PR41605.
10825 * config/darwin.h: Fix typo.
10826 * config/darwin9.h: Same.
10828 2010-02-11 Jakub Jelinek <jakub@redhat.com>
10830 * c-pch.c (pch_init): Clear v.
10832 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
10834 PR middle-end/42930
10835 * graphite-scop-detection.c (graphite_can_represent_scev): Call
10836 graphite_can_represent_init for MULT_EXPR.
10838 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
10840 PR middle-end/42914
10841 PR middle-end/42530
10842 * graphite-sese-to-poly.c (remove_phi): New.
10843 (translate_scalar_reduction_to_array): Call remove_phi.
10845 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
10847 PR middle-end/42771
10848 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
10849 * graphite-clast-to-gimple.h (gloog): Update declaration.
10850 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
10851 * graphite-poly.h (struct poly_bb): Add missing comments.
10852 (struct scop): Add poly_scop_p field.
10853 (POLY_SCOP_P): New.
10854 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
10855 * graphite.c (graphite_transform_loops): Build the polyhedral
10856 representation for each scop before code generation.
10857 * sese.c (rename_variables_in_operand): Removed.
10858 (rename_variables_in_expr): Return the renamed expression.
10859 (rename_sese_parameters): New.
10860 * sese.h (rename_sese_parameters): Declared.
10862 2010-02-11 Richard Guenther <rguenther@suse.de>
10864 PR tree-optimization/42998
10865 * tree-ssa-pre.c (create_expression_by_pieces): Treat
10866 POINTER_PLUS_EXPR properly.
10868 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
10869 Changpeng Fang <changpeng.fang@amd.com>
10871 PR middle-end/40886
10872 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
10873 the cost of an IV candidate when the IV is used in a test against zero.
10875 * gcc.dg/tree-ssa/ivopts-3.c: New.
10877 2010-02-11 Richard Guenther <rguenther@suse.de>
10880 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
10881 pointer-vs-decl case by swapping refs. Handle some cases
10882 of pointer-vs-decl disambiguations more conservatively.
10883 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
10884 to false after expanding.
10886 2010-02-11 Richard Guenther <rguenther@suse.de>
10889 * gcc.c (process_command): Handle LTO file@offset case more
10892 2010-02-11 Jakub Jelinek <jakub@redhat.com>
10894 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
10895 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
10897 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
10899 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
10900 if MEM's mode size isn't DWARF2_ADDR_SIZE.
10901 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
10902 Optimize eq/ne comparisons when both arguments are known to be
10904 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
10905 Don't mask operands unnecessarily if they are known to be already
10908 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
10910 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
10913 2010-02-10 Richard Guenther <rguenther@suse.de>
10915 PR tree-optimization/43017
10916 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
10917 for wrapping signed arithmetic.
10919 2010-02-10 Jakub Jelinek <jakub@redhat.com>
10922 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
10923 if no debug info should be emitted for it.
10925 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
10927 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
10928 note when flag_exceptions is set.
10930 2010-02-10 Duncan Sands <baldrick@free.fr>
10932 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
10934 2010-02-10 Richard Guenther <rguenther@suse.de>
10937 * tree.c (get_unwidened): Handle constants.
10938 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
10940 2010-02-10 Martin Jambor <mjambor@suse.cz>
10943 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
10944 check for variable argument counts independently.
10946 2010-02-10 Christian Bruel <christian.bruel@st.com>
10949 * config/sh/sh.c (find_barrier): Increase length for non delayed
10950 conditional branches.
10952 2010-02-10 Christian Bruel <christian.bruel@st.com>
10954 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
10956 2010-02-10 Jakub Jelinek <jakub@redhat.com>
10958 * builtins.c (set_builtin_user_assembler_name): Also handle
10959 ffs if int is smaller than word.
10961 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
10963 PR middle-end/42973
10964 * ira-conflicts.c (get_dup): Remove.
10965 (process_reg_shuffles): Add new parameter. Use it as an
10966 additional guard for copy generation.
10967 (add_insn_allocno_copies): Rewrite.
10969 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
10971 * common.opt (fsched2-use-traces): Preserved for backward
10973 * doc/invoke.texi: Remove the documentation about option
10974 -fsched2-use-traces.
10975 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
10976 flag_sched2_use_traces.
10977 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
10978 the backward compatibility flag section.
10980 2010-02-09 Richard Guenther <rguenther@suse.de>
10982 PR tree-optimization/43008
10983 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
10984 make HEAP variables initialized from global memory if they
10985 are not known builtin functions.
10986 (find_func_aliases): Adjust.
10988 2010-02-09 Richard Guenther <rguenther@suse.de>
10990 PR tree-optimization/43000
10991 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
10992 arithmetic manually.
10994 2010-02-08 Jakub Jelinek <jakub@redhat.com>
10996 PR tree-optimization/42931
10997 * tree-loop-linear.c (try_interchange_loops): Don't call
10998 double_int_mul if estimated_loop_iterations failed.
11000 2010-02-08 Martin Jambor <mjambor@suse.cz>
11002 PR middle-end/42898
11003 * tree-sra.c (build_accesses_from_assign): Do not mark in
11004 should_scalarize_away_bitmap if stmt has volatile ops.
11005 (sra_modify_assign): Do not process assigns piecemeal if if stmt
11008 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
11010 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
11012 2010-02-07 Adam Nemet <adambnmet@gmail.com>
11014 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
11015 before the pattern.
11017 2010-02-07 Andrew Pinski <pinskia@gmail.com>
11019 PR middle-end/42946
11020 * df-core.c (df_finish_pass): Change type of saved_flags to int.
11022 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
11024 PR middle-end/42988
11025 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
11026 to unknown_dependence.
11027 (graphite_legal_transform_dr): Handle the unknown_dependence.
11028 (graphite_carried_dependence_level_k): Same.
11030 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
11032 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
11034 2010-02-07 Richard Guenther <rguenther@suse.de>
11036 PR middle-end/42991
11037 * expr.c (get_inner_reference): Always initialize *pbitsize.
11039 2010-02-07 Richard Guenther <rguenther@suse.de>
11041 PR middle-end/42956
11042 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
11043 new ARRAY_REFs on variable size element or minimal index arrays.
11045 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
11046 gimple_fold_indirect_ref.
11048 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
11051 * arm.c (arm_override_options): Just return if the user has specified
11052 an invalid fpu name.
11054 2010-02-03 Jason Merrill <jason@redhat.com>
11057 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
11058 i386_pe_maybe_record_exported_symbol.
11060 2010-02-05 Steve Ellcey <sje@cup.hp.com>
11063 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
11064 (pa_delegitimize_address): New function.
11066 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
11068 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
11069 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
11071 2010-02-05 Richard Guenther <rguenther@suse.de>
11074 * lto-streamer-in.c (get_resolution): Deal with references
11075 to undefined functions.
11077 2010-02-05 Richard Guenther <rguenther@suse.de>
11079 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
11080 (fold_const_aggregate_ref): Likewise.
11081 (ccp_fold_stmt): Substitute loads.
11082 (maybe_fold_reference): Verify types before substituting.
11084 (fold_gimple_assign): Unshare properly.
11085 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
11087 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
11089 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
11090 for rs6000_gen_cell_microcode.
11092 2010-02-04 Richard Guenther <rguenther@suse.de>
11094 PR rtl-optimization/42952
11095 * dse.c (const_or_frame_p): Remove MEM handling.
11097 2010-02-04 Nick Clifton <nickc@redhat.com>
11099 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
11100 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
11101 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
11102 (mn10300_asm_output_mi_thunk): New function.
11103 (mn10300_can_output_mu_thunk): New function.
11104 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
11105 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
11106 (FUNCTION_ARG): Delete incorrect comment.
11108 2010-02-03 Jason Merrill <jason@redhat.com>
11111 * fold-const.c (operand_equal_p): Handle erroneous types.
11113 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
11115 * config/h8300/h8300.md (can_delay): Fix attibute condition.
11117 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
11119 PR rtl-optimization/42941
11120 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
11123 2010-02-03 Jason Merrill <jason@redhat.com>
11126 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
11128 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
11131 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
11132 (cselib_reset_table): Renamed from...
11133 (cselib_reset_table_with_next_value): ... this.
11134 (cselib_get_next_uid): Renamed from...
11135 (cselib_get_next_unknown_value): ... this.
11136 * cselib.c (next_uid): Renamed from...
11137 (next_unknown_value): ... this.
11138 (cselib_clear_table): Adjust.
11139 (cselib_reset_table): Adjust. Renamed from...
11140 (cselib_reset_table_with_next_value): ... this.
11141 (cselib_get_next_uid): Adjust. Renamed from...
11142 (cselib_get_next_unknown_value): ... this.
11143 (get_value_hash): Use hash.
11144 (cselib_hash_rtx): Likewise.
11145 (new_cselib_val): Adjust. Set and dump uid.
11146 (cselib_lookup_mem): Pass next_uid as hash.
11147 (cselib_subst_to_values): Likewise.
11148 (cselib_log_lookup): Dump uid.
11149 (cselib_lookup): Pass next_uid as hash. Adjust.
11150 (cselib_process_insn): Adjust.
11151 (cselib_init): Initialize next_uid.
11152 (cselib_finish): Adjust.
11153 (dump_cselib_table): Likewise.
11154 * dse.c (canon_address): Dump value uid.
11155 * print-rtl.c (print_rtx): Print value uid.
11156 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
11158 (dv_uid): New function, sort of renamed from...
11159 (dv_htab_hash): ... this, reimplemented in terms of it and...
11160 (dv_uid2hash): ... this. New.
11161 (variable_htab_eq): Drop excess assertions.
11162 (tie_break_pointers): Removed.
11163 (canon_value_cmp): Compare uids.
11164 (variable_post_merge_New_vals): Print uids.
11165 (vt_add_function_parameters): Adjust.
11166 (vt_initialize): Reset table. Adjust.
11168 2010-02-03 Richard Guenther <rguenther@suse.de>
11170 PR tree-optimization/42944
11171 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
11172 (call_may_clobber_ref_p_1): Likewise. Properly handle
11173 malloc and calloc clobbering errno.
11175 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
11177 * doc/invoke.texi: Fix name of sched1 dump.
11179 * opts.c (decode_options): Set flag_tree_switch_conversion
11180 only conditionally on optimize >= 2.
11182 * gcse.c: Assorted comment fixes in pass description.
11184 2010-02-03 Anthony Green <green@moxielogic.com>
11186 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
11187 nop padding in order to maintain alignment of storage location of
11188 target function address.
11189 (moxie_trampoline_init): Store target function address at newly
11191 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
11193 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
11195 2010-02-03 Richard Guenther <rguenther@suse.de>
11197 PR middle-end/42927
11198 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
11200 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11202 * config.gcc: Reenable check for obsolete targets.
11203 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
11204 mips-sgi-irix6.[0-4]*.
11206 2010-02-02 Nick Clifton <nickc@redhat.com>
11208 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
11209 constant size of 4 as being the same as 0.
11210 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
11211 can take values in the range 0..4.
11213 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
11216 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
11217 as _darwin10_Unwind_FindEnclosingFunction().
11218 * libgcc-libsystem.ver: New.
11220 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
11223 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
11224 implicitly set registers.
11226 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
11228 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
11229 (arm_override_options): Allow automatic selection of the thread
11230 pointer register if thumb2.
11231 (legitimize_pic_address): Improve code sequences for Thumb2.
11232 (arm_call_tls_get_addr): Likewise.
11233 (legitimize_tls_address): Likewise.
11234 * arm.md (pic_load_addr_arm): Delete. Replace with ...
11235 (pic_load_addr_32bit): ... this. New named pattern.
11236 * thumb2.md (pic_load_addr_thumb2): Delete.
11237 (pic_load_dot_plus_four): Delete.
11238 (tls_load_dot_plus_four): New named pattern.
11240 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11243 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
11244 Document fix for TLS bug.
11246 2010-01-31 Richard Guenther <rguenther@suse.de>
11248 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
11249 conservatively correct.
11251 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11255 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11257 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
11259 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11261 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
11263 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
11265 * config.gcc: Adjust order of makefile fragments for mingw targets.
11267 2010-01-31 Richard Guenther <rguenther@suse.de>
11269 PR middle-end/42898
11270 * gimplify.c (gimplify_init_constructor): For volatile LHS
11271 initialize a temporary.
11273 2010-01-31 Matthias Klose <doko@ubuntu.com>
11275 * configure.ac: Fix __stack_chk_fail check for cross builds configured
11277 * configure: Regenerate.
11279 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
11281 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
11282 the same alias set and their sizes different constantness.
11283 (aliasing_component_refs_p): Revert 2009-10-24 change.
11285 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11287 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
11290 2010-01-29 Richard Guenther <rguenther@suse.de>
11292 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
11293 Assert we successfully updated the call.
11295 2010-01-29 Jakub Jelinek <jakub@redhat.com>
11297 PR rtl-optimization/42889
11298 * df.h (df_set_bb_dirty_nonlr): New prototype.
11299 * df-core.c (df_set_bb_dirty_nonlr): New function.
11300 * df-scan.c (df_insn_rescan): Call it instead of
11301 df_set_bb_dirty for DEBUG_INSNs.
11303 2010-01-29 Richard Guenther <rguenther@suse.de>
11305 PR middle-end/37448
11306 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
11307 quadratic behavior in most cases.
11309 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
11312 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
11313 in the call to gen_x86_movsicc_0_m1.
11315 2010-01-28 Richard Guenther <rguenther@suse.de>
11317 PR tree-optimization/42871
11318 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
11320 2010-01-28 Richard Guenther <rguenther@suse.de>
11322 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
11323 into call arguments.
11325 2010-01-28 Richard Guenther <rguenther@suse.de>
11327 PR middle-end/42883
11328 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
11329 the forwarder if the destination is an EH landing pad.
11331 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
11333 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
11334 block list passed to gimple_duplicate_sese_tail.
11335 (parallelize_loops): Avoid parallelization when the function
11336 has_nonlocal_label.
11337 Avoid parallelization when the preheader is IRREDUCIBLE.
11338 Try to optimize when estimated_loop_iterations_int is unresolved.
11339 Add the loop's location to the dump file.
11340 * tree-cfg.c (add_phi_args_after_redirect): Remove.
11341 (gimple_duplicate_sese_tail): Remove the check for the latch.
11342 Redirect nexits to the exit block.
11343 Remove handling of the incoming edges to the latch.
11344 Redirect the backedge from the copied latch to the exit bb.
11346 2010-01-28 Michael Matz <matz@suse.de>
11349 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
11350 Wrap force_reg into a sequence, emit it before user.
11352 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
11354 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
11356 (arm_legacy_rev): Likewise.
11357 (thumb_legacy_rev): Likewise.
11359 2010-01-27 Jakub Jelinek <jakub@redhat.com>
11361 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
11362 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
11363 on MEM's address failed, try avoid_constant_pool_reference and
11364 recurse if it returned something different.
11365 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
11366 address, try avoid_constant_pool_reference and recurse if it
11367 returned something different.
11368 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
11369 address and avoid_constant_pool_reference returned something
11370 different, don't set have_address.
11372 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
11375 * var-tracking.c (val_store): Add modified argument, obey it.
11377 (count_uses): Move down logging of main.
11378 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
11379 don't need resolution.
11380 (emit_notes_in_bb): Likewise.
11382 2010-01-27 Richard Guenther <rguenther@suse.de>
11384 PR middle-end/42878
11385 * tree-inline.c (remap_decl): Delay remapping of SSA name
11386 default definitions until we need them.
11388 2010-01-27 Jakub Jelinek <jakub@redhat.com>
11390 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
11391 (rs6000_delegitimize_address): New function.
11393 * config/s390/s390.c (s390_delegitimize_address): Call
11394 delegitimize_mem_from_attrs.
11396 PR middle-end/42874
11397 * tree-inline.c (cannot_copy_type_1): Removed.
11398 (copy_forbidden): Don't forbid copying of functions containing
11399 records/unions with variable length fields.
11401 2010-01-27 Christian Bruel <christian.bruel@st.com>
11405 * config/sh/sh.c (find_barrier): Increase length for non delayed
11406 conditional branches.
11408 2010-01-27 Matthias Klose <doko@ubuntu.com>
11410 * configure.ac (gnu-unique-object): Fix ldd version check.
11411 * configure: Regenerate.
11413 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11415 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
11417 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
11418 Test for HAVE_GNU_AS value.
11420 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11422 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
11423 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
11424 INT64_TYPE): Define.
11425 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
11426 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
11427 INT_LEAST64_TYPE): Define.
11428 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
11429 UINT_LEAST64_TYPE): Define.
11430 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
11431 INT_FAST64_TYPE): Define.
11432 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
11433 UINT_FAST64_TYPE): Define.
11434 (INTMAX_TYPE, UINTMAX_TYPE): Define.
11435 (INTPTR_TYPE, UINTPTR_TYPE): Define.
11436 (SIG_ATOMIC_TYPE): Define.
11438 2010-01-26 Richard Guenther <rguenther@suse.de>
11440 * df-scan.c (df_scan_set_bb_info): Remove assert.
11441 (df_insn_rescan_debug_internal): Merge asserts.
11442 (df_install_ref): Likewise.
11443 (df_mark_reg): Use bitmap_set_range.
11444 (df_hard_reg_used_p): Remove assert.
11445 (df_hard_reg_used_count): Likewise.
11447 2010-01-26 Richard Guenther <rguenther@suse.de>
11449 PR rtl-optimization/42685
11450 * web.c (web_main): Ignore DEBUG_INSNs.
11452 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
11454 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
11456 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
11457 Fix types of fndecl and arglist parameters.
11459 2010-01-26 Richard Guenther <rguenther@suse.de>
11461 PR middle-end/42806
11462 * tree-eh.c (unsplit_eh): Skip debug insns.
11464 2010-01-26 Richard Guenther <rguenther@suse.de>
11466 PR tree-optimization/42250
11467 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
11469 2010-01-26 Jakub Jelinek <jakub@redhat.com>
11472 * omp-low.c (expand_omp_sections): Only use single_pred if
11473 l2_bb is single_pred_p.
11475 2010-01-25 Christian Bruel <christian.bruel@st.com>
11478 * config/sh/sh.c (find_barrier): Increase length for non delayed
11479 conditional branches.
11480 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
11482 2010-01-24 David S. Miller <davem@davemloft.net>
11484 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
11485 define if not using GAS.
11486 * config/sparc/sparc.c (sparc_elf_asm_named_section):
11487 Likewise. Delete SECTION_MERGE code, which is only applicable
11490 2010-01-24 Mark Mitchell <mark@codesourcery.com>
11493 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
11494 mangling of va_list in system headers.
11496 2010-01-23 Toon Moene <toon@moene.org>
11498 * tree-predcom.c (combine_chains): Return NULL, not false.
11500 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
11502 * tree-loop-distribution.c (distribute_loop): Fix declaration and
11503 initialization of variable res to agree with return type.
11505 2010-01-22 Steve Ellcey <sje@cup.hp.com>
11507 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
11508 * tree-sra.c: Add include of expr.h.
11510 2010-01-22 Jakub Jelinek <jakub@redhat.com>
11512 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
11513 insert the debug stmt on the single non-EH edge from the stmt.
11515 2010-01-22 Richard Henderson <rth@redhat.com>
11518 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
11519 the RHS until after generate_subtree_copies has insertted its
11520 code before the current statement.
11522 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
11524 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
11526 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
11528 2010-01-21 Martin Jambor <mjambor@suse.cz>
11530 PR tree-optimization/42585
11531 * tree-sra.c (struct access): New field grp_total_scalarization.
11532 (dump_access): Dump the new field.
11533 (should_scalarize_away_bitmap): New variable.
11534 (cannot_scalarize_away_bitmap): Likewise.
11535 (sra_initialize): Allocate new bitmaps.
11536 (sra_deinitialize): Free new bitmaps.
11537 (create_access_1): New function.
11538 (create_access): Parts moved to create_access_1.
11539 (type_consists_of_records_p): New function.
11540 (completely_scalarize_record): Likewise.
11541 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
11542 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
11543 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
11545 (analyze_all_variable_accesses): Completely scalarize small eligible
11548 2010-01-21 Martin Jambor <mjambor@suse.cz>
11550 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
11552 2010-01-21 Andrew Haley <aph@redhat.com>
11554 * gcc.c (process_command): Move lang_specific_driver before
11555 setting cc_libexec_prefix.
11557 2010-01-21 Richard Guenther <rguenther@suse.de>
11559 PR middle-end/19988
11560 * fold-const.c (negate_expr_p): Pretend only negative
11561 real constants are easily negatable.
11563 2010-01-20 Janis Johnson <janis187@us.ibm.com>
11564 Jason Merrill <jason@redhat.com>
11566 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
11567 (TYPE_TRANSPARENT_AGGR): this, for union and record.
11568 * calls.c (initialize argument_information): Handle it.
11569 * c-common.c (handle_transparent_union_attribute): Use new name.
11570 * c-decl.c (finish_struct): Ditto.
11571 * c-typeck.c (type_lists_compatible_p): Ditto.
11572 (convert_for_assignment): Use new name and also handle record.
11573 * function.c (aggregate_value_p): Handle it.
11574 (pass_by_reference): Ditto.
11575 (assign_parm_data_types): Ditto.
11576 * print-tree.c (print_node): Ditto.
11577 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
11578 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
11579 * tree.c (first_field): New fn.
11581 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
11584 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
11585 even when linking statically, for now.
11587 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
11590 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
11591 without a cselib val.
11592 (count_uses): Accept MO_VAL_SET with no val on stores.
11593 (add_stores): Likewise.
11595 2010-01-20 Jakub Jelinek <jakub@redhat.com>
11597 * var-tracking.c (check_value_val): Add a compile time assertion.
11598 (dv_is_decl_p): Simplify.
11599 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
11600 gcc_assert if ENABLE_CHECKING.
11602 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
11605 * var-tracking.c: Include tree-flow.h.
11606 (mem_dies_at_call): New.
11607 (dataflow_set_preserve_mem_locs): Use it.
11608 (dataflow_set_remove_mem_locs): Likewise.
11609 (dump_var): Renamed from dump_variable. Adjust all callers.
11610 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
11611 * Makefile.in (var-tracking.o): Adjust deps.
11613 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
11615 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
11617 2010-01-20 Richard Guenther <rguenther@suse.de>
11619 PR tree-optimization/42717
11620 * tree-ssa-dce.c (get_live_post_dom): Remove.
11621 (forward_edge_to_pdom): Take an arbitrary edge to copy
11622 degenerate PHI args from.
11623 (remove_dead_stmt): Use the first post-dominator even if it
11624 does not contain live statements as redirection destination.
11626 2010-01-20 Richard Guenther <rguenther@suse.de>
11628 * tree-inline.c (estimate_num_insns): Handle EH builtins.
11630 2010-01-20 Jakub Jelinek <jakub@redhat.com>
11632 * sel-sched.c (create_speculation_check): Remove set but not used
11634 (try_transformation_cache): Remove set but not used variable ds.
11635 (calculate_privileged_insns): Remove set but not used variables
11636 cur_insn and min_spec_insn.
11637 (find_best_expr): Remove set but not used variable avail_n.
11638 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
11640 * cgraphunit.c (assemble_thunk): Remove set but not used variable
11642 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
11643 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
11644 new_scop_exit_edge.
11646 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
11649 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
11650 cpu types. Add support for *-sse3 cpu types.
11651 (x86_64-*-*): Ditto.
11653 2010-01-20 Jakub Jelinek <jakub@redhat.com>
11655 PR middle-end/42803
11656 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
11657 argument, call initializer_constant_valid_p_1 instead of
11658 initializer_constant_valid_p, pass CACHE to it, return NULL
11659 immediately if first call returns NULL.
11660 (initializer_constant_valid_p_1): New function.
11661 (initializer_constant_valid_p): Use it.
11663 2010-01-20 Thomas Quinot <quinot@adacore.com>
11665 * tree.def (PLACEHOLDER_EXPR): Fix comment.
11667 2010-01-20 Jakub Jelinek <jakub@redhat.com>
11669 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
11670 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
11671 (loc_list_from_tree): Don't handle unsigned division. Handle
11672 signed modulo using DW_OP_{over,over,div,mul,minus}.
11673 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
11674 modulo instead of signed.
11676 2010-01-20 DJ Delorie <dj@redhat.com>
11678 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
11680 (h8300_emit_stack_adjustment): Propogate it.
11682 (h8300_expand_prologue): Likewise.
11683 (h8300_expand_epilogue): Likewise.
11685 2010-01-19 Michael Matz <matz@suse.de>
11687 PR tree-optimization/41783
11688 * tree-data-ref.c (toplevel): Include flags.h.
11689 (dump_data_dependence_relation): Also dump the inputs if the
11690 result will be unknown.
11691 (split_constant_offset_1): Look through some conversions.
11692 * tree-predcom.c (determine_roots_comp): Restart a new chain if
11693 the offset from last element is too large.
11694 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
11695 (reassociate_to_the_same_stmt): Handle vector registers.
11696 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
11697 (e.g. conversions).
11698 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
11699 wide_prolog_niters argument, emit widening instructions.
11700 (vect_do_peeling_for_alignment): Adjust caller, use widened
11701 variant of the iteration cound.
11702 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
11704 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11707 * config/arm/neon-testgen.m (emit_automatics): New parameter
11708 features. Adjust for Fixed_return_reg feature.
11709 (test_intrinsic): Call emit_automatics with new feature.
11710 * config/arm/neon.ml: Update copyright years.
11711 (features): New Fixed_return_reg feature.
11712 (ops): Update feature for Vget_low.
11714 2010-01-19 Jakub Jelinek <jakub@redhat.com>
11716 PR tree-optimization/42719
11717 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
11721 * fwprop.c (all_uses_available_at): Return false if def_set dest
11722 is a REG that is used in def_insn.
11724 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
11726 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
11728 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
11729 Add argument names.
11731 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
11733 * target.h (struct gcc_target) <secondary_reload>: Change type
11734 of last argument to secondary_reload_info *.
11736 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
11739 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
11740 memory references with unaligned offsets. Remove CQImode handling.
11741 (unaligned_memory_operand): Return 1 for memory references with
11742 unaligned offsets. Remove CQImode handling.
11744 2010-01-18 Richard Guenther <rguenther@suse.de>
11746 PR middle-end/39954
11747 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
11750 2010-01-18 Richard Guenther <rguenther@suse.de>
11752 PR tree-optimization/42781
11753 * tree-ssa-structalias.c (find_what_var_points_to): Skip
11754 restrict processing only if the original variable was artificial.
11756 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
11758 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
11759 find number of popped argument bytes.
11761 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
11762 Fix the text that describes the return value for invalid insns.
11764 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
11766 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
11767 Clarify what 'cost of the -dependence' is. Fix quoting.
11769 * toplev.c (default_get_pch_validity): Rename argument to "sz".
11770 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
11772 2010-01-17 Jakub Jelinek <jakub@redhat.com>
11774 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
11775 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
11777 2010-01-17 Richard Guenther <rguenther@suse.de>
11779 PR middle-end/42248
11780 * function.c (split_complex_args): Take a VEC to modify.
11781 (assign_parms_augmented_arg_list): Build a VEC instead of
11782 a chain of PARM_DECLs.
11783 (assign_parms_unsplit_complex): Take a VEC of arguments.
11784 Do not fixup unmodified parms.
11785 (assign_parms): Deal with the VEC.
11786 (gimplify_parameters): Likewise.
11788 2010-01-17 Richard Guenther <rguenther@suse.de>
11790 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
11791 node existence check.
11792 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
11793 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
11794 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
11795 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
11796 (gimple_execute_on_growing_pred): Likewise.
11798 2010-01-17 Richard Guenther <rguenther@suse.de>
11800 PR tree-optimization/42773
11801 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
11802 (compute_antic_aux): Likewise.
11803 (compute_partial_antic_aux): Likewise.
11805 2010-01-17 Jie Zhang <jie.zhang@analog.com>
11808 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
11811 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
11813 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
11816 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
11817 Fix markup for strict argument.
11819 (TARGET_SCHED_REORDER2): Fix argument types.
11821 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
11822 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
11824 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
11825 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
11827 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
11830 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
11831 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
11832 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
11833 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
11834 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
11836 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
11838 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
11840 (TARGET_ASM_RELOC_RW_MASK): Add return type.
11841 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
11843 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
11845 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
11848 (TARGET_ASM_NAMED_SECTION): Fix argument list.
11850 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
11851 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
11853 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
11855 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
11857 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
11858 referring to it. Fix language.
11860 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
11862 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
11864 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
11866 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
11868 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
11869 '@var{stream}. Remove stray 'and'.
11871 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
11873 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
11875 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
11877 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
11878 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
11880 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
11881 Fix description of return value.
11882 Rename argument "sz" to "len."
11884 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
11885 Clarify meaning of 'true' return value.
11887 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
11889 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
11890 rep_mode versus mode_rep.
11892 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
11894 (TARGET_BUILTIN_DECL): Fix name.
11896 (TARGET_COMMUTATIVE_P): Fix type of first argument.
11898 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
11900 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
11902 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
11904 (TARGET_RELAXED_ORDERING): Use @deftypevr.
11906 (TARGET_GET_DRAP_RTX): Note that this is a hook.
11909 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
11910 Rename argument tm_fn to md_fn.
11912 (TARGET_OPTION_PRINT): Fix argument list.
11914 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
11917 * config/i386/i386.c (ix86_fixup_binary_operands):
11918 Revert FMA4 fixup of operands.
11920 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11923 * Makefile.in (write_entries_to_file, install-plugin):
11924 Use \012 instead of \n with tr.
11926 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
11928 * configure.ac (HAVE_AS_REF): New C macro.
11929 * configure: Regenerate.
11930 * config.in: Likewise.
11931 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
11933 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
11936 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
11938 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
11940 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
11942 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
11944 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
11946 (TARGET_IN_SMALL_DATA_P): Fix argument type.
11948 (TARGET_BINDS_LOCAL_P): Fix argument type.
11950 (TARGET_ASM_FILE_END): Use prototype.
11952 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
11954 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
11956 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
11958 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
11960 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
11961 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
11963 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
11964 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
11966 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
11967 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
11968 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
11969 (TARGET_ADDR_SPACE_CONVERT): Likewise.
11971 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
11973 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
11975 (TARGET_INIT_BUILTINS): Use prototype.
11977 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
11978 Put 'const char *' in braces. Fix parameter types.
11979 (TARGET_INVALID_CONVERSION): Fix parameter types.
11980 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
11981 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
11983 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
11986 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
11988 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
11990 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
11992 * doc/tm.texi (TARGET_HELP): Fix return type.
11994 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
11995 in braces. Fix argument types.
11997 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
11999 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
12001 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
12003 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
12004 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
12006 (TARGET_MANGLE_TYPE): Fix argument types.
12008 (TARGET_IRA_COVER_CLASSES): Use prototype.
12010 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
12012 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
12014 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
12016 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
12018 (TARGET_CALLEE_COPIES): Fix argument types.
12020 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
12022 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
12024 (TARGET_FUNCTION_VALUE): Fix argument types.
12026 (TARGET_RETURN_IN_MSB): Fix argument type.
12028 (TARGET_RETURN_IN_MEMORY): Fix argument types.
12030 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
12032 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
12034 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
12035 agree with return type.
12037 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
12039 2010-01-15 Jing Yu <jingyu@google.com>
12041 PR rtl-optimization/42691
12042 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
12043 a pseudo to a constant and are merged, and adjust comments.
12045 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
12047 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
12049 2010-01-15 Richard Guenther <rguenther@suse.de>
12051 PR middle-end/42739
12052 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
12053 labels of computed or non-local gotos to the destination.
12054 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
12055 landing pad label is the first label.
12057 2010-01-15 Richard Guenther <rguenther@suse.de>
12059 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
12061 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12064 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
12065 to allow generation of the xssqrtdp instruction on power7.
12066 (sqrtdf2_fpr): Ditto.
12068 2010-01-14 Jakub Jelinek <jakub@redhat.com>
12070 PR middle-end/42674
12071 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
12072 functions with noreturn attribute.
12075 * varasm.c (declare_weak): Add weak attribute to decl if it
12076 doesn't have one already.
12077 (assemble_external): Only add decls to weak_decls if they also
12078 have weak attribute.
12080 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
12082 * var-tracking.c (var_reg_delete): Don't delete the association
12083 between REGs and values or one-part variables if the register
12086 2010-01-14 Jakub Jelinek <jakub@redhat.com>
12089 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
12090 because its first operand is a non-localized variable.
12092 2010-01-14 Martin Jambor <mjambor@suse.cz>
12094 PR tree-optimization/42706
12095 * tree-sra.c (encountered_recursive_call): New variable.
12096 (encountered_unchangable_recursive_call): Likewise.
12097 (sra_initialize): Initialize both new variables.
12098 (callsite_has_enough_arguments_p): New function.
12099 (scan_function): Call decl and flags check only for IPA-SRA, check
12100 whether there is a recursive call and whether it has enough arguments.
12101 (all_callers_have_enough_arguments_p): New function.
12102 (convert_callers): Look for recursive calls only when
12103 encountered_recursive_call is set.
12104 (ipa_early_sra): Bail out either if
12105 !all_callers_have_enough_arguments_p or
12106 encountered_unchangable_recursive_call.
12108 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
12110 * sel-sched.c: Add 2010 to copyright years.
12111 * sel-sched-ir.c: Likewise.
12112 * sel-sched-ir.h: Likewise.
12114 2010-01-14 Martin Jambor <mjambor@suse.cz>
12116 PR tree-optimization/42714
12117 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
12118 constructors specially.
12120 2010-01-14 Andi Kleen <ak@linux.intel.com>
12122 * config/i386/drivers-i386.c (detect_caches_intel):
12123 Add l2sizekb parameter and fill in.
12124 (host_detect_local_cpu): Add l2sizekb, fill in.
12125 Add Atom small cache heuristic.
12127 2010-01-14 Andi Kleen <ak@linux.intel.com>
12129 * config/i386/drivers-i386.c (detect_caches_cpuid4):
12130 Add level3 parameter and fill in.
12131 (detect_caches_intel): Handle level3 cache.
12133 2010-01-14 Andi Kleen <ak@linux.intel.com>
12135 * config/i386/drivers-i386.c (host_detect_local_cpu):
12136 Fix core duo detection.
12138 2010-01-14 Andi Kleen <ak@linux.intel.com>
12140 * config/i386/drivers-i386.c (host_detect_local_cpu):
12141 Fix Atom detection.
12143 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
12145 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
12146 (rs6000_variable_issue_1): this. Use...
12147 (rs6000_variable_issue): here. Reimplement. Print debug info.
12149 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
12151 * sel-sched-ir.c (sel_restore_other_notes): Rename to
12152 sel_restore_notes. Update all callers. Call reemit_notes
12155 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
12157 PR rtl-optimization/42246
12158 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
12161 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
12163 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
12164 all successors is the same as number of successors in current region.
12166 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
12168 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
12169 to rename is not separable. Otherwise check that its LHS is not NULL.
12171 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
12173 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
12175 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
12177 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
12178 available registers when failed to discover LHS register class.
12179 Fix indentation. Update comment.
12181 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
12182 Alexander Monakov <amonakov@ispras.ru>
12184 PR rtl-optimization/42389
12185 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
12187 (advance_state_on_fence): Likewise.
12188 (sel_target_adjust_priority): Print debug output only when
12189 sched_verbose >= 4, not 2.
12190 (get_expr_cost): Do not issue all unique insns on the next cycle.
12191 (fill_insns): Initialize can_issue_more from the value saved
12193 * sel-sched-ir.c (flist_add): New parameter issue_more.
12194 Init FENCE_ISSUE_MORE with it.
12195 (merge_fences): Likewise.
12196 (init_fences): Update call to flist_add.
12197 (add_to_fences, add_clean_fence_to_fences)
12198 (add_dirty_fence_to_fences): Likewise.
12199 (move_fence_to_fences): Update call to merge_fences.
12200 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
12202 * sel-sched-ir.h (struct _fence): New field issue_more.
12203 (FENCE_ISSUE_MORE): New accessor macro.
12205 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
12207 PR rtl-optimization/42388
12208 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
12209 that have no predecessors nor successors. Do not call move_bb_info
12210 for empty blocks outside of current region.
12212 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
12214 PR rtl-optimization/42294
12215 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
12216 * sel-sched.c (move_exprs_to_boundary): Transitively add all
12217 originators' originators.
12219 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
12221 PR rtl-optimization/39453
12222 PR rtl-optimization/42246
12223 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
12225 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
12227 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
12228 Alexander Monakov <amonakov@ispras.ru>
12230 PR middle-end/42245
12231 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
12232 (maybe_tidy_empty_bb): ... here. Make static. Add new
12233 argument. Update all callers.
12234 (tidy_control_flow): ... and here. Recompute topological order
12235 of basic blocks in region if necessary.
12236 (sel_redirect_edge_and_branch): Change return type. Return true
12237 if topological order might have been invalidated.
12238 (purge_empty_blocks): Export and move from...
12239 * sel-sched.c (purge_empty_blocks): ... here.
12240 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
12241 (maybe_tidy_empty_bb): Delete prototype.
12242 (purge_empty_blocks): Declare.
12244 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
12246 PR rtl-optimization/42249
12247 * sel-sched.c (try_replace_dest_reg): When chosen register
12248 and original register is the same, do not bail out early, but
12249 still check all original insns for validity of replacing destination
12250 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
12253 2010-01-14 Jakub Jelinek <jakub@redhat.com>
12256 Port from no-undefined-overflow branch:
12257 2009-03-09 Richard Guenther <rguenther@suse.de>
12259 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
12261 2010-01-14 Richard Guenther <rguenther@suse.de>
12264 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
12266 2010-01-14 Ira Rosen <irar@il.ibm.com>
12268 PR tree-optimization/42709
12269 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
12270 as scalar type in creation of constant vector operand.
12272 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12275 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
12276 (check-parallel-%): Match `testsuite' directory component only
12279 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
12281 PR translation/39521
12282 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
12285 2010-01-13 Richard Guenther <rguenther@suse.de>
12287 PR tree-optimization/42730
12288 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
12291 2010-01-13 Steve Ellcey <sje@cup.hp.com>
12294 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
12295 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
12298 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
12300 * config/bfin/libgcc-bfin.ver: Regenerate based on current
12301 libgcc-std.ver. Add entries for ___smulsi3_highpart and
12302 ___umulsi3_highpart.
12304 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
12305 rather than schedule_insns if the pass is enabled.
12307 2010-01-13 Martin Jambor <mjambor@suse.cz>
12309 PR tree-optimization/42704
12310 * tree-sra.c (sra_modify_assign): Do not delete assignments to
12313 2010-01-13 Martin Jambor <mjambor@suse.cz>
12315 PR tree-optimization/42703
12316 * tree-sra.c (analyze_access_subtree): Check that we can build a
12317 reference to the original data within the aggregate.
12319 2010-01-13 Richard Guenther <rguenther@suse.de>
12321 PR tree-optimization/42705
12322 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
12324 2010-01-13 Richard Guenther <rguenther@suse.de>
12326 PR middle-end/42716
12327 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
12329 2010-01-13 Jakub Jelinek <jakub@redhat.com>
12332 * var-tracking.c (values_to_unmark): New variable.
12333 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
12334 values_to_unmark vector. Moved body to...
12335 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
12336 instead queue it into values_to_unmark vector.
12337 (vt_find_locations): Free values_to_unmark vector.
12339 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
12341 * config/s390/s390.c (override_options): Set
12342 default of max-pending-list-length to 256
12344 2010-01-13 Richard Guenther <rguenther@suse.de>
12347 * tree-pass.h (PROP_gimple_lcx): New.
12348 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
12349 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
12350 before the final cleanup_eh.
12351 (dump_properties): Dump PROP_gimple_lcx.
12352 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
12353 (tree_lower_complex_O0): Remove.
12354 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
12355 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
12356 tree_lower_complex, schedule TODO_update_ssa.
12357 * lto-streamer-out.c (output_function): Stream the functions
12359 * lto-streamer-in.c (input_function): Likewise.
12360 (lto_read_body): Do not override them here.
12362 2010-01-12 Joseph Myers <joseph@codesourcery.com>
12365 * c-typeck.c (build_c_cast): Fold value cast to union type before
12366 wrapping it in a CONSTRUCTOR.
12368 2010-01-12 Jakub Jelinek <jakub@redhat.com>
12370 PR rtl-optimization/42699
12371 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
12374 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12376 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
12377 SUBTARGET_WARN_UNUSED_SPEC): Move ...
12378 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
12379 SUBTARGET_WARN_UNUSED_SPEC): ... here
12380 * config/mips/iris5.h (LIBGCC_SPEC): Define.
12382 2010-01-12 Julian Brown <julian@codesourcery.com>
12384 * config/arm/neon-schedgen.ml (Utils): Don't try to
12385 open missing module.
12386 (find_with_result): New.
12388 2010-01-12 Jakub Jelinek <jakub@redhat.com>
12391 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
12392 sharing when canonicalizing ({lt,ge}u (plus a b) b).
12394 PR tree-optimization/42645
12395 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
12396 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
12397 decl_map, set processing_debug_stmt to -1 and return name without
12400 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
12402 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
12403 binutils version, and reword target configuration description.
12405 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
12407 * config/avr/avr.h (LINKER_NAME): Remove.
12409 2010-01-11 Janis Johnson <janis187@us.ibm.com>
12412 * config/rs6000/rs6000.c (rs6000_override_options): On targets
12413 that support VSX, warn for -mno-altivec if vsx is not disabled,
12416 2010-01-11 Joseph Myers <joseph@codesourcery.com>
12417 Shujing Zhao <pearly.zhao@oracle.com>
12419 PR translation/42469
12420 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
12421 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
12422 character between option name and help text.
12423 * c.opt (imultilib): Likewise.
12425 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
12427 * lto-streamer-out.c (output_unreferenced_globals): Output static
12430 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
12432 PR rtl-optimization/42621
12433 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
12434 optimizing for size.
12435 (duplicate_computed_gotos): Remove now-redundant check.
12437 2010-01-10 Steve Ellcey <sje@cup.hp.com>
12440 * configure.ac: Save and restore LDFLAGS and LIBS
12441 * configure: Regenerate.
12443 2010-01-10 Richard Guenther <rguenther@suse.de>
12445 PR middle-end/42667
12446 * builtins.c (fold_builtin_strlen): Add type argument and
12447 convert the resulting length to it.
12448 (fold_builtin_1): Adjust.
12450 2010-01-09 Jakub Jelinek <jakub@redhat.com>
12452 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
12453 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
12455 (num_insns_constant_wide): Adjust for that change.
12457 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
12460 * web.c (union_defs): Add used argument, to combine uses of
12461 uninitialized regs.
12462 (entry_register): Adjust type and tests of used argument.
12463 (web_main): Widen used for new use. Pass it to union_defs.
12464 * df.h (union_defs): Adjust prototype.
12466 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
12469 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
12470 uses in new incoming argument. Free body.
12471 (reset_debug_uses_in_loop): New.
12472 (analyze_insn_to_expand_var): Call the latter if the former found
12473 anything. Fix whitespace. Reject invalid dest overlaps before
12474 going through all insns in the loop.
12476 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
12479 * haifa-sched.c (dying_use_p): Debug insns don't count.
12481 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
12483 PR middle-end/42363
12484 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
12485 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
12486 (verify_gimple_call): Reject LHS in noreturn calls.
12488 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
12492 * tree-vect-loop-manip.c (adjust_info): New type.
12493 (adjust_vec): New pointer to vector.
12494 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
12495 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
12496 (slpeel_update_phis_for_duplicate_loop): Use them.
12497 (slpeel_update_phi_nodes_for_guard1): Likewise.
12498 (slpeel_update_phi_nodes_for_guard2): Likewise.
12499 (slpeel_tree_peel_loop_to_edge): Likewise.
12500 (vect_update_ivs_after_vectorizer): Likewise.
12502 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
12504 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
12505 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
12507 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
12509 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
12510 bogus uninitialized warning.
12512 2010-01-09 Richard Guenther <rguenther@suse.de>
12514 PR middle-end/42512
12515 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
12516 the evolution is compatible with the initial condition.
12518 2010-01-09 Jakub Jelinek <jakub@redhat.com>
12520 * gcc.c (process_command): Update copyright notice dates.
12521 * gcov.c (print_version): Likewise.
12522 * gcov-dump.c (print_version): Likewise.
12523 * mips-tfile.c (main): Likewise.
12524 * mips-tdump.c (main): Likewise.
12526 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
12529 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
12531 (rotlhi3_8): Delete.
12533 (rotlsi3_8): Delete.
12534 (rotlsi3_16): Delete.
12535 (rotlsi3_24): Delete.
12536 (rotl<mode>3): New.
12537 (*rotw<mode>3): New.
12538 (*rotb<mode>3): New.
12539 * config/avr/avr.c (avr_rotate_bytes): New function.
12540 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
12542 2010-01-08 Steve Ellcey <sje@cup.hp.com>
12545 * configure.ac: Modify -rdynamic check.
12546 * configure: Regenerate.
12548 2010-01-08 DJ Delorie <dj@redhat.com>
12550 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
12551 register popping order.
12553 2010-01-08 Richard Guenther <rguenther@suse.de>
12556 * c.opt (fsigned-char): Also let LTO handle this option.
12557 (funsigned-char): Likewise.
12559 2010-01-07 Richard Guenther <rguenther@suse.de>
12561 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
12562 (gimple_op): Likewise.
12563 (gimple_op_ptr): Likewise.
12564 (gimple_assign_set_lhs): Remove gcc_assert.
12565 (gimple_assign_set_rhs1): Likewise.
12566 (gimple_assign_set_rhs2): Likewise.
12567 (gimple_call_set_lhs): Likewise.
12568 (gimple_call_set_fn): Likewise.
12569 (gimple_call_set_fndecl): Likewise.
12570 (gimple_call_fndecl): Likewise.
12571 (gimple_call_return_type): Likewise.
12572 (gimple_call_set_chain): Likewise.
12573 (gimple_call_num_args): Likewise.
12574 (gimple_call_set_arg): Likewise.
12575 (gimple_cond_set_code): Likewise.
12576 (gimple_cond_set_lhs): Likewise.
12577 (gimple_cond_set_rhs): Likewise.
12578 (gimple_cond_set_true_label): Likewise.
12579 (gimple_cond_set_false_label): Likewise.
12580 (gimple_label_set_label): Likewise.
12581 (gimple_goto_set_dest): Likewise.
12582 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
12583 (gimple_debug_bind_get_value): Likewise.
12584 (gimple_debug_bind_get_value_ptr): Likewise.
12585 (gimple_debug_bind_set_var): Likewise.
12586 (gimple_debug_bind_set_value): Likewise.
12587 (gimple_debug_bind_reset_value): Likewise.
12588 (gimple_debug_bind_has_value_p): Likewise.
12589 (gimple_return_retval_ptr): Remove gcc_assert.
12590 (gimple_return_retval): Likewise.
12591 (gimple_return_set_retval): Likewise.
12592 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
12593 (safe_referenced_var_iterator): Remove.
12594 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
12595 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
12596 (fill_referenced_var_vec): Remove.
12597 (first_readonly_imm_use): Remove redundant gcc_assert.
12598 (phi_arg_index_from_use): Combine gcc_asserts.
12599 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
12600 (first_imm_use_stmt): Remove redundant gcc_assert.
12601 * tree-cfg.c (verify_gimple_call): Verify function and chain
12602 operands. Verify arguments.
12603 (verify_types_in_gimple_stmt): Verify condition code and labels.
12605 2010-01-07 Richard Guenther <rguenther@suse.de>
12607 PR tree-optimization/42641
12608 * sese.c (rename_map_elt_info): Use the SSA name version, do
12611 2010-01-07 Jakub Jelinek <jakub@redhat.com>
12613 PR tree-optimization/42625
12614 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
12615 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
12617 2010-01-07 Duncan Sands <baldrick@free.fr>
12619 * Makefile.in (PLUGIN_HEADERS): Add version.h.
12621 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
12624 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
12625 note itself is not function_invariant_p.
12627 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
12629 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
12630 Do not add the DF_NOTE problem.
12631 * store-motion.c (execute_rtl_store_motion): Likewise.
12633 2010-01-07 Martin Jambor <mjambor@suse.cz>
12635 PR tree-optimization/42157
12636 * tree-sra.c (compare_access_positions): Stabilize sort if both
12637 accesses have integer types, return zero immediately if they are the
12640 2010-01-06 Richard Henderson <rth@redhat.com>
12642 PR middle-end/41883
12643 * haifa-sched.c (add_to_note_list): Merge into ...
12644 (concat_note_lists): ... here, and ...
12645 (unlink_other_notes, rm_other_notes): Merge into...
12646 (remove_notes): ... here. Create REG_SAVE_NOTEs for
12647 NOTE_INSN_EPILOGUE_BEG.
12649 2010-01-06 Richard Guenther <rguenther@suse.de>
12651 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
12652 not inline regular functions into always-inline functions.
12654 2010-01-06 Nick Clifton <nickc@redhat.com>
12656 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
12657 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
12659 (OVERRIDE_OPTIONS): Delete.
12660 (OPTIMIZATION_OPTIONS): Define.
12661 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
12662 * config/rx/rx.c (rx_handle_option): Issue an error message if
12663 -mcpu=rx200 and -fpu are used together.
12664 (rx_set_optimization_options): New function. Issue an error
12665 message if an optimization attribute attempts to reset the FPU/
12666 math optimization pairing.
12667 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
12668 * config/rx/rx.opt: Set the default to 32-bit doubles.
12669 * config/rx/t-rx: Add multilibs for -nofpu option.
12670 * doc/invoke.texi: Update documentation of RX options.
12672 2010-01-06 Richard Guenther <rguenther@suse.de>
12674 * tree-ssa-pre.c (name_to_id): New global.
12675 (alloc_expression_id): Simplify SSA name handling.
12676 (lookup_expression_id): Likewise.
12677 (init_pre): Zero name_to_id.
12678 (fini_pre): Free it.
12680 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
12682 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
12684 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
12687 * config/i386/sse.md (smaxv2di3): New.
12688 (umaxv2di3): Likewise.
12689 (sminv2di3): Likewise.
12690 (uminv2di3): Likewise.
12692 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
12695 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
12696 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
12697 (legitimize_tls_address): Likewise.
12698 (sparc_tls_referenced_p): Likewise.
12699 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
12700 and adjust calls to legitimize_pic_address.
12701 (legitimate_constant_p) Use sparc_tls_referenced_p.
12702 (legitimate_pic_operand_p): Likewise.
12703 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
12704 (sparc_tls_symbol_ref_1): Delete.
12705 (sparc_tls_referenced_p): Make static, recognize specific patterns.
12706 (legitimize_tls_address): Make static, handle CONST patterns.
12707 (legitimize_pic_address): Make static, remove unused parameter and
12708 adjust recursive calls.
12709 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
12710 and adjust call to legitimize_pic_address.
12711 (sparc_output_mi_thunk): Likewise.
12713 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
12714 H.J. Lu <hongjiu.lu@intel.com>
12717 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
12718 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
12719 operands to make them signed.
12722 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
12725 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
12726 GTU to GT for V4SI and V2DI.
12728 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
12729 (umin<mode>3): Removed.
12731 (uminv4si3): Likewise.
12733 2010-01-05 Martin Jambor <mjambor@suse.cz>
12735 PR tree-optimization/42462
12736 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
12737 current_function_decl to helper functions and macros.
12739 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12742 * flags.h: Don't include real.h.
12743 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
12744 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
12745 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
12746 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
12747 * dominance.c: Update copyright.
12748 * gimple.c (walk_gimple_op): Remove inline.
12749 * tree-ssa-reassoc.c: Include real.h.
12750 * Makefile.in (FLAGS_H): Remove $(REAL_H).
12751 (tree-ssa-reassoc.o): Depend on $(REAL_H).
12753 2010-01-05 Nick Clifton <nickc@redhat.com>
12755 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
12756 register to push into the stack frame when the accumulator has to
12757 be saved during interrupts.
12759 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
12761 * doc/invoke.texi: Remove the documentation about option
12762 -Wunreachable-code.
12763 * common.opt (Wunreachable-code): Preserved for backward
12765 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
12766 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
12767 the backward compatibility flag section.
12769 2010-01-05 Richard Guenther <rguenther@suse.de>
12771 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
12773 2010-01-05 Jakub Jelinek <jakub@redhat.com>
12776 * cfgexpand.c (expand_one_var): Diagnose too large variables.
12778 PR tree-optimization/42508
12779 * tree-sra.c (convert_callers): Check for recursive call
12780 by comparing cgraph nodes instead of decls.
12781 (modify_function): Call ipa_modify_formal_parameters also
12782 on all same_body aliases.
12784 * cgraphunit.c (cgraph_materialize_all_clones): Compare
12785 cgraph nodes when checking for same_body aliases.
12787 2010-01-05 Richard Guenther <rguenther@suse.de>
12789 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
12790 allocation and lookup.
12791 (get_or_alloc_expr_for_constant): Likewise.
12792 (phi_translate): Sink allocation.
12794 2010-01-04 Richard Guenther <rguenther@suse.de>
12796 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
12797 a new entry only if needed.
12798 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
12799 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
12801 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
12803 (phi_translate): Handle CONSTANTs early.
12805 2010-01-04 Martin Jambor <mjambor@suse.cz>
12807 PR tree-optimization/42398
12808 * tree-sra.c (struct access): Removed flag grp_different_types.
12809 (dump_access): Do not dump the removed flag.
12810 (sort_and_splice_var_accesses): Do not set the removed flag.
12811 (sra_modify_expr): Check for type compatibility directly.
12813 2010-01-04 Martin Jambor <mjambor@suse.cz>
12815 PR tree-optimization/42366
12816 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
12817 edges with variable number of parameters.
12818 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
12819 flag instead of asserting it.
12820 (ipa_read_node_info): Read uses_analysis_done flag.
12822 2010-01-04 Richard Guenther <rguenther@suse.de>
12824 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
12825 iterative_hash_* as intended.
12826 (vn_reference_compute_hash): Likewise. Simplify hashing
12828 (vn_reference_lookup_2): Likewise.
12829 (vn_nary_op_compute_hash): Likewise.
12830 (vn_phi_compute_hash): Likewise.
12831 (expressions_equal_p): Remove strange code.
12832 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
12833 (pre_expr_hash): Likewise. Simplify hashing SSA names.
12834 (bitmap_insert_into_set_1): Take value-id as parameter.
12835 (add_to_value): Pass it.
12836 (bitmap_insert_into_set): Likewise.
12837 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
12839 2010-01-04 Jakub Jelinek <jakub@redhat.com>
12842 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
12843 (do_self_spec): For switches with SWITCH_IGNORE set set also
12844 SWITCH_IGNORE_PERMANENTLY.
12845 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
12848 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
12850 * lto-streamer-out.c (output_unreferenced_globals): Output the full
12851 tree of an unreferenced global var.
12853 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
12856 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
12857 GTU to GT for V4SI and V2DI.
12859 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
12860 (umin<mode>3): Removed.
12862 (uminv4si3): Likewise.
12864 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
12867 * collect2.c (main): Turn on trace in collect2 if -v is passed
12870 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
12872 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
12873 description of expression operand.
12875 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
12877 * configure.ac: Add install-html to target_list for Make-hooks.
12878 * configure: Regenerate.
12879 * fortran/Make-lang.in (F95_HTMLFILES): New.
12880 (fortran.html): Use it.
12881 (fortran.install-html): New.
12882 * Makefile.in (install-html): Add lang.install-html.
12883 * java/Make-lang.in (JAVA_HTMLFILES): New.
12884 (java.html): Use it.
12885 (java.install-html): New.
12886 * objc/Make-lang.in (objc.install-html): New.
12887 * objcp/Make-lang.in (obj-c++.install-html): New.
12888 * cp/Make-lang.in (c++.install-html): New.
12889 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
12890 * lto/Make-lang.in (lto.install-html): New.
12892 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
12895 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
12897 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
12899 PR rtl-optimization/41862
12900 * store-motion.c (store_killed_in_insn, compute_store_table,
12901 remove_reachable_equiv_notes, replace_store_insn,
12902 build_store_vectors): Ignore all DEBUG_INSNs.
12904 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
12907 * common.opt: Add dumpdir.
12909 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
12911 (option_map): Add --dumpdir.
12913 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
12915 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
12917 * opts.c (decode_options): Try dump_dir_name first if
12918 dump_base_name isn't an absolute path.
12919 (common_handle_option): Handle OPT_dumpdir.
12921 * toplev.c (dump_dir_name): New.
12922 (print_switch_values): Also ignore -dumpdir.
12924 * toplev.h (dump_dir_name): New.
12926 2010-01-03 Richard Guenther <rguenther@suse.de>
12928 PR tree-optimization/42589
12929 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
12930 double-word expansion of bswap32.
12932 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
12934 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
12935 with BLOCK_FOR_INSN.
12936 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
12937 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
12938 noce_process_if_block): Likewise.
12939 * gcse.c (compute_local_properties, insert_expr_in_table,
12940 insert_set_in_table, canon_list_insert, find_avail_set,
12941 pre_insert_copy_insn): Likewise.
12943 * basic-block.h (BLOCK_NUM): Move from here...
12944 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
12946 2010-01-03 Richard Guenther <rguenther@suse.de>
12948 PR tree-optimization/42438
12949 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
12950 contains_may_not_return_call flag.
12951 (BB_MAY_NOTRETURN): New.
12952 (valid_in_sets): Trapping nary operations are not valid
12953 in blocks that may not return.
12954 (insert_into_preds_of_block): Remove check for trapping expressions.
12955 (compute_avail): Compute also BB_MAY_NOTRETURN.
12957 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
12959 * doc/invoke.texi: Add 2010 to copyright years.
12961 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
12963 * config/sparc/sparc.c: Fix formatting nits.
12965 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
12966 Alexander Monakov <amonakov@ispras.ru>
12968 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
12970 2010-01-02 Richard Guenther <rguenther@suse.de>
12972 PR middle-end/42577
12973 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
12974 (simplify_switch_using_ranges): Mark to be removed edges
12977 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12979 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
12981 * collect2.c (scan_libraries): Add missing argument in call to
12984 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
12987 * config/alpha/predicates.md (aligned_memory_operand): Return false
12989 (unaligned_memory_operand): Return true for CQImode.
12990 * config/alpha/alpha.c (get_aligned_mem): Assert that location
12991 doesn not cross aligned SImode word boundary.
12993 2010-01-02 Anatoly Sokolov <aesok@post.ru>
12995 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
12997 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
12998 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
13000 2010-01-02 Richard Guenther <rguenther@suse.de>
13003 * toplev.c (compile_file): Emit LTO marker properly. Change
13004 it to __gnu_lto_v1.
13005 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
13007 2010-01-01 Richard Guenther <rguenther@suse.de>
13010 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
13012 2010-01-01 Richard Guenther <rguenther@suse.de>
13015 * c-decl.c (grokdeclarator): For zero-size arrays force
13016 structural equality checks as layout_type does.
13018 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
13020 * builtins.c: Update copyright to 2010.
13022 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
13025 * lto-streamer-out.c (produce_asm): Revert the last change.
13026 (copy_function): Likewise.
13028 * lto-streamer.c (lto_get_section_name): Skip any leading
13031 2010-01-01 Richard Guenther <rguenther@suse.de>
13033 PR middle-end/42559
13034 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
13038 Copyright (C) 2010 Free Software Foundation, Inc.
13040 Copying and distribution of this file, with or without modification,
13041 are permitted in any medium without royalty provided the copyright
13042 notice and this notice are preserved.