1 2010-06-25 Alan Modra <amodra@gmail.com>
3 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
4 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
5 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
6 CMODEL_LARGE as default.
7 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
8 (offsettable_ok_by_alignment): Delete.
9 (rs6000_emit_move): Remove mcmodel=medium optimization.
11 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
13 With large parts from Jim Wilson:
15 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
16 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
17 * optabs.c (optab_for_tree_code): Likewise.
18 (expand_widen_pattern_expr): Likewise.
19 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
20 out of execute_optimize_widening_mul.
21 (convert_plusminus_to_widen): New function.
22 (execute_optimize_widening_mul): Use the two new functions.
23 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
24 Remove code to generate widening multiply-accumulate. Add support
25 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
26 * gimple-pretty-print.c (dump_ternary_rhs): New function.
27 (dump_gimple_assign): Call it when appropriate.
28 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
29 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
30 (expand_gimple_stmt_1): Likewise.
31 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
32 WIDEN_MULT_MINUS_EXPR.
33 * tree-ssa-operands.c (get_expr_operands): Likewise.
34 * tree-inline.c (estimate_operator_cost): Likewise.
35 * gimple.c (extract_ops_from_tree_1): Renamed from
36 extract_ops_from_tree. Add new arg for a third operand; fill it.
37 (gimple_build_assign_stat): Support operations with three operands.
38 (gimple_build_assign_with_ops_stat): Likewise.
39 (gimple_assign_set_rhs_from_tree): Likewise.
40 (gimple_assign_set_rhs_with_ops_1): Renamed from
41 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
42 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
43 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
44 WIDEN_MULT_MINUS_EXPR.
45 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
46 (extract_ops_from_tree_1): Adjust declaration.
47 (gimple_assign_set_rhs_with_ops_1): Likewise.
48 (gimple_build_assign_with_ops): Pass NULL for last operand.
49 (gimple_build_assign_with_ops3): New macro.
50 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
51 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
53 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
54 (verify_gimple_assign): Call it.
55 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
56 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
57 functions for dealing with three-operand statements.
58 * tree.c (commutative_ternary_tree_code): New function.
59 * tree.h (commutative_ternary_tree_code): Declare it.
60 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for ternary
62 (gimple_assign_nonzero_warnv_p): Likewise.
63 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
64 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
65 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
66 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
67 (struct hashtable_expr): New member ternary in the union.
68 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
69 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
70 (iterative_hash_hashable_expr): Likewise.
71 (print_expr_hash_elt): Handle EXPR_TERNARY.
72 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
73 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
74 statements. Handle GIMPLE_TERNARY_RHS.
76 2010-06-25 Jan Hubicka <jh@suse.cz>
78 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
80 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
83 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
84 parameters are not good.
85 (c_parser_parameter_declaration): Error unknown type name if the type
86 name can't start declaration specifiers.
88 2010-06-25 Joseph Myers <joseph@codesourcery.com>
90 * gcc.c (translate_options): Don't mention +e in comment.
91 (process_command): Don't handle +e specially.
93 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
95 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
97 * ira-build.c (merge_hard_reg_conflicts): New function.
98 (create_cap_allocno, copy_info_to_removed_store_destinations,
99 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
100 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
101 (remove_unnecessary_allocnos, remove_low_level_allocnos)
102 copy_nifo_to_removed_store_destination): Use them.
103 * ira-lives.c (make_hard_regno_born): New function, split out of
105 (make_allocno_born): Likewise.
106 (make_hard_regno_dead): New function, split out of make_regno_dead.
107 (make_allocno_dead): Likewise.
108 (inc_register_pressure): New function, split out of set_allocno_live.
109 (dec_register_pressure): New function, split out of clear_allocno_live.
110 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
111 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
112 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
113 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
114 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
115 mark_pseudo_regno_live.
116 (process_bb_node_lives): Use mark_pseudo_regno_live,
117 make_hard_regno_born and make_allocno_dead.
118 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
119 set_allocno_live, clear_allocno_live): Delete functions.
121 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
122 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
124 (ira_flattening): Use ira_parent_allocno.
125 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
126 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
128 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
131 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
132 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
133 minmax_set_iter_cond, minmax_set_iter_next,
134 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
135 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
136 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
137 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
140 * ira-int.h (struct live_range, live_range_t): Renamed from struct
141 ira_allocno_live_range and allocno_live_range_t; all uses changed.
142 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
145 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
147 * thumb2.md (thumb2_tlobits_cbranch): Delete.
148 (peephole2 to convert zero_extract/compare of single bit to
149 lshift/compare): New.
151 2010-06-24 Anatoly Sokolov <aesok@post.ru>
153 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
154 recursive call and call to 'int_const_binop'.
155 (build_range_check, fold_cond_expr_with_comparison, unextend,
156 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
157 multiple_of_p): Adjust call to const_binop.
159 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
161 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
162 determine size of XFmode operand.
163 (XFmode extended DFmode push splitter): Ditto.
164 (XFmode extended SFmode push splitter): Ditto.
166 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
169 * config/i386/i386.md (extract_code): New.
170 (<u>divmodqi4): Likewise.
171 (divmodhiqi3): Likewise.
172 (udivmodhiqi3): Likewise.
173 (<u>divqi3): Remvoved.
175 2010-06-24 Jakub Jelinek <jakub@redhat.com>
178 * recog.h (struct recog_data): Add is_asm field.
179 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
180 present in constraints of inline-asm operand and memory operand
181 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
182 (extract_insn): Initialize recog_data.is_asm.
183 * doc/md.texi (Constraints): Document operand side-effect rules.
185 2010-06-24 Andi Kleen <ak@linux.intel.com>
187 * c-parser.c (c_parser_conditional_expression): Call
188 warn_for_omitted_condop.
189 * doc/invoke.texi: Document omitted condop warning.
191 2010-06-24 Nick Clifton<nickc@redhat.com>
193 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
194 insn in the sequence is a jump insn before setting its label.
196 2010-06-24 Alan Modra <amodra@gmail.com>
198 * collect2.c (main): Match exactly --version and --help.
200 2010-06-24 DJ Delorie <dj@redhat.com>
202 * config/m32c/m32c-pragma.c: Don't include rtl.h.
204 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
206 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
207 using X87MODEF mode iterator.
208 (pushsf splitter): Macroize splitter using P mode iterator.
209 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
212 (*movxf_internal): Rename from *movxf_integer.
213 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
214 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
215 (*movdf_internal): Rename from *movdf_integer.
216 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
217 (*movsf_internal): Rename from *movdf_1.
219 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
221 * coretypes.h: (gimple_seq_node_d, gimple_seq_node)
222 (const_gimple_seq_node): Removed typedefs.
224 * gimple.h: (gimple_seq_node_d, gimple_seq_node)
225 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
227 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
229 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
230 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
231 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
232 and CODE_FOR_vec_extract_lo_v4df.
234 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
235 Changed to define_insn_and_split.
236 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
237 (vec_extract_lo_v16hi): Likewise.
238 (vec_extract_lo_v32qi): Likewise.
239 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
240 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
242 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
245 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
246 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
247 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
248 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
249 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
252 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
255 * df-core.c (struct df): Rename to df_d.
256 * df.h (struct df): Likewise.
257 * dse.h (struct df): Remove forward declaration.
258 * recog.h (struct insn_data): Rename to:
259 (struct_insn_data_d). Adjusted all users.
261 2010-06-23 Arnaud Charlet <charlet@adacore.com
264 * doc/install.texi: Update requirements to build GNAT.
266 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
268 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
270 (m68k_sched_attr_opx_type): Remove unreachable return.
271 (m68k_sched_attr_opy_type): Likewise.
272 (m68k_sched_attr_size): Likewise.
273 (sched_get_opxy_mem_type): Likewise.
274 (m68k_sched_attr_op_mem): Likewise.
276 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
278 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
279 new statement and adjust VDEF only if necessary. Remove superfluous
280 call to maybe_clean_or_replace_eh_stmt.
281 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
283 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
284 * tree-inline.c (copy_bb): ...and not there.
286 2010-06-22 Cary Coutant <ccoutant@google.com>
288 * dwarf2out.c (is_nested_in_subprogram): New function.
289 (should_move_die_to_comdat): Use it.
290 (copy_ancestor_tree): Don't mark DIEs here.
291 (copy_decls_walk): Start walk from root of newly-added tree;
292 mark DIEs here instead.
294 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
296 * config/i386/i386.md (unit): Also check sseishft1.
298 2010-06-22 Jan Hubicka <jh@suse.cz>
300 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
303 2010-06-22 Jan Hubicka <jh@suse.cz>
305 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
306 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
307 Return true if something changed.
308 * df.h (df_confluence_function_n): Return bool.
309 * df-core.c (df_worklist_propagate_forward,
310 df_worklist_propagate_backward): Track changes and ages.
311 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
313 * dse.c (dse_confluence_n): Return always true.
315 2010-06-22 Jan Hubicka <jh@suse.cz>
317 * bitmap.c (bitmap_clear_bit): Micro optimize.
319 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
321 * config/i386/i386.md (SWI1248x): New mode iterator.
326 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
327 SWI1248x mode iterator.
328 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
329 using SWI124 mode iterator.
330 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
332 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
333 *pushdi2_prologue_rex64 using P mode iterator.
334 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
335 using SWI48 mode iterator.
336 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
337 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
338 using SWI1248x mode iterator.
339 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
340 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
342 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
344 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
345 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
347 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
349 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
350 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
352 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
354 (mov<mode>_insn_1): New expander.
355 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
356 using SWI48x mode iterator.
358 (*movoi_internal_avx): Rename from *movoi_internal.
359 (*movti_internal_rex64): Rename from *movti_rex64.
360 (*movti_internal_sse): Rename from *movti_sse.
361 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
362 (*movdi_internal): Rename from *movdi_2.
363 (*movsi_internal): Rename from *movsi_1.
364 (*movhi_internal): Rename from *movhi_1.
365 (*movqi_internal): Rename from *movqi_1.
367 (insv): Update the call to gen_movsi_insv_1 for rename.
368 * config/i386/i386.c (promote_duplicated_reg): Ditto.
370 2010-06-22 Jan Hubicka <jh@suse.cz>
372 * passes.c (execute_function_todo): Move call of statistics_fini_pass
374 (execute_todo) ... this one.
376 2010-06-22 Alan Modra <amodra@gmail.com>
379 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
380 * caller-save.c (insert_restore, insert_save): Use non-validate
381 form of adjust_address.
383 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
386 * config/pa/pa.c (override_options): Disable
387 -freorder-blocks-and-partition.
389 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
392 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
394 * config/i386/i386.md (type): Add sseishft1
396 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
397 (ppro_insn_load): Likewise.
398 (ppro_insn_store): Likewise.
399 (ppro_insn_both): Likewise.
401 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
402 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
404 (*vec_extractv2di_1_avx): Likewise.
405 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
406 type. Remove atom_unit.
407 (*vec_extractv2di_1_sse2): Likewise.
409 2010-06-21 DJ Delorie <dj@redhat.com>
411 * diagnostic.h (diagnostic_classification_change_t): New.
412 (diagnostic_context): Add history and push/pop list.
413 (diagnostic_push_diagnostics): Declare.
414 (diagnostic_pop_diagnostics): Declare.
415 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
416 from pragmas in a history chain instead of the global table.
417 (diagnostic_push_diagnostics): New.
418 (diagnostic_pop_diagnostics): New.
419 (diagnostic_report_diagnostic): Scan history chain to find state
420 of diagnostics as of the diagnostic location.
421 * opts.c (set_option): Pass UNKNOWN_LOCATION to
422 diagnostic_classify_diagnostic.
423 (enable_warning_as_error): Likewise.
424 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
425 use in the history chain.
426 * c-family/c-pragma.c (handle_pragma_diagnostic): Add push/pop,
427 allow these pragmas anywhere.
428 * doc/extend.texi: Document pragma GCC diagnostic changes.
430 2010-06-21 Jakub Jelinek <jakub@redhat.com>
432 * dwarf2out.c (add_linkage_name): New function. Don't add
433 anything to DW_TAG_member DIEs.
434 (add_name_and_src_coords_attributes): Use it.
435 (gen_variable_die): Call it for C++ static data members if
436 specification is DW_TAG_member.
438 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
439 C++ char16_t and char32_t.
441 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
442 * genattrtab.c: Include vecprim.h.
443 (cached_attrs, cached_attr_count, attrs_seen_once,
444 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
445 attrs_cached_after): New variables.
446 (find_attrs_to_cache): New function.
447 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
448 (write_test_expr): Add attrs_cached argument, return it too,
449 attempt to cache non-const attributes used more than once in
450 a single case handling.
451 (write_attr_get): Use find_attrs_to_cache, for caching candidates
452 emit cached_* variables. Adjust write_attr_set callers.
453 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
454 to find attributes that should be cached in this block. Adjust
455 write_test_expr callers.
456 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
458 (make_automaton_attrs): Adjust write_test_expr caller.
460 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
461 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
462 (make_automaton_attrs): If find_tune_attr returns non-NULL,
463 write separate internal_dfa_insn_code_* and insn_default_latency_*
464 functions for each attribute's value and emit init_sched_attrs
465 function and function pointers.
466 * genattr.c (const_attrs, reservations): New variables.
467 (gen_attr): Add const attributes to const_attrs vector.
468 (check_tune_attr, find_tune_attr): New functions.
469 (main): Add reservations to reservations vector. If find_tune_attr
470 returns true, add prototype for init_sched_attrs and make
471 internal_dfa_insn_code and insn_default_latency function pointers,
472 otherwise define init_sched_attrs as dummy macro.
473 * cfgexpand.c: Include insn-attr.h.
474 (gimple_expand_cfg): Call init_sched_attrs.
476 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
479 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
480 va_arg from a set of register save slots into a temporary,
481 if the container is bigger than type size, do the copying
482 using smaller mode or using memcpy.
485 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
487 (sel_print_to_dot): Remove macro.
488 (sel_print): Likewise. New prototype.
489 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
490 (sel_print): New function.
492 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
494 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
495 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
497 2010-06-21 Nick Clifton <nickc@redhat.com>
499 * config/rx/rx.h (PTRDIFF_TYPE): Define.
500 (SMALL_REGISTER_CLASS): Define (to zero).
501 (PRINT_OPERAND): Delete.
502 (PRINT_OPERAND_ADDRESS): Delete.
503 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
504 (rx_print_operand_address): Delete prototype.
505 * config/rx/rx.c (rx_print_operand): Make static.
506 Allow %H and %L to handle CONST_DOUBLEs.
507 (rx_print_operand_address): Make static.
508 (rx_gen_move_template): Rename local variable 'template' to
510 (rx_function_arg): Do not pass unknown sized objects in registers.
511 (TARGET_PRINT_OPERAND): Define.
512 (TARGET_PRINT_OPERAND_ADDRESS): Define.
514 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
516 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
518 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
520 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
521 stack-alignment for simple leaf-functions.
523 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
525 * doc/install.texi: Document bootstrap-lto.
527 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
530 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
531 (input_function): Drop them here, if VTA is disabled.
533 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
536 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
538 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
539 ix86_swapped_fp_comparsion_operator instead of
540 ix86_fp_comparison_operator.
542 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
543 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
544 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
545 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
546 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
547 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
549 2010-06-20 Joseph Myers <joseph@codesourcery.com>
552 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
553 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
554 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
555 (decode_cmdline_option): Update for this return value. Set
556 orig_option_with_args_text field. Set arg field for unknown
557 options. Make static.
558 (decode_cmdline_options_to_array): New.
559 (prune_options): Update handling of find_opt return value.
560 * opts.c (read_cmdline_option): Take decoded option. Return void.
561 (read_cmdline_options): Take decoded options.
562 (decode_options): Add parameters for decoded options. Use
563 decode_cmdline_options_to_array. Use decoded options for -O
564 scan. Use integral_argument for -O parameters. Update call to
565 read_cmdline_options.
566 (enable_warning_as_error): Update handling of find_opt return value.
567 * opts.h: Update comment on unknown options.
568 (struct cl_decoded_option): Update comments on opt_index and arg.
569 Add orig_option_with_args_text.
570 (decode_cmdline_option): Remove.
571 (decode_cmdline_options_to_array): Declare.
572 (decode_options): Update prototype.
573 * toplev.c (save_argv): Remove.
574 (save_decoded_options, save_decoded_options_count): New.
575 (read_integral_parameter): Remove.
576 (print_switch_values): Use decoded options.
577 (toplev_main): Don't set save_argv. Update call to decode_options.
578 * toplev.h (read_integral_parameter): Remove.
579 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
581 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
584 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
586 * constraints.md (Pw, Px): New constraints.
587 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
589 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
591 * config/i386/sse.md (fma4modesuffixf4): Removed.
592 (ssemodesuffixf2s): Likewise.
593 (ssemodesuffixf4): Likewise.
594 (ssemodesuffixf2c): Likewise.
595 (ssescalarmodesuffix2s): Likewise.
596 (avxmodesuffixf2c): Likewise.
597 (ssemodesuffix): New.
598 (ssescalarmodesuffix): Likewise.
599 Update patterns with ssemodesuffix and ssescalarmodesuffix.
601 2010-06-19 Philip Herron <herron.philip@googlemail.com>
603 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
605 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
607 * stor-layout.c (debug_rli): Remove unused local variables.
609 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
611 PR rtl-optimization/40900
612 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
613 original expression for later reuse.
614 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
615 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
617 2010-06-18 Anatoly Sokolov <aesok@post.ru>
619 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
620 double_int_fits_in_uhwi_p): Implement as static inline.
621 (double_int_xor): New inline function.
622 (double_int_lrotate, double_int_rrotate, double_int_max,
623 double_int_umax, double_int_smax, double_int_min, double_int_umin,
624 double_int_smin): Declare.
625 (lrotate_double, rrotate_double): Remove declaration.
626 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
627 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
628 (double_int_lrotate, double_int_rrotate, double_int_max,
629 double_int_umax, double_int_smax, double_int_min, double_int_umin,
630 double_int_smin): New function.
631 * fold-const.c (int_const_binop): Clean up, use double_int_*
633 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
634 double_int_* and immed_double_int_const functions.
636 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
638 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
639 * function.c (types_used_by_cur_var_decl): Likewise.
640 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
642 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
644 * tree.h (record_layout_info): Change type of pending_statics field
646 * stor-layout.c (start_record_layout): Store NULL into
648 (debug_rli): Call debug_vec_tree instead of debug_tree.
649 (place_field): Likewise.
650 (finish_record_layout): Likewise.
652 2010-06-18 Alan Modra <amodra@gmail.com>
654 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
656 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
659 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
660 for SET source operand from SET destination operand.
662 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
664 PR rtl-optimization/39871
665 * reload1.c (init_eliminable_invariants): For flag_pic, disable
666 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
667 (function_invariant_p): Rule out a plus of frame or arg pointer with
669 * ira.c (find_reg_equiv_invariant_const): Likewise.
671 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
673 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
674 print_operand_address and puts to output the operand for CONST.
676 2010-06-17 Jakub Jelinek <jakub@redhat.com>
679 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
682 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
684 * v850-protos.h (print_operand): Delete.
685 (print_operand_address): Delete.
686 * v850.h (PRINT_OPERAND): Delete.
687 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
688 (PRINT_OPERAND_ADDRESS): Delete.
689 * v850.c (print_operand_address): Rename to...
690 (v850_print_operand_address): ...this. Make static. Call
692 (print_operand): Rename to...
693 (v850_print_operand): ...this. Make static. Call
694 v850_print_operand_address.
695 (v850_print_operand_punct_valid_p): New function.
696 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
697 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
699 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
701 * config/sh/sh-protos.h (print_operand): Delete.
702 (print_operand_address): Delete.
703 * config/sh/sh.h (PRINT_OPERAND): Delete.
704 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
705 (PRINT_OPERAND_ADDRESS): Delete.
706 * config/sh/sh.c (sh_print_operand_address): Make static.
707 (sh_print_operand): Make static. Call sh_print_operand_address
708 and sh_print_operand.
709 (sh_print_operand_punct_valid_p): New function.
710 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
711 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
713 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
715 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
716 (mcore_print_operand_address): Delete.
717 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
718 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
719 (PRINT_OPERAND_ADDRESS): Delete.
720 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
721 (mcore_print_operand): Make static.
722 (mcore_print_operand_punct_valid_p): New function.
723 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
724 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
726 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
728 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
729 (print_operand_address): Delete.
730 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
731 (PRINT_OPERAND_ADDRESS): Delete.
732 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
734 (m68hc11_print_operand): Make static.
735 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
737 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
739 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
740 (m32r_print_operand_address): Delete.
741 * config/m32r/m32r.h (m32r_punct_chars): Delete.
742 (PRINT_OPERAND): Delete.
743 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
744 (PRINT_OPERAND_ADDRESS): Delete.
745 * config/m32r/m32r.c (m32r_punct_chars): Make static.
746 (m32r_print_operand_address): Make static.
747 (m32r_print_operand): Make static.
748 (m32r_print_operand_punct_valid_p): New function.
749 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
750 (TARGET_PRINT_OPERAND_ADDRESS): Define.
752 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
754 * config/iq2000/iq2000-protos.h (print_operand): Delete.
755 (print_operand_address): Delete.
756 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
757 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
758 (PRINT_OPERAND_ADDRESS): Delete.
759 (iq2000_print_operand_punct): Delete.
760 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
761 (iq2000_print_operand_address): Make static.
762 (iq2000_print_operand): Make static.
763 (iq2000_print_operand_punct_valid_p): New function.
764 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
765 (TARGET_PRINT_OPERAND_ADDRESS): Define.
767 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
769 * config/frv/frv-protos.h (frv_print_operand): Delete.
770 (frv_print_operand_address): Delete.
771 * config/frv/frv.h (PRINT_OPERAND): Delete.
772 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
773 (PRINT_OPERAND_ADDRESS): Delete.
774 * config/frv/frv.c (frv_print_operand_address): Make static.
775 (frv_print_operand): Make static.
776 (frv_print_operand_punct_valid_p): New function.
777 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
778 (TARGET_PRINT_OPERAND_ADDRESS): Define.
780 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
782 * tree.h (vec_member): Declare.
783 * tree.c (vec_member): Define.
785 2010-06-17 Richard Guenther <rguenther@suse.de>
787 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
788 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
790 2010-06-17 Richard Guenther <rguenther@suse.de>
792 * tree-inline.c (declare_return_variable): Remove bogus code.
794 2010-06-17 Richard Guenther <rguenther@suse.de>
796 * gimplify.c (gimplify_bind_expr): Always promote complex
797 and vector variables to registers if possible.
799 2010-06-17 Richard Guenther <rguenther@suse.de>
801 * expr.c (get_inner_reference): Use double_int for bit_offset
804 2010-06-16 DJ Delorie <dj@redhat.com>
806 * common.opt (-fstrict-volatile-bitfields): new.
807 * doc/invoke.texi: Document it.
808 * fold-const.c (optimize_bit_field_compare): For volatile
809 bitfields, use the field's type to determine the mode, not the
811 * expr.c (expand_assignment): Likewise.
812 (get_inner_reference): Likewise.
813 (expand_expr_real_1): Likewise.
814 * expmed.c (store_fixed_bit_field): Likewise.
815 (extract_bit_field_1): Likewise.
816 (extract_fixed_bit_field): Likewise.
818 2010-06-16 Richard Guenther <rguenther@suse.de>
820 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
822 2010-06-16 Douglas B Rupp <rupp@gnat.com>
824 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
825 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
826 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
828 * sdbout.c: Likewise.
829 * vmsdbgout.c: Likewise.
830 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
831 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
832 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
833 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
834 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
835 * dwarf2out.c (dw_fde_struct): New fields
836 dw_fde_vms_{end,begin}_prologue.
837 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
838 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
839 (dwarf2out_vms_end_prologue): New function.
840 (dwarf2out_vms_begin_epilogue): New function.
841 (dw_val_struct): New value dw_val_class_vms_delta.
842 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
843 begin_epilogue for VMS.
844 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
845 new static functions.
846 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
847 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
849 (print_die): New case dw_val_class_vms_delta.
850 (attr_checksum): Likewise.
851 (same_dw_val_p: Likewise.
852 (size_of_die): Likewise.
853 (value_format): Likewise.
854 (output_die): Likewise.
855 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
856 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
857 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
858 dwarf2out_cfi_begin_epilogue
859 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
861 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
863 * config/cris/cris-protos.h (cris_print_operand): Delete.
864 (cris_print_operand_address): Delete.
865 * config/cris/cris.h (PRINT_OPERAND): Delete.
866 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
867 (PRINT_OPERAND_ADDRESS): Delete.
868 * config/cris/cris.c (cris_print_operand_address): Make static.
869 (cris_print_operand): Make static.
870 (cris_print_operand_punct_valid_p): New function.
871 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
872 (TARGET_PRINT_OPERAND_ADDRESS): Define.
874 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
876 * config/arm/arm-protos.h (arm_print_operand): Delete.
877 (arm_print_operand_address): Delete.
878 * config/arm/arm.h (PRINT_OPERAND): Delete.
879 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
880 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
881 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
882 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
883 (arm_print_operand): Make static.
884 (arm_print_operand_punct_valid_p): New function.
885 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
886 (TARGET_PRINT_OPERAND_ADDRESS): Define.
888 2010-06-16 Nick Clifton <nickc@redhat.com>
890 * config/rx/constraints.md (NEGint4): New constraint.
891 * config/rx/rx.md (attr cc): Add set_zsc.
892 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
895 (call_internal): Clobber the cc0 register.
896 (call_value_internal): Likewise.
897 (cstoresi4): Likewise.
900 (addsi3): Add alternative to handle small negative constants.
902 (addsi3): Do not set the O bit in the cc0 register.
906 (andsi3): Reorder alternatives to prefer shorter forms.
909 (negsi2): Note that the cc0 flags are set.
910 (rotlsi3): Note that only the Z and S bits are set in cc0.
913 (subsf3): Use %Q for the MEM operand.
914 (fix_truncsfsi2): Likewise.
915 (floatsisf2): Likewise.
916 (bitset): Remove early clobber from destination.
917 (bitset_in_memory): Likewise.
918 (lrintsf2): Clobber the cc0 register.
919 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
920 (rx_print_operand): Handle %N.
922 2010-06-16 Jan Hubicka <jh@suse.cz>
924 * df-core.c (df_compact_blocks): Free problem_temps vector.
926 2010-06-16 Martin Jambor <mjambor@suse.cz>
928 PR tree-optimization/43905
929 * tree-sra.c: Include tree-inline.h.
930 (create_abstract_origin): Removed.
931 (modify_function): Version the call graph node instead of creating
932 abstract origins and dealing with same_body aliases.
933 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
934 function is versionable.
935 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
937 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
939 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
940 (CHOOSE_DYNAMIC_LINKER): Update.
942 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
944 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
945 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
946 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
949 2010-06-15 Anatoly Sokolov <aesok@post.ru>
951 * target.h (struct asm_out):Add declare_constant_name field.
952 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
953 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
954 * output.h (default_asm_declare_constant_name): Declare.
955 (assemble_label): Update prototype.
956 * varasm.c (assemble_constant_contents): Use
957 targetm.asm_out.declare_constant_name target hook.
958 (assemble_label): Add 'file' argument.
959 (default_asm_declare_constant_name): New function.
960 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
961 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
962 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
964 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
965 * config/darwin.c (darwin_asm_declare_constant_name): New function.
966 (machopic_output_indirection): Update assemble_label argument list.
967 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
968 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
970 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
973 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
974 size_one_node for pointer types. Do not call gmp_cst_to_tree.
976 2010-06-15 Richard Guenther <rguenther@suse.de>
978 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
980 2010-06-15 Paul Brook <paul@codesourcery.com>
982 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
985 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
987 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
988 don't get a vector type for output.
990 2010-06-15 Jakub Jelinek <jakub@redhat.com>
993 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
994 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
995 (LANG_HOOKS_DECLS): Add it.
996 * gimplify.c (omp_notice_variable): Call
997 lang_hooks.decls.omp_report_decl.
999 2010-06-15 Martin Jambor <mjambor@suse.cz>
1002 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
1003 on the newly dead SSA name.
1005 2010-06-15 Alan Modra <amodra@gmail.com>
1007 * doc/invoke.texi: Add mcmodel to powerpc options.
1008 * configure.ac: Add HAVE_LD_LARGE_TOC test.
1009 * configure: Regenerate.
1010 * config.in: Regenerate.
1011 * config/rs6000/linux64.opt (mcmodel): New.
1012 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
1013 (TARGET_CMODEL, SET_CMODEL): Define.
1014 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
1015 select CMODEL_MEDIUM default.
1016 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
1017 (TARGET_CMODEL): Define default.
1018 * config/rs6000/rs6000.c (cmodel): New variable.
1019 (rs6000_explicit_options): Add cmodel field.
1020 (rs6000_handle_option): Handle -mcmodel.
1021 (create_TOC_reference): Add largetoc_reg param. Generate high,
1022 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
1023 (rs6000_delegitimize_address): Recognise new toc reference rtl
1024 and minimal-toc rtl.
1025 (rs6000_legitimize_reload_address): Handle new toc references.
1026 (print_operand_address): Handle legitimate_constant_pool_address_p
1027 match before lo_sum.
1028 (rs6000_eliminate_indexed_memrefs): Tidy.
1029 (rs6000_emit_move): Tweak threshold for inlining constants.
1030 Keep rs6000_emit_allocate_stack large stack frame offsets
1031 loaded into r0 inline.
1032 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
1033 (tocrel_base, tocrel_offset): New variables.
1034 (toc_relative_expr_p): Set them here.
1035 (print_operand_address): Skip over any offset on constant pool address.
1036 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
1037 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
1038 (offsettable_ok_by_alignment): New function.
1039 (rs6000_emit_move): Address suitably aligned local symbol_refs
1040 relative to the toc pointer for -mcmodel=medium.
1041 (legitimate_constant_pool_address_p): Make param const_rtx. Add
1042 strict param. Allow lo_sum version of addressing. Verify reg
1043 used for -mminimal-toc and -mcmodel != small. Update all callers.
1044 * config/rs6000/constraints.md: Update for above change.
1045 * config/rs6000/predicates.md: Likewise.
1046 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
1048 (tls_gd): Split for -mcmodel=medium/large.
1049 (tls_gd_high, tls_gd_low): New.
1050 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
1051 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
1052 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
1053 (largetoc_high, largetoc_low): New.
1054 (cmptf_internal2): Add clobber.
1055 * config/rs6000/rs6000-protos.h: Update.
1057 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
1059 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
1060 true if no prefetch is going to be generated for a given group.
1061 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
1062 estimate the prefetch_count.
1063 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
1064 prefetch count by considering the unroll_factor and prefetch_mod
1065 for is_loop_prefetching_profitable.
1067 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
1069 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
1070 anything if the argument is not a MEM.
1072 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
1077 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
1079 (canonicalize_loop_ivs): Likewise.
1081 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
1084 * haifa-sched.c (setup_insn_reg_pressure_info,
1085 update_register_pressure): Reject debug insns.
1086 (ready_sort): Don't setup reg pressure for debug insns.
1087 (schedule_insn): Don't update reg pressure for debug insns.
1089 2010-06-14 Richard Guenther <rguenther@suse.de>
1091 * lto-streamer.c (cached_bp): Remove.
1092 (bitpack_delete): Likewise.
1093 (bitpack_create): Likewise.
1094 (bp_get_next_word): Likewise.
1095 (bp_pack_value, bp_unpack_value): Move ...
1096 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
1098 (struct bitpack_d): Likewise.
1099 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
1100 New inline functions.
1101 * lto-streamer-out.c (lto_output_bitpack): Remove.
1102 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
1103 (pack_value_fields): Adjust.
1104 (lto_write_tree): Likewise.
1105 (output_gimple_stmt): Likewise.
1106 (output_function): Likewise.
1107 * lto-streamer-in.c (input_gimple_stmt): Adjust.
1108 (input_function): Likewise.
1109 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
1110 (lto_input_bitpack): Remove.
1111 (lto_materialize_tree): Adjust.
1112 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
1113 * lto-cgraph.c (lto_output_edge): Adjust.
1114 (lto_output_node): Likewise.
1115 (lto_output_varpool_node): Likewise.
1116 (lto_output_ref): Likewise.
1117 (input_node): Likewise.
1118 (input_varpool_node): Likewise.
1119 (input_ref): Likewise.
1120 (input_edge): Likewise.
1121 (output_node_opt_summary): Likewise.
1122 (input_node_opt_summary): Likewise.
1123 * ipa-pure-const.c (pure_const_write_summary): Likewise.
1124 (pure_const_read_summary): Likewise.
1125 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
1126 (ipa_read_indirect_edge_info): Likewise.
1127 (ipa_write_node_info): Likewise.
1128 (ipa_read_node_info): Likewise.
1130 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
1133 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
1134 (vec_extract_lo_v16hi): Likewise.
1135 (vec_extract_lo_v32qi): Likewise.
1137 2010-06-14 Jakub Jelinek <jakub@redhat.com>
1140 * tree.h (build_call_expr): Don't define as vararg macro, instead
1142 * builtins.c (build_call_nofold): Remove.
1143 (expand_builtin_int_roundingfn, expand_builtin_pow,
1144 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
1145 expand_builtin_memset_args, expand_builtin_strcmp,
1146 expand_builtin_strncmp, expand_builtin_memory_chk): Use
1147 build_call_nofold_loc instead of build_call_nofold.
1148 (build_call_expr): New function.
1150 PR tree-optimization/44508
1151 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
1152 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
1153 don't eliminate trivially dead stmts.
1154 * tree-vrp.c (vrp_finalize): Pass false as last argument
1155 to substitute_and_fold.
1156 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
1157 to substitute_and_fold.
1158 * tree-ssa-ccp.c (ccp_finalize): Likewise.
1161 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
1162 * c-family/c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1163 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1164 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1165 ggc_strdup instead of xstrdup.
1167 2010-06-14 Ira Rosen <irar@il.ibm.com>
1169 PR tree-optimization/44507
1170 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
1171 to build initial vector for BIT_AND_EXPR.
1172 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
1174 2010-06-14 Jakub Jelinek <jakub@redhat.com>
1176 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
1177 adjust z10prop set_attr.
1179 2010-06-13 Jan Hubicka <jh@suse.cz>
1181 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
1182 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
1183 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
1184 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
1185 datastructure checks into checking asserts.
1186 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
1187 * tree-ssa-sccvn.c (VN_INFO): Likewise.
1188 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
1189 df_ref_create_structure): Likewise.
1190 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
1191 pool_free): Use gcc_checking_assert.
1192 * alias.c (get_alias_set): Likewise.
1193 * var-tracking.c (variable_htab_free, shared_hash_copy,
1194 canonicalize_values_mark, variable_merge_over_cur): Likewise.
1195 * lto-streamer.c (bp_unpack_value): Likewise.
1197 2010-06-13 Richard Guenther <rguenther@suse.de>
1199 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
1200 Do not stream but initialize TYPE_CANONICAL to NULL.
1201 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
1202 * gimple.c (gimple_types_compatible_p): Disregard
1203 TYPE_STRUCTURAL_EQUALITY_P.
1204 (gimple_register_type): Use TYPE_CANONICAL as cache.
1205 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
1206 before registering common types.
1207 * config/i386/i386.c (ix86_function_arg_boundary): Do not
1208 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
1209 * tree.h (TYPE_CANONICAL): Clarify documentation.
1211 2010-06-13 Anatoly Sokolov <aesok@post.ru>
1213 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
1214 LIBCALL_VALUE): Remove macros.
1215 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
1216 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1217 TARGET_FUNCTION_VALUE_REGNO_P): Define.
1218 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
1219 (ia64_function_value): Make static. Handle receiving the function
1220 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
1222 2010-06-12 Jan Hubicka <jh@suse.cz>
1224 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
1227 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
1229 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
1231 2010-06-12 Jan Hubicka <jh@suse.cz>
1233 * df-core.c (df_clear_bb_info): New function.
1234 (df_set_blocks): bb_info is always allocated.
1235 (df_get_bb_info): Use block_info_elt_size.
1236 (df_set_bb_info): Likewise.
1237 (df_compact_blocks): Update for new block_info.
1238 (grow_bb_info): New function.
1239 * df-problems.c (df_grow_bb_info): Move to df-core.c
1240 (df_rd_set_bb_info): Remove.
1241 (df_rd_free_bb_info): Do not free block pool.
1242 (df_rd_alloc): Do not create pool, use check for
1243 obstack presence instead of NULL pointer for new blocks.
1244 (df_rd_free): DO not free alloc pool; clear block_info.
1245 (problem_RD): Add size of block info structure.
1246 (df_lr_set_bb_info): Remove.
1247 (df_lr_free_bb_info): Do not free block pool.
1248 (df_lr_alloc): Do not create pool, use check for
1249 obstack presence instead of NULL pointer for new blocks.
1250 (df_lr_free): DO not free alloc pool; clear block_info.
1251 (problem_LR): Add size of block info structure.
1252 (df_live_set_bb_info): Remove.
1253 (df_live_free_bb_info): Do not free block pool.
1254 (df_live_alloc): Do not create pool, use check for
1255 obstack presence instead of NULL pointer for new blocks.
1256 (df_live_free): DO not free alloc pool; clear block_info.
1257 (problem_LIVE): Add size of block info structure.
1258 (problem_CHAIN): Add size of block info structure.
1259 (df_byte_lr_set_bb_info): Remove.
1260 (df_byte_lr_free_bb_info): Do not free block pool.
1261 (df_byte_lr_alloc): Do not create pool, use check for
1262 obstack presence instead of NULL pointer for new blocks.
1263 (df_byte_lr_free): DO not free alloc pool; clear block_info.
1264 (problem_BYTE_LR): Add size of block info structure.
1265 (problem_NOTE): Add size of block info structure.
1266 (df_byte_MD_set_bb_info): Remove.
1267 (df_byte_MD_free_bb_info): Do not free block pool.
1268 (df_byte_MD_alloc): Do not create pool, use check for
1269 obstack presence instead of NULL pointer for new blocks.
1270 (df_byte_MD_free): DO not free alloc pool; clear block_info.
1271 (problem_BD): Add size of block info structure.
1272 * df-scan.c (df_scan_free_internal): Free block pool.
1273 (df_scan_set_bb_info): Remove.
1274 (df_scan_free_bb_info): Check for artificial_defs instead
1275 of bb_info being non-NULL.
1276 (df_scan_alloc): DO not create df_scan_block pool.
1277 (problem_SCAN): Set size of block info.
1278 (df_bb_refs_record): Do not allocate bb_info.
1279 * df.h (df_problem): Add block_info_elt_size.
1280 (struct dataflow): Change block_info to void *.
1281 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
1282 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
1285 2010-06-12 Jan Hubicka <jh@suse.cz>
1287 PR tree-optimize/44485
1288 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
1289 containing use of return value of noreturn function.
1291 2010-06-12 Anatoly Sokolov <aesok@post.ru>
1293 * targhooks.c (default_function_value): Don't use
1294 FUNCTION_OUTGOING_VALUE.
1295 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
1296 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
1298 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
1300 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
1301 Add crtfastmath.o to extra_parts.
1302 * config/mips/crtfastmath.c: New.
1303 * config/mips/linux.h (ENDFILE_SPEC): New.
1305 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
1307 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
1308 old_type in parameter.
1309 (gcc_type_for_value): Update call to gcc_type_for_interval.
1310 (compute_type_for_level_1): Renamed compute_type_for_level.
1311 Update call to gcc_type_for_interval.
1313 2010-06-11 Joseph Myers <joseph@codesourcery.com>
1315 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
1316 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
1318 2010-06-11 Joseph Myers <joseph@codesourcery.com>
1320 * opts-common.c: Include options.h.
1321 (integral_argument): Move from opts.c.
1322 (decode_cmdline_option): New. Based on read_cmdline_option.
1323 * opts.c (integral_argument): Move to opts-common.c.
1324 (read_cmdline_option): Move most contents to
1325 decode_cmdline_option. Use %qs in diagnostics.
1326 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
1327 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
1328 decode_cmdline_option): New.
1330 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
1333 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
1334 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
1335 (partiysi2_cmp): Ditto.
1336 (*partiyhi2_cmp): Ditto.
1337 (*parityqi2_cmp): Remove.
1339 2010-06-11 Jan Hubicka <jh@suse.cz>
1341 * bitmap.h (bmp_iter_next_bit): New.
1342 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
1344 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
1345 Eric Botcazou <ebotcazou@adacore.com>
1347 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
1350 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
1352 * config/i386/i386.md (unspec): New define_c_enum.
1355 2010-06-10 Jakub Jelinek <jakub@redhat.com>
1357 * c-family/c-cppbuiltin.c: Include cpp-id-data.h.
1358 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1359 (lazy_hex_fp_value): New function.
1360 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1361 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
1363 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
1366 * tree-if-conv.c (bb_predicate_s): New struct.
1367 (bb_predicate_p): New.
1368 (bb_has_predicate): New.
1369 (bb_predicate): New.
1370 (set_bb_predicate): New.
1371 (bb_predicate_gimplified_stmts): New.
1372 (set_bb_predicate_gimplified_stmts): New.
1373 (add_bb_predicate_gimplified_stmts): New.
1374 (init_bb_predicate): New.
1375 (free_bb_predicate): New.
1376 (is_predicated): Use bb_predicate.
1377 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
1378 (predicate_bbs): Same. Gimplify the condition of the basic blocks
1379 before processing their successors.
1380 (clean_predicate_lists): Removed.
1381 (find_phi_replacement_condition): Use bb_predicate.
1382 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
1384 (insert_gimplified_predicates): New.
1385 (combine_blocks): Call insert_gimplified_predicates.
1386 (tree_if_conversion): Call free_bb_predicate instead of
1387 clean_predicate_lists.
1389 2010-10-11 Paul Brook <paul@codesourcery.com>
1391 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
1392 * config/arm/arm.c (all_architectures): Change v7e-m default to
1394 * config/arm/arm-cores.def: Add cortex-m4.
1395 * config/arm/arm-tune.md: Regenerate.
1397 2010-06-11 Jan Hubicka <jh@suse.cz>
1399 * ipa-pure-const.c (special_builtlin_state): New function.
1400 (check_call): Use it instead of special casign BUILT_IN_RETURN.
1401 (propagate_pure_const): Use it.
1403 2010-06-11 Jan Hubicka <jh@suse.cz>
1405 * df-problems.c (df_live_scratch): Convert to bitmap_head.
1406 (df_live_alloc): Initialize df_live_scratch when initializing
1408 (df_live_transfer_function): Update uses of df_live_scratch.
1409 (df_live_free): Free problem_data; clear df_live_scratch before
1410 releasing the obstack.
1411 (df_md_free): Free problem data.
1413 2010-06-11 Jan Hubicka <jh@suse.cz>
1415 * doc/invoke.texi (Wsuggest-attribute): Document.
1416 (Wmissing-noreturn): Remove.
1417 * ipa-pure-const.c (warn_function_noreturn): New function.
1418 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
1419 warn_missing_noreturn.
1420 * common.opt (Wsuggest-attribute=noreturn): New.
1421 * tree-flow.h (warn_function_noreturn): Declare.
1422 * tree-cfg.c (execute_warn_function_noreturn): Use
1423 warn_function_noreturn.
1424 (gate_warn_function_noreturn): New.
1425 (pass_warn_function_noreturn): Update.
1427 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1429 * c-typeck.c (handle_warn_cast_qual): Add loc
1430 parameter. Improve warning message.
1431 (build_c_cast): Pass location to handle_warn_cast_qual.
1433 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
1435 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
1436 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
1438 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
1440 2010-06-10 Dodji Seketeli <dodji@redhat.com>
1442 Fix bootstap on mips
1443 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
1446 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
1448 * system.h (helper_const_non_const_cast): New inline for
1450 (CONST_CAST2): For gcc version <= 4.0 use
1451 new helper to do const/non-const casting.
1453 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1455 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
1456 * Makefile.in (OBJS-common): Include insn-enums.o.
1457 (insn-enums.o): New rule.
1458 (simple_generated_c): Add insn-enums.c.
1459 (build/genenums.o): New rule.
1460 (genprogmd): Add "enums".
1461 * genconstants.c (print_enum_type): Declare a C string array
1463 * genenums.c: New file.
1464 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
1465 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
1466 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
1468 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1470 * doc/md.texi (define_enum_attr): Document.
1471 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
1472 * read-md.h (lookup_enum_type): Declare.
1473 * read-md.c (lookup_enum_type): New function.
1474 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
1475 * genattrtab.c (attr_desc): Add an enum_name field.
1476 (evaluate_eq_attr): Take the associated attribute as argument.
1477 Get the enum prefix from the enum_name field, if defined.
1478 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
1479 (simplify_test_exp): Pass attr to evaluate_eq_attr.
1480 (add_attr_value): New function, split out from...
1481 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
1482 (write_test_expr): Pass attr to evaluate_eq_attr.
1483 (write_attr_get): Use the enum_name as the enum tag, if defined.
1484 (write_attr_valueq): Use the enum_name as a prefix, if defined.
1485 (find_attr): Initialize enum_name.
1486 (main): Handle DEFINE_ENUM_ATTR.
1487 * gensupport.c (process_rtx): Likewise.
1488 * config/mips/mips.h (mips_tune_attr): Delete.
1489 * config/mips/mips.md (cpu): Use define_attr_enum.
1491 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1493 * doc/md.texi (define_c_enum, define_enum): Document.
1494 * read-md.h (md_constant): Add a parent_enum field.
1495 (enum_value, enum_type): New structures.
1496 (upcase_string, traverse_enum_types): Declare.
1497 * read-md.c (enum_types): New variable.
1498 (upcase_string, add_constant): New functions.
1499 (handle_constants): Don't create the hash table here.
1501 (traverse_md_constants): Don't check for a null md_constants.
1502 (decimal_string, handle_enum, traverse_enum_types): New functions.
1503 (read_md_files): Initialize md_constants and md_enums.
1504 * genconstants.c (print_md_constant): Ignore info argument.
1505 Only print constants that belong to no enum.
1506 (print_enum_type): New function.
1507 (main): Don't pass stdout to print_md_constant. Call print_enum_type
1508 for each defined enum type.
1509 * config/mips/mips.md (processor): New define_enum.
1510 (unspec): New define_c_enum.
1511 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
1512 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
1513 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
1514 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
1515 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
1516 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
1517 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
1518 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
1519 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
1520 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
1521 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
1522 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
1523 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
1524 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
1525 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
1526 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
1527 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
1528 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
1529 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
1530 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
1531 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
1532 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
1533 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
1534 (UNSPEC_RDDSP): Move to mips-dsp.md.
1535 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
1536 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
1537 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
1538 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
1539 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
1540 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
1541 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
1542 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
1543 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
1544 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
1545 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
1546 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
1547 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
1548 Moved to mips-dspr2.md.
1549 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
1550 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
1551 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
1552 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
1553 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
1554 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
1555 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
1556 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
1557 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
1558 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
1559 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
1560 UNSPEC_LOONGSON_PSADBH)
1561 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
1562 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
1563 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
1564 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
1565 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
1566 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
1567 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
1568 (cpu): Update comment.
1569 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
1570 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
1571 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
1572 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
1573 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
1574 UNSPEC_LOONGSON_PCMPEQ)
1575 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
1576 UNSPEC_LOONGSON_PINSR_0)
1577 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
1578 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
1579 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
1580 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
1581 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
1582 UNSPEC_LOONGSON_PSADBH)
1583 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
1584 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
1585 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
1586 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
1587 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
1588 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
1589 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
1590 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
1591 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
1592 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
1593 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
1594 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
1595 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
1596 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
1597 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
1598 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
1599 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
1600 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
1601 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
1602 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
1603 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
1604 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
1605 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
1606 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
1607 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
1608 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
1609 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
1610 (UNSPEC_RDDSP): Moved from mips.md.
1611 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
1612 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
1613 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
1614 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
1615 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
1616 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
1617 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
1618 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
1619 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
1620 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
1621 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
1622 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
1623 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
1624 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
1625 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
1626 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
1627 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
1628 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
1629 (UNSPEC_SCC): Moved from mips.md.
1630 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
1631 "processor_type" to "processor".
1632 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
1633 * config/mips/mips.h (processor_type): Delete.
1634 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
1635 "processor_type" to "processor".
1637 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1639 * configure.ac (tm_include_list): Add insn-constants.h.
1640 * configure: Regenerate.
1641 * Makefile.in (GTM_H): Move insn-constants.h here from...
1643 * mkconfig.sh: Remove special handling for insn-constants.h.
1645 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1647 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
1648 (BUILD_MD): ...this new variable.
1649 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
1650 that include the old contents of simple_generated_h and
1652 (simple_generated_h, simple_generated_c): Include them. Add
1654 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
1655 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
1656 Remove these dependencies from the main rule and include
1657 insn-conditions.md in the command line only if it appears
1658 in the dependency list.
1659 (insn-constants.h, s-constants): Delete.
1660 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
1662 (build/genmddeps.o): Likewise.
1663 (genprogrtl): New variable that contains everything from genprogmd
1664 except mddeps and constants.
1665 (genprogmd): Redefine in terms of genprogrtl. Make these programs
1666 depend on $(BUILD_MD)
1667 (genprog): New variable. Make these programs depend on
1669 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
1670 (main): Use read_md_files instead of init_rtx_reader_args.
1671 * genconstants.c: As for genmddeps.c.
1672 * read-md.h (read_skip_construct): Declare.
1673 * read-md.c (read_skip_construct): New function.
1674 (handle_file): Allow a null handle_directive, skipping the
1676 (parse_include): Update the comment accordingly.
1678 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1680 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
1681 * genmddeps.c: Include read-md.h.
1682 (main): Call init_rtx_reader_args instead of init_md_reader_args.
1683 * genattr.c (main): Likewise.
1684 * genattrtab.c (main): Likewise.
1685 * genautomata.c (main): Likewise.
1686 * gencodes.c (main): Likewise.
1687 * genconditions.c (main): Likewise.
1688 * genconfig.c (main): Likewise.
1689 * genconstants.c (main): Likewise.
1690 * genemit.c (main): Likewise.
1691 * genextract.c (main): Likewise.
1692 * genflags.c (main): Likewise.
1693 * genopinit.c (main): Likewise.
1694 * genoutput.c (main): Likewise.
1695 * genpeep.c (main): Likewise.
1696 * genrecog.c (main): Likewise.
1697 * genpreds.c (main): Likewise.
1698 * gensupport.h (in_fname): Move to read-md.h.
1699 (init_md_reader_args_cb): Rename to...
1700 (init_rtx_reader_args_cb): ...this and return a bool.
1701 (init_md_reader_args): Rename to...
1702 (init_rtx_reader_args): ...this and return a bool.
1703 (include_callback): Move to read-md.h.
1704 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
1705 (file_name_list, first_dir_md_include): Move to read-md.c
1706 (first_bracket_include): Delete unused variable.
1707 (last_dir_md_include): Move to read-md.c.
1708 (process_include): Delete, moving code to read-md.c:handle_include.
1709 (process_rtx): Don't handle INCLUDE.
1710 (save_string): Delete.
1711 (rtx_handle_directive): New function.
1712 (init_md_reader_args_cb): Rename to...
1713 (init_rtx_reader_args_cb): ...this and return a boolean success value.
1715 (init_md_reader_args): Rename to...
1716 (init_rtx_reader_args): ...this and return a boolean success value.
1717 * rtl.def (INCLUDE): Delete.
1718 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
1720 * read-rtl.c (read_conditions): Don't gobble ')' here.
1721 (read_mapping): Likewise.
1722 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
1723 Handle top-level non-rtx constructs here rather than in read_rtx_1.
1724 Store the whole queue in *X. Remove call to init_md_reader.
1725 (read_rtx_1): Rename to...
1726 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
1727 Don't handle top-level non-rtx constructs here. Don't handle (nil)
1729 (read_nested_rtx): New function. Handle (nil) here rather than
1731 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
1733 * read-md.h (directive_handler_t): New type.
1734 (in_fname, include_callback): Moved from read-md.h.
1735 (read_constants, init_md_reader): Delete.
1736 (read_md_files): Declare.
1737 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
1738 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
1740 (read_constants): Rename to...
1741 (handle_constants): ...this. Don't gobble ')' here.
1742 (handle_include, handle_file, handle_toplevel_file)
1743 (parse_include): New functions, mostly taken from gensupport.c.
1744 (init_md_reader): Subsume into...
1745 (read_md_files): ...this new function.
1747 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1749 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
1750 (unread_char): Decrement read_md_lineno after putting back '\n'.
1751 * read-md.c (fatal_with_file_and_line): Push back any characters
1752 that we decide not to add to the context.
1753 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
1754 fatal_expected_char in cases where '/' ends a line (for example).
1755 (read_name): Don't increment read_md_lineno here.
1756 (read_escape): Likewise.
1757 (read_quoted_string): Likewise.
1758 (read_braced_string): Likewise.
1760 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1762 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
1763 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
1764 * genconstants.c: Include read-md.h.
1765 * read-rtl.c (md_constants): Move to read-md.c.
1766 (md_name): Move to read-md.h.
1767 (initialize_iterators): Use leading_string_hash instead of def_hash
1768 and leading_string_eq_p instead of def_name_eq_p.
1769 (read_name): Move to read-md.c.
1770 (def_hash, def_name_eq_p): Delete.
1771 (read_constants, traverse_md_constants): Move to read-md.c.
1772 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
1773 * read-md.h: Include hashtab.h.
1774 (md_name): Moved from read-rtl.c.
1775 (md_constant): Moved from read-md.h.
1776 (leading_string_hash, leading_string_eq_p, read_name)
1777 (read_constants, traverse_md_constants): Declare.
1778 * read-md.c (md_constants): Moved from read-rtl.c.
1779 (leading_string_hash, leading_string_eq_p): New functions.
1780 (read_name, read_constants, traverse_md_constants): Moved from
1783 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1785 * read-rtl.c (md_name): New structure.
1786 (read_name): Take an md_name instead of a buffer pointer.
1787 Use the "string" field instead of strcpy when expanding constants.
1788 (read_constants): Remove the tmp_char argument. Update the calls
1789 to read_name, using two local name buffers instead of the tmp_char
1790 argument. Merge the constant-creation code.
1791 (read_conditions): Remove the tmp_char argument. Update the calls
1792 to read_name, using a local name buffer instead of the tmp_char
1794 (read_mapping): Replace tmp_char variable with a local name buffer.
1795 Update the calls to read_name.
1796 (read_rtx_1): Likewise. Update the calls to read_constants and
1799 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1801 * Makefile.in (build/read-md.o): Depend on errors.h.
1802 * read-md.h (error_with_line): Declare.
1803 * read-md.c: Include errors.h.
1804 (message_with_line_1): New function, extracted from...
1805 (message_with_line): ...here.
1806 (error_with_line): New function.
1807 * genattrtab.c: If a call to message_with_line is followed by
1808 "have_error = 1;", replace both statements with a call to
1810 * genoutput.c: Likewise.
1811 * genpreds.c: Likewise.
1812 * genrecog.c: If a call to message_with_line is followed by
1813 "error_count++;", replace both statements with a call to
1815 (errorcount): Delete.
1816 (main): Don't check it.
1817 * gensupport.c: If a call to message_with_line is followed by
1818 "errors = 1;", replace both statements with a call to error_with_line.
1820 (process_define_cond_exec): Check have_error instead of errors.
1821 (init_md_reader_args_cb): Likewise. Don't set errors.
1823 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1825 * read-md.h (read_md_file): Declare.
1826 (read_char, unread_char): New functions.
1827 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
1828 (read_quoted_string, read_string): Remove FILE * argument.
1829 * read-md.c (read_md_file): New variable.
1830 (read_md_filename, read_md_lineno): Update comments and remove
1831 unnecessary initialization.
1832 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
1833 (read_escape, read_quoted_string, read_braced_string, read_string):
1834 Remove FILE * argument. Update calls accordingly, using read_char
1835 and unread_char instead of getc and ungetc.
1836 * rtl.h (read_rtx): Remove FILE * argument.
1837 * read-rtl.c (iterator_group): Remove FILE * argument from
1839 (iterator_traverse_data): Remove "infile" field.
1840 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
1841 (add_mapping, read_name, read_constants, read_conditions)
1842 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
1843 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
1844 Remove file arguments from all calls, using read_char and unread_char
1845 instead of getc and ungetc.
1846 * gensupport.c (process_include): Preserve read_md_file around
1847 the include. Set read_md_file to the handle of the included file.
1848 Update call to read_rtx.
1849 (init_md_reader_args_cb): Set read_md_file to the handle of the file
1850 and remove local FILE *. Update calls to read_rtx.
1852 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1854 * read-md.h (read_rtx_lineno): Rename to...
1855 (read_md_lineno): ...this.
1856 (read_rtx_filename): Rename to...
1857 (read_md_filename): ...this.
1858 (copy_rtx_ptr_loc): Rename to...
1859 (copy_md_ptr_loc): ...this.
1860 (print_rtx_ptr_loc): Rename to...
1861 (print_md_ptr_loc): ...this.
1862 * read-md.c: Likewise. Update references after renaming.
1863 (string_obstack): Replace RTL with MD in comment.
1864 (set_rtx_ptr_loc): Rename to...
1865 (set_md_ptr_loc): ...this.
1866 (get_rtx_ptr_loc): Rename to...
1867 (get_md_ptr_loc): ...this.
1868 * genconditions.c: Update references after renaming.
1869 * genemit.c: Likewise.
1870 * genoutput.c: Likewise.
1871 * genpreds.c: Likewise.
1872 * gensupport.c: Likewise.
1873 * read-rtl.c: Likewise.
1875 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1877 * Makefile.in (READ_MD_H): New variable.
1878 (BUILD_RTL): Add build/read-md.o.
1879 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
1880 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
1881 (build/genattrtab.o, build/genconditions.o build/genemit.o)
1882 (build/genextract.o, build/genflags.o, build/genoutput.o)
1883 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
1884 (build/read-md.o): New rule.
1885 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
1886 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
1887 * coretypes.h: ...here.
1888 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
1889 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
1890 * genattr.c: Include read-md.h.
1891 * genattrtab.c: Likewise.
1892 * genconditions.c: Likewise.
1893 * genemit.c: Likewise.
1894 * genextract.c: Likewise.
1895 * genflags.c: Likewise.
1896 * genoutput.c: Likewise.
1897 * genpreds.c: Likewise.
1898 * genrecog.c: Likewise.
1899 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
1900 (join_c_conditions, print_c_condition, read_rtx_filename)
1901 (read_rtx_lineno): Move to read-md.h.
1902 * read-rtl.c: Include read-md.h.
1903 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
1904 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
1905 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
1906 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
1907 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
1908 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
1909 (read_braced_string, read_string): Move to read-md.c.
1910 (read_rtx): Move some initialization to init_md_reader and call
1911 init_md_reader here.
1912 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
1914 * gensupport.c: Include read-md.h.
1915 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
1916 * read-md.h, read-md.c: New files.
1918 2010-06-10 Anatoly Sokolov <aesok@post.ru>
1920 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
1921 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
1922 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
1923 * config/moxie/moxie.c (moxie_function_value): Make static.
1924 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
1925 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
1927 2010-06-10 Martin Jambor <mjambor@suse.cz>
1929 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
1930 * dbgcnt.def (tree_sra): New counter.
1931 * tree-sra.c: Include dbgcnt.h.
1932 (gate_intra_sra): Check tree_sra debug counter.
1934 2010-06-10 Martin Jambor <mjambor@suse.cz>
1936 PR tree-optimization/44258
1937 * tree-sra.c (build_access_subtree): Return false iff there is a
1939 (build_access_trees): Likewise.
1940 (analyze_all_variable_accesses): Disqualify candidates if
1941 build_access_trees returns true for them.
1943 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
1946 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
1947 tail-recurse into canonical node. Fast-forward over
1948 non-canonical VALUEs.
1950 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
1953 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
1954 (*addsi_1_zext) <TYPE_LEA>: Likewise.
1955 (add lea splitter): Likewise.
1956 (add_zext lea splitter): Likewise.
1958 2010-06-10 Joseph Myers <joseph@codesourcery.com>
1960 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
1962 2010-06-10 Jan Hubicka <jh@suse.cz>
1964 * df-problems.c (df_live_problem_data): Add live_bitmaps.
1965 (df_live_alloc): Initialize problem data and live_osbtacks.
1966 (df_live_finalize): Remove obstack, problem data; do not
1968 (df_live_top_dump, df_live_bottom_dump): Do not dump old
1969 data when not allocated.
1970 (df_live_verify_solution_start): Do not allocate problem data.
1971 (df_live_verify_solution_end): Check if out is allocated.
1972 (struct df_md_problem_data): New structure.
1973 (df_md_alloc): Allocate problem data.
1974 (df_md_free): Free problem data; do not clear bitmaps.
1976 2010-06-10 Jan Beulich <jbeulich@novell.com>
1979 * configure.ac: Replace $() with ${} when intending to expand
1980 variables rather than invoking commands.
1981 * configure: Re-generate.
1983 2010-06-10 Jan Hubicka <jh@suse.cz>
1985 PR rtl-optimization/44460
1986 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
1987 TYPE_NEEDS_CONSTRUCTING sanity check.
1989 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
1991 * doc/include/fdl.texi: Move to GFDL version 1.3.
1993 * doc/cpp.texi: Move to GFDL version 1.3.
1994 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
1995 * doc/gccint.texi: Move to GFDL version 1.3.
1996 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
1997 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
1998 * doc/invoke.texi: Move to GFDL version 1.3.
2000 2010-06-09 Jan Hubicka <jh@suse.cz>
2002 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
2004 (propagate) ... here; swap the order.
2006 2010-06-09 Jan Hubicka <jh@suse.cz>
2008 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
2009 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
2010 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
2011 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
2013 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
2015 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
2016 Do not the gather memory reference in the outer loop if the step
2019 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
2021 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
2022 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
2023 8 to 4. Minor change of the related comments.
2025 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
2027 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
2028 the scev analysis when the variable is not used outside the loop
2029 in a close phi node: call compute_overall_effect_of_inner_loop.
2031 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
2033 * graphite-sese-to-poly.c (single_pred_cond): Renamed
2034 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
2035 (build_sese_conditions_before): Renamed call to single_pred_cond.
2036 (build_sese_conditions_after): Same.
2038 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
2040 * graphite-poly.h: Fix comments and indentation.
2041 * graphite-sese-to-poly.c: Same.
2042 (build_sese_conditions_before): Compute stmt and gbb only when needed.
2043 * tree-chrec.c: Fix comments and indentation.
2044 (tree-ssa-loop-niter.c): Same.
2046 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
2048 PR rtl-optimization/42461
2049 * dce.c (deletable_insn_p): Return true for const or pure calls again.
2050 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
2052 2010-06-09 Jan Hubicka <jh@suse.cz>
2054 * bitmap.c (bitmap_and): Walk array forward.
2055 (bitmap_and_compl_into): Likewise.
2056 (bitmap_xor): Likewise.
2057 (bitmap_xor_into): Likewise.
2058 (bitmap_equal_p): Likewise.
2059 (bitmap_intersect_p): Likewise.
2060 (bitmap_intersect_compl_p): Likewise.
2061 (bitmap_ior_and_into): Likewise.
2062 (bitmap_elt_copy): Likewise.
2063 (bitmap_and_compl): Likewise.
2064 (bitmap_elt_ior): Likewise.
2066 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
2068 * opts-common.c (prune_options): Ensure replacement argv array
2069 is correctly terminated by a NULL entry.
2071 2010-06-09 Jan Hubicka <jh@suse.cz>
2073 * cgraph.h (varpool_first_static_initializer,
2074 varpool_next_static_initializer): Make checking only when
2076 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
2077 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
2078 gcc_assert to gcc_checking_assert.
2079 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
2080 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
2081 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
2082 op_iter_init_phiuse, op_iter_init_phidef,
2083 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
2084 gcc_checking_assert.
2085 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
2086 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
2087 partition_is_global, live_on_entry, live_on_exit,
2088 live_merge_and_clear): Likewise.
2089 * system.h (gcc_checking_assert): New macro.
2090 * gimple.h (set_bb_seq): Use gcc_checking_assert.
2092 2010-06-09 Jason Merrill <jason@redhat.com>
2094 * Makefile.in (TAGS): Collect tags info from c-family.
2096 2010-06-09 Jan Hubicka <jh@suse.cz>
2098 * gimple.h (gcc_gimple_checking_assert): New macro.
2099 (gimple_set_def_ops, gimple_set_use_ops,
2100 gimple_set_vuse, gimple_set_vdef,
2101 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
2102 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
2103 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
2104 gimple_asm_output_op, gimple_asm_output_op_ptr,
2105 gimple_asm_set_output_op, gimple_asm_clobber_op,
2106 gimple_asm_set_clobber_op, gimple_asm_label_op,
2107 gimple_asm_set_label_op, gimple_try_set_kind,
2108 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
2109 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
2110 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
2111 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
2112 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
2113 gimple_omp_for_set_initial, gimple_omp_for_final,
2114 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
2115 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
2116 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
2117 conditional with ENABLE_GIMPLE_CHECKING.
2118 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
2120 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
2122 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
2123 (get_computation_cost_at): Use it.
2124 (determine_use_iv_cost_condition): Likewise.
2125 (determine_iv_cost): Likewise.
2127 2010-06-09 Richard Guenther <rguenther@suse.de>
2129 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
2132 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
2134 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
2136 2010-06-09 Martin Jambor <mjambor@suse.cz>
2138 PR tree-optimization/44423
2139 * tree-sra.c (dump_access): Dump also grp_assignment_read.
2140 (analyze_access_subtree): Pass negative allow_replacements to children
2141 if the current type is scalar.
2143 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
2146 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
2147 * doc/plugins.texi (Plugin license check): Update information
2148 on type of plugin_is_GPL_compatible.
2149 * Makefile.in (PLUGINCC): Define as $(COMPILER).
2150 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
2152 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
2154 * config/arm/arm.c (thumb2_reorg): New function.
2155 (arm_reorg): Call it.
2156 * config/arm/thumb2.md (define_peephole2 for flag clobbering
2157 arithmetic operations): Delete.
2159 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
2162 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
2165 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
2168 * gcc-plugin.h: Encapsulate all declarations in extern "C".
2170 2010-06-08 Jan Hubicka <jh@suse.cz>
2172 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
2173 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
2175 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
2177 PR tree-optimization/39874
2179 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
2181 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
2182 same_bool_result_p): New.
2183 (and_var_with_comparison, and_var_with_comparison_1,
2184 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
2185 (or_var_with_comparison, or_var_with_comparison_1,
2186 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
2187 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
2188 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
2189 of combine_comparisons.
2190 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
2192 2010-06-08 Anatoly Sokolov <aesok@post.ru>
2194 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
2195 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
2196 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
2197 pdp11_function_value_regno_p): New functions.
2198 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2199 TARGET_FUNCTION_VALUE_REGNO_P): Define.
2201 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
2203 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
2204 Thumb-2 in the MINUS case.
2206 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2208 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
2210 * doc/gty.texi (GTY Options): Document typed GC allocation and
2211 variable_size GTY option.
2213 * ggc-internal.h: New.
2215 * ggc.h: Update copyright year.
2216 (digit_string): Move to stringpool.c.
2217 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
2218 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
2219 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
2220 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
2221 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
2222 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
2223 (ggc_force_collect, ggc_get_size, ggc_statistics)
2224 (ggc_print_common_statistics): Move to ggc-internal.h.
2225 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
2226 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
2227 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
2228 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
2229 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
2230 (ggc_alloc_zone_pass_stat): Remove.
2231 (ggc_internal_alloc_stat, ggc_internal_alloc)
2232 (ggc_internal_cleared_alloc_stat): New.
2233 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
2234 (ggc_internal_vec_alloc_stat)
2235 (ggc_internal_cleared_vec_alloc_stat)
2236 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
2237 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
2238 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
2239 (ggc_cleared_alloc_ptr_array_two_args): New.
2240 (htab_create_ggc, splay_tree_new_ggc): Redefine.
2241 (ggc_splay_alloc): Change the type of the first argument to
2243 (ggc_alloc_string): Make macro.
2244 (ggc_alloc_string_stat): New.
2245 (ggc_strdup): Redefine.
2246 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
2247 (ggc_alloc_rtvec_sized): New.
2248 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
2249 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
2250 (ggc_internal_cleared_alloc_zone_stat)
2251 (ggc_internal_zone_alloc_stat)
2252 (ggc_internal_zone_cleared_alloc_stat)
2253 (ggc_internal_zone_vec_alloc_stat)
2254 (ggc_alloc_zone_rtx_def_stat)
2255 (ggc_alloc_zone_tree_node_stat)
2256 (ggc_alloc_zone_cleared_tree_node_stat)
2257 (ggc_alloc_cleared_gimple_statement_d_stat): New.
2259 * ggc-common.c: Include ggc-internal.h.
2260 (ggc_internal_cleared_alloc_stat): Rename from
2261 ggc_alloc_cleared_stat.
2262 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
2263 (ggc_calloc): Remove.
2264 (ggc_cleared_alloc_htab_ignore_args): New.
2265 (ggc_cleared_alloc_ptr_array_two_args): New.
2266 (ggc_splay_alloc): Add obj_type parameter.
2267 (init_ggc_heuristics): Formatting fixes.
2269 * ggc-none.c: Update copyright year.
2270 (ggc_alloc_stat): Rename to ggc_alloc_stat.
2271 (ggc_alloc_cleared_stat): Rename to
2272 ggc_internal_cleared_alloc_stat.
2273 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
2275 * ggc-page.c: Update copyright year. Include ggc-internal.h.
2276 Remove references to ggc_alloc in comments.
2277 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
2278 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
2279 (new_ggc_zone, destroy_ggc_zone): Remove.
2280 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
2282 * ggc-zone.c: Include ggc-internal.h. Remove references to
2283 ggc_alloc in comments.
2284 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
2285 (ggc_internal_alloc_zone_pass_stat): New.
2286 (ggc_internal_cleared_alloc_zone_stat): New.
2287 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
2288 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
2289 (new_ggc_zone, destroy_ggc_zone): Remove.
2291 * stringpool.c: Update copyright year. Include ggc-internal.h
2292 (digit_vector): Make static.
2293 (digit_string): Moved from ggc.h.
2294 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
2295 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
2297 * Makefile.in (GGC_INTERNAL_H): New.
2298 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
2299 $(GGC_INTERNAL_H) to dependencies.
2301 * gentype.c: Update copyright year.
2302 (walk_type): Accept variable_size GTY option.
2303 (USED_BY_TYPED_GC_P): New macro.
2304 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
2305 whitespace at the end of strings.
2306 (get_type_specifier, variable_size_p): New functions.
2307 (alloc_quantity, alloc_zone): New enums.
2308 (write_typed_alloc_def): New function.
2309 (write_typed_struct_alloc_def): Likewise.
2310 (write_typed_typed_typedef_alloc_def): Likewise.
2311 (write_typed_alloc_defns): Likewise.
2312 (output_typename, write_splay_tree_allocator_def): Likewise.
2313 (write_splay_tree_allocators): Likewise.
2314 (main): Call write_typed_alloc_defns and
2315 write_splay_tree_allocators.
2317 * lto-streamer.h (lto_file_decl_data_ptr): New.
2319 * passes.c (order): Define using cgraph_node_ptr.
2321 * strinpool.c (struct string_pool_data): Declare nested_ptr using
2324 * gimple.h (union gimple_statement_d): Likewise.
2326 * rtl.h (struct rtx_def): Likewise.
2327 (struct rtvec_def): Likewise.
2329 * tree.h (union tree_node): Likewise.
2331 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
2333 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
2335 * tree-scalar-evolution.c (scev_initialize): Likewise.
2337 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
2339 * dwarf2asm.c (dw2_force_const_mem): Likewise.
2341 * omp-low.c (lower_omp_critical): Likewise.
2343 * bitmap.h (struct bitmap_head_def): Update comment to not
2344 reference ggc_alloc.
2346 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
2348 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
2350 * ipa-prop.c (duplicate_ggc_array): Rename to
2351 duplicate_ipa_jump_func_array. Use typed GC allocation.
2352 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
2354 * gimple.c (gimple_alloc_stat): Use
2355 ggc_alloc_cleared_gimple_statement_d_stat.
2357 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
2359 * tree.c (make_node_stat): Use
2360 ggc_alloc_zone_cleared_tree_node_stat.
2361 (make_tree_vec_stat): Likewise.
2362 (build_vl_exp_stat): Likewise.
2363 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
2364 (make_tree_binfo_stat): Likewise.
2365 (tree_cons_stat): Likewise.
2367 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
2368 (shallow_copy_rtx_stat): Likewise.
2369 (make_node_stat): Likewise.
2371 * lto-symtab.c: Fix comment.
2373 * tree-cfg.c (create_bb): Update comment to not reference
2375 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
2377 * varpool.c (varpool_node): Use typed GC allocation.
2378 (varpool_extra_name_alias): Likewise.
2380 * varasm.c (emutls_decl): Likewise.
2381 (get_unnamed_section): Likewise.
2382 (get_noswitch_section): Likewise.
2383 (get_section): Likewise.
2384 (get_block_for_section): Likewise.
2385 (build_constant_desc): Likewise.
2386 (create_constant_pool): Likewise.
2387 (force_const_mem): Likewise.
2389 * tree.c (build_vl_exp_stat): Likewise.
2390 (build_real): Likewise.
2391 (build_string): Likewise.
2392 (decl_debug_expr_insert): Likewise.
2393 (decl_value_expr_insert): Likewise.
2394 (type_hash_add): Likewise.
2395 (build_omp_clause): Likewise.
2397 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
2399 * tree-ssa.c (init_tree_ssa): Likewise.
2401 * tree-ssa-structalias.c (heapvar_insert): Likewise.
2403 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
2405 * tree-ssa-loop-niter.c (record_estimate): Likewise.
2407 * tree-ssa-alias.c (get_ptr_info): Likewise.
2409 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
2411 * tree-phinodes.c (allocate_phi_node): Likewise.
2413 * tree-iterator.c (tsi_link_before): Likewise.
2414 (tsi_link_after): Likewise.
2416 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
2418 * tree-dfa.c (create_var_ann): Likewise.
2420 * tree-cfg.c (create_bb): Likewise.
2422 * toplev.c (alloc_for_identifier_to_locale): Likewise.
2423 (general_init): Likewise.
2425 * stringpool.c (stringpool_ggc_alloc): Likewise.
2426 (gt_pch_save_stringpool): Likewise.
2428 * sese.c (if_region_set_false_region): Likewise.
2430 * passes.c (do_per_function_toporder): Likewise.
2432 * optabs.c (set_optab_libfunc): Likewise.
2433 (set_conv_libfunc): Likewise.
2435 * lto-symtab.c (lto_symtab_register_decl): Likewise.
2437 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
2438 (input_eh_region): Likewise.
2439 (input_eh_lp): Likewise.
2440 (make_new_block): Likewise.
2441 (unpack_ts_real_cst_value_fields): Likewise.
2443 * lto-section-in.c (lto_new_in_decl_state): Likewise.
2445 * lto-cgraph.c (input_node_opt_summary): Likewise.
2447 * loop-init.c (loop_optimizer_init): Likewise.
2449 * lambda.h (lambda_vector_new): Likewise.
2451 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
2453 * ira.c (update_equiv_regs): Likewise.
2455 * ipa.c (cgraph_node_set_new): Likewise.
2456 (cgraph_node_set_add): Likewise.
2457 (varpool_node_set_new): Likewise.
2458 (varpool_node_set_add): Likewise.
2460 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
2461 (duplicate_ipa_jump_func_array): Likewise.
2462 (ipa_read_node_info): Likewise.
2464 * ipa-cp.c (ipcp_create_replace_map): Likewise.
2466 * integrate.c (get_hard_reg_initial_val): Likewise.
2468 * gimple.c (gimple_alloc_stat): Likewise.
2469 (gimple_build_omp_for): Likewise.
2470 (gimple_seq_alloc): Likewise.
2471 (gimple_copy): Likewise.
2473 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
2474 (gsi_insert_after_without_update): Likewise.
2476 * function.c (add_frame_space): Likewise.
2477 (insert_temp_slot_address): Likewise.
2478 (assign_stack_temp_for_type): Likewise.
2479 (allocate_struct_function): Likewise.
2480 (types_used_by_var_decl_insert): Likewise.
2482 * except.c (init_eh_for_function): Likewise.
2483 (gen_eh_region): Likewise.
2484 (gen_eh_region_catch): Likewise.
2485 (gen_eh_landing_pad): Likewise.
2486 (add_call_site): Likewise.
2488 * emit-rtl.c (get_mem_attrs): Likewise.
2489 (get_reg_attrs): Likewise.
2490 (start_sequence): Likewise.
2491 (init_emit): Likewise.
2493 * dwarf2out.c (new_cfi): Likewise.
2494 (queue_reg_save): Likewise.
2495 (dwarf2out_frame_init): Likewise.
2496 (new_loc_descr): Likewise.
2497 (find_AT_string): Likewise.
2498 (new_die): Likewise.
2499 (add_var_loc_to_decl): Likewise.
2500 (clone_die): Likewise.
2501 (clone_as_declaration): Likewise.
2502 (break_out_comdat_types): Likewise.
2503 (new_loc_list): Likewise.
2504 (loc_descriptor): Likewise.
2505 (add_loc_descr_to_each): Likewise.
2506 (add_const_value_attribute): Likewise.
2507 (tree_add_const_value_attribute): Likewise.
2508 (add_comp_dir_attribute): Likewise.
2509 (add_name_and_src_coords_attributes): Likewise.
2510 (lookup_filename): Likewise.
2511 (store_vcall_insn): Likewise.
2512 (dwarf2out_init): Likewise.
2514 * dbxout.c (dbxout_init): Likewise.
2516 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
2518 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
2520 * config/score/score7.c (score7_output_external): Likewise.
2522 * config/score/score3.c (score3_output_external): Likewise.
2524 * config/s390/s390.c (s390_init_machine_status): Likewise.
2526 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
2527 (rs6000_init_machine_status): Likewise.
2528 (output_toc): Likewise.
2530 * config/pa/pa.c (pa_init_machine_status): Likewise.
2531 (get_deferred_plabel): Likewise.
2533 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
2535 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
2537 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
2539 * config/mep/mep.c (mep_init_machine_status): Likewise.
2540 (mep_note_pragma_flag): Likewise.
2542 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
2544 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
2546 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
2548 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
2549 (i386_pe_maybe_record_exported_symbol): Likewise.
2551 * config/i386/i386.c (get_dllimport_decl): Likewise.
2552 (ix86_init_machine_status): Likewise.
2553 (assign_386_stack_local): Likewise.
2555 * config/frv/frv.c (frv_init_machine_status): Likewise.
2557 * config/darwin.c (machopic_indirection_name): Likewise.
2559 * config/cris/cris.c (cris_init_machine_status): Likewise.
2561 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
2563 * config/avr/avr.c (avr_init_machine_status): Likewise.
2565 * config/arm/arm.c (arm_init_machine_status): Likewise.
2567 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
2568 (alpha_need_linkage): Likewise.
2569 (alpha_use_linkage): Likewise.
2571 * cgraph.c (cgraph_allocate_node): Likewise.
2572 (cgraph_create_edge_1): Likewise.
2573 (cgraph_create_indirect_edge): Likewise.
2574 (cgraph_add_asm_node): Likewise.
2576 * cfgrtl.c (init_rtl_bb_info): Likewise.
2578 * cfgloop.c (alloc_loop): Likewise.
2579 (rescan_loop_exit): Likewise.
2581 * cfg.c (init_flow): Likewise.
2582 (alloc_block): Likewise.
2583 (unchecked_make_edge): Likewise.
2585 * c-parser.c (c_parse_init): Likewise.
2586 (c_parse_file): Likewise.
2588 * c-decl.c (bind): Likewise.
2589 (record_inline_static): Likewise.
2590 (push_scope): Likewise.
2591 (make_label): Likewise.
2592 (lookup_label_for_goto): Likewise.
2593 (finish_struct): Likewise.
2594 (finish_enum): Likewise.
2595 (c_push_function_context): Likewise.
2597 * bitmap.c (bitmap_element_allocate): Likewise.
2598 (bitmap_gc_alloc_stat): Likewise.
2600 * alias.c (record_alias_subset): Likewise.
2601 (init_alias_analysis): Likewise.
2603 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
2605 * fold-const.c (fold_comparison): Remove redundant parenthesis.
2606 * tree-inline.c (expand_call_inline): Pass translated return value of
2607 cgraph_inline_failed_string to diagnostic function.
2609 2010-06-08 Andrew Pinski <pinskia@gmail.com>
2610 Shujing Zhao <pearly.zhao@oracle.com>
2613 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
2614 implicit bad conversions is initialization.
2615 (error_init): Use gmsgid instead of msgid for argument name and change
2617 (pedwarn_init): Use gmsgid instead of msgid for argument name and
2618 change the call for pedwarn.
2619 (warning_init): Use gmsgid instead of msgid for argument name and
2620 change the call for warning.
2622 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
2624 * config/mips/mips-protos.h (mips_print_operand): Delete.
2625 (mips_print_operand_address): Delete.
2626 * config/mips/mips.h (mips_print_operand_punct): Delete.
2627 (PRINT_OPERAND): Delete.
2628 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2629 (PRINT_OPERAND_ADDRESS): Delete.
2630 * config/mips/mips.c (mips_print_operand_punct): Make static.
2631 (mips_print_operand_address): Make static.
2632 (mips_print_operand): Make static. Call
2633 mips_print_operand_punct_valid_p.
2634 (mips_print_operand_punct_valid_p): New function.
2635 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2636 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
2638 2010-06-07 Jan Hubicka <jh@suse.cz>
2641 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
2644 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
2646 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
2649 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2651 * doc/sourcebuild.texi (Effective-Target Keywords, Other
2652 attributes): Document gas.
2654 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
2656 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
2657 <TYPE_LEA>: Split instruction.
2658 <default>: Remove alternative 2 handling.
2659 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
2660 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
2661 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
2663 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
2664 (ashift_zext lea splitter): Use DImode for multiplication.
2666 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
2667 to generate addition.
2669 2010-06-07 Joseph Myers <joseph@codesourcery.com>
2671 * common.opt (fira-verbose): Use Var.
2672 (fpcc-struct-return): Use Init instead of VarExists.
2673 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
2675 * flags.h (flag_signed_char, flag_short_enums,
2676 flag_pcc_struct_return, flag_ira_verbose,
2677 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
2678 * toplev.c (flag_detailed_statistics, flag_signed_char,
2679 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
2680 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
2681 * toplev.h (flag_crossjumping, flag_if_conversion,
2682 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
2683 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
2684 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
2685 flag_cprop_registers, time_report, flag_ira_loop_pressure,
2686 flag_ira_coalesce, flag_ira_move_spills,
2687 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
2689 2010-06-07 Jan Hubicka <jh@suse.cz>
2691 * df-core.c (df_analyze_problem): Do verification after allocation.
2693 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
2694 (df_lr_alloc): Initialize problem data; move bitmaps to
2696 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
2697 (df_lr_verify_solution_start): Do not initialize problem data;
2698 allocate bitmaps in lr_bitmaps.
2699 (df_lr_verify_solution_end): Do not free problem data.
2701 2010-06-07 Jan Hubicka <jh@suse.cz>
2703 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
2704 if caller is noreturn.
2705 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
2706 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
2707 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
2708 * ipa-pure-const.c (check_decl): Add IPA parameter.
2709 (state_from_flags): New function.
2710 (better_state, worse_state): New functions.
2711 (check_call): When in IPA mode, do not care about callees.
2712 (check_load, check_store): Update.
2713 (check_ipa_load, check_ipa_store): New.
2714 (check_stmt): When in IPA mode, use IPA checkers.
2715 (analyze_function): Use state_from_flags.
2716 (propagate): Check indirect edges and references.
2718 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
2720 PR rtl-optimization/44404
2721 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
2722 of count_occurrences to see if it's safe to modify mem_insn.
2724 2010-06-07 Richard Guenther <rguenther@suse.de>
2726 * gimplify.c (gimplify_cleanup_point_expr): For empty body
2727 and EH-only cleanup drop the cleanup instead of inserting it
2730 2010-06-07 Ira Rosen <irar@il.ibm.com>
2732 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
2734 * targhooks.c (default_builtin_vectorization_cost): New function.
2735 * targhooks.h (default_builtin_vectorization_cost): Declare.
2736 * target.h (enum vect_cost_for_stmt): Define.
2737 (builtin_vectorization_cost): Change argument and comment.
2738 * tree-vectorizer.h: Remove cost model macros.
2739 * tree-vect-loop.c: Include target.h.
2740 (vect_get_cost): New function.
2741 (vect_estimate_min_profitable_iters): Replace cost model macros with
2742 calls to vect_get_cost.
2743 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
2744 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
2745 default implementation.
2746 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
2747 calls to target hook builtin_vectorization_cost.
2748 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
2750 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
2751 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
2752 implementation to return costs.
2753 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
2754 * config/spu/spu.h: Remove vectorizer cost model macros.
2755 * config/i386/i386.h: Likewise.
2756 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
2757 a call to target hook builtin_vectorization_cost.
2759 2010-06-06 Sriraman Tallam <tmsriram@google.com>
2762 * config/i386/i386.c (override_options): Turn zee pass on for level 2
2763 and above and defer till target is known.
2764 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
2767 2010-05-25 Jan Hubicka <jh@suse.cz>
2769 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
2770 (df_compact_blocks): Likewise.
2771 * df.h (struct df): Turn hardware_regs_used,
2772 regular_block_artificial_uses, eh_block_artificial_uses,
2773 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
2775 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
2776 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
2777 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
2778 df_scan_blocks, df_insn_delete, df_insn_rescan,
2779 df_insn_rescan_debug_internal, df_insn_rescan_all,
2780 df_process_deferred_rescans, df_process_deferred_rescans,
2781 df_notes_rescan, df_get_call_refs, df_get_call_refs,
2782 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
2783 df_record_entry_block_defs, df_record_exit_block_uses,
2784 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
2785 df_scan_verify): Update.
2787 2010-05-25 Dodji Seketeli <dodji@redhat.com>
2790 * c-common.c (is_typedef_decl): Move this definition ...
2791 * tree.c (is_typedef_decl): ... here.
2792 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
2793 * c-common.h (is_typedef_decl): Move this declaration ...
2794 * tree.h (is_typedef_decl): ... here.
2795 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
2796 * dwarf2out.c (is_naming_typedef_decl): New function.
2797 (gen_tagged_type_die): Split out of ...
2798 (gen_type_die_with_usage): ... this function. When an anonymous
2799 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
2800 is emitted for the typedef.
2801 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
2802 anonymous tagged types.
2804 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
2807 * c-decl.c (grokdeclarator): Delete warning.
2809 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
2811 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
2812 newly built CALL_EXPR.
2813 * tree-profile.c (tree_profiling): Don't profile functions produced
2816 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
2820 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
2821 endianness-independent.
2823 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
2825 * c-common.c: Move to c-family/.
2826 * c-common.def: Likewise.
2827 * c-common.h: Likewise.
2828 * c-cppbuiltin.c: Likewise.
2829 * c-dump.c: Likewise.
2830 * c-format.c: Likewise.
2831 * c-format.h : Likewise.
2832 * c-gimplify.c: Likewise.
2833 * c-lex.c: Likewise.
2834 * c-omp.c: Likewise.
2836 * c-opts.c: Likewise.
2837 * c-pch.c: Likewise.
2838 * c-ppoutput.c: Likewise.
2839 * c-pragma.c: Likewise.
2840 * c-pragma.h: Likewise.
2841 * c-pretty-print.c: Likewise.
2842 * c-pretty-print.h: Likewise.
2843 * c-semantics.c: Likewise.
2844 * stub-objc.c: Likewise.
2846 * gengtype.c (get_file_langdir): Special-case files in c-family/.
2847 (get_output_file_with_visibility): Fix name for c-common.h.
2848 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
2850 * c-tree.h: Update include path for moved files.
2851 * c-lang.c: Likewise.
2852 * c-lang.h: Likewise.
2853 * c-parser.c: Likewise.
2854 * c-convert.c: Likewise.
2855 * c-decl.c: Likewise.
2856 * c-objc-common.c: Likewise.
2857 * configure.ac: Make sure c-family/ exists in the build directory.
2858 * configure: Regenerate.
2859 * Makefile.in: Update paths for moved files. Regroup files per
2860 location and update dependencies. Move generated_files down after
2863 * config/spu/spu-c.c: Update paths for moved files.
2864 * config/mep/mep-pragma.c: Likewise.
2865 * config/darwin-c.c: Likewise.
2866 * config/i386/msformat-c.c: Likewise.
2867 * config/i386/i386-c.c: Likewise.
2868 * config/avr/avr-c.c: Likewise.
2869 * config/sol2-c.c: Likewise.
2870 * config/ia64/ia64-c.c: Likewise.
2871 * config/rs6000/rs6000-c.c: Likewise.
2872 * config/arm/arm.c: Likewise.
2873 * config/arm/arm-c.c: Likewise.
2874 * config/h8300/h8300.c: Likewise.
2875 * config/v850/v850-c.c: Likewise.
2877 * config/t-darwin: Fix dependencies for moved files.
2878 * config/t-sol2: Fix dependencies for moved files.
2879 * config/mep/t-mep: Fix dependencies for moved files.
2880 * config/ia64/t-ia64: Fix dependencies for moved files.
2881 * config/rs6000/t-rs6000: Fix dependencies for moved files.
2882 * config/v850/t-v850: Fix dependencies for moved files.
2883 * config/v850/t-v850e: Fix dependencies for moved files.
2885 * config/m32c/m32c-pragma.c
2887 * po/exgettext: Look in c-family/ also.
2889 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
2891 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
2892 (mark_control_dependent_edges_necessary): Call it instead of marking
2893 the last statement manually.
2894 (propagate_necessity): Likewise.
2896 2010-06-05 Jan Hubicka <jh@suse.cz>
2898 * basic-block.h (compute_dominance_frontiers): Updated.
2899 (compute_idf): Likewise.
2901 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
2902 for dominance frontiers.
2903 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
2904 (insert_updated_phi_nodes_for): Likewise.
2905 (update_ssa): Likewise.
2906 * cfganal.c (compute_dominance_frontiers_1): Likewise.
2907 (compute_dominance_frontiers): Likewise.
2908 (compute_idf): Likewise.
2909 * df-problems.c (df_md_local_compute): Likewise.
2911 2010-06-05 Anatoly Sokolov <aesok@post.ru>
2913 * target.h (struct gcc_target): Add memory_move_cost field.
2914 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
2915 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
2916 * targhooks.c (default_memory_move_cost): New function.
2917 * targhooks.h (default_memory_move_cost): Declare function.
2918 * reload.h (memory_move_cost): Declare.
2919 (memory_move_secondary_cost): Change type of 'in' argument to bool.
2920 * reginfo.c (memory_move_cost): New function.
2921 (memory_move_secondary_cost): Change type of 'in' argument to bool.
2922 * ira.h (ira_memory_move_cost): Update comment.
2923 * ira.c: (ira_memory_move_cost): Update comment.
2924 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
2925 with memory_move_cost.
2926 * postreload.c (reload_cse_simplify_set): (Ditto.).
2927 * reload1.c (choose_reload_regs): (Ditto.).
2928 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
2929 (MEMORY_MOVE_COST): Revise documentation.
2931 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
2932 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
2933 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
2934 type of 'in' argument to bool.
2935 (TARGET_MEMORY_MOVE_COST): Define.
2937 2010-06-05 Jan Hubicka <jh@suse.cz>
2939 * ipa-pure-const.c (propagate): Fix typo in handling of functions
2940 that cannot return. Be more careful when merging the results with
2941 previously known ones.
2943 2010-06-05 Matthias Klose <doko@ubuntu.com>
2945 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
2946 function to add the -iplugindir option.
2947 (find_plugindir_spec_function): Add new declaration and function.
2948 (static_spec_func): Use it for "find-plugindir".
2950 2010-06-05 Jakub Jelinek <jakub@redhat.com>
2953 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
2954 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
2955 statement expression.
2957 2010-06-05 Jan Hubicka <jh@suse.cz>
2959 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
2960 (df_rd_problem_data): Convert sparse_invalidated_by_call,
2961 dense_invalidated_by_call to bitmap head.
2962 (df_rd_alloc, df_rd_bb_local_compute_process_def,
2963 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
2964 df_rd_start_dump, df_lr_verify_transfer_functions,
2965 df_live_verify_transfer_functions, df_chain_create_bb,
2966 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
2967 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
2968 df_simulate_one_insn_forwards, df_md_alloc,
2969 df_md_bb_local_compute_process_def,
2970 df_md_bb_local_compute_process_def, df_md_local_compute,
2971 df_md_transfer_function df_md_free): Update.
2973 2010-06-05 Joseph Myers <joseph@codesourcery.com>
2976 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
2977 target type for ADDR_EXPR; require no changes to qualifiers except
2979 * c-tree.h (c_build_type_variant): Remove.
2981 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
2983 * genautomata.c (get_excl_set): Do work per element, not per char.
2984 (check_presence_pattern_sets): Similar.
2985 (check_absence_pattern_sets): Similar.
2987 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
2989 * genautomata.c (curr_state_pass_num): Delete.
2990 (min_issue_delay_pass_states): Delete.
2991 (min_issue_delay): Delete.
2992 (initiate_min_issue_delay_pass_states): Delete.
2993 (output_min_issue_delay_table): Compute min_issue_delay_vect
2994 using a breadth-first search variant.
2995 (output_tables): Don't call initiate_min_issue_delay_pass_states.
2997 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
3000 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
3001 (df_byte_lr_bb_local_compute): Likewise.
3003 2010-06-03 Jason Merrill <jason@redhat.com>
3005 Implement noexcept operator (5.3.7)
3006 * c-common.c (c_common_reswords): Add noexcept.
3007 * c-common.h (enum rid): Add RID_NOEXCEPT.
3009 2010-06-04 Joseph Myers <joseph@codesourcery.com>
3011 * config/darwin-driver.c (darwin_default_min_version): Use
3012 GCC-specific formats in diagnostics.
3013 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
3015 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
3016 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
3017 eval_spec_function, handle_braces, process_brace_body, main,
3018 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
3019 getenv_spec_function, compare_version_strings,
3020 version_compare_spec_function): Use GCC-specific formats in
3023 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
3025 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
3026 that operand 0 and operand 1 are equal.
3027 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
3028 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
3029 and operand 1 are equal.
3030 <default>: Ditto. Remove ??? comment.
3031 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
3032 and operand 1 are equal.
3033 <default>: Ditto. Remove ??? comment.
3034 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
3036 (*add<mode>_4) <default>: Ditto.
3037 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
3039 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
3041 * config/i386/i386-protos.h (ix86_print_operand): Declare.
3042 * config/i386/i386.c (ix86_print_operand): Make non-static.
3043 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
3044 * output.h (output_operand): Declare.
3045 * final.c (output_operand): Make non-static.
3047 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
3049 PR rtl-optimization/44013
3050 * sched-deps.c (add_dependence_list_and_free): Don't free lists
3051 when processing debug insns.
3054 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
3055 recursing. Check that recursion is bounded. Rename inner var
3056 to avoid hiding incoming argument.
3058 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
3060 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
3065 (*addqi_ext_1_rex64): Ditto.
3066 (*addqi_ext_1): Ditto.
3068 (*addqi_4): Check for incdec_operand in QImode.
3070 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
3071 using SWI mode iterator.
3072 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
3073 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
3075 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
3076 using SWI mode iterator.
3078 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3081 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
3082 * c-format.c (gcc_diag_flag_specs): Add hash.
3083 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
3084 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
3085 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
3086 pp_c_cv_qualifiers. Handle qualifiers spelling here.
3087 (pp_c_type_qualifier_list): Call the function above.
3088 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
3089 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
3090 (WARN_FOR_QUALIFIERS): New macro.
3091 (convert_for_assignment): Use it.
3093 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
3095 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
3097 2010-06-04 Jan Hubicka <jh@suse.cz>
3099 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
3100 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
3101 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
3102 DF_BYTE_LR_OUT): Update for embedded bitmaps.
3103 * fwprop.c (single_def_use_enter_block): Likewise.
3104 * ddg.c (create_ddg_dep_from_intra_loop_link,
3105 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
3106 * loop-iv.c (latch_dominating_def): Likewise.
3107 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
3108 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
3109 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
3110 df_rd_transfer_function, df_rd_top_dump,
3111 df_rd_bottom_dump): Update.
3112 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
3113 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
3114 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
3115 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
3116 df_lr_verify_solution_start, df_lr_verify_solution_end,
3117 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
3118 df_live_free_bb_info, df_live_alloc, df_live_reset,
3119 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
3120 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
3121 df_live_verify_solution_start, df_live_verify_solution_end,
3122 df_live_verify_transfer_functions, df_chain_create_bb,
3123 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
3124 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
3125 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
3126 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
3127 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
3128 df_byte_lr_transfer_function, df_byte_lr_top_dump,
3129 df_byte_lr_bottom_dump, df_create_unused_note,
3130 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
3131 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
3132 df_md_transfer_function, df_md_init, df_md_confluence_0,
3134 df_md_top_dump, df_md_bottom_dump): Update.
3135 (struct df_lr_problem_data): Embedd bitmap headers.
3137 2010-06-04 Jan Hubicka <jh@suse.cz>
3139 * dce.c (dce_process_block): Do not re-scan already marked
3142 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
3144 PR rtl-optimization/39871
3145 PR rtl-optimization/40615
3146 PR rtl-optimization/42500
3147 PR rtl-optimization/42502
3148 * ira.c (init_reg_equiv_memory_loc: New function.
3149 (ira): Call it twice.
3150 * reload.h (calculate_elim_costs_all_insns): Declare.
3151 * ira-costs.c: Include "reload.h".
3152 (regno_equiv_gains): New static variable.
3153 (init_costs): Allocate it.
3154 (finish_costs): Free it.
3155 (ira_costs): Call calculate_elim_costs_all_insns.
3156 (find_costs_and_classes): Take estimated elimination costs
3158 (ira_adjust_equiv_reg_cost): New function.
3159 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
3160 * reload1.c (init_eliminable_invariants, free_reg_equiv,
3161 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
3162 (elim_bb): New static variable.
3163 (reload): Move code out of here into init_eliminable_invariants and
3164 free_reg_equiv. Call them.
3165 (calculate_elim_costs_all_insns): New function.
3166 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
3167 all callers changed. If FOR_COSTS is true, don't call alter_reg,
3168 but call note_reg_elim_costly if we turned a valid memory address
3169 into an invalid one.
3170 * Makefile.in (ira-costs.o): Depend on reload.h.
3172 2010-06-04 Julian Brown <julian@codesourcery.com>
3174 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
3177 2010-06-04 Richard Guenther <rguenther@suse.de>
3180 * cgraph.h (struct varpool_node): Add lto_file_data field.
3181 * lto-cgraph.c (input_varpool_node): Initialize it.
3183 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
3185 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
3186 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
3187 predicate in "type" attribute calculation.
3188 (*addsi_1_zext): Ditto.
3189 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
3190 (*addsi_2_zext): Ditto.
3191 (*add<mode>_3): Ditto.
3192 (*addsi_3_zext): Ditto.
3193 (*add<mode>_5): Ditto.
3195 2010-06-03 Jan Hubicka <jh@suse.cz>
3197 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
3199 * cfganal.c (compute_dominance_frontiers_1): Likewise.
3201 2010-06-03 Jan Hubicka <jh@suse.cz>
3203 * df-problems.c (df_create_unused_note, df_note_bb_compute):
3204 micro-optimize the checks when to add new note.
3206 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
3208 * final.c (output_asm_insn): Call
3209 targetm.asm_out.print_operand_punct_valid_p. Update comments.
3210 (output_operand): Call targetm.asm_out.print_operand. Update comments.
3211 (output_address): Call targetm.asm_out.print_operand_address.
3213 * target.h (struct gcc_target): Add print_operand,
3214 print_operand_address, and print_operand_punct_valid_p fields.
3215 * targhooks.h (default_print_operand): Declare.
3216 (default_print_operand_address): Declare.
3217 (default_print_operand_punct_valid_p): Declare.
3218 * targhooks.c (default_print_operand): Define.
3219 (default_print_operand_address): Define.
3220 (default_print_operand_punct_valid_p): Define.
3221 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
3222 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
3223 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
3224 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
3225 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
3226 * vmsdbgout.c (addr_const_to_string): Update comment.
3227 * config/i386/i386.c (print_operand): Rename to...
3228 (ix86_print_operand): ...this. Make static.
3229 (print_operand_address): Rename to...
3230 (ix86_print_operand_address): ...this. Make static. Call
3231 ix86_print_operand instead of PRINT_OPERAND.
3232 (ix86_print_operand_punct_valid_p): New function.
3233 (TARGET_PRINT_OPERAND): Define.
3234 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3235 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3236 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
3237 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3238 (PRINT_OPERAND): Delete.
3239 (PRINT_OPERAND_ADDRESS): Delete.
3240 * config/i386/i386-protos.h (print_operand): Delete prototype.
3241 (print_operand_address): Delete prototype.
3243 2010-06-03 Richard Guenther <rguenther@suse.de>
3245 PR tree-optimization/44403
3246 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
3247 Preserve pointer qualifiers.
3248 (vect_create_data_ref_ptr): Likewise.
3250 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
3253 * defaults.h (MAX_FIXED_MODE_SIZE): New.
3255 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
3257 2010-06-03 Jakub Jelinek <jakub@redhat.com>
3260 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
3261 return false if merging the bbs would lead to goto_locus
3262 location being lost from the IL.
3264 2010-06-03 Jan Hubicka <jh@suse.cz>
3265 Jakub Jelinek <jakub@redhat.com>
3267 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
3268 set->regs[i] is NULL or has just one entry.
3270 2010-06-03 Jan Hubicka <jh@suse.cz>
3272 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
3273 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
3275 2010-06-03 Paul Brook <paul@codesourcery.com>
3277 * config/arm/arm.c (FL_TUNE): Define.
3278 (arm_default_cpu, arm_cpu_select): Remove.
3279 (all_cores): Populate core field.
3280 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
3281 (arm_find_cpu): New function.
3282 (arm_handle_option): Lookup cpu/architecture names.
3283 (arm_override_options): Cleanup mcpu/march/mtune handling.
3284 (arm_file_start): Ditto.
3286 2010-06-03 Alan Modra <amodra@gmail.com>
3289 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
3290 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
3291 rtx to gen_load_toc_v4_PIC_1b. Tidy.
3292 (rs6000_emit_load_toc_table): Likewise.
3294 2010-06-02 Jan Hubicka <jh@suse.cz>
3296 * passes.c (init_optimization_passes): Put ipa reference
3297 after ipa pure-const.
3299 2010-06-02 Jan Hubicka <jh@suse.cz>
3301 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
3302 calls_read_all and calls_write_all.
3303 (get_reference_optimization_summary): Fix formatting.
3304 (is_proper_for_analysis): Check that decl is not readonly.
3305 (propagate_bits): Check CONST/PURE/noreturn flags.
3306 (ipa_init): Move all_module_statics to optimization_summary_obstack.
3307 (analyze_function): Ignore indirect edges.
3308 (copy_global_bitmap): For all module statics, do nothing.
3309 (generate_summary): Do not print calls_read_all/calls_write_all.
3310 (read_write_all_from_decl): Take node as argument; check
3311 cgraph_node_cannot_return.
3312 (propagate): Reorganize read_all/write_all computation;
3313 check indirect edges; check ecf flags; use all_module_statics
3314 in the results; do not free all_module_statics.
3315 (stream_out_bitmap): Handle all_module_statics.
3316 (ipa_reference_write_optimization_summary): Likewise; use
3317 varpool/cgraph encoders to get boundaries.
3318 (ipa_reference_read_optimization_summary): Read in all_module_statics;
3319 use it when possible.
3321 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
3324 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
3325 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
3327 * doc/extend.texi (powerpc builtins): Document vec_recip,
3328 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
3330 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
3331 (rs6000_emit_swrsqrt): Ditto.
3332 (rs6000_emit_swdivsf): Delete.
3333 (rs6000_emit_swdivdf): Ditto.
3334 (rs6000_emit_swrsqrtsf): Ditto.
3336 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
3337 describe the reciprocal estimate support for each type.
3338 (recip_options): Map -mrecip=<opt> into option bits.
3339 (gen_2arg_fn_t): New typedef for binary rtx gen function.
3340 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
3341 reciprocal estimate instructions.
3342 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
3343 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
3344 Set up rs6000_recip_bits based on the -mrecip* options. Print the
3345 cost information if -mdebug=cost or -mdebug=reg.
3346 (rs6000_override_options): Set -mrecip-precision for power6, and
3347 power7 machines. If -mvsx or -mdfp, enable various options that
3348 came in previous instruction set ISAs, unless the option was
3349 explicitly disabled by the command line option. Parse
3350 -mrecip=<opt> options.
3351 (rs6000_builtin_vectorized_function): Add support for vectorizing
3352 the reciprocal estimate builtins and expansions.
3353 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
3354 (bdesc_2arg): Add reciprocal estimate builtins.
3355 (bdesc_1arg): Add reciprocal square root estimate builtins.
3356 (rs6000_expand_builtin): Rewrite to use a switch statement,
3357 instead of multiple if/then/elses. Add reciprocal estimate builtins.
3358 (rs6000_init_builtins): Create declarations for reciprocal
3360 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
3361 sized, prefer traditional floating point registers, if integer
3362 vector types, prefer altivec registers. Don't actually look at
3363 the memory address any more.
3364 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
3366 (rs6000_load_constant_and_splat): New helper function to load up
3367 the constant for reciprocal estimate instructions.
3368 (rs6000_emit_madd): New helper function for generating
3369 multiply/add type instructions, based on the current switches.
3370 (rs6000_emit_msub): Ditto.
3371 (rs6000_emit_mnsub): Ditto.
3372 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
3373 replace a divide with a reciprocal estimate and fixup, adding
3374 support for machines with high precision and vectors.
3375 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
3376 low precision machines.
3377 (rs6000_emit_swdiv): New common function to be called to replace a
3378 division with reciprocal estimate and fixup.
3379 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
3380 for double and vector types. Add support for high precision machines.
3382 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
3383 the reciprocal estimate instructions can be generated.
3384 (TARGET_FRE): Ditto.
3385 (TARGET_FRSQRTES): Ditto.
3386 (TARGET_FRSQRTE): Ditto.
3387 (RS6000_RECIP_*): New macros for reciprocal estimate support.
3389 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
3390 square root estimate on vectors.
3391 (re<mode>2): New insn for reciprocal division estimate on vectors.
3393 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
3395 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
3396 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
3397 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
3398 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
3399 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
3400 (RS6000_BUILTIN_RSQRT): Ditto.
3401 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
3402 floating point builtin.
3404 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
3405 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
3406 __RECIP_PRECISION__ based on the command line switches.
3407 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
3409 * config/rs6000/rs6000.opt (-mrecip): Document add support for
3410 replacing division instructions with reciprocal estimate and fixup.
3411 (-mrecip=<opt>): New option.
3412 (-mrecip-precision): Ditto.
3414 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
3415 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
3416 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
3419 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
3420 (UNSPEC_VREFP): Ditto.
3421 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
3422 conterparts with regard to support of -mno-fused-madd and -ffast-math.
3423 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
3424 reciprocal estimate instructions to be generated.
3425 (altivec_vrefp): Ditto.
3427 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
3429 (rreg): New mode attribute for reciprocal estimate support.
3430 (recip<mode>3): New insn for division using reciprocal estimate
3432 (divide define_split): New define_split to convert floating point
3433 division to use reciprocal estimate if the user used the
3434 appropriate options and the split is run when we can add new
3435 pseudo registers for the fixup.
3436 (rsqrt<mode>2): New insn for reciprocal square root support.
3437 (recipsf3): Move into recip<mode>3.
3439 (fres): Use TARGET_FRES.
3440 (rsqrtsf2): Move into rsqrt<mode>2.
3441 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
3442 (copysignsf3): Add support for VSX.
3443 (fred): Use TARGET_FRE.
3445 (rsqrtdf_internal1): New function for frsqrte instruciton.
3447 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
3450 2010-06-03 Richard Guenther <rguenther@suse.de>
3453 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
3454 (set_user_assembler_libfunc): Likewise.
3456 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
3458 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
3460 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
3462 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
3463 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
3464 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
3465 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
3466 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
3467 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
3468 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
3469 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
3470 * defaults.h: Updated for above mentioned changes.
3472 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
3474 * c-common.c: Remove header include of tm_p.h.
3475 * Makefile.in (c-common.o): Remove TM_P_H dependency.
3477 2010-06-02 Jakub Jelinek <jakub@redhat.com>
3479 * tree.h (struct tree_decl_map): New type.
3480 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
3481 (tree_decl_map_hash): New prototype.
3482 (debug_expr_for_decl, value_expr_for_decl): Change into
3483 tree_decl_map hashtab from tree_map.
3484 (init_ttree): Adjust initialization.
3485 (tree_decl_map_hash): New function.
3486 (decl_debug_expr_lookup, decl_debug_expr_insert,
3487 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
3489 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3491 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
3493 * configure: Regenerate.
3494 * config.in: Regenerate.
3496 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
3497 (X86_64_EMULATION): Define.
3498 (TARGET_LD_EMULATION): Use them.
3500 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
3501 (SPARC64_EMULATION): Define.
3502 (LINK_ARCH_SPEC): Use them.
3504 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
3506 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
3507 smallest_mode_for_size for computing the precision types of new
3508 graphite IVs. Do not call lang_hooks.types.type_for_size.
3510 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
3512 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
3514 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
3516 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
3519 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
3520 return false instead.
3522 2010-06-02 Jan Hubicka <jh@suse.cz>
3525 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
3526 create new cgraph node to check callee.
3528 2010-06-02 Richard Guenther <rguenther@suse.de>
3530 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
3532 2010-06-02 Richard Guenther <rguenther@suse.de>
3534 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
3535 (lto_wrapper_cleanup): ... this. Do not exit.
3536 (fatal): Adjust. Exit here.
3537 (fatal_perror): Likewise.
3538 (fatal_signal): New function.
3539 (main): Set up signal handlers to cleanup temporary files.
3540 * Makefile.in (lto-wrapper.o): Adjust dependencies.
3542 2010-06-02 Richard Guenther <rguenther@suse.de>
3544 PR tree-optimization/44377
3545 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
3547 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3549 * config/s390/2097.md (z10_fhex): Remove insn reservation.
3550 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
3551 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
3552 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
3554 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
3556 2010-06-02 Jan Hubicka <jh@suse.cz>
3558 * bitmap.c (bitmap_descriptor): Add search_iter.
3559 (bitmap_find_bit): Increment it.
3560 (print_statistics): Print it.
3562 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
3564 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
3565 instead of gimple_build_call_vec. Delete unnecessary local variable.
3567 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
3569 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
3570 change from yesterday.
3572 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
3574 * c-ada-spec.c: Clean up redundant includes.
3576 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
3578 * gimplify.c: Do not include except.h and optabs.h.
3579 (gimplify_body): Do not initialize RTL profiling.
3580 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
3581 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
3582 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
3583 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
3586 * tree-pretty-print.h: Include pretty-print.h.
3587 * gimple-pretty-print.h: Include pretty-print.h.
3589 * tree-pretty-print.c: Do not include diagnostic.h.
3590 * tree-vrp.c: Likewise.
3591 * tree-tailcall.c: Likewise
3592 * tree-scalar-evolution.c: Likewise
3593 * tree-ssa-dse.c: Likewise
3594 * tree-chrec.c: Likewise
3595 * tree-ssa-sccvn.c: Likewise
3596 * tree-ssa-copyrename.c: Likewise
3597 * tree-nomudflap.c: Likewise
3598 * tree-call-cdce.c: Likewise
3599 * tree-stdarg.c: Likewise
3600 * tree-ssa-math-opts.c: Likewise
3601 * tree-nrv.c: Likewise
3602 * tree-ssa-sink.c: Likewise
3603 * tree-browser.c: Likewise
3604 * tree-ssa-loop-ivcanon.c: Likewise
3605 * tree-ssa-loop.c: Likewise
3606 * tree-parloops.c: Likewise
3607 * tree-ssa-address.c: Likewise
3608 * tree-ssa-ifcombine.c: Likewise
3609 * tree-if-conv.c: Likewise
3610 * tree-data-ref.c: Likewise
3611 * tree-affine.c: Likewise
3612 * tree-ssa-phiopt.c: Likewise
3613 * tree-ssa-coalesce.c: Likewise
3614 * tree-ssa-pre.c: Likewise
3615 * tree-ssa-live.c: Likewise
3616 * tree-predcom.c: Likewise
3617 * tree-ssa-forwprop.c: Likewise
3618 * tree-ssa-dce.c: Likewise
3619 * tree-ssa-ter.c: Likewise
3620 * tree-ssa-loop-prefetch.c: Likewise
3621 * tree-optimize.c: Likewise
3622 * tree-ssa-phiprop.c: Likewise
3623 * tree-object-size.c: Likewise
3624 * tree-outof-ssa.c: Likewise
3625 * tree-ssa-structalias.c: Likewise
3626 * tree-switch-conversion.c: Likewise
3627 * tree-ssa-reassoc.c: Likewise
3628 * tree-ssa-operands.c: Likewise
3629 * tree-vectorizer.c: Likewise
3630 * tree-vect-data-refs.c: Likewise
3631 * tree-vect-generic.c: Likewise
3632 * tree-vect-stmts.c: Likewise
3633 * tree-vect-patterns.c: Likewise
3634 * tree-vect-slp.c: Likewise
3635 * tree-vect-loop.c: Likewise
3636 * tree-ssa-loop-ivopts.c: Likewise
3637 * tree-ssa-loop-im.c: Likewise
3638 * tree-ssa-loop-niter.c: Likewise
3639 * tree-ssa-loop-unswitch.c: Likewise
3640 * tree-ssa-loop-manip.c: Likewise
3641 * tree-ssa-loop-ch.c: Likewise
3642 * tree-dump.c: Likewise
3643 * tree-complex.c: Likewise
3645 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
3646 * tree-ssa-uninit.c: Likewise
3647 * tree-ssa-threadupdate.c: Likewise
3648 * tree-ssa-uncprop.c: Likewise
3649 * tree-ssa-ccp.c: Likewise
3650 * tree-ssa-dom.c: Likewise
3651 * tree-ssa-propagate.c: Likewise
3652 * tree-ssa-alias.c: Likewise
3653 * tree-dfa.c: Likewise
3654 * tree-cfgcleanup.c: Likewise
3655 * tree-sra.c: Likewise
3656 * tree-ssa-copy.c: Likewise
3657 * tree-ssa.c: Likewise
3658 * tree-profile.c: Likewise
3659 * tree-cfg.c: Likewise
3660 * tree-ssa-threadedge.c: Likewise
3661 * tree-vect-loop-manip.c: Likewise
3663 * tree-inline.c: Do not include diagnostic.h and expr.h.
3665 (copy_decl_for_dup_finish): Do not use NULL_RTX.
3667 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
3668 * tree-loop-distribution.c: Likewise.
3670 2010-06-01 Jan Hubicka <jh@suse.cz>
3672 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
3674 2010-06-01 Jan Hubicka <jh@suse.cz>
3676 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
3677 remove return value.
3678 (split_bbs_on_noreturn_calls) .... here.
3679 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
3680 * tree-flow.h (fixup_noreturn_call): New.
3682 2010-06-01 Jan Hubicka <jh@suse.cz>
3684 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
3686 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
3688 * tree.h (build_nt_call_list): Delete.
3689 * tree.c (build_nt_call_list): Delete.
3691 2010-06-01 Jan Hubicka <jh@suse.cz>
3693 * fwprop.c: Make emit-rtl.h include last.
3694 * rtlanal.c: Include emit-rtl.h.
3695 * genautomata.c: Output emit-rtl include into insn-automata.c
3696 * df-scan.c: Include emit-rtl.h.
3697 * haifa-sched.c: Indlude emit-rtl.h.
3698 * mode-switching.c: Indlude emit-rtl.h.
3699 * graph.c: Indlude emit-rtl.h.
3700 * sel-sched.c: Include emit-rtl.h.
3701 * sel-sched-ir.c: Include emit-rtl.h.
3702 * ira-build.c: Include emit-rtl.h.
3703 * emit-rtl.c: (first_insn, last_insn): Remove defines.
3704 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
3706 (set_new_first_and_last_insn, get_last_insn_anywhere,
3707 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
3708 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
3709 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
3710 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
3711 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
3712 Use accessor functions.
3713 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
3714 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
3715 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
3716 mem_expr_equal_p): Move here from rtl.h.
3717 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
3718 Move here from emit-rtl.c; make inline.
3719 * cfglayout.h: Include emit-rtl.h.
3720 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
3721 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
3722 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
3723 mem_expr_equal_p, get_insns, set_first-insn,
3724 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
3725 * reg-stack.c: Include emit-rtl.h.
3728 2010-06-01 Jan Hubicka <jh@suse.cz>
3730 * cgraph.h (tree_function_versioning): Update prototype.
3731 (cgraph_function_versioning): Update prototype.
3732 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
3734 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
3735 (cgraph_materialize_clone, save_inline_function_body): Update use of
3736 tree_function_versioning.
3737 * tree-inline.c (copy_bb): Look for previous copied block to link
3738 after; fix debug output.
3739 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
3740 (copy_body): Likewise.
3741 (expand_call_inline): Update use of copy_body.
3742 (tree_function_versioning): Update use of copy body; accept
3743 blocks_to_copy and new_entry.
3745 2010-06-01 Jan Hubicka <jh@suse.cz>
3747 * gegenrtl.c: Remove unnecesary prototypes.
3749 (gendef): Produce static inline.
3751 (main): Do not decode parameters; generate header only.
3752 * Makefile.in (genrtl.c): Remove.
3754 2010-06-01 Jan Hubicka <jh@suse.cz>
3756 * tree-switch-conversion.c (build_one_array): Make it readonly.
3758 2010-06-01 Richard Guenther <rguenther@suse.de>
3760 * optabs.c (init_optabs): Guard all accesses to reinit.
3761 * ipa-pure-const.c (propagate): Fix another typo.
3762 * opts.c (common_handle_option): Split assignment to bool.
3763 * c-opts.c (c_common_handle_option): Likewise.
3765 2010-06-01 Arnaud Charlet <charlet@adacore.com>
3766 Matthew Gingell <gingell@adacore.com>
3768 * doc/invoke.texi: Mention -fdump-ada-spec.
3769 * tree-dump.c (dump_files): Add ada-spec.
3770 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
3771 * tree-pass.h (tree_dump_index): Add TDI_ada.
3772 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
3773 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
3774 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
3775 * c-decl.c: Include c-ada-spec.h.
3776 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
3778 (c_write_global_declarations): Add handling of -fdump-ada-spec.
3779 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
3780 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
3781 * c-ada-spec.h, c-ada-spec.c: New files.
3783 2010-06-01 Richard Guenther <rguenther@suse.de>
3786 * ipa-pure-const.c (get_function_state): Hand back varying state
3787 if we do not have one.
3788 (has_function_state): New function.
3789 (duplicate_node_data): Adjust.
3790 (remove_node_data): Likewise.
3791 (pure_const_write_summary): Likewise.
3792 (propagate): Likewise. Fix typo.
3794 2010-06-01 Jan Hubicka <jh@suse.cz>
3796 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
3797 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
3798 (execute_all_ipa_transforms): Do not play with the states.
3800 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
3802 * config/arm/t-linux-androideabi: New.
3803 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
3805 2010-06-01 Jan Hubicka <jh@suse.cz>
3807 * tree-inline.c (estimate_num_insns): For stdarg functions look
3808 into call statement to count cost of argument passing.
3810 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
3812 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
3813 argument for fprintf.
3814 (ix86_output_addr_diff_elt): Likewise.
3815 (x86_function_profiler): Likewise.
3816 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
3817 (LPREFIX): Likewise.
3818 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3820 2010-05-31 Jakub Jelinek <jakub@redhat.com>
3823 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
3824 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
3825 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
3826 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
3827 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
3828 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
3829 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
3830 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
3833 2010-05-31 Jan Hubicka <jh@suse.cz>
3835 * tree.h (tree_range_check_failed): Declare noreturn.
3837 2010-05-31 Jan Hubicka <jh@suse.cz>
3839 * gimple.c (gimple_call_builtin_p): New function.
3840 * gimple.h (gimple_call_builtin_p): Declare.
3841 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
3843 (execute_warn_function_return): BUILT_IN_RETURN is return.
3844 (split_critical_edges): Return edges are not critical.
3845 (is_ctrl_altering_stmt): Builtin_in_return is altering.
3846 (gimple_verify_flow_info): Handle built_in_return.
3847 (execute_warn_function_return): Handle built_in_return.
3848 * ipa-pure-const.c (check_call): Ignore builtin_return.
3850 2010-05-31 Jakub Jelinek <jakub@redhat.com>
3853 * expr.c (expand_assignment): Don't store anything for out-of-bounds
3854 array accesses with non-MEM.
3856 PR tree-optimization/44182
3857 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
3858 newly needs to end a bb is followed by debug stmts, instead return
3859 true from the function at the end.
3860 (maybe_move_debug_stmts_to_successors): New function.
3861 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
3863 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
3866 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
3868 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
3870 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
3871 for nested functions in non-optimized compilation.
3873 2010-05-31 Richard Guenther <rguenther@suse.de>
3875 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
3877 2010-05-30 Jan Hubicka <jh@suse.cz>
3879 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
3881 2010-05-30 Richard Guenther <rguenther@suse.de>
3884 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
3885 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
3888 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
3890 * config/darwin.c (output_objc_section_asm_op): Add comment.
3891 (name_needs_quotes): Add '_' to list of valid comment chars.
3892 (machopic_output_function_base_name): Remove unneeded quotes.
3893 (darwin_encode_section_info): Adjust asm whitespace.
3894 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
3895 (ASM_OUTPUT_LOCAL): Ditto.
3896 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
3897 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
3898 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
3900 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
3902 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
3903 RS6000_OUTPUT_BASENAME unconditionally.
3904 (rs6000_output_function_epilogue): Likewise.
3906 2010-05-30 Jan Hubicka <jh@suse.cz>
3908 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
3911 2010-05-30 Richard Guenther <rguenther@suse.de>
3913 * tree-cfg.c (verify_gimple_assign_single): Implement
3914 verification for COND_EXPR rhs.
3916 2010-05-30 Jan Hubicka <jh@suse.cz>
3918 * cgraph.h (cgraph_dump_file): Declare.
3919 * cgraphunit.c (cgraph_dump_file): Export.
3920 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
3922 2010-05-30 Jan Hubicka <jh@suse.cz>
3924 * dwarf2out.c (reference_to_unused,
3925 premark_types_used_by_global_vars_helper): Avoid creation of new
3928 2010-05-30 Jan Hubicka <jh@suse.cz>
3930 * cgraph.h (cgraph_node_cannot_return,
3931 cgraph_edge_cannot_lead_to_return): New functions.
3932 * cgraph.c (cgraph_node_cannot_return,
3933 cgraph_edge_cannot_lead_to_return): Use them.
3934 * ipa-pure-const.c (pure_const_names): New static var.
3935 (check_call): Handle calls not leading to return.
3936 (pure_const_read_summary): Dump info read.
3937 (propagate): Dump info about propagation process; ignore side effects
3938 of functions not leading to exit; fix handling of pure functions.
3940 2010-05-30 Jan Hubicka <jh@suse.cz>
3942 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
3943 for tail call epilogues.
3945 2010-05-30 Jan Hubicka <jh@suse.cz>
3947 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
3948 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
3951 2010-05-29 Jan Hubicka <jh@suse.cz>
3953 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
3954 node; remove references in node we no longer keep in cgrpah but need
3957 2010-05-29 Jan Hubicka <jh@suse.cz>
3959 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
3961 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3964 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
3966 2010-05-29 Jan Hubicka <jh@suse.cz>
3968 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
3969 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
3970 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
3971 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
3972 debug_names_replaced_by, debug_update_ssa): Likewise.
3973 * sbitmap.c (debug_sbitmap): Likewise.
3974 * genrecog.c (debug_decision, debug_decision_list): Likewise.
3975 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
3976 debug_tree_chain): Likewise.
3977 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
3978 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
3979 * optabs.c (debug_optab_libfuncs): Likewise.
3980 (verify_loop_closed_ssa): Likewise.
3981 * value-prof.c (verify_histograms): Likewise.
3982 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
3983 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
3984 * cfghooks.c (verify_flow_info): Likewise.
3985 * fold-const.c (debug_fold_checksum): Likewise.
3986 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
3987 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
3989 * omega.c (debug_omega_problem): Likewise.
3990 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
3991 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
3992 * dominance.c (verify_dominators, debug_dominance_info,
3993 debug_dominance_tree): Likewise.
3994 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
3995 * df_regno_debug, df_ref_debug,
3996 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
3997 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
3998 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
3999 * sel-sched.c (debug_state): Likewise.
4000 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
4002 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
4003 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
4004 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
4005 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
4007 * c-pretty-print.c (debug_c_tree): Likewise.
4008 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
4009 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
4010 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
4011 * ebitmap.c (debug_ebitmap): Likewise.
4012 * function.c (debug_find_var_in_block_tree): Likewise.
4013 * print-rtl.c (debug_rtx): Likewise.
4014 (debug_rtx_count): Likewise.
4015 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
4016 * stor-layout.c (debug_rli): Likewise.
4017 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
4018 * tree-data-ref.c (debug_data_references,
4019 debug_data_dependence_relations, debug_data_reference,
4020 debug_data_dependence_relation, debug_rdg_vertex,
4021 debug_rdg_component, debug_rdg): Likewise.
4022 * tree-affine.c (debug_aff): Likewise.
4023 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
4025 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
4026 * emit-rtl.c (verify_rtl_sharing): Likewise.
4027 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
4028 debug_value_expressions): Likewise.
4029 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
4030 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
4031 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
4032 * cfglayout.c (verify_insn_chain): Likewise.
4033 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
4034 debug_clast_stmt, debug_generated_program): Likewise.
4035 * ggc-page.c (debug_print_page_list): Likewise.
4036 * tree-ssa-ter.c (debug_ter): Likewise.
4037 * graphite-dependences.c (debug_pddr): Likewise.
4038 * sched-deps.c (debug_ds): Likewise.
4039 * tree-ssa.c (verify_ssa): Likewise.
4040 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
4041 debug_scattering_functions, debug_iteration_domains, debug_pdr,
4042 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
4043 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
4044 * tree-inline.c (debug_find_tree): Likewise.
4045 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
4046 debug_ppl_powerset_matrix): Likewise.
4047 * var-tracking.c (debug_dv): Likewise.
4048 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
4049 * cfgloop.c (verify_loop_structure): Likewise.
4050 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
4051 * c-common.c (verify_sequence_points): Likewise.
4052 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
4053 debug_candidates, debug_rgn_dependencies): Likewise.
4054 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
4055 * debug_constraint_graph, debug_solution_for_var,
4056 debug_sa_points_to_info): Likewise.
4057 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
4059 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
4060 debug_loops, debug_loop, debug_loop_num): Likewise.
4061 * passes.c (debug_pass): Likewise.
4062 (dump_properties): Likewise; add cfglayout property.
4063 (debug_properties): Likewise.
4064 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
4065 * varpool.c (debug_varpool): Likewise.
4066 * regcprop.c (debug_value_data): Likewise.
4067 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
4068 debug_immediate_uses_for): Likewise.
4070 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
4073 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
4074 Filter out insn-flags.h.
4076 2010-05-29 Jan Hubicka <jh@suse.cz>
4078 * cgraph.h (struct varpool_node_set_def,
4079 struct cgraph_node_set_def): Remove unused AUX pointer.
4080 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
4083 2010-05-29 Jan Hubicka <jh@suse.cz>
4086 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
4088 2010-05-29 Richard Guenther <rguenther@suse.de>
4090 * lto-streamer.c (cached_bp): New global variable.
4091 (bitpack_create): Return the cached bitpack, if available.
4092 (bitpack_delete): Clear and cache the bitpack, if appropriate.
4093 (bp_pack_value): Remove redundant asserts.
4095 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
4098 * tree-if-conv.c (is_true_predicate): New.
4099 (is_predicated): Use is_true_predicate.
4100 (add_to_predicate_list): Same. Do not use unshare_expr.
4101 (add_to_dst_predicate_list): Same.
4103 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
4105 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
4107 (predicate_bbs): Same.
4108 (clean_predicate_lists): Same.
4109 (find_phi_replacement_condition): Do not AND the predicate from
4112 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
4115 * Makefile.in (build/gencondmd.o): Add a missing `\'.
4117 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4120 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
4121 (negdf2): Adjust expander pattern and use negdf2_slow.
4124 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
4126 * basic-block.h (struct control_flow_graph): Move last_label_uid field
4128 * df.h (struct df_base_ref): Move regno field up.
4129 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
4130 * expr.h (struct separate_ops): Move location field up.
4131 * optabs.h (struct optab_d): Move libcall_basename field down.
4132 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
4133 * config/i386/i386.h (struct machine_function): Convert call_abi field
4134 into a bitfield. Move cfa field to the end of the structure.
4136 2010-05-29 Jan Hubicka <jh@suse.cz>
4138 * varpool.c (varpool_get_node): Fix lookup.
4140 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
4142 * config/spu/spu-protos.h: Do not include rtl.h. Protect
4143 RTL specific prototypes with #ifdef RTX_CODE.
4144 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
4145 * config/spu/t-spu-elf: Fix dependencies.
4147 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
4149 2010-05-29 Mike Stump <mikestump@comcast.net>
4152 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
4153 TM_H when building to avoid dependency loops.
4155 2010-05-29 Jan Hubicka <jh@suse.cz>
4157 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
4158 refs and body; not the whole node for masters of materialized clones.
4160 2010-05-29 Mike Stump <mikestump@comcast.net>
4162 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
4164 2010-05-29 Jan Hubicka <jh@suse.cz>
4166 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
4167 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
4168 use of clone_function_name.
4169 * cgraph.h (cgraph_create_virtual_clone,
4170 cgraph_function_versioning): update prototypes.
4171 (clone_function_name): Declare.
4172 * ipa-cp.c (ipcp_insert_stage): Update call of
4173 cgraph_create_virtual_clone.
4174 * omp-low.c (create_omp_child_function_name): Use
4175 cgraph_create_virtual_clone.
4176 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
4177 (cgraph_function_versioning): Take SUFFIX argument; produce new name
4178 and make decl local.
4180 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
4182 * vec.h: Include statistics.h
4183 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
4186 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
4188 * c-lex.c: Do not include c-tree.h.
4189 * c-pretty-print.c: Likewise.
4190 * c-opts.c: Likewise.
4191 * c-gimplify.c: Likewise.
4192 * c-common.c: Likewise.
4193 * c-dump.c: Likewise. Include c-common.h.
4195 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
4197 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
4198 before including diagnostic-core.h.
4199 (c_cpp_error): New prototype moved from c-tree.h.
4200 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
4201 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
4202 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
4203 (c_cpp_error): Prototype moved to c-common.h.
4204 * Makefile.in: Update dependency for C_COMMON_H.
4206 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
4208 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
4209 * c-common.c (c_register_addr_space): Remove here.
4210 * c-decl.c (c_register_addr_space): Re-add here.
4212 2010-05-28 Mike Stump <mikestump@comcast.net>
4214 * config/darwin-c.c: Remove c-tree.h include.
4216 2010-05-28 Joseph Myers <joseph@codesourcery.com>
4218 * gcc.c: Include diagnostic.h.
4219 (error_count): Remove. All users changed to use errorcount.
4220 (programname): Remove. All users changed to use progname.
4221 (fancy_abort, internal_error, fatal_error, error, warning, inform,
4223 (execute): Don't include "Internal error" and bug reporting
4224 information in argument of internal_error call.
4225 (process_command): Don't increment error_count after calling
4227 (input_filename): Rename to gcc_input_filename. All users
4229 (main): Call diagnostic_initialize. Register delete_temp_files
4230 with atexit. Use seen_error to test for errors.
4231 * gcc.h: Include diagnostic-core.h.
4232 (fatal_error, error, warning): Remove.
4233 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
4234 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
4235 (gcc.o): Update dependencies.
4237 2010-05-28 Jeff Law <law@redhat.com>
4239 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
4241 * ira.h (ira_bad_reload_regno): Declare
4242 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
4244 * ira-color.c (update_curr_costs): Free updated hard reg costs.
4245 (ira_reassign_conflict_allocnos): Remove bogus asserts.
4246 (allocno_reload_assign): Likewise.
4248 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
4250 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
4253 2010-05-28 Richard Guenther <rguenther@suse.de>
4256 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
4257 Stream fixed-point constants mode.
4258 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
4260 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
4261 Stream fixed-point constants mode.
4262 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
4265 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
4267 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
4268 only place it was called from.
4269 (number_of_latch_executions): Do not return chrec_dont_know when the
4270 may_be_zero is a runtime condition: instead, return a COND_EXPR
4271 including the may_be_zero condition.
4272 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
4274 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
4277 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
4279 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
4280 generate COND_EXPRs for degenerate_phi_result.
4282 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
4285 * tree-if-conv.c (if_convertible_loop_p): Check the
4286 if-convertibility of phi nodes in non predicated BBs.
4288 2010-05-28 Joseph Myers <joseph@codesourcery.com>
4290 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
4292 2010-05-28 Joseph Myers <joseph@codesourcery.com>
4295 * gcc.c (inform, warning, inform): New functions.
4296 (fatal_ice): Rename to internal_error; change cmsgid parameter to
4297 gmsgid. All callers changed.
4298 (notice): Rename to fnotice; add parameter fp. All callers changed.
4299 (fatal_error): Rename to fatal_signal. All users changed.
4300 (fatal): Rename to fatal_error; change cmsgid parameter to
4301 gmsgid. All callers changed.
4302 (process_command): Use warning instead of error for warnings.
4303 (end_going_arg): Don't use _() around argument of error.
4304 (do_spec_1): Use inform for message from %n specs. Use warning
4305 instead of error for warnings.
4306 (main): Use inform for comparison messages. Use warning for
4307 message about unused linker input.
4308 (error): Increment error_count. Print "error: ".
4309 * gcc.h (fatal): Change to fatal_error.
4311 * config/darwin-driver.c (darwin_default_min_version): Use warning
4312 instead of fprintf for warnings.
4313 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
4315 2010-05-28 Julian Brown <julian@codesourcery.com>
4317 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
4318 (*thumb2_addsi3_compare0_scratch): New.
4319 * config/arm/constraints.md (Pv): New.
4320 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
4322 (*addsi3_compare0_scratch): Likewise.
4324 2010-05-28 Jan Hubicka <jh@suse.cz>
4326 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
4328 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
4329 only on local statics.
4331 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
4333 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
4335 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
4338 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
4339 (OPTION_GLIBC): Define.
4341 2010-05-28 Jakub Jelinek <jakub@redhat.com>
4344 * dwarf2out.c (double_int_type_size_in_bits): New function.
4345 (round_up_to_align): Change first argument and return value to
4347 (field_byte_offset): Work internally on double_ints.
4350 * builtins.c (expand_movstr): Use a temporary pseudo instead
4351 of target even when target is not NULL and not const0_rtx, but
4352 fails movstr predicate.
4353 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
4355 2010-05-28 Joseph Myers <joseph@codesourcery.com>
4357 * final.c (rest_of_clean_state): Use %m in errors instead of
4359 * gengtype.c (read_input_list, close_output_files): Use xstrerror
4360 instead of strerror.
4361 * toplev.c (process_options): Use %m in errors instead of strerror
4363 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
4366 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
4368 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
4369 (ix86_canonical_va_list_type): Make static. Add declaration.
4370 (ix86_enum_va_list): Make static. Reindent.
4371 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
4372 (ix86_canonical_va_list_type): Ditto.
4373 (ix86_enum_va_list): Ditto.
4375 2010-05-28 Richard Guenther <rguenther@suse.de>
4377 * lto-wrapper.c (run_gcc): With -save-temps generate a
4378 user-visible ltrans filename. Fixup ltrans unit numbering.
4380 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
4382 * c-common.c (c_common_nodes_and_builtins): Replace use
4383 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
4384 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
4385 to ix86_enum_va_list.
4386 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
4387 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
4388 (TARGET_ENUM_VA_LIST_P): Add hook description.
4389 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
4390 * target.h (gcc_target): Add enum_va_list hook.
4393 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
4394 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
4395 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
4397 2010-05-28 Alan Modra <amodra@gmail.com>
4400 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
4401 emit_library_call machinery to set up __tls_get_addr calls.
4403 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4405 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
4407 2010-05-28 Dodji Seketeli <dodji@redhat.com>
4409 Revert fix for PR c++/44188
4410 * c-common.c (is_typedef_decl): Revert the moving of this
4412 * tree.c (is_typedef_decl): ... here.
4413 (typdef_variant_p): Revert the moving of this definition
4414 here from gcc/cp/tree.c.
4415 * c-common.h (is_typedef_decl): Revert the moving of this
4417 * tree.h (is_typedef_decl): ... here.
4418 (typedef_variant_p): Revert the moving of this declaration here
4419 from gcc/cp/cp-tree.h
4420 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
4421 (gen_tagged_type_die): Revert the splitting out of ...
4422 (gen_type_die_with_usage): ... this function. Revert the anonymous
4423 tagged type handling.
4424 (gen_typedef_die): Revert emitting DW_TAG_typedef for
4425 typedefs naming anonymous tagged types.
4427 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
4429 * config/rs6000/rs6000-modes.def (PSImode): Delete.
4431 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
4433 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
4434 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
4436 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
4438 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
4439 XER_REGS to CA_REGS throughout.
4440 * config/rs6000/rs6000.h: Same.
4441 (ADDITIONAL_REGISTER_NAMES): Add "xer".
4442 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
4443 that mode_iterator "P" is the size for arithmetic carries as well.
4444 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
4446 2010-05-28 Jakub Jelinek <jakub@redhat.com>
4449 * combine.c (struct rtx_subst_pair): Define unconditionally.
4450 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
4451 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
4452 Call make_compound_operation on pair->to.
4453 (propagate_for_debug): Don't call make_compound_operation here.
4454 Always use simplify_replace_fn_rtx.
4456 2010-05-27 Sterling Augustine <sterling@tensilica.com>
4458 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
4459 * config/xtensa/xtensa.c (override_options): Check
4460 TARGET_FORCE_NO_PIC and set flag_pic.
4461 * config/xtensa/xtensa.opt: Document -mforce-no-pic
4463 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
4466 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
4467 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
4469 2010-05-27 Joseph Myers <joseph@codesourcery.com>
4471 * diagnostic-core.h: New. Contents moved from diagnostic.h and
4473 * diagnostic.c: Don't include toplev.h.
4474 (progname): Define. Moved from toplev.c.
4475 (seen_error): New function.
4476 * diagnostic.h: Include diagnostic-core.h.
4477 (diagnostic_t, emit_diagnostic): Don't declare here.
4478 * toplev.c (progname): Move to toplev.c.
4479 (emit_debug_global_declarations, compile_file, finalize,
4480 do_compile, toplev_main): Use seen_error.
4481 * toplev.h: Include diagnostic-core.h.
4482 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
4483 internal_error, warning, warning_at, error, error_n, error_at,
4484 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
4485 verbatim, fnotice, progname): Move to diagnostic-core.h.
4486 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
4487 (expand_builtin_expect): Use seen_error.
4488 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
4489 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
4490 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
4491 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
4492 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
4493 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
4494 errorcount for errors.
4495 * c-opts.c (c_common_finish): Use seen_error.
4496 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
4497 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
4498 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
4499 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
4500 (get_coverage_counts): Use seen_error.
4501 * dwarf2out.c (dwarf2out_finish): Use seen_error.
4502 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
4503 gimplify_body): Use seen_error.
4504 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
4505 * ipa-pure-const.c (gate_pure_const): Use seen_error.
4506 * ipa-reference.c (gate_reference): Use seen_error.
4507 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
4508 * lambda-code.c: Include diagnostic-core.h instead of
4510 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
4511 * lto-compress.c: Include diagnostic-core.h instead of
4513 * lto-section-in.c: Include diagnostic-core.h instead of
4515 * lto-streamer-out.c: Include diagnostic-core.h instead of
4517 * lto-streamer.c: Include diagnostic-core.h instead of
4519 (gate_lto_out): Use seen_error.
4520 * matrix-reorg.c: Include diagnostic-core.h instead of
4522 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
4523 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
4524 (gate_expand_omp, lower_omp_1): Use seen_error.
4525 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
4526 (rest_of_decl_compilation, rest_of_type_compilation,
4527 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
4528 * tree-cfg.c (label_to_block_fn): Use seen_error.
4529 * tree-inline.c (optimize_inline_calls): Use seen_error.
4530 * tree-mudflap.c (mudflap_finish_file): Use
4532 * tree-optimize.c (gate_all_optimizations,
4533 gate_all_early_local_passes, gate_all_early_optimizations): Use
4535 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
4536 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
4537 (varpool_remove_unreferenced_decls,
4538 varpool_assemble_pending_decls): Use seen_error.
4539 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
4540 (TOPLEV_H, DIAGNOSTIC_H): Update.
4541 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
4542 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
4543 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
4544 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
4545 coverage.o, lambda-code.o): Update dependencies.
4547 2010-05-25 Dodji Seketeli <dodji@redhat.com>
4550 * c-common.c (is_typedef_decl): Move this definition ...
4551 * tree.c (is_typedef_decl): ... here.
4552 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
4553 * c-common.h (is_typedef_decl): Move this declaration ...
4554 * tree.h (is_typedef_decl): ... here.
4555 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
4556 * dwarf2out.c (is_naming_typedef_decl): New function.
4557 (gen_tagged_type_die): Split out of ...
4558 (gen_type_die_with_usage): ... this function. When an anonymous
4559 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
4560 is emitted for the typedef.
4561 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
4562 anonymous tagged types.
4564 2010-05-27 Jason Merrill <jason@redhat.com>
4566 * print-tree.c (debug_vec_tree): New fn.
4567 (print_vec_tree): New fn.
4568 * tree.h: Declare them.
4569 * gdbinit.in (pvt): New command.
4571 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
4573 * gdbinit.in (pdd): New command.
4575 2010-05-27 Jan Hubicka <jh@suse.cz>
4577 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
4578 (update_caller_keys): Return early if there are no callers;
4579 only update fibheap when decresing the key.
4580 (update_callee_keys): Avoid recursion.
4581 (decide_inlining_of_small_functions): When badness does not match;
4582 re-insert into fibheap.
4584 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
4586 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
4587 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
4588 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
4589 (ALL_HOST_OBJS): Now a union of the above two.
4590 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
4591 all files in ALL_HOST_FRONTEND_OBJS.
4592 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
4594 * c-common.c: Pretend to be a backend file by undefining
4595 IN_GCC_FRONTEND (still need rtl.h here).
4597 2010-05-27 Jan Hubicka <jh@suse.cz>
4599 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
4600 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
4602 2010-05-27 Jan Hubicka <jh@suse.cz>
4604 * sched-ebb.c: Rename struct deps to struct deps_desc.
4606 * sel-sched-ir.c: Likewise.
4607 * sched-deps.c: Likewise.
4608 * sched-int.h: Likewise.
4609 * sched-rgn.c: Likewise.
4611 2010-05-27 Jon Beniston <jon@beniston.com>
4614 * config/lm32/lm32.h: Remove definition of
4615 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
4617 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
4620 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
4622 2010-05-27 Richard Guenther <rguenther@suse.de>
4624 PR tree-optimization/44284
4625 * tree-vect-stmts.c (vectorizable_assignment): Handle
4626 sign-changing conversions as simple copy.
4628 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
4630 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
4632 (__gthread_active_p): Check for pthread_create if compiling against
4635 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
4637 Support compilation for Android platform. Reimplement -mandroid.
4639 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
4640 (*android*): Set ANDROID_DEFAULT.
4641 (arm*-*-linux*): Include linux-android.h.
4642 (arm*-*-eabi*): Don't include previous -mandroid implementation.
4643 * config/arm/eabi.h: Remove, move Android-specific parts ...
4644 * config/linux-android.h: ... here. New file.
4645 * config/arm/eabi.opt: Rename to ...
4646 * config/linux-android.opt: ... this.
4647 (mandroid): Allow -mno-android option. Initialize based on
4649 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
4650 Move logic to corresponding LINUX_TARGET_* macros.
4651 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
4652 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
4653 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
4654 Android definitions.
4655 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
4656 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
4659 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
4661 Add support for Bionic C library
4663 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
4665 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
4666 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
4668 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
4669 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
4670 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
4671 to support multiple C libraries. Handle Bionic.
4672 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
4673 (BIONIC_DYNAMIC_LINKER64): Define.
4674 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
4676 (TARGET_HAS_SINCOS): Enable for Bionic.
4678 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
4679 the last option specified on command line take effect.
4680 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
4682 (mglibc, muclibc): Update.
4684 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
4685 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
4688 * doc/invoke.texi (-mglibc, -muclibc): Update.
4689 (-mbionic): Document.
4691 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4693 * c-common.h (c_register_addr_space): Add prototype.
4694 (ADDR_SPACE_KEYWORD): Remove.
4695 * c-common.c (c_register_addr_space): New function.
4696 (c_addr_space_name): Reimplement.
4697 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
4699 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
4700 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
4702 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
4703 Remove TARGET_ADDR_SPACE_KEYWORDS.
4705 2010-05-27 Joseph Myers <joseph@codesourcery.com>
4707 * input.c: New file.
4708 * input.h (main_input_filename): Move declaration to toplev.h.
4709 * toplev.c (input_location, line_table): Move to input.c
4710 * toplev.h (main_input_filename): Move declaration from input.h.
4711 * tree.c (expand_location): Move to input.c.
4712 * Makefile.in (OBJS-common): Add input.o.
4713 (input.o): Add dependencies.
4715 2010-05-27 Richard Guenther <rguenther@suse.de>
4717 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
4718 for non-existant files.
4719 (fork_execute): Mark args_name file as deleted.
4721 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
4724 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
4725 (narrow_signed_type): Likewise.
4727 2010-05-26 Jan Hubicka <jh@suse.cz>
4729 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
4730 edge only when checking is enabled; check using former_clone_of;
4731 check inline clones too.
4732 (cgraph_materialize_clone): Record former_clone_of pointer.
4733 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
4734 combining redirections; dump args_to_skip bitmap
4735 (cgraph_materialize_all_clones): Do no redirection here.
4736 * ipa-inline.c (inline_transform): Do redirection here.
4737 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
4740 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
4742 * config/avr/avr-c.c: Do not include regs.h.
4743 Include cpplib.h for cpp_define and tree.h for c-common.h.
4744 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
4745 * config/avr/t-avr: Fix dependencies for avr-c.o.
4747 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
4749 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
4750 string instead of SYMBOL_REF rtx.
4751 * rtl.h (set_stack_check_libfunc): Move prototype from here...
4752 * libfuncs.h: ...to here. Adjust for explow.c change.
4754 2010-05-26 Joseph Myers <joseph@codesourcery.com>
4756 * pretty-print.c: Don't include ggc.h.
4757 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
4758 (identifier_to_locale): Use them for allocation.
4759 * pretty-print.h (identifier_to_locale_alloc,
4760 identifier_to_locale_free): Declare.
4761 * toplev.c (alloc_for_identifier_to_locale): New.
4762 (general_init): Set identifier_to_locale_alloc and
4763 identifier_to_locale_free.
4764 * Makefile.in (pretty-print.o): Update dependencies.
4766 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
4768 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
4769 pointer types if they have different alignment or mode.
4771 2010-05-26 Anatoly Sokolov <aesok@post.ru>
4773 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
4774 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
4775 * config/sparc/sparc-protos.h (function_value): Remove declaration.
4776 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
4777 sparc_function_value_regno_p): New functions.
4778 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4779 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4780 (function_value): Rename to...
4781 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
4782 argument to 'outgoing'.
4783 (function_arg_record_value, function_arg_union_value,
4784 function_arg_vector_value): Update comment.
4786 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
4788 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
4789 (fde_needed_for_eh_p): New predicate.
4790 (output_call_frame_info): Use it throughout to decide whether FDEs
4791 are needed for EH purpose.
4792 (dwarf2out_begin_prologue): Reorder assignments.
4794 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
4796 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
4797 special case loop->header.
4798 (is_predicated): New.
4799 (if_convertible_loop_p): Call it.
4801 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
4803 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
4804 iterator in parameter. Do not generate code during the analysis.
4805 (tree_if_convert_cond_stmt): Removed.
4806 (tree_if_convert_stmt): Removed.
4807 (predicate_bbs): New.
4808 (if_convertible_loop_p): Call predicate_bbs.
4809 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
4810 now contains all the analysis part.
4812 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
4814 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
4815 statements in the analysis part.
4816 (tree_if_convert_stmt): Update comment.
4817 (remove_conditions_and_labels): New.
4818 (combine_blocks): Call remove_conditions_and_labels.
4819 (tree_if_conversion): Update comment.
4821 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
4823 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
4824 than 2 predecessors or more than 2 successors.
4826 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
4828 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
4829 of loops in which the data dependence analysis fails.
4831 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
4833 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
4834 CDI_POST_DOMINATORS.
4835 (tree_if_conversion): Same.
4837 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
4839 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
4841 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
4843 * tree-if-conv.c: Update copyright years. Fix comments.
4846 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
4848 * builtin-types.def (BT_INT128): New primitive type.
4849 (BT_UINT128): Likewise.
4850 * c-common.c (c_common_r): Add __int128 keyword.
4851 (c_common_type_for_size): Handle __int128.
4852 (c_common_type_for_mode): Likewise.
4853 (c_common_signed_or_unsigned_type): Likewise.
4854 (c_common_nodes_and_builtins): Add builtin type
4855 if target supports 128-bit integer scalar.
4856 * c-common.h (enum rid): Add RID_INT128.
4857 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
4858 if target supports 128-bit integer scalar.
4859 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
4860 (finish_declspecs): Likewise.
4861 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
4862 (c_token_starts_declspecs): Likewise.
4863 (c_parser_declspecs): Likewise.
4864 (c_parser_attributes): Likewise.
4865 (c_parser_objc_selector): Likewise.
4866 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
4867 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
4868 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
4869 * tree.c (make_or_reuse_type): Likewise.
4870 (make_unsigned_type): Likewise.
4871 (build_common_tree_nodes_2): Likewise.
4872 * tree.h (enum integer_type_kind): Add itk_int128 and
4873 itk_unsigned_int128.
4874 (int128_integer_type_node): New define.
4875 (int128_unsigned_type_node): New define.
4876 * doc/extend.texi: Add documentation about __int128 type.
4878 2010-05-26 Richard Guenther <rguenther@suse.de>
4880 * tree-ssa-sccvn.c (copy_nary): Adjust.
4881 (copy_phis): Rename to ...
4882 (copy_phi): ... this. Adjust.
4883 (copy_references): Rename to ...
4884 (copy_reference): ... this. Adjust.
4885 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
4886 result into the valid table.
4888 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
4890 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
4891 insn-config.h, insn-codes.h, recog.h, and optabs.h.
4893 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4895 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
4897 2010-05-26 Richard Guenther <rguenther@suse.de>
4899 * opts.c (common_handle_option): Handle OPT_Ofast.
4901 2010-05-26 Joseph Myers <joseph@codesourcery.com>
4903 * diagnostic.c: Don't include opts.h.
4904 (permissive_error_option): Define.
4905 (diagnostic_initialize): Take n_opts parameter. Allocate memory
4906 for classify_diagnostic. Don't use memset for
4907 classify_diagnostic. Initialize new and recently added fields.
4908 (diagnostic_classify_diagnostic): Use context->n_opts instead of
4910 (diagnostic_report_diagnostic): Pass context parameter to
4911 diagnostic_report_warnings_p. Use option_enabled and option_name
4913 (emit_diagnostic): Use permissive_error_option.
4914 (permerror): Likewise.
4915 * diagnostic.h: Don't include options.h.
4916 (struct diagnostic_context): Add n_opts, opt_permissive,
4917 inhibit_warnings, warn_system_headers, option_enabled and
4918 option_name fields. Change classify_diagnostic to a pointer.
4919 * opts-diagnostic.h: New file.
4920 * opts.c: Include opts-diagnostic.h.
4921 (common_handle_option): Set global_dc fields for -Wfatal-errors,
4922 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
4923 (option_name): New function.
4924 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
4925 (c_common_handle_option): Set global_dc->permissive for
4927 * c-common.c (c_cpp_error): Save and restore
4928 global_dc->warn_system_headers, not variable warn_system_headers.
4929 * toplev.c: Include opts-diagnostic.h.
4930 (general_init): Update call to diagnostic_initialize. Set
4931 global_dc->show_column, global_dc->option_enabled and
4932 global_dc->option_name.
4933 (process_options): Don't set global_dc fields here.
4934 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
4935 (diagnostic.o, opts.o, toplev.o): Update dependencies.
4937 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
4939 * config/picochip/picochip.md (movsi): Split a movsi from a
4942 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4944 * ggc-zone.c: Update copyright year.
4945 (poison_region): Mark memory for Valgrind as undefined before
4946 memset () call and inaccessible afterwards.
4947 (ggc_pch_total_size): Change type of i to int.
4949 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4951 * ggc-common.c (ggc_free_overhead): Allow empty slot.
4953 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4955 * ggc-common.c: Update copyright year.
4956 (ggc_rlimit_bound): Remove prototype. Compile only if
4957 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
4958 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
4959 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
4960 (ggc_min_heapsize_heuristic): Likewise.
4962 2010-05-26 Richard Guenther <rguenther@suse.de>
4964 PR rtl-optimization/44164
4965 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
4966 no-common access-path disambiguation.
4967 (indirect_ref_may_alias_decl_p): Adjust.
4968 (indirect_refs_may_alias_p): Likewise.
4969 (refs_may_alias_p_1): Likewise.
4971 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
4973 * c-typeck.c: Do not include expr.h.
4975 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
4977 * rtl.h (decl_default_tls_model): Move prototype from here...
4978 * output.h: ...to here.
4979 * c-decl.c: Do not include rtl.h.
4980 * c-pragma.c: Likewise.
4981 * c-parser.c: Likewise.
4982 * c-gimplify.c: Likewise. And also not hard-reg-set.
4983 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
4984 FIXME note for it. Add a FIXME note for expr.h.
4985 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
4986 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
4989 2010-05-26 Jakub Jelinek <jakub@redhat.com>
4992 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
4993 or total_size is larger than red zone size for non-V4 ABI, emit a
4994 stack_tie resp. frame_tie insn before stack pointer restore.
4995 * config/rs6000/rs6000.md (frame_tie): New insn.
4997 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
4999 * function.h (struct function): Add can_throw_non_call_exceptions bit.
5000 * lto-streamer-in.c (input_function): Stream it in.
5001 * lto-streamer-out.c (output_function): Stream it out.
5002 * function.c (allocate_struct_function): Set it.
5003 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
5004 for flag_non_call_exceptions.
5005 * cfgbuild.c (control_flow_insn_p): Likewise.
5006 (make_edges): Likewise.
5007 * cfgexpand.c (expand_stack_alignment): Likewise.
5008 * combine.c (distribute_notes): Likewise.
5009 * cse.c (cse_extended_basic_block): Likewise.
5010 * except.c (insn_could_throw_p): Likewise.
5011 * gcse.c (simple_mem): Likewise.
5012 * ipa-pure-const.c (check_call): Likewise.
5013 (check_stmt ): Likewise.
5014 * lower-subreg.c (lower-subreg.c): Likewise.
5015 * optabs.c (emit_libcall_block): Likewise.
5016 (prepare_cmp_insn): Likewise.
5017 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
5018 * postreload.c (rest_of_handle_postreload): Likewise.
5019 * reload1.c (reload_as_needed): Likewise.
5020 (emit_input_reload_insns): Likewise.
5021 (emit_output_reload_insns): Likewise.
5022 (fixup_abnormal_edges): Likewise.
5023 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
5024 * store-motion.c (find_moveable_store): Likewise.
5025 * tree-eh.c (stmt_could_throw_p): Likewise.
5026 (tree_could_throw_p): Likewise.
5027 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
5028 * config/arm/arm.c (arm_expand_prologue): Likewise.
5029 (thumb1_expand_prologue): Likewise.
5030 * config/rx/rx.md (cbranchsf4): Likewise.
5032 * config/s390/s390.c (s390_emit_prologue): Likewise.
5033 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
5034 (inline_forbidden_into_p): New predicate.
5035 (expand_call_inline): Use it to forbid inlining.
5036 (tree_can_inline_p): Likewise.
5038 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
5040 * config/i386/i386-c.c: Do not include rtl.h.
5041 * config/i386/t-i386: Update dependencies.
5043 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
5045 * attribs.c: Do not include rtl.h.
5046 * Makefile.in: Update dependencies.
5048 2010-05-25 Anatoly Sokolov <aesok@post.ru>
5050 * double-int.h (double_int_and): New.
5051 * combine.c (try_combine): Clean up, use double_int_* and
5052 immed_double_int_const functions.
5054 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5056 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
5057 stderr to /dev/null instead of grep -q.
5058 * configure: Regenerate.
5060 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
5062 * Makefile.in (EXCEPT_H): Fix typo.
5064 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
5066 * ira-build.c (update_conflict_hard_reg_costs): New.
5067 (ira_build): Call update_conflict_hard_reg_costs.
5069 2010-05-25 Jakub Jelinek <jakub@redhat.com>
5072 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
5074 (intersect_loc_chains): Walk the s2var's loc_chain together
5075 with s1node chain as long as the locations are equal, don't
5076 call find_loc_in_1pdv in that case.
5079 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
5080 (copy_bind_expr): ... instead of here.
5081 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
5082 if the block hasn't been remapped.
5083 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
5084 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
5086 2010-05-25 Richard Guenther <rguenther@suse.de>
5089 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
5090 out-of-bounds array accesses.
5092 2010-05-25 Richard Guenther <rguenther@suse.de>
5094 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
5095 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
5096 (run_gcc): Re-organize to make cleanup easier.
5098 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5100 * config/s390/s390.c (optimization_options): Fix and move the
5101 flag_prefetch_loop_arrays override ...
5102 (override_options): ... here.
5104 2010-05-25 Joseph Myers <joseph@codesourcery.com>
5106 * diagnostic.c: Don't include plugin.h.
5107 (diagnostic_report_diagnostic): Don't handle plugins specially
5108 here. Pass context to internal_error callback.
5109 * diagnostic.h (struct diagnostic_context): Add context parameter
5110 to internal_error callback.
5111 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
5112 * plugin.h (struct diagnostic_context): Declare.
5113 (warn_if_plugins, plugins_internal_error_function): Declare.
5114 * toplev.c (general_init): Set global_dc->internal_error.
5115 * Makefile.in (diagnostic.o): Update dependencies.
5117 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
5119 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
5120 * config/rs6000/t-darwin64: New.
5121 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
5124 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
5127 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
5128 match the original (and intended) behaviour before r159557. This
5129 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
5132 2010-05-25 Richard Guenther <rguenther@suse.de>
5134 * doc/invoke.texi: Document -Ofast.
5135 * target.h (struct gcc_target): Add handle_ofast.
5136 * target-def.h (TARGET_HANDLE_OFAST): Add.
5137 (TARGET_INITIALIZER): Adjust.
5138 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
5139 * common.opt (Ofast): Add.
5141 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
5143 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
5144 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
5146 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
5149 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
5150 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
5151 false_rtx. Use false_rtx to compute the correct *ptest for reversed
5152 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
5154 2010-05-25 Jakub Jelinek <jakub@redhat.com>
5156 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
5157 DW_OP_minus with negated offset instead of DW_OP_plus.
5158 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
5160 2010-05-25 Wei Guozhi <carrot@google.com>
5162 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
5163 tst instruction and a new alternative.
5164 * config/arm/constraints.md (Pu): New constraint.
5166 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
5168 * function.c (assign_stack_local_1): Initialize variable
5169 to avoid warning when bootstrapping at -O3.
5171 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
5173 * configure.ac (all_lang_makefiles): Remove everything related to it.
5174 * configure: Regenerate.
5175 * Makefile.in: Fix reference to ada Make-lang.in.
5176 Remove support for LANG_MAKEFILES.
5178 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
5179 Sandra Loosemore <sandra@codesourcery.com>
5181 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
5182 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
5183 description. Add arm_neon_fp16_ok.
5184 (Add Options): Add arm_neon and arm_neon_fp16.
5186 2010-05-24 Joseph Myers <joseph@codesourcery.com>
5188 * diagnostic.c: Don't include flags.h.
5189 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
5190 context parameters. Check flags in the context passed as a parameter.
5191 (diagnostic_build_prefix): Add context parameter. Check
5192 show_column flag in context.
5193 (diagnostic_action_after_output): Check fatal_errors flag in context.
5194 (diagnostic_report_current_module): Check show_column flag in context.
5195 (default_diagnostic_starter): Update call to
5196 diagnostic_build_prefix.
5197 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
5198 (emit_diagnostic): Pass context to permissive_error_kind.
5199 (permerror): Pass context to permissive_error_kind.
5200 * diagnostic.h (struct diagnostic_context): Add show_column,
5201 pedantic_errors, permissive and fatal_errors fields.
5202 (diagnostic_build_prefix): Update prototype.
5204 * toplev.c (process_options): Set flags in global_dc from
5205 flag_show_column, flag_pedantic_errors, flag_permissive,
5207 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
5208 to diagnostic_build_prefix.
5209 * Makefile.in (diagnostic.o): Update dependencies.
5211 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
5213 * config/i386/ia32intrin.h (__crc32q): Define only if
5214 __SSE4_2__ is defined.
5216 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
5220 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
5221 DECL_VISIBILITY_SPECIFIED.
5222 (emutls_decl): Set DECL_PRESERVE_P and copy
5223 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
5224 (emutls_finalize_control_var): New callback.
5225 (emutls_finish): Finalize emutls control variables.
5226 * toplev.c (compile_file): Move the call to emutls_finish ()
5227 before varpool_assemble_pending_decls ().
5229 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
5231 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
5232 added to the preprocessor condition.
5234 2010-05-24 Paul Brook <paul@codesourcery.com>
5236 * gengtype-lex.l: Add HARD_REG_SET.
5237 * expr.c (expand_expr_real_1): Record writes to hard registers.
5238 * function.c (rtl_data): Add asm_clobbers.
5239 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
5240 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
5241 Use crtl->asm_clobbers.
5243 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5245 * doc/makefile.texi (Makefile): Mention stages 'profile'
5246 and 'feedback' for profiledbootstrap.
5248 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
5251 * config/i386/i386.c (def_builtin): Properly check
5252 OPTION_MASK_ISA_64BIT.
5254 2010-05-23 Joseph Myers <joseph@codesourcery.com>
5256 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
5257 typedefs with different but compatible types. Allow duplicate
5258 typedefs with the same type except for pedantic non-C1X, but give
5259 warning for variably modified types.
5260 * c-typeck.c (tagged_types_tu_compatible_p,
5261 function_types_compatible_p, type_lists_compatible_p,
5262 comptypes_internal): Add parameter different_types_p; set
5263 *different_types_p for different but compatible types. All
5265 (comptypes_check_different_types): New.
5266 * c-tree.h (comptypes_check_different_types): Declare.
5268 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
5270 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
5271 * jump.c: Include basic-block.h.
5272 * profile.c: Likewise.
5273 * tree-profile.c: Likewise.
5274 * coverage.c: Likewise.
5275 * basic-block.h (optimize_function_for_size_p): Move to function.h.
5276 (optimize_function_for_speed_p): Likewise.
5277 * function.h (optimize_function_for_size_p,
5278 optimize_function_for_speed_p): Moved here from basic-block.h.
5279 * Makefile.in: Update dependencies.
5281 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5283 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
5284 before calling make; allow override through $MAKE.
5285 * doc/invoke.texi (Optimize Options): Document override.
5287 2010-05-23 Anatoly Sokolov <aesok@post.ru>
5289 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
5290 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5291 (rs6000_mode_dependent_address_ptr): Make static.
5292 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5293 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
5296 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
5299 * config/i386/i386.c: Make sure that the correct regparm is passed.
5301 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
5303 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
5304 * sbitmap.c: ...to here to internalize sbitmap element access.
5305 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
5306 Explain why basic-block.h is included.
5307 * function.h: Include tm.h for CUMULATIVE_ARGS.
5308 * Makefile.in: Update dependencies.
5310 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
5312 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
5314 * sbitmap.h (struct sbitmap_def): Do not typedef here.
5315 * sbitmap.c: Include sbitmap.h.
5316 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
5317 hard-reg-set.h. Split everything related to regsets out from here...
5318 * regset.h: ...to here. New file.
5319 * df.h: Include regset.h and sbitmap.h.
5320 * tree-flow.h: Likewise.
5321 * cfgloop.h: Likewise.
5322 * except.h: Do not include sbitmap.h. Include hashtab.h.
5323 * cgraph.h: Include vec.h and function.h.
5324 * reload.h (struct insn_chain): Change types of live_throughout
5325 and dead_or_set from regset_head to bitmap_head.
5326 (compute_use_by_pseudos): Be defined also if regset.h is not included.
5327 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
5328 spilled_regs from regset_head to bitmap_head to avoid dependency
5330 * sel-sched-ir.h: Include regset.h.
5331 * reload.c: Include df.h before reload.h.
5332 * caller-save.c: Likewise.
5333 * reload1.c: Likewise.
5335 (mark_elimination): Update type of r to bitmap, consistent with
5337 * dominance.c: Include bitmap.h.
5338 * modulo-sched.c: Include df.h.
5339 * cfganal.c: Include bitmap.h and sbitmap.h.
5340 * cfgbuild.c: Include sbitmap.h.
5341 * lcm.c: Include sbitmap.h.
5342 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
5343 * domwalk.c: Include sbitmap.h, exclude ggc.h.
5344 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
5345 * cselib.c: Include bitmap.h.
5346 * tree-optimize.c: Include regset.h.
5347 * stmt.c: Include bitmap.h.
5348 * Makefile.in: Update dependencies.
5350 2010-05-22 Jan Hubicka <jh@suse.cz>
5352 * cgraph.h (struct varpool_node): Add same_comdat_group.
5353 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
5355 (output_varpool): Update call of lto_output_varpool_node.
5356 (input_varpool): Read same_comdat_group pointer.
5357 (input_varpool_1): Fixup same_comdat_group pointer.
5358 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
5359 group is needed, all are.
5360 * varpool.c (varpool_remove_node): Remove node from same comdat group
5362 (varpool_analyze_pending_decls): Walk same comdat groups.
5364 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
5366 * rtl.h (union rtunion_def): Remove rt_bit member.
5367 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
5368 * print-rtl (print_rtx): Do not print the member.
5369 * gengtype.c (adjust_field_rtx_def): Do not handle it.
5370 * gengenrtl.c (type_from_format): Likewise.
5371 (accessor_from_format): Likewise.
5373 2010-05-22 Joseph Myers <joseph@codesourcery.com>
5375 * dbgcnt.c: Include toplev.h instead of errors.h.
5376 * ira-emit.c: Don't include errors.h.
5377 * ira.c: Include toplev.h instead of errors.h.
5378 * lto-compress.c: Include toplev.h instead of errors.h.
5379 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
5380 ira.o, dbgcnt.o): Update dependencies.
5382 2010-05-22 Richard Guenther <rguenther@suse.de>
5384 * gimple.c (gimple_types_compatible_p): Check type qualifications
5385 before merging pointer to complete and pointer to incomplete type.
5386 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
5387 we use our own resolution algorithm. The gold linker plugin
5388 doesn't do the job we want it to do here.
5390 2010-05-22 Anatoly Sokolov <aesok@post.ru>
5392 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5393 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5394 (sparc_mode_dependent_address_p): New function.
5396 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
5398 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
5400 * timevar.c: Do not include any core headers.
5401 (timevar_print): De-i18n-ize.
5402 (print_time): Likewise.
5403 * timevar.h (timevar_push, timevar_pop): Make inline functions.
5405 2010-05-21 Joseph Myers <joseph@codesourcery.com>
5407 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
5409 (diagnostic_initialize): Initialize x_data not last_function.
5410 (diagnostic_report_current_function): Move to tree-diagnostic.c.
5411 (default_diagnostic_starter): Call
5412 diagnostic_report_current_module not
5413 diagnostic_report_current_function.
5414 (diagnostic_report_diagnostic): Initialize x_data not
5416 (verbatim): Likewise.
5417 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
5419 (struct diagnostic_context): Change last_function to x_data.
5420 (diagnostic_auxiliary_data): Replace with
5421 diagnostic_context_auxiliary_data and
5422 diagnostic_info_auxiliary_data.
5423 (diagnostic_last_function_changed, diagnostic_set_last_function,
5424 diagnostic_report_current_function): Move to tree-diagnostic.h.
5425 (print_declaration, dump_generic_node, print_generic_stmt,
5426 print_generic_stmt_indented, print_generic_expr,
5427 print_generic_decl, debug_c_tree, dump_omp_clauses,
5428 print_call_name, debug_generic_expr, debug_generic_stmt,
5429 debug_tree_chain, default_tree_printer): Move to
5430 tree-pretty-print.h.
5431 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
5432 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
5433 gimple-pretty-print.h.
5434 * pretty-print.c: Don't include tree.h
5435 (pp_base_format): Don't handle %K here.
5436 (pp_base_tree_identifier): Move to tree-pretty-print.c.
5437 * pretty-print.h (text_info): Change abstract_origin to x_data.
5438 (pp_tree_identifier, pp_unsupported_tree,
5439 pp_base_tree_identifier): Move to tree-pretty-print.h.
5440 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
5441 tree-pretty-print.h: New files.
5442 * tree-pretty-print.c: Include tree-pretty-print.h.
5443 (percent_K_format): New. Moved from pretty-print.c.
5444 (pp_base_tree_identifier): Move from pretty-print.c.
5445 * c-objc-common.c: Include tree-pretty-print.h.
5446 (c_tree_printer): Handle %K here.
5447 * langhooks.c: Include tree-diagnostic.h.
5448 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
5449 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
5450 (default_tree_printer): Handle %K using percent_K_format.
5451 (general_init): Use default_tree_diagnostic_starter.
5452 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
5453 (free_lang_data): Use default_tree_diagnostic_starter.
5454 * c-pretty-print.c: Include tree-pretty-print.h.
5455 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
5456 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
5457 * dwarf2out.c: Include tree-pretty-print.h.
5458 * except.c: Include tree-pretty-print.h.
5459 * gimple-pretty-print.c: Include tree-pretty-print.h and
5460 gimple-pretty-print.h.
5461 * gimplify.c: Include tree-pretty-print.h.
5462 * graphite-poly.c: Include tree-pretty-print.h and
5463 gimple-pretty-print.h.
5464 * ipa-cp.c: Include tree-pretty-print.h.
5465 * ipa-inline.c: Include gimple-pretty-print.h.
5466 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
5467 * ipa-pure-const.c: Include gimple-pretty-print.h.
5468 * ipa-struct-reorg.c: Include tree-pretty-print.h and
5469 gimple-pretty-print.h.
5470 * ipa-type-escape.c: Include tree-pretty-print.h.
5471 * print-rtl.c: Include tree-pretty-print.h.
5472 * print-tree.c: Include gimple-pretty-print.h.
5473 * sese.c: Include tree-pretty-print.h.
5474 * tree-affine.c: Include tree-pretty-print.h.
5475 * tree-browser.c: Include tree-pretty-print.h.
5476 * tree-call-cdce.c: Include gimple-pretty-print.h.
5477 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
5478 * tree-chrec.c: Include tree-pretty-print.h.
5479 * tree-data-ref.c: Include tree-pretty-print.h and
5480 gimple-pretty-print.h.
5481 * tree-dfa.c: Include tree-pretty-print.h.
5482 * tree-if-conv.c: Include tree-pretty-print.h and
5483 gimple-pretty-print.h.
5484 * tree-inline.c: Include tree-pretty-print.h.
5485 * tree-into-ssa.c: Include tree-pretty-print.h and
5486 gimple-pretty-print.h.
5487 * tree-nrv.c: Include tree-pretty-print.h.
5488 * tree-object-size.c: Include tree-pretty-print.h and
5489 gimple-pretty-print.h.
5490 * tree-outof-ssa.c: Include tree-pretty-print.h and
5491 gimple-pretty-print.h.
5492 * tree-parloops.c: Include tree-pretty-print.h and
5493 gimple-pretty-print.h.
5494 * tree-predcom.c: Include tree-pretty-print.h and
5495 gimple-pretty-print.h.
5496 * tree-scalar-evolution.c: Include tree-pretty-print.h and
5497 gimple-pretty-print.h.
5498 * tree-sra.c: Include tree-pretty-print.h.
5499 * tree-ssa-address.c: Include tree-pretty-print.h.
5500 * tree-ssa-alias.c: Include tree-pretty-print.h.
5501 * tree-ssa-ccp.c: Include tree-pretty-print.h and
5502 gimple-pretty-print.h.
5503 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
5504 * tree-ssa-copy.c: Include tree-pretty-print.h and
5505 gimple-pretty-print.h.
5506 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
5507 * tree-ssa-dce.c: Include tree-pretty-print.h and
5508 gimple-pretty-print.h.
5509 * tree-ssa-dom.c: Include tree-pretty-print.h and
5510 gimple-pretty-print.h.
5511 * tree-ssa-dse.c: Include gimple-pretty-print.h.
5512 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
5513 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
5514 * tree-ssa-live.c: Include tree-pretty-print.h and
5515 gimple-pretty-print.h.
5516 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
5517 gimple-pretty-print.h.
5518 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
5519 gimple-pretty-print.h.
5520 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
5521 gimple-pretty-print.h.
5522 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
5523 gimple-pretty-print.h.
5524 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
5525 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
5526 * tree-ssa-operands.c: Include tree-pretty-print.h and
5527 gimple-pretty-print.h.
5528 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
5529 gimple-pretty-print.h.
5530 * tree-ssa-pre.c: Include tree-pretty-print.h and
5531 gimple-pretty-print.h.
5532 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
5533 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
5534 gimple-pretty-print.h.
5535 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
5536 gimple-pretty-print.h.
5537 * tree-ssa-sink.c: Include gimple-pretty-print.h.
5538 * tree-ssa-ter.c: Include tree-pretty-print.h and
5539 gimple-pretty-print.h.
5540 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
5541 * tree-ssa.c: Include tree-pretty-print.h and
5542 gimple-pretty-print.h.
5543 * tree-stdarg.c: Include gimple-pretty-print.h.
5544 * tree-switch-conversion.c: Include gimple-pretty-print.h.
5545 * tree-tailcall.c: Include tree-pretty-print.h and
5546 gimple-pretty-print.h.
5547 * tree-vect-data-refs.c: Include tree-pretty-print.h and
5548 gimple-pretty-print.h.
5549 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
5550 gimple-pretty-print.h.
5551 * tree-vect-loop.c: Include tree-pretty-print.h and
5552 gimple-pretty-print.h.
5553 * tree-vect-patterns.c: Include gimple-pretty-print.h.
5554 * tree-vect-slp.c: Include tree-pretty-print.h and
5555 gimple-pretty-print.h.
5556 * tree-vect-stmts.c: Include tree-pretty-print.h and
5557 gimple-pretty-print.h.
5558 * tree-vectorizer.c: Include tree-pretty-print.h.
5559 * tree-vrp.c: Include tree-pretty-print.h and
5560 gimple-pretty-print.h.
5561 * value-prof.c: Include tree-pretty-print.h and
5562 gimple-pretty-print.h.
5563 * var-tracking.c: Include tree-pretty-print.h.
5564 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
5565 (tree-diagnostic.o): New dependencies.
5566 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
5567 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
5568 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
5569 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
5570 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
5571 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
5572 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
5573 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
5574 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
5575 tree-ssa-address.o, tree-ssa-loop-niter.o,
5576 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
5577 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
5578 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
5579 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
5580 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
5581 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
5582 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
5583 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
5584 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
5585 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
5586 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
5587 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
5588 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
5589 tree-switch-conversion.o, var-tracking.o, value-prof.o,
5590 cfgexpand.o, pretty-print.o): Update dependencies.
5592 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
5594 * tree-ssa-structalias.c: Remove tm_p.h from include.
5596 2010-05-21 Jeff Law <law@redhat.com>
5598 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
5600 2010-05-21 Jason Merrill <jason@redhat.com>
5602 * tree-eh.c (cleanup_is_dead_in): New.
5603 (lower_try_finally): Don't generate a dead cleanup region.
5604 (lower_cleanup): Likewise.
5606 2010-05-21 Jakub Jelinek <jakub@redhat.com>
5609 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
5610 unchain each use from the cyclic next_regno_use chain first.
5612 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
5614 * real: Do not include gmp.h, mpfr.h, and mpc.h.
5615 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
5616 (real_value_negate, real_value_abs): New prototypes.
5617 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
5618 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
5619 new include file for interface between MPFR and REAL_VALUE_TYPE.
5620 * real.c: Include realmpfr.h.
5621 (real_arithmetic2): Remove legacy function.
5622 (real_value_negate): New.
5623 (real_value_abs): New.
5624 (mfpr_from_real, real_from_mpfr): Move from here...
5625 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
5626 * builtins.c: Include realmpfr.h.
5627 * fold-const.c: Include realmpfr.h.
5628 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
5629 (fold_negate_const): Likewise.
5630 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
5631 * toplev.c: Include realmpfr.h.
5632 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
5633 and real_value_negate.
5634 * fixed-value.c (check_real_for_fixed_mode): Likewise.
5635 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
5636 (vfp3_const_double_index): Likewise.
5637 (arm_print_operand): Likewise.
5638 * Makefile.in: Update dependencies.
5640 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5642 * config/s390/s390.c (override_options): Increase the default
5643 of max-completely-peel-times.
5645 2010-05-21 Julian Brown <julian@codesourcery.com>
5646 Mark Mitchell <mark@codesourcery.com>
5648 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
5649 sibling calls for Thumb-1.
5650 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
5651 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
5653 (*call_insn, *call_value_insn): Don't use for Thumb-2.
5654 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
5656 (return): New expander.
5657 (*arm_return): New name for ARM return insn.
5658 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
5660 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
5662 * config.gcc (sparc64-*-rtems*): New target.
5664 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
5666 * tree.c (build_function_decl_skip_args): Fix grammar.
5667 (build_function_type_list_1): Fix typos, adjust formatting.
5669 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
5671 * tree.h: Include real.h and fixed-value.h as basic datatypes.
5672 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
5673 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
5674 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
5675 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
5676 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
5677 tree-pretty-print.c, tree-loop-distribution.c,
5678 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
5679 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
5680 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
5681 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
5682 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
5683 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
5684 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
5685 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
5686 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
5687 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
5688 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
5689 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
5690 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
5691 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
5692 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
5693 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
5694 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
5695 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
5696 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
5697 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
5698 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
5699 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
5700 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
5701 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
5702 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
5703 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
5704 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
5705 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
5706 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
5707 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
5708 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
5709 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
5710 config/score/score7.c, config/score/score.c, config/arm/arm.c,
5711 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
5712 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
5713 config/bfin/bfin.c: Clean up redundant includes.
5714 * Makefile.in: Update accordingly.
5716 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
5719 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
5720 statement has no arguments.
5722 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
5725 * varasm.c (emutls_decl): Merge attributes to new decl.
5727 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
5730 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
5731 around the uniquized constructor if its type requires a conversion.
5733 2010-05-21 Jakub Jelinek <jakub@redhat.com>
5736 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
5737 at -O0 goto_locus of any of the incoming edges differs from
5738 goto_locus of outgoing edge, or gimple_location of any of the
5741 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
5743 * ira.c (ira_non_ordered_class_hard_regs): Define.
5744 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
5745 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
5746 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
5747 cost of unaligned hard regs when allocating multi-reg pseudos.
5749 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
5751 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
5752 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
5753 for TARGET_NO_FLOAT.
5754 * config/mips/mips.c (mips_file_start): Expand conditional expression
5755 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
5756 (mips_override_options): Move -mno-float override -msoft-float and
5758 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
5759 Condition(TARGET_SUPPORTS_NO_FLOAT).
5760 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
5761 __mips_no_float here.
5762 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
5763 (TARGET_SUPPORTS_NO_FLOAT): Define.
5764 * config/mips/sdemtk.opt: Delete.
5766 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
5768 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
5770 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
5773 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
5774 * configure: Regenerate.
5775 * config.in: Regenerate.
5776 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
5777 instead of sahf only for 64bit targets.
5779 2010-05-20 Jakub Jelinek <jakub@redhat.com>
5782 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
5783 setup_ref_regs for DEBUG_INSNs.
5785 2010-05-20 Jan Hubicka <jh@suse.cz>
5788 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
5790 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
5793 * df-scan.c (df_ref_compare): Stabilize sort.
5795 2010-05-20 Jakub Jelinek <jakub@redhat.com>
5797 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
5798 argument. Don't use DW_OP_piece if offset is non-zero,
5799 put offset into second DW_OP_bit_piece argument.
5800 (dw_sra_loc_expr): Adjust callers. For memory expressions
5803 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
5806 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
5807 settings for 16-bit-constant "addo" alternative.
5809 2010-05-19 James E. Wilson <wilson@codesourcery.com>
5811 * config/mips/mips-dsp.md (add<DSPV:mode>3,
5812 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
5815 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
5816 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
5819 2010-05-19 Joseph Myers <joseph@codesourcery.com>
5821 * diagnostic.c (FLOAT, FFS): Don't undefine.
5822 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
5823 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
5826 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
5828 * combine.c (propagate_for_debug): Call make_compound_operation
5829 on the source value.
5830 (try_combine): When implementing a split chosen by find_split_point,
5831 either copy i2src or set it to null. Assert that i2src is not null
5832 before substituting into CALL_INSN_FUNCTION_USAGE.
5834 2010-05-19 Anatoly Sokolov <aesok@post.ru>
5836 * double-int.h (double_int_ior): New function.
5837 * tree.h (build_int_cst_wide_type): Remove.
5838 * tree.c (build_int_cst_wide_type): Remove.
5839 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
5840 of build_int_cst_wide_type.
5841 * stor-layout.c (set_sizetype): (Ditto.).
5842 * dojump.c (do_jump): Use build_int_cstu instead of
5843 build_int_cst_wide_type.
5845 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
5847 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
5848 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
5849 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
5850 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
5851 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
5852 propagate the 'data' argument to copy_tree_r.
5853 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
5854 Propagate 'data' argument to walk_tree.
5855 (copy_if_shared): New function.
5856 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
5857 (unmark_visited): New function.
5858 (unshare_body): Call copy_if_shared instead of doing it manually.
5859 (unvisit_body): Call unmark_visited instead of doing it manually.
5861 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
5863 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
5864 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
5865 * hooks.c: Likewise.
5866 * target-def.h (TARGET_FOLD_BUILTIN): Define to
5867 hook_tree_tree_int_treep_bool_null.
5868 * target.h (struct gcc_target): Update signature of fold_builtin
5870 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
5871 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
5872 instead of the call expression.
5873 (fold_builtin_call_array): Pass n and argarray directly.
5874 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
5876 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
5877 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
5878 `i' and use it in place of `arity'.
5879 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
5880 Dereference `args' directly.
5881 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
5883 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5885 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5887 (Directives): Document optional dg-require-effective-target
5890 2010-05-19 Richard Guenther <rguenther@suse.de>
5893 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
5895 2010-05-19 Richard Guenther <rguenther@suse.de>
5897 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
5898 * common.opt (fwhopr=): New.
5899 * opts.c (common_handle_option): Handle OPT_fwhopr.
5900 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
5901 * collect2.c (main): Match -fwhopr*.
5902 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
5903 Execute ltrans stage in parallel when jobs is bigger than 1.
5905 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5907 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
5908 pentiumpro on Solaris 8/x86 with Sun as.
5909 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
5911 (gcc_cv_as_ix86_quad): Check for .quad directive.
5912 * configure: Regenerate.
5913 * config.in: Regenerate.
5914 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
5916 2010-05-19 Martin Jambor <mjambor@suse.cz>
5918 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
5919 also for indirect edges. Actual printing moved...
5920 (ipa_print_node_jump_functions_for_edge): ...here.
5921 (ipa_compute_jump_functions): Renamed to
5922 ipa_compute_jump_functions_for_edge and made static.
5923 (ipa_compute_jump_functions): New function.
5924 (make_edge_direct_to_target): Check if the number of arguments on
5925 the newly direct edge is the same as the number of parametrs of
5927 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
5928 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
5929 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
5930 analysis functions unconditionally, call the new
5931 ipa_analyze_params_uses on the node instead of every edge.
5933 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
5935 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
5937 (dump_mem_ref): Adopt debug code to handle a tree as step. This
5938 also checks for a constant int vs. non-constant but
5939 loop-invariant steps.
5940 (find_or_create_group): Change the sort algorithm to only consider
5941 steps that are constant ints.
5942 (idx_analyze_ref): Adopt code to handle a tree instead of a
5943 HOST_WIDE_INT for step.
5944 (gather_memory_references_ref): Handle tree instead of int and be
5945 prepared to see a NULL_TREE.
5946 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
5947 prefetches if the step cannot be calculated at compile time.
5948 (issue_prefetch_ref): Issue prefetches for non-constant but
5949 loop-invariant steps.
5951 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
5954 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
5956 * tree.h (build_call_list): Remove.
5957 * tree.c (build_call_list): Remove.
5959 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
5961 * tree.h (build_call_list): Remove.
5962 * tree.c (build_call_list): Remove.
5964 2010-05-18 Jan Hubicka <jh@suse.cz>
5966 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
5968 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
5970 PR rtl-optimization/43332
5971 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
5973 2010-05-18 Anatoly Sokolov <aesok@post.ru>
5975 * tree.h (build_int_cstu): Implement as static inline.
5976 * tree.c (build_int_cstu): Remove function.
5977 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
5980 2010-05-18 Richard Guenther <rguenther@suse.de>
5983 * lto-wrapper.c (verbose): New variable. Initialize from -v.
5984 (debug): Initialize from -save-temps.
5985 (collect_execute): Print command-line when verbose.
5986 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
5987 for ltrans invocation. Produce -dumpbase flag again.
5988 (process_args): Remove.
5990 * collect2.c (maybe_run_lto_and_relink): Only pass object
5991 files to lto-wrapper.
5992 * gcc.c (LINK_COMMAND_SPEC): Likewise.
5994 2010-05-18 Jan Hubicka <jh@suse.cz>
5996 * opts.c (decode_options): Do not disable whopr at ipa_cp.
5997 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
5999 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
6002 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
6004 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
6007 2010-05-18 Jakub Jelinek <jakub@redhat.com>
6010 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
6013 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
6015 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
6016 lto-macho as lto_binary_reader.
6018 * darwin.c (darwin_asm_named_section): Do not add assembler comment
6019 after .section directive; just print it before the directive instead.
6021 2010-05-17 Jan Hubicka <jh@suse.cz>
6023 * cgraph.c (cgraph_create_virtual_clone): Only check
6024 versionable_function_p when not in wpa and checking is enabled.
6025 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
6026 there are no more functions to materialize.
6028 2010-05-17 Jan Hubicka <jh@suse.cz>
6030 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
6031 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
6033 (output_cgraph): Call output_cgraph_opt_summary.
6034 (input_cgrpah): Call input_cgraph_opt_summary.
6035 (output_cgraph_opt_summary_p, output_node_opt_summary,
6036 input_node_opt_summary, input_cgraph_opt_section): New functions.
6037 * lto-section-in.c (lto_section_name): Add cgraphopt.
6038 * tree-inline.c (tree_function_versioning): Handle parm_num.
6039 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
6040 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
6042 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
6044 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
6045 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
6046 the insn to prefetch ratio heuristic to loops with known trip count.
6048 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
6050 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
6051 (schedule_prefetches): Do not generate a prefetch if the unroll factor
6052 is far from what is required by the prefetch.
6054 2010-05-17 Jan Hubicka <jh@suse.cz>
6056 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
6057 (ipcp_estimate_growth): Likewise.
6058 (ipcp_const_param_count): Likewise.
6059 (ipcp_insert_stage): Likewise.
6060 * ipa-prop.c (visit_load_for_mod_analysis): New function.
6061 (visit_store_addr_for_mod_analysis): Set used flag.
6062 (ipa_detect_param_modifications): Set used flag for SSE params;
6063 update use of walk_stmt_load_store_addr_ops.
6064 (ipa_print_node_params): Print used flag.
6065 (ipa_write_node_info): Stream used flag.
6066 (ipa_read_node_info): Likewise.
6067 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
6068 (ipa_is_param_used): New function.
6069 (lto_ipa_fixup_call_notes): Remove unused declaration.
6071 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6074 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
6075 * configure: Regenerate.
6076 * config.in: Regenerate.
6077 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
6078 !HAVE_AS_IX86_REP_LOCK_PREFIX.
6079 Don't emit whitespace.
6080 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
6081 (*rep_movsi): Likewise.
6082 (*rep_movsi_rex64): Likewise.
6083 (*rep_movqi): Likewise.
6084 (*rep_movqi_rex64): Likewise.
6085 (*rep_stosdi_rex64): Likewise.
6086 (*rep_stossi): Likewise.
6087 (*rep_stossi_rex64): Likewise.
6088 (*rep_stosqi): Likewise.
6089 (*rep_stosqi_rex64): Likewise.
6090 (*cmpstrnqi_nz_1): Use {%;} after repz.
6091 (*cmpstrnqi_nz_rex_1): Likewise.
6092 (*cmpstrnqi_1): Likewise.
6093 (*cmpstrnqi_rex_1): Likewise.
6094 (*strlenqi_1): Use {%;} after repnz.
6095 (*strlenqi_rex_1): Likewise.
6096 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
6097 (*sync_compare_and_swap<mode>): Likewise.
6098 (sync_double_compare_and_swap<mode>): Likewise.
6099 (*sync_double_compare_and_swapdi_pic): Likewise.
6100 (sync_old_add<mode>): Likewise.
6101 (sync_add<mode>): Likewise.
6102 (sync_sub<mode>): Likewise.
6103 (sync_<code><mode>): Likewise.
6105 2010-05-17 Martin Jambor <mjambor@suse.cz>
6107 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
6108 otr_token and polymorphic.
6109 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
6110 (cgraph_clone_edge): Copy the above fields.
6111 * tree.c (get_binfo_at_offset): New function.
6112 * tree.h (get_binfo_at_offset): Declare.
6113 * ipa-prop.h (enum jump_func_type): Added known_type jump function
6114 type, reordered items, updated comments.
6115 (union jump_func_value): Added base_type field, reordered fields.
6116 (enum ipa_lattice_type): Moved down in the file.
6117 (struct ipa_param_descriptor): New field polymorphic.
6118 (ipa_is_param_polymorphic): New function.
6119 * ipa-prop.c: Include gimple.h and gimple-fold.h.
6120 (ipa_print_node_jump_functions): Print known type jump functions.
6121 (compute_complex_pass_through): Renamed to...
6122 (compute_complex_assign_jump_func): this.
6123 (compute_complex_ancestor_jump_func): New function.
6124 (compute_known_type_jump_func): Likewise.
6125 (compute_scalar_jump_functions): Create known type and complex ancestor
6127 (ipa_note_param_call): New parameter polymorphic, set the corresponding
6128 flag in the call note accordingly.
6129 (ipa_analyze_call_uses): Renamed to...
6130 (ipa_analyze_indirect_call_uses): this. New parameter target, define
6131 variable var only in the block where it is used.
6132 (ipa_analyze_virtual_call_uses): New function.
6133 (ipa_analyze_call_uses): Likewise.
6134 (combine_known_type_and_ancestor_jfs): Likewise.
6135 (update_jump_functions_after_inlining): Implemented handling of a
6136 number of new jump function types combination.
6137 (print_edge_addition_message): Removed.
6138 (make_edge_direct_to_target): New function.
6139 (try_make_edge_direct_simple_call): Likewise.
6140 (try_make_edge_direct_virtual_call): Likewise.
6141 (update_call_notes_after_inlining): Renamed to...
6142 (update_indirect_edges_after_inlining): this. Moved edge creation for
6143 indirect calls to try_make_edge_direct_simple_call, also calls
6144 try_make_edge_direct_virtual_call for virtual calls.
6145 (ipa_print_node_params): Changed the header message.
6146 (ipa_write_jump_function): Stream also known type jump functions.
6147 (ipa_read_jump_function): Likewise.
6148 (ipa_write_indirect_edge_info): Stream new fields in
6149 cgraph_indirect_call_info.
6150 (ipa_read_indirect_edge_info): Likewise.
6151 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
6154 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6156 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
6158 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
6160 * tree.h (CALL_EXPR_ARGS): Delete.
6161 (call_expr_arglist): Delete.
6162 * tree.c (call_expr_arglist): Delete.
6163 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
6164 targetm.fold_builtin.
6165 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
6166 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
6167 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
6168 arglist parameter. Use CALL_EXPR_ARG.
6169 (picochip_expand_builtin_3op): Likewise.
6170 (picochip_expand_builtin_2opvoid): Likewise.
6171 (picochip_expand_array_get): Likewise.
6172 (picochip_expand_array_put): Likewise.
6173 (picochip_expand_array_testport): Likewise.
6174 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
6175 rather than arglist.
6176 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
6178 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
6179 than TREE_VALUE and TREE_CHAIN.
6180 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
6181 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
6184 2010-05-17 Jakub Jelinek <jakub@redhat.com>
6187 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
6188 to have no fallthru edge.
6191 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
6192 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
6193 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
6194 add BARRIER after previous bb if needed.
6196 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
6198 * tree.c (build_function_type_list_1): Remove bogus assert condition.
6200 2010-05-17 Alan Modra <amodra@gmail.com>
6202 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
6203 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
6204 with copy_reg rtx param.
6205 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
6206 Correct cases where code for ABI_V4 did not initialise the reg
6207 used to access frame. Also leave frame_reg_rtx as sp for large
6208 frames that save no regs.
6210 2010-05-17 Martin Jambor <mjambor@suse.cz>
6213 * tree-sra.c (create_access_replacement): New parameter rename, mark
6214 the replaement for renaming only when it is true.
6215 (get_access_replacement): Pass true in the rename parameter of
6216 create_access_replacement.
6217 (get_unrenamed_access_replacement): New function.
6218 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
6219 replacement declaration from it.
6221 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
6223 * function.c (try_fit_stack_local, add_frame_space): New static
6225 (assign_stack_local_1): Use them. Look for opportunities to use
6226 space previously wasted on alignment.
6227 * function.h (struct frame_space): New.
6228 (struct rtl_data): Add FRAME_SPACE_LIST member.
6229 * reload1.c (something_was_spilled): New static variable.
6230 (alter_reg): Set it.
6231 (reload): Test it in addition to testing if the frame size changed.
6233 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
6235 * config/s390/s390.c: Define sane prefetch settings and activate
6236 flag_prefetch_loop_arrays on -O3.
6237 * config/s390/s390.h: Declare that read can use write prefetch.
6239 2010-05-17 Jakub Jelinek <jakub@redhat.com>
6241 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
6244 2010-05-16 Jan Hubicka <jh@suse.cz>
6246 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
6247 function body; do not check stdarg field of struct function.
6249 2010-05-16 Jan Hubicka <jh@suse.cz>
6251 * cgraph.c (dump_cgraph_node): Dump versionable flag.
6252 * cgraph.h (cgraph_local_info): Add versionable flag.
6253 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
6254 (ipcp_versionable_function_p): Use it.
6255 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
6258 2010-05-16 Jan Hubicka <jh@suse.cz>
6260 * cgraph.c (cgraph_clone_node): Take decl argument and insert
6261 clone into hash when it is different from orig.
6262 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
6263 * cgraph.h (cgraph_clone_node): Update prototype.
6264 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
6265 (lto_cgraph_encoder_delete): Delete body map.
6266 (lto_cgraph_encoder_size): Move to header.
6267 (lto_cgraph_encoder_encode_body_p,
6268 lto_set_cgraph_encoder_encode_body): New.
6269 (lto_output_node): Do not take written_decls argument; output clone_of
6271 (add_node_to): Add include_body_argument; call
6272 lto_set_cgraph_encoder_encode_body on master of the clone.
6273 (add_references): Update use of add_node_to.
6274 (compute_ltrans_boundary): Likewise.
6275 (output_cgraph): Do not create written_decls bitmap.
6276 (input_node): Take nodes argument; stream in clone_of correctly.
6277 (input_cgraph_1): Update use of input_node.
6278 * lto-streamer-out.c (lto_output): Use encoder info to decide
6279 what bodies to output.
6280 * ipa-inline.c (cgraph_clone_inlined_nodes,
6281 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
6282 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
6283 (lto_cgraph_encoder_size): Define here.
6284 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
6287 2010-05-16 Richard Guenther <rguenther@suse.de>
6289 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
6291 * ipa-type-escape.c (gate_type_escape_vars): Run when
6292 -fipa-struct-reorg runs.
6293 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
6294 * common.opt (fipa-type-escape): Remove.
6296 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
6298 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
6299 (decode_options): Likewise.
6300 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
6302 2010-05-16 Jan Hubicka <jh@suse.cz>
6304 * ipa.c (function_and_variable_visibility): Also bring local all
6307 2010-05-16 Richard Guenther <rguenther@suse.de>
6309 * alias.c (nonoverlapping_memrefs_p): Remove use of
6310 IPA type-escape information.
6312 2010-05-16 Joseph Myers <joseph@codesourcery.com>
6314 * c-common.c (c_common_reswords): Add _Static_assert for C.
6315 * c-parser.c (c_token_starts_declaration,
6316 c_parser_next_token_starts_declaration,
6317 c_parser_static_assert_declaration_no_semi,
6318 c_parser_static_assert_declaration): New.
6319 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
6320 Handle static assertions if static_assert_ok.
6321 (c_parser_external_declaration, c_parser_declaration_or_fndef,
6322 c_parser_compound_statement_nostart, c_parser_label,
6323 c_parser_for_statement, c_parser_objc_methodprotolist,
6324 c_parser_omp_for_loop): All callers of
6325 c_parser_declaration_or_fndef changed.
6326 (c_parser_struct_declaration): Handle static assertions.
6327 (c_parser_compound_statement_nostart): Use
6328 c_parser_next_token_starts_declaration and
6329 c_token_starts_declaration to detect start of declarations.
6330 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
6333 2010-05-16 Anatoly Sokolov <aesok@post.ru>
6335 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
6336 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
6337 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6338 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6339 (mmix_function_outgoing_value): Rename to...
6340 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
6341 (mmix_function_value_regno_p): Make static.
6342 (mmix_libcall_value): New function.
6343 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
6344 mmix_function_value_regno_p): Remove declaration.
6346 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
6348 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
6349 BUILT_IN_ALLOCA if stack checking is enabled.
6351 2010-05-16 Richard Guenther <rguenther@suse.de>
6353 * var-tracking.c (vars_copy_1): Inline ...
6354 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
6355 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
6356 (variable_merge_over_cur): Adjust. Merge asserts.
6357 (variable_merge_over_src): Likewise.
6358 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
6359 (variable_post_merge_new_vals): Merge asserts.
6360 (variable_post_merge_perm_vals): Likewise.
6361 (find_mem_expr_in_1pdv): Likewise.
6362 (dataflow_set_different_value): Remove.
6363 (onepart_variable_different_p): Merge asserts.
6364 (variable_different_p): Likewise.
6365 (dataflow_set_different_1): Inline ...
6366 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
6367 (emit_notes_for_differences_1): Merge asserts.
6369 2010-05-16 Richard Guenther <rguenther@suse.de>
6371 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
6372 * optabs.c (libfunc_decl_hash): Likewise.
6373 * varasm.c (emutls_decl): Likewise.
6375 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
6377 * c-decl.c: Don't include gimple.h.
6378 (merge_decls): Do not copy gimple_body.
6380 2010-05-15 Jason Merrill <jason@redhat.com>
6382 * c.opt: Add -fnothrow-opt.
6384 2010-05-15 Jan Hubicka <jh@suse.cz>
6386 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
6388 * passes.c (ipa_write_summaries): Write all analyzed nodes.
6390 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
6392 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
6393 * Makefile.in: Add it.
6394 Fix all other Makefile dependencies for changes below.
6395 * tree.h: Include it instead of defining VEC primitives here.
6396 * gimple.h: Likewise.
6398 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
6399 * except.h: Include vecir.h, break dependence on tree.h.
6401 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
6403 * tree-iterator.c: ...to here.
6404 * tree-iterator.h: Fix file introduction comment. Add extern markers.
6406 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
6408 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
6409 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
6410 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
6411 tree-mudflap.h, and target.h.
6412 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
6413 predict.h, tree-inline.h, gimple.h, and langhooks.h.
6414 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
6415 Add FIXME for why gimple.h is still included (should be unnecessary
6416 since GCC 4.5 gimplification unit-at-a-time).
6417 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
6418 * c-pragma.c: Add FIXME for why function.h needs to be included just
6419 for cfun, at front-end level.
6420 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
6421 Do not include ggc.h, but include vecprim.h for VEC(char).
6422 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
6423 Explain why target.h is included.
6424 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
6425 Explain why gimple.h is included.
6426 * c-ppoutput.c: Do not include tm.h.
6427 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
6428 * c-parses.c: Explain why rtl.h is included, and that this (and only
6429 this) is also why tm.h must be included.
6430 Do not include except.h.
6431 * c-lang.c: Do not include ggc.h.
6433 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
6435 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
6437 2010-05-15 Joseph Myers <joseph@codesourcery.com>
6439 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
6440 unions by default if those structs and unions have no tags. Do
6441 not condition anonymous struct and unions handling on flag_iso.
6442 Allow anonymous structs and unions for C1X.
6443 (finish_struct): Do not diagnose lack of named fields when
6444 anonymous structs and unions present for C1X. Accept flexible
6445 array members in structure with anonymous structs or unions but no
6446 directly named fields.
6447 * doc/extend.texi (Unnamed Fields): Update.
6449 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
6451 * gimple.h (compare_field_offset): Rename into...
6452 (gimple_compare_field_offset): ...this.
6453 * gimple.c (compare_field_offset): Rename into...
6454 (gimple_compare_field_offset): ...this. Compare the full access if
6455 the offset is self-referential.
6456 (gimple_types_compatible_p): Adjust for above renaming.
6457 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
6458 DECL_NONADDRESSABLE_P flag of fields before merging them.
6460 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
6462 * tree.h (ctor_to_list): Delete.
6463 * tree.c (ctor_to_list): Delete.
6465 2010-05-15 Jan Hubicka <jh@suse.cz>
6467 * ipa-reference.c: Include toplev.h
6468 (is_proper_for_analysis): Only add to all_module_statics
6470 (write_node_summary_p, stream_out_bitmap,
6471 ipa_reference_write_optimization_summary,
6472 ipa_reference_read_optimization_summary): New.
6473 (struct ipa_opt_pass_d pass_ipa_reference): Add
6474 optimization summary streaming.
6475 * lto-cgraph.c (referenced_from_this_partition_p,
6476 reachable_from_this_partition_p): New functions.
6477 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
6478 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
6479 * opts.c (decode_options): Enable ipa_reference.
6480 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
6481 * lto-streamer.h (referenced_from_this_partition_p,
6482 reachable_from_this_partition_p): Declare.
6484 2010-05-15 Richard Guenther <rguenther@suse.de>
6486 PR tree-optimization/44038
6487 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
6488 taking the address of a V_C_E of a constant.
6490 2010-05-14 Jan Hubicka <jh@suse.cz>
6492 * tree.h (memory_identifier_string): Remove.
6493 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
6494 (ipa_reference_global_vars_info_d): Remove statics_not_read and
6495 statics_not_written.
6496 (ipa_reference_optimization_summary_d): New structure.
6497 (ipa_reference_optimization_summary_t): New type and vector.
6498 (ipa_reference_vars_info_d): Embedd structures instead of using
6500 (reference_vars_to_consider): Remove out of GGC space.
6501 (module_statics_escape): Remove.
6502 (global_info_obstack): Rename to ...
6503 (optimization_summary_obstack): ... this one.
6504 (initialization_status_t): Remove.
6505 (memory_identifier_string): Remove.
6506 (get_reference_vars_info): Fix indenting.
6507 (set_reference_vars_info): Likewise.
6508 (get_reference_optimization_summary): New.
6509 (set_reference_optimization_summary): New.
6510 (get_global_reference_vars_info): Remove.
6511 (ipa_reference_get_read_global): Remove.
6512 (ipa_reference_get_written_global): Remove.
6513 (ipa_reference_get_not_read_global): Update.
6514 (ipa_reference_get_not_written_global): Update.
6515 (is_proper_for_analysis): Outlaw addressable.
6516 (propagate_bits): Update for new datastructures.
6517 (analyze_variable): Remove.
6518 (init_function_info): Update for new datastructures.
6519 (clean_function_local_data): Remove.
6520 (clean_function): Remove.
6521 (copy_global_bitmap): Use optimizations_summary_obstack.
6522 (duplicate_node_data): Duplicate optimization summary only.
6523 (remove_node_data): Remove optimization summary only.
6524 (generate_summary): Do not analyze variables; do not compute
6525 module_statics_escape; do not prune solutions by it.
6526 (read_write_all_from_decl): Fix typos in comments.
6527 (propagate): Doscover readonly and nonaddressable first;
6528 update for new datastructures; share global bitmaps.
6529 * ipa-reference.h (ipa_reference_get_read_global,
6530 ipa_reference_get_written_global): Remove.
6531 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
6532 * Makefile.in: Remove ipa-refereference from GT files.
6534 2010-05-14 Jakub Jelinek <jakub@redhat.com>
6537 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
6538 for all SYMBOL_REF_DECLs.
6540 2010-05-14 Jan Hubicka <jh@suse.cz>
6542 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
6543 (varpool_all_refs_explicit_p): New inline function.
6544 * ipa-reference.c: Update comment.
6545 (module_statics_written): Remove.
6546 (get_static_decl): Remove.
6547 (ipa_init): Do not initialize module_statics_written.
6548 (analyze_function): Likewise.
6549 (generate_summary): Likewise; do not compute module_statics_readonly
6550 and do not update variable flags.
6551 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
6552 * ipa.c: Inlucde flags.h
6553 (cgraph_local_node_p): New.
6554 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
6555 promote functions to local.
6556 (ipa_discover_readonly_nonaddressable_vars): New function.
6557 (function_and_variable_visibility): Use cgraph_local_node_p.
6558 * varpool.c (varpool_finalize_decl): Set force_output for
6559 DECL_PRESERVE_P vars.
6561 2010-05-14 Jan Hubicka <jh@suse.cz>
6563 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
6565 2010-05-14 Richard Guenther <rguenther@suse.de>
6567 PR tree-optimization/44119
6568 * tree-ssa-pre.c (eliminate): Properly mark replacement of
6569 a PHI node necessary.
6571 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
6573 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
6575 2010-05-14 Jason Merrill <jason@redhat.com>
6578 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
6579 (gimple_call_set_nothrow): New.
6580 * gimple.c (gimple_build_call_from_tree): Call it.
6581 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
6584 * gimplify.c (gimplify_seq_add_stmt): No longer static.
6585 * gimple.h: Declare it.
6586 * gimple.c (gimple_build_eh_filter): No ops.
6588 2010-05-14 Jan Hubicka <jh@suse.cz>
6590 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
6591 nodes already in queue.
6592 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
6595 2010-05-14 Jakub Jelinek <jakub@redhat.com>
6598 * cfgexpand.c (expand_debug_expr): If non-memory op0
6599 has BLKmode, return NULL.
6601 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
6603 * config.gcc: Add support for --with-cpu option for bdver1.
6604 * config/i386/i386.h (TARGET_BDVER1): New macro.
6605 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
6606 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
6607 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
6608 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
6609 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
6610 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
6611 (processor_type): Add PROCESSOR_BDVER1.
6612 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
6613 processor_type in config/i386/i386.h.
6614 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
6615 movaps <reg, reg> instead of movapd <reg, reg> when replacing
6616 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
6617 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
6618 to emit packed xor instead of packed double/packed integer
6619 xor for SSE and AVX when moving a zero value.
6620 * config/i386/sse.md: Add check for
6621 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
6622 movapd/movdqa for SSE and AVX.
6623 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
6624 single logical operations i.e and, or and xor instead of packed double
6625 logical operations for SSE and AVX.
6626 * config/i386/i386-c.c (ix86_target_macros_internal):
6627 Add PROCESSOR_BDVER1.
6628 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
6629 (has_fma4, has_xop): New.
6630 * config/i386/i386.c (bdver1_cost): New variable.
6631 (m_BDVER1): New macro.
6632 (m_AMD_MULTIPLE): Add m_BDVER1.
6633 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
6634 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
6635 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
6636 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
6637 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
6638 x86_tune_sse_partial_reg_dependency,
6639 x86_tune_sse_unaligned_load_optimal,
6640 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
6641 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
6642 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
6643 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
6644 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
6645 Enable/disable for bdver1.
6646 (processor_target_table): Add bdver1_cost.
6647 (cpu_names): Add bdver1.
6648 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
6649 processor_alias_table.
6650 (ix86_expand_vector_move_misalign): Change.
6651 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
6652 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
6653 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
6654 of movupd/movdqu for SSE and AVX.
6655 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
6656 (ix86_tune_adjust_cost): Add code for bdver1.
6657 (standard_sse_constant_opcode): Add check for
6658 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
6659 of packed double xor for SSE and AVX.
6661 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
6663 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
6666 2010-05-14 Tristan Gingold <gingold@adacore.com>
6668 * toplev.c (default_debug_hooks): Remove this variable.
6669 (process_options): Remove assignments to default_debug_hooks.
6671 2010-05-14 Martin Jambor <mjambor@suse.cz>
6673 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
6674 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
6675 * langhooks.h (struct lang_hooks_for_decls): Removed field
6677 * tree.c (free_lang_data): Remove assignment to
6678 lang_hooks.fold_obj_type_ref.
6679 * tree.def (OBJ_TYPE_REF): Update comment.
6681 2010-05-14 Richard Guenther <rguenther@suse.de>
6683 PR tree-optimization/44124
6684 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
6686 2010-05-14 Alan Modra <amodra@gmail.com>
6689 * config/rs6000/rs6000.c (struct machine_function): Reorder
6690 fields for better packing. Add lr_save_state.
6691 (rs6000_ra_ever_killed): Return lr_save_state if set.
6692 (rs6000_emit_eh_reg_restore): Set lr_save_state.
6694 2010-05-13 Jan Hubicka <jh@suse.cz>
6696 * varpool.c (decide_is_variable_needed): Drop code checking
6697 TREE_SYMBOL_REFERENCED.
6699 2010-05-13 Jan Hubicka <jh@suse.cz>
6701 * final.c (output_addr_const): Do not call mark_decl_referenced.
6702 * cgraphunit.c (process_function_and_variable_attributes): Use
6703 mark_needed_node dirrectly.
6704 (assemble_thunk): Do not call mark_decl_referenced.
6706 2010-05-13 Anatoly Sokolov <aesok@post.ru>
6708 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
6710 2010-05-13 Jeff Law <law@redhat.com>
6712 * ira-conflicts.c (print_allocno_conflicts): New function broken out
6714 (print_conflicts): Call print_allocno_conflicts.
6716 2010-05-13 Jakub Jelinek <jakub@redhat.com>
6719 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
6722 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
6724 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
6725 t-mingw-w64 or t-mingw-w32 for multilib configuration.
6726 * config/i386/t-mingw-w32: New.
6727 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
6729 2010-05-13 Martin Jambor <mjambor@suse.cz>
6731 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
6733 * gimple-fold.c (get_base_binfo_for_type): New function.
6734 (gimple_get_relevant_ref_binfo): Likewise.
6735 (gimple_fold_obj_type_ref_known_binfo): Likewise.
6736 (gimple_fold_obj_type_ref): Likewise.
6737 (fold_gimple_call): Simplify condition for folding virtual calls
6738 and call gimple_fold_obj_type_ref.
6739 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
6740 (gimple_fold_obj_type_ref_known_binfo): Likewise.
6742 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
6744 * config/rs6000/rs6000-protos.h
6745 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
6746 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
6747 (rs6000_debug_mode_dependent_address)
6748 (rs6000_mode_dependent_address_ptr): Likewise.
6750 2010-05-13 Jakub Jelinek <jakub@redhat.com>
6753 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
6755 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
6756 * tree-sra.c (create_access_replacement): Call unshare_expr before
6757 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
6758 * dwarf2out.c: Include tree-flow.h.
6759 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
6760 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
6761 Handle DW_OP_bit_piece.
6762 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
6763 construct_piece_list, adjust_piece_list): New functions.
6764 (add_var_loc_to_decl): Handle SRA optimized variables.
6765 Adjust for var_loc_note to loc field renaming.
6766 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
6767 in VAR_LOCATION note.
6768 (new_loc_descr_op_bit_piece): New function.
6769 (dw_sra_loc_expr): New function.
6770 (dw_loc_list): Use it. Don't handle the last range after the
6771 loop, handle it inside of the loop. Adjust for var_loc_note
6772 to loc field renaming.
6773 (add_location_or_const_value_attribute): Only special case
6774 single entry loc lists if loc is NOTE_P. Adjust for
6775 var_loc_note to loc field renaming.
6776 (dwarf2out_var_location): Don't set newloc->var_loc_note
6777 and newloc->next here.
6779 2010-05-12 Jan Hubicka <jh@suse.cz>
6781 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
6783 * cgraph.h (cgraph_only_called_directly_p,
6784 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
6785 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
6786 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
6788 * ipa.c (cgraph_remove_unreachable_nodes): Use
6789 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
6791 * tree-inline.c (copy_bb): Check address_taken flag.
6792 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
6793 externally_visible flag.
6795 2010-05-12 Jason Merrill <jason@redhat.com>
6799 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
6800 * sdbout.c (plain_type_1): Likewise.
6801 * dwarf2out.c (is_base_type): Likewise.
6802 (gen_type_die_with_usage): Likewise. Generate
6803 DW_TAG_unspecified_type for any LANG_TYPE.
6805 2010-05-12 Jan Hubicka <jh@suse.cz>
6807 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
6809 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
6810 (cgraph_clone_edge): Update.
6811 (cgraph_node_remove_callees): Remove indirect calls too.
6812 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
6813 (cgraph_create_indirect_edge): Update prototype.
6814 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
6815 is_proper_for_analysis.
6816 (add_new_function, visited_nodes, function_insertion_hook_holder,
6817 get_local_reference_vars_info, mark_address_taken, mark_address,
6818 mark_load, mark_store, check_asm_memory_clobber, check_call,
6819 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
6820 (ipa_init): Do not initialize visited_nodes;
6821 function_insertion_hook_holder.
6822 (analyze_variable): Rewrite.
6823 (analyze_function): Rewrite.
6824 (copy_local_bitmap): Remove.
6825 (duplicate_node_dat): Do not duplicate local info.
6826 (generate_summary): Simplify to only walk cgraph.
6827 (write_node_summary_p, ipa_reference_write_summary,
6828 ipa_reference_read_summary): Remove.
6829 (propagate): Do not remove function insertion;
6831 (pass_ipa_reference): NULLify summary handling fields.
6832 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
6833 (input_edge): Input ecf_flags.
6834 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
6835 (update_indirect_edges_after_inlining): Ignore edges with unknown
6838 2010-05-12 Sriraman Tallam <tmsriram@google.com>
6840 * implicit-zee.c: New file.
6841 * tree-pass.h (pass_implicit_zee): Declare.
6842 * passes.c (init_optimization_passes): Add zee pass.
6843 * common.opt (fzee): New flag.
6844 * timevar.def (TV_ZEE): Define.
6845 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
6847 * Makefile.in (implicit-zee.o): Add new build file.
6849 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
6850 Nathan Froyd <froydnj@codesourcery.com>
6852 * c-common.c (sync_resolve_params): Remove write-only variable.
6854 2010-05-12 Anatoly Sokolov <aesok@post.ru>
6856 * target.h (struct gcc_target): Add mode_dependent_address_p field.
6857 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
6858 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
6859 * targhooks.c (default_mode_dependent_address_p): New function.
6860 * targhooks.h (default_mode_dependent_address_p): Declare function.
6861 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
6862 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
6863 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
6864 target hook. Change return type to bool.
6865 * recog.h (mode_dependent_address_p): Change return type to bool.
6867 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
6868 Nathan Froyd <froydnj@codesourcery.com>
6870 * tree-mudflap.c (build_function_type_0, build_function_type_1,
6871 build_function_type_2, build_function_type_3): Remove.
6872 (mudflap_init): Use build_function_type_list.
6874 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
6875 Nathan Froyd <froydnj@codesourcery.com>
6877 * coverage.c (build_fn_info_value): Call build_constructor instead of
6878 build_constructor_from_list.
6879 (build_ctr_info_value): Likewise.
6880 (build_gcov_info): Likewise.
6882 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
6884 * tree.c (build_constructor): Compute TREE_CONSTANT for the
6885 resultant constructor.
6886 (build_constructor_single): Don't set TREE_CONSTANT.
6887 (build_constructor_from_list): Don't compute TREE_CONSTANT.
6889 2010-05-12 Jan Hubicka <jh@suse.cz>
6891 * cgraph.h (struct varpool_node): Add aux.
6892 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
6893 * varpool.c (varpool_remove_node): Do not remove initializer.
6894 (varpool_reset_queue): Export.
6895 (varpool_finalize_decl): Volatile vars are forced to be output.
6896 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
6898 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
6899 process_references, varpool_can_remove_if_no_refs): New functions.
6900 (cgraph_remove_unreachable_nodes): Handle variables too.
6902 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
6905 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
6907 2010-05-12 Jakub Jelinek <jakub@redhat.com>
6910 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
6911 change value of ORT_TASK.
6912 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
6913 (omp_notice_threadprivate_variable): New function.
6914 (omp_notice_variable): Call it for threadprivate variables.
6915 If enclosing ctx is a task, print enclosing task rather than
6916 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
6917 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
6918 if task has untied clause.
6921 * dwarf2out.c (base_type_die): Don't add name attribute here.
6922 (modified_type_die): Instead of sizetype use
6923 its underlying original type. If a DW_TAG_base_type doesn't
6924 have name added, add __unknown__.
6925 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
6926 always call force_type_die instead.
6928 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
6930 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
6931 for __stack_chk_guard.
6933 2010-05-11 Jakub Jelinek <jakub@redhat.com>
6935 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
6936 don't call start_source_file debug hook here...
6937 (finish_options): ... but here, after outputting predefined and
6938 command line defines and undefs.
6941 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
6943 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
6944 optimizing away empty bb with no successors, move over its
6945 footer chain to fallthru predecessor.
6946 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
6947 (rtl_split_edge): For asm goto call patch_jump_insn even if
6948 splitting fallthru edge.
6951 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
6952 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
6953 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
6954 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
6958 * c-parser.c (c_parser_expression): Mark LHS of a comma
6959 expression as read if it is a decl, handled component or
6960 COMPOUND_EXPR with that on the RHS.
6961 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
6962 if it is a decl or handled component.
6964 2010-05-11 Jan Hubicka <jh@suse.cz>
6966 * lto-symtab.c (lto_symtab_free): New function.
6967 * lto-streamer.h (lto_symtab_free): Declare.
6969 2010-05-11 Jan Hubicka <jh@suse.cz>
6971 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
6972 that if function is needed it is reachable.
6973 (lto_output_node): See if it the function is reachable or referenced.
6974 (output_cgraph): Update call of lto_output_node.
6975 * lto-streamer.h (reachable_from_other_partition_p): Declare.
6977 2010-05-11 Jan Hubicka <jh@suse.cz>
6979 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
6982 2010-05-11 Jan Hubicka <jh@suse.cz>
6984 PR tree-optimize/44063
6985 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
6987 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
6989 (estimate_function_body_sizes): Compute sizes even when disregarding.
6991 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
6993 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
6995 2010-05-11 Jan Hubicka <jh@suse.cz>
6997 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
6998 into every boundary.
7000 2010-05-11 Jan Hubicka <jh@suse.cz>
7002 * matrix-reorg.c (matrix_reorg): Rebuild edges.
7004 2010-05-11 Jan Hubicka <jh@suse.cz>
7006 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
7007 lto_streamer_cache_delete): Put nodes into heap.
7008 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
7011 2010-05-11 Jan Hubicka <jh@suse.cz>
7013 * cgraphbuild.c (cgraph_rebuild_references): New.
7014 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
7016 * cgraph.h (cgraph_rebuild_references): Declare.
7017 * tree-inline.c (tree_function_versioning): Use it.
7018 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
7020 2010-05-11 Jan Hubicka <jh@suse.cz>
7022 * cgraph.c: Include ipa-utils.h
7023 (cgraph_create_virtual_clone): Update references.
7024 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
7026 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
7028 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
7029 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
7032 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
7034 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
7036 2010-05-11 Jakub Jelinek <jakub@redhat.com>
7038 * gcc.c (execute): For -### don't quote arguments that
7039 contain just alphanumerics and _/-. characters.
7040 * doc/invoke.texi: Document that change for -###.
7043 * df-problems.c (struct dead_debug): Add to_rescan field.
7044 (dead_debug_init): Clear to_rescan field.
7045 (dead_debug_finish): Rescan all debug insns in to_rescan
7046 bitmap and free the bitmap.
7047 (dead_debug_insert_before): Instead of rescanning debug insns
7048 immediately queue their rescanning until dead_debug_finish.
7049 (df_note_bb_compute): After dead_debug_add do continue instead
7052 2010-05-10 Jakub Jelinek <jakub@redhat.com>
7055 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
7056 clear also INSN_REG_USE_LIST.
7058 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7060 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
7062 2010-05-10 Jan Hubicka <jh@suse.cz>
7064 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
7067 2010-05-10 Jan Hubicka <jh@suse.cz>
7069 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
7071 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
7072 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
7073 (lto_streamer_cache_create): Init alloc pool.
7074 (lto_streamer_cache_delete): Free alloc pool.
7075 * lto-streamer.h: Include alloc pool.
7076 (lto_streamer_cache_d): Use alloc pool.
7077 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
7079 2010-05-10 Jan Hubicka <jh@suse.cz>
7081 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
7082 * cgraphbuild.c: Include except.h
7083 (record_type_list, record_eh_tables): New function.
7084 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
7086 2010-05-10 Jan Hubicka <jh@suse.cz>
7088 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
7089 __frame_dummy_init_array_entry, force_to_data): Attribute as used
7092 2010-05-10 Michael Matz <matz@suse.de>
7094 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
7095 (can_reassociate_p): Use FLOAT_TYPE_P.
7096 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
7097 (vect_force_simple_reduction): ... this.
7098 * tree-parloops.c (gather_scalar_reductions): Use
7099 vect_force_simple_reduction.
7100 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
7101 vect_is_simple_reduction, add modify argument, if true rewrite
7102 "a-b" into "a+(-b)".
7103 (vect_is_simple_reduction, vect_force_simple_reduction): New
7105 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
7107 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
7108 Vladimir Makarov <vmakarov@redhat.com>
7110 PR rtl-optimization/44012
7111 * ira-build.c (remove_unnecessary_allocnos): Nullify
7112 regno_allocno_map of the removed allocno.
7114 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7116 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
7118 * configure: Regenerate.
7120 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7122 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
7124 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
7125 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
7127 * configure: Regenerate.
7129 2010-05-10 Richard Guenther <rguenther@suse.de>
7131 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
7132 marked if the entry identifier is marked.
7134 2010-05-10 Richard Guenther <rguenther@suse.de>
7136 * c-common.c (struct c_common_attributes): Add fnspec attribute.
7137 (handle_fnspec_attribute): New function.
7138 * gimple.h (gimple_call_return_flags): Declare.
7139 (gimple_call_arg_flags): Likewise.
7140 * gimple.c (gimple_call_arg_flags): New function.
7141 (gimple_call_return_flags): Likewise.
7142 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
7144 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
7146 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
7147 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
7149 (make_heapvar_for): ... this new function.
7150 (handle_rhs_call): Handle fnspec attribute argument specifiers.
7151 (handle_lhs_call): Likewise.
7152 (find_func_aliases): Adjust.
7154 2010-05-10 Richard Guenther <rguenther@suse.de>
7156 PR tree-optimization/44050
7157 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
7159 2010-05-10 Wei Guozhi <carrot@google.com>
7162 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
7164 2010-05-09 Joseph Myers <joseph@codesourcery.com>
7167 * c-typeck.c (lookup_field): Take a type directly. Update
7169 (build_component_ref): Update call to lookup_field.
7170 (set_init_label): Use lookup_field to find initialized field.
7171 Handle returned list of fields like a sequence of designators.
7173 2010-05-09 Richard Guenther <rguenther@suse.de>
7176 * fold-const.c (tree_single_nonzero_warnv_p): Properly
7177 handle &FUNCTION_DECL.
7179 2010-05-09 Joseph Myers <joseph@codesourcery.com>
7182 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
7183 structures and unions recursively.
7184 (detect_field_duplicates): Move duplicate detection with a hash to
7185 detect_field_duplicates_hash. Always use a hash if anonymous
7186 structures or unions are present.
7187 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
7190 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
7193 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
7194 detect Atom, Core 2 and Core i7.
7196 2010-05-09 Richard Guenther <rguenther@suse.de>
7198 * gcc.c (store_arg): Handle temporary file deletion for
7201 2010-05-09 Richard Guenther <rguenther@suse.de>
7204 * ipa-inline.c (estimate_function_body_sizes): Return after
7205 disregarding inline limits.
7207 2010-05-09 Richard Guenther <rguenther@suse.de>
7209 * gcc.c (store_arg): Revert last change.
7211 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
7214 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
7215 (optimize_ops_list): Call it.
7217 2010-05-08 Richard Guenther <rguenther@suse.de>
7219 PR tree-optimization/44030
7220 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
7221 NECESSARY flag if we propagate from a inserted expression.
7223 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
7225 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
7226 domain types as equal if they are both PLACEHOLDER_EXPRs.
7228 2010-05-08 Richard Guenther <rguenther@suse.de>
7230 * lto-wrapper.c (run_gcc): Remove linker output from
7231 command line for LTRANS invocation.
7233 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
7235 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
7236 lto-macho as lto_binary_reader.
7237 * target.h (struct gcc_target): New hooks lto_start and lto_end.
7238 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
7239 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
7240 in lto_start and lto_end calls.
7241 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
7243 (scan_prog_file): Update is_elf_or_coff call.
7244 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
7246 * collect2.c (main): Fix enum comparison.
7248 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
7250 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
7251 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
7252 and TARGET_ASM_LTO_END.
7253 * darwin.c: Include obstack.h and lto-streamer.h.
7254 (lto_section_names_offset, lto_section_names_obstack,
7255 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
7257 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
7258 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
7259 to a temporary file.
7260 (darwin_asm_lto_end): New function. Restore asm_out_file.
7261 (darwin_asm_named_section): For LTO sections, replace the name with
7262 the offset of the section name in a string table, and build this
7264 (darwin_file_start): Initialize global vars for LTO support.
7265 (darwin_file_end): If output to asm_out_file was redirected, append it
7266 to the proper asm_out_file here. Add the section names section.
7268 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
7270 * c-pragma.c (pending_weak_d, pending_weak): New.
7271 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
7272 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
7273 handle_pragma_weak): Update the uses of pending_weaks.
7275 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7277 PR documentation/44016
7278 * doc/standards.texi (Standards): Link to unversioned
7279 cxx0x_status.html page.
7281 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
7284 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
7285 in addition to TREE_USED, to avoid "set but unused" warnings.
7287 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
7289 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
7290 (is_loop_prefetching_profitable): Do not insert prefetches
7291 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
7292 times the prefetch ahead distance.
7294 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
7296 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
7297 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
7298 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
7301 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
7303 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
7304 a diagnostic info when the insn-to-mem ratio is too small.
7306 2010-05-07 Richard Guenther <rguenther@suse.de>
7308 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
7310 (store_arg): Queue temp_filename for deletion instead of
7313 2010-05-07 Richard Guenther <rguenther@suse.de>
7315 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
7316 (run_gcc): Handle LTRANS phase invocation.
7317 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
7319 2010-05-07 Jakub Jelinek <jakub@redhat.com>
7321 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
7322 this is also meaningful on PARM_DECLs and RESULT_DECLs.
7324 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7326 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
7328 2010-05-07 Richard Guenther <rguenther@suse.de>
7330 PR tree-optimization/44020
7331 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
7332 code when PRE is not yet initialized.
7334 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7336 * config/mips/dbxmdebug.h: Remove.
7337 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
7339 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
7341 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
7342 with null pointer and also warn about ordered comparison of zero with
7345 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
7347 * graphite-blocking.c
7348 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
7349 * graphite-clast-to-gimple.c
7350 (clast_to_gcc_expression): Same.
7351 (precision_for_value): Same.
7352 (precision_for_interval): Same.
7353 (gcc_type_for_interval): Same.
7354 (graphite_create_new_guard): Same.
7355 (compute_bounds_for_level): Same.
7356 (graphite_create_new_loop_guard): Same.
7357 * graphite-interchange.c
7358 (build_linearized_memory_access): Same.
7359 (pdr_stride_in_loop): Same.
7360 (memory_strides_in_loop_1): Same.
7361 (memory_strides_in_loop): Same.
7362 (extend_scattering): Same.
7363 (psct_scattering_dim_for_loop_depth): Same.
7364 (pbb_number_of_iterations): Same.
7366 (debug_iteration_domains): Same.
7368 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
7369 (ppl_set_inhomogeneous_gmp): Same.
7370 (ppl_strip_loop): Same.
7371 (ppl_lexico_compare_linear_expressions): Same.
7372 (ppl_read_polyhedron_matrix): Same.
7373 (ppl_max_for_le_pointset): Same.
7375 (ppl_read_polyhedron_matrix): Same.
7376 (tree_int_to_gmp): Same.
7377 (gmp_cst_to_tree): Same.
7378 (ppl_set_inhomogeneous): Same.
7379 (ppl_set_inhomogeneous_tree): Same.
7380 (ppl_set_coef): Same.
7381 (ppl_set_coef_tree): Same.
7382 * graphite-sese-to-poly.c
7383 (build_pbb_scattering_polyhedrons): Same.
7384 (build_scop_scattering): Same.
7385 (scan_tree_for_params_right_scev): Same.
7386 (scan_tree_for_params): Same.
7387 (find_params_in_bb): Same.
7388 (find_scop_parameters): Same.
7389 (add_upper_bounds_from_estimated_nit): Same.
7390 (build_loop_iteration_domains): Same.
7391 (add_condition_to_domain): Same.
7392 (pdr_add_memory_accesses): Same.
7394 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
7396 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
7397 CLooG's value_* macros to their respective mpz_* counterparts.
7398 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
7399 (graphite_create_new_loop_guard): Same.
7400 * graphite-interchange.c (build_linearized_memory_access): Same.
7401 (pdr_stride_in_loop): Same.
7402 (memory_strides_in_loop_1): Same.
7403 (1st_interchange_profitable_p): Same.
7404 * graphite-poly.c (extend_scattering): Same.
7405 (psct_scattering_dim_for_loop_depth): Same.
7406 (pbb_number_of_iterations): Same.
7407 (pbb_number_of_iterations_at_time): Same.
7408 * graphite-poly.h (new_1st_loop): Same.
7409 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
7410 (oppose_constraint): Same.
7411 (insert_constraint_into_matrix): Same.
7412 (ppl_set_inhomogeneous_gmp): Same.
7413 (ppl_set_coef_gmp): Same.
7414 (ppl_strip_loop): Same.
7415 (ppl_lexico_compare_linear_expressions): Same.
7416 (ppl_max_for_le_pointset): Same.
7417 (ppl_min_for_le_pointset): Same.
7418 (ppl_build_realtion): Same.
7419 * graphite-ppl.h (gmp_cst_to_tree): Same.
7420 (ppl_set_inhomogeneous): Same.
7421 (ppl_set_inhomogeneous_tree): Same.
7422 (ppl_set_coef): Same.
7423 (ppl_set_coef_tree): Same.
7424 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
7425 (build_scop_scattering): Same.
7426 (add_value_to_dim): Same.
7427 (scan_tree_for_params_right_scev): Same.
7428 (scan_tree_for_params_int): Same.
7429 (scan_tree_for_params): Same.
7430 (find_params_in_bb): Same.
7431 (find_scop_parameters): Same.
7432 (add_upper_bounds_from_estimated_nit): Same.
7433 (build_loop_iteration_domains): Same.
7434 (create_linear_expr_from_tree): Same.
7435 (add_condition_to_domain): Same.
7436 (pdr_add_memory_accesses): Same.
7438 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
7439 Jason Merrill <jason@redhat.com>
7441 * c-common.c (c_common_reswords): Add nullptr.
7442 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
7443 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
7444 (gen_type_die_with_usage): Likewise.
7445 * dbxout.c (dbxout_type): Likewise.
7446 * sdbout.c (plain_type_1): Likewise.
7448 2010-05-06 Jason Merrill <jason@redhat.com>
7450 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
7451 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
7453 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
7455 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
7456 stripping WITH_SIZE_EXPR.
7457 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
7460 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7462 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
7463 list of obsolete configurations.
7464 Disabled check for obsolete configurations.
7465 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
7466 Removed support for previous versions.
7467 * config/mips/iris.h: Removed.
7468 * config/mips/iris5.h: Removed.
7469 * config/mips/iris6.h: Merged old iris.h contents.
7470 (TARGET_IRIX): Removed.
7471 (DRIVER_SELF_SPECS): Removed mabi=32.
7472 (IDENT_ASM_OP): Removed undef.
7473 (STARTFILE_SPEC): Removed mabi=32.
7474 (ENDFILE_SPEC): Likewise.
7475 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
7476 (MACHINE_TYPE): Update for IRIX 6.5.
7477 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
7478 TARGET_IRIX by TARGET_IRIX6.
7479 (mips_file_start): Likewise.
7480 (mips_output_external): Remove IRIX 5/6 O32 support.
7481 (mips_output_function_prologue): Likewise.
7482 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
7484 (TARGET_CPU_CPP_BUILTINS): Likewise.
7485 (TARGET_IRIX): Removed.
7486 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
7487 (MULTILIB_DIRNAMES): Removed 32.
7488 (MULTILIB_OSDIRNAMES): Removed ../lib.
7489 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
7490 (Specific, mips-sgi-irix5): Document removal.
7491 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
7492 Remove references to older IRIX 6 releases and the O32 ABI.
7494 2010-05-06 Jakub Jelinek <jakub@redhat.com>
7497 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
7498 instead of DF_REF_REAL_REG.
7500 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
7503 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
7504 handling to still return true for x64 targets.
7506 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
7508 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
7510 2010-05-06 Jan Hubicka <jh@suse.cz>
7512 PR tree-optimization/43791
7513 * ipa-inline.c (update_caller_keys): Remove bogus
7514 disregard_inline_limits check.
7516 2010-05-06 Michael Matz <matz@suse.de>
7518 PR tree-optimization/43984
7519 * tree-ssa-pre.c (inserted_phi_names): Remove.
7520 (inserted_exprs): Change to bitmap.
7521 (create_expression_by_pieces): Set bits, don't append to vector.
7522 (insert_into_preds_of_block): Don't handle inserted_phi_names.
7523 (eliminate): Don't look at inserted_phi_names, remove deleted
7524 insns from inserted_exprs.
7525 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
7526 (init_pre, fini_pre): Allocate and free bitmaps.
7527 (execute_pre): Insert insns on edges before elimination.
7529 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
7531 * tree.c (initializer_zerop): Handle STRING_CST.
7533 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
7536 * doc/invoke.texi (Wimplicit): Document as C only.
7537 * opts.c (common_handle_option): Add argument kind.
7538 (handle_option): Rename as read_cmdline_option. Factor out code to...
7539 (handle_option): ... here. New.
7540 (handle_options): Rename as read_cmdline_options.
7541 (decode_options): Update call.
7542 (set_option): Use option index instead of option pointer. Classify
7543 diagnostics correctly.
7544 (enable_warning_as_error): Call handle_option.
7545 * opts.h (set_option): Update declaration.
7546 (handle_option): Declare.
7547 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
7548 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
7549 * c-opts.c (set_Wimplicit): Delete.
7550 (c_family_lang_mask): New static constant.
7551 (c_common_handle_option): Add argument kind. Use handle_option
7552 instead of set_Wimplicit.
7553 (c_common_post_options): warn_implicit and warn_implicit_int
7554 are disabled by default.
7555 * c-common.c (warn_implicit): Do not define here.
7556 * c-common.h (warn_implicit): Do not declare here.
7557 (c_common_handle_option): Update declaration.
7558 * lto-opts.c (lto_reissue_options): Update call to set_option.
7560 2010-05-06 Richard Guenther <rguenther@suse.de>
7562 PR tree-optimization/43571
7563 * domwalk.c (walk_dominator_tree): Walk the dominator
7564 sons in more optimal order.
7566 2010-05-06 Richard Guenther <rguenther@suse.de>
7568 PR tree-optimization/43934
7569 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
7570 (stmt_cost): Likewise.
7571 (extract_true_false_args_from_phi): New helper.
7572 (determine_max_movement): For PHI nodes verify we can hoist them
7573 and compute their cost.
7574 (determine_invariantness_stmt): Handle PHI nodes.
7575 (move_computations_stmt): Likewise. Hoist PHI nodes in
7576 if-converted form using COND_EXPRs.
7577 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
7578 (tree_ssa_lim): Likewise.
7579 * tree-flow.h (tree_ssa_lim): Adjust prototype.
7580 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
7582 2010-05-06 Richard Guenther <rguenther@suse.de>
7584 PR tree-optimization/43987
7585 * tree-ssa-structalias.c (could_have_pointers): For possibly
7586 address-taken variables force pointers to be recorded.
7587 (create_variable_info_for_1): Likewise.
7588 (push_fields_onto_fieldstack): Pass in wheter all fields
7590 (find_func_aliases): Query types instead of vars whether
7591 they contain pointers where appropriate.
7593 2010-05-06 Jan Hubicka <jh@suse.cz>
7595 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
7596 (record_reference, mark_address, mark_load, mark_store): Record
7598 (record_references_in_initializer): Update call of record_references.
7599 (rebuild_cgraph_edges): Remove all references before rebuiding.
7600 * cgraph.c (cgraph_create_node): Clear ref list.
7601 (cgraph_remove_node): Remove references.
7602 (dump_cgraph_node): Dump references.
7603 (cgraph_clone_node): Clone references.
7604 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
7605 (struct cgraph_node, varpool_node): Add ref_lst.
7606 * ipa-ref.c: New file.
7607 * ipa-ref.h: New file.
7608 * ipa-ref-inline.h: New file.
7609 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
7610 (referenced_from_other_partition_p): New function.
7611 (lto_output_varpool_node): Take set arugment; call
7612 referenced_from_other_partition.
7613 (lto_output_ref): New.
7614 (add_references): New.
7616 (output_cgraph): Compute boundary based on references; output refs.
7617 (output_varpool): Accept cgraph_node_set argument.
7620 (input_cgraph): Call input_refs.
7621 * lto-section-in.c (lto_section_name): Add refs.
7622 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
7623 (ipa-ref.o): New file.
7624 * varpool.c (varpool_node): Clear ipa ref list.
7625 (varpool_remove_node): Remove references.
7626 (dump_varpool_node): Dump references.
7627 (varpool_assemble_decl): Only compile finalized ones.
7628 (varpool_extra_name_alias): Initialize ref list.
7629 * lto-streamer.c (lto-get_section_name): Add .refs section.
7630 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
7631 (referenced_from_other_partition_p): Declared.
7633 2010-05-06 Ira Rosen <irar@il.ibm.com>
7635 PR tree-optimization/43901
7636 * tree-vect-stmts.c (vectorizable_call): Assert that vector
7637 type is not NULL if it's transformation phase, and return
7638 FALSE if it's analysis.
7639 (vectorizable_conversion, vectorizable_operation,
7640 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
7642 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
7644 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
7646 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
7648 * config/mips/mips-protos.h
7649 (mips_small_register_classes_for_mode_p): Delete prototype.
7651 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
7653 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
7654 * config/arm/arm.c (multiple_operation_profitable_p,
7655 compute_offset_order): New static functions.
7656 (load_multiple_sequence, store_multiple_sequence): Use them.
7657 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
7658 memory offsets, not register numbers.
7659 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
7661 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
7663 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
7664 (get_pending_sizes, put_pending_size, put_pending_sizes):
7665 Update the uses of pending_sizes.
7666 * c-decl.c (store_parm_decls): Likewise.
7667 * c-tree.h (struct c_arg_info): Likewise.
7668 * tree.h: Update the prototype for get_pending_sizes and
7671 2010-05-05 Jason Merrill <jason@redhat.com>
7674 * c-common.c (handle_aligned_attribute): Respect
7675 ATTR_FLAG_TYPE_IN_PLACE.
7678 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
7679 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
7680 (TARGET_INITIALIZER): Use it.
7681 * c-common.c (attribute_takes_identifier_p): Call it.
7682 * c-common.h: Update prototype.
7683 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
7684 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
7686 2010-05-05 Jakub Jelinek <jakub@redhat.com>
7689 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
7690 DW_ID_down_case for Fortran compilation units.
7692 2010-05-05 Jan Hubicka <jh@suse.cz>
7694 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
7697 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
7699 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
7700 a variable-sized RESULT_DECL.
7702 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
7704 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
7706 2010-05-05 Jason Merrill <jason@redhat.com>
7709 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
7711 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
7713 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
7714 Jakub Jelinek <jakub@redhat.com>
7717 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
7718 (dead_debug_init, dead_debug_finish): New functions.
7719 (dead_debug_add, dead_debug_insert_before): Likewise.
7720 (df_note_bb_compute): Initialize a dead_debug object, add dead
7721 debug uses to it, insert debug bind insns before death insns,
7722 reset debug insns that refer to pending uses at the end.
7723 * rtl.h (make_debug_expr_from_rtl): New prototype.
7724 * varasm.c (make_debug_expr_from_rtl): New function.
7726 2010-05-05 Jan Hubicka <jh@suse.cz>
7728 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
7729 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
7730 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
7731 lto_varpool_encoder_deref, lto_varpool_encoder_size,
7732 lto_varpool_encoder_encode_initializer_p,
7733 lto_set_varpool_encoder_encode_initializer): New functions.
7734 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
7735 call output_varpool.
7736 (input_varpool_node): Do not always set analyzed.
7737 (input_cgraph_1): Return vector of cgraph nodes.
7738 (input_varpool_1): Return vector of varpools.
7739 (input_cgraph): Free the vectors.
7740 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7741 output only initializers needed.
7742 (lto_output): Only call output_cgraph.
7743 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
7744 * lto-section-out.c (lto_new_out_decl_state): Initialize
7745 state->varpool_node_encoder.
7746 * lto-streamer.h (lto_varpool_encoder_d): New.
7747 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
7748 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
7749 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
7750 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
7751 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
7753 (output_varpool, input_varpool): Remove declarations.
7755 2010-05-05 Jan Hubicka <jh@suse.cz>
7757 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
7758 with body can prevail.
7760 2010-05-05 Jan Hubicka <jh@suse.cz>
7762 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
7765 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7767 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
7769 * gengtype.h (erro_at_line): Constify pos argument.
7771 * gengtype.c: Include hashtab.h.
7772 (enum gc_used): Document GC_MAYBE_POINTED_TO.
7773 (error_at_line): Constify pos argument.
7774 (do_typedef): Initialize p->opt field.
7775 (get_file_gtfilename): Fix comment typo.
7776 (struct walk_type_data): Constify line field.
7777 (get_output_file_for_structure): New function.
7778 (write_local_func_for_structure): Constify orig_s argument.
7779 Use get_output_file_for_structure.
7780 (write_func_for_structure): Use get_output_file_for_structure.
7781 (INDENT): New define.
7782 (dump_pair, dump_type, dump_type_list, dump_typekind)
7783 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
7784 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
7786 (seen_types): New variable.
7787 (main): New variable do_dump. Process "-d" command line option.
7788 Call dump_everything if dump requested.
7790 2010-05-05 Jakub Jelinek <jakub@redhat.com>
7792 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
7793 in a temporary instead of invoking the macro multiple times.
7794 (track_expr_p): Likewise.
7796 2010-05-04 Neil Vachharajani <nvachhar@google.com>
7798 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
7800 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
7801 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
7802 conditions for printing notes.
7803 * common.opt (-Wcoverage-mismatch): Allow negative, default to
7804 true, update documentation.
7805 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
7807 2010-05-04 Jakub Jelinek <jakub@redhat.com>
7810 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
7813 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
7816 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
7817 (*sse_prologue_save_insn1): Likewise.
7818 (SSE prologue save splitter): Likewise.
7820 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
7822 * tree.c (free_lang_data_in_one_sizepos): New inline function.
7823 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
7824 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
7825 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
7826 all decls. Call it on DECL_FIELD_OFFSET of fields.
7827 (find_decls_types_r): Follow DECL_VALUE_EXPR.
7828 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
7830 2010-05-04 Martin Jambor <mjambor@suse.cz>
7832 * tree-sra.c (build_access_from_expr_1): The first parameter type
7833 changed to simple tree.
7834 (build_access_from_expr): Likewise, gsi parameter was eliminated.
7835 (scan_assign_result): Renamed to assignment_mod_result, enum elements
7837 (build_accesses_from_assign): Removed all parameters except for a
7838 simple gimple statement. Now returns a simple bool.
7839 (scan_function): All non-analysis parts moved to separate functions
7840 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
7841 parameters and updated both callers.
7842 (sra_modify_expr): Removed parameter data.
7843 (sra_modify_function_body): New function.
7844 (perform_intra_sra): Call sra_modify_function_body to modify the
7846 (replace_removed_params_ssa_names): Parameter data changed into
7848 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
7849 changed the parameter dont_convert to convert with the opposite
7851 (sra_ipa_modify_assign): Parameter data changed into adjustments
7852 vector, return value changed to bool.
7853 (ipa_sra_modify_function_body): New function.
7854 (sra_ipa_reset_debug_stmts): Updated a comment.
7855 (modify_function): Use ipa_sra_modify_function_body to modify function
7858 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
7861 * alias.c (true_dependence): Handle the same VALUE in x and mem.
7862 (canon_true_dependence): Likewise.
7863 (write_dependence_p): Likewise.
7865 2010-05-04 Jan Hubicka <jh@suse.cz>
7867 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
7868 * cgraphbuild.c: Include ipa-utils.h
7869 (record_reference_ctx): New struct.
7870 (record_reference): Simplify to work on initializers; not statements.
7871 (mark_address, mark_load, mark_store): New.
7872 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
7874 (record_references_in_initializer): Update use of record_reference.
7875 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
7878 2010-05-04 Jan Hubicka <jh@suse.cz>
7880 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
7881 node will be removed anyway.
7882 (lto_varpool_replace_node): Allow also unanalyzed nodes;
7883 relink aliases of node into prevailing node.
7884 * varpool.c (varpool_remove_node): Remove aliases properly;
7885 when removing node, remove all its aliases too; remove DECL_INITIAL
7886 of removed node; ggc_free the varpool node.
7888 2010-05-04 Richard Guenther <rguenther@suse.de>
7890 PR tree-optimization/43879
7891 * tree-ssa-structalias.c (alias_get_name): Use
7892 DECL_ASSEMBLER_NAME if available.
7893 (create_function_info_for): Return the varinfo node.
7894 (ipa_pta_execute): Associate same-body aliases and extra names
7895 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
7897 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
7899 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
7901 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
7904 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
7905 only if HONOR_REG_ALLOC_ORDER is not defined.
7907 2010-05-04 Richard Guenther <rguenther@suse.de>
7909 PR tree-optimization/43949
7910 * tree-vrp.c (extract_range_from_binary_expr): Only handle
7913 2010-04-26 Jason Merrill <jason@redhat.com>
7915 * c.opt (-fstrict-enums): New.
7916 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
7918 2010-05-03 David Ung <davidu@mips.com>
7919 James E. Wilson <wilson@codesourcery.com>
7921 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
7922 emit the trap instruction before the divide for TUNE_74K.
7924 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
7926 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
7927 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
7928 based on the above, for new target hook.
7930 * hooks.c (hook_bool_mode_true): New generic hook.
7931 * hooks.h (hook_bool_mode_true): Add prototype.
7933 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
7935 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
7936 target hook, set to hook_bool_mode_false.
7937 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
7938 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
7939 with targetm.small_register_classes_for_mode_p.
7940 (find_reusable_reload): Likewise.
7941 (combine_reloads): Likewise.
7942 * reload1.c (reload_as_needed): Likewise.
7943 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
7944 * ifcvt.c (noce_process_if_block, check_cond_move_block,
7945 dead_or_predicable): Likewise.
7946 * regmove.c (optimize_reg_copy_1): Likewise.
7947 * calls.c (prepare_call_address): Likewise.
7948 (precompute_register_parameters): Likewise.
7950 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
7952 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
7953 implementation of the hook that considers all register classes
7954 small except for SH64.
7955 (sh_override_options): Use the new hook.
7956 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
7959 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
7961 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
7962 implementation of the hook that considers all register classes
7964 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
7967 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
7969 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
7970 implementation of the hook that considers all register classes
7972 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
7975 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
7977 * config/m32c/m32c.h: Likewise.
7978 * config/pdp11/pdp11.h: Likewise.
7979 * config/avr/avr.h: Likewise.
7980 * config/xtensa/xtensa.h: Likewise.
7981 * config/m68hc11/m68hc11.h: Likewise.
7982 * config/mn10300/mn10300.h: Likewise.
7983 * config/mcore/mcore.h: Likewise.
7984 * config/h8300/h8300.h: Likewise.
7985 * config/bfin/bfin.h: Likewise.
7987 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
7988 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
7990 2010-05-03 Anatoly Sokolov <aesok@post.ru>
7992 * double-int.h (tree_to_double_int): Remove macro.
7993 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
7994 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
7995 (tree_to_double_int): New function.
7996 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
7998 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
8000 2010-05-03 Richard Guenther <rguenther@suse.de>
8002 PR tree-optimization/43971
8003 * tree-ssa-structalias.c (get_constraint_for_1): Fix
8004 constraints in the !flag_delete_null_pointer_checks case.
8006 2010-05-03 Jakub Jelinek <jakub@redhat.com>
8009 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
8010 result mode matches original rtl mode.
8012 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
8015 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
8017 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
8019 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
8020 when processing flag options.
8022 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
8024 * gcov-iov.c (main): Change format string placeholder
8025 from %#08x to 0x%08x.
8026 * genchecksum.c (dosum): Change format string placeholder
8027 from %#02x to 0x%02x.
8029 2010-05-02 Richard Guenther <rguenther@suse.de>
8031 PR tree-optimization/43879
8032 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
8034 2010-05-02 Bruno Haible <bruno@clisp.org>
8036 * doc/extend.texi (Function Attributes): Fix a typo.
8038 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
8041 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
8042 placeholder from 0x%x to %#x.
8043 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
8044 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
8045 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
8046 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
8047 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
8048 * config/i386/i386.c (ix86_target_string): Ditto.
8049 * config/i386/i386.c (output_pic_addr_const): Ditto.
8050 (print_operand): Ditto.
8052 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
8054 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
8055 placeholder from 0x%x to %#x.
8056 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
8057 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
8058 (ASM_OUTPUT_DEBUG_DATA): Ditto.
8059 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
8060 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
8061 * optc-gen.awk: Ditto.
8062 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
8063 (HOST_WIDE_INT_PRINT_HEX): Ditto.
8064 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
8065 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
8067 2010-05-01 Anatoly Sokolov <aesok@post.ru>
8069 * target.h (struct calls): Add function_value_regno_p field.
8070 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
8071 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
8072 * targhooks.c (default_function_value_regno_p): New function.
8073 * targhooks.h (default_function_value_regno_p): Declare function.
8074 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
8075 * builtins.c. (apply_result_size): (Ditto.).
8076 * combine.c. (likely_spilled_retval_p): (Ditto.).
8077 * mode-switching.c. Include 'target.h'.
8078 (create_pre_exit): Use function_value_regno_p hook.
8079 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
8080 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
8081 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
8083 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
8084 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
8085 (ix86_function_value_regno_p): Declare as static, change argument
8086 type to const unsigned int.
8087 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
8089 2010-05-01 Richard Guenther <rguenther@suse.de>
8091 PR tree-optimization/43949
8092 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
8094 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
8096 2010-05-01 Anatoly Sokolov <aesok@post.ru>
8098 * rtl.h (CONST_DOUBLE_P): Define.
8099 (rtx_to_double_int): Declare.
8100 * emit-rtl.c (rtx_to_double_int): New function.
8101 * dwarf2out.c (insert_double): New function.
8102 (loc_descriptor, add_const_value_attribute): Clean up, use
8103 rtx_to_double_int and insert_double functions.
8105 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
8107 * doc/extend.texi (Inline): Add missing return keyword to examples.
8108 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
8111 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
8113 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
8114 the variable part of the offset as well. Use highest_pow2_factor for
8115 all alignment checks.
8117 2010-04-30 Richard Guenther <rguenther@suse.de>
8119 PR tree-optimization/43879
8120 * tree-ssa-structalias.c (type_could_have_pointers): Functions
8123 2010-04-30 Jan Hubicka <jh@suse.cz>
8125 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
8127 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
8129 2010-04-30 Jan Hubicka <jh@suse.cz>
8131 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
8133 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
8134 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
8135 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
8136 cgraph_node_set_needs_ltrans_p): Remove.
8138 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
8140 * sdbout.c: Include vec.h, do not include varray.h.
8141 (deferred_global_decls, sdbout_global_decl,
8142 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
8143 * toplev.c: Do not include varray.h.
8144 (dump_memory_report): Do not dump VARRAY statistics.
8145 * gengtype.c (open_base_file): Ignore varray.h.
8146 * Makefile.in: Update for abovementioned changes.
8147 Remove all traces of varray.c and varray.h.
8148 * varray.c: Remove file.
8149 * varray.h: Remove file.
8151 2010-04-30 Jan Hubicka <jh@suse.cz>
8153 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
8156 2010-04-30 Jan Hubicka <jh@suse.cz>
8158 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
8161 2010-04-30 Richard Guenther <rguenther@suse.de>
8163 * tree-ssa-structalias.c (get_constraint_for_1): Generate
8164 constraints for CONSTRUCTOR.
8166 2010-04-30 Richard Guenther <rguenther@suse.de>
8169 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
8170 first after all lowering passes.
8172 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
8174 * toplev.c: Include varray.h for statistics dumping.
8175 * tree.h: Do not declare varray_head_tag.
8176 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
8177 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
8178 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
8179 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
8180 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
8181 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
8182 c-common.c, c-common.h, reg-stack.c, basic-block.h,
8183 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
8185 * Makefile.in: Update for abovementioned changes.
8187 2010-04-30 Jakub Jelinek <jakub@redhat.com>
8190 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
8192 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
8194 * config/picochip/picochip.c (picochip_legitimize_address): Define.
8195 Use this function to do machine-specific conversion.
8196 (picochip_legitimize_reload_address): Likewise.
8197 (picochip_legitimate_address_p): Check valid base register only if
8199 (picochip_check_conditional_copy): Check for modw only if opnd is
8201 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
8202 to call the function in c.
8203 * config/picochip/picochip-protos.h
8204 (picochip_legitimize_reload_address): Define.
8205 * config/picochip/picochip.md (supported_compare1): Define.
8207 2010-04-30 Jan Hubicka <jh@suse.cz>
8209 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
8210 (cgraph_global_info): Remove inlined.
8211 (LTO_cgraph_tag_names): Remove.
8212 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
8213 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
8214 simplify cgraph tags and document.
8215 (lto_output_node): Use only LTO_cgraph_unavail_node and
8216 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
8217 for_functions_valid, global info, process and output flags.
8218 (input_overwrite_node): Initialize estimated stack size and
8219 estimated growth. Do not read flags we no longer store.
8220 (input_node): Likewise do not read info no longer stored.
8221 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
8224 2010-04-30 Richard Guenther <rguenther@suse.de>
8226 PR tree-optimization/43879
8227 * tree-ssa-structalias.c (get_constraint_for_1): Properly
8228 handle non-zero initializers.
8230 2010-04-30 Richard Guenther <rguenther@suse.de>
8232 * builtins.c (fold_builtin_1): Delete free (0).
8234 2010-04-29 Jan Hubicka <jh@suse.cz>
8236 * gengtype.c (open_base_files): Add lto-streamer.h
8237 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
8238 (pass_ipa_cp): GGC collect.
8239 * toplev. (compile_file): Do not output symbols.
8240 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
8241 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
8242 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
8243 * lto-section-in.c: Include ggc.h
8244 (lto_new_in_decl_state): Alloc in GGC.
8245 (lto_delete_in_decl_state): Likewise.
8246 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
8249 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
8252 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
8253 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
8254 (HONOR_REG_ALLOC_ORDER): Describe new macro.
8255 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
8256 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
8257 account only if HONOR_REG_ALLOC_ORDER is not defined.
8258 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
8259 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
8261 2010-04-29 Jon Grant <04@jguk.org>
8263 * collect2.c (vflag): Change type from int to bool.
8265 (helpflag): New global bool.
8266 (main): Set vflag and debug with boolean, not integer truth values.
8267 Accept new "--help" option and output usage text if found.
8268 * collect2.h (vflag): Update prototype.
8271 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
8274 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
8276 2010-04-29 Richard Guenther <rguenther@suse.de>
8279 * plugin.h (invoke_plugin_callbacks): Annotate arguments
8280 with ATTRIBUTE_UNUSED.
8282 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
8285 * config/i386/i386.c (get_some_local_dynamic_name): Replace
8286 INSN_P with NONDEBUG_INSN_P.
8287 (distance_non_agu_define): Likewise.
8288 (distance_agu_use): Likewise.
8290 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
8292 From Dominique d'Humieres <dominiq@lps.ens.fr>
8294 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
8297 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
8299 * plugin.h (invoke_plugin_callbacks): New inline function.
8300 * plugin.c (flag_plugin_added): New global flag.
8301 (add_new_plugin): Initialize above flag.
8302 (invoke_plugin_callbacks): Rename to ...
8303 (invoke_plugin_callbacks_full): ... this.
8305 2010-04-28 Jan Hubicka <jh@suse.cz>
8307 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
8308 (lto_varpool_replace_node): New.
8309 (lto_symtab_resolve_symbols): Resolve varpool nodes.
8310 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
8311 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
8312 * cgraph.h (varpool_node_ptr): New type.
8313 (varpool_node_ptr): New vector.
8314 (varpool_node_set_def): New structure.
8315 (varpool_node_set): New type.
8316 (varpool_node_set): New vector.
8317 (varpool_node_set_element_def): New structure.
8318 (varpool_node_set_element, const_varpool_node_set_element): New types.
8319 (varpool_node_set_iterator): New type.
8320 (varpool_node): Add prev pointers, add used_from_other_partition,
8322 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
8323 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
8324 varpool_get_node, varpool_remove_node): Declare.
8325 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
8326 varpool_node_set_size): New inlines.
8327 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
8328 * tree-pass.h (varpool_node_set_def): Forward declare.
8329 (ipa_opt_pass_d): Summary writting takes vnode sets too.
8330 (ipa_write_optimization_summaries): Update prototype.
8331 * ipa-cp.c (ipcp_write_summary): Update.
8332 * ipa-reference.c (ipa_reference_write_summary): Update.
8333 * lto-cgraph.c (lto_output_varpool_node): New static function.
8334 (output_varpool): New function.
8335 (input_varpool_node): New static function.
8336 (input_varpool_1): New function.
8337 (input_cgraph): Input varpool.
8338 * ipa-pure-const.c (pure_const_write_summary): Update.
8339 * lto-streamer-out.c (lto_output): Update, output varpool too.
8340 (write_global_stream): Kill WPA hack.
8341 (produce_asm_for_decls): Update.
8342 (output_alias_pair_p): Handle variables.
8343 (output_unreferenced_globals): Output only needed partition of varpool.
8344 * ipa-inline.c (inline_write_summary): Update.
8345 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
8347 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
8348 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
8349 varpool_node_set_new, varpool_node_set_add,
8350 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
8351 debug_varpool_node_set): New functions.
8352 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
8353 (execute_one_pass): Process new decls too.
8354 (ipa_write_summaries_2): Pass around vsets.
8355 (ipa_write_summaries_1): Likewise.
8356 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
8358 (ipa_write_optimization_summaries_1): Pass around vsets.
8359 (ipa_write_optimization_summaries): Likewise.
8360 * varpool.c (varpool_get_node): New.
8361 (varpool_node): Update doubly linked lists.
8362 (varpool_remove_node): New.
8363 (dump_varpool_node): More dumping.
8364 (varpool_enqueue_needed_node): Update doubly linked lists.
8365 (decide_is_variable_needed): Kill ltrans hack.
8366 (varpool_finalize_decl): Kill lto hack.
8367 (varpool_assemble_decl): Skip decls in other partitions.
8368 (varpool_assemble_pending_decls): Update doubly linkes lists.
8369 (varpool_empty_needed_queue): Likewise.
8370 (varpool_extra_name_alias): Likewise.
8371 * lto-streamer.c (lto_get_section_name): Add vars section.
8372 * lto-streamer.h (lto_section_type): Update.
8373 (output_varpool, input_varpool): Declare.
8375 2010-04-28 Mike Stump <mikestump@comcast.net>
8377 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
8379 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
8381 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
8382 record or union type with RECORD_OR_UNION_TYPE_P predicate.
8383 (lto_input_ts_type_tree_pointers): Likewise.
8384 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
8385 (lto_output_ts_type_tree_pointers): Likewise.
8387 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
8389 Uniquization of constants at the Tree level
8390 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
8391 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
8393 (tree_output_constant_def): Declare.
8394 * gimplify.c (gimplify_init_constructor): When using block copy, first
8395 uniquize the constant constructor on the RHS.
8396 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
8397 DECL_IN_CONSTANT_POOL flag.
8398 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
8399 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
8401 (assemble_variable): Deal with symbols belonging to the tree constant
8403 (get_constant_section): Add ALIGN parameter and simplify.
8404 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
8405 (assemble_constant_contents): Use the expression of the VAR_DECL.
8406 (output_constant_def_contents): Use the alignment of the VAR_DECL.
8407 (tree_output_constant_def): New global function.
8408 (mark_constant): Use the expression of the VAR_DECL.
8409 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
8411 (output_object_block): Likewise and assemble the expression.
8413 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
8415 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
8416 hash_tree, eq_tree): New tree hash table.
8417 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
8418 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
8419 lto_orig_address_remove): Reimplement.
8421 2010-04-28 Xinliang David Li <davidxl@google.com>
8424 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
8425 (compute_uninit_opnds_pos): New function.
8426 (is_non_loop_exit_postdominating): New function.
8427 (compute_control_dep_chain): New function.
8428 (find_pdom): New function.
8429 (convert_control_dep_chain_into_preds): New function.
8430 (find_predicates): New function.
8431 (find_control_equiv_block): New function.
8432 (collect_phi_def_edges): New function.
8433 (find_def_preds): New function.
8434 (find_dom): New function.
8435 (dump_predicates): New function.
8436 (get_cmp_code): New function.
8437 (is_value_included_in): New function.
8438 (find_matching_predicate_in_rest_chains): New function.
8439 (use_pred_not_overlap_with_undef_path_pred): New function.
8440 (is_use_properly_guarded): New function.
8441 (normalize_cond_1): New function.
8442 (is_and_or_or): New function.
8443 (normalize_cond): New function.
8444 (is_gcond_subset_of): New function.
8445 (is_subset_of_any): New function.
8446 (is_or_set_subset_of): New function.
8447 (is_and_set_subset_of): New function.
8448 (is_norm_cond_subset_of): New function.
8449 (is_pred_expr_subset_of): New function.
8450 (is_pred_chain_subset_of): New function.
8451 (is_included_in): New function.
8452 (is_superset_of): New function.
8453 (find_uninit_use): New function.
8454 (warn_uninitialized_phi): New function.
8455 (compute_possibly_undefined_names): New function.
8456 (ssa_undefined_value_p): New function.
8457 (execute_late_warn_uninitialized): New function.
8458 * tree-ssa.c (ssa_undefined_value_p): Removed.
8459 (warn_uninit): Changed to extern.
8460 (warn_uninitialized_phi): Removed.
8461 (warn_uninitialized_vars): Changed to extern.
8462 (execute_late_warn_uninitialized): Removed
8463 * tree-flow.h: Add new prototypes.
8464 * timevar.def: Add new time variable.
8465 * Makefile.in: Add new build file.
8467 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
8469 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
8472 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8475 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
8477 2010-04-28 Martin Jambor <mjambor@suse.cz>
8479 * cgraph.h (struct cgraph_node): New field indirect_calls.
8480 (struct cgraph_indirect_call_info): New type.
8481 (struct cgraph_edge): Removed field indirect_call. New fields
8482 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
8483 (cgraph_create_indirect_edge): Declare.
8484 (cgraph_make_edge_direct): Likewise.
8485 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
8486 * ipa-prop.h (struct ipa_param_call_note): Removed.
8487 (struct ipa_node_params): Removed field param_calls.
8488 (ipa_create_all_structures_for_iinln): Declare.
8489 * cgraph.c: Described indirect edges and uids in initial comment.
8490 (cgraph_add_edge_to_call_site_hash): New function.
8491 (cgraph_edge): Search also among the indirect edges, use
8492 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
8493 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
8494 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
8496 (initialize_inline_failed): Assign a reason to indirect edges.
8497 (cgraph_create_edge_1): New function.
8498 (cgraph_create_edge): Moved some functionality to
8499 cgraph_create_edge_1.
8500 (cgraph_create_indirect_edge): New function.
8501 (cgraph_edge_remove_callee): Add an assert checking for
8503 (cgraph_edge_remove_caller): Special-case indirect edges.
8504 (cgraph_remove_edge): Likewise.
8505 (cgraph_set_edge_callee): New function.
8506 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
8507 (cgraph_make_edge_direct): New function.
8508 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
8509 the declaration of the call statement matches.
8510 (cgraph_node_remove_callees): Special-case indirect edges.
8511 (cgraph_clone_edge): Likewise.
8512 (cgraph_clone_node): Clone also the indirect edges.
8513 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
8514 indirect_call, dump count of indirect_calls edges.
8515 * ipa-prop.c (iinlining_processed_edges): New variable.
8516 (ipa_note_param_call): Create indirect edges instead of
8517 creating notes. New parameter node.
8518 (ipa_analyze_call_uses): New parameter node, pass it on to
8519 ipa_note_param_call.
8520 (ipa_analyze_stmt_uses): Likewise.
8521 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
8522 (print_edge_addition_message): Work on edges rather than on notes.
8523 (update_call_notes_after_inlining): Likewise, renamed to
8524 update_indirect_edges_after_inlining.
8525 (ipa_create_all_structures_for_iinln): New function.
8526 (ipa_free_node_params_substructures): Do not free notes.
8527 (ipa_edge_duplication_hook): Propagate bits within
8528 iinlining_processed_edges bitmap.
8529 (ipa_node_duplication_hook): Do not duplicate notes.
8530 (free_all_ipa_structures_after_ipa_cp): Renamed to
8531 ipa_free_all_structures_after_ipa_cp.
8532 (free_all_ipa_structures_after_iinln): Renamed to
8533 ipa_free_all_structures_after_iinln.
8534 (ipa_write_param_call_note): Removed.
8535 (ipa_read_param_call_note): Removed.
8536 (ipa_write_indirect_edge_info): New function.
8537 (ipa_read_indirect_edge_info): Likewise.
8538 (ipa_write_node_info): Do not stream notes, do stream information
8540 (ipa_read_node_info): Likewise.
8541 (lto_ipa_fixup_call_notes): Removed.
8542 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
8543 * ipa-inline.c (pass_ipa_inline): Likewise.
8544 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
8545 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
8546 * tree-inline.c (copy_bb): Removed an unnecessary double check for
8548 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
8550 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
8551 (output_cgraph): Stream also indirect edges.
8552 (lto_output_edge): Added capability to stream indirect edges.
8553 (input_edge): Likewise.
8554 (input_cgraph_1): Likewise.
8555 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
8558 2010-04-28 Richard Guenther <rguenther@suse.de>
8560 PR tree-optimization/43879
8561 PR tree-optimization/43909
8562 * tree-ssa-structalias.c (struct variable_info): Add
8563 only_restrict_pointers flag.
8564 (new_var_info): Initialize it. Increment stats.total_vars here.
8565 (create_function_info_for): Do not increment stats.total_vars here.
8566 (get_function_part_constraint): Fix build with C++.
8567 (insert_into_field_list): Remove.
8568 (push_fields_onto_fieldstack): Properly merge fields.
8569 (create_variable_info_for): Split and simplify.
8570 (create_variable_info_for_1): New piece.
8571 (intra_create_variable_infos): Properly make restrict constraints
8574 2010-04-28 Richard Guenther <rguenther@suse.de>
8577 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
8579 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
8580 Jan Hubicka <hubicka@ucw.cz>
8582 * doc/invoke.texi (-Wsuggest-attribute=const,
8583 -Wsuggest-attribute=pure): Document.
8584 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
8585 (function_always_visible_to_compiler_p,
8586 suggest_attribute, warn_function_pure, warn_function_const):
8588 (check_call): Improve debug info.
8589 (analyze_function): Do not check availability.
8590 (add_new_function): Check availability.
8591 (propagate): Output warnings.
8592 (skip_function_for_local_pure_const): New function.
8593 (local_pure_const): Use it; output warnings.
8594 * common.opt (Wsuggest-attribute=const,
8595 Wsuggest-attribute=pure): New.
8597 2010-04-27 Jakub Jelinek <jakub@redhat.com>
8599 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
8600 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
8601 or DW_CFA_def_cfa_offset{,_sf}.
8603 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
8605 * tree.h: Fix truncated long macros.
8607 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
8609 * collect2.c (TARGET_64BIT): Redefine to target's default.
8610 * tlink.c: Likewise.
8611 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
8612 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
8613 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
8614 for underscoring __USER_LABEL_PREFIX__.
8615 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
8616 (SUB_LINK_ENTRY32): New.
8617 (SUB_LINK_ENTRY64): New.
8618 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
8619 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
8620 (SUB_LINK_ENTRY64): New.
8621 (SUB_LINK_ENTRY): New.
8622 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
8623 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
8624 x64 target is choosen.
8625 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
8626 * configure: Regenerated.
8627 * configure.ac (leading-mingw64-underscores): Option added.
8629 2010-04-27 Jan Hubicka <jh@suse.cz>
8631 * doc/invoke.texi (-fipa-profile): Document.
8632 * opts.c (decode_options): Enable ipa-profile at -O1.
8633 * timevar.def (TV_IPA_PROFILE): Define.
8634 * common.opt (fipa-profile): Add.
8635 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
8637 (cgraph_propagate_frequency): Handle only local ones.
8638 * tree-pass.h (pass_ipa_profile): Declare.
8639 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
8640 (pass_ipa_profile): Use TV_IPA_PROFILE.
8641 * ipa.c (ipa_profile): New function.
8642 (gate_ipa_profile): Likewise.
8643 (pass_ipa_profile): New global variable.
8644 * passes.c (pass_ipa_profile): New.
8646 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
8648 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
8650 2010-04-27 Martin Jambor <mjambor@suse.cz>
8653 * ipa.c (dissolve_same_comdat_group_list): New function.
8654 (function_and_variable_visibility): Call
8655 dissolve_same_comdat_group_list when comdat group contains external or
8657 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
8658 lists are circular and that they contain only DECL_ONE_ONLY nodes.
8660 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
8662 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
8663 (const_hash_1) <VECTOR_CST>: New case.
8664 (compare_constant) <VECTOR_CST>: Likewise.
8665 <ADDR_EXPR>: Deal with LABEL_REFs.
8666 (copy_constant) <VECTOR_CST>: New case.
8668 2010-04-27 Jan Hubicka <jh@suse.cz>
8670 * cgraph.c (cgraph_propagate_frequency): New function.
8671 * cgraph.h (cgraph_propagate_frequency): Declare.
8672 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
8673 cgraph_propagate_frequency.
8675 2010-04-27 Jakub Jelinek <jakub@redhat.com>
8677 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
8679 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
8682 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
8683 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
8684 here to determine which regs to push and how much stack to reserve.
8686 2010-04-27 Jie Zhang <jie@codesourcery.com>
8688 * doc/gimple.texi (gimple_statement_with_ops): Remove
8689 addresses_taken field.
8690 (gimple_statement_with_memory_ops): Likewise.
8692 2010-04-27 Jan Hubicka <jh@suse.cz>
8694 * tree-inline.c (eni_inlining_weights): Remove.
8695 (estimate_num_insns): Special case more builtins.
8697 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
8700 * c-typeck.c (build_binary_op): Move forward check for comparison
8701 pointer with null pointer constant and adjust the diagnostic message.
8703 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
8706 * configure.ac (gcc_cv_as_section_has_align): Set if installed
8707 binutils supports extended .section directive needed by LTO, or
8708 warn if older binutils found.
8709 (LTO_BINARY_READER): New AC_SUBST'd variable.
8710 (LTO_USE_LIBELF): Likewise.
8711 * gcc/config.gcc (lto_binary_reader): New target-specific configure
8713 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
8714 (LTO_USE_LIBELF): Likewise.
8715 * configure: Regenerate.
8717 * collect2.c (is_elf): Rename from this ...
8718 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
8719 object files in addition to ELF-formatted ones.
8720 (scan_prog_file): Caller updated. Also allow for LTO info marker
8721 symbol to be prefixed or not by an extra underscore.
8723 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
8724 * config/i386/winnt.c: Also #include lto-streamer.h
8725 (i386_pe_asm_named_section): Specify 1-byte section alignment for
8727 (i386_pe_asm_output_aligned_decl_common): Add comment.
8728 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
8730 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
8733 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
8734 Add missing earlyclobber for second alternative.
8736 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
8738 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
8739 bits for artificial defs at the top of the block.
8740 * fwprop.c (single_def_use_enter_block): Don't call it.
8742 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
8745 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
8746 instead of "$gcc_cv_objdump -T".
8747 Use "-undefined dynamic_lookup" on darwin.
8748 * gcc/configure: Regenerate.
8750 2010-04-26 Jakub Jelinek <jakub@redhat.com>
8753 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
8755 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
8757 * c-parser.c (struct c_token): Move location field up.
8758 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
8759 (struct c_declspecs): Convert typespec_word, storage_class, and
8760 default_int_p into bitfields.
8761 (struct c_declarator): Move loc field up.
8763 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
8765 * cfgloop.h (struct loop): Move can_be_parallel field up.
8766 * ipa-prop.h (struct ip_node_params): Move bitfields up.
8767 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
8769 (struct iv_cand): Convert pos field into a bitfield.
8770 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
8772 (struct _stmt_vec_info): Shuffle fields for better packing.
8774 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
8776 * varasm.c (IN_NAMED_SECTION): Remove guard.
8777 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
8778 (IN_NAMED_SECTION_P): ...this.
8779 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
8780 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
8782 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
8784 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
8785 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
8786 of shadowing it. Fix comments.
8788 2010-04-26 Jan Hubicka <jh@suse.cz>
8790 * cgraph.c (cgraph_create_node): Set node frequency to normal.
8791 (cgraph_clone_node): Copy function frequency.
8792 * cgraph.h (node_frequency): New enum
8793 (struct cgraph_node): Add.
8794 * final.c (rest_of_clean_state): Update.
8795 * lto-cgraph.c (lto_output_node): Output node frequency.
8796 (input_overwrite_node): Input node frequency.
8797 * tre-ssa-loop-ivopts (computation_cost): Update.
8798 * lto-streamer-out.c (output_function): Do not output function
8800 * predict.c (maybe_hot_frequency_p): Update and handle functions
8802 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
8804 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
8805 (compute_function_frequency): Set noreturn functions to be executed
8807 (choose_function_section): Update.
8808 * lto-streamer-in.c (input_function): Do not input function frequency.
8809 * function.c (allocate_struct_function): Do not initialize function
8811 * function.h (function_frequency): Remove.
8812 (struct function): Remove function frequency.
8813 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
8814 (try_update): Update.
8815 * tree-inline.c (initialize_cfun): Do not update function frequency.
8816 * passes.c (pass_init_dump_file): Update.
8817 * i386.c (ix86_compute_frame_layout): Update.
8818 (ix86_pad_returns): Update.
8820 2010-04-26 Jie Zhang <jie@codesourcery.com>
8822 PR tree-optimization/43833
8823 * tree-vrp.c (range_int_cst_p): New.
8824 (range_int_cst_singleton_p): New.
8825 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
8826 when both operands are constants. Use range_int_cst_p in
8829 2010-04-26 Jan Hubicka <jh@suse.cz>
8831 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
8833 2010-04-26 Richard Guenther <rguenther@suse.de>
8836 * gimple.c (gimple_decl_printable_name): Deal gracefully
8837 with a NULL DECL_NAME.
8839 2010-04-26 Richard Guenther <rguenther@suse.de>
8842 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
8843 if emitting debug information and it is either a function
8844 or a namespace decl.
8846 2010-04-26 Ira Rosen <irar@il.ibm.com>
8848 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
8849 determine if the statement is vectorizable, and a macro to access it.
8850 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
8851 Skip statements that can't be vectorized. If the analysis fails,
8852 mark the statement as unvectorizable if vectorizing basic block.
8853 (vect_compute_data_refs_alignment): Likewise.
8854 (vect_verify_datarefs_alignment): Skip statements marked as
8855 unvectorizable. Add print.
8856 (vect_analyze_group_access): Skip statements that can't be
8857 vectorized. If the analysis fails, mark the statement as
8858 unvectorizable if vectorizing basic block.
8859 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
8860 * tree-vect-stmts.c (vectorizable_store): Fix the number of
8861 generated stmts for SLP.
8862 (new_stmt_vec_info): Initialize the new field.
8863 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
8864 statements marked as unvectorizable.
8866 2010-04-25 Joseph Myers <joseph@codesourcery.com>
8868 * c-common.c (flag_isoc1x): New.
8869 (flag_isoc99): Update comment.
8870 * c-common.h (flag_isoc1x): New.
8871 (flag_isoc99): Update comment.
8872 * c-cppbuiltin.c (builtin_define_float_constants): Also define
8873 __<type>_DECIMAL_DIG__.
8874 * c-opts.c (set_std_c1x): New.
8875 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
8876 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
8877 * c.opt (-std=c1x, -std=gnu1x): New options.
8878 * doc/cpp.texi: Mention -std=c1x.
8879 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
8880 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
8881 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
8882 * doc/standards.texi: Mention C1X.
8883 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
8884 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
8885 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
8888 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
8890 * config/i386/gmon-sol2.c (_mcleanup): Change format string
8891 placeholder from 0x%x to %#x.
8892 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
8893 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
8894 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
8895 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
8896 * config/i386/i386.c (ix86_target_string): Ditto.
8897 (output_pic_addr_const): Ditto.
8898 (print_operand): Ditto.
8900 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
8902 * combine.c (find_split_point): Add third argument. Use it
8903 to find nested multiply-accumulate instructions. Adjust calls.
8904 (try_combine): Adjust call to find_split_point.
8906 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
8908 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
8910 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
8912 PR tree-optimization/41442
8913 * fold-const.c (merge_truthop_with_opposite_arm): New function.
8914 (fold_binary_loc): Call it.
8916 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
8918 * toplev.c (general_init): Set default for fdiagnostics-show-option.
8919 * opts.c (common_handle_option): Allow disabling it.
8920 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
8922 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
8924 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
8925 between modes if both types are integral.
8927 2010-04-23 Richard Guenther <rguenther@suse.de>
8929 PR tree-optimization/43572
8930 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
8932 2010-04-23 Richard Guenther <rguenther@suse.de>
8935 * tree-inline.c (tree_can_inline_p): Also check compatibility
8938 2010-04-23 Martin Jambor <mjambor@suse.cz>
8940 PR tree-optimization/43846
8941 * tree-sra.c (struct access): New flag grp_assignment_read.
8942 (build_accesses_from_assign): Set grp_assignment_read.
8943 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
8944 (enum mark_read_status): New type.
8945 (analyze_access_subtree): Propagate grp_assignment_read, create
8946 accesses also if both direct_read and root->grp_assignment_read.
8948 2010-04-23 Martin Jambor <mjambor@suse.cz>
8951 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
8952 function does not have type attributes.
8954 2010-04-23 Richard Guenther <rguenther@suse.de>
8957 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
8960 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8962 * sese.h (create_if_region_on_edge): Remove.
8964 * sese.c (create_if_region_on_edge): Make static.
8966 * tree-inline.c: Do not include ggc.h.
8968 * expr.c: Do not include ggc.h.
8970 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
8973 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
8976 * config/sh/sh.c (find_barrier): Don't emit a constant pool
8977 in the middle of insns for casesi_worker_2.
8979 2010-04-22 David Edelsohn <edelsohn@gnu.org>
8981 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
8983 2010-04-22 Ira Rosen <irar@il.ibm.com>
8985 PR tree-optimization/43842
8986 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
8987 loop unrolling in update of exit phis. Fix comment.
8988 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
8989 least two reduction statements in the loop before starting SLP
8992 2010-04-22 Nick Clifton <nickc@redhat.com>
8994 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
8996 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
8998 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
9001 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9003 * tree-parloops.c (loop_parallel_p): New argument
9004 parloop_obstack. Pass it down.
9005 (parallelize_loops): New variable parloop_obstack. Initialize it,
9006 pass it down, free it.
9008 * tree-loop-linear.c (linear_transform_loops): Pass down
9011 * tree-data-ref.h (lambda_compute_access_matrices): New argument
9012 of type struct obstack *.
9014 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
9015 scratch_obstack. Initialize it, pass down, free it.
9017 * lambda.h (lambda_loop_new): Remove.
9018 (lambda_matrix_new, lambda_matrix_inverse)
9019 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
9020 argument of type struct obstack *.
9022 * lambda-trans.c (lambda_trans_matrix_new): New argument
9023 lambda_obstack. Pass it down, use obstack allocation for ret.
9024 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
9027 * lambda-mat.c (lambda_matrix_get_column)
9028 (lambda_matrix_project_to_null): Remove.
9029 (lambda_matrix_new): New argument lambda_obstack. Use obstack
9031 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
9034 * lambda-code.c (lambda_loop_new): New function.
9035 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
9036 (lambda_compute_auxillary_space, lambda_compute_target_space)
9037 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
9038 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
9039 (build_access_matrix): New argument lambda_obstack. Use obstack
9041 (lambda_compute_step_signs, lambda_compute_access_matrices): New
9042 argument lambda_obstack. Pass it down.
9044 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
9046 * optabs.h (expand_widening_mult): Declare.
9048 2010-04-22 Richard Guenther <rguenther@suse.de>
9050 PR tree-optimization/43845
9051 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
9052 lookup the CALL_EXPR function and arguments.
9054 2010-04-22 Nick Clifton <nickc@redhat.com>
9056 * config/stormy16/stormy16.c
9057 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
9058 * config/stormy16/stormy16.h: Tidy up formatting.
9059 (DONT_USE_BUILTIN_SETJMP): Remove definition.
9060 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
9061 (ineqbranchsi): Delete pattern.
9062 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
9063 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
9064 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
9065 stormy16-lib2-ucmpsi2.c.
9067 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
9069 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
9070 df_simulate_find_noclobber_defs as appropriate. Keep track of an
9071 extra set merge_set_noclobber, and use it to relax the final test
9073 * df.h (df_simulate_find_noclobber_defs): Declare.
9074 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
9076 (df_simulate_find_noclobber_defs): New function.
9078 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
9080 * config/i386/i386.md: Use {} around multi-line preparation statements.
9082 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9084 * c-tree.h (push_init_level, pop_init_level, set_init_index)
9085 (process_init_element): New argument of type struct obstack *.
9087 * c-typeck.c (push_init_level, pop_init_level, set_designator)
9088 (set_init_index, set_init_label, set_nonincremental_init)
9089 (set_nonincremental_init_from_string, find_init_member)
9090 (output_init_element, output_pending_init_elements)
9091 (process_init_element): New argument braced_init_obstack. Pass it
9093 (push_range_stack, add_pending_init): New argument
9094 braced_init_obstack. Use obstack allocation.
9096 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
9097 braced_init_obstack. Pass it down.
9098 (c_parser_braced_init): New variables ret, braced_init_obstack.
9099 Initialize obstack, pass it down and finally free it.
9101 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
9104 * tree-pass.h (pass_optimize_widening_mul): Declare.
9105 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
9106 gate_optimize_widening_mul): New static functions.
9107 (pass_optimize_widening_mul): New.
9108 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
9109 <case MULT_EXPR>: Remove support for widening multiplies.
9110 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
9111 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
9112 simplify_gen_unary rather than directly building extensions.
9113 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
9115 * expmed.c (expand_widening_mult): New function.
9116 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
9118 2010-04-21 Jan Hubicka <jh@suse.cz>
9120 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
9121 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
9122 * lto-wpa-fixup.c: Remove.
9123 * Makefile.in (lto-wpa-fixup.o): Remove.
9124 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
9125 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
9126 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
9128 2010-04-21 Jan Hubicka <jh@suse.cz>
9130 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
9131 add write_optimization_summary, read_optimization_summary.
9132 (ipa_write_summaries_of_cgraph_node_set): Remove.
9133 (ipa_write_optimization_summaries): Declare.
9134 (ipa_read_optimization_summaries): Declare.
9135 * ipa-cp.c (pass_ipa_cp): Update.
9136 * ipa-reference.c (pass_ipa_reference): Update.
9137 * ipa-pure-const.c (pass_ipa_pure_const): Update.
9138 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
9140 * ipa-inline.c (pass_ipa_inline): Update.
9141 * ipa.c (pass_ipa_whole_program): Update.
9142 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
9143 * passes.c (ipa_write_summaries_1): Do not test wpa.
9144 (ipa_write_optimization_summaries_1): New.
9145 (ipa_write_optimization_summaries): New.
9146 (ipa_read_summaries): Do not test ltrans.
9147 (ipa_read_optimization_summaries_1): New.
9148 (ipa_read_optimization_summaries): New.
9150 2010-04-21 Jan Hubicka <jh@suse.cz>
9152 * lto-cgraph.c (lto_output_node): Do not output comdat groups
9154 (output_cgraph): Do not arrange comdat groups for boundary nodes.
9156 2010-04-21 Jakub Jelinek <jakub@redhat.com>
9159 * dwarf2out.c (add_name_and_src_coords_attributes): Add
9160 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
9162 2010-04-21 Jan Hubicka <jh@suse.cz>
9164 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
9166 2010-04-21 Jan Hubicka <jh@suse.cz>
9168 * varpool.c (decide_is_variable_needed): Variable is always needed
9171 2010-04-21 Jan Hubicka <jh@suse.cz>
9173 * opts.c (decode_options): Enable pure-const pass for whopr.
9175 2010-04-21 Jan Hubicka <jh@suse.cz>
9177 * cgraph.c (dump_cgraph_node): Dump also assembler name.
9178 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
9180 (cgraph_decide_inlining): Do not expect callee to be removed in all
9183 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
9185 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
9187 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
9189 * config/i386/i386.md (x86_shrd): Add athlon_decode and
9190 amdfam10_decode attributes.
9192 2010-04-21 Jakub Jelinek <jakub@redhat.com>
9195 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
9196 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
9197 (lower_copyprivate_clauses): Use private var in outer
9198 context instead of original var. Make sure the types
9199 are correct for VLAs.
9201 2010-04-21 Richard Guenther <rguenther@suse.de>
9203 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
9204 to non-pointer objects.
9206 2010-04-21 Jakub Jelinek <jakub@redhat.com>
9208 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
9209 last chain entry if it starts with the still current label.
9210 (add_location_or_const_value_attribute): Check that
9211 loc_list->first->next is NULL instead of comparing ->first with ->last.
9212 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
9213 to add_var_loc_to_decl.
9215 * dwarf2out.c (output_call_frame_info): For dw_cie_version
9216 >= 4 add also address size and segment size fields into CIE header.
9218 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
9219 long as address size is the same as sizeof (void *) and
9221 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
9222 address size or segment size is unexpected, return DW_EH_PE_omit.
9223 (classify_object_over_fdes): If get_cie_encoding returned
9224 DW_EH_PE_omit, return -1.
9225 (init_object): If classify_object_over_fdes returned -1,
9226 pretend there were no FDEs at all.
9228 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
9230 * config/i386/i386.md (bswap<mode>2): Macroize expander from
9231 bswap{si,di}2 using SWI48 mode iterator.
9232 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
9233 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
9234 set modrm attribute of bswap insn to 0 and remove length attribute.
9235 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
9236 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
9237 set mode attribute to <MODE> and remove length attribute.
9239 2010-04-20 James E. Wilson <wilson@codesourcery.com>
9241 PR rtl-optimization/43520
9242 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
9243 zero available registers.
9245 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9247 * builtins.c (fold_builtin_cproj): Fold more cases.
9249 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9251 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
9252 (fold_builtin_1): Fold builtin cproj.
9253 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
9254 Use ATTR_CONST_NOTHROW_LIST.
9256 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
9258 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
9259 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
9260 ffsi2_no_cmove for !TARGET_CMOVE.
9261 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
9262 (ffssi2): Remove expander.
9263 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
9265 (ctz<mode>2): Ditto from ctz{si,di}2.
9266 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
9268 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
9271 2010-04-20 Jakub Jelinek <jakub@redhat.com>
9273 * dwarf2out.c (AT_linkage_name): Define.
9274 (clone_as_declaration): Handle DW_AT_linkage_name.
9275 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
9276 of DW_AT_MIPS_linkage_name.
9277 (move_linkage_attr): Likewise.
9278 (dwarf2out_finish): Likewise.
9280 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
9283 * fold-const.c (fold_comparison): New folding rule.
9285 2010-04-20 Anatoly Sokolov <aesok@post.ru>
9287 * double-int.h (double_int_setbit): Declare.
9288 * double-int.c (double_int_setbit): New function.
9289 * rtl.h (immed_double_int_const): Declare.
9290 * emit-rtl.c (immed_double_int_const): New function.
9291 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
9292 and immed_double_int_const functions.
9293 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
9294 expand_copysign_bit): (Ditto.).
9295 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
9296 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
9297 * dojump.c (prefer_and_bit_test): (Ditto.).
9298 * expr.c (convert_modes, reduce_to_bit_field_precision,
9299 const_vector_from_tree): (Ditto.).
9300 * expmed.c (mask_rtx, lshift_value): (Ditto.).
9302 2010-04-20 Jan Hubicka <jh@suse.cz>
9304 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
9305 (dump_cgraph_node): Dump new flags.
9306 * cgraph.h (struct cgraph_node): Add flags
9307 reachable_from_other_partition and in_other_partition.
9308 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
9309 other partition can not be removed.
9310 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
9311 the other partition must be output; silence sanity checking on
9312 leaking functions bodies from other paritition.
9313 * lto-cgraph.c (reachable_from_other_partition_p): New function.
9314 (lto_output_node): Output new flags; do not sanity check that inline
9315 clones are output; drop lto_forced_extern_inline_p code; do not mock
9316 visibility flags at partition boundaries.
9317 (add_node_to): New function.
9318 (output_cgraph): Use it to sort functions so masters appear before
9320 (input_overwrite_node): Input new flags.
9321 * passes.c (ipa_write_summaries): Do not call
9322 lto_new_extern_inline_states.
9323 * lto-section-out.c (forced_extern_inline,
9324 lto_new_extern_inline_states lto_delete_extern_inline_states,
9325 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
9326 * lto-streamer.h (lto_new_extern_inline_states,
9327 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
9328 lto_forced_extern_inline_p): Kill.
9330 2010-04-20 Richard Guenther <rguenther@suse.de>
9332 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
9333 from vars that can have pointers.
9334 (process_constraint): Dump useless constraints.
9336 2010-04-20 Richard Guenther <rguenther@suse.de>
9338 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
9339 (dump_sa_points_to_info): Remove asserts.
9340 (init_base_vars): nothing_id isn't an escape point nor does it
9343 2010-04-20 Jakub Jelinek <jakub@redhat.com>
9345 * tree.h (TYPE_REF_IS_RVALUE): Define.
9346 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
9347 should_move_die_to_comdat, prune_unused_types_walk): Handle
9348 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
9349 (modified_type_die, gen_reference_type_die): Emit
9350 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
9351 if TYPE_REF_IS_RVALUE and -gdwarf-4.
9353 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9356 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
9357 calls for -fpic -m31 if they have been sibcall optimized.
9359 2010-04-19 James E. Wilson <wilson@codesourcery.com>
9361 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
9362 ar.lc fixed and call-used.
9364 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
9366 2010-04-19 Jan Hubicka <jh@suse.cz>
9368 * opts.c (decode_options): Disable whpr incompatible passes.
9369 * lto/lto.c (lto_1_to_1_map): Skip clones.
9370 (read_cgraph_and_symbols): Do not mark everything as needed.
9371 (do_whole_program_analysis): Do map only after optimizing;
9372 set proper cgraph_state; use passmanager.
9374 2010-04-19 DJ Delorie <dj@redhat.com>
9376 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
9377 POINTER_PLUS_EXPR and fix them.
9379 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
9381 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
9382 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
9383 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
9384 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
9385 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
9386 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
9387 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
9388 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
9389 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
9390 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
9391 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
9393 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
9395 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
9396 (check_cond_move_block): Likewise.
9397 (cond_move_process_if_block): Likewise.
9398 (noce_find_if_block): Improve formatting.
9399 (find_if_header): Pass 0 to memset and tweak conditions.
9400 (cond_exec_find_if_block): Fix long lines and tweak conditions.
9402 2010-04-19 Jakub Jelinek <jakub@redhat.com>
9404 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
9408 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
9409 with non-local decl doesn't need chain.
9411 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
9413 * ira-color.c (allocno_reload_assign): Avoid accumulating
9414 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
9416 2010-04-19 Martin Jambor <mjambor@suse.cz>
9418 * gimple.h (create_tmp_reg): Declare.
9419 * gimplify.c (create_tmp_reg): New function.
9420 (gimplify_return_expr): Use create_tmp_reg.
9421 (gimplify_omp_atomic): Likewise.
9422 (gimple_regimplify_operands): Likewise.
9423 * tree-dfa.c (make_rename_temp): Likewise.
9424 * tree-predcom.c (predcom_tmp_var): Likewise.
9425 (reassociate_to_the_same_stmt): Likewise.
9426 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
9427 (get_replaced_param_substitute): Likewise.
9428 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
9429 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
9430 * tree-ssa-pre.c (get_representative_for): Likewise.
9431 (create_expression_by_pieces): Likewise.
9432 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
9433 (create_tailcall_accumulator): Likewise.
9435 2010-04-19 Martin Jambor <mjambor@suse.cz>
9437 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
9439 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
9441 2010-04-19 Richard Guenther <rguenther@suse.de>
9443 PR tree-optimization/43796
9444 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
9445 from SCEV in the lattice.
9446 (vrp_visit_phi_node): Dump change.
9448 2010-04-19 Richard Guenther <rguenther@suse.de>
9450 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
9451 * configure: Re-generated.
9453 2010-04-19 Richard Guenther <rguenther@suse.de>
9455 PR tree-optimization/43783
9456 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
9457 constant ARRAY_REF operands two and three if possible.
9459 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
9462 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
9464 2010-04-19 Jie Zhang <jie@codesourcery.com>
9467 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
9469 2010-04-19 Ira Rosen <irar@il.ibm.com>
9471 PR tree-optimization/37027
9472 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
9473 and macro to access it.
9474 (vectorizable_reduction): Add argument.
9475 (vect_get_slp_defs): Likewise.
9476 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
9477 statements for possible use in SLP.
9478 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
9479 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
9480 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
9482 (vectorizable_reduction): Likewise.
9483 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
9485 (vectorizable_type_demotion, vectorizable_type_promotion,
9486 vectorizable_store): Likewise.
9487 (vect_analyze_stmt): Update call to vectorizable_reduction.
9488 (vect_transform_stmt): Likewise.
9489 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
9490 (vect_build_slp_tree): Fix indentation. Check that there are no loads
9491 from different interleaving chains in same node.
9492 (vect_slp_rearrange_stmts): New function.
9493 (vect_supported_load_permutation_p): Allow load permutations for
9494 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
9495 inside SLP nodes if necessary.
9496 (vect_analyze_slp_instance): Handle reductions.
9497 (vect_analyze_slp): Try to build SLP instances originating from groups
9499 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
9500 (vect_get_constant_vectors): Create initial vectors for reductions
9501 according to reduction code. Add new argument.
9502 (vect_get_slp_defs): Add new argument, pass it to
9503 vect_get_constant_vectors.
9504 (vect_schedule_slp_instance): Remove SLP tree root statements.
9506 2010-04-19 Jakub Jelinek <jakub@redhat.com>
9508 * tree.h (ENUM_IS_SCOPED): Define.
9509 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
9510 for ENUM_IS_SCOPED enums.
9512 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
9514 * fold-const.c (fold_comparison): Use ssizetype.
9515 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
9516 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
9517 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
9518 * tree-object-size.c (compute_object_sizes): Use size_type_node.
9520 * tree.h (initialize_sizetypes): Remove parameter.
9521 (build_common_tree_nodes): Remove second parameter.
9522 * stor-layout.c (initialize_sizetypes): Remove parameter.
9523 Always create an unsigned type.
9524 (set_sizetype): Assert that the passed type is unsigned and simplify.
9525 * tree.c (build_common_tree_nodes): Remove second parameter.
9526 Adjust call to initialize_sizetypes.
9527 * c-decl.c (c_init_decl_processing): Remove second argument in call to
9528 build_common_tree_nodes.
9530 2010-04-18 Matthias Klose <doko@ubuntu.com>
9532 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
9534 2010-04-18 Ira Rosen <irar@il.ibm.com>
9536 PR tree-optimization/43771
9537 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
9538 load permutation doesn't have gaps.
9540 2010-04-18 Jan Hubicka <jh@suse.cz>
9542 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
9543 (sse_prologue_save_insn expander): Use new pattern.
9544 (sse_prologue_save_insn1): New pattern and splitter.
9545 (sse_prologue_save_insn): Update to deal also with 64bit aligned
9547 * i386.c (setup_incoming_varargs_64): Do not compute jump
9549 (ix86_gimplify_va_arg): Update alignment needed.
9550 (ix86_local_alignment): Do not align all local arrays to 128bit.
9552 2010-04-17 Jan Hubicka <jh@suse.cz>
9554 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
9556 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
9558 * arm.md (negdi2): Remove redundant code to force values into a
9561 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
9563 * arm/bpabi.S: Add EABI alignment attributes to objects.
9564 * arm/bpabi-v6m.S: Likewise.
9565 * arm/crti.asm: Likewise.
9566 * arm/crtn.asm: Likewise.
9567 * arm/lib1funcs.asm: Likewise.
9568 * arm/libunwind.S: Likewise.
9570 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
9572 * arm-protos.h (tune_params): New structure.
9573 * arm.c (current_tune): New variable.
9574 (arm_constant_limit): Delete.
9575 (struct processors): Add pointer to the tune parameters.
9576 (arm_slowmul_tune): New tuning option.
9577 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
9578 (all_cores): Adjust to pick up the tuning model.
9579 (arm_constant_limit): New function.
9580 (arm_override_options): Select the appropriate tuning model. Delete
9581 initialization of arm_const_limit.
9582 (arm_split_constant): Use the new constant-limit model.
9583 (arm_rtx_costs): Pick up the current tuning model.
9584 * arm.md (is_strongarm, is_xscale): Delete.
9585 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
9586 for Xscale variant architectures.
9587 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
9589 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9591 * config/arm/arm.c (arm_gen_constant): Remove unused variable
9593 (arm_rtx_costs_1): Remove unused variable extra_cost.
9594 (arm_unwind_emit_set): Use variable offset.
9595 (thumb1_output_casesi): Remove unused variable flags.
9597 2010-04-16 Jeff Law <law@redhat.com>
9599 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
9600 needing assignment rather than doing a two-phase assignment. Remove
9601 unused variable 'm'.
9603 2010-04-16 Jakub Jelinek <jakub@redhat.com>
9606 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
9608 2010-04-16 Doug Kwan <dougkwan@google.com>
9610 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
9611 (next_operand_entry_id): New static variable.
9612 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
9613 (add_to_ops_vec): Assigned unique ID to operand entry.
9614 (struct oecount_s): New field ID.
9615 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
9616 (undistribute_ops_list): Assign unique IDs to oecounts.
9617 (init_reassoc): reset next_operand_entry_id.
9619 2010-04-16 Doug Kwan <dougkwan@google.com>
9621 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
9622 missing left parenthesis.
9624 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
9626 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
9627 *btdi_rex64 using SWI48 mode iterator.
9628 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
9629 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
9630 *jcc_btdi_mask_rex64.
9632 2010-04-16 Anatoly Sokolov <aesok@post.ru>
9634 * double-int.h (tree_to_double_int): Convert to macro.
9635 * double-int.c (tree_to_double_int): Remove.
9637 2010-04-16 Jakub Jelinek <jakub@redhat.com>
9640 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
9641 with want_address 2 and in case a single element list might be
9642 possible, call it again with want_address 0.
9644 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
9646 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
9647 case 'W' print operands for HI mode.
9648 * config/h8300/h8300.h (Y0, Y2) : New constraints.
9649 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
9650 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
9651 * config/h8300/predicate.md (bit_register_indirect_operand): New.
9653 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
9655 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
9656 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
9657 #xx:3 and #xx:4 mode.
9659 * config/h8300/h8300.md (inverted load with HImode dest): Add
9660 support for H8300SX.
9662 * config/h8300/predicate.md (bit_operand): Allow immediate values that
9663 satisfy 'U' constraint.
9665 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9667 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
9668 * configure: Regenerate.
9669 * config.in: Regenerate.
9670 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
9673 2010-04-16 Richard Guenther <rguenther@suse.de>
9675 * tree.h (struct tree_decl_minimal): Move pt_uid ...
9676 (struct tree_decl_common): ... here.
9677 (DECL_PT_UID): Adjust.
9678 (SET_DECL_PT_UID): Likewise.
9679 (DECL_PT_UID_SET_P): Likewise.
9681 2010-04-16 Richard Guenther <rguenther@suse.de>
9683 PR tree-optimization/43572
9684 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
9685 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
9686 * tree-flow.h (is_call_clobbered): Remove.
9687 * tree-flow-inline.h (is_call_clobbered): Likewise.
9688 * tree-dfa.c (dump_variable): Do not dump call clobber state.
9689 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
9690 (execute_return_slot_opt): Adjust.
9691 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
9692 check for call clobbered vars here.
9693 (find_tail_calls): Move tailcall verification to the
9696 2010-04-16 Diego Novillo <dnovillo@google.com>
9698 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
9700 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
9703 * config/arm/arm.md (cbranchqi4): New pattern.
9704 * config/arm/predicates.md (const0_operand,
9705 cbranchqi4_comparison_operator): New predicates.
9707 2010-04-16 Richard Guenther <rguenther@suse.de>
9709 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
9710 (dump_gimple_stmt): Likewise.
9712 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
9714 * recog.h (struct recog_data): New field is_operator.
9715 (struct insn_operand_data): New field is_operator.
9716 * recog.c (extract_insn): Set recog_data.is_operator.
9717 * genoutput.c (output_operand_data): Emit code to set the
9719 * reload.c (find_reloads): Use it rather than testing for an
9720 empty constraint string.
9723 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
9724 If the previous insn is a cbranchsi4_insn with the same arguments,
9725 omit the compare instruction.
9727 * config/arm/arm.md (addsi3_cbranch): If destination is a high
9728 register, inputs must be low registers and we need a low register
9729 scratch. Handle alternative 2 like alternative 3.
9731 2010-04-16 Jakub Jelinek <jakub@redhat.com>
9733 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
9734 don't call get_addr on both. If one expression is a VALUE and
9735 the other a REG, check VALUE's locs if the REG isn't among them.
9737 2010-04-16 Christian Bruel <christian.bruel@st.com>
9739 * config/sh/sh.h (sh_frame_pointer_required): New function.
9740 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
9741 (flag_omit_frame_pointer) Set.
9742 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
9743 (rounded_frame_size): Adjust size with outgoing_args_size.
9744 (sh_set_return_address): Must return from stack pointer.
9745 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
9746 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
9747 (ACCUMULATE_OUTGOING_ARGS): Define.
9748 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
9749 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
9751 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
9754 * config/sh/sh.c (sh_legitimize_reload_address): Use
9755 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
9756 Remove a unneeded check for offset_base.
9758 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
9760 * configure: Regenerated.
9762 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9764 * config/s390/s390.c (s390_call_save_register_used): Switch back
9765 to HARD_REGNO_NREGS.
9767 2010-04-15 Richard Guenther <rguenther@suse.de>
9769 * alias.c (alias_set_subset_of): Handle alias-set zero
9772 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
9773 Julian Brown <julian@codesourcery.com>
9775 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
9776 alternatives according to use of high and low regs.
9777 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9778 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
9779 optimizing for size on Thumb-2.
9781 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
9783 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
9785 2010-04-15 Richard Guenther <rguenther@suse.de>
9787 * tree-ssa-structalias.c (struct variable_info): Add
9789 (new_var_info): Initialize it.
9790 (dump_constraints): Support printing last added constraints.
9791 (debug_constraints): Adjust.
9792 (dump_constraint_graph): Likewise.
9793 (make_heapvar_for): Check for NULL cfun.
9794 (get_function_part_constraint): New function.
9795 (get_fi_for_callee): Likewise.
9796 (find_func_aliases): Properly implement IPA PTA constraints.
9797 (process_ipa_clobber): New function.
9798 (find_func_clobbers): Likewise.
9799 (insert_into_field_list_sorted): Remove.
9800 (create_function_info_for): Properly allocate vars for IPA mode.
9801 Do not use insert_into_field_list_sorted.
9802 (create_variable_info_for): Properly generate constraints for
9803 global vars in IPA mode.
9804 (dump_solution_for_var): Always dump the solution.
9805 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
9806 (find_what_var_points_to): Adjust.
9807 (pt_solution_set): Change.
9808 (pt_solution_ior_into): New function.
9809 (pt_solution_empty_p): Export.
9810 (pt_solution_includes_global): Adjust.
9811 (pt_solution_includes_1): Likewise.
9812 (pt_solutions_intersect_1): Likewise.
9813 (dump_sa_points_to_info): Check some invariants.
9814 (solve_constraints): Move constraint dumping ...
9815 (compute_points_to_sets): ... here.
9816 (ipa_pta_execute): ... and here.
9817 (compute_may_aliases): Do not re-compute points-to info
9818 locally if IPA info is available.
9819 (ipa_escaped_pt): New global var.
9820 (ipa_pta_execute): Properly implement IPA PTA.
9821 * tree-into-ssa.c (dump_decl_set): Support dumping
9822 decls not in referenced-vars.
9823 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
9824 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
9825 (dump_points_to_solution): Likewise.
9826 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
9827 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
9828 (remap_gimple_stmt): Reset call clobber/use information if necessary.
9829 (copy_decl_to_var): Copy DECL_PT_UID.
9830 (copy_result_decl_to_var): Likewise.
9831 * tree.c (make_node_stat): Initialize DECL_PT_UID.
9832 (copy_node_stat): Copy it.
9833 * tree.h (DECL_PT_UID): New macro.
9834 (SET_DECL_PT_UID): Likewise.
9835 (DECL_PT_UID_SET_P): Likewise.
9836 (struct tree_decl_minimal): Add pt_uid member.
9837 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
9838 (pt_solution_empty_p): Declare.
9839 (pt_solution_set): Adjust.
9840 (ipa_escaped_pt): Declare.
9841 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
9842 * gimple-pretty-print.c (pp_points_to_solution): New function.
9843 (dump_gimple_call): Dump call clobber/use information.
9844 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
9845 * tree-pass.h (TDF_ALIAS): New dump option.
9846 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
9847 * doc/invoke.texi (-fipa-pta): Update documentation.
9849 2010-04-15 Richard Guenther <rguenther@suse.de>
9851 * Makefile.in (OBJS-common): Add gimple-fold.o.
9852 (gimple-fold.o): New rule.
9853 * tree.h (maybe_fold_offset_to_reference,
9854 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
9856 * gimple.h: ... here.
9857 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
9858 may_propagate_address_into_dereference): Move prototypes ...
9859 * gimple.h: ... here.
9860 * tree-ssa-ccp.c (get_symbol_constant_value,
9861 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
9862 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
9863 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
9864 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
9865 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
9866 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
9867 gimplify_and_update_call_from_tree): Move ...
9868 * gimple-fold.c: ... here. New file.
9869 (ccp_fold_builtin): Rename to ...
9870 (gimple_fold_builtin): ... this.
9871 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
9873 2010-04-15 Richard Guenther <rguenther@suse.de>
9875 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
9876 fit_double_type, force_fit_type_double, add_double_with_sign,
9877 neg_double, mul_double_with_sign, lshift_double, rshift_double,
9878 lrotate_double, rrotate_double, div_and_round_double): Move ...
9879 * double-int.c: ... here.
9880 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
9881 add_double, neg_double, mul_double_with_sign, mul_double,
9882 lshift_double, rshift_double, lrotate_double, rrotate_double,
9883 div_and_round_double): Move prototypes ...
9884 * double-int.h: ... here.
9886 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
9889 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
9890 matching constraints to ensure inputs match the output.
9892 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
9895 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
9896 in an input-only operand.
9898 2010-04-15 Anatoly Sokolov <aesok@post.ru>
9900 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
9901 (double_int_not, double_int_lshift, double_int_rshift): Declare.
9902 (double_int_negative_p): Convert to static inline function.
9903 * double-int.c (double_int_lshift, double_int_lshift): New functions.
9904 (double_int_negative_p): Remove.
9905 * tree.h (lshift_double, rshift_double):
9906 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
9907 * fold-const.c (fold_convert_const_int_from_real,
9908 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
9909 (lshift_double): Change type of arith argument to bool.
9910 (rshift_double): Change type of arith argument to bool. Correct
9912 * expmed.c (mask_rtx, lshift_value): (Ditto.).
9914 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
9917 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
9918 at the start and end of the then/else blocks, and omit them from the
9920 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
9921 argument; all callers changed. Pass zero to old_insns_match_p instead.
9922 (flow_find_head_matching_sequence): New function.
9923 (old_insns_match_p): Check REG_EH_REGION notes for calls.
9924 * basic-block.h (flow_find_cross_jump,
9925 flow_find_head_matching_sequence): Declare functions.
9927 2010-04-14 Jason Merrill <jason@redhat.com>
9930 * c-common.c (attribute_takes_identifier_p): New fn.
9931 * c-common.h: Declare it.
9933 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
9935 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
9937 (*udivmod<mode>4): Ditto.
9939 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
9941 * config/i386/i386.md (maxmin_int): Rename code attribute from
9942 maxminiprefix and update all users.
9943 (maxmin_float): Ditto from maxminfprefix.
9944 (logic): Ditto from logicprefix.
9945 (absneg_mnemonic): Ditto from absnegprefix.
9946 * config/i386/mmx.md: Update all users of maxminiprefix,
9947 maxminfprefix and logicprefix for rename.
9948 * config/i386/sse.md: Ditto.
9949 * config/i386/sync.md (sync_<code><mode>): Update for
9952 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
9955 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
9956 warnings converted to errors.
9958 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
9960 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
9961 used insn_type variable.
9962 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
9963 to avoid set-but-not-used warning.
9965 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
9967 * df-core.c (df_ref_debug): Change format string placeholder
9969 * dwarf2asm.c (dw2_asm_output_data_raw,
9970 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
9971 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
9972 * dwarf2out.c (output_cfi, output_cfi_directive,
9973 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
9974 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
9976 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
9977 * print-rtl.c (print_rtx): Ditto.
9979 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
9982 * builtins.c (expand_builtin_pow_root): New function to expand pow
9983 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
9984 series of sqrt and cbrt calls under -ffast-math.
9985 (expand_builtin_pow): Call it.
9987 2010-04-14 Michael Matz <matz@suse.de>
9989 PR tree-optimization/42963
9990 * tree-cfg.c (touched_switch_bbs): New static variable.
9991 (group_case_labels_stmt): New function broken out from ...
9992 (group_case_labels): ... here, use the above.
9993 (start_recording_case_labels): Allocate touched_switch_bbs.
9994 (end_recording_case_labels): Deallocate it, call
9995 group_case_labels_stmt.
9996 (gimple_redirect_edge_and_branch): Remember index of affected BB.
9998 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10000 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
10001 from insn template.
10003 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10005 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
10007 2010-04-13 Jan Hubicka <jh@suse.cz>
10009 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
10010 of optimized out static functions.
10011 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
10012 cost computation. Also sanity check for overflows.
10013 (update_caller_keys): Update cgraph_edge_badness call; properly
10014 update fibheap and sanity check that it is up to date.
10015 (add_new_edges_to_heap): Update cgraph_edge_badness.
10016 (cgraph_decide_inlining_of_small_function): Likewise;
10017 add sanity checking that badness in heap is up to date;
10018 improve dumping of reason; Update badness of calls to the
10019 offline copy of function currently inlined; dump badness
10020 of functions not inlined because of unit growth limits.
10022 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
10024 PR middle-end/32628
10025 * c-common.c (pointer_int_sum): Disregard overflow that occured only
10026 because of sign-extension change when converting to sizetype here...
10027 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
10029 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
10030 the folding to constants. Remove redundant final conversion.
10031 (fold_binary) <associate>: Do not associate if the re-association of
10032 constants alone overflows.
10033 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
10034 to the end of the list.
10035 (multiple_of_p) <COND_EXPR>: New case.
10037 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
10039 * opt-functions.awk (opt_sanitized_name): New.
10041 * optc-gen.awk: Use it
10042 * opth-gen.awk: Use it.
10044 2010-04-13 Martin Jambor <mjambor@suse.cz>
10046 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
10047 (sra_modify_assign): Delete stmts loading dead data even if racc has no
10048 children. Call replace_uses_with_default_def_ssa_name to handle
10051 2010-04-13 Michael Matz <matz@suse.de>
10053 PR middle-end/43730
10054 * builtins.c (expand_builtin_interclass_mathfn): Also create
10055 a register if the predicate doesn't match.
10057 2010-04-13 Diego Novillo <dnovillo@google.com>
10059 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
10060 * c-pch.c: Include timevar.h.
10061 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
10062 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
10063 * ggc-common.c: Include timevar.h.
10064 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
10065 * timevar.def (TV_PCH_SAVE): Define.
10066 (TV_PCH_CPP_SAVE): Define.
10067 (TV_PCH_PTR_REALLOC): Define.
10068 (TV_PCH_PTR_SORT): Define.
10069 (TV_PCH_RESTORE): Define.
10070 (TV_PCH_CPP_RESTORE): Define.
10072 2010-04-13 Michael Matz <matz@suse.de>
10074 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
10076 (can_reassociate_p): New function.
10077 (break_up_subtract_bb, reassociate_bb): Use it.
10079 2010-04-13 Richard Guenther <rguenther@suse.de>
10082 * builtins.c (c_readstr): Fix assert.
10084 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
10086 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
10087 when generating cltd insn.
10089 (*ashl<mode>3_1): Remove special handling for register operand 2.
10090 (*ashlsi3_1_zext): Ditto.
10091 (*ashlhi3_1): Ditto.
10092 (*ashlhi3_1_lea): Ditto.
10093 (*ashlqi3_1): Ditto.
10094 (*ashlqi3_1_lea): Ditto.
10095 (*<shiftrt_insn><mode>3_1): Ditto.
10096 (*<shiftrt_insn>si3_1_zext): Ditto.
10097 (*<shiftrt_insn>qi3_1_slp): Ditto.
10098 (*<rotate_insn><mode>3_1): Ditto.
10099 (*<rotate_insn>si3_1_zext): Ditto.
10100 (*<rotate_insn>qi3_1_slp): Ditto.
10102 2010-04-13 Richard Guenther <rguenther@suse.de>
10104 * tree-ssa-structalias.c (callused_id): Remove.
10105 (call_stmt_vars): New.
10106 (get_call_vi): Likewise.
10107 (lookup_call_use_vi): Likewise.
10108 (lookup_call_clobber_vi): Likewise.
10109 (get_call_use_vi): Likewise.
10110 (get_call_clobber_vi): Likewise.
10111 (make_transitive_closure_constraints): Likewise.
10112 (handle_const_call): Adjust to do per-call call-used handling.
10113 (handle_pure_call): Likewise.
10114 (find_what_var_points_to): Remove general callused handling.
10115 (init_base_vars): Likewise.
10116 (init_alias_vars): Initialize call_stmt_vars.
10117 (compute_points_to_sets): Process call-used and call-clobbered
10118 vars for call statements.
10119 (delete_points_to_sets): Free call_stmt_vars.
10121 2010-04-13 Richard Guenther <rguenther@suse.de>
10123 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
10124 Only add RW dependence for dependence distance zero.
10125 Adjust maximal vectorization factor according to dependences.
10126 Move alignment handling ...
10127 (vect_find_same_alignment_drs): ... here. New function.
10128 (vect_analyze_data_ref_dependences): Adjust.
10129 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
10130 (vect_analyze_data_refs): Adjust minimal vectorization factor
10131 according to data references.
10132 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
10133 dependences before determining the vectorization factor.
10134 Analyze alignment after determining the vectorization factor.
10135 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
10136 dependences before alignment.
10137 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
10139 (vect_analyze_data_refs): Likewise.
10140 (MAX_VECTORIZATION_FACTOR): New define.
10142 2010-04-13 Duncan Sands <baldrick@free.fr>
10144 * except.h (lang_eh_type_covers): Remove.
10145 * except.c (lang_eh_type_covers): Likewise.
10147 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10148 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10150 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
10151 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
10152 UNITS_PER_LONG where it is ABI relevant.
10153 (s390_return_addr_rtx): Likewise.
10154 (s390_back_chain_rtx): Likewise.
10155 (s390_frame_area): Likewise.
10156 (s390_frame_info): Likewise.
10157 (s390_initial_elimination_offset): Likewise.
10158 (save_gprs): Likewise.
10159 (s390_emit_prologue): Likewise.
10160 (s390_emit_epilogue): Likewise.
10161 (s390_function_arg_advance): Likewise.
10162 (s390_function_arg): Likewise.
10163 (s390_va_start): Likewise.
10164 (s390_gimplify_va_arg): Likewise.
10165 (s390_function_profiler): Likewise.
10166 (s390_optimize_prologue): Likewise.
10167 (s390_rtx_costs): Likewise.
10168 (s390_secondary_reload): Likewise.
10169 (s390_promote_function_mode): Likewise.
10170 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
10171 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
10172 registers available.
10173 (s390_unwind_word_mode): New function.
10174 (s390_function_value): Split 64 bit values into register pair if
10175 used as return value.
10176 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
10177 function call parameters. Handle parallels.
10178 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
10179 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
10180 (DWARF_CIE_DATA_ALIGNMENT): New macro.
10181 (s390_expand_setmem): Remove unused variable src_addr.
10182 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
10183 deal with 64 bit registers.
10184 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
10185 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
10186 (UNITS_PER_LONG): New macro.
10187 * libjava/include/s390-signal.h: Define extended ucontext
10188 structure containing the upper halfs of the 64 bit registers.
10190 2010-04-13 Simon Baldwin <simonb@google.com>
10192 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
10194 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
10196 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
10197 rvalue on the RHS if the LHS is of a non-renamable type.
10198 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
10200 2010-04-13 Matthias Klose <doko@ubuntu.com>
10202 * gcc.c (cc1_options): Handle -iplugindir before processing
10203 the cc1 spec. Only add -iplugindir once.
10204 (cpp_unique_options): Add -iplugindir option if -fplugin* options
10206 * common.opt (iplugindir): Remove `Separate' property, initialize.
10207 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
10209 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
10210 (distclean): Remove plugin dir.
10211 * doc/invoke.texi: Document -iplugindir.
10213 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
10215 * doc/plugins.texi (Loading Plugins): Document short
10216 -fplugin=foo option.
10217 (Plugin API): Mention default_plugin_dir_name function.
10219 * gcc.c (find_file_spec_function): Add new declaration.
10220 (static_spec_func): Use it for "find-file".
10221 (find_file_spec_function): Add new function.
10222 (cc1_options): Add -iplugindir option if -fplugin* options found.
10224 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
10226 * plugin.c (add_new_plugin): Updated comment, and handle short
10228 (default_plugin_dir_name): Added new function.
10230 * common.opt (iplugindir): New option to set the plugin directory.
10232 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
10234 * config/i386/i386.md (any_rotate): New code iterator.
10235 (rotate_insn): New code attribute.
10237 (SWIM124): New mode iterator.
10238 (<rotate_insn>ti3): New expander.
10239 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
10240 any_rotate code iterator.
10241 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
10242 using any_rotate code iterator and SWIM124 mode iterator.
10243 (ix86_rotlti3): New insn_and_split pattern.
10244 (ix86_rotrti3): Ditto.
10245 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
10246 ix86_rotl{di,ti}3 patterns.
10247 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
10248 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
10249 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
10250 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
10251 code iterator and SWI mode iterator.
10252 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
10253 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
10255 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
10256 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
10257 (bswap rotatert splitter): Add splitter.
10258 (bswap splitter): Macroize splitter using any_rotate code iterator.
10259 Add insn predicate to split only for TARGET_USE_XCHGB or when
10260 optimizing function for size.
10262 2010-04-12 Steve Ellcey <sje@cup.hp.com>
10264 * config/pa/pa.c (emit_move_sequence): Remove use of
10265 deleted variable flag_argument_noalias.
10267 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10269 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
10271 Add to unsupported targets list.
10272 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
10273 sparc*-sun-solaris2.[567]* from target lists.
10274 * configure: Regenerate.
10275 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
10277 Remove Solaris 7 patch references.
10278 (Specific, sparc-sun-solaris2.7): Removed.
10279 (sparc-sun-solaris2*): Update Solaris 7 example.
10280 (sparc64-*-solaris2*): Likewise.
10282 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10284 * config.build (alpha*-dec-osf4*): Remove.
10285 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
10286 of obsolete configurations.
10287 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
10289 * config/alpha/t-osf4: Renamed to ...
10290 * config/alpha/t-osf5: ... this.
10291 * config/alpha/osf.h: Renamed to ...
10292 * config/alpha/osf5.h: ... this.
10293 Merged old osf5.h contents.
10295 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
10296 (EXTRA_SPECS): Removed.
10297 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
10298 reflect removal of Tru64 UNIX V4.0/V5.0 support.
10301 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10303 * doc/contrib.texi (Contributors, Rainer Orth): Update.
10305 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
10308 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
10309 __thiscall convention.
10311 2010-04-12 Steve Ellcey <sje@cup.hp.com>
10313 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
10315 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
10317 2010-04-12 Steve Ellcey <sje@cup.hp.com>
10319 * function.c (assign_parms_initialize_all): Add unused attribute
10322 2010-04-12 Richard Guenther <rguenther@suse.de>
10324 * gsstruct.def (GSS_CALL): New.
10325 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
10326 * gimple.h: Include tree-ssa-alias.h.
10327 (struct gimple_statement_call): New.
10328 (union gimple_statement_struct_d): Add gimple_call member.
10329 (gimple_call_reset_alias_info): Declare.
10330 (gimple_call_use_set): New function.
10331 (gimple_call_clobber_set): Likewise.
10332 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
10333 * gimple.c (gimple_call_reset_alias_info): New function.
10334 (gimple_build_call_1): Call it.
10335 * lto-streamer-in.c (input_gimple_stmt): Likewise.
10336 * tree-inline.c (remap_gimple_stmt): Likewise.
10337 (expand_call_inline): Remove callused handling.
10338 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
10339 * tree-dfa.c (dump_variable): Likewise.
10340 * tree-parloops.c (parallelize_loops): Likewise.
10341 * tree-ssa.c (init_tree_ssa): Likewise.
10342 (delete_tree_ssa): Likewise.
10343 * tree-flow-inline.h (is_call_used): Remove.
10344 * tree-flow.h (struct gimple_df): Remove callused member.
10345 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
10346 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
10347 (ref_maybe_used_by_call_p_1): Simplify.
10348 (call_may_clobber_ref_p_1): Likewise.
10349 * tree-ssa-structalias.c (compute_points_to_sets): Set
10350 the call stmt used and clobbered sets.
10351 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
10352 (find_tail_calls): Verify the tail call.
10354 2010-04-12 Richard Guenther <rguenther@suse.de>
10356 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
10357 single-iteration always-inline inlining.
10358 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
10359 (cgraph_decide_inlining): Do not handle always-inline specially.
10360 (try_inline): Remove always-inline cycle detection special case.
10361 Do not recurse on always-inlines.
10362 (cgraph_early_inlining): Do not iterate if not optimizing.
10363 (cgraph_gate_early_inlining): remove.
10364 (pass_early_inline): Run unconditionally.
10365 (gate_cgraph_decide_inlining): New function.
10366 (pass_ipa_inline): Use it. Do not run the IPA inliner if
10367 not inlining or optimizing.
10368 (cgraph_decide_inlining_of_small_functions): Also consider
10369 always-inline functions.
10370 (cgraph_default_inline_p): Return true for nodes which should
10371 disregard inline limits.
10372 (estimate_function_body_sizes): Assume zero size and time for
10373 nodes which are marked as disregarding inline limits.
10374 (cgraph_decide_recursive_inlining): Do not perform recursive
10375 inlining on always-inline nodes.
10377 2010-04-12 Jakub Jelinek <jakub@redhat.com>
10380 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
10381 for exprs satisfying handled_component_p.
10383 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
10385 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
10386 non-constant aggregate elements.
10388 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
10389 is a real initialization.
10391 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
10394 * c-decl.c (start_function): Move forward check for nested function.
10396 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
10398 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
10399 * config/sh/sh.c: Include reload.h.
10400 (sh_legitimize_reload_address): New.
10401 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
10402 sh_legitimize_reload_address.
10404 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
10406 * config/sh/sh.md (*movqi_pop): New insn pattern.
10407 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
10409 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
10411 * config/i386/i386.md (any_shiftrt): New code iterator.
10412 (shiftrt_insn): New code attribute.
10414 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
10415 using any_shiftrt code iterator.
10416 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
10417 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
10418 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
10419 pattern from corresponding peephole2 patterns.
10420 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
10421 using any_shiftrt code iterator.
10422 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
10423 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
10424 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
10425 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
10426 *{ashr,lshr}<mode>3_cmp_zext.
10427 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
10429 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
10431 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
10433 (*lshr<mode>3_cconly): Ditto.
10435 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
10437 * config/i386/i386.md (lshr<mode>3): Macroize expander from
10438 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
10439 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
10440 pattern from *lshr{di,ti}3_1 and corresponding splitters using
10442 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
10443 from corresponding peephole2 patterns.
10444 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
10445 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
10446 and *lshrdi3_1_rex64 using SWI mode iterator.
10447 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
10448 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
10449 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
10450 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
10451 and *lshrdi3_cmp_rex64 using SWI mode iterator.
10452 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
10453 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
10454 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
10455 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
10458 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
10460 * config/i386/i386.md (ashr<mode>3): Macroize expander from
10461 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
10462 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
10463 pattern from *ashr{di,ti}3_1 and corresponding splitters using
10465 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
10466 from corresponding peephole2 patterns.
10467 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
10468 (ashrsi3_cvt): Rename from ashrsi3_31.
10469 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
10470 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
10471 and x86_64_shift_adj_3 using SWI48 mode iterator.
10472 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
10473 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
10474 and *ashrdi3_1_rex64 using SWI mode iterator.
10475 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
10476 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
10477 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
10478 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
10479 and *ashrdi3_cmp_rex64 using SWI mode iterator.
10480 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
10481 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
10482 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
10483 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
10485 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
10486 * config/i386/i386.c (ix86_split_ashr): Update for renamed
10487 x86_shift<mode>_adj_3 expanders.
10489 2010-04-10 Wei Guozhi <carrot@google.com>
10492 * config/arm/arm.c (arm_pic_static_addr): New function.
10493 (legitimize_pic_address): Call arm_pic_static_addr when it detects
10495 (arm_output_addr_const_extra): Output expression for new pattern.
10496 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
10498 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
10500 * ira-costs.c (record_reg_classes): Ignore alternatives that are
10503 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
10504 * web.c: Include "insn-config.h" and "recog.h".
10505 (union_match_dups): New function.
10506 (web_main): Call it.
10507 (union_defs): Don't try to recognize match_dups.
10509 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
10510 if doing so would replace the entire pattern.
10512 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
10516 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
10517 and splitter pattern. Change splitter operand 1 predicate to
10520 2010-04-09 Martin Jambor <mjambor@suse.cz>
10522 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
10523 lattices are addresses of CONST_DECLs with the same initial value.
10524 (ipcp_print_all_lattices): Print values of CONST_DECLs.
10525 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
10527 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
10528 Bernd Schmidt <bernds@codesourcery.com>
10530 * loop-invariant.c (replace_uses): New static function.
10531 (move_invariant_reg): Use it to ensure we can replace the uses.
10533 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
10535 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
10537 (picochip_override_options): Enable section anchors only above -O1.
10538 (picochip_reorg): Fixed a couple of build warnings.
10540 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10542 * configure.ac (plugin -rdynamic test): Log result.
10543 * configure: Regenerate.
10544 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
10545 (RDYNAMIC_SPEC): Define.
10546 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
10548 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10550 * configure.ac: Determine Sun ld version numbers.
10551 (comdat_group): Restrict GNU ld version checks to gld.
10552 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
10553 (enable_comdat): Support --enable-comdat.
10554 * configure: Regenerate.
10555 * doc/install.texi (Configuration): Document --enable-comdat.
10557 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10559 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
10560 * config/sol2-gld.h: ... here.
10561 * config.gcc (sparc*-*-solaris2*): Reflect this.
10562 (i[34567]86-*-solaris2*): Use it.
10564 2010-04-09 Steve Ellcey <sje@cup.hp.com>
10566 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
10568 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
10570 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
10573 * diagnostic.c (diagnostic_initialize): Initialize
10574 some_warnings_are_errors.
10575 (diagnostic_finish): New.
10576 (diagnostic_action_after_output): Call it before exiting.
10577 (diagnostic_report_diagnostic): Do not print message here. Set
10578 some_warnings_are_errors.
10579 * diagnostic.h (diagnostic_context): Delete
10580 issue_warnings_are_errors_message. Add some_warnings_are_errors.
10581 (diagnostic_finish): Declare.
10582 * toplev.c (toplev_main): Call it before exit.
10584 2010-04-09 Jason Merrill <jason@redhat.com>
10587 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
10588 for incomplete type.
10591 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
10592 based on a warning flag.
10594 2010-04-09 Richard Guenther <rguenther@suse.de>
10596 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
10598 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
10601 * varasm.c (default_assemble_visibility): Wrap vars that are
10602 set, but unused, by targets without GAS.
10603 * config/rs6000/rs6000.c (paired_emit_vector_compare):
10604 Remove set, but unused, vars.
10605 (rs6000_legitimize_tls_address): Likewise.
10606 (altivec_expand_dst_builtin): Likewise.
10607 * config/darwin.c (machopic_classify_symbol): Likewise.
10608 (machopic_indirection_name): Likewise.
10610 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
10612 * config/i386/i386.md (DWI): New mode iterator.
10613 (S): New mode attribute.
10614 (shift_operand): Ditto.
10615 (shift_immediate_operand): Ditto.
10616 (ashl_input_operand): Ditto.
10617 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
10618 using SDWIM mode iterator.
10619 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
10620 pattern from *ashl{di,ti}3_1 and corresponding splitters using
10622 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
10623 from corresponding peephole2 patterns.
10624 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
10625 and x86_64_shift_adj_1 using SWI48 mode iterator.
10626 (x86_shift<mode>_adj_2): Ditto.
10627 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
10628 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
10629 using SWI48 mode iterator.
10630 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
10631 *ashldi3_cmp_rex64 using SWI mode iterator.
10632 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
10633 *ashldi3_cconly_rex64 using SWI mode iterator.
10634 * config/i386/i386.c (ix86_split_ashl): Update for renamed
10635 x86_shift<mode>_adj_{1,2}.
10636 (ix86_split_ashr): Ditto.
10637 (ix86_split_lshr): Ditto.
10639 2010-04-09 Richard Guenther <rguenther@suse.de>
10641 * target.h (builtin_conversion): Pass in input and output types.
10642 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
10643 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
10644 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
10645 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
10647 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
10649 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
10651 2010-04-09 Richard Guenther <rguenther@suse.de>
10654 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
10656 2010-04-09 Richard Guenther <rguenther@suse.de>
10658 * tree-vectorizer.h (struct _stmt_vec_info): Document
10659 that vectype is the type of the LHS.
10660 (supportable_widening_operation, supportable_narrowing_operation):
10661 Get both input and output vector types as arguments.
10662 (vect_is_simple_use_1): Declare.
10663 (get_same_sized_vectype): Likewise.
10664 * tree-vect-loop.c (vect_determine_vectorization_factor):
10665 Set STMT_VINFO_VECTYPE to the vector type of the def.
10666 (vectorizable_reduction): Adjust.
10667 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
10668 Adjust. Specify the output vector type.
10669 (vect_pattern_recog_1): Adjust.
10670 * tree-vect-stmts.c (get_same_sized_vectype): New function.
10671 (vectorizable_call): Adjust.
10672 (vectorizable_conversion): Likewise.
10673 (vectorizable_operation): Likewise.
10674 (vectorizable_type_demotion): Likewise.
10675 (vectorizable_type_promotion): Likewise.
10676 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
10678 (vect_is_simple_use_1): New function.
10679 (supportable_widening_operation): Get both input and output
10681 (supportable_narrowing_operation): Likewise.
10682 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
10684 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
10686 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
10687 __thiscall and _thiscall as predefined macros.
10688 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
10689 thiscall attribute handling.
10690 (ix86_comp_type_attributes): Likewise.
10691 (ix86_function_regparm): Likewise.
10692 (ix86_return_pops_args): Likewise.
10693 (init_cumulative_args): Likewise.
10694 (find_drap_reg): Likewise.
10695 (ix86_static_chain): Likewise.
10696 (x86_this_parameter): Likewise.
10697 (x86_output_mi_thunk): Likewise.
10698 (ix86_attribute_table): Add description for thiscall attribute.
10699 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
10700 * doc/extend.texi: Add documentation for thiscall.
10702 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
10705 * c.opt (Wint-to-pointer-cast): Available in C++.
10706 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
10708 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
10710 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
10711 * calls.c (expand_call): Pass the function type to aggregate_value_p.
10712 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
10713 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
10714 function type instead. Reorder and simplify checks.
10716 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
10718 2010-04-08 Jing Yu <jingyu@google.com>
10719 Zdenek Dvorak <ook@ucw.cz>
10721 PR tree-optimization/42720
10722 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
10723 loop unswitch conditions here from ...
10724 (tree_unswitch_single_loop): ... here.
10726 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
10728 * tree-if-conv.c: Fix comments and simplify logic.
10730 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
10732 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
10733 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
10734 (main_tree_if_conversion): Update call to tree_if_conversion.
10736 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
10739 * doc/invoke.texi (-b,-V): Delete.
10740 * doc/tm.texi: Do not mention -b.
10741 * gcc.c (display_help): Delete -b and -V.
10742 (process_command): Delete -b and -V.
10743 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
10745 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
10746 Wolfgang Gellerich <gellerich@de.ibm.com>
10748 Implement target hook for loop unrolling
10749 * target.h (loop_unroll_adjust): Add a new target hook function.
10750 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
10751 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
10752 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
10753 (s390_loop_unroll_adjust): Implement the new target hook for s390.
10754 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
10756 (decide_unroll_stupid): Likewise.
10758 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10761 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
10763 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10765 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
10766 (Specific, *-*-solaris2*): Likewise.
10767 Don't prefer Sun as over GNU as.
10769 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
10771 * config/s390/s390.c (override_options): Adjust the z10 defaults
10772 for max-unroll-times, max-completely-peeled-insns
10773 and max-completely-peel-times.
10775 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10777 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
10778 instructions for z10.
10779 (s390_expand_setmem): Likewise.
10780 (s390_expand_cmpmem): Likewise.
10782 2010-04-08 Richard Guenther <rguenther@suse.de>
10784 PR tree-optimization/43679
10785 * tree-ssa-pre.c (eliminate): Only propagate copies.
10787 2010-04-08 Jakub Jelinek <jakub@redhat.com>
10790 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
10791 set but not used variable warning.
10793 2010-04-08 Wei Guozhi <carrot@google.com>
10796 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
10797 (arm_size_rtx_costs): Call the new function when optimized for size.
10799 2010-04-08 Jakub Jelinek <jakub@redhat.com>
10802 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
10803 op0 is not a MEM, just return NULL instead of assertion
10805 (discover_nonconstant_array_refs): Don't walk debug stmts.
10807 2010-04-08 Doug Kwan <dougkwan@google.com>
10809 * configure.ac: Recognize gold and do not use its version number
10810 to test ld features.
10811 * configure: Regenerate.
10813 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
10815 PR middle-end/40815
10816 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
10817 (negate_value): Move code to push elements to broken_up_substracts ...
10818 (eliminate_plus_minus_pair): ... here. Push operands that have no
10819 negative pair to plus_negates.
10820 (repropagate_negates, init_reassoc, fini_reassoc): Update.
10822 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10824 * doc/install.texi (Configuration): Move description of
10825 --enable-lto, --with-libelf*, --enable-gold from Java section to
10828 * doc/generic.texi (Working with declarations)
10829 (Function Properties, C and C++ Trees): Fix typos.
10830 * doc/sourcebuild.texi (Top Level): Likewise.
10832 2010-04-07 Jakub Jelinek <jakub@redhat.com>
10835 * tree.h (DECL_READ_P): Define.
10836 (struct tree_decl_common): Add decl_read_flag.
10837 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
10838 a set but not used warning.
10839 (merge_decls): Merge DECL_READ_P flag.
10840 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
10841 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
10842 * c-common.c (handle_used_attribute, handle_unused_attribute):
10844 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
10846 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
10848 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
10849 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
10850 c_parser_binary_expression, c_parser_cast_expression,
10851 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
10852 Call default_function_array_read_conversion instead of
10853 default_function_array_conversion where needed.
10854 (c_parser_unary_expression, c_parser_conditional_expression,
10855 c_parser_postfix_expression_after_primary, c_parser_initelt):
10856 Likewise. Call mark_exp_read where needed.
10857 (c_parser_statement_after_labels, c_parser_asm_operands,
10858 c_parser_typeof_specifier, c_parser_sizeof_expression,
10859 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
10861 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
10863 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
10864 (warn_unused_but_set_parameter): Default to warn_unused
10866 * doc/invoke.texi: Document -Wunused-but-set-variable and
10867 -Wunused-but-set-parameter.
10869 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
10870 used count variable.
10871 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
10872 when operandN variables aren't used in the body of the expander
10874 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
10875 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
10876 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
10877 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
10878 FOR_EACH_IMM_USE_ON_STMT): Likewise.
10879 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
10880 * tree.c (PROCESS_ARG): Likewise.
10882 2010-04-07 Simon Baldwin <simonb@google.com>
10884 * diagnostic.h (diagnostic_override_option_index): New macro to
10885 set a diagnostic's option_index.
10886 * c-tree.h (c_cpp_error): Add warning reason argument.
10887 * opts.c (_warning_as_error_callback): New.
10888 (register_warning_as_error_callback): Store callback for
10889 warnings enabled via enable_warning_as_error.
10890 (enable_warning_as_error): Call callback, minor code tidy.
10891 * opts.h (register_warning_as_error_callback): Declare.
10892 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
10893 response to -Werror=.
10894 (c_common_init_options): Register warning_as_error_callback in opts.c.
10895 * common.opt: Add -Wno-cpp option.
10896 * c-common.c (struct reason_option_codes_t): Map cpp warning
10897 reason codes to gcc option indexes.
10898 * (c_option_controlling_cpp_error): New function, lookup the gcc
10899 option index for a cpp warning reason code.
10900 * (c_cpp_error): Add warning reason argument, call
10901 c_option_controlling_cpp_error for diagnostic_override_option_index.
10902 * doc/invoke.texi: Document -Wno-cpp.
10904 2010-04-07 Richard Guenther <rguenther@suse.de>
10906 * ipa-reference.c (mark_load): Use get_base_address.
10907 (mark_store): Likewise.
10909 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
10910 inserting GIMPLE_NOPs into the IL.
10911 * tree-ssa-structalias.c (get_constraint_for_component_ref):
10912 Explicitly strip handled components and indirect references.
10914 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
10915 folding address expressions.
10916 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
10917 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
10918 operand_equal_p to compare decls.
10919 (ptr_deref_may_alias_decl_p): Likewise.
10920 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
10921 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
10922 Handle reversed comparison ops.
10923 * tree-sra.c (asm_visit_addr): Use get_base_address.
10924 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
10925 * ipa-reference.c (mark_address): Use get_base_address.
10927 2010-04-07 Richard Guenther <rguenther@suse.de>
10929 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
10930 Propagate constants everywhere.
10932 2010-04-07 Jakub Jelinek <jakub@redhat.com>
10935 * tree.c (MAX_INT_CACHED_PREC): Define.
10936 (nonstandard_integer_type_cache): New array.
10937 (build_nonstandard_integer_type): Cache results for precision
10938 <= MAX_INT_CACHED_PREC.
10940 2010-04-07 Richard Guenther <rguenther@suse.de>
10942 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
10943 -fargument-noalias-global, -fargument-noalias-anything): Remove.
10944 * common.opt: Likewise.
10945 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
10946 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
10947 (nonoverlapping_memrefs_p): Likewise.
10948 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
10949 * opts.c (common_handle_option): Handle OPT_fargument_alias,
10950 OPT_fargument_noalias, OPT_fargument_noalias_anything and
10951 OPT_fargument_noalias_global for backward compatibility.
10953 2010-04-07 Richard Guenther <rguenther@suse.de>
10955 PR tree-optimization/43270
10956 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
10957 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
10958 * tree-ssa-pre.c (phi_translate_1): Adjust.
10959 (fully_constant_expression): Split out vn_reference handling to ...
10960 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
10961 Fold reads from constant strings.
10962 (vn_reference_lookup): Handle fully constant references.
10963 (vn_reference_lookup_pieces): Likewise.
10964 * Makefile.in (expmed.o-warn): Add -Wno-error.
10966 2010-04-07 Martin Jambor <mjambor@suse.cz>
10968 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
10970 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
10973 * gcc.c: Add -static-libstdc++ to list of recognized options.
10975 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10977 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
10979 2010-04-07 Richard Guenther <rguenther@suse.de>
10981 PR middle-end/42617
10982 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
10983 bases build simple mem attributes to retain points-to information.
10985 2010-04-07 Richard Guenther <rguenther@suse.de>
10987 PR middle-end/42617
10988 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
10989 preserve points-to related information.
10991 2010-04-07 Richard Guenther <rguenther@suse.de>
10993 PR middle-end/42617
10994 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
10995 discard plain indirect references.
10996 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
10997 * tree.c (tree_nop_conversion): Likewise.
10999 2010-04-07 Dodji Seketeli <dodji@redhat.com>
11002 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
11004 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
11006 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
11007 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
11009 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
11011 * tree-if-conv.c: Fix indentation and comments.
11013 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
11015 * tree-if-conv.c: Sort static functions in topological order.
11017 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
11019 * tree-if-conv.c: Fix indentation and comments.
11021 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11023 PR middle-end/43519
11024 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
11025 lang_hooks.types.type_for_size instead of
11026 build_nonstandard_integer_type.
11027 When converting an unsigned type to signed, double its precision.
11028 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
11029 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
11030 (graphite_create_new_loop_guard): When ub + 1 wraps around,
11033 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11035 PR middle-end/43519
11036 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
11037 POINTER_PLUS_EXPR for pointer types.
11039 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11041 PR middle-end/43519
11042 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
11043 * graphite-clast-to-gimple.c: Include langhooks.h.
11044 (max_signed_precision_type): New.
11045 (max_precision_type): Takes two types as arguments.
11046 (precision_for_value): New.
11047 (precision_for_interval): New.
11048 (gcc_type_for_interval): New.
11049 (gcc_type_for_value): New.
11050 (gcc_type_for_clast_term): New.
11051 (gcc_type_for_clast_red): New.
11052 (gcc_type_for_clast_bin): New.
11053 (gcc_type_for_clast_expr): Split up into several functions.
11054 (gcc_type_for_clast_eq): Rewritten.
11055 (compute_bounds_for_level): New.
11056 (compute_type_for_level_1): New.
11057 (compute_type_for_level): New.
11058 (gcc_type_for_cloog_iv): Removed.
11059 (gcc_type_for_iv_of_clast_loop): Rewritten.
11060 (graphite_create_new_loop): Compute the lower and upper bound types
11061 with gcc_type_for_clast_expr.
11062 (graphite_create_new_loop_guard): Same.
11063 (find_cloog_iv_in_expr): Removed.
11064 (compute_cloog_iv_types_1): Removed.
11065 (compute_cloog_iv_types): Removed.
11066 (gloog): Do not call compute_cloog_iv_types.
11067 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
11068 GBB_CLOOG_IV_TYPES.
11069 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
11070 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
11071 (GBB_CLOOG_IV_TYPES): Removed.
11073 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11075 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
11076 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
11077 (detect_commutative_reduction): Same.
11079 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11081 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
11082 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
11084 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
11085 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
11086 (rewrite_commutative_reductions_out_of_ssa): Same.
11087 * passes.c (execute_function_todo): Call verify_ssa for every pass
11088 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
11089 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
11090 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
11091 with an extra argument.
11092 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
11093 verify_ssa only when the extra argument is true.
11094 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
11095 with an extra argument.
11096 (tree_transform_and_unroll_loop): Same.
11098 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11100 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
11101 for all the passes of the LNO having LOOP_CLOSED_SSA.
11102 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
11103 * tree-loop-distribution.c (pass_loop_distribution): Same.
11104 * tree-pass.h (TODO_verify_loops): Removed.
11105 * tree-ssa-loop.c (pass_tree_loop_init): Same.
11107 (pass_tree_unswitch): Same.
11108 (pass_predcom): Same.
11109 (pass_vectorize): Same.
11110 (pass_linear_transform): Same.
11111 (pass_graphite_transforms): Same.
11112 (pass_iv_canon): Same.
11113 (pass_complete_unroll): Same.
11114 (pass_complete_unrolli): Same.
11115 (pass_parallelize_loops): Same.
11116 (pass_loop_prefetch): Same.
11117 (pass_iv_optimize): Same.
11119 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
11121 PR middle-end/32824
11122 * passes.c (init_optimization_passes): Move pass_lim before
11123 pass_copy_prop and pass_dce_loop.
11125 2010-04-06 Jakub Jelinek <jakub@redhat.com>
11128 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
11129 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
11130 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
11131 MULTI_* defines for 4 argument vpermil2p* builtins.
11133 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
11135 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
11136 * config/i386/i386.c (x86_maybe_negate_const_int): New.
11137 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
11138 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
11139 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
11140 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
11141 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
11142 Use x86_maybe_negate_const_int to output insn mnemonic.
11143 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
11144 check from instruction predicate. Update comments.
11145 * config/i386/sync.md (sync_add<mode>): Use
11146 x86_maybe_negate_const_int to output insn mnemonic.
11148 2010-04-06 Jan Hubicka <jh@suse.cz>
11150 PR tree-optimization/42906
11151 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
11152 IGNORE_SELF argument. Set visited_control_parents for fully
11154 (find_obviously_necessary_stmts): Update call of
11155 mark_control_dependent_edges_necessary.
11156 (propagate_necessity): Likewise. Handle PHI edges more curefully.
11158 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
11160 * config/i386/i386.md: Remove comment about 'e' and 'E'
11163 2010-04-06 Richard Guenther <rguenther@suse.de>
11165 PR tree-optimization/43627
11166 * tree-vrp.c (extract_range_from_unary_expr): Widenings
11167 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
11170 2010-04-06 Jakub Jelinek <jakub@redhat.com>
11172 * BASE-VER: Change to 4.6.0.
11175 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
11178 2010-04-06 Richard Guenther <rguenther@suse.de>
11180 PR middle-end/43661
11181 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
11183 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11185 * doc/invoke.texi (Optimize Options): Document that LTO
11186 won't remove object access purely due to incompatible
11189 2010-04-04 Matthias Klose <doko@ubuntu.com>
11191 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
11192 Initialize variable.
11194 2010-04-03 Richard Guenther <rguenther@suse.de>
11196 PR middle-end/42509
11197 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
11198 require a non-NULL MEM_OFFSET.
11200 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
11202 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
11203 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
11204 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
11205 config/alpha/predicates.md, config/arm/arm.md,
11206 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
11207 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
11208 config/darwin9.h, config/darwin.c, config/darwin.h,
11209 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
11210 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
11211 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
11212 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
11213 config/mips/mips.md, config/mn10300/mn10300.c,
11214 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
11215 config/rs6000/aix.h, config/rs6000/dfp.md,
11216 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
11217 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
11218 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
11219 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
11220 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
11221 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
11222 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
11223 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
11224 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
11225 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
11226 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
11227 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
11228 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
11229 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
11230 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
11231 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
11232 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
11233 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
11234 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
11235 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
11236 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
11237 opt-functions.awk, opth-gen.awk, params.def, passes.c,
11238 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
11239 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
11240 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
11241 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
11242 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
11243 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
11244 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
11245 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
11246 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
11247 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
11248 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
11249 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
11250 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
11251 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
11253 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11256 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
11257 * aclocal.m4: Regenerate.
11259 2010-04-02 Richard Guenther <rguenther@suse.de>
11261 PR tree-optimization/43629
11262 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
11263 if we have seen a constant value.
11265 2010-04-02 Joseph Myers <joseph@codesourcery.com>
11267 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
11269 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
11272 * arm.c (legitimize_tls_address): Adjust call to
11273 gen_tls_load_dot_plus_four.
11274 (arm_note_pic_base): New function.
11275 (arm_cannot_copy_insn_p): Use it.
11276 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
11279 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11284 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11286 * Makefile.in ($(out_object_file)): Depend on
11287 gt-$(basename $(notdir $(out_file))).h.
11289 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
11291 * config.gcc (lm32-*-rtems*): Add t-lm32.
11293 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
11295 * config.gcc: Add lm32-*-rtems*.
11296 * config/lm32/rtems.h: New file.
11298 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
11301 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
11303 2010-04-01 Jakub Jelinek <jakub@redhat.com>
11305 * dwarf2out.c (output_compilation_unit_header): For
11306 -gdwarf-4 use version 4 instead of version 3.
11307 (output_line_info): For version 4 and above emit additional
11308 maximum ops per insn header field.
11309 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
11311 * dwarf2out.c (is_c_family, is_java): Remove.
11312 (lower_bound_default): New function.
11313 (add_bound_info, gen_descr_array_type_die): Use it.
11315 2010-04-01 Dodji Seketeli <dodji@redhat.com>
11318 * dwarf2out.c (gen_variable_die): Allow debug info for variable
11319 re-declaration when it happens in a function.
11321 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
11323 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
11324 (cgraph_remove_function_insertion_hook): Same.
11325 (cgraph_call_function_insertion_hooks): Same.
11327 2010-04-01 Richard Guenther <rguenther@suse.de>
11329 PR middle-end/43614
11330 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
11331 and TREE_THIS_VOLATILE.
11332 (copy_ref_info): Likewise.
11333 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
11334 * tree.c (build6_stat): Ignore side-effects of all but arg5
11335 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
11338 2010-04-01 Richard Guenther <rguenther@suse.de>
11340 PR tree-optimization/43607
11341 * ipa-type-escape.c (check_call): Do not access non-existing
11344 2010-04-01 Richard Guenther <rguenther@suse.de>
11346 PR middle-end/43602
11348 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
11349 Jack Howarth <howarth@bromo.med.uc.edu>
11351 * tree-profile.c (tree_init_ic_make_global_vars): Make static
11354 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11356 * doc/install.texi (Prerequisites): Document libelf usability on
11357 IRIX 5/6 and Solaris 2.
11358 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
11359 Update GNU as, GNU ld requirements.
11360 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
11361 Document Sun Studio compiler download.
11362 Update and simplify as, ld recommendations.
11363 (Specific, *-*-solaris2.7): Note obsoletion, removal.
11365 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11367 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
11368 with_tune_32 to pentium4.
11370 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
11372 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
11374 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11376 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
11377 obsoletion, removal.
11379 Document GNU as requirement.
11380 Update configure requirements.
11381 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
11382 Recomment IRIX 6.5.18+.
11383 Document IDF/IDL requirement.
11384 Document GNU as requirement.
11385 Document GNU ld bootstrap failure.
11386 Remove freeware.sgi.com reference.
11388 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11390 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
11391 UNIX V4.0, V5.0 obsoletion, removal.
11392 Remove --with-gc=simple reference.
11393 Update VM requirements during bootstrap.
11394 Remove -oldas bootstrap description.
11395 Update binutils reference.
11396 Remove comparison failure note.
11398 2010-03-31 Richard Guenther <rguenther@suse.de>
11399 Zdenek Dvorak <ook@ucw.cz>
11400 Sebastian Pop <sebastian.pop@amd.com>
11402 PR middle-end/43464
11403 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
11404 with multiple arguments.
11405 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
11407 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
11409 * graphite-dependences.c (print_pddr): Call print_pdr with an
11411 * graphite-poly.c (debug_pdr): Add an extra argument for the
11414 (print_pbb_domain): Same.
11416 (print_scop_context): Same.
11417 (print_scop): Same.
11418 (print_cloog): Same.
11419 (debug_pbb_domain): Same.
11421 (print_pdrs): Same.
11422 (debug_pdrs): Same.
11423 (debug_scop_context): Same.
11424 (debug_scop): Same.
11425 (debug_cloog): Same.
11426 (print_scop_params): Same.
11427 (debug_scop_params): Same.
11428 (print_iteration_domain): Same.
11429 (print_iteration_domains): Same.
11430 (debug_iteration_domain): Same.
11431 (debug_iteration_domains): Same.
11432 (print_scattering_function): Same.
11433 (print_scattering_functions): Same.
11434 (debug_scattering_function): Same.
11435 (debug_scattering_functions): Same.
11436 * graphite-poly.h (debug_pdr): Update declaration.
11438 (print_pbb_domain): Same.
11440 (print_scop_context): Same.
11441 (print_scop): Same.
11442 (print_cloog): Same.
11443 (debug_pbb_domain): Same.
11445 (print_pdrs): Same.
11446 (debug_pdrs): Same.
11447 (debug_scop_context): Same.
11448 (debug_scop): Same.
11449 (debug_cloog): Same.
11450 (print_scop_params): Same.
11451 (debug_scop_params): Same.
11452 (print_iteration_domain): Same.
11453 (print_iteration_domains): Same.
11454 (debug_iteration_domain): Same.
11455 (debug_iteration_domains): Same.
11456 (print_scattering_function): Same.
11457 (print_scattering_functions): Same.
11458 (debug_scattering_function): Same.
11459 (debug_scattering_functions): Same.
11461 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
11463 * graphite-poly.c (print_scattering_function_1): New.
11464 (print_scattering_function): Call it.
11465 (print_scop_params): Remove spaces at the end of lines.
11466 (print_cloog): New.
11467 (debug_cloog): New.
11468 * graphite-poly.h (print_cloog): Declared.
11469 (debug_cloog): Declared.
11471 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
11473 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
11475 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
11476 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
11477 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
11478 to switch between adding the IV bump in loop->latch or in loop->header.
11480 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
11482 * graphite-poly.c (print_scattering_function): Pretty print following
11483 the scoplib format.
11485 (print_pbb_domain): Same.
11486 (dump_gbb_cases): Same.
11487 (dump_gbb_conditions): Same.
11488 (print_pdrs): Same.
11490 (print_scop_params): Same.
11491 (print_scop_context): Same.
11492 (print_scop): Same.
11493 (print_pbb_body): New.
11494 (lst_indent_to): New.
11495 (print_lst): Start new lines with a #.
11496 * graphite-poly.h (pbb_bb): New.
11497 (pbb_index): Use pbb_bb.
11498 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
11500 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
11502 2010-03-31 Jakub Jelinek <jakub@redhat.com>
11504 * dwarf2out.c (size_of_die): For -gdwarf-4 use
11505 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
11506 and 0 instead of 1 for dw_val_class_flag.
11507 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
11508 dw_val_class_range_list, dw_val_class_loc_list,
11509 dw_val_class_lineptr and dw_val_class_macptr, use
11510 DW_FORM_flag_present for dw_val_class_flag and
11511 DW_FORM_exprloc for dw_val_class_loc.
11512 (output_die): For -gdwarf-4 print dw_val_class_loc
11513 size as uleb128 instead of 1 or 2 bytes and don't print
11514 anything for dw_val_class_flag.
11516 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
11517 instead of cselib_lookup following by tweaking locs->setting_insn.
11520 * cselib.c (cselib_process_insn): Clear cselib_current_insn
11521 even before returning from label, setjmp call or volatile asm
11524 2010-03-31 Richard Guenther <rguenther@suse.de>
11526 PR middle-end/43600
11527 * cgraphunit.c (cgraph_output_in_order): Do not allocate
11528 temporary data on stack.
11530 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11532 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
11533 (PUSHSECTION_ASM_OP): Remove.
11534 (POPSECTION_ASM_OP): Remove.
11535 (PUSHSECTION_FORMAT): Remove.
11536 * config/sol2.h (PUSHSECTION_FORMAT): Define.
11537 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
11538 * config/sol2.c (solaris_output_init_fini): Use it.
11540 2010-03-31 Jie Zhang <jie@codesourcery.com>
11543 * opt-functions.awk (var_type_struct): Use signed char type
11544 for simple variables.
11546 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11548 * config/sol2.c: Include output.h.
11549 (solaris_assemble_visibility): New function.
11550 * config/t-sol2 (sol2.o): Add output.h dependency.
11551 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
11552 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
11555 2010-03-31 Jakub Jelinek <jakub@redhat.com>
11558 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
11559 V2SImode or XFmode on PRE_DEC.
11562 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
11565 2010-03-31 Jie Zhang <jie@codesourcery.com>
11568 * reload.h (caller_save_initialized_p): Declare.
11569 * toplev.c (backend_init_target): Don't call
11570 init_caller_save but set caller_save_initialized_p to false.
11571 * caller-save.c (caller_save_initialized_p): Define.
11572 (init_caller_save): Check caller_save_initialized_p.
11573 * ira.c (ira): Call init_caller_save if flag_caller_saves.
11575 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11578 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
11579 and soft-fp/t-softfp to tmake_file.
11580 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
11581 (LIBGCC2_TF_CEXT): Define.
11584 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
11587 * cselib.c (n_useless_values): Document handling of debug locs.
11588 (n_useless_debug_values, n_debug_values): New variables.
11589 (new_elt_loc_list): Don't add to debug values, keep count.
11590 (promote_debug_loc): New.
11591 (cselib_reset_table): Zero new variables.
11592 (entry_and_rtx_equal_p): Promote debug locs.
11593 (discard_useless_locs): Increment n_useless_debug_values for
11595 (remove_useless_values): Adjust n_useless_values and n_debug_values
11596 with n_useless_debug_values.
11597 (add_mem_for_addr): Promote debug locs.
11598 (cselib_lookup_mem): Likewise.
11599 (cselib_lookup_addr): Renamed to...
11600 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
11601 (cselib_log_lookup): ... this. Turn into...
11602 (cselib_lookup_addr): ... new wrapper.
11603 (cselib_lookup_from_insn): New.
11604 (cselib_invalidate_regno): Increment n_useless_debug_values for
11606 (cselib_invalidate_mem): Likewise.
11607 (cselib_process_insn): Take n_deleted and n_debug_values into
11608 account to guard remove_useless_value call.
11609 (cselib_finish): Zero n_useless_debug_values.
11610 * cselib.h (cselib_lookup_from_insn): Declare.
11611 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
11612 (sched_analyze_2): Likewise.
11614 2010-03-30 Jakub Jelinek <jakub@redhat.com>
11616 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
11618 (adjust_mems): Replace narrowing SUBREG of expression containing
11619 just PLUS, MINUS, MULT and ASHIFT of registers and constants
11620 with operations in the narrower mode.
11623 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
11624 regs_invalidated_by_call instead all call_used_reg_set registers.
11626 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
11628 PR middle-end/43430
11629 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
11630 pointer comparisons with types_compatible_p.
11631 * tree-vect-stmts.c (vectorizable_call): Same.
11632 (vectorizable_condition): Same.
11634 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11636 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
11637 stack check if the mask would be zero.
11639 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
11640 Jack Howarth <howarth@bromo.med.uc.edu>
11642 * tree-profile.c (tree_init_ic_make_global_vars): Make static
11645 2010-03-30 Joseph Myers <joseph@codesourcery.com>
11648 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
11650 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
11651 Include ___unordxf2 and ___unordtf2.
11652 * config/i386/libgcc-glibc.ver: Do not define inheritance from
11655 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
11657 * config/lm32/t-lm32: New file.
11658 * config.gcc: Use the above file when targetting lm32.
11660 2010-03-28 Duncan Sands <baldrick@free.fr>
11662 * Makefile.in (PLUGIN_HEADERS): Add except.h.
11664 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
11666 PR middle-end/43431
11667 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
11668 Improve vectorization cost model diagnostic.
11670 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
11672 PR middle-end/43436
11673 * tree-vect-data-refs.c (vect_analyze_data_refs): When
11674 compute_data_dependences_for_loop returns false, early exit
11675 and output an extra diagnostic for the failed data reference
11678 2010-03-29 Richard Guenther <rguenther@suse.de>
11680 PR tree-optimization/43560
11681 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
11682 (can_sm_ref_p): Treat stores to readonly locations as trapping.
11684 2010-03-29 Jie Zhang <jie@codesourcery.com>
11687 * toplev.c (process_options): Set optimization_default_node
11688 and optimization_current_node.
11689 * opts.c (decode_options): Don't set optimization_default_node
11690 and optimization_current_node.
11692 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
11694 * config/rtems.h: Abandon -qrtems_debug.
11696 2010-03-28 Jan Hubicka <jh@suse.cz>
11698 PR tree-optimization/43505
11699 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
11700 map should not be copied.
11702 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11704 PR middle-end/41674
11705 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
11706 cdtors, set DECL_PRESERVE_P.
11707 * ipa.c (cgraph_externally_visible_p): Return true if declaration
11708 should be preseved.
11710 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
11712 PR tree-optimization/43528
11713 * stor-layout.c (place_field): Check that constant fits into
11714 unsigned HWI when skipping calculation of MS bitfield layout.
11716 2010-03-27 Jan Hubicka <jh@suse.cz>
11718 PR middle-end/43391
11719 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
11720 notice_global_symbol work.
11722 2010-03-27 Jakub Jelinek <jakub@redhat.com>
11724 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
11725 instead of dwarf2out_decl.
11726 (struct var_loc_node): Remove section_label field.
11727 (dwarf2out_function_decl): New function.
11728 (dwarf2out_var_location): Don't set section_label field.
11729 (dwarf2out_begin_function): Don't empty decl_loc_table here.
11731 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
11733 PR tree-optimization/43544
11734 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
11735 First argument for builtin vectorized function hook is now a
11736 tree to be able to distinguish between machine specific and
11738 * targhooks.c (default_builtin_vectorized_function): Ditto.
11739 * targhooks.h (default_builtin_vectorized_function): Ditto.
11740 * target.h (struct gcc_target): Ditto.
11741 * tree-vect-stmts.c (vectorizable_function): Ditto.
11742 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
11743 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
11746 2010-03-26 Joseph Myers <joseph@codesourcery.com>
11749 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
11750 nested binding iff it is a FUNCTION_DECL.
11751 (store_parm_decls_newstyle): Pass nested=true to bind for
11752 FUNCTION_DECLs amongst parameters.
11754 2010-03-26 Jakub Jelinek <jakub@redhat.com>
11756 * var-tracking.c (vt_expand_loc_callback): Don't run
11757 cselib_expand_value_rtx_cb in dummy mode if
11758 cselib_dummy_expand_value_rtx_cb returned false.
11760 * var-tracking.c (emit_note_insn_var_location): For one part
11761 notes with offset 0, don't add EXPR_LIST around the location.
11762 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
11763 add_location_or_const_value_attribute): Adjust for that change.
11766 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
11767 into first operand and location into second.
11768 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
11769 dw_cfi_oprnd_loc for DW_CFA_expression.
11770 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
11771 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
11772 assume first argument is regnum and second argument is location.
11774 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
11777 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
11778 of scratch register to DImode. Split to DImode comparison operator.
11779 Use SImode subreg of scratch register in the multiplication.
11780 (*cmp_sadd_sidi): Ditto.
11781 (*cmp_ssub_si): Ditto.
11782 (*cmp_ssub_sidi): Ditto.
11784 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
11787 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
11788 Remove invalid assert and wrong comment.
11790 2010-03-26 Jakub Jelinek <jakub@redhat.com>
11793 * flags.h (final_insns_dump_p): New extern.
11794 * final.c (final_insns_dump_p): New variable.
11795 (rest_of_clean_state): Set it before -fdump-final-insns=
11796 dumping, clear afterwards.
11797 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
11798 MEM_ALIAS_SET on MEMs.
11800 2010-03-26 David S. Miller <davem@davemloft.net>
11802 * configure.ac: Fix sparc GOTDATA_OP bug check.
11803 * configure: Rebuild.
11805 2010-03-26 Alan Modra <amodra@gmail.com>
11807 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
11809 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11811 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
11812 TLS_SECTION_ASM_FLAG.
11814 2010-03-25 Jakub Jelinek <jakub@redhat.com>
11817 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
11818 Clear first_function_block_is_cold.
11821 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
11822 argument if the argument is truth_value_p.
11824 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
11826 * config/rs6000/constraints.md: Update copyright year for my changes.
11829 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
11830 used in reg+reg addressing, swap registers.
11832 2010-03-24 Jakub Jelinek <jakub@redhat.com>
11835 * target.h (struct gcc_target): Add code_end hook.
11836 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
11837 if not yet defined.
11838 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
11839 * toplev.c (compile_file): Call targetm.asm_out.code_end
11840 hook before unwind info/debug info output.
11841 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
11842 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
11843 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
11844 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
11845 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
11846 * config/i386/i386.c (ix86_file_end): Renamed to...
11847 (ix86_code_end): ... this. Make static. Don't call
11848 file_end_indicate_exec_stack. Emit unwind info using
11849 final_start_function/final_end_function.
11850 (darwin_x86_file_end): Remove.
11851 (TARGET_ASM_CODE_END): Define.
11852 * config/i386/i386.h (TARGET_ASM_FILE_END,
11853 NEED_INDICATE_EXEC_STACK): Don't define.
11854 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
11855 (TARGET_ASM_FILE_END): Define to darwin_file_end.
11856 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
11857 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
11860 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
11861 at the beginning and final_end_function at the end.
11862 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
11864 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11866 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
11867 and Sun as TLS syntax.
11868 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
11869 * configure: Regenerate.
11870 * config.in: Regenerate.
11871 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
11872 (default_elf_asm_named_section): Use it.
11873 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
11874 (i386_output_dwarf_dtprel): Likewise.
11875 (output_addr_const_extra): Likewise.
11876 (output_pic_addr_const): Lowercase @GOTTPOFF.
11877 (output_addr_const_extra): Likewise.
11878 (output_pic_addr_const): Lowercase @GOTNTPOFF.
11879 (output_addr_const_extra): Likewise.
11880 (output_pic_addr_const): Lowercase @INDNTPOFF.
11881 (output_addr_const_extra): Likewise.
11882 (output_pic_addr_const): Lowercase @NTPOFF.
11883 (output_addr_const_extra): Likewise.
11884 (output_pic_addr_const): Lowercase @TPOFF.
11885 (output_addr_const_extra): Likewise.
11886 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
11887 (*tls_global_dynamic_64): Likewise.
11888 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
11889 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
11891 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
11892 (ASM_OUTPUT_TLS_COMMON): Use it.
11893 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
11896 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
11897 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
11898 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
11899 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
11900 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
11901 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
11903 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11905 * config/i386/i386.c (override_options): Don't accept
11906 -mtls-dialect=sun any longer.
11907 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
11908 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
11909 (*tls_local_dynamic_base_32_sun): Likewise.
11910 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
11912 2010-03-24 Jakub Jelinek <jakub@redhat.com>
11915 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
11916 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
11919 * ira.c (adjust_cleared_regs): New function.
11920 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
11924 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
11926 * expr.c (expand_expr_real): Restore previous
11927 curr_insn_source_location and curr_insn_block after
11928 expand_expr_real_1 call.
11929 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
11930 instead of expand_expr_real_1.
11932 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
11934 PR rtl-optimization/43413
11935 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
11938 2010-03-22 James E. Wilson <wilson@codesourcery.com>
11941 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
11942 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
11944 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
11946 * config/i386/i386.c (ix86_target_string): Add -mfma.
11947 Fix a typo in comment.
11949 2010-03-22 Mike Stump <mikestump@comcast.net>
11952 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
11953 Don't overly align based upon packed packed fields.
11955 2010-03-22 Jason Merrill <jason@redhat.com>
11957 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
11958 Use () rather than [], and move before the element type.
11960 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11962 * doc/configfiles.texi (Configuration Files): Removed
11963 fixinc/Makefile*, intl/Makefile.*.
11964 * doc/makefile.texi: Fixed markup. Abstract from version
11965 control system used.
11966 (Makefile): Removed obsolete gcc/java/parse.y example.
11967 * doc/sourcebuild.texi: Likewise.
11968 (Top Level): Added config, gnattools, libdecnumber, libgcc,
11969 libgomp, libssp. Removed fastjar.
11970 (Miscellaneous Docs): Clarify location.
11971 Added COPYING3, COPYING3.LIB.
11972 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
11974 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11977 * config/i386/i386.c (x86_function_profiler)
11978 [!NO_PROFILE_COUNTERS]: Fix typo.
11979 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
11982 2010-03-22 Janis Johnson <janis187@us.ibm.com>
11983 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11985 * doc/sourcebuild.texi (Test Directives): Split into six
11986 subsections, with most of the current text in new subsections
11987 Directives, Selectors, and Final Actions.
11988 (Directives): Split list of test directives into multiple
11990 (Selectors): Describe use and syntax of selectors.
11991 (Effective-Target Keywords): Describe all existing keywords.
11992 (Add Options): Describe features for dg-add-options.
11993 (Require Support): Describe variants of dg-require-support.
11994 (Final Actions): Describe commands to use in dg-final.
11996 2010-03-22 Michael Matz <matz@suse.de>
11998 PR middle-end/43475
11999 * recog.c (validate_replace_rtx_group): Replace also in
12000 REG_EQUAL and REG_EQUIV notes.
12002 2010-03-22 Richard Guenther <rguenther@suse.de>
12004 PR tree-optimization/43390
12005 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
12006 sure vector extracts are type correct.
12008 2010-03-22 Richard Guenther <rguenther@suse.de>
12010 PR middle-end/40106
12011 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
12012 x * sqrt (x) even when optimizing for size if the target
12013 has native support for sqrt.
12015 2010-03-22 Jakub Jelinek <jakub@redhat.com>
12017 * varasm.c (make_decl_rtl_for_debug): Also clear
12018 flag_mudflap for the duration of make_decl_rtl call.
12021 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
12022 locs from preserved VALUEs.
12024 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12026 PR middle-end/42718
12027 * pa.md (movmemsi): Set align to one if zero.
12028 (movmemdi): Likewise.
12030 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
12033 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
12034 with their corresponding prologue pushes.
12036 2010-03-20 Andrew Pinski <pinskia@gmail.com>
12039 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
12040 at the begining or end.
12041 (spu_expand_epilogue): Likewise.
12043 2010-03-20 Richard Guenther <rguenther@suse.de>
12045 PR rtl-optimization/43438
12046 * combine.c (make_extraction): Properly zero-/sign-extend an
12047 extraction of the low part of a CONST_INT. Also handle
12050 2010-03-19 Mike Stump <mikestump@comcast.net>
12052 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
12053 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
12054 (override_options): Use SUBTARGET32_DEFAULT_CPU.
12056 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
12059 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
12062 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
12064 PR rtl-optimization/42258
12065 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
12066 use that may match DEF.
12069 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
12070 the cost of loading the constant rather than assuming
12072 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
12073 outer code is AND, do the same tests as the andsi3 expander and
12074 return COSTS_N_INSNS (1) if and is cheap.
12076 * optabs.c (avoid_expensive_constant): Fix formatting.
12078 2010-03-19 Michael Matz <matz@suse.de>
12081 * attribs.c (decl_attributes): When rebuilding a function pointer
12082 type use the same qualifiers as the original pointer type.
12084 2010-03-19 Martin Jambor <mjambor@suse.cz>
12086 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
12087 and is_gimple_ip_invariant_address.
12089 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12092 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12094 * config/arm/arm.c (arm_override_options): Turn off
12095 flag_dwarf2_cfi_asm for AAPCS variants.
12097 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12100 * config/arm/arm.c (emit_multi_reg_push): Update comments.
12101 Use PRE_MODIFY instead of PRE_DEC.
12102 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
12103 (vfp_emit_fstmd): Likewise.
12105 2010-03-19 Michael Matz <matz@suse.de>
12108 * builtins.c (expand_builtin_interclass_mathfn,
12109 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
12112 2010-03-19 Richard Guenther <rguenther@suse.de>
12114 PR tree-optimization/43415
12115 * tree-ssa-pre.c (phi_translate): Split out worker to ...
12116 (phi_translate_1): ... this.
12117 (phi_translate): Move all caching here. Cache all NARY
12118 and REFERENCE translations.
12120 2010-03-19 David S. Miller <davem@davemloft.net>
12122 With help from Eric Botcazou.
12123 * config/sparc/sparc.c: Include dwarf2out.h.
12124 (emit_pic_helper): Delete.
12125 (pic_helper_symbol_name): Delete.
12126 (pic_helper_emitted_p): Delete.
12127 (pic_helper_needed): New.
12128 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
12129 (get_pc_thunk_name): New.
12130 (load_pic_register): Remove 'delay_pic_helper' arg. Use
12131 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
12132 Set pic_helper_needed to true. Don't call emit_pic_helper.
12133 (sparc_expand_prologue): Update load_pic_register call.
12134 (sparc_output_mi_thunk): Likewise.
12135 (sparc_file_end): Emit a hidden comdat symbol for the PIC
12136 thunk if possible. Output CFI information as needed.
12138 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12139 Jack Howarth <howarth@bromo.med.uc.edu>
12142 * config/i386/i386.h: Fix ABI on darwin x86-32.
12144 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
12146 * tree.h: Declare make_decl_rtl_for_debug.
12147 * varasm.c (make_decl_rtl_for_debug): New.
12148 * dwarf2out.c (rtl_for_decl_location): Call it.
12149 * cfgexpand.c (expand_debug_expr): Call it.
12151 2010-03-18 Jakub Jelinek <jakub@redhat.com>
12154 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
12158 * var-tracking.c (vt_init_cfa_base): Do nothing if
12159 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
12161 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
12164 * var-tracking.c (canonicalize_vars_star): New.
12165 (dataflow_post_merge_adjust): Use it.
12167 2010-03-18 Jakub Jelinek <jakub@redhat.com>
12170 * var-tracking.c (non_suitable_const): New function.
12171 (add_uses): For DEBUG_INSNs with constants, don't record any
12172 value, instead just the constant value itself.
12173 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
12174 is not VAR_LOC_UNKNOWN_P, set var to the constant.
12175 (emit_notes_in_bb): Likewise.
12176 (emit_note_insn_var_location): For onepart variables if
12177 cur_loc is a VOIDmode constant, use DECL_MODE.
12179 2010-03-18 Martin Jambor <mjambor@suse.cz>
12181 PR middle-end/42450
12182 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
12183 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
12184 all non-clones. Moved call redirection...
12185 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
12186 (cgraph_materialize_all_clones): Dispose of all
12187 combined_args_to_skip bitmaps.
12188 (verify_cgraph_node): Do not check for edges pointing to wrong
12189 nodes in inline clones.
12190 * tree-inline.c (copy_bb): Call
12191 cgraph_redirect_edge_call_stmt_to_callee.
12192 * ipa.c (cgraph_remove_unreachable_nodes): Call
12193 cgraph_node_remove_callees even when there are used clones.
12195 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
12197 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
12199 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
12202 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
12205 2010-03-18 Michael Matz <matz@suse.de>
12207 PR middle-end/43419
12208 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
12209 into sqrt(x) if we need to preserve signed zeros.
12211 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
12212 Eric Botcazou <ebotcazou@adacore.com>
12214 PR rtl-optimization/43360
12215 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
12216 note if we don't know its invariant status.
12218 2010-03-18 Michael Matz <matz@suse.de>
12220 PR tree-optimization/43402
12221 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
12222 PHI chains of ssa names registered for update.
12224 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
12227 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
12228 non-offsettable and pre_modify update addressing.
12229 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
12230 and "2" alternatives "#".
12231 (*movdd_softfloat32): Make all alternatives "#";
12232 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
12233 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
12234 (*movdf_softfloat32): Make all alternatives "#";
12235 (movdi): Use the new DIFD mode iterator to create a common splitter
12236 for movdi, movdf and movdd patterns.
12238 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
12240 * common.opt (dumpdir): Remove redundant tab.
12242 2010-03-17 Martin Jambor <mjambor@suse.cz>
12244 PR tree-optimization/43347
12245 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
12246 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
12248 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
12250 PR rtl-optimization/42216
12251 * regrename.c (create_new_chain): New function, broken out from...
12252 (scan_rtx_reg): ... here. Call it. Handle the case where we are
12253 appending a use to an empty chain.
12254 (build_def_use): Remove previous changes that convert OP_INOUT to
12255 OP_OUT operands; instead detect the case where an OP_INOUT operand
12256 uses a previously untracked register and create an empty chain for it.
12258 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12260 * doc/extend.texi (Function Attributes): Rewrite unfinished
12261 sentence in ms_abi documentation.
12263 2010-03-17 Alan Modra <amodra@gmail.com>
12265 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
12266 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
12267 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
12268 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
12270 2010-03-16 Richard Henderson <rth@redhat.com>
12272 PR middle-end/43365
12273 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
12274 (lower_try_finally): Save and restore eh_seq around the expansion
12275 of the try-finally.
12277 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
12279 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
12280 statements before splitting block.
12282 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12284 * doc/sourcebuild.texi (Testsuites): Fix markup.
12285 Use pathnames relative to gcc/testsuite.
12286 (Test Directives): Move description of how timeout is determined.
12287 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
12288 (C Tests): Correct gcc.misc-tests directory.
12289 Framework tests now live in gcc.test-framework.
12291 2010-03-16 Richard Guenther <rguenther@suse.de>
12293 PR middle-end/43379
12294 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
12295 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
12297 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
12298 Alexandre Oliva <aoliva@redhat.com>
12300 PR tree-optimization/42917
12301 * lambda-code.c (remove_iv): Skip debug statements.
12302 (lambda_loopnest_to_gcc_loopnest): Likewise.
12303 (not_interesting_stmt): Debug statements are not interesting.
12305 2010-03-16 Jakub Jelinek <jakub@redhat.com>
12309 * cselib.c (cselib_preserve_constants,
12310 cfa_base_preserved_val): New static variables.
12311 (preserve_only_constants): New function.
12312 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
12313 clear its REG_VALUES. If cselib_preserve_constants, don't
12314 empty the whole hash table, but preserve there VALUEs with constants,
12315 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
12316 (cselib_preserve_cfa_base_value): New function.
12317 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
12318 (cselib_init): Change argument to int bitfield. Set
12319 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
12321 (cselib_finish): Clear cselib_preserve_constants and
12322 cfa_base_preserved_val.
12323 * cselib.h (enum cselib_record_what): New enum.
12324 (cselib_init): Change argument to int.
12325 (cselib_preserve_cfa_base_value): New prototype.
12326 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
12327 * dse.c (dse_step1): Likewise.
12328 * cfgcleanup.c (thread_jump): Likewise.
12329 * sched-deps.c (sched_analyze): Likewise.
12330 * gcse.c (local_cprop_pass): Likewise.
12331 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
12332 If FN is non-NULL, call the callback always and whenever it returns
12333 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
12334 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
12335 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
12336 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
12337 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
12338 * var-tracking.c: Include recog.h.
12339 (bb_stack_adjust_offset): Remove.
12340 (vt_stack_adjustments): Don't call it, instead just gather the
12341 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
12342 (adjust_stack_reference): Remove.
12343 (compute_cfa_pointer): New function.
12344 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
12345 (struct adjust_mem_data): New type.
12346 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
12348 (get_address_mode): New function.
12349 (replace_expr_with_values): Use it.
12350 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
12351 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
12352 (adjust_sets): Remove.
12353 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
12354 Use get_address_mode.
12355 (get_adjusted_src): Remove.
12356 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
12357 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
12358 (add_with_sets): Don't call adjust_sets.
12359 (fp_setter, vt_init_cfa_base): New functions.
12360 (vt_initialize): Change return type to bool. Move most of pool etc.
12361 initialization to the beginning of the function from end. Pass
12362 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
12363 If !frame_pointer_needed, call vt_stack_adjustment before mos
12364 vector is filled, call vt_init_cfa_base if argp/framep has been
12365 eliminated to sp. If frame_pointer_needed and argp/framep has
12366 been eliminated to hard frame pointer, set
12367 hard_frame_pointer_adjustment and call vt_init_cfa_base after
12368 encountering fp setter in the prologue. For MO_ADJUST, call
12369 log_op_type before pusing the op into mos vector, not afterwards.
12370 Call adjust_insn before cselib_process_insn/add_with_sets,
12371 call cancel_changes (0) afterwards.
12372 (variable_tracking_main_1): Adjust for vt_initialize calling
12373 vt_stack_adjustments and returning whether it succeeded or not.
12375 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
12377 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
12380 2010-03-15 Jakub Jelinek <jakub@redhat.com>
12382 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
12384 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
12385 drap_reg has not been set.
12387 2010-03-15 Michael Matz <matz@suse.de>
12389 PR middle-end/43300
12390 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
12391 use it to expand block copies.
12392 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
12393 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
12394 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
12396 2010-03-15 Richard Guenther <rguenther@suse.de>
12398 PR tree-optimization/43367
12399 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
12402 2010-03-15 Richard Guenther <rguenther@suse.de>
12404 PR tree-optimization/43317
12405 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
12407 2010-03-15 Martin Jambor <mjambor@suse.cz>
12409 PR tree-optimization/43141
12410 * tree-sra.c (create_abstract_origin): New function.
12411 (modify_function): Call create_abstract_origin.
12413 2010-03-15 Chris Demetriou <cgd@google.com>
12415 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
12418 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12420 PR middle-end/43354
12421 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
12422 call insert_out_of_ssa_copy for default definitions.
12424 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12426 * graphite-clast-to-gimple.c (my_long_long): Defined.
12427 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
12428 * graphite-sese-to-poly.c (my_long_long): Defined.
12429 (scop_ivs_can_be_represented): Use it.
12431 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12433 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
12434 graphite-max-bbs-per-function, and loop-block-tile-size.
12435 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
12437 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
12439 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12441 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
12442 forward declaration.
12443 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
12444 (add_upper_bounds_from_estimated_nit): New.
12445 (build_loop_iteration_domains): Use it.
12447 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12449 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
12451 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12453 PR middle-end/43306
12454 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
12455 should be an INTEGER_CST. Also handle CASE_CONVERT.
12457 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12459 * graphite.c (graphite_initialize): To bound the number of bbs per
12460 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
12461 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
12462 * doc/invoke.texi: Document it.
12464 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12466 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
12467 * graphite-sese-to-poly.h (build_poly_scop): Same.
12469 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12471 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
12472 the number of parameters in the scop. Use as an upper bound
12473 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
12474 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
12475 * doc/invoke.texi: Document it.
12477 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
12479 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
12480 * doc/c-tree.texi: Remove.
12481 * doc/generic.texi: Merge c-tree.texi here.
12482 * doc/gccint.texi (Trees): Remove menu entry.
12483 (c-tree.texi): Remove @include.
12484 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
12485 * doc/languages.texi (Reading RTL): Ditto.
12487 2010-03-12 Steve Ellcey <sje@cup.hp.com>
12490 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
12492 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
12494 PR middle-end/42431
12495 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
12496 code added to work around reload clobbering CONST insns.
12498 2010-03-12 Jakub Jelinek <jakub@redhat.com>
12500 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
12501 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
12502 (cselib_preserve_only_values): Remove retain argument, don't
12503 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
12504 * cselib.h (cselib_preserve_only_values): Remove retain argument.
12505 * var-tracking.c (micro_operation): Move insn field before union.
12506 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
12507 (struct variable_tracking_info_def): Remove n_mos field, change
12508 mos into a vector of micro_operations.
12509 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
12510 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
12511 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
12512 changing into a vector.
12513 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
12514 come before all other uops generated by add_stores.
12515 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
12517 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
12518 a vector. Run just one pass over the bbs instead of separate counting
12519 and computation phase.
12520 (vt_finalize): Free VTI (bb)->mos vector instead of array.
12523 * tree-inline.c (remap_decls): Put old_var rather than origin_var
12524 into *nonlocalized_list vector.
12525 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
12526 even if origin is non-NULL.
12527 (gen_variable_die): Likewise.
12528 (process_scope_var): Don't change origin.
12529 (gen_decl_die): Likewise.
12530 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
12531 before adding new edges instead of after it, fix moving over
12534 2010-03-11 David S. Miller <davem@davemloft.net>
12536 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
12538 * configure: Rebuild.
12540 2010-03-11 Martin Jambor <mjambor@suse.cz>
12542 PR tree-optimization/43257
12543 * tree.c (assign_assembler_name_if_neeeded): New function.
12544 (free_lang_data_in_cgraph): Assembler name assignment moved to the
12545 above new function.
12546 * tree.h (assign_assembler_name_if_neeeded): Declare.
12547 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
12548 the function if needed.
12550 2010-03-11 Chris Demetriou <cgd@google.com>
12552 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
12553 include/stdint-gcc.h, and include/stdint.h world-readable.
12555 2010-03-11 Richard Guenther <rguenther@suse.de>
12557 PR tree-optimization/43255
12558 * tree-vrp.c (process_assert_insertions_for): Do not insert
12559 asserts for trivial conditions.
12561 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12563 PR tree-optimization/43280
12564 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
12565 generation. Move calculation of size out of the if branch.
12566 (find_bswap): Modify compare number generation.
12568 2010-03-11 Richard Guenther <rguenther@suse.de>
12571 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
12572 (input_gimple_stmt): Fixup handled component types during
12573 operand read. Also fix up decls in ADDR_EXPRs.
12575 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
12577 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
12578 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
12580 2010-03-10 Jan Hubicka <jh@suse.cz>
12583 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
12584 * varasm.c (get_variable_section): Don't do that here...
12585 (make_decl_rtl): ... and here.
12586 (do_assemble_alias): Produce decl RTL.
12587 (assemble_alias): Likewise.
12589 2010-03-10 Jakub Jelinek <jakub@redhat.com>
12592 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
12593 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
12595 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
12596 (based_loc_descr): Only express drap or vdrap regno based expressions
12597 using DW_OP_fbreg when not optimizing.
12598 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
12599 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
12600 REG_CFA_SET_VDRAP note.
12602 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
12604 PR tree-optimization/43236
12605 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
12606 error in calculation of base address in reverse iteration case.
12607 (generate_builtin): Take number of latch executions if the statement
12610 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
12612 PR middle-end/42859
12613 * tree-eh.c: Include pointer-set.h.
12614 (lower_eh_dispatch): Filter out duplicate case labels and
12615 remove the unneeded edge when the label is unused. Return
12616 true when some edges are removed.
12617 (execute_lower_eh_dispatch): When any lowering resulted in
12618 removing an edge, also delete unreachable blocks.
12620 2010-03-10 Jakub Jelinek <jakub@redhat.com>
12623 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12624 UNSPEC_MACHOPIC_OFFSET.
12626 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
12629 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
12630 (m68k_delegitimize_address): New function.
12632 2010-03-09 Jakub Jelinek <jakub@redhat.com>
12635 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
12638 * var-tracking.c (adjust_sets): New function.
12639 (count_with_sets, add_with_sets): Use it.
12640 (get_adjusted_src): New inline function.
12641 (add_stores): Use it.
12644 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
12645 call cselib_dummy_expand_value_rtx_cb instead of
12646 cselib_expand_value_rtx_cb.
12649 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
12650 * config/i386/i386.c: Include debug.h and dwarf2out.h.
12651 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
12652 and .cfi_endproc around the pic thunks.
12653 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
12654 all queued unwind info register saves are saved before the call.
12655 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
12656 considered as sp-=4 for unwind info and the pop as sp+=4 which
12657 also clobbers dest, but doesn't actually restore it.
12660 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
12661 RTX_FRAME_RELATED_P.
12663 2010-03-09 Jie Zhang <jie@codesourcery.com>
12665 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
12666 whitespaces in output template.
12668 2010-03-09 Jie Zhang <jie@codesourcery.com>
12670 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
12671 out array boundary.
12673 2010-03-08 Jakub Jelinek <jakub@redhat.com>
12675 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
12676 builtins.exp in a separate job.
12678 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12680 * graphite-sese-to-poly.c (add_param_constraints): Use
12681 lower_bound_in_type and upper_bound_in_type.
12683 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12685 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
12686 instead of unsigned_type_node.
12688 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12689 Reza Yazdani <reza.yazdani@amd.com>
12691 PR middle-end/43065
12692 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
12693 on pointer type parameters.
12695 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
12697 PR middle-end/42644
12698 PR middle-end/42130
12699 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
12700 handle conversions from pointer to integers.
12701 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
12702 induction variable, to be able to work with code generated by CLooG.
12703 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
12704 (build_poly_scop): Bail out if we cannot codegen a loop.
12706 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
12708 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
12709 code generation with gloog_error.
12711 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12713 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
12714 Call fold_convert on all the returned values.
12715 (expand_scalar_variables_expr): Pass to
12716 expand_scalar_variables_ssa_name the type of the resulting expression.
12718 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12720 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
12721 ppl_min_for_le_pointset.
12722 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
12723 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
12725 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12727 * graphite-dependences.c (map_into_dep_poly): Removed.
12728 (dependence_polyhedron_1): Use combine_context_id_scat.
12730 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12732 * graphite-poly.h (struct poly_scattering): Add layout documentation.
12733 (struct poly_bb): Same.
12734 (combine_context_id_scat): New.
12736 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12738 PR middle-end/42326
12739 * sese.c (name_defined_in_loop_p): Return false for default
12742 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12744 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
12745 and clean up the logic.
12747 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12749 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
12752 2010-03-08 Jakub Jelinek <jakub@redhat.com>
12754 * var-tracking.c (remove_cselib_value_chains): Define only for
12756 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
12757 delete_slot_part, emit_notes_for_differences_1): Don't call
12758 remove_cselib_value_chains here.
12759 (set_slot_part, emit_notes_for_differences_2): Don't call
12760 add_cselib_value_chains here.
12761 (preserved_values): New vector.
12762 (preserve_value): New function.
12763 (add_uses, add_stores, vt_add_function_parameters): Use it
12764 instead of cselib_preserve_value.
12765 (changed_values_stack): New vector.
12766 (check_changed_vars_0): New function.
12767 (check_changed_vars_1, check_changed_vars_2): Use it.
12768 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
12769 changed_values_stack VALUEs.
12770 (vt_emit_notes): For all preserved_values call
12771 add_cselib_value_chains. If ENABLE_CHECKING call
12772 remove_cselib_value_chains before verifying value_chains is empty.
12773 Initialize and free changed_values_stack.
12774 (vt_initialize): Initialize preserved_values.
12775 (vt_finalize): Free preserved_values.
12777 2010-03-08 Richard Guenther <rguenther@suse.de>
12779 PR tree-optimization/43269
12780 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
12783 2010-03-08 Martin Jambor <mjambor@suse.cz>
12785 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
12786 (ipa_is_param_called): Removed.
12787 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
12788 (ipa_print_node_params): Do not print the called flag.
12789 (ipa_write_node_info): Do not stream the called flag.
12790 (ipa_read_node_info): Likewise.
12792 2010-03-07 Jakub Jelinek <jakub@redhat.com>
12795 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
12796 * cselib.c (struct expand_value_data): Add dummy field.
12797 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
12799 (cselib_dummy_expand_value_rtx_cb): New function.
12800 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
12802 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
12803 * var-tracking.c: Include pointer-set.h.
12804 (variable): Change n_var_parts to char from int. Add
12805 cur_loc_changed and in_changed_variables fields.
12806 (variable_canonicalize): Remove.
12807 (shared_var_p): New inline function.
12808 (unshare_variable): Maintain cur_loc_changed and
12809 in_changed_variables fields. If var was in changed_variables,
12810 replace it there with new_var. Just copy cur_loc instead of
12811 resetting it to something else.
12812 (variable_union): Don't recompute cur_loc. Use shared_var_p.
12813 (dataflow_set_union): Don't call variable_canonicalize.
12814 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
12815 of their DEBUG_EXPR_TREE_DECLs.
12816 (canonicalize_loc_order_check): Verify that cur_loc is NULL
12817 and in_changed_variables and cur_loc_changed is false.
12818 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
12819 and cur_loc_changed. Don't update cur_loc here.
12820 (variable_merge_over_src): Don't call variable_canonicalize.
12821 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
12822 removing loc that is equal to cur_loc, clear cur_loc,
12823 set cur_loc_changed and ensure variable_was_changed is called.
12824 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
12825 compare pointers in cur_loc check, if it is equal to loc,
12826 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
12827 (variable_different_p): Remove compare_current_location argument,
12828 don't compare cur_loc.
12829 (dataflow_set_different_1): Adjust variable_different_p caller.
12830 (variable_was_changed): If dv had some var in changed_variables
12831 already, reset in_changed_variables flag for it and propagate
12832 cur_loc_changed over to the new variable. On empty var
12833 always set cur_loc_changed. Set in_changed_variables on whatever
12834 var is added to changed_variables.
12835 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
12836 Use shared_var_p. When removing loc that is equal to cur_loc,
12837 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
12838 end, don't set it to something else, just call variable_was_changed.
12839 (delete_slot_part): Use shared_var_p. When cur_loc equals to
12840 loc being removed, clear cur_loc and set cur_loc_changed.
12841 Set cur_loc_changed if all locations have been removed.
12842 (struct expand_loc_callback_data): New type.
12843 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
12844 allocated. Always create SUBREGs if simplify_subreg failed.
12845 Prefer to use cur_loc, when that fails and still in
12846 changed_variables (and seen first time) recompute it. Set
12847 cur_loc_changed of variables which had to change cur_loc and
12848 compute elcd->cur_loc_changed if any of the subexpressions used
12849 had to change cur_loc.
12850 (vt_expand_loc): Adjust to pass arguments in
12851 expand_loc_callback_data structure.
12852 (vt_expand_loc_dummy): New function.
12853 (emitted_notes): New variable.
12854 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
12855 that weren't used for any other decl in current
12856 emit_notes_for_changes call call vt_expand_loc_dummy to update
12857 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
12858 first loc_chain location if NULL before. Always use just
12859 cur_loc instead of first loc_chain location. When cur_loc_changed
12860 is false, when not --enable-checking=rtl just don't emit any note.
12861 When rtl checking, compute the note and assert it is the same
12862 as previous note. Clear cur_loc_changed and in_changed_variables
12863 at the end before removing from changed_variables.
12864 (check_changed_vars_3): New function.
12865 (emit_notes_for_changes): Traverse changed_vars to call
12866 check_changed_vars_3 on each changed var.
12867 (emit_notes_for_differences_1): Clear cur_loc_changed and
12868 in_changed_variables. Recompute cur_loc of new_var.
12869 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
12870 (vt_emit_notes): Initialize and destroy emitted_notes.
12872 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
12874 PR rtl-optimization/42220
12875 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
12876 Use verify_reg_tracked to determine if we should use OP_OUT rather
12878 (build_def_use): If we see an in-out operand for a register that we
12879 know nothing about, treat is an output if possible, fail the block if
12882 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
12885 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
12888 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
12891 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
12892 uses of relevant DEFs that are dead outside the loop too.
12894 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
12896 * var-tracking.c (dataflow_set_merge): Swap src and src2.
12898 2010-01-13 Jakub Jelinek <jakub@redhat.com>
12900 * var-tracking.c (values_to_unmark): New variable.
12901 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
12902 values_to_unmark vector. Moved body to...
12903 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
12904 instead queue it into values_to_unmark vector.
12905 (vt_find_locations): Free values_to_unmark vector.
12907 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
12909 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
12910 (site.exp): Export them when plugins are enabled.
12912 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
12914 PR middle-end/42326
12915 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
12916 that contain scevs.
12917 (chrec_fold_multiply): Same.
12919 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
12922 * c-decl.c (build_compound_literal): Return early if init is
12923 an error_mark_node.
12925 2010-03-04 Martin Jambor <mjambor@suse.cz>
12927 PR tree-optimization/43164
12928 PR tree-optimization/43191
12929 * tree-sra.c (type_consists_of_records_p): Reject records with
12930 zero-size bit-fields at the end.
12932 2010-03-04 Mike Stump <mikestump@comcast.net>
12934 * Makefile.in (TAGS): Remove *.y.
12936 2010-03-04 Richard Guenther <rguenther@suse.de>
12938 PR tree-optimization/40761
12939 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
12941 (my_rev_post_order_compute): New function.
12942 (init_pre): Call it.
12944 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
12946 PR middle-end/43209
12947 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
12948 decrease the cost of an IV candidate when the cost is infinite.
12950 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12952 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
12953 Use '3DNow!' for the extension of that name, ensure normal space
12955 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
12957 2010-03-03 Jeff Law <law@redhat.com>
12959 * PR middle-end/32693
12960 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
12961 than gen_rtx_SUBREG.
12962 (extract_bit_field_1): Likewise.
12964 2010-03-03 Janis Johnson <janis187@us.ibm.com>
12966 * doc/sourcebuild.texi (Test directives): Document that arguments
12967 include-opts and exclude-opts are now optional for dg-skip-if,
12968 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
12970 2010-03-03 Jason Merrill <jason@redhat.com>
12973 * cgraph.h (varpool_node): Add extra_name field.
12974 * varpool.c (varpool_extra_name_alias): New.
12975 (varpool_assemble_decl): Emit extra name aliases.
12976 (varpool_mark_needed_node): Look past an extra name alias.
12977 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
12978 * lto-streamer-in.c (lto_input_tree): Read it.
12979 * lto-streamer-out.c (output_unreferenced_globals): Write it.
12981 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
12983 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
12984 (sparc*-*-solaris2*): ...this.
12986 2010-03-03 Jakub Jelinek <jakub@redhat.com>
12989 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
12990 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
12991 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
12992 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
12995 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
12996 fallthrough to default handling, just with want_address 0 instead of 2.
12997 For single element lists, add_AT_loc directly, otherwise create an
12998 artificial variable DIE and stick location list to it.
13001 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
13002 (VAL_EXPR_HAS_REVERSE): Define.
13003 (reverse_op): New function.
13004 (add_stores): For reversible operations add an extra MO_VAL_USE.
13006 2010-03-02 Jason Merrill <jason@redhat.com>
13008 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
13010 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
13012 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
13013 (sparc64-*-linux*): Likewise.
13014 (sparc64-*-solaris2*): Include assembler files before linker ones.
13015 (sparc-*-solaris2*): Simplify and reorder to match previous case.
13016 * config/sparc/gas.h: Delete.
13017 * config/sparc/sol2-64.h: Add copyright notice.
13018 * config/sparc/sol2-gas-bi.h: Likewise.
13019 * config/sparc/sol2-gld.h: Likewise.
13020 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
13021 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
13022 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
13023 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
13024 (sparc_elf_asm_named_section): Rename into...
13025 (sparc_solaris_elf_asm_named_section): ...this. Always define.
13027 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
13029 * config/alpha/alpha.c (override_options): Fix -mtune error message.
13031 2010-03-02 Jeff Law <law@redhat.com>
13033 PR middle-end/42431
13034 * reload1.c (rtx_p, substitute_stack): Declare.
13035 (substitute): Record addresses of changed rtxs.
13036 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
13037 Restore the original rtx when complete.
13038 (reload): Free subsitute_stack when complete.
13040 2010-03-02 Janis Johnson <janis187@us.ibm.com>
13042 * doc/gccint.texi (menu): Add Testsuites as a chapter.
13043 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
13045 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
13046 LTO Testing, gcov Testing, profopt Testing, compat Testing,
13047 Torture Tests): Change from subsection to section.
13049 2010-03-02 Jakub Jelinek <jakub@redhat.com>
13050 Steven Bosscher <steven@gcc.gnu.org>
13052 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
13055 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
13057 PR middle-end/42640
13058 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
13059 the assignment from the new induction variable to the assignment
13060 of the value from the original loop PHI function.
13062 2010-03-01 Janis Johnson <janis187@us.ibm.com>
13063 Daniel Jacobowitz <dan@codesourcery.com>
13065 * doc/sourcebuild.texi (Test directives): Clarify options to
13068 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13070 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
13071 Disable cfi directives unless GCC and gas agree on using read-only
13072 .eh_frame sections for 64-bit.
13073 * configure: Regenerate.
13075 2010-03-01 Richard Guenther <rguenther@suse.de>
13077 PR tree-optimization/43220
13078 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
13079 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
13081 2010-03-01 Richard Guenther <rguenther@suse.de>
13082 Martin Jambor <mjambor@suse.cz>
13084 PR middle-end/41250
13085 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
13086 gimplified parameters.
13088 2010-03-01 Christian Bruel <christian.bruel@st.com>
13090 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
13092 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
13094 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
13096 2010-03-01 Richard Guenther <rguenther@suse.de>
13098 PR middle-end/43213
13099 * expr.c (expand_assignment): Use the alias-oracle to tell
13100 if the rhs aliases the result decl.
13102 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13105 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
13106 to sol_gt_pch_get_address.
13107 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
13108 64-bit, SPARC and x86.
13109 (sol_gt_pch_get_address): New function.
13111 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
13113 * toplev.h (inform_n, error_n): Declare.
13114 * diagnostic.c (inform_n, error_n): New function.
13116 2010-03-01 Jakub Jelinek <jakub@redhat.com>
13118 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
13119 has no rtl yet when processing local_decls, queue it and recheck
13120 if deferred stack allocation hasn't assigned it rtl.
13122 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
13124 * config/sh/sh.c (unspec_bbr_uid): New.
13125 (gen_block_redirect): Use it instead of INSN_UID.
13126 (gen_far_branch): Likewise.
13128 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
13130 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
13131 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
13133 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13135 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
13136 (Warning Options): -Wno-conversion-null is valid for
13137 Objective-C++ as well.
13138 * doc/tm.texi (Named Address Spaces): Likewise.
13139 * doc/plugins.texi (Plugins): Replace TABs with spaces.
13140 * doc/tree-ssa.texi (Tree SSA): Likewise.
13142 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
13145 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
13146 by default. Don't set the default arch for
13147 i[34567]86-*-darwin*|x86_64-*-darwin*.
13149 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
13152 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
13153 default. Set the default 32bit/64bit archs with $with_arch
13154 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
13156 2010-02-27 Richard Guenther <rguenther@suse.de>
13158 PR tree-optimization/43186
13159 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
13160 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
13161 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
13162 unroller iterations.
13164 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
13166 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
13167 required and i[34567]86-*-* targets don't support 64bit ISA.
13169 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
13172 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
13173 the same alias set.
13175 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
13177 * config.gcc: Set the default arch at least to Prescott for
13178 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
13179 if SSE math is enabled.
13181 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
13183 * diagnostic.c (diagnostic_initialize): Update.
13184 (diagnostic_report_diagnostic): Test inhibit_notes_p for
13186 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
13187 (diagnostic_inhibit_notes): New.
13188 * toplev.c (process_options): inhibit notes with -fcompare-debug.
13190 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
13193 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
13194 * doc/standards.texi: Likewise.
13195 * doc/extend.texi: Likewise.
13196 * doc/trouble.texi: Likewise.
13197 * doc/cppopts.texi: Likewise.
13198 * doc/install.texi: Likewise.
13199 * c.opt (std=c90,std=gnu90): New options.
13200 * c-opts.c (c_common_handle_option): Handle them.
13202 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
13205 * c-decl.c (undeclared_variable): Use an informative note.
13207 2010-02-26 Richard Guenther <rguenther@suse.de>
13209 PR tree-optimization/43186
13210 * gimple.h (gimple_fold): Remove.
13211 * gimple.c (gimple_fold): Remove. Inline into single user ...
13212 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
13213 Try harder for conditions.
13215 2010-02-26 Jakub Jelinek <jakub@redhat.com>
13218 * function.c (used_types_insert): Don't skip through named pointer
13219 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
13220 and it is different from the main variant's type.
13222 2010-02-26 Nick Clifton <nickc@redhat.com>
13224 * config/rx/rx.md (sminsi3): Remove bogus alternative.
13226 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
13228 * config.gcc: Support --with-fpmath=sse for x86.
13230 * config/i386/ssemath.h: New.
13232 * doc/install.texi (--with-fpmath=sse): Documented.
13234 2010-02-26 Richard Guenther <rguenther@suse.de>
13236 PR tree-optimization/43188
13237 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
13238 vector types of over-aligned element type.
13240 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
13243 * config/i386/i386.c (expand_vec_perm_blend): Use correct
13244 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
13246 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
13248 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
13250 2010-02-26 Jakub Jelinek <jakub@redhat.com>
13252 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
13253 * var-tracking.c: Include diagnostic.h.
13254 (debug_dv): New function.
13255 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
13258 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
13259 (add_value_chain, add_value_chains, remove_value_chain,
13260 remove_value_chains): Handle DEBUG_EXPRs.
13261 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
13264 * regcprop.c (struct queued_debug_insn_change): New type.
13265 (struct value_data_entry): Add debug_insn_changes field.
13266 (struct value_data): Add n_debug_insn_changes field.
13267 (debug_insn_changes_pool): New variable.
13268 (free_debug_insn_changes, apply_debug_insn_changes,
13269 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
13270 (kill_value_one_regno): Call free_debug_insn_changes if needed.
13271 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
13273 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
13275 (copyprop_hardreg_forward_1): Don't call apply_change_group for
13276 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
13277 changes, call cprop_find_used_regs via note_stores.
13278 (copyprop_hardreg_forward): When copying vd from predecessor
13279 which has any queued DEBUG_INSN changes, make sure the pointers are
13280 cleared. At the end call df_analyze and then if there are any
13281 DEBUG_INSN changes queued at the end of some basic block for still
13282 live registers, apply them.
13283 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
13285 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
13287 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
13290 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
13292 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
13293 targets. Set the default with_cpu/with_arch from arch/cpu.
13294 Allow x86-64 and native for with_cpu/with_arch.
13296 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
13298 * ebitmap.c: Change calls to verify_popcount with calls to
13299 sbitmap_verify_popcount.
13300 (ebitmap_clear_bit): Fixed map->cacheindex test and
13301 map>cache update when bit clearing results in an empty
13304 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
13307 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
13308 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
13309 and support both V2DF and V2DI modes.
13310 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
13311 support both V2DF and V2DI modes.
13312 (general): Delete trailing whitespace from a few patterns.
13314 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13315 V2DF/V2DI interleave high/low builtins.
13317 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
13320 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
13321 interleave high/low functions.
13323 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
13325 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
13326 #pragma extern_prefix.
13328 2010-02-25 Jakub Jelinek <jakub@redhat.com>
13331 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
13332 BLKmode, assert op0 is a MEM and just adjust its mode.
13335 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
13336 if bitpos isn't multiple of mode's bitsize.
13338 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
13340 * c.opt (-ftemplate-depth=): New.
13341 (-ftemplate-depth-): Deprecate.
13342 * optc-gen.awk: Handle -ftemplate-depth=.
13343 * opth-gen.awk: Likewise.
13344 * c-opts.c (c_common_handle_option): Likewise.
13345 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
13347 2010-02-24 Jason Merrill <jason@redhat.com>
13349 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
13351 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13353 * cfg.c (alloc_aux_for_block): Remove inline.
13354 (alloc_aux_for_edge): Likewise.
13356 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13358 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
13360 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13362 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
13363 * config/i386/sol2-gas.h: New file.
13364 * config.gcc (i[34567]86-*-solaris2*): Use it.
13366 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
13369 * c-typeck.c (ep_convert_and_check): New.
13370 (build_conditional_expr): Use it.
13371 (build_binary_op): Likewise.
13373 2010-02-24 Jakub Jelinek <jakub@redhat.com>
13375 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
13378 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
13379 bounds even for -O+.
13380 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
13381 expr needs to have DECL_NAME set.
13383 2010-02-24 Nick Clifton <nickc@redhat.com>
13385 * config/mep/mep.c: Include gimple.h.
13386 (mep_function_uses_sp): Delete unused function.
13387 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
13388 parameters. Use unsigned integers to count args. Return a
13389 NULL_RTX instead of an error_mark_node. Toidy up formatting.
13391 2010-02-23 Jakub Jelinek <jakub@redhat.com>
13394 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
13395 greater or equal to nelt instead of 2 * nelt.
13396 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
13399 2010-02-23 Jason Merrill <jason@redhat.com>
13402 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
13403 in cfun->local_decls even if they have register types.
13406 * stor-layout.c (place_field): Don't warn about unnecessary
13407 DECL_PACKED if the type is packed.
13409 2010-02-23 Jakub Jelinek <jakub@redhat.com>
13412 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
13413 GOTOFF relocs, even when the base reg isn't pic pointer.
13415 2010-02-23 Michael Matz <matz@suse.de>
13418 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
13419 (expand_gimple_basic_block): Generate and use debug temps if there
13420 are debug uses left after the last real use of TERed ssa names.
13421 Unlink debug immediate uses when they are expanded.
13423 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
13426 * config/i386/i386.c (override_options): Reorganise to provide
13427 better error messages.
13429 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
13431 PR middle-end/43083
13432 * graphite-scop-detection.c (create_single_exit_edge): Move
13433 the call to find_single_exit_edge to....
13434 (create_sese_edges): ...here. Don't handle multiple edges
13435 exiting the function.
13436 (build_graphite_scops): Don't handle multiple edges
13437 exiting the function.
13439 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
13441 PR middle-end/43097
13442 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
13443 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
13445 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
13447 PR middle-end/43026
13448 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
13450 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
13453 * c-typeck.c (convert_arguments): Print declaration location.
13454 * c-common.c (validate_nargs): Rename as
13455 builtin_function_validate_nargs.
13456 (check_builtin_function_arguments): Update.
13458 2010-02-22 Richard Guenther <rguenther@suse.de>
13461 * tree-inline.c (declare_return_variable): Use the type of
13462 the call stmt lhs if available.
13464 2010-02-22 Duncan Sands <baldrick@free.fr>
13466 * passes.c (register_pass): Always consider all pass lists when
13467 ref_pass_instance_number is zero.
13469 2010-02-22 Richard Guenther <rguenther@suse.de>
13471 PR tree-optimization/42749
13472 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
13473 parameter. Do arithmetic in the original type.
13474 (update_accumulator_with_ops): Likewise.
13475 (adjust_accumulator_values): Adjust.
13477 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13479 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
13480 (QI to BLKmode splitter): New splitter.
13482 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
13484 * config/i386/i386.c (initial_ix86_tune_features): Turn on
13485 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
13487 2010-02-22 Richard Guenther <rguenther@suse.de>
13489 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
13491 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
13493 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
13494 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
13495 ($(T)crti.o, $(T)crtn.o): Remove rules.
13497 2010-02-21 Tobias Burnus <burnus@net-b.de>
13500 * doc/invoke.texi (-fassociative-math): Document that this
13501 option is automatically enabled for Fortran.
13503 2010-02-20 David S. Miller <davem@davemloft.net>
13505 * configure.ac: Test if linker and assembler properly support
13506 GOTDATA_OP relocations.
13507 * configure: Rebuild.
13508 * config.in: Likewise.
13509 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
13510 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
13511 (movsi_high_pic): Likewise.
13512 (movdi_lo_sum_pic): Likewise.
13513 (movdi_high_pic): Likewise.
13514 (movsi_pic_gotdata_op): New pattern.
13515 (movdi_pic_gotdata_op): Likewise.
13516 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
13517 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
13519 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
13522 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
13523 attribute to ssemul.
13524 (xop_mulv2div2di3_high): Ditto.
13526 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
13529 * c.opt (Wconversion-null): New option.
13530 * doc/invoke.texi (Wconversion-null): Document.
13532 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
13534 * common.opt (Wlarger-than-): Add Undocumented.
13536 2010-02-19 Mike Stump <mikestump@comcast.net>
13538 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
13540 2010-02-19 Jason Merrill <jason@redhat.com>
13543 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
13544 * configure: Likewise.
13546 2010-02-20 Alan Modra <amodra@gmail.com>
13548 PR middle-end/42344
13549 * cgraph.h (cgraph_make_decl_local): Declare.
13550 * cgraph.c (cgraph_make_decl_local): New function.
13551 (cgraph_make_node_local): Use it.
13552 * cgraphunit.c (cgraph_function_versioning): Likewise.
13553 * ipa.c (function_and_variable_visibility): Likewise.
13555 2010-02-19 Jakub Jelinek <jakub@redhat.com>
13558 * except.c (sjlj_emit_function_enter): Don't call
13559 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
13561 * rtl.h (add_reg_br_prob_note): Remove prototype.
13563 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
13566 * c-common.c (conversion_warning): Remove widening conversions
13567 before checking the conversion of integers to reals.
13569 2010-02-19 Mike Stump <mikestump@comcast.net>
13571 PR middle-end/43125
13572 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
13575 * cgraphunit.c (process_function_and_variable_attributes): Check
13576 DECL_PRESERVE_P instead of looking up attribute "used".
13577 * ipa-pure-const.c (check_decl): Likewise.
13578 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
13579 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
13580 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
13581 instead of attribute "used".
13582 * config/sol2-c.c (solaris_pragma_init): Likewise.
13583 (solaris_pragma_fini): Likewise.
13585 2010-02-19 Jakub Jelinek <jakub@redhat.com>
13587 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
13588 Use XCNEW instead of xcalloc.
13589 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
13590 XNEW instead of xmalloc.
13591 (get_fields): Use XNEWVEC instead of xmalloc.
13594 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
13595 populate vars array.
13596 (create_new_general_access): For debug stmts just reset value.
13597 (get_stmt_accesses): For accesses within debug stmts just record them
13598 using add_access_to_acc_sites instead of preventing the peeling or
13599 counting them as accesses.
13601 PR middle-end/42233
13602 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
13604 2010-02-19 Richard Guenther <rguenther@suse.de>
13606 PR tree-optimization/42916
13607 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
13610 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
13612 * configure.ac: Replace all uses of changequote in macro arguments
13613 with proper quoting.
13615 2010-02-19 Jakub Jelinek <jakub@redhat.com>
13617 PR middle-end/42233
13618 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
13620 2010-02-19 Richard Guenther <rguenther@suse.de>
13622 PR tree-optimization/42944
13623 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
13624 test for aliasing with errno.
13626 2010-02-19 Jakub Jelinek <jakub@redhat.com>
13628 PR middle-end/42233
13629 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
13630 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
13631 * dojump.c: Include output.h.
13632 (inv): New inline function.
13633 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
13634 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
13635 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
13636 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
13637 argument, pass it down to other calls.
13638 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
13639 add REG_BR_PROB note to the conditional jump.
13640 * cfgexpand.c (add_reg_br_prob_note): Removed.
13641 (expand_gimple_cond): Don't call it, add the probability
13642 as last argument to jumpif_1/jumpifnot_1.
13643 * Makefile.in (dojump.o): Depend on output.h.
13644 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
13646 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
13647 * stmt.c (do_jump_if_equal): Likewise.
13648 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
13649 * loop-unswitch.c (compare_and_jump_seq): Likewise.
13650 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
13652 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
13653 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
13654 jumpifnot_1 callers.
13655 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
13657 (store_expr): Adjust jumpifnot caller.
13658 (store_constructor): Adjust jumpif caller.
13660 PR middle-end/42233
13661 * gimplify.c (gimple_boolify): For __builtin_expect call
13662 gimple_boolify also on its first argument.
13664 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
13666 * configure.ac (gnu-unique-object): Wrap regexps using [] in
13668 (__stack_chk_fail): Ditto. Remove quadrigraphs.
13669 * configure: Regenerated.
13671 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13673 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
13674 lang_hooks.types_compatible_p instead of comptypes.
13676 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
13678 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
13679 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
13680 if __prefer_thumb__ is defined.
13682 2010-02-18 Martin Jambor <mjambor@suse.cz>
13684 PR tree-optimization/43066
13685 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
13686 array with zero-sized element type.
13688 2010-02-18 Jakub Jelinek <jakub@redhat.com>
13690 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
13691 rtx, allocate struct var_loc_node here and return it to the
13692 caller, and only if it is actually needed.
13693 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
13694 move it earlier and return immediately if it returns NULL.
13696 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
13698 * config/sparc/gas.h: New file. Restore
13699 TARGET_ASM_NAMED_SECTION to its ELF default.
13700 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
13701 check !HAVE_GNU_AS.
13702 * config/sparc/sparc.c (sparc_elf_asm_named_section):
13703 Likewise. Add ATTRIBUTE_UNUSED to prototype.
13704 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
13705 after sparc/sysv4.h.
13707 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
13709 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
13711 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
13713 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
13714 patterns from predicated pattern.
13716 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
13719 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
13720 for insn mnemonic suffix.
13722 2010-02-17 Richard Guenther <rguenther@suse.de>
13724 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
13727 2010-02-17 Jakub Jelinek <jakub@redhat.com>
13730 * caller-save.c (save_call_clobbered_regs): If BB ends with
13731 a DEBUG_INSN, move any notes in between last real insn and the last
13732 DEBUG_INSN after the last DEBUG_INSN.
13734 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
13736 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
13737 Fix return type. Fix argument type. Explain meaning of return value.
13739 2010-02-16 Richard Guenther <rguenther@suse.de>
13741 PR tree-optimization/41043
13742 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
13743 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
13745 (vrp_visit_phi_node): ... but only for loop PHI nodes.
13747 2010-02-16 Ira Rosen <irar@il.ibm.com>
13749 PR tree-optimization/43074
13750 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
13751 * tree-vect-loop.c (vect_analyze_loop_operations): Add
13752 vectorizable cycles in hybrid SLP check.
13753 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
13755 2010-02-16 Richard Guenther <rguenther@suse.de>
13757 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
13758 (true_dependence): If memrefs_conflict_p computes must-alias
13759 trust it. Move TBAA check after offset-based disambiguation.
13760 (canon_true_dependence): Likewise.
13762 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
13764 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
13765 * doc/invoke.texi: Document it.
13766 * var-tracking.c: Include toplev.h and params.h.
13767 (vt_find_locations): Return bool indicating success. Compute
13768 hash sizes unconditionally. Check new parameter, report.
13769 (variable_tracking_main_1): Check vt_find_locations results and
13770 retry. Renamed from...
13771 (variable_tracking_main): ... this. New wrapper to preserve
13772 flag_var_tracking_assignments.
13773 * Makefile.in (var-tracking.o): Adjust dependencies.
13775 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
13776 Jakub Jelinek <jakub@redhat.com>
13779 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
13780 if weak_import attribute is present.
13781 * config/darwin.c (machopic_select_section): Likewise.
13783 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
13785 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
13786 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
13787 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
13788 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
13790 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
13793 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
13794 Fix argument types.
13796 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
13797 Rewrite text to refer to the names.
13799 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
13801 * config/i386/i386-builtin-types.def
13802 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
13803 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
13804 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
13805 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
13806 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
13807 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
13808 IX86_BUILTIN_VPERMIL2PS256.
13809 (MULTI_ARG_4_DF2_DI_I): Defined.
13810 (MULTI_ARG_4_DF2_DI_I1): Defined.
13811 (MULTI_ARG_4_SF2_SI_I): Defined.
13812 (MULTI_ARG_4_SF2_SI_I1): Defined.
13813 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
13814 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
13815 __builtin_ia32_vpermil2ps256.
13816 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
13817 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
13818 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
13819 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
13820 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
13821 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
13822 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
13823 CODE_FOR_xop_vpermil2v8sf3.
13824 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
13825 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
13826 * config/i386/xopintrin.h (_mm_permute2_pd): New.
13827 (_mm256_permute2_pd): New.
13828 (_mm_permute2_ps): New.
13829 (_mm256_permute2_ps): New.
13831 2010-02-15 Nick Clifton <nickc@redhat.com>
13833 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
13834 boolean parameters. Use emit_jump_insn when emitting a pop
13835 instruction containing a return insn.
13836 (push): Use 'true' rather than '1' as second parameter to F.
13837 (h8300_expand_prologue): Likewise.
13838 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
13839 (h8300_expand_epilogue): Likewise.
13841 2010-02-15 Richard Guenther <rguenther@suse.de>
13843 PR middle-end/43068
13844 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
13847 2010-02-15 Nick Clifton <nickc@redhat.com>
13849 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
13852 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
13854 * intl.c (fake_ngettext): New function.
13855 * intl.h (fake_ngettext): Declare.
13856 (ngettext): Define macro.
13857 * collect2.c (notice_translated): New function.
13858 (main): Use notice_translated and ngettext.
13859 * collect2.h (notice_translated): Declare.
13861 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
13863 * reorg.c (delete_computation): Comment fixes.
13864 * caller-save.c (setup_save_areas): Idem.
13865 * sel-sched-dump.c (dump_lv_set): Idem.
13868 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13870 * config/s390/s390.c (s390_sched_init): New function.
13871 (TARGET_SCHED_INIT): Target hook defined.
13873 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
13874 Jack Howarth <howarth@bromo.med.uc.edu>
13875 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
13878 Partial revert of unintended change in fix for PR41605.
13879 * config/darwin.h: Fix typo.
13880 * config/darwin9.h: Same.
13882 2010-02-11 Jakub Jelinek <jakub@redhat.com>
13884 * c-pch.c (pch_init): Clear v.
13886 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
13888 PR middle-end/42930
13889 * graphite-scop-detection.c (graphite_can_represent_scev): Call
13890 graphite_can_represent_init for MULT_EXPR.
13892 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
13894 PR middle-end/42914
13895 PR middle-end/42530
13896 * graphite-sese-to-poly.c (remove_phi): New.
13897 (translate_scalar_reduction_to_array): Call remove_phi.
13899 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
13901 PR middle-end/42771
13902 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
13903 * graphite-clast-to-gimple.h (gloog): Update declaration.
13904 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
13905 * graphite-poly.h (struct poly_bb): Add missing comments.
13906 (struct scop): Add poly_scop_p field.
13907 (POLY_SCOP_P): New.
13908 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
13909 * graphite.c (graphite_transform_loops): Build the polyhedral
13910 representation for each scop before code generation.
13911 * sese.c (rename_variables_in_operand): Removed.
13912 (rename_variables_in_expr): Return the renamed expression.
13913 (rename_sese_parameters): New.
13914 * sese.h (rename_sese_parameters): Declared.
13916 2010-02-11 Richard Guenther <rguenther@suse.de>
13918 PR tree-optimization/42998
13919 * tree-ssa-pre.c (create_expression_by_pieces): Treat
13920 POINTER_PLUS_EXPR properly.
13922 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
13923 Changpeng Fang <changpeng.fang@amd.com>
13925 PR middle-end/40886
13926 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
13927 the cost of an IV candidate when the IV is used in a test against zero.
13929 * gcc.dg/tree-ssa/ivopts-3.c: New.
13931 2010-02-11 Richard Guenther <rguenther@suse.de>
13934 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
13935 pointer-vs-decl case by swapping refs. Handle some cases
13936 of pointer-vs-decl disambiguations more conservatively.
13937 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
13938 to false after expanding.
13940 2010-02-11 Richard Guenther <rguenther@suse.de>
13943 * gcc.c (process_command): Handle LTO file@offset case more
13946 2010-02-11 Jakub Jelinek <jakub@redhat.com>
13948 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
13949 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
13951 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
13953 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
13954 if MEM's mode size isn't DWARF2_ADDR_SIZE.
13955 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
13956 Optimize eq/ne comparisons when both arguments are known to be
13958 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
13959 Don't mask operands unnecessarily if they are known to be already
13962 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
13964 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
13967 2010-02-10 Richard Guenther <rguenther@suse.de>
13969 PR tree-optimization/43017
13970 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
13971 for wrapping signed arithmetic.
13973 2010-02-10 Jakub Jelinek <jakub@redhat.com>
13976 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
13977 if no debug info should be emitted for it.
13979 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
13981 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
13982 note when flag_exceptions is set.
13984 2010-02-10 Duncan Sands <baldrick@free.fr>
13986 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
13988 2010-02-10 Richard Guenther <rguenther@suse.de>
13991 * tree.c (get_unwidened): Handle constants.
13992 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
13994 2010-02-10 Martin Jambor <mjambor@suse.cz>
13997 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
13998 check for variable argument counts independently.
14000 2010-02-10 Christian Bruel <christian.bruel@st.com>
14003 * config/sh/sh.c (find_barrier): Increase length for non delayed
14004 conditional branches.
14006 2010-02-10 Christian Bruel <christian.bruel@st.com>
14008 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
14010 2010-02-10 Jakub Jelinek <jakub@redhat.com>
14012 * builtins.c (set_builtin_user_assembler_name): Also handle
14013 ffs if int is smaller than word.
14015 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
14017 PR middle-end/42973
14018 * ira-conflicts.c (get_dup): Remove.
14019 (process_reg_shuffles): Add new parameter. Use it as an
14020 additional guard for copy generation.
14021 (add_insn_allocno_copies): Rewrite.
14023 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
14025 * common.opt (fsched2-use-traces): Preserved for backward
14027 * doc/invoke.texi: Remove the documentation about option
14028 -fsched2-use-traces.
14029 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
14030 flag_sched2_use_traces.
14031 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
14032 the backward compatibility flag section.
14034 2010-02-09 Richard Guenther <rguenther@suse.de>
14036 PR tree-optimization/43008
14037 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
14038 make HEAP variables initialized from global memory if they
14039 are not known builtin functions.
14040 (find_func_aliases): Adjust.
14042 2010-02-09 Richard Guenther <rguenther@suse.de>
14044 PR tree-optimization/43000
14045 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
14046 arithmetic manually.
14048 2010-02-08 Jakub Jelinek <jakub@redhat.com>
14050 PR tree-optimization/42931
14051 * tree-loop-linear.c (try_interchange_loops): Don't call
14052 double_int_mul if estimated_loop_iterations failed.
14054 2010-02-08 Martin Jambor <mjambor@suse.cz>
14056 PR middle-end/42898
14057 * tree-sra.c (build_accesses_from_assign): Do not mark in
14058 should_scalarize_away_bitmap if stmt has volatile ops.
14059 (sra_modify_assign): Do not process assigns piecemeal if if stmt
14062 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
14064 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
14066 2010-02-07 Adam Nemet <adambnmet@gmail.com>
14068 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
14069 before the pattern.
14071 2010-02-07 Andrew Pinski <pinskia@gmail.com>
14073 PR middle-end/42946
14074 * df-core.c (df_finish_pass): Change type of saved_flags to int.
14076 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
14078 PR middle-end/42988
14079 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
14080 to unknown_dependence.
14081 (graphite_legal_transform_dr): Handle the unknown_dependence.
14082 (graphite_carried_dependence_level_k): Same.
14084 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
14086 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
14088 2010-02-07 Richard Guenther <rguenther@suse.de>
14090 PR middle-end/42991
14091 * expr.c (get_inner_reference): Always initialize *pbitsize.
14093 2010-02-07 Richard Guenther <rguenther@suse.de>
14095 PR middle-end/42956
14096 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
14097 new ARRAY_REFs on variable size element or minimal index arrays.
14099 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
14100 gimple_fold_indirect_ref.
14102 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
14105 * arm.c (arm_override_options): Just return if the user has specified
14106 an invalid fpu name.
14108 2010-02-03 Jason Merrill <jason@redhat.com>
14111 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
14112 i386_pe_maybe_record_exported_symbol.
14114 2010-02-05 Steve Ellcey <sje@cup.hp.com>
14117 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
14118 (pa_delegitimize_address): New function.
14120 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
14122 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
14123 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
14125 2010-02-05 Richard Guenther <rguenther@suse.de>
14128 * lto-streamer-in.c (get_resolution): Deal with references
14129 to undefined functions.
14131 2010-02-05 Richard Guenther <rguenther@suse.de>
14133 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
14134 (fold_const_aggregate_ref): Likewise.
14135 (ccp_fold_stmt): Substitute loads.
14136 (maybe_fold_reference): Verify types before substituting.
14138 (fold_gimple_assign): Unshare properly.
14139 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
14141 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
14143 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
14144 for rs6000_gen_cell_microcode.
14146 2010-02-04 Richard Guenther <rguenther@suse.de>
14148 PR rtl-optimization/42952
14149 * dse.c (const_or_frame_p): Remove MEM handling.
14151 2010-02-04 Nick Clifton <nickc@redhat.com>
14153 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
14154 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
14155 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
14156 (mn10300_asm_output_mi_thunk): New function.
14157 (mn10300_can_output_mu_thunk): New function.
14158 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
14159 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
14160 (FUNCTION_ARG): Delete incorrect comment.
14162 2010-02-03 Jason Merrill <jason@redhat.com>
14165 * fold-const.c (operand_equal_p): Handle erroneous types.
14167 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
14169 * config/h8300/h8300.md (can_delay): Fix attibute condition.
14171 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
14173 PR rtl-optimization/42941
14174 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
14177 2010-02-03 Jason Merrill <jason@redhat.com>
14180 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
14182 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
14185 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
14186 (cselib_reset_table): Renamed from...
14187 (cselib_reset_table_with_next_value): ... this.
14188 (cselib_get_next_uid): Renamed from...
14189 (cselib_get_next_unknown_value): ... this.
14190 * cselib.c (next_uid): Renamed from...
14191 (next_unknown_value): ... this.
14192 (cselib_clear_table): Adjust.
14193 (cselib_reset_table): Adjust. Renamed from...
14194 (cselib_reset_table_with_next_value): ... this.
14195 (cselib_get_next_uid): Adjust. Renamed from...
14196 (cselib_get_next_unknown_value): ... this.
14197 (get_value_hash): Use hash.
14198 (cselib_hash_rtx): Likewise.
14199 (new_cselib_val): Adjust. Set and dump uid.
14200 (cselib_lookup_mem): Pass next_uid as hash.
14201 (cselib_subst_to_values): Likewise.
14202 (cselib_log_lookup): Dump uid.
14203 (cselib_lookup): Pass next_uid as hash. Adjust.
14204 (cselib_process_insn): Adjust.
14205 (cselib_init): Initialize next_uid.
14206 (cselib_finish): Adjust.
14207 (dump_cselib_table): Likewise.
14208 * dse.c (canon_address): Dump value uid.
14209 * print-rtl.c (print_rtx): Print value uid.
14210 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
14212 (dv_uid): New function, sort of renamed from...
14213 (dv_htab_hash): ... this, reimplemented in terms of it and...
14214 (dv_uid2hash): ... this. New.
14215 (variable_htab_eq): Drop excess assertions.
14216 (tie_break_pointers): Removed.
14217 (canon_value_cmp): Compare uids.
14218 (variable_post_merge_New_vals): Print uids.
14219 (vt_add_function_parameters): Adjust.
14220 (vt_initialize): Reset table. Adjust.
14222 2010-02-03 Richard Guenther <rguenther@suse.de>
14224 PR tree-optimization/42944
14225 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
14226 (call_may_clobber_ref_p_1): Likewise. Properly handle
14227 malloc and calloc clobbering errno.
14229 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
14231 * doc/invoke.texi: Fix name of sched1 dump.
14233 * opts.c (decode_options): Set flag_tree_switch_conversion
14234 only conditionally on optimize >= 2.
14236 * gcse.c: Assorted comment fixes in pass description.
14238 2010-02-03 Anthony Green <green@moxielogic.com>
14240 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
14241 nop padding in order to maintain alignment of storage location of
14242 target function address.
14243 (moxie_trampoline_init): Store target function address at newly
14245 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
14247 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
14249 2010-02-03 Richard Guenther <rguenther@suse.de>
14251 PR middle-end/42927
14252 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
14254 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14256 * config.gcc: Reenable check for obsolete targets.
14257 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
14258 mips-sgi-irix6.[0-4]*.
14260 2010-02-02 Nick Clifton <nickc@redhat.com>
14262 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
14263 constant size of 4 as being the same as 0.
14264 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
14265 can take values in the range 0..4.
14267 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
14270 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
14271 as _darwin10_Unwind_FindEnclosingFunction().
14272 * libgcc-libsystem.ver: New.
14274 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
14277 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
14278 implicitly set registers.
14280 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
14282 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
14283 (arm_override_options): Allow automatic selection of the thread
14284 pointer register if thumb2.
14285 (legitimize_pic_address): Improve code sequences for Thumb2.
14286 (arm_call_tls_get_addr): Likewise.
14287 (legitimize_tls_address): Likewise.
14288 * arm.md (pic_load_addr_arm): Delete. Replace with ...
14289 (pic_load_addr_32bit): ... this. New named pattern.
14290 * thumb2.md (pic_load_addr_thumb2): Delete.
14291 (pic_load_dot_plus_four): Delete.
14292 (tls_load_dot_plus_four): New named pattern.
14294 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14297 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
14298 Document fix for TLS bug.
14300 2010-01-31 Richard Guenther <rguenther@suse.de>
14302 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
14303 conservatively correct.
14305 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14309 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14311 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
14313 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14315 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
14317 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
14319 * config.gcc: Adjust order of makefile fragments for mingw targets.
14321 2010-01-31 Richard Guenther <rguenther@suse.de>
14323 PR middle-end/42898
14324 * gimplify.c (gimplify_init_constructor): For volatile LHS
14325 initialize a temporary.
14327 2010-01-31 Matthias Klose <doko@ubuntu.com>
14329 * configure.ac: Fix __stack_chk_fail check for cross builds configured
14331 * configure: Regenerate.
14333 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
14335 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
14336 the same alias set and their sizes different constantness.
14337 (aliasing_component_refs_p): Revert 2009-10-24 change.
14339 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14341 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
14344 2010-01-29 Richard Guenther <rguenther@suse.de>
14346 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
14347 Assert we successfully updated the call.
14349 2010-01-29 Jakub Jelinek <jakub@redhat.com>
14351 PR rtl-optimization/42889
14352 * df.h (df_set_bb_dirty_nonlr): New prototype.
14353 * df-core.c (df_set_bb_dirty_nonlr): New function.
14354 * df-scan.c (df_insn_rescan): Call it instead of
14355 df_set_bb_dirty for DEBUG_INSNs.
14357 2010-01-29 Richard Guenther <rguenther@suse.de>
14359 PR middle-end/37448
14360 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
14361 quadratic behavior in most cases.
14363 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
14366 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
14367 in the call to gen_x86_movsicc_0_m1.
14369 2010-01-28 Richard Guenther <rguenther@suse.de>
14371 PR tree-optimization/42871
14372 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
14374 2010-01-28 Richard Guenther <rguenther@suse.de>
14376 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
14377 into call arguments.
14379 2010-01-28 Richard Guenther <rguenther@suse.de>
14381 PR middle-end/42883
14382 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
14383 the forwarder if the destination is an EH landing pad.
14385 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
14387 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
14388 block list passed to gimple_duplicate_sese_tail.
14389 (parallelize_loops): Avoid parallelization when the function
14390 has_nonlocal_label.
14391 Avoid parallelization when the preheader is IRREDUCIBLE.
14392 Try to optimize when estimated_loop_iterations_int is unresolved.
14393 Add the loop's location to the dump file.
14394 * tree-cfg.c (add_phi_args_after_redirect): Remove.
14395 (gimple_duplicate_sese_tail): Remove the check for the latch.
14396 Redirect nexits to the exit block.
14397 Remove handling of the incoming edges to the latch.
14398 Redirect the backedge from the copied latch to the exit bb.
14400 2010-01-28 Michael Matz <matz@suse.de>
14403 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
14404 Wrap force_reg into a sequence, emit it before user.
14406 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
14408 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
14410 (arm_legacy_rev): Likewise.
14411 (thumb_legacy_rev): Likewise.
14413 2010-01-27 Jakub Jelinek <jakub@redhat.com>
14415 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
14416 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
14417 on MEM's address failed, try avoid_constant_pool_reference and
14418 recurse if it returned something different.
14419 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
14420 address, try avoid_constant_pool_reference and recurse if it
14421 returned something different.
14422 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
14423 address and avoid_constant_pool_reference returned something
14424 different, don't set have_address.
14426 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
14429 * var-tracking.c (val_store): Add modified argument, obey it.
14431 (count_uses): Move down logging of main.
14432 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
14433 don't need resolution.
14434 (emit_notes_in_bb): Likewise.
14436 2010-01-27 Richard Guenther <rguenther@suse.de>
14438 PR middle-end/42878
14439 * tree-inline.c (remap_decl): Delay remapping of SSA name
14440 default definitions until we need them.
14442 2010-01-27 Jakub Jelinek <jakub@redhat.com>
14444 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
14445 (rs6000_delegitimize_address): New function.
14447 * config/s390/s390.c (s390_delegitimize_address): Call
14448 delegitimize_mem_from_attrs.
14450 PR middle-end/42874
14451 * tree-inline.c (cannot_copy_type_1): Removed.
14452 (copy_forbidden): Don't forbid copying of functions containing
14453 records/unions with variable length fields.
14455 2010-01-27 Christian Bruel <christian.bruel@st.com>
14459 * config/sh/sh.c (find_barrier): Increase length for non delayed
14460 conditional branches.
14462 2010-01-27 Matthias Klose <doko@ubuntu.com>
14464 * configure.ac (gnu-unique-object): Fix ldd version check.
14465 * configure: Regenerate.
14467 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14469 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
14471 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
14472 Test for HAVE_GNU_AS value.
14474 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14476 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
14477 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
14478 INT64_TYPE): Define.
14479 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
14480 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
14481 INT_LEAST64_TYPE): Define.
14482 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
14483 UINT_LEAST64_TYPE): Define.
14484 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
14485 INT_FAST64_TYPE): Define.
14486 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
14487 UINT_FAST64_TYPE): Define.
14488 (INTMAX_TYPE, UINTMAX_TYPE): Define.
14489 (INTPTR_TYPE, UINTPTR_TYPE): Define.
14490 (SIG_ATOMIC_TYPE): Define.
14492 2010-01-26 Richard Guenther <rguenther@suse.de>
14494 * df-scan.c (df_scan_set_bb_info): Remove assert.
14495 (df_insn_rescan_debug_internal): Merge asserts.
14496 (df_install_ref): Likewise.
14497 (df_mark_reg): Use bitmap_set_range.
14498 (df_hard_reg_used_p): Remove assert.
14499 (df_hard_reg_used_count): Likewise.
14501 2010-01-26 Richard Guenther <rguenther@suse.de>
14503 PR rtl-optimization/42685
14504 * web.c (web_main): Ignore DEBUG_INSNs.
14506 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
14508 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
14510 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
14511 Fix types of fndecl and arglist parameters.
14513 2010-01-26 Richard Guenther <rguenther@suse.de>
14515 PR middle-end/42806
14516 * tree-eh.c (unsplit_eh): Skip debug insns.
14518 2010-01-26 Richard Guenther <rguenther@suse.de>
14520 PR tree-optimization/42250
14521 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
14523 2010-01-26 Jakub Jelinek <jakub@redhat.com>
14526 * omp-low.c (expand_omp_sections): Only use single_pred if
14527 l2_bb is single_pred_p.
14529 2010-01-25 Christian Bruel <christian.bruel@st.com>
14532 * config/sh/sh.c (find_barrier): Increase length for non delayed
14533 conditional branches.
14534 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
14536 2010-01-24 David S. Miller <davem@davemloft.net>
14538 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
14539 define if not using GAS.
14540 * config/sparc/sparc.c (sparc_elf_asm_named_section):
14541 Likewise. Delete SECTION_MERGE code, which is only applicable
14544 2010-01-24 Mark Mitchell <mark@codesourcery.com>
14547 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
14548 mangling of va_list in system headers.
14550 2010-01-23 Toon Moene <toon@moene.org>
14552 * tree-predcom.c (combine_chains): Return NULL, not false.
14554 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
14556 * tree-loop-distribution.c (distribute_loop): Fix declaration and
14557 initialization of variable res to agree with return type.
14559 2010-01-22 Steve Ellcey <sje@cup.hp.com>
14561 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
14562 * tree-sra.c: Add include of expr.h.
14564 2010-01-22 Jakub Jelinek <jakub@redhat.com>
14566 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
14567 insert the debug stmt on the single non-EH edge from the stmt.
14569 2010-01-22 Richard Henderson <rth@redhat.com>
14572 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
14573 the RHS until after generate_subtree_copies has insertted its
14574 code before the current statement.
14576 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
14578 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
14580 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
14582 2010-01-21 Martin Jambor <mjambor@suse.cz>
14584 PR tree-optimization/42585
14585 * tree-sra.c (struct access): New field grp_total_scalarization.
14586 (dump_access): Dump the new field.
14587 (should_scalarize_away_bitmap): New variable.
14588 (cannot_scalarize_away_bitmap): Likewise.
14589 (sra_initialize): Allocate new bitmaps.
14590 (sra_deinitialize): Free new bitmaps.
14591 (create_access_1): New function.
14592 (create_access): Parts moved to create_access_1.
14593 (type_consists_of_records_p): New function.
14594 (completely_scalarize_record): Likewise.
14595 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
14596 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
14597 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
14599 (analyze_all_variable_accesses): Completely scalarize small eligible
14602 2010-01-21 Martin Jambor <mjambor@suse.cz>
14604 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
14606 2010-01-21 Andrew Haley <aph@redhat.com>
14608 * gcc.c (process_command): Move lang_specific_driver before
14609 setting cc_libexec_prefix.
14611 2010-01-21 Richard Guenther <rguenther@suse.de>
14613 PR middle-end/19988
14614 * fold-const.c (negate_expr_p): Pretend only negative
14615 real constants are easily negatable.
14617 2010-01-20 Janis Johnson <janis187@us.ibm.com>
14618 Jason Merrill <jason@redhat.com>
14620 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
14621 (TYPE_TRANSPARENT_AGGR): this, for union and record.
14622 * calls.c (initialize argument_information): Handle it.
14623 * c-common.c (handle_transparent_union_attribute): Use new name.
14624 * c-decl.c (finish_struct): Ditto.
14625 * c-typeck.c (type_lists_compatible_p): Ditto.
14626 (convert_for_assignment): Use new name and also handle record.
14627 * function.c (aggregate_value_p): Handle it.
14628 (pass_by_reference): Ditto.
14629 (assign_parm_data_types): Ditto.
14630 * print-tree.c (print_node): Ditto.
14631 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
14632 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
14633 * tree.c (first_field): New fn.
14635 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
14638 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
14639 even when linking statically, for now.
14641 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
14644 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
14645 without a cselib val.
14646 (count_uses): Accept MO_VAL_SET with no val on stores.
14647 (add_stores): Likewise.
14649 2010-01-20 Jakub Jelinek <jakub@redhat.com>
14651 * var-tracking.c (check_value_val): Add a compile time assertion.
14652 (dv_is_decl_p): Simplify.
14653 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
14654 gcc_assert if ENABLE_CHECKING.
14656 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
14659 * var-tracking.c: Include tree-flow.h.
14660 (mem_dies_at_call): New.
14661 (dataflow_set_preserve_mem_locs): Use it.
14662 (dataflow_set_remove_mem_locs): Likewise.
14663 (dump_var): Renamed from dump_variable. Adjust all callers.
14664 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
14665 * Makefile.in (var-tracking.o): Adjust deps.
14667 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
14669 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
14671 2010-01-20 Richard Guenther <rguenther@suse.de>
14673 PR tree-optimization/42717
14674 * tree-ssa-dce.c (get_live_post_dom): Remove.
14675 (forward_edge_to_pdom): Take an arbitrary edge to copy
14676 degenerate PHI args from.
14677 (remove_dead_stmt): Use the first post-dominator even if it
14678 does not contain live statements as redirection destination.
14680 2010-01-20 Richard Guenther <rguenther@suse.de>
14682 * tree-inline.c (estimate_num_insns): Handle EH builtins.
14684 2010-01-20 Jakub Jelinek <jakub@redhat.com>
14686 * sel-sched.c (create_speculation_check): Remove set but not used
14688 (try_transformation_cache): Remove set but not used variable ds.
14689 (calculate_privileged_insns): Remove set but not used variables
14690 cur_insn and min_spec_insn.
14691 (find_best_expr): Remove set but not used variable avail_n.
14692 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
14694 * cgraphunit.c (assemble_thunk): Remove set but not used variable
14696 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
14697 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
14698 new_scop_exit_edge.
14700 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
14703 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
14704 cpu types. Add support for *-sse3 cpu types.
14705 (x86_64-*-*): Ditto.
14707 2010-01-20 Jakub Jelinek <jakub@redhat.com>
14709 PR middle-end/42803
14710 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
14711 argument, call initializer_constant_valid_p_1 instead of
14712 initializer_constant_valid_p, pass CACHE to it, return NULL
14713 immediately if first call returns NULL.
14714 (initializer_constant_valid_p_1): New function.
14715 (initializer_constant_valid_p): Use it.
14717 2010-01-20 Thomas Quinot <quinot@adacore.com>
14719 * tree.def (PLACEHOLDER_EXPR): Fix comment.
14721 2010-01-20 Jakub Jelinek <jakub@redhat.com>
14723 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
14724 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
14725 (loc_list_from_tree): Don't handle unsigned division. Handle
14726 signed modulo using DW_OP_{over,over,div,mul,minus}.
14727 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
14728 modulo instead of signed.
14730 2010-01-20 DJ Delorie <dj@redhat.com>
14732 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
14734 (h8300_emit_stack_adjustment): Propogate it.
14736 (h8300_expand_prologue): Likewise.
14737 (h8300_expand_epilogue): Likewise.
14739 2010-01-19 Michael Matz <matz@suse.de>
14741 PR tree-optimization/41783
14742 * tree-data-ref.c (toplevel): Include flags.h.
14743 (dump_data_dependence_relation): Also dump the inputs if the
14744 result will be unknown.
14745 (split_constant_offset_1): Look through some conversions.
14746 * tree-predcom.c (determine_roots_comp): Restart a new chain if
14747 the offset from last element is too large.
14748 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
14749 (reassociate_to_the_same_stmt): Handle vector registers.
14750 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
14751 (e.g. conversions).
14752 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
14753 wide_prolog_niters argument, emit widening instructions.
14754 (vect_do_peeling_for_alignment): Adjust caller, use widened
14755 variant of the iteration cound.
14756 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
14758 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14761 * config/arm/neon-testgen.m (emit_automatics): New parameter
14762 features. Adjust for Fixed_return_reg feature.
14763 (test_intrinsic): Call emit_automatics with new feature.
14764 * config/arm/neon.ml: Update copyright years.
14765 (features): New Fixed_return_reg feature.
14766 (ops): Update feature for Vget_low.
14768 2010-01-19 Jakub Jelinek <jakub@redhat.com>
14770 PR tree-optimization/42719
14771 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
14775 * fwprop.c (all_uses_available_at): Return false if def_set dest
14776 is a REG that is used in def_insn.
14778 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
14780 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
14782 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
14783 Add argument names.
14785 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
14787 * target.h (struct gcc_target) <secondary_reload>: Change type
14788 of last argument to secondary_reload_info *.
14790 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
14793 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
14794 memory references with unaligned offsets. Remove CQImode handling.
14795 (unaligned_memory_operand): Return 1 for memory references with
14796 unaligned offsets. Remove CQImode handling.
14798 2010-01-18 Richard Guenther <rguenther@suse.de>
14800 PR middle-end/39954
14801 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
14804 2010-01-18 Richard Guenther <rguenther@suse.de>
14806 PR tree-optimization/42781
14807 * tree-ssa-structalias.c (find_what_var_points_to): Skip
14808 restrict processing only if the original variable was artificial.
14810 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
14812 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
14813 find number of popped argument bytes.
14815 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
14816 Fix the text that describes the return value for invalid insns.
14818 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
14820 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
14821 Clarify what 'cost of the -dependence' is. Fix quoting.
14823 * toplev.c (default_get_pch_validity): Rename argument to "sz".
14824 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
14826 2010-01-17 Jakub Jelinek <jakub@redhat.com>
14828 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
14829 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
14831 2010-01-17 Richard Guenther <rguenther@suse.de>
14833 PR middle-end/42248
14834 * function.c (split_complex_args): Take a VEC to modify.
14835 (assign_parms_augmented_arg_list): Build a VEC instead of
14836 a chain of PARM_DECLs.
14837 (assign_parms_unsplit_complex): Take a VEC of arguments.
14838 Do not fixup unmodified parms.
14839 (assign_parms): Deal with the VEC.
14840 (gimplify_parameters): Likewise.
14842 2010-01-17 Richard Guenther <rguenther@suse.de>
14844 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
14845 node existence check.
14846 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
14847 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
14848 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
14849 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
14850 (gimple_execute_on_growing_pred): Likewise.
14852 2010-01-17 Richard Guenther <rguenther@suse.de>
14854 PR tree-optimization/42773
14855 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
14856 (compute_antic_aux): Likewise.
14857 (compute_partial_antic_aux): Likewise.
14859 2010-01-17 Jie Zhang <jie.zhang@analog.com>
14862 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
14865 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
14867 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
14870 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
14871 Fix markup for strict argument.
14873 (TARGET_SCHED_REORDER2): Fix argument types.
14875 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
14876 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
14878 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
14879 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
14881 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
14884 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
14885 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
14886 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
14887 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
14888 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
14890 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
14892 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
14894 (TARGET_ASM_RELOC_RW_MASK): Add return type.
14895 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
14897 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
14899 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
14902 (TARGET_ASM_NAMED_SECTION): Fix argument list.
14904 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
14905 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
14907 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
14909 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
14911 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
14912 referring to it. Fix language.
14914 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
14916 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
14918 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
14920 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
14922 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
14923 '@var{stream}. Remove stray 'and'.
14925 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
14927 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
14929 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
14931 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
14932 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
14934 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
14935 Fix description of return value.
14936 Rename argument "sz" to "len."
14938 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
14939 Clarify meaning of 'true' return value.
14941 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
14943 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
14944 rep_mode versus mode_rep.
14946 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
14948 (TARGET_BUILTIN_DECL): Fix name.
14950 (TARGET_COMMUTATIVE_P): Fix type of first argument.
14952 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
14954 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
14956 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
14958 (TARGET_RELAXED_ORDERING): Use @deftypevr.
14960 (TARGET_GET_DRAP_RTX): Note that this is a hook.
14963 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
14964 Rename argument tm_fn to md_fn.
14966 (TARGET_OPTION_PRINT): Fix argument list.
14968 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
14971 * config/i386/i386.c (ix86_fixup_binary_operands):
14972 Revert FMA4 fixup of operands.
14974 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14977 * Makefile.in (write_entries_to_file, install-plugin):
14978 Use \012 instead of \n with tr.
14980 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
14982 * configure.ac (HAVE_AS_REF): New C macro.
14983 * configure: Regenerate.
14984 * config.in: Likewise.
14985 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
14987 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
14990 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
14992 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
14994 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
14996 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
14998 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
15000 (TARGET_IN_SMALL_DATA_P): Fix argument type.
15002 (TARGET_BINDS_LOCAL_P): Fix argument type.
15004 (TARGET_ASM_FILE_END): Use prototype.
15006 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
15008 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
15010 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
15012 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
15014 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
15015 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
15017 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
15018 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
15020 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
15021 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
15022 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
15023 (TARGET_ADDR_SPACE_CONVERT): Likewise.
15025 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
15027 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
15029 (TARGET_INIT_BUILTINS): Use prototype.
15031 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
15032 Put 'const char *' in braces. Fix parameter types.
15033 (TARGET_INVALID_CONVERSION): Fix parameter types.
15034 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
15035 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
15037 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
15040 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
15042 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
15044 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
15046 * doc/tm.texi (TARGET_HELP): Fix return type.
15048 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
15049 in braces. Fix argument types.
15051 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
15053 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
15055 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
15057 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
15058 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
15060 (TARGET_MANGLE_TYPE): Fix argument types.
15062 (TARGET_IRA_COVER_CLASSES): Use prototype.
15064 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
15066 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
15068 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
15070 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
15072 (TARGET_CALLEE_COPIES): Fix argument types.
15074 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
15076 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
15078 (TARGET_FUNCTION_VALUE): Fix argument types.
15080 (TARGET_RETURN_IN_MSB): Fix argument type.
15082 (TARGET_RETURN_IN_MEMORY): Fix argument types.
15084 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
15086 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
15088 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
15089 agree with return type.
15091 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
15093 2010-01-15 Jing Yu <jingyu@google.com>
15095 PR rtl-optimization/42691
15096 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
15097 a pseudo to a constant and are merged, and adjust comments.
15099 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
15101 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
15103 2010-01-15 Richard Guenther <rguenther@suse.de>
15105 PR middle-end/42739
15106 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
15107 labels of computed or non-local gotos to the destination.
15108 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
15109 landing pad label is the first label.
15111 2010-01-15 Richard Guenther <rguenther@suse.de>
15113 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
15115 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
15118 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
15119 to allow generation of the xssqrtdp instruction on power7.
15120 (sqrtdf2_fpr): Ditto.
15122 2010-01-14 Jakub Jelinek <jakub@redhat.com>
15124 PR middle-end/42674
15125 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
15126 functions with noreturn attribute.
15129 * varasm.c (declare_weak): Add weak attribute to decl if it
15130 doesn't have one already.
15131 (assemble_external): Only add decls to weak_decls if they also
15132 have weak attribute.
15134 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
15136 * var-tracking.c (var_reg_delete): Don't delete the association
15137 between REGs and values or one-part variables if the register
15140 2010-01-14 Jakub Jelinek <jakub@redhat.com>
15143 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
15144 because its first operand is a non-localized variable.
15146 2010-01-14 Martin Jambor <mjambor@suse.cz>
15148 PR tree-optimization/42706
15149 * tree-sra.c (encountered_recursive_call): New variable.
15150 (encountered_unchangable_recursive_call): Likewise.
15151 (sra_initialize): Initialize both new variables.
15152 (callsite_has_enough_arguments_p): New function.
15153 (scan_function): Call decl and flags check only for IPA-SRA, check
15154 whether there is a recursive call and whether it has enough arguments.
15155 (all_callers_have_enough_arguments_p): New function.
15156 (convert_callers): Look for recursive calls only when
15157 encountered_recursive_call is set.
15158 (ipa_early_sra): Bail out either if
15159 !all_callers_have_enough_arguments_p or
15160 encountered_unchangable_recursive_call.
15162 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15164 * sel-sched.c: Add 2010 to copyright years.
15165 * sel-sched-ir.c: Likewise.
15166 * sel-sched-ir.h: Likewise.
15168 2010-01-14 Martin Jambor <mjambor@suse.cz>
15170 PR tree-optimization/42714
15171 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
15172 constructors specially.
15174 2010-01-14 Andi Kleen <ak@linux.intel.com>
15176 * config/i386/drivers-i386.c (detect_caches_intel):
15177 Add l2sizekb parameter and fill in.
15178 (host_detect_local_cpu): Add l2sizekb, fill in.
15179 Add Atom small cache heuristic.
15181 2010-01-14 Andi Kleen <ak@linux.intel.com>
15183 * config/i386/drivers-i386.c (detect_caches_cpuid4):
15184 Add level3 parameter and fill in.
15185 (detect_caches_intel): Handle level3 cache.
15187 2010-01-14 Andi Kleen <ak@linux.intel.com>
15189 * config/i386/drivers-i386.c (host_detect_local_cpu):
15190 Fix core duo detection.
15192 2010-01-14 Andi Kleen <ak@linux.intel.com>
15194 * config/i386/drivers-i386.c (host_detect_local_cpu):
15195 Fix Atom detection.
15197 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15199 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
15200 (rs6000_variable_issue_1): this. Use...
15201 (rs6000_variable_issue): here. Reimplement. Print debug info.
15203 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15205 * sel-sched-ir.c (sel_restore_other_notes): Rename to
15206 sel_restore_notes. Update all callers. Call reemit_notes
15209 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15211 PR rtl-optimization/42246
15212 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
15215 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15217 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
15218 all successors is the same as number of successors in current region.
15220 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15222 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
15223 to rename is not separable. Otherwise check that its LHS is not NULL.
15225 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15227 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
15229 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15231 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
15232 available registers when failed to discover LHS register class.
15233 Fix indentation. Update comment.
15235 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15236 Alexander Monakov <amonakov@ispras.ru>
15238 PR rtl-optimization/42389
15239 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
15241 (advance_state_on_fence): Likewise.
15242 (sel_target_adjust_priority): Print debug output only when
15243 sched_verbose >= 4, not 2.
15244 (get_expr_cost): Do not issue all unique insns on the next cycle.
15245 (fill_insns): Initialize can_issue_more from the value saved
15247 * sel-sched-ir.c (flist_add): New parameter issue_more.
15248 Init FENCE_ISSUE_MORE with it.
15249 (merge_fences): Likewise.
15250 (init_fences): Update call to flist_add.
15251 (add_to_fences, add_clean_fence_to_fences)
15252 (add_dirty_fence_to_fences): Likewise.
15253 (move_fence_to_fences): Update call to merge_fences.
15254 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
15256 * sel-sched-ir.h (struct _fence): New field issue_more.
15257 (FENCE_ISSUE_MORE): New accessor macro.
15259 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15261 PR rtl-optimization/42388
15262 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
15263 that have no predecessors nor successors. Do not call move_bb_info
15264 for empty blocks outside of current region.
15266 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15268 PR rtl-optimization/42294
15269 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
15270 * sel-sched.c (move_exprs_to_boundary): Transitively add all
15271 originators' originators.
15273 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15275 PR rtl-optimization/39453
15276 PR rtl-optimization/42246
15277 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
15279 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
15281 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15282 Alexander Monakov <amonakov@ispras.ru>
15284 PR middle-end/42245
15285 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
15286 (maybe_tidy_empty_bb): ... here. Make static. Add new
15287 argument. Update all callers.
15288 (tidy_control_flow): ... and here. Recompute topological order
15289 of basic blocks in region if necessary.
15290 (sel_redirect_edge_and_branch): Change return type. Return true
15291 if topological order might have been invalidated.
15292 (purge_empty_blocks): Export and move from...
15293 * sel-sched.c (purge_empty_blocks): ... here.
15294 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
15295 (maybe_tidy_empty_bb): Delete prototype.
15296 (purge_empty_blocks): Declare.
15298 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15300 PR rtl-optimization/42249
15301 * sel-sched.c (try_replace_dest_reg): When chosen register
15302 and original register is the same, do not bail out early, but
15303 still check all original insns for validity of replacing destination
15304 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
15307 2010-01-14 Jakub Jelinek <jakub@redhat.com>
15310 Port from no-undefined-overflow branch:
15311 2009-03-09 Richard Guenther <rguenther@suse.de>
15313 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
15315 2010-01-14 Richard Guenther <rguenther@suse.de>
15318 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
15320 2010-01-14 Ira Rosen <irar@il.ibm.com>
15322 PR tree-optimization/42709
15323 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
15324 as scalar type in creation of constant vector operand.
15326 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15329 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
15330 (check-parallel-%): Match `testsuite' directory component only
15333 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
15335 PR translation/39521
15336 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
15339 2010-01-13 Richard Guenther <rguenther@suse.de>
15341 PR tree-optimization/42730
15342 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
15345 2010-01-13 Steve Ellcey <sje@cup.hp.com>
15348 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
15349 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
15352 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
15354 * config/bfin/libgcc-bfin.ver: Regenerate based on current
15355 libgcc-std.ver. Add entries for ___smulsi3_highpart and
15356 ___umulsi3_highpart.
15358 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
15359 rather than schedule_insns if the pass is enabled.
15361 2010-01-13 Martin Jambor <mjambor@suse.cz>
15363 PR tree-optimization/42704
15364 * tree-sra.c (sra_modify_assign): Do not delete assignments to
15367 2010-01-13 Martin Jambor <mjambor@suse.cz>
15369 PR tree-optimization/42703
15370 * tree-sra.c (analyze_access_subtree): Check that we can build a
15371 reference to the original data within the aggregate.
15373 2010-01-13 Richard Guenther <rguenther@suse.de>
15375 PR tree-optimization/42705
15376 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
15378 2010-01-13 Richard Guenther <rguenther@suse.de>
15380 PR middle-end/42716
15381 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
15383 2010-01-13 Jakub Jelinek <jakub@redhat.com>
15386 * var-tracking.c (values_to_unmark): New variable.
15387 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
15388 values_to_unmark vector. Moved body to...
15389 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
15390 instead queue it into values_to_unmark vector.
15391 (vt_find_locations): Free values_to_unmark vector.
15393 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
15395 * config/s390/s390.c (override_options): Set
15396 default of max-pending-list-length to 256
15398 2010-01-13 Richard Guenther <rguenther@suse.de>
15401 * tree-pass.h (PROP_gimple_lcx): New.
15402 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
15403 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
15404 before the final cleanup_eh.
15405 (dump_properties): Dump PROP_gimple_lcx.
15406 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
15407 (tree_lower_complex_O0): Remove.
15408 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
15409 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
15410 tree_lower_complex, schedule TODO_update_ssa.
15411 * lto-streamer-out.c (output_function): Stream the functions
15413 * lto-streamer-in.c (input_function): Likewise.
15414 (lto_read_body): Do not override them here.
15416 2010-01-12 Joseph Myers <joseph@codesourcery.com>
15419 * c-typeck.c (build_c_cast): Fold value cast to union type before
15420 wrapping it in a CONSTRUCTOR.
15422 2010-01-12 Jakub Jelinek <jakub@redhat.com>
15424 PR rtl-optimization/42699
15425 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
15428 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15430 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
15431 SUBTARGET_WARN_UNUSED_SPEC): Move ...
15432 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
15433 SUBTARGET_WARN_UNUSED_SPEC): ... here
15434 * config/mips/iris5.h (LIBGCC_SPEC): Define.
15436 2010-01-12 Julian Brown <julian@codesourcery.com>
15438 * config/arm/neon-schedgen.ml (Utils): Don't try to
15439 open missing module.
15440 (find_with_result): New.
15442 2010-01-12 Jakub Jelinek <jakub@redhat.com>
15445 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
15446 sharing when canonicalizing ({lt,ge}u (plus a b) b).
15448 PR tree-optimization/42645
15449 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
15450 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
15451 decl_map, set processing_debug_stmt to -1 and return name without
15454 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
15456 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
15457 binutils version, and reword target configuration description.
15459 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
15461 * config/avr/avr.h (LINKER_NAME): Remove.
15463 2010-01-11 Janis Johnson <janis187@us.ibm.com>
15466 * config/rs6000/rs6000.c (rs6000_override_options): On targets
15467 that support VSX, warn for -mno-altivec if vsx is not disabled,
15470 2010-01-11 Joseph Myers <joseph@codesourcery.com>
15471 Shujing Zhao <pearly.zhao@oracle.com>
15473 PR translation/42469
15474 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
15475 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
15476 character between option name and help text.
15477 * c.opt (imultilib): Likewise.
15479 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
15481 * lto-streamer-out.c (output_unreferenced_globals): Output static
15484 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
15486 PR rtl-optimization/42621
15487 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
15488 optimizing for size.
15489 (duplicate_computed_gotos): Remove now-redundant check.
15491 2010-01-10 Steve Ellcey <sje@cup.hp.com>
15494 * configure.ac: Save and restore LDFLAGS and LIBS
15495 * configure: Regenerate.
15497 2010-01-10 Richard Guenther <rguenther@suse.de>
15499 PR middle-end/42667
15500 * builtins.c (fold_builtin_strlen): Add type argument and
15501 convert the resulting length to it.
15502 (fold_builtin_1): Adjust.
15504 2010-01-09 Jakub Jelinek <jakub@redhat.com>
15506 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
15507 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
15509 (num_insns_constant_wide): Adjust for that change.
15511 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15514 * web.c (union_defs): Add used argument, to combine uses of
15515 uninitialized regs.
15516 (entry_register): Adjust type and tests of used argument.
15517 (web_main): Widen used for new use. Pass it to union_defs.
15518 * df.h (union_defs): Adjust prototype.
15520 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15523 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
15524 uses in new incoming argument. Free body.
15525 (reset_debug_uses_in_loop): New.
15526 (analyze_insn_to_expand_var): Call the latter if the former found
15527 anything. Fix whitespace. Reject invalid dest overlaps before
15528 going through all insns in the loop.
15530 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15533 * haifa-sched.c (dying_use_p): Debug insns don't count.
15535 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15537 PR middle-end/42363
15538 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
15539 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
15540 (verify_gimple_call): Reject LHS in noreturn calls.
15542 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15546 * tree-vect-loop-manip.c (adjust_info): New type.
15547 (adjust_vec): New pointer to vector.
15548 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
15549 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
15550 (slpeel_update_phis_for_duplicate_loop): Use them.
15551 (slpeel_update_phi_nodes_for_guard1): Likewise.
15552 (slpeel_update_phi_nodes_for_guard2): Likewise.
15553 (slpeel_tree_peel_loop_to_edge): Likewise.
15554 (vect_update_ivs_after_vectorizer): Likewise.
15556 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15558 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
15559 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
15561 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15563 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
15564 bogus uninitialized warning.
15566 2010-01-09 Richard Guenther <rguenther@suse.de>
15568 PR middle-end/42512
15569 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
15570 the evolution is compatible with the initial condition.
15572 2010-01-09 Jakub Jelinek <jakub@redhat.com>
15574 * gcc.c (process_command): Update copyright notice dates.
15575 * gcov.c (print_version): Likewise.
15576 * gcov-dump.c (print_version): Likewise.
15577 * mips-tfile.c (main): Likewise.
15578 * mips-tdump.c (main): Likewise.
15580 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
15583 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
15585 (rotlhi3_8): Delete.
15587 (rotlsi3_8): Delete.
15588 (rotlsi3_16): Delete.
15589 (rotlsi3_24): Delete.
15590 (rotl<mode>3): New.
15591 (*rotw<mode>3): New.
15592 (*rotb<mode>3): New.
15593 * config/avr/avr.c (avr_rotate_bytes): New function.
15594 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
15596 2010-01-08 Steve Ellcey <sje@cup.hp.com>
15599 * configure.ac: Modify -rdynamic check.
15600 * configure: Regenerate.
15602 2010-01-08 DJ Delorie <dj@redhat.com>
15604 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
15605 register popping order.
15607 2010-01-08 Richard Guenther <rguenther@suse.de>
15610 * c.opt (fsigned-char): Also let LTO handle this option.
15611 (funsigned-char): Likewise.
15613 2010-01-07 Richard Guenther <rguenther@suse.de>
15615 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
15616 (gimple_op): Likewise.
15617 (gimple_op_ptr): Likewise.
15618 (gimple_assign_set_lhs): Remove gcc_assert.
15619 (gimple_assign_set_rhs1): Likewise.
15620 (gimple_assign_set_rhs2): Likewise.
15621 (gimple_call_set_lhs): Likewise.
15622 (gimple_call_set_fn): Likewise.
15623 (gimple_call_set_fndecl): Likewise.
15624 (gimple_call_fndecl): Likewise.
15625 (gimple_call_return_type): Likewise.
15626 (gimple_call_set_chain): Likewise.
15627 (gimple_call_num_args): Likewise.
15628 (gimple_call_set_arg): Likewise.
15629 (gimple_cond_set_code): Likewise.
15630 (gimple_cond_set_lhs): Likewise.
15631 (gimple_cond_set_rhs): Likewise.
15632 (gimple_cond_set_true_label): Likewise.
15633 (gimple_cond_set_false_label): Likewise.
15634 (gimple_label_set_label): Likewise.
15635 (gimple_goto_set_dest): Likewise.
15636 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
15637 (gimple_debug_bind_get_value): Likewise.
15638 (gimple_debug_bind_get_value_ptr): Likewise.
15639 (gimple_debug_bind_set_var): Likewise.
15640 (gimple_debug_bind_set_value): Likewise.
15641 (gimple_debug_bind_reset_value): Likewise.
15642 (gimple_debug_bind_has_value_p): Likewise.
15643 (gimple_return_retval_ptr): Remove gcc_assert.
15644 (gimple_return_retval): Likewise.
15645 (gimple_return_set_retval): Likewise.
15646 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
15647 (safe_referenced_var_iterator): Remove.
15648 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
15649 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
15650 (fill_referenced_var_vec): Remove.
15651 (first_readonly_imm_use): Remove redundant gcc_assert.
15652 (phi_arg_index_from_use): Combine gcc_asserts.
15653 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
15654 (first_imm_use_stmt): Remove redundant gcc_assert.
15655 * tree-cfg.c (verify_gimple_call): Verify function and chain
15656 operands. Verify arguments.
15657 (verify_types_in_gimple_stmt): Verify condition code and labels.
15659 2010-01-07 Richard Guenther <rguenther@suse.de>
15661 PR tree-optimization/42641
15662 * sese.c (rename_map_elt_info): Use the SSA name version, do
15665 2010-01-07 Jakub Jelinek <jakub@redhat.com>
15667 PR tree-optimization/42625
15668 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
15669 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
15671 2010-01-07 Duncan Sands <baldrick@free.fr>
15673 * Makefile.in (PLUGIN_HEADERS): Add version.h.
15675 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
15678 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
15679 note itself is not function_invariant_p.
15681 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
15683 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
15684 Do not add the DF_NOTE problem.
15685 * store-motion.c (execute_rtl_store_motion): Likewise.
15687 2010-01-07 Martin Jambor <mjambor@suse.cz>
15689 PR tree-optimization/42157
15690 * tree-sra.c (compare_access_positions): Stabilize sort if both
15691 accesses have integer types, return zero immediately if they are the
15694 2010-01-06 Richard Henderson <rth@redhat.com>
15696 PR middle-end/41883
15697 * haifa-sched.c (add_to_note_list): Merge into ...
15698 (concat_note_lists): ... here, and ...
15699 (unlink_other_notes, rm_other_notes): Merge into...
15700 (remove_notes): ... here. Create REG_SAVE_NOTEs for
15701 NOTE_INSN_EPILOGUE_BEG.
15703 2010-01-06 Richard Guenther <rguenther@suse.de>
15705 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
15706 not inline regular functions into always-inline functions.
15708 2010-01-06 Nick Clifton <nickc@redhat.com>
15710 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
15711 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
15713 (OVERRIDE_OPTIONS): Delete.
15714 (OPTIMIZATION_OPTIONS): Define.
15715 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
15716 * config/rx/rx.c (rx_handle_option): Issue an error message if
15717 -mcpu=rx200 and -fpu are used together.
15718 (rx_set_optimization_options): New function. Issue an error
15719 message if an optimization attribute attempts to reset the FPU/
15720 math optimization pairing.
15721 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
15722 * config/rx/rx.opt: Set the default to 32-bit doubles.
15723 * config/rx/t-rx: Add multilibs for -nofpu option.
15724 * doc/invoke.texi: Update documentation of RX options.
15726 2010-01-06 Richard Guenther <rguenther@suse.de>
15728 * tree-ssa-pre.c (name_to_id): New global.
15729 (alloc_expression_id): Simplify SSA name handling.
15730 (lookup_expression_id): Likewise.
15731 (init_pre): Zero name_to_id.
15732 (fini_pre): Free it.
15734 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
15736 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
15738 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
15741 * config/i386/sse.md (smaxv2di3): New.
15742 (umaxv2di3): Likewise.
15743 (sminv2di3): Likewise.
15744 (uminv2di3): Likewise.
15746 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
15749 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
15750 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
15751 (legitimize_tls_address): Likewise.
15752 (sparc_tls_referenced_p): Likewise.
15753 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
15754 and adjust calls to legitimize_pic_address.
15755 (legitimate_constant_p) Use sparc_tls_referenced_p.
15756 (legitimate_pic_operand_p): Likewise.
15757 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
15758 (sparc_tls_symbol_ref_1): Delete.
15759 (sparc_tls_referenced_p): Make static, recognize specific patterns.
15760 (legitimize_tls_address): Make static, handle CONST patterns.
15761 (legitimize_pic_address): Make static, remove unused parameter and
15762 adjust recursive calls.
15763 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
15764 and adjust call to legitimize_pic_address.
15765 (sparc_output_mi_thunk): Likewise.
15767 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
15768 H.J. Lu <hongjiu.lu@intel.com>
15771 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
15772 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
15773 operands to make them signed.
15776 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
15779 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
15780 GTU to GT for V4SI and V2DI.
15782 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
15783 (umin<mode>3): Removed.
15785 (uminv4si3): Likewise.
15787 2010-01-05 Martin Jambor <mjambor@suse.cz>
15789 PR tree-optimization/42462
15790 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
15791 current_function_decl to helper functions and macros.
15793 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15796 * flags.h: Don't include real.h.
15797 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
15798 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
15799 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
15800 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
15801 * dominance.c: Update copyright.
15802 * gimple.c (walk_gimple_op): Remove inline.
15803 * tree-ssa-reassoc.c: Include real.h.
15804 * Makefile.in (FLAGS_H): Remove $(REAL_H).
15805 (tree-ssa-reassoc.o): Depend on $(REAL_H).
15807 2010-01-05 Nick Clifton <nickc@redhat.com>
15809 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
15810 register to push into the stack frame when the accumulator has to
15811 be saved during interrupts.
15813 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
15815 * doc/invoke.texi: Remove the documentation about option
15816 -Wunreachable-code.
15817 * common.opt (Wunreachable-code): Preserved for backward
15819 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
15820 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
15821 the backward compatibility flag section.
15823 2010-01-05 Richard Guenther <rguenther@suse.de>
15825 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
15827 2010-01-05 Jakub Jelinek <jakub@redhat.com>
15830 * cfgexpand.c (expand_one_var): Diagnose too large variables.
15832 PR tree-optimization/42508
15833 * tree-sra.c (convert_callers): Check for recursive call
15834 by comparing cgraph nodes instead of decls.
15835 (modify_function): Call ipa_modify_formal_parameters also
15836 on all same_body aliases.
15838 * cgraphunit.c (cgraph_materialize_all_clones): Compare
15839 cgraph nodes when checking for same_body aliases.
15841 2010-01-05 Richard Guenther <rguenther@suse.de>
15843 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
15844 allocation and lookup.
15845 (get_or_alloc_expr_for_constant): Likewise.
15846 (phi_translate): Sink allocation.
15848 2010-01-04 Richard Guenther <rguenther@suse.de>
15850 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
15851 a new entry only if needed.
15852 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
15853 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
15855 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
15857 (phi_translate): Handle CONSTANTs early.
15859 2010-01-04 Martin Jambor <mjambor@suse.cz>
15861 PR tree-optimization/42398
15862 * tree-sra.c (struct access): Removed flag grp_different_types.
15863 (dump_access): Do not dump the removed flag.
15864 (sort_and_splice_var_accesses): Do not set the removed flag.
15865 (sra_modify_expr): Check for type compatibility directly.
15867 2010-01-04 Martin Jambor <mjambor@suse.cz>
15869 PR tree-optimization/42366
15870 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
15871 edges with variable number of parameters.
15872 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
15873 flag instead of asserting it.
15874 (ipa_read_node_info): Read uses_analysis_done flag.
15876 2010-01-04 Richard Guenther <rguenther@suse.de>
15878 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
15879 iterative_hash_* as intended.
15880 (vn_reference_compute_hash): Likewise. Simplify hashing
15882 (vn_reference_lookup_2): Likewise.
15883 (vn_nary_op_compute_hash): Likewise.
15884 (vn_phi_compute_hash): Likewise.
15885 (expressions_equal_p): Remove strange code.
15886 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
15887 (pre_expr_hash): Likewise. Simplify hashing SSA names.
15888 (bitmap_insert_into_set_1): Take value-id as parameter.
15889 (add_to_value): Pass it.
15890 (bitmap_insert_into_set): Likewise.
15891 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
15893 2010-01-04 Jakub Jelinek <jakub@redhat.com>
15896 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
15897 (do_self_spec): For switches with SWITCH_IGNORE set set also
15898 SWITCH_IGNORE_PERMANENTLY.
15899 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
15902 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
15904 * lto-streamer-out.c (output_unreferenced_globals): Output the full
15905 tree of an unreferenced global var.
15907 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
15910 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
15911 GTU to GT for V4SI and V2DI.
15913 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
15914 (umin<mode>3): Removed.
15916 (uminv4si3): Likewise.
15918 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
15921 * collect2.c (main): Turn on trace in collect2 if -v is passed
15924 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
15926 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
15927 description of expression operand.
15929 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
15931 * configure.ac: Add install-html to target_list for Make-hooks.
15932 * configure: Regenerate.
15933 * fortran/Make-lang.in (F95_HTMLFILES): New.
15934 (fortran.html): Use it.
15935 (fortran.install-html): New.
15936 * Makefile.in (install-html): Add lang.install-html.
15937 * java/Make-lang.in (JAVA_HTMLFILES): New.
15938 (java.html): Use it.
15939 (java.install-html): New.
15940 * objc/Make-lang.in (objc.install-html): New.
15941 * objcp/Make-lang.in (obj-c++.install-html): New.
15942 * cp/Make-lang.in (c++.install-html): New.
15943 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
15944 * lto/Make-lang.in (lto.install-html): New.
15946 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
15949 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
15951 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
15953 PR rtl-optimization/41862
15954 * store-motion.c (store_killed_in_insn, compute_store_table,
15955 remove_reachable_equiv_notes, replace_store_insn,
15956 build_store_vectors): Ignore all DEBUG_INSNs.
15958 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
15961 * common.opt: Add dumpdir.
15963 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
15965 (option_map): Add --dumpdir.
15967 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
15969 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
15971 * opts.c (decode_options): Try dump_dir_name first if
15972 dump_base_name isn't an absolute path.
15973 (common_handle_option): Handle OPT_dumpdir.
15975 * toplev.c (dump_dir_name): New.
15976 (print_switch_values): Also ignore -dumpdir.
15978 * toplev.h (dump_dir_name): New.
15980 2010-01-03 Richard Guenther <rguenther@suse.de>
15982 PR tree-optimization/42589
15983 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
15984 double-word expansion of bswap32.
15986 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
15988 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
15989 with BLOCK_FOR_INSN.
15990 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
15991 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
15992 noce_process_if_block): Likewise.
15993 * gcse.c (compute_local_properties, insert_expr_in_table,
15994 insert_set_in_table, canon_list_insert, find_avail_set,
15995 pre_insert_copy_insn): Likewise.
15997 * basic-block.h (BLOCK_NUM): Move from here...
15998 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
16000 2010-01-03 Richard Guenther <rguenther@suse.de>
16002 PR tree-optimization/42438
16003 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
16004 contains_may_not_return_call flag.
16005 (BB_MAY_NOTRETURN): New.
16006 (valid_in_sets): Trapping nary operations are not valid
16007 in blocks that may not return.
16008 (insert_into_preds_of_block): Remove check for trapping expressions.
16009 (compute_avail): Compute also BB_MAY_NOTRETURN.
16011 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
16013 * doc/invoke.texi: Add 2010 to copyright years.
16015 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
16017 * config/sparc/sparc.c: Fix formatting nits.
16019 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
16020 Alexander Monakov <amonakov@ispras.ru>
16022 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
16024 2010-01-02 Richard Guenther <rguenther@suse.de>
16026 PR middle-end/42577
16027 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
16028 (simplify_switch_using_ranges): Mark to be removed edges
16031 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16033 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
16035 * collect2.c (scan_libraries): Add missing argument in call to
16038 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
16041 * config/alpha/predicates.md (aligned_memory_operand): Return false
16043 (unaligned_memory_operand): Return true for CQImode.
16044 * config/alpha/alpha.c (get_aligned_mem): Assert that location
16045 doesn not cross aligned SImode word boundary.
16047 2010-01-02 Anatoly Sokolov <aesok@post.ru>
16049 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
16051 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
16052 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
16054 2010-01-02 Richard Guenther <rguenther@suse.de>
16057 * toplev.c (compile_file): Emit LTO marker properly. Change
16058 it to __gnu_lto_v1.
16059 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
16061 2010-01-01 Richard Guenther <rguenther@suse.de>
16064 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
16066 2010-01-01 Richard Guenther <rguenther@suse.de>
16069 * c-decl.c (grokdeclarator): For zero-size arrays force
16070 structural equality checks as layout_type does.
16072 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
16074 * builtins.c: Update copyright to 2010.
16076 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
16079 * lto-streamer-out.c (produce_asm): Revert the last change.
16080 (copy_function): Likewise.
16082 * lto-streamer.c (lto_get_section_name): Skip any leading
16085 2010-01-01 Richard Guenther <rguenther@suse.de>
16087 PR middle-end/42559
16088 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
16092 Copyright (C) 2010 Free Software Foundation, Inc.
16094 Copying and distribution of this file, with or without modification,
16095 are permitted in any medium without royalty provided the copyright
16096 notice and this notice are preserved.