1 2010-05-17 Jakub Jelinek <jakub@redhat.com>
4 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
5 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
6 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
7 add BARRIER after previous bb if needed.
9 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
11 * tree.c (build_function_type_list_1): Remove bogus assert condition.
13 2010-05-17 Alan Modra <amodra@gmail.com>
15 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
16 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
17 with copy_reg rtx param.
18 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
19 Correct cases where code for ABI_V4 did not initialise the reg
20 used to access frame. Also leave frame_reg_rtx as sp for large
21 frames that save no regs.
23 2010-05-17 Martin Jambor <mjambor@suse.cz>
26 * tree-sra.c (create_access_replacement): New parameter rename, mark
27 the replaement for renaming only when it is true.
28 (get_access_replacement): Pass true in the rename parameter of
29 create_access_replacement.
30 (get_unrenamed_access_replacement): New function.
31 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
32 replacement declaration from it.
34 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
36 * function.c (try_fit_stack_local, add_frame_space): New static
38 (assign_stack_local_1): Use them. Look for opportunities to use
39 space previously wasted on alignment.
40 * function.h (struct frame_space): New.
41 (struct rtl_data): Add FRAME_SPACE_LIST member.
42 * reload1.c (something_was_spilled): New static variable.
44 (reload): Test it in addition to testing if the frame size changed.
46 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
48 * config/s390/s390.c: Define sane prefetch settings and activate
49 flag_prefetch_loop_arrays on -O3.
50 * config/s390/s390.h: Declare that read can use write prefetch.
52 2010-05-17 Jakub Jelinek <jakub@redhat.com>
54 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
57 2010-05-16 Jan Hubicka <jh@suse.cz>
59 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
60 function body; do not check stdarg field of struct function.
62 2010-05-16 Jan Hubicka <jh@suse.cz>
64 * cgraph.c (dump_cgraph_node): Dump versionable flag.
65 * cgraph.h (cgraph_local_info): Add versionable flag.
66 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
67 (ipcp_versionable_function_p): Use it.
68 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
71 2010-05-16 Jan Hubicka <jh@suse.cz>
73 * cgraph.c (cgraph_clone_node): Take decl argument and insert
74 clone into hash when it is different from orig.
75 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
76 * cgraph.h (cgraph_clone_node): Update prototype.
77 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
78 (lto_cgraph_encoder_delete): Delete body map.
79 (lto_cgraph_encoder_size): Move to header.
80 (lto_cgraph_encoder_encode_body_p,
81 lto_set_cgraph_encoder_encode_body): New.
82 (lto_output_node): Do not take written_decls argument; output clone_of
84 (add_node_to): Add include_body_argument; call
85 lto_set_cgraph_encoder_encode_body on master of the clone.
86 (add_references): Update use of add_node_to.
87 (compute_ltrans_boundary): Likewise.
88 (output_cgraph): Do not create written_decls bitmap.
89 (input_node): Take nodes argument; stream in clone_of correctly.
90 (input_cgraph_1): Update use of input_node.
91 * lto-streamer-out.c (lto_output): Use encoder info to decide
92 what bodies to output.
93 * ipa-inline.c (cgraph_clone_inlined_nodes,
94 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
95 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
96 (lto_cgraph_encoder_size): Define here.
97 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
100 2010-05-16 Richard Guenther <rguenther@suse.de>
102 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
104 * ipa-type-escape.c (gate_type_escape_vars): Run when
105 -fipa-struct-reorg runs.
106 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
107 * common.opt (fipa-type-escape): Remove.
109 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
111 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
112 (decode_options): Likewise.
113 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
115 2010-05-16 Jan Hubicka <jh@suse.cz>
117 * ipa.c (function_and_variable_visibility): Also bring local all
120 2010-05-16 Richard Guenther <rguenther@suse.de>
122 * alias.c (nonoverlapping_memrefs_p): Remove use of
123 IPA type-escape information.
125 2010-05-16 Joseph Myers <joseph@codesourcery.com>
127 * c-common.c (c_common_reswords): Add _Static_assert for C.
128 * c-parser.c (c_token_starts_declaration,
129 c_parser_next_token_starts_declaration,
130 c_parser_static_assert_declaration_no_semi,
131 c_parser_static_assert_declaration): New.
132 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
133 Handle static assertions if static_assert_ok.
134 (c_parser_external_declaration, c_parser_declaration_or_fndef,
135 c_parser_compound_statement_nostart, c_parser_label,
136 c_parser_for_statement, c_parser_objc_methodprotolist,
137 c_parser_omp_for_loop): All callers of
138 c_parser_declaration_or_fndef changed.
139 (c_parser_struct_declaration): Handle static assertions.
140 (c_parser_compound_statement_nostart): Use
141 c_parser_next_token_starts_declaration and
142 c_token_starts_declaration to detect start of declarations.
143 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
146 2010-05-16 Anatoly Sokolov <aesok@post.ru>
148 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
149 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
150 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
151 TARGET_FUNCTION_VALUE_REGNO_P): Define.
152 (mmix_function_outgoing_value): Rename to...
153 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
154 (mmix_function_value_regno_p): Make static.
155 (mmix_libcall_value): New function.
156 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
157 mmix_function_value_regno_p): Remove declaration.
159 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
161 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
162 BUILT_IN_ALLOCA if stack checking is enabled.
164 2010-05-16 Richard Guenther <rguenther@suse.de>
166 * var-tracking.c (vars_copy_1): Inline ...
167 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
168 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
169 (variable_merge_over_cur): Adjust. Merge asserts.
170 (variable_merge_over_src): Likewise.
171 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
172 (variable_post_merge_new_vals): Merge asserts.
173 (variable_post_merge_perm_vals): Likewise.
174 (find_mem_expr_in_1pdv): Likewise.
175 (dataflow_set_different_value): Remove.
176 (onepart_variable_different_p): Merge asserts.
177 (variable_different_p): Likewise.
178 (dataflow_set_different_1): Inline ...
179 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
180 (emit_notes_for_differences_1): Merge asserts.
182 2010-05-16 Richard Guenther <rguenther@suse.de>
184 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
185 * optabs.c (libfunc_decl_hash): Likewise.
186 * varasm.c (emutls_decl): Likewise.
188 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
190 * c-decl.c: Don't include gimple.h.
191 (merge_decls): Do not copy gimple_body.
193 2010-05-15 Jason Merrill <jason@redhat.com>
195 * c.opt: Add -fnothrow-opt.
197 2010-05-15 Jan Hubicka <jh@suse.cz>
199 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
201 * passes.c (ipa_write_summaries): Write all analyzed nodes.
203 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
205 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
206 * Makefile.in: Add it.
207 Fix all other Makefile dependencies for changes below.
208 * tree.h: Include it instead of defining VEC primitives here.
209 * gimple.h: Likewise.
211 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
212 * except.h: Include vecir.h, break dependence on tree.h.
214 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
216 * tree-iterator.c: ...to here.
217 * tree-iterator.h: Fix file introduction comment. Add extern markers.
219 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
221 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
222 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
223 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
224 tree-mudflap.h, and target.h.
225 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
226 predict.h, tree-inline.h, gimple.h, and langhooks.h.
227 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
228 Add FIXME for why gimple.h is still included (should be unnecessary
229 since GCC 4.5 gimplification unit-at-a-time).
230 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
231 * c-pragma.c: Add FIXME for why function.h needs to be included just
232 for cfun, at front-end level.
233 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
234 Do not include ggc.h, but include vecprim.h for VEC(char).
235 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
236 Explain why target.h is included.
237 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
238 Explain why gimple.h is included.
239 * c-ppoutput.c: Do not include tm.h.
240 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
241 * c-parses.c: Explain why rtl.h is included, and that this (and only
242 this) is also why tm.h must be included.
243 Do not include except.h.
244 * c-lang.c: Do not include ggc.h.
246 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
248 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
250 2010-05-15 Joseph Myers <joseph@codesourcery.com>
252 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
253 unions by default if those structs and unions have no tags. Do
254 not condition anonymous struct and unions handling on flag_iso.
255 Allow anonymous structs and unions for C1X.
256 (finish_struct): Do not diagnose lack of named fields when
257 anonymous structs and unions present for C1X. Accept flexible
258 array members in structure with anonymous structs or unions but no
259 directly named fields.
260 * doc/extend.texi (Unnamed Fields): Update.
262 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
264 * gimple.h (compare_field_offset): Rename into...
265 (gimple_compare_field_offset): ...this.
266 * gimple.c (compare_field_offset): Rename into...
267 (gimple_compare_field_offset): ...this. Compare the full access if
268 the offset is self-referential.
269 (gimple_types_compatible_p): Adjust for above renaming.
270 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
271 DECL_NONADDRESSABLE_P flag of fields before merging them.
273 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
275 * tree.h (ctor_to_list): Delete.
276 * tree.c (ctor_to_list): Delete.
278 2010-05-15 Jan Hubicka <jh@suse.cz>
280 * ipa-reference.c: Include toplev.h
281 (is_proper_for_analysis): Only add to all_module_statics
283 (write_node_summary_p, stream_out_bitmap,
284 ipa_reference_write_optimization_summary,
285 ipa_reference_read_optimization_summary): New.
286 (struct ipa_opt_pass_d pass_ipa_reference): Add
287 optimization summary streaming.
288 * lto-cgraph.c (referenced_from_this_partition_p,
289 reachable_from_this_partition_p): New functions.
290 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
291 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
292 * opts.c (decode_options): Enable ipa_reference.
293 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
294 * lto-streamer.h (referenced_from_this_partition_p,
295 reachable_from_this_partition_p): Declare.
297 2010-05-15 Richard Guenther <rguenther@suse.de>
299 PR tree-optimization/44038
300 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
301 taking the address of a V_C_E of a constant.
303 2010-05-14 Jan Hubicka <jh@suse.cz>
305 * tree.h (memory_identifier_string): Remove.
306 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
307 (ipa_reference_global_vars_info_d): Remove statics_not_read and
309 (ipa_reference_optimization_summary_d): New structure.
310 (ipa_reference_optimization_summary_t): New type and vector.
311 (ipa_reference_vars_info_d): Embedd structures instead of using
313 (reference_vars_to_consider): Remove out of GGC space.
314 (module_statics_escape): Remove.
315 (global_info_obstack): Rename to ...
316 (optimization_summary_obstack): ... this one.
317 (initialization_status_t): Remove.
318 (memory_identifier_string): Remove.
319 (get_reference_vars_info): Fix indenting.
320 (set_reference_vars_info): Likewise.
321 (get_reference_optimization_summary): New.
322 (set_reference_optimization_summary): New.
323 (get_global_reference_vars_info): Remove.
324 (ipa_reference_get_read_global): Remove.
325 (ipa_reference_get_written_global): Remove.
326 (ipa_reference_get_not_read_global): Update.
327 (ipa_reference_get_not_written_global): Update.
328 (is_proper_for_analysis): Outlaw addressable.
329 (propagate_bits): Update for new datastructures.
330 (analyze_variable): Remove.
331 (init_function_info): Update for new datastructures.
332 (clean_function_local_data): Remove.
333 (clean_function): Remove.
334 (copy_global_bitmap): Use optimizations_summary_obstack.
335 (duplicate_node_data): Duplicate optimization summary only.
336 (remove_node_data): Remove optimization summary only.
337 (generate_summary): Do not analyze variables; do not compute
338 module_statics_escape; do not prune solutions by it.
339 (read_write_all_from_decl): Fix typos in comments.
340 (propagate): Doscover readonly and nonaddressable first;
341 update for new datastructures; share global bitmaps.
342 * ipa-reference.h (ipa_reference_get_read_global,
343 ipa_reference_get_written_global): Remove.
344 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
345 * Makefile.in: Remove ipa-refereference from GT files.
347 2010-05-14 Jakub Jelinek <jakub@redhat.com>
350 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
351 for all SYMBOL_REF_DECLs.
353 2010-05-14 Jan Hubicka <jh@suse.cz>
355 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
356 (varpool_all_refs_explicit_p): New inline function.
357 * ipa-reference.c: Update comment.
358 (module_statics_written): Remove.
359 (get_static_decl): Remove.
360 (ipa_init): Do not initialize module_statics_written.
361 (analyze_function): Likewise.
362 (generate_summary): Likewise; do not compute module_statics_readonly
363 and do not update variable flags.
364 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
365 * ipa.c: Inlucde flags.h
366 (cgraph_local_node_p): New.
367 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
368 promote functions to local.
369 (ipa_discover_readonly_nonaddressable_vars): New function.
370 (function_and_variable_visibility): Use cgraph_local_node_p.
371 * varpool.c (varpool_finalize_decl): Set force_output for
372 DECL_PRESERVE_P vars.
374 2010-05-14 Jan Hubicka <jh@suse.cz>
376 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
378 2010-05-14 Richard Guenther <rguenther@suse.de>
380 PR tree-optimization/44119
381 * tree-ssa-pre.c (eliminate): Properly mark replacement of
382 a PHI node necessary.
384 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
386 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
388 2010-05-14 Jason Merrill <jason@redhat.com>
391 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
392 (gimple_call_set_nothrow): New.
393 * gimple.c (gimple_build_call_from_tree): Call it.
394 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
397 * gimplify.c (gimplify_seq_add_stmt): No longer static.
398 * gimple.h: Declare it.
399 * gimple.c (gimple_build_eh_filter): No ops.
401 2010-05-14 Jan Hubicka <jh@suse.cz>
403 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
404 nodes already in queue.
405 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
408 2010-05-14 Jakub Jelinek <jakub@redhat.com>
411 * cfgexpand.c (expand_debug_expr): If non-memory op0
412 has BLKmode, return NULL.
414 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
416 * config.gcc: Add support for --with-cpu option for bdver1.
417 * config/i386/i386.h (TARGET_BDVER1): New macro.
418 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
419 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
420 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
421 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
422 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
423 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
424 (processor_type): Add PROCESSOR_BDVER1.
425 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
426 processor_type in config/i386/i386.h.
427 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
428 movaps <reg, reg> instead of movapd <reg, reg> when replacing
429 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
430 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
431 to emit packed xor instead of packed double/packed integer
432 xor for SSE and AVX when moving a zero value.
433 * config/i386/sse.md: Add check for
434 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
435 movapd/movdqa for SSE and AVX.
436 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
437 single logical operations i.e and, or and xor instead of packed double
438 logical operations for SSE and AVX.
439 * config/i386/i386-c.c (ix86_target_macros_internal):
440 Add PROCESSOR_BDVER1.
441 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
442 (has_fma4, has_xop): New.
443 * config/i386/i386.c (bdver1_cost): New variable.
444 (m_BDVER1): New macro.
445 (m_AMD_MULTIPLE): Add m_BDVER1.
446 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
447 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
448 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
449 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
450 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
451 x86_tune_sse_partial_reg_dependency,
452 x86_tune_sse_unaligned_load_optimal,
453 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
454 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
455 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
456 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
457 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
458 Enable/disable for bdver1.
459 (processor_target_table): Add bdver1_cost.
460 (cpu_names): Add bdver1.
461 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
462 processor_alias_table.
463 (ix86_expand_vector_move_misalign): Change.
464 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
465 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
466 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
467 of movupd/movdqu for SSE and AVX.
468 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
469 (ix86_tune_adjust_cost): Add code for bdver1.
470 (standard_sse_constant_opcode): Add check for
471 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
472 of packed double xor for SSE and AVX.
474 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
476 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
479 2010-05-14 Tristan Gingold <gingold@adacore.com>
481 * toplev.c (default_debug_hooks): Remove this variable.
482 (process_options): Remove assignments to default_debug_hooks.
484 2010-05-14 Martin Jambor <mjambor@suse.cz>
486 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
487 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
488 * langhooks.h (struct lang_hooks_for_decls): Removed field
490 * tree.c (free_lang_data): Remove assignment to
491 lang_hooks.fold_obj_type_ref.
492 * tree.def (OBJ_TYPE_REF): Update comment.
494 2010-05-14 Richard Guenther <rguenther@suse.de>
496 PR tree-optimization/44124
497 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
499 2010-05-14 Alan Modra <amodra@gmail.com>
502 * config/rs6000/rs6000.c (struct machine_function): Reorder
503 fields for better packing. Add lr_save_state.
504 (rs6000_ra_ever_killed): Return lr_save_state if set.
505 (rs6000_emit_eh_reg_restore): Set lr_save_state.
507 2010-05-13 Jan Hubicka <jh@suse.cz>
509 * varpool.c (decide_is_variable_needed): Drop code checking
510 TREE_SYMBOL_REFERENCED.
512 2010-05-13 Jan Hubicka <jh@suse.cz>
514 * final.c (output_addr_const): Do not call mark_decl_referenced.
515 * cgraphunit.c (process_function_and_variable_attributes): Use
516 mark_needed_node dirrectly.
517 (assemble_thunk): Do not call mark_decl_referenced.
519 2010-05-13 Anatoly Sokolov <aesok@post.ru>
521 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
523 2010-05-13 Jeff Law <law@redhat.com>
525 * ira-conflicts.c (print_allocno_conflicts): New function broken out
527 (print_conflicts): Call print_allocno_conflicts.
529 2010-05-13 Jakub Jelinek <jakub@redhat.com>
532 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
535 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
537 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
538 t-mingw-w64 or t-mingw-w32 for multilib configuration.
539 * config/i386/t-mingw-w32: New.
540 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
542 2010-05-13 Martin Jambor <mjambor@suse.cz>
544 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
546 * gimple-fold.c (get_base_binfo_for_type): New function.
547 (gimple_get_relevant_ref_binfo): Likewise.
548 (gimple_fold_obj_type_ref_known_binfo): Likewise.
549 (gimple_fold_obj_type_ref): Likewise.
550 (fold_gimple_call): Simplify condition for folding virtual calls
551 and call gimple_fold_obj_type_ref.
552 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
553 (gimple_fold_obj_type_ref_known_binfo): Likewise.
555 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
557 * config/rs6000/rs6000-protos.h
558 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
559 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
560 (rs6000_debug_mode_dependent_address)
561 (rs6000_mode_dependent_address_ptr): Likewise.
563 2010-05-13 Jakub Jelinek <jakub@redhat.com>
566 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
568 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
569 * tree-sra.c (create_access_replacement): Call unshare_expr before
570 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
571 * dwarf2out.c: Include tree-flow.h.
572 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
573 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
574 Handle DW_OP_bit_piece.
575 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
576 construct_piece_list, adjust_piece_list): New functions.
577 (add_var_loc_to_decl): Handle SRA optimized variables.
578 Adjust for var_loc_note to loc field renaming.
579 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
580 in VAR_LOCATION note.
581 (new_loc_descr_op_bit_piece): New function.
582 (dw_sra_loc_expr): New function.
583 (dw_loc_list): Use it. Don't handle the last range after the
584 loop, handle it inside of the loop. Adjust for var_loc_note
585 to loc field renaming.
586 (add_location_or_const_value_attribute): Only special case
587 single entry loc lists if loc is NOTE_P. Adjust for
588 var_loc_note to loc field renaming.
589 (dwarf2out_var_location): Don't set newloc->var_loc_note
590 and newloc->next here.
592 2010-05-12 Jan Hubicka <jh@suse.cz>
594 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
596 * cgraph.h (cgraph_only_called_directly_p,
597 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
598 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
599 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
601 * ipa.c (cgraph_remove_unreachable_nodes): Use
602 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
604 * tree-inline.c (copy_bb): Check address_taken flag.
605 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
606 externally_visible flag.
608 2010-05-12 Jason Merrill <jason@redhat.com>
612 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
613 * sdbout.c (plain_type_1): Likewise.
614 * dwarf2out.c (is_base_type): Likewise.
615 (gen_type_die_with_usage): Likewise. Generate
616 DW_TAG_unspecified_type for any LANG_TYPE.
618 2010-05-12 Jan Hubicka <jh@suse.cz>
620 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
622 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
623 (cgraph_clone_edge): Update.
624 (cgraph_node_remove_callees): Remove indirect calls too.
625 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
626 (cgraph_create_indirect_edge): Update prototype.
627 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
628 is_proper_for_analysis.
629 (add_new_function, visited_nodes, function_insertion_hook_holder,
630 get_local_reference_vars_info, mark_address_taken, mark_address,
631 mark_load, mark_store, check_asm_memory_clobber, check_call,
632 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
633 (ipa_init): Do not initialize visited_nodes;
634 function_insertion_hook_holder.
635 (analyze_variable): Rewrite.
636 (analyze_function): Rewrite.
637 (copy_local_bitmap): Remove.
638 (duplicate_node_dat): Do not duplicate local info.
639 (generate_summary): Simplify to only walk cgraph.
640 (write_node_summary_p, ipa_reference_write_summary,
641 ipa_reference_read_summary): Remove.
642 (propagate): Do not remove function insertion;
644 (pass_ipa_reference): NULLify summary handling fields.
645 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
646 (input_edge): Input ecf_flags.
647 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
648 (update_indirect_edges_after_inlining): Ignore edges with unknown
651 2010-05-12 Sriraman Tallam <tmsriram@google.com>
653 * implicit-zee.c: New file.
654 * tree-pass.h (pass_implicit_zee): Declare.
655 * passes.c (init_optimization_passes): Add zee pass.
656 * common.opt (fzee): New flag.
657 * timevar.def (TV_ZEE): Define.
658 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
660 * Makefile.in (implicit-zee.o): Add new build file.
662 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
663 Nathan Froyd <froydnj@codesourcery.com>
665 * c-common.c (sync_resolve_params): Remove write-only variable.
667 2010-05-12 Anatoly Sokolov <aesok@post.ru>
669 * target.h (struct gcc_target): Add mode_dependent_address_p field.
670 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
671 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
672 * targhooks.c (default_mode_dependent_address_p): New function.
673 * targhooks.h (default_mode_dependent_address_p): Declare function.
674 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
675 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
676 * recog.c: (mode_dependent_address_p): Call mode_dependent_address_p
677 target hook. Change return type to bool.
678 * recog.h: (mode_dependent_address_p): Change return type to bool.
680 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
681 Nathan Froyd <froydnj@codesourcery.com>
683 * tree-mudflap.c (build_function_type_0, build_function_type_1,
684 build_function_type_2, build_function_type_3): Remove.
685 (mudflap_init): Use build_function_type_list.
687 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
688 Nathan Froyd <froydnj@codesourcery.com>
690 * coverage.c (build_fn_info_value): Call build_constructor instead of
691 build_constructor_from_list.
692 (build_ctr_info_value): Likewise.
693 (build_gcov_info): Likewise.
695 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
697 * tree.c (build_constructor): Compute TREE_CONSTANT for the
698 resultant constructor.
699 (build_constructor_single): Don't set TREE_CONSTANT.
700 (build_constructor_from_list): Don't compute TREE_CONSTANT.
702 2010-05-12 Jan Hubicka <jh@suse.cz>
704 * cgraph.h (struct varpool_node): Add aux.
705 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
706 * varpool.c (varpool_remove_node): Do not remove initializer.
707 (varpool_reset_queue): Export.
708 (varpool_finalize_decl): Volatile vars are forced to be output.
709 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
711 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
712 process_references, varpool_can_remove_if_no_refs): New functions.
713 (cgraph_remove_unreachable_nodes): Handle variables too.
715 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
718 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
720 2010-05-12 Jakub Jelinek <jakub@redhat.com>
723 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
724 change value of ORT_TASK.
725 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
726 (omp_notice_threadprivate_variable): New function.
727 (omp_notice_variable): Call it for threadprivate variables.
728 If enclosing ctx is a task, print enclosing task rather than
729 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
730 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
731 if task has untied clause.
734 * dwarf2out.c (base_type_die): Don't add name attribute here.
735 (modified_type_die): Instead of sizetype use
736 its underlying original type. If a DW_TAG_base_type doesn't
737 have name added, add __unknown__.
738 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
739 always call force_type_die instead.
741 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
743 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
744 for __stack_chk_guard.
746 2010-05-11 Jakub Jelinek <jakub@redhat.com>
748 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
749 don't call start_source_file debug hook here...
750 (finish_options): ... but here, after outputting predefined and
751 command line defines and undefs.
754 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
756 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
757 optimizing away empty bb with no successors, move over its
758 footer chain to fallthru predecessor.
759 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
760 (rtl_split_edge): For asm goto call patch_jump_insn even if
761 splitting fallthru edge.
764 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
765 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
766 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
767 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
771 * c-parser.c (c_parser_expression): Mark LHS of a comma
772 expression as read if it is a decl, handled component or
773 COMPOUND_EXPR with that on the RHS.
774 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
775 if it is a decl or handled component.
777 2010-05-11 Jan Hubicka <jh@suse.cz>
779 * lto-symtab.c (lto_symtab_free): New function.
780 * lto-streamer.h (lto_symtab_free): Declare.
782 2010-05-11 Jan Hubicka <jh@suse.cz>
784 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
785 that if function is needed it is reachable.
786 (lto_output_node): See if it the function is reachable or referenced.
787 (output_cgraph): Update call of lto_output_node.
788 * lto-streamer.h (reachable_from_other_partition_p): Declare.
790 2010-05-11 Jan Hubicka <jh@suse.cz>
792 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
795 2010-05-11 Jan Hubicka <jh@suse.cz>
797 PR tree-optimize/44063
798 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
800 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
802 (estimate_function_body_sizes): Compute sizes even when disregarding.
804 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
806 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
808 2010-05-11 Jan Hubicka <jh@suse.cz>
810 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
813 2010-05-11 Jan Hubicka <jh@suse.cz>
815 * matrix-reorg.c (matrix_reorg): Rebuild edges.
817 2010-05-11 Jan Hubicka <jh@suse.cz>
819 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
820 lto_streamer_cache_delete): Put nodes into heap.
821 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
824 2010-05-11 Jan Hubicka <jh@suse.cz>
826 * cgraphbuild.c (cgraph_rebuild_references): New.
827 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
829 * cgraph.h (cgraph_rebuild_references): Declare.
830 * tree-inline.c (tree_function_versioning): Use it.
831 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
833 2010-05-11 Jan Hubicka <jh@suse.cz>
835 * cgraph.c: Include ipa-utils.h
836 (cgraph_create_virtual_clone): Update references.
837 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
839 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
841 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
842 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
845 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
847 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
849 2010-05-11 Jakub Jelinek <jakub@redhat.com>
851 * gcc.c (execute): For -### don't quote arguments that
852 contain just alphanumerics and _/-. characters.
853 * doc/invoke.texi: Document that change for -###.
856 * df-problems.c (struct dead_debug): Add to_rescan field.
857 (dead_debug_init): Clear to_rescan field.
858 (dead_debug_finish): Rescan all debug insns in to_rescan
859 bitmap and free the bitmap.
860 (dead_debug_insert_before): Instead of rescanning debug insns
861 immediately queue their rescanning until dead_debug_finish.
862 (df_note_bb_compute): After dead_debug_add do continue instead
865 2010-05-10 Jakub Jelinek <jakub@redhat.com>
868 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
869 clear also INSN_REG_USE_LIST.
871 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
873 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
875 2010-05-10 Jan Hubicka <jh@suse.cz>
877 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
880 2010-05-10 Jan Hubicka <jh@suse.cz>
882 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
884 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
885 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
886 (lto_streamer_cache_create): Init alloc pool.
887 (lto_streamer_cache_delete): Free alloc pool.
888 * lto-streamer.h: Include alloc pool.
889 (lto_streamer_cache_d): Use alloc pool.
890 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
892 2010-05-10 Jan Hubicka <jh@suse.cz>
894 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
895 * cgraphbuild.c: Include except.h
896 (record_type_list, record_eh_tables): New function.
897 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
899 2010-05-10 Jan Hubicka <jh@suse.cz>
901 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
902 __frame_dummy_init_array_entry, force_to_data): Attribute as used
905 2010-05-10 Michael Matz <matz@suse.de>
907 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
908 (can_reassociate_p): Use FLOAT_TYPE_P.
909 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
910 (vect_force_simple_reduction): ... this.
911 * tree-parloops.c (gather_scalar_reductions): Use
912 vect_force_simple_reduction.
913 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
914 vect_is_simple_reduction, add modify argument, if true rewrite
916 (vect_is_simple_reduction, vect_force_simple_reduction): New
918 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
920 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
921 Vladimir Makarov <vmakarov@redhat.com>
923 PR rtl-optimization/44012
924 * ira-build.c (remove_unnecessary_allocnos): Nullify
925 regno_allocno_map of the removed allocno.
927 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
929 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
931 * configure: Regenerate.
933 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
935 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
937 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
938 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
940 * configure: Regenerate.
942 2010-05-10 Richard Guenther <rguenther@suse.de>
944 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
945 marked if the entry identifier is marked.
947 2010-05-10 Richard Guenther <rguenther@suse.de>
949 * c-common.c (struct c_common_attributes): Add fnspec attribute.
950 (handle_fnspec_attribute): New function.
951 * gimple.h (gimple_call_return_flags): Declare.
952 (gimple_call_arg_flags): Likewise.
953 * gimple.c (gimple_call_arg_flags): New function.
954 (gimple_call_return_flags): Likewise.
955 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
957 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
959 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
960 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
962 (make_heapvar_for): ... this new function.
963 (handle_rhs_call): Handle fnspec attribute argument specifiers.
964 (handle_lhs_call): Likewise.
965 (find_func_aliases): Adjust.
967 2010-05-10 Richard Guenther <rguenther@suse.de>
969 PR tree-optimization/44050
970 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
972 2010-05-10 Wei Guozhi <carrot@google.com>
975 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
977 2010-05-09 Joseph Myers <joseph@codesourcery.com>
980 * c-typeck.c (lookup_field): Take a type directly. Update
982 (build_component_ref): Update call to lookup_field.
983 (set_init_label): Use lookup_field to find initialized field.
984 Handle returned list of fields like a sequence of designators.
986 2010-05-09 Richard Guenther <rguenther@suse.de>
989 * fold-const.c (tree_single_nonzero_warnv_p): Properly
990 handle &FUNCTION_DECL.
992 2010-05-09 Joseph Myers <joseph@codesourcery.com>
995 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
996 structures and unions recursively.
997 (detect_field_duplicates): Move duplicate detection with a hash to
998 detect_field_duplicates_hash. Always use a hash if anonymous
999 structures or unions are present.
1000 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
1003 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
1006 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
1007 detect Atom, Core 2 and Core i7.
1009 2010-05-09 Richard Guenther <rguenther@suse.de>
1011 * gcc.c (store_arg): Handle temporary file deletion for
1014 2010-05-09 Richard Guenther <rguenther@suse.de>
1017 * ipa-inline.c (estimate_function_body_sizes): Return after
1018 disregarding inline limits.
1020 2010-05-09 Richard Guenther <rguenther@suse.de>
1022 * gcc.c (store_arg): Revert last change.
1024 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
1027 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
1028 (optimize_ops_list): Call it.
1030 2010-05-08 Richard Guenther <rguenther@suse.de>
1032 PR tree-optimization/44030
1033 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
1034 NECESSARY flag if we propagate from a inserted expression.
1036 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
1038 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
1039 domain types as equal if they are both PLACEHOLDER_EXPRs.
1041 2010-05-08 Richard Guenther <rguenther@suse.de>
1043 * lto-wrapper.c (run_gcc): Remove linker output from
1044 command line for LTRANS invocation.
1046 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
1048 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1049 lto-macho as lto_binary_reader.
1050 * target.h (struct gcc_target): New hooks lto_start and lto_end.
1051 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
1052 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
1053 in lto_start and lto_end calls.
1054 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
1056 (scan_prog_file): Update is_elf_or_coff call.
1057 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
1059 * collect2.c (main): Fix enum comparison.
1061 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
1063 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
1064 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
1065 and TARGET_ASM_LTO_END.
1066 * darwin.c: Include obstack.h and lto-streamer.h.
1067 (lto_section_names_offset, lto_section_names_obstack,
1068 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
1070 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
1071 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
1072 to a temporary file.
1073 (darwin_asm_lto_end): New function. Restore asm_out_file.
1074 (darwin_asm_named_section): For LTO sections, replace the name with
1075 the offset of the section name in a string table, and build this
1077 (darwin_file_start): Initialize global vars for LTO support.
1078 (darwin_file_end): If output to asm_out_file was redirected, append it
1079 to the proper asm_out_file here. Add the section names section.
1081 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
1083 * c-pragma.c (pending_weak_d, pending_weak): New.
1084 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
1085 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
1086 handle_pragma_weak): Update the uses of pending_weaks.
1088 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1090 PR documentation/44016
1091 * doc/standards.texi (Standards): Link to unversioned
1092 cxx0x_status.html page.
1094 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
1097 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
1098 in addition to TREE_USED, to avoid "set but unused" warnings.
1100 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
1102 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
1103 (is_loop_prefetching_profitable): Do not insert prefetches
1104 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
1105 times the prefetch ahead distance.
1107 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
1109 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
1110 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
1111 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
1114 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
1116 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
1117 a diagnostic info when the insn-to-mem ratio is too small.
1119 2010-05-07 Richard Guenther <rguenther@suse.de>
1121 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
1123 (store_arg): Queue temp_filename for deletion instead of
1126 2010-05-07 Richard Guenther <rguenther@suse.de>
1128 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
1129 (run_gcc): Handle LTRANS phase invocation.
1130 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
1132 2010-05-07 Jakub Jelinek <jakub@redhat.com>
1134 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
1135 this is also meaningful on PARM_DECLs and RESULT_DECLs.
1137 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1139 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
1141 2010-05-07 Richard Guenther <rguenther@suse.de>
1143 PR tree-optimization/44020
1144 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
1145 code when PRE is not yet initialized.
1147 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1149 * config/mips/dbxmdebug.h: Remove.
1150 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
1152 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
1154 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
1155 with null pointer and also warn about ordered comparison of zero with
1158 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1160 * graphite-blocking.c
1161 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
1162 * graphite-clast-to-gimple.c
1163 (clast_to_gcc_expression): Same.
1164 (precision_for_value): Same.
1165 (precision_for_interval): Same.
1166 (gcc_type_for_interval): Same.
1167 (graphite_create_new_guard): Same.
1168 (compute_bounds_for_level): Same.
1169 (graphite_create_new_loop_guard): Same.
1170 * graphite-interchange.c
1171 (build_linearized_memory_access): Same.
1172 (pdr_stride_in_loop): Same.
1173 (memory_strides_in_loop_1): Same.
1174 (memory_strides_in_loop): Same.
1175 (extend_scattering): Same.
1176 (psct_scattering_dim_for_loop_depth): Same.
1177 (pbb_number_of_iterations): Same.
1179 (debug_iteration_domains): Same.
1181 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1182 (ppl_set_inhomogeneous_gmp): Same.
1183 (ppl_strip_loop): Same.
1184 (ppl_lexico_compare_linear_expressions): Same.
1185 (ppl_read_polyhedron_matrix): Same.
1186 (ppl_max_for_le_pointset): Same.
1188 (ppl_read_polyhedron_matrix): Same.
1189 (tree_int_to_gmp): Same.
1190 (gmp_cst_to_tree): Same.
1191 (ppl_set_inhomogeneous): Same.
1192 (ppl_set_inhomogeneous_tree): Same.
1193 (ppl_set_coef): Same.
1194 (ppl_set_coef_tree): Same.
1195 * graphite-sese-to-poly.c
1196 (build_pbb_scattering_polyhedrons): Same.
1197 (build_scop_scattering): Same.
1198 (scan_tree_for_params_right_scev): Same.
1199 (scan_tree_for_params): Same.
1200 (find_params_in_bb): Same.
1201 (find_scop_parameters): Same.
1202 (add_upper_bounds_from_estimated_nit): Same.
1203 (build_loop_iteration_domains): Same.
1204 (add_condition_to_domain): Same.
1205 (pdr_add_memory_accesses): Same.
1207 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1209 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
1210 CLooG's value_* macros to their respective mpz_* counterparts.
1211 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
1212 (graphite_create_new_loop_guard): Same.
1213 * graphite-interchange.c (build_linearized_memory_access): Same.
1214 (pdr_stride_in_loop): Same.
1215 (memory_strides_in_loop_1): Same.
1216 (1st_interchange_profitable_p): Same.
1217 * graphite-poly.c (extend_scattering): Same.
1218 (psct_scattering_dim_for_loop_depth): Same.
1219 (pbb_number_of_iterations): Same.
1220 (pbb_number_of_iterations_at_time): Same.
1221 * graphite-poly.h (new_1st_loop): Same.
1222 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
1223 (oppose_constraint): Same.
1224 (insert_constraint_into_matrix): Same.
1225 (ppl_set_inhomogeneous_gmp): Same.
1226 (ppl_set_coef_gmp): Same.
1227 (ppl_strip_loop): Same.
1228 (ppl_lexico_compare_linear_expressions): Same.
1229 (ppl_max_for_le_pointset): Same.
1230 (ppl_min_for_le_pointset): Same.
1231 (ppl_build_realtion): Same.
1232 * graphite-ppl.h (gmp_cst_to_tree): Same.
1233 (ppl_set_inhomogeneous): Same.
1234 (ppl_set_inhomogeneous_tree): Same.
1235 (ppl_set_coef): Same.
1236 (ppl_set_coef_tree): Same.
1237 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
1238 (build_scop_scattering): Same.
1239 (add_value_to_dim): Same.
1240 (scan_tree_for_params_right_scev): Same.
1241 (scan_tree_for_params_int): Same.
1242 (scan_tree_for_params): Same.
1243 (find_params_in_bb): Same.
1244 (find_scop_parameters): Same.
1245 (add_upper_bounds_from_estimated_nit): Same.
1246 (build_loop_iteration_domains): Same.
1247 (create_linear_expr_from_tree): Same.
1248 (add_condition_to_domain): Same.
1249 (pdr_add_memory_accesses): Same.
1251 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
1252 Jason Merrill <jason@redhat.com>
1254 * c-common.c (c_common_reswords): Add nullptr.
1255 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
1256 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
1257 (gen_type_die_with_usage): Likewise.
1258 * dbxout.c (dbxout_type): Likewise.
1259 * sdbout.c (plain_type_1): Likewise.
1261 2010-05-06 Jason Merrill <jason@redhat.com>
1263 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
1264 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
1266 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
1268 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
1269 stripping WITH_SIZE_EXPR.
1270 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
1273 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1275 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
1276 list of obsolete configurations.
1277 Disabled check for obsolete configurations.
1278 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
1279 Removed support for previous versions.
1280 * config/mips/iris.h: Removed.
1281 * config/mips/iris5.h: Removed.
1282 * config/mips/iris6.h: Merged old iris.h contents.
1283 (TARGET_IRIX): Removed.
1284 (DRIVER_SELF_SPECS): Removed mabi=32.
1285 (IDENT_ASM_OP): Removed undef.
1286 (STARTFILE_SPEC): Removed mabi=32.
1287 (ENDFILE_SPEC): Likewise.
1288 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
1289 (MACHINE_TYPE): Update for IRIX 6.5.
1290 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
1291 TARGET_IRIX by TARGET_IRIX6.
1292 (mips_file_start): Likewise.
1293 (mips_output_external): Remove IRIX 5/6 O32 support.
1294 (mips_output_function_prologue): Likewise.
1295 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
1297 (TARGET_CPU_CPP_BUILTINS): Likewise.
1298 (TARGET_IRIX): Removed.
1299 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
1300 (MULTILIB_DIRNAMES): Removed 32.
1301 (MULTILIB_OSDIRNAMES): Removed ../lib.
1302 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
1303 (Specific, mips-sgi-irix5): Document removal.
1304 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
1305 Remove references to older IRIX 6 releases and the O32 ABI.
1307 2010-05-06 Jakub Jelinek <jakub@redhat.com>
1310 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
1311 instead of DF_REF_REAL_REG.
1313 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
1316 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
1317 handling to still return true for x64 targets.
1319 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
1321 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
1323 2010-05-06 Jan Hubicka <jh@suse.cz>
1325 PR tree-optimization/43791
1326 * ipa-inline.c (update_caller_keys): Remove bogus
1327 disregard_inline_limits check.
1329 2010-05-06 Michael Matz <matz@suse.de>
1331 PR tree-optimization/43984
1332 * tree-ssa-pre.c (inserted_phi_names): Remove.
1333 (inserted_exprs): Change to bitmap.
1334 (create_expression_by_pieces): Set bits, don't append to vector.
1335 (insert_into_preds_of_block): Don't handle inserted_phi_names.
1336 (eliminate): Don't look at inserted_phi_names, remove deleted
1337 insns from inserted_exprs.
1338 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
1339 (init_pre, fini_pre): Allocate and free bitmaps.
1340 (execute_pre): Insert insns on edges before elimination.
1342 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
1344 * tree.c (initializer_zerop): Handle STRING_CST.
1346 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
1349 * doc/invoke.texi (Wimplicit): Document as C only.
1350 * opts.c (common_handle_option): Add argument kind.
1351 (handle_option): Rename as read_cmdline_option. Factor out code to...
1352 (handle_option): ... here. New.
1353 (handle_options): Rename as read_cmdline_options.
1354 (decode_options): Update call.
1355 (set_option): Use option index instead of option pointer. Classify
1356 diagnostics correctly.
1357 (enable_warning_as_error): Call handle_option.
1358 * opts.h (set_option): Update declaration.
1359 (handle_option): Declare.
1360 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
1361 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
1362 * c-opts.c (set_Wimplicit): Delete.
1363 (c_family_lang_mask): New static constant.
1364 (c_common_handle_option): Add argument kind. Use handle_option
1365 instead of set_Wimplicit.
1366 (c_common_post_options): warn_implicit and warn_implicit_int
1367 are disabled by default.
1368 * c-common.c (warn_implicit): Do not define here.
1369 * c-common.h (warn_implicit): Do not declare here.
1370 (c_common_handle_option): Update declaration.
1371 * lto-opts.c (lto_reissue_options): Update call to set_option.
1373 2010-05-06 Richard Guenther <rguenther@suse.de>
1375 PR tree-optimization/43571
1376 * domwalk.c (walk_dominator_tree): Walk the dominator
1377 sons in more optimal order.
1379 2010-05-06 Richard Guenther <rguenther@suse.de>
1381 PR tree-optimization/43934
1382 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
1383 (stmt_cost): Likewise.
1384 (extract_true_false_args_from_phi): New helper.
1385 (determine_max_movement): For PHI nodes verify we can hoist them
1386 and compute their cost.
1387 (determine_invariantness_stmt): Handle PHI nodes.
1388 (move_computations_stmt): Likewise. Hoist PHI nodes in
1389 if-converted form using COND_EXPRs.
1390 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
1391 (tree_ssa_lim): Likewise.
1392 * tree-flow.h (tree_ssa_lim): Adjust prototype.
1393 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
1395 2010-05-06 Richard Guenther <rguenther@suse.de>
1397 PR tree-optimization/43987
1398 * tree-ssa-structalias.c (could_have_pointers): For possibly
1399 address-taken variables force pointers to be recorded.
1400 (create_variable_info_for_1): Likewise.
1401 (push_fields_onto_fieldstack): Pass in wheter all fields
1403 (find_func_aliases): Query types instead of vars whether
1404 they contain pointers where appropriate.
1406 2010-05-06 Jan Hubicka <jh@suse.cz>
1408 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
1409 (record_reference, mark_address, mark_load, mark_store): Record
1411 (record_references_in_initializer): Update call of record_references.
1412 (rebuild_cgraph_edges): Remove all references before rebuiding.
1413 * cgraph.c (cgraph_create_node): Clear ref list.
1414 (cgraph_remove_node): Remove references.
1415 (dump_cgraph_node): Dump references.
1416 (cgraph_clone_node): Clone references.
1417 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
1418 (struct cgraph_node, varpool_node): Add ref_lst.
1419 * ipa-ref.c: New file.
1420 * ipa-ref.h: New file.
1421 * ipa-ref-inline.h: New file.
1422 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
1423 (referenced_from_other_partition_p): New function.
1424 (lto_output_varpool_node): Take set arugment; call
1425 referenced_from_other_partition.
1426 (lto_output_ref): New.
1427 (add_references): New.
1429 (output_cgraph): Compute boundary based on references; output refs.
1430 (output_varpool): Accept cgraph_node_set argument.
1433 (input_cgraph): Call input_refs.
1434 * lto-section-in.c (lto_section_name): Add refs.
1435 * Makefile.in: (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
1436 (ipa-ref.o): New file.
1437 * varpool.c (varpool_node): Clear ipa ref list.
1438 (varpool_remove_node): Remove references.
1439 (dump_varpool_node): Dump references.
1440 (varpool_assemble_decl): Only compile finalized ones.
1441 (varpool_extra_name_alias): Initialize ref list.
1442 * lto-streamer.c (lto-get_section_name): Add .refs section.
1443 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
1444 (referenced_from_other_partition_p): Declared.
1446 2010-05-06 Ira Rosen <irar@il.ibm.com>
1448 PR tree-optimization/43901
1449 * tree-vect-stmts.c (vectorizable_call): Assert that vector
1450 type is not NULL if it's transformation phase, and return
1451 FALSE if it's analysis.
1452 (vectorizable_conversion, vectorizable_operation,
1453 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
1455 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
1457 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
1459 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
1461 * config/mips/mips-protos.h
1462 (mips_small_register_classes_for_mode_p): Delete prototype.
1464 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
1466 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
1467 * config/arm/arm.c (multiple_operation_profitable_p,
1468 compute_offset_order): New static functions.
1469 (load_multiple_sequence, store_multiple_sequence): Use them.
1470 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
1471 memory offsets, not register numbers.
1472 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
1474 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
1476 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
1477 (get_pending_sizes, put_pending_size, put_pending_sizes):
1478 Update the uses of pending_sizes.
1479 * c-decl.c (store_parm_decls): Likewise.
1480 * c-tree.h (struct c_arg_info): Likewise.
1481 * tree.h: Update the prototype for get_pending_sizes and
1484 2010-05-05 Jason Merrill <jason@redhat.com>
1487 * c-common.c (handle_aligned_attribute): Respect
1488 ATTR_FLAG_TYPE_IN_PLACE.
1491 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
1492 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
1493 (TARGET_INITIALIZER): Use it.
1494 * c-common.c (attribute_takes_identifier_p): Call it.
1495 * c-common.h: Update prototype.
1496 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
1497 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
1499 2010-05-05 Jakub Jelinek <jakub@redhat.com>
1502 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
1503 DW_ID_down_case for Fortran compilation units.
1505 2010-05-05 Jan Hubicka <jh@suse.cz>
1507 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
1510 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
1512 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
1513 a variable-sized RESULT_DECL.
1515 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
1517 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
1519 2010-05-05 Jason Merrill <jason@redhat.com>
1522 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
1524 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
1526 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
1527 Jakub Jelinek <jakub@redhat.com>
1530 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
1531 (dead_debug_init, dead_debug_finish): New functions.
1532 (dead_debug_add, dead_debug_insert_before): Likewise.
1533 (df_note_bb_compute): Initialize a dead_debug object, add dead
1534 debug uses to it, insert debug bind insns before death insns,
1535 reset debug insns that refer to pending uses at the end.
1536 * rtl.h (make_debug_expr_from_rtl): New prototype.
1537 * varasm.c (make_debug_expr_from_rtl): New function.
1539 2010-05-05 Jan Hubicka <jh@suse.cz>
1541 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
1542 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
1543 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
1544 lto_varpool_encoder_deref, lto_varpool_encoder_size,
1545 lto_varpool_encoder_encode_initializer_p,
1546 lto_set_varpool_encoder_encode_initializer): New functions.
1547 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
1548 call output_varpool.
1549 (input_varpool_node): Do not always set analyzed.
1550 (input_cgraph_1): Return vector of cgraph nodes.
1551 (input_varpool_1): Return vector of varpools.
1552 (input_cgraph): Free the vectors.
1553 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
1554 output only initializers needed.
1555 (lto_output): Only call output_cgraph.
1556 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
1557 * lto-section-out.c (lto_new_out_decl_state): Initialize
1558 state->varpool_node_encoder.
1559 * lto-streamer.h (lto_varpool_encoder_d): New.
1560 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
1561 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
1562 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
1563 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
1564 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
1566 (output_varpool, input_varpool): Remove declarations.
1568 2010-05-05 Jan Hubicka <jh@suse.cz>
1570 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
1571 with body can prevail.
1573 2010-05-05 Jan Hubicka <jh@suse.cz>
1575 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
1578 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1580 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
1582 * gengtype.h (erro_at_line): Constify pos argument.
1584 * gengtype.c: Include hashtab.h.
1585 (enum gc_used): Document GC_MAYBE_POINTED_TO.
1586 (error_at_line): Constify pos argument.
1587 (do_typedef): Initialize p->opt field.
1588 (get_file_gtfilename): Fix comment typo.
1589 (struct walk_type_data): Constify line field.
1590 (get_output_file_for_structure): New function.
1591 (write_local_func_for_structure): Constify orig_s argument.
1592 Use get_output_file_for_structure.
1593 (write_func_for_structure): Use get_output_file_for_structure.
1594 (INDENT): New define.
1595 (dump_pair, dump_type, dump_type_list, dump_typekind)
1596 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
1597 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
1599 (seen_types): New variable.
1600 (main): New variable do_dump. Process "-d" command line option.
1601 Call dump_everything if dump requested.
1603 2010-05-05 Jakub Jelinek <jakub@redhat.com>
1605 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
1606 in a temporary instead of invoking the macro multiple times.
1607 (track_expr_p): Likewise.
1609 2010-05-04 Neil Vachharajani <nvachhar@google.com>
1611 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
1613 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
1614 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
1615 conditions for printing notes.
1616 * common.opt (-Wcoverage-mismatch): Allow negative, default to
1617 true, update documentation.
1618 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
1620 2010-05-04 Jakub Jelinek <jakub@redhat.com>
1623 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
1626 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
1629 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
1630 (*sse_prologue_save_insn1): Likewise.
1631 (SSE prologue save splitter): Likewise.
1633 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
1635 * tree.c (free_lang_data_in_one_sizepos): New inline function.
1636 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
1637 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
1638 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
1639 all decls. Call it on DECL_FIELD_OFFSET of fields.
1640 (find_decls_types_r): Follow DECL_VALUE_EXPR.
1641 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
1643 2010-05-04 Martin Jambor <mjambor@suse.cz>
1645 * tree-sra.c (build_access_from_expr_1): The first parameter type
1646 changed to simple tree.
1647 (build_access_from_expr): Likewise, gsi parameter was eliminated.
1648 (scan_assign_result): Renamed to assignment_mod_result, enum elements
1650 (build_accesses_from_assign): Removed all parameters except for a
1651 simple gimple statement. Now returns a simple bool.
1652 (scan_function): All non-analysis parts moved to separate functions
1653 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
1654 parameters and updated both callers.
1655 (sra_modify_expr): Removed parameter data.
1656 (sra_modify_function_body): New function.
1657 (perform_intra_sra): Call sra_modify_function_body to modify the
1659 (replace_removed_params_ssa_names): Parameter data changed into
1661 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
1662 changed the parameter dont_convert to convert with the opposite
1664 (sra_ipa_modify_assign): Parameter data changed into adjustments
1665 vector, return value changed to bool.
1666 (ipa_sra_modify_function_body): New function.
1667 (sra_ipa_reset_debug_stmts): Updated a comment.
1668 (modify_function): Use ipa_sra_modify_function_body to modify function
1671 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
1674 * alias.c (true_dependence): Handle the same VALUE in x and mem.
1675 (canon_true_dependence): Likewise.
1676 (write_dependence_p): Likewise.
1678 2010-05-04 Jan Hubicka <jh@suse.cz>
1680 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
1681 * cgraphbuild.c: Include ipa-utils.h
1682 (record_reference_ctx): New struct.
1683 (record_reference): Simplify to work on initializers; not statements.
1684 (mark_address, mark_load, mark_store): New.
1685 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
1687 (record_references_in_initializer): Update use of record_reference.
1688 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
1691 2010-05-04 Jan Hubicka <jh@suse.cz>
1693 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
1694 node will be removed anyway.
1695 (lto_varpool_replace_node): Allow also unanalyzed nodes;
1696 relink aliases of node into prevailing node.
1697 * varpool.c (varpool_remove_node): Remove aliases properly;
1698 when removing node, remove all its aliases too; remove DECL_INITIAL
1699 of removed node; ggc_free the varpool node.
1701 2010-05-04 Richard Guenther <rguenther@suse.de>
1703 PR tree-optimization/43879
1704 * tree-ssa-structalias.c (alias_get_name): Use
1705 DECL_ASSEMBLER_NAME if available.
1706 (create_function_info_for): Return the varinfo node.
1707 (ipa_pta_execute): Associate same-body aliases and extra names
1708 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
1710 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
1712 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
1714 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
1717 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
1718 only if HONOR_REG_ALLOC_ORDER is not defined.
1720 2010-05-04 Richard Guenther <rguenther@suse.de>
1722 PR tree-optimization/43949
1723 * tree-vrp.c (extract_range_from_binary_expr): Only handle
1726 2010-04-26 Jason Merrill <jason@redhat.com>
1728 * c.opt (-fstrict-enums): New.
1729 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
1731 2010-05-03 David Ung <davidu@mips.com>
1732 James E. Wilson <wilson@codesourcery.com>
1734 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
1735 emit the trap instruction before the divide for TUNE_74K.
1737 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
1739 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
1740 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
1741 based on the above, for new target hook.
1743 * hooks.c (hook_bool_mode_true): New generic hook.
1744 * hooks.h (hook_bool_mode_true): Add prototype.
1746 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
1748 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
1749 target hook, set to hook_bool_mode_false.
1750 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
1751 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
1752 with targetm.small_register_classes_for_mode_p.
1753 (find_reusable_reload): Likewise.
1754 (combine_reloads): Likewise.
1755 * reload1.c (reload_as_needed): Likewise.
1756 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
1757 * ifcvt.c (noce_process_if_block, check_cond_move_block,
1758 dead_or_predicable): Likewise.
1759 * regmove.c (optimize_reg_copy_1): Likewise.
1760 * calls.c (prepare_call_address): Likewise.
1761 (precompute_register_parameters): Likewise.
1763 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
1765 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
1766 implementation of the hook that considers all register classes
1767 small except for SH64.
1768 (sh_override_options): Use the new hook.
1769 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
1772 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
1774 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
1775 implementation of the hook that considers all register classes
1777 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
1780 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
1782 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
1783 implementation of the hook that considers all register classes
1785 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
1788 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
1790 * config/m32c/m32c.h: Likewise.
1791 * config/pdp11/pdp11.h: Likewise.
1792 * config/avr/avr.h: Likewise.
1793 * config/xtensa/xtensa.h: Likewise.
1794 * config/m68hc11/m68hc11.h: Likewise.
1795 * config/mn10300/mn10300.h: Likewise.
1796 * config/mcore/mcore.h: Likewise.
1797 * config/h8300/h8300.h: Likewise.
1798 * config/bfin/bfin.h: Likewise.
1800 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
1801 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
1803 2010-05-03 Anatoly Sokolov <aesok@post.ru>
1805 * double-int.h (tree_to_double_int): Remove macro.
1806 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
1807 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
1808 (tree_to_double_int): New function.
1809 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
1811 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
1813 2010-05-03 Richard Guenther <rguenther@suse.de>
1815 PR tree-optimization/43971
1816 * tree-ssa-structalias.c (get_constraint_for_1): Fix
1817 constraints in the !flag_delete_null_pointer_checks case.
1819 2010-05-03 Jakub Jelinek <jakub@redhat.com>
1822 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
1823 result mode matches original rtl mode.
1825 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
1828 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
1830 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
1832 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
1833 when processing flag options.
1835 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
1837 * gcov-iov.c (main): Change format string placeholder
1838 from %#08x to 0x%08x.
1839 * genchecksum.c (dosum): Change format string placeholder
1840 from %#02x to 0x%02x.
1842 2010-05-02 Richard Guenther <rguenther@suse.de>
1844 PR tree-optimization/43879
1845 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
1847 2010-05-02 Bruno Haible <bruno@clisp.org>
1849 * doc/extend.texi (Function Attributes): Fix a typo.
1851 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
1854 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
1855 placeholder from 0x%x to %#x.
1856 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
1857 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
1858 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
1859 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
1860 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
1861 * config/i386/i386.c (ix86_target_string): Ditto.
1862 * config/i386/i386.c (output_pic_addr_const): Ditto.
1863 (print_operand): Ditto.
1865 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
1867 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
1868 placeholder from 0x%x to %#x.
1869 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
1870 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
1871 (ASM_OUTPUT_DEBUG_DATA): Ditto.
1872 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
1873 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
1874 * optc-gen.awk: Ditto.
1875 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
1876 (HOST_WIDE_INT_PRINT_HEX): Ditto.
1877 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
1878 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
1880 2010-05-01 Anatoly Sokolov <aesok@post.ru>
1882 * target.h (struct calls): Add function_value_regno_p field.
1883 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
1884 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
1885 * targhooks.c (default_function_value_regno_p): New function.
1886 * targhooks.h (default_function_value_regno_p): Declare function.
1887 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
1888 * builtins.c. (apply_result_size): (Ditto.).
1889 * combine.c. (likely_spilled_retval_p): (Ditto.).
1890 * mode-switching.c. Include 'target.h'.
1891 (create_pre_exit): Use function_value_regno_p hook.
1892 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
1893 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
1894 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
1896 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
1897 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
1898 (ix86_function_value_regno_p): Declare as static, change argument
1899 type to const unsigned int.
1900 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
1902 2010-05-01 Richard Guenther <rguenther@suse.de>
1904 PR tree-optimization/43949
1905 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
1907 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
1909 2010-05-01 Anatoly Sokolov <aesok@post.ru>
1911 * rtl.h (CONST_DOUBLE_P): Define.
1912 (rtx_to_double_int): Declare.
1913 * emit-rtl.c (rtx_to_double_int): New function.
1914 * dwarf2out.c (insert_double): New function.
1915 (loc_descriptor, add_const_value_attribute): Clean up, use
1916 rtx_to_double_int and insert_double functions.
1918 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
1920 * doc/extend.texi (Inline): Add missing return keyword to examples.
1921 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
1924 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
1926 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
1927 the variable part of the offset as well. Use highest_pow2_factor for
1928 all alignment checks.
1930 2010-04-30 Richard Guenther <rguenther@suse.de>
1932 PR tree-optimization/43879
1933 * tree-ssa-structalias.c (type_could_have_pointers): Functions
1936 2010-04-30 Jan Hubicka <jh@suse.cz>
1938 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
1940 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
1942 2010-04-30 Jan Hubicka <jh@suse.cz>
1944 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
1946 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
1947 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
1948 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
1949 cgraph_node_set_needs_ltrans_p): Remove.
1951 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
1953 * sdbout.c: Include vec.h, do not include varray.h.
1954 (deferred_global_decls, sdbout_global_decl,
1955 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
1956 * toplev.c: Do not include varray.h.
1957 (dump_memory_report): Do not dump VARRAY statistics.
1958 * gengtype.c (open_base_file): Ignore varray.h.
1959 * Makefile.in: Update for abovementioned changes.
1960 Remove all traces of varray.c and varray.h.
1961 * varray.c: Remove file.
1962 * varray.h: Remove file.
1964 2010-04-30 Jan Hubicka <jh@suse.cz>
1966 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
1969 2010-04-30 Jan Hubicka <jh@suse.cz>
1971 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
1974 2010-04-30 Richard Guenther <rguenther@suse.de>
1976 * tree-ssa-structalias.c (get_constraint_for_1): Generate
1977 constraints for CONSTRUCTOR.
1979 2010-04-30 Richard Guenther <rguenther@suse.de>
1982 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
1983 first after all lowering passes.
1985 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
1987 * toplev.c: Include varray.h for statistics dumping.
1988 * tree.h: Do not declare varray_head_tag.
1989 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
1990 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
1991 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
1992 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
1993 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
1994 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
1995 c-common.c, c-common.h, reg-stack.c, basic-block.h,
1996 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
1998 * Makefile.in: Update for abovementioned changes.
2000 2010-04-30 Jakub Jelinek <jakub@redhat.com>
2003 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
2005 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
2007 * config/picochip/picochip.c (picochip_legitimize_address): Define.
2008 Use this function to do machine-specific conversion.
2009 (picochip_legitimize_reload_address): Likewise.
2010 (picochip_legitimate_address_p): Check valid base register only if
2012 (picochip_check_conditional_copy): Check for modw only if opnd is
2014 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
2015 to call the function in c.
2016 * config/picochip/picochip-protos.h
2017 (picochip_legitimize_reload_address): Define.
2018 * config/picochip/picochip.md (supported_compare1): Define.
2020 2010-04-30 Jan Hubicka <jh@suse.cz>
2022 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
2023 (cgraph_global_info): Remove inlined.
2024 (LTO_cgraph_tag_names): Remove.
2025 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
2026 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
2027 simplify cgraph tags and document.
2028 (lto_output_node): Use only LTO_cgraph_unavail_node and
2029 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
2030 for_functions_valid, global info, process and output flags.
2031 (input_overwrite_node): Initialize estimated stack size and
2032 estimated growth. Do not read flags we no longer store.
2033 (input_node): Likewise do not read info no longer stored.
2034 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
2037 2010-04-30 Richard Guenther <rguenther@suse.de>
2039 PR tree-optimization/43879
2040 * tree-ssa-structalias.c (get_constraint_for_1): Properly
2041 handle non-zero initializers.
2043 2010-04-30 Richard Guenther <rguenther@suse.de>
2045 * builtins.c (fold_builtin_1): Delete free (0).
2047 2010-04-29 Jan Hubicka <jh@suse.cz>
2049 * gengtype.c (open_base_files): Add lto-streamer.h
2050 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
2051 (pass_ipa_cp): GGC collect.
2052 * toplev. (compile_file): Do not output symbols.
2053 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
2054 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
2055 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
2056 * lto-section-in.c: Include ggc.h
2057 (lto_new_in_decl_state): Alloc in GGC.
2058 (lto_delete_in_decl_state): Likewise.
2059 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
2062 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
2065 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
2066 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
2067 (HONOR_REG_ALLOC_ORDER): Describe new macro.
2068 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
2069 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
2070 account only if HONOR_REG_ALLOC_ORDER is not defined.
2071 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
2072 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
2074 2010-04-29 Jon Grant <04@jguk.org>
2076 * collect2.c (vflag): Change type from int to bool.
2078 (helpflag): New global bool.
2079 (main): Set vflag and debug with boolean, not integer truth values.
2080 Accept new "--help" option and output usage text if found.
2081 * collect2.h (vflag): Update prototype.
2084 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
2087 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
2089 2010-04-29 Richard Guenther <rguenther@suse.de>
2092 * plugin.h (invoke_plugin_callbacks): Annotate arguments
2093 with ATTRIBUTE_UNUSED.
2095 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
2098 * config/i386/i386.c (get_some_local_dynamic_name): Replace
2099 INSN_P with NONDEBUG_INSN_P.
2100 (distance_non_agu_define): Likewise.
2101 (distance_agu_use): Likewise.
2103 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
2105 From Dominique d'Humieres <dominiq@lps.ens.fr>
2107 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
2110 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
2112 * plugin.h (invoke_plugin_callbacks): New inline function.
2113 * plugin.c (flag_plugin_added): New global flag.
2114 (add_new_plugin): Initialize above flag.
2115 (invoke_plugin_callbacks): Rename to ...
2116 (invoke_plugin_callbacks_full): ... this.
2118 2010-04-28 Jan Hubicka <jh@suse.cz>
2120 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
2121 (lto_varpool_replace_node): New.
2122 (lto_symtab_resolve_symbols): Resolve varpool nodes.
2123 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
2124 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
2125 * cgraph.h (varpool_node_ptr): New type.
2126 (varpool_node_ptr): New vector.
2127 (varpool_node_set_def): New structure.
2128 (varpool_node_set): New type.
2129 (varpool_node_set): New vector.
2130 (varpool_node_set_element_def): New structure.
2131 (varpool_node_set_element, const_varpool_node_set_element): New types.
2132 (varpool_node_set_iterator): New type.
2133 (varpool_node): Add prev pointers, add used_from_other_partition,
2135 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
2136 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
2137 varpool_get_node, varpool_remove_node): Declare.
2138 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
2139 varpool_node_set_size): New inlines.
2140 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
2141 * tree-pass.h (varpool_node_set_def): Forward declare.
2142 (ipa_opt_pass_d): Summary writting takes vnode sets too.
2143 (ipa_write_optimization_summaries): Update prototype.
2144 * ipa-cp.c (ipcp_write_summary): Update.
2145 * ipa-reference.c (ipa_reference_write_summary): Update.
2146 * lto-cgraph.c (lto_output_varpool_node): New static function.
2147 (output_varpool): New function.
2148 (input_varpool_node): New static function.
2149 (input_varpool_1): New function.
2150 (input_cgraph): Input varpool.
2151 * ipa-pure-const.c (pure_const_write_summary): Update.
2152 * lto-streamer-out.c (lto_output): Update, output varpool too.
2153 (write_global_stream): Kill WPA hack.
2154 (produce_asm_for_decls): Update.
2155 (output_alias_pair_p): Handle variables.
2156 (output_unreferenced_globals): Output only needed partition of varpool.
2157 * ipa-inline.c (inline_write_summary): Update.
2158 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
2160 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
2161 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
2162 varpool_node_set_new, varpool_node_set_add,
2163 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
2164 debug_varpool_node_set): New functions.
2165 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
2166 (execute_one_pass): Process new decls too.
2167 (ipa_write_summaries_2): Pass around vsets.
2168 (ipa_write_summaries_1): Likewise.
2169 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
2171 (ipa_write_optimization_summaries_1): Pass around vsets.
2172 (ipa_write_optimization_summaries): Likewise.
2173 * varpool.c (varpool_get_node): New.
2174 (varpool_node): Update doubly linked lists.
2175 (varpool_remove_node): New.
2176 (dump_varpool_node): More dumping.
2177 (varpool_enqueue_needed_node): Update doubly linked lists.
2178 (decide_is_variable_needed): Kill ltrans hack.
2179 (varpool_finalize_decl): Kill lto hack.
2180 (varpool_assemble_decl): Skip decls in other partitions.
2181 (varpool_assemble_pending_decls): Update doubly linkes lists.
2182 (varpool_empty_needed_queue): Likewise.
2183 (varpool_extra_name_alias): Likewise.
2184 * lto-streamer.c (lto_get_section_name): Add vars section.
2185 * lto-streamer.h (lto_section_type): Update.
2186 (output_varpool, input_varpool): Declare.
2188 2010-04-28 Mike Stump <mikestump@comcast.net>
2190 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
2192 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
2194 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
2195 record or union type with RECORD_OR_UNION_TYPE_P predicate.
2196 (lto_input_ts_type_tree_pointers): Likewise.
2197 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
2198 (lto_output_ts_type_tree_pointers): Likewise.
2200 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
2202 Uniquization of constants at the Tree level
2203 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
2204 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
2206 (tree_output_constant_def): Declare.
2207 * gimplify.c (gimplify_init_constructor): When using block copy, first
2208 uniquize the constant constructor on the RHS.
2209 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
2210 DECL_IN_CONSTANT_POOL flag.
2211 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
2212 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
2214 (assemble_variable): Deal with symbols belonging to the tree constant
2216 (get_constant_section): Add ALIGN parameter and simplify.
2217 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
2218 (assemble_constant_contents): Use the expression of the VAR_DECL.
2219 (output_constant_def_contents): Use the alignment of the VAR_DECL.
2220 (tree_output_constant_def): New global function.
2221 (mark_constant): Use the expression of the VAR_DECL.
2222 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
2224 (output_object_block): Likewise and assemble the expression.
2226 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
2228 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
2229 hash_tree, eq_tree): New tree hash table.
2230 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
2231 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
2232 lto_orig_address_remove): Reimplement.
2234 2010-04-28 Xinliang David Li <davidxl@google.com>
2237 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
2238 (compute_uninit_opnds_pos): New function.
2239 (is_non_loop_exit_postdominating): New function.
2240 (compute_control_dep_chain): New function.
2241 (find_pdom): New function.
2242 (convert_control_dep_chain_into_preds): New function.
2243 (find_predicates): New function.
2244 (find_control_equiv_block): New function.
2245 (collect_phi_def_edges): New function.
2246 (find_def_preds): New function.
2247 (find_dom): New function.
2248 (dump_predicates): New function.
2249 (get_cmp_code): New function.
2250 (is_value_included_in): New function.
2251 (find_matching_predicate_in_rest_chains): New function.
2252 (use_pred_not_overlap_with_undef_path_pred): New function.
2253 (is_use_properly_guarded): New function.
2254 (normalize_cond_1): New function.
2255 (is_and_or_or): New function.
2256 (normalize_cond): New function.
2257 (is_gcond_subset_of): New function.
2258 (is_subset_of_any): New function.
2259 (is_or_set_subset_of): New function.
2260 (is_and_set_subset_of): New function.
2261 (is_norm_cond_subset_of): New function.
2262 (is_pred_expr_subset_of): New function.
2263 (is_pred_chain_subset_of): New function.
2264 (is_included_in): New function.
2265 (is_superset_of): New function.
2266 (find_uninit_use): New function.
2267 (warn_uninitialized_phi): New function.
2268 (compute_possibly_undefined_names): New function.
2269 (ssa_undefined_value_p): New function.
2270 (execute_late_warn_uninitialized): New function.
2271 * tree-ssa.c (ssa_undefined_value_p): Removed.
2272 (warn_uninit): Changed to extern.
2273 (warn_uninitialized_phi): Removed.
2274 (warn_uninitialized_vars): Changed to extern.
2275 (execute_late_warn_uninitialized): Removed
2276 * tree-flow.h: Add new prototypes.
2277 * timevar.def: Add new time variable.
2278 * Makefile.in: Add new build file.
2280 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
2282 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
2285 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2288 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
2290 2010-04-28 Martin Jambor <mjambor@suse.cz>
2292 * cgraph.h (struct cgraph_node): New field indirect_calls.
2293 (struct cgraph_indirect_call_info): New type.
2294 (struct cgraph_edge): Removed field indirect_call. New fields
2295 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
2296 (cgraph_create_indirect_edge): Declare.
2297 (cgraph_make_edge_direct): Likewise.
2298 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
2299 * ipa-prop.h (struct ipa_param_call_note): Removed.
2300 (struct ipa_node_params): Removed field param_calls.
2301 (ipa_create_all_structures_for_iinln): Declare.
2302 * cgraph.c: Described indirect edges and uids in initial comment.
2303 (cgraph_add_edge_to_call_site_hash): New function.
2304 (cgraph_edge): Search also among the indirect edges, use
2305 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
2306 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
2307 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
2309 (initialize_inline_failed): Assign a reason to indirect edges.
2310 (cgraph_create_edge_1): New function.
2311 (cgraph_create_edge): Moved some functionality to
2312 cgraph_create_edge_1.
2313 (cgraph_create_indirect_edge): New function.
2314 (cgraph_edge_remove_callee): Add an assert checking for
2316 (cgraph_edge_remove_caller): Special-case indirect edges.
2317 (cgraph_remove_edge): Likewise.
2318 (cgraph_set_edge_callee): New function.
2319 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
2320 (cgraph_make_edge_direct): New function.
2321 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
2322 the declaration of the call statement matches.
2323 (cgraph_node_remove_callees): Special-case indirect edges.
2324 (cgraph_clone_edge): Likewise.
2325 (cgraph_clone_node): Clone also the indirect edges.
2326 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
2327 indirect_call, dump count of indirect_calls edges.
2328 * ipa-prop.c (iinlining_processed_edges): New variable.
2329 (ipa_note_param_call): Create indirect edges instead of
2330 creating notes. New parameter node.
2331 (ipa_analyze_call_uses): New parameter node, pass it on to
2332 ipa_note_param_call.
2333 (ipa_analyze_stmt_uses): Likewise.
2334 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
2335 (print_edge_addition_message): Work on edges rather than on notes.
2336 (update_call_notes_after_inlining): Likewise, renamed to
2337 update_indirect_edges_after_inlining.
2338 (ipa_create_all_structures_for_iinln): New function.
2339 (ipa_free_node_params_substructures): Do not free notes.
2340 (ipa_edge_duplication_hook): Propagate bits within
2341 iinlining_processed_edges bitmap.
2342 (ipa_node_duplication_hook): Do not duplicate notes.
2343 (free_all_ipa_structures_after_ipa_cp): Renamed to
2344 ipa_free_all_structures_after_ipa_cp.
2345 (free_all_ipa_structures_after_iinln): Renamed to
2346 ipa_free_all_structures_after_iinln.
2347 (ipa_write_param_call_note): Removed.
2348 (ipa_read_param_call_note): Removed.
2349 (ipa_write_indirect_edge_info): New function.
2350 (ipa_read_indirect_edge_info): Likewise.
2351 (ipa_write_node_info): Do not stream notes, do stream information
2353 (ipa_read_node_info): Likewise.
2354 (lto_ipa_fixup_call_notes): Removed.
2355 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
2356 * ipa-inline.c (pass_ipa_inline): Likewise.
2357 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
2358 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
2359 * tree-inline.c (copy_bb): Removed an unnecessary double check for
2361 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
2363 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
2364 (output_cgraph): Stream also indirect edges.
2365 (lto_output_edge): Added capability to stream indirect edges.
2366 (input_edge): Likewise.
2367 (input_cgraph_1): Likewise.
2368 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
2371 2010-04-28 Richard Guenther <rguenther@suse.de>
2373 PR tree-optimization/43879
2374 PR tree-optimization/43909
2375 * tree-ssa-structalias.c (struct variable_info): Add
2376 only_restrict_pointers flag.
2377 (new_var_info): Initialize it. Increment stats.total_vars here.
2378 (create_function_info_for): Do not increment stats.total_vars here.
2379 (get_function_part_constraint): Fix build with C++.
2380 (insert_into_field_list): Remove.
2381 (push_fields_onto_fieldstack): Properly merge fields.
2382 (create_variable_info_for): Split and simplify.
2383 (create_variable_info_for_1): New piece.
2384 (intra_create_variable_infos): Properly make restrict constraints
2387 2010-04-28 Richard Guenther <rguenther@suse.de>
2390 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
2392 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
2393 Jan Hubicka <hubicka@ucw.cz>
2395 * doc/invoke.texi (-Wsuggest-attribute=const,
2396 -Wsuggest-attribute=pure): Document.
2397 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
2398 (function_always_visible_to_compiler_p,
2399 suggest_attribute, warn_function_pure, warn_function_const):
2401 (check_call): Improve debug info.
2402 (analyze_function): Do not check availability.
2403 (add_new_function): Check availability.
2404 (propagate): Output warnings.
2405 (skip_function_for_local_pure_const): New function.
2406 (local_pure_const): Use it; output warnings.
2407 * common.opt (Wsuggest-attribute=const,
2408 Wsuggest-attribute=pure): New.
2410 2010-04-27 Jakub Jelinek <jakub@redhat.com>
2412 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
2413 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
2414 or DW_CFA_def_cfa_offset{,_sf}.
2416 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
2418 * tree.h: Fix truncated long macros.
2420 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
2422 * collect2.c (TARGET_64BIT): Redefine to target's default.
2423 * tlink.c: Likewise.
2424 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
2425 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
2426 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
2427 for underscoring __USER_LABEL_PREFIX__.
2428 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
2429 (SUB_LINK_ENTRY32): New.
2430 (SUB_LINK_ENTRY64): New.
2431 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
2432 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
2433 (SUB_LINK_ENTRY64): New.
2434 (SUB_LINK_ENTRY): New.
2435 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
2436 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
2437 x64 target is choosen.
2438 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
2439 * configure: Regenerated.
2440 * configure.ac (leading-mingw64-underscores): Option added.
2442 2010-04-27 Jan Hubicka <jh@suse.cz>
2444 * doc/invoke.texi (-fipa-profile): Document.
2445 * opts.c (decode_options): Enable ipa-profile at -O1.
2446 * timevar.def (TV_IPA_PROFILE): Define.
2447 * common.opt (fipa-profile): Add.
2448 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
2450 (cgraph_propagate_frequency): Handle only local ones.
2451 * tree-pass.h (pass_ipa_profile): Declare.
2452 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
2453 (pass_ipa_profile): Use TV_IPA_PROFILE.
2454 * ipa.c (ipa_profile): New function.
2455 (gate_ipa_profile): Likewise.
2456 (pass_ipa_profile): New global variable.
2457 * passes.c (pass_ipa_profile): New.
2459 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
2461 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
2463 2010-04-27 Martin Jambor <mjambor@suse.cz>
2466 * ipa.c (dissolve_same_comdat_group_list): New function.
2467 (function_and_variable_visibility): Call
2468 dissolve_same_comdat_group_list when comdat group contains external or
2470 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
2471 lists are circular and that they contain only DECL_ONE_ONLY nodes.
2473 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
2475 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
2476 (const_hash_1) <VECTOR_CST>: New case.
2477 (compare_constant) <VECTOR_CST>: Likewise.
2478 <ADDR_EXPR>: Deal with LABEL_REFs.
2479 (copy_constant) <VECTOR_CST>: New case.
2481 2010-04-27 Jan Hubicka <jh@suse.cz>
2483 * cgraph.c (cgraph_propagate_frequency): New function.
2484 * cgraph.h (cgraph_propagate_frequency): Declare.
2485 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
2486 cgraph_propagate_frequency.
2488 2010-04-27 Jakub Jelinek <jakub@redhat.com>
2490 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
2492 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
2495 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
2496 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
2497 here to determine which regs to push and how much stack to reserve.
2499 2010-04-27 Jie Zhang <jie@codesourcery.com>
2501 * doc/gimple.texi (gimple_statement_with_ops): Remove
2502 addresses_taken field.
2503 (gimple_statement_with_memory_ops): Likewise.
2505 2010-04-27 Jan Hubicka <jh@suse.cz>
2507 * tree-inline.c (eni_inlining_weights): Remove.
2508 (estimate_num_insns): Special case more builtins.
2510 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
2513 * c-typeck.c (build_binary_op): Move forward check for comparison
2514 pointer with null pointer constant and adjust the diagnostic message.
2516 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
2519 * configure.ac (gcc_cv_as_section_has_align): Set if installed
2520 binutils supports extended .section directive needed by LTO, or
2521 warn if older binutils found.
2522 (LTO_BINARY_READER): New AC_SUBST'd variable.
2523 (LTO_USE_LIBELF): Likewise.
2524 * gcc/config.gcc (lto_binary_reader): New target-specific configure
2526 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
2527 (LTO_USE_LIBELF): Likewise.
2528 * configure: Regenerate.
2530 * collect2.c (is_elf): Rename from this ...
2531 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
2532 object files in addition to ELF-formatted ones.
2533 (scan_prog_file): Caller updated. Also allow for LTO info marker
2534 symbol to be prefixed or not by an extra underscore.
2536 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
2537 * config/i386/winnt.c: Also #include lto-streamer.h
2538 (i386_pe_asm_named_section): Specify 1-byte section alignment for
2540 (i386_pe_asm_output_aligned_decl_common): Add comment.
2541 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
2543 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
2546 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
2547 Add missing earlyclobber for second alternative.
2549 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
2551 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
2552 bits for artificial defs at the top of the block.
2553 * fwprop.c (single_def_use_enter_block): Don't call it.
2555 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
2558 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
2559 instead of "$gcc_cv_objdump -T".
2560 Use "-undefined dynamic_lookup" on darwin.
2561 * gcc/configure: Regenerate.
2563 2010-04-26 Jakub Jelinek <jakub@redhat.com>
2566 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
2568 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
2570 * c-parser.c (struct c_token): Move location field up.
2571 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
2572 (struct c_declspecs): Convert typespec_word, storage_class, and
2573 default_int_p into bitfields.
2574 (struct c_declarator): Move loc field up.
2576 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
2578 * cfgloop.h (struct loop): Move can_be_parallel field up.
2579 * ipa-prop.h (struct ip_node_params): Move bitfields up.
2580 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
2582 (struct iv_cand): Convert pos field into a bitfield.
2583 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
2585 (struct _stmt_vec_info): Shuffle fields for better packing.
2587 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
2589 * varasm.c (IN_NAMED_SECTION): Remove guard.
2590 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
2591 (IN_NAMED_SECTION_P): ...this.
2592 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
2593 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
2595 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
2597 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
2598 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
2599 of shadowing it. Fix comments.
2601 2010-04-26 Jan Hubicka <jh@suse.cz>
2603 * cgraph.c (cgraph_create_node): Set node frequency to normal.
2604 (cgraph_clone_node): Copy function frequency.
2605 * cgraph.h (node_frequency): New enum
2606 (struct cgraph_node): Add.
2607 * final.c (rest_of_clean_state): Update.
2608 * lto-cgraph.c (lto_output_node): Output node frequency.
2609 (input_overwrite_node): Input node frequency.
2610 * tre-ssa-loop-ivopts (computation_cost): Update.
2611 * lto-streamer-out.c (output_function): Do not output function
2613 * predict.c (maybe_hot_frequency_p): Update and handle functions
2615 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
2617 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
2618 (compute_function_frequency): Set noreturn functions to be executed
2620 (choose_function_section): Update.
2621 * lto-streamer-in.c (input_function): Do not input function frequency.
2622 * function.c (allocate_struct_function): Do not initialize function
2624 * function.h (function_frequency): Remove.
2625 (struct function): Remove function frequency.
2626 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
2627 (try_update): Update.
2628 * tree-inline.c (initialize_cfun): Do not update function frequency.
2629 * passes.c (pass_init_dump_file): Update.
2630 * i386.c (ix86_compute_frame_layout): Update.
2631 (ix86_pad_returns): Update.
2633 2010-04-26 Jie Zhang <jie@codesourcery.com>
2635 PR tree-optimization/43833
2636 * tree-vrp.c (range_int_cst_p): New.
2637 (range_int_cst_singleton_p): New.
2638 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
2639 when both operands are constants. Use range_int_cst_p in
2642 2010-04-26 Jan Hubicka <jh@suse.cz>
2644 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
2646 2010-04-26 Richard Guenther <rguenther@suse.de>
2649 * gimple.c (gimple_decl_printable_name): Deal gracefully
2650 with a NULL DECL_NAME.
2652 2010-04-26 Richard Guenther <rguenther@suse.de>
2655 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
2656 if emitting debug information and it is either a function
2657 or a namespace decl.
2659 2010-04-26 Ira Rosen <irar@il.ibm.com>
2661 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
2662 determine if the statement is vectorizable, and a macro to access it.
2663 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
2664 Skip statements that can't be vectorized. If the analysis fails,
2665 mark the statement as unvectorizable if vectorizing basic block.
2666 (vect_compute_data_refs_alignment): Likewise.
2667 (vect_verify_datarefs_alignment): Skip statements marked as
2668 unvectorizable. Add print.
2669 (vect_analyze_group_access): Skip statements that can't be
2670 vectorized. If the analysis fails, mark the statement as
2671 unvectorizable if vectorizing basic block.
2672 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
2673 * tree-vect-stmts.c (vectorizable_store): Fix the number of
2674 generated stmts for SLP.
2675 (new_stmt_vec_info): Initialize the new field.
2676 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
2677 statements marked as unvectorizable.
2679 2010-04-25 Joseph Myers <joseph@codesourcery.com>
2681 * c-common.c (flag_isoc1x): New.
2682 (flag_isoc99): Update comment.
2683 * c-common.h (flag_isoc1x): New.
2684 (flag_isoc99): Update comment.
2685 * c-cppbuiltin.c (builtin_define_float_constants): Also define
2686 __<type>_DECIMAL_DIG__.
2687 * c-opts.c (set_std_c1x): New.
2688 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
2689 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
2690 * c.opt (-std=c1x, -std=gnu1x): New options.
2691 * doc/cpp.texi: Mention -std=c1x.
2692 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
2693 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
2694 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
2695 * doc/standards.texi: Mention C1X.
2696 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
2697 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
2698 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
2701 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
2703 * config/i386/gmon-sol2.c (_mcleanup): Change format string
2704 placeholder from 0x%x to %#x.
2705 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
2706 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
2707 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
2708 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
2709 * config/i386/i386.c (ix86_target_string): Ditto.
2710 (output_pic_addr_const): Ditto.
2711 (print_operand): Ditto.
2713 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
2715 * combine.c (find_split_point): Add third argument. Use it
2716 to find nested multiply-accumulate instructions. Adjust calls.
2717 (try_combine): Adjust call to find_split_point.
2719 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
2721 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
2723 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
2725 PR tree-optimization/41442
2726 * fold-const.c (merge_truthop_with_opposite_arm): New function.
2727 (fold_binary_loc): Call it.
2729 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
2731 * toplev.c (general_init): Set default for fdiagnostics-show-option.
2732 * opts.c (common_handle_option): Allow disabling it.
2733 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
2735 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
2737 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
2738 between modes if both types are integral.
2740 2010-04-23 Richard Guenther <rguenther@suse.de>
2742 PR tree-optimization/43572
2743 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
2745 2010-04-23 Richard Guenther <rguenther@suse.de>
2748 * tree-inline.c (tree_can_inline_p): Also check compatibility
2751 2010-04-23 Martin Jambor <mjambor@suse.cz>
2753 PR tree-optimization/43846
2754 * tree-sra.c (struct access): New flag grp_assignment_read.
2755 (build_accesses_from_assign): Set grp_assignment_read.
2756 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
2757 (enum mark_read_status): New type.
2758 (analyze_access_subtree): Propagate grp_assignment_read, create
2759 accesses also if both direct_read and root->grp_assignment_read.
2761 2010-04-23 Martin Jambor <mjambor@suse.cz>
2764 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
2765 function does not have type attributes.
2767 2010-04-23 Richard Guenther <rguenther@suse.de>
2770 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
2773 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2775 * sese.h (create_if_region_on_edge): Remove.
2777 * sese.c (create_if_region_on_edge): Make static.
2779 * tree-inline.c: Do not include ggc.h.
2781 * expr.c: Do not include ggc.h.
2783 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
2786 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
2789 * config/sh/sh.c (find_barrier): Don't emit a constant pool
2790 in the middle of insns for casesi_worker_2.
2792 2010-04-22 David Edelsohn <edelsohn@gnu.org>
2794 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
2796 2010-04-22 Ira Rosen <irar@il.ibm.com>
2798 PR tree-optimization/43842
2799 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
2800 loop unrolling in update of exit phis. Fix comment.
2801 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
2802 least two reduction statements in the loop before starting SLP
2805 2010-04-22 Nick Clifton <nickc@redhat.com>
2807 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
2809 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
2811 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
2814 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2816 * tree-parloops.c (loop_parallel_p): New argument
2817 parloop_obstack. Pass it down.
2818 (parallelize_loops): New variable parloop_obstack. Initialize it,
2819 pass it down, free it.
2821 * tree-loop-linear.c (linear_transform_loops): Pass down
2824 * tree-data-ref.h (lambda_compute_access_matrices): New argument
2825 of type struct obstack *.
2827 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
2828 scratch_obstack. Initialize it, pass down, free it.
2830 * lambda.h (lambda_loop_new): Remove.
2831 (lambda_matrix_new, lambda_matrix_inverse)
2832 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
2833 argument of type struct obstack *.
2835 * lambda-trans.c (lambda_trans_matrix_new): New argument
2836 lambda_obstack. Pass it down, use obstack allocation for ret.
2837 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
2840 * lambda-mat.c (lambda_matrix_get_column)
2841 (lambda_matrix_project_to_null): Remove.
2842 (lambda_matrix_new): New argument lambda_obstack. Use obstack
2844 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
2847 * lambda-code.c (lambda_loop_new): New function.
2848 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
2849 (lambda_compute_auxillary_space, lambda_compute_target_space)
2850 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
2851 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
2852 (build_access_matrix): New argument lambda_obstack. Use obstack
2854 (lambda_compute_step_signs, lambda_compute_access_matrices): New
2855 argument lambda_obstack. Pass it down.
2857 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
2859 * optabs.h (expand_widening_mult): Declare.
2861 2010-04-22 Richard Guenther <rguenther@suse.de>
2863 PR tree-optimization/43845
2864 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
2865 lookup the CALL_EXPR function and arguments.
2867 2010-04-22 Nick Clifton <nickc@redhat.com>
2869 * config/stormy16/stormy16.c
2870 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
2871 * config/stormy16/stormy16.h: Tidy up formatting.
2872 (DONT_USE_BUILTIN_SETJMP): Remove definition.
2873 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
2874 (ineqbranchsi): Delete pattern.
2875 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
2876 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
2877 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
2878 stormy16-lib2-ucmpsi2.c.
2880 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
2882 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
2883 df_simulate_find_noclobber_defs as appropriate. Keep track of an
2884 extra set merge_set_noclobber, and use it to relax the final test
2886 * df.h (df_simulate_find_noclobber_defs): Declare.
2887 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
2889 (df_simulate_find_noclobber_defs): New function.
2891 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
2893 * config/i386/i386.md: Use {} around multi-line preparation statements.
2895 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2897 * c-tree.h (push_init_level, pop_init_level, set_init_index)
2898 (process_init_element): New argument of type struct obstack *.
2900 * c-typeck.c (push_init_level, pop_init_level, set_designator)
2901 (set_init_index, set_init_label, set_nonincremental_init)
2902 (set_nonincremental_init_from_string, find_init_member)
2903 (output_init_element, output_pending_init_elements)
2904 (process_init_element): New argument braced_init_obstack. Pass it
2906 (push_range_stack, add_pending_init): New argument
2907 braced_init_obstack. Use obstack allocation.
2909 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
2910 braced_init_obstack. Pass it down.
2911 (c_parser_braced_init): New variables ret, braced_init_obstack.
2912 Initialize obstack, pass it down and finally free it.
2914 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
2917 * tree-pass.h (pass_optimize_widening_mul): Declare.
2918 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
2919 gate_optimize_widening_mul): New static functions.
2920 (pass_optimize_widening_mul): New.
2921 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
2922 <case MULT_EXPR>: Remove support for widening multiplies.
2923 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
2924 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
2925 simplify_gen_unary rather than directly building extensions.
2926 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
2928 * expmed.c (expand_widening_mult): New function.
2929 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
2931 2010-04-21 Jan Hubicka <jh@suse.cz>
2933 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
2934 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
2935 * lto-wpa-fixup.c: Remove.
2936 * Makefile.in (lto-wpa-fixup.o): Remove.
2937 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
2938 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
2939 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
2941 2010-04-21 Jan Hubicka <jh@suse.cz>
2943 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
2944 add write_optimization_summary, read_optimization_summary.
2945 (ipa_write_summaries_of_cgraph_node_set): Remove.
2946 (ipa_write_optimization_summaries): Declare.
2947 (ipa_read_optimization_summaries): Declare.
2948 * ipa-cp.c (pass_ipa_cp): Update.
2949 * ipa-reference.c (pass_ipa_reference): Update.
2950 * ipa-pure-const.c (pass_ipa_pure_const): Update.
2951 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
2953 * ipa-inline.c (pass_ipa_inline): Update.
2954 * ipa.c (pass_ipa_whole_program): Update.
2955 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
2956 * passes.c (ipa_write_summaries_1): Do not test wpa.
2957 (ipa_write_optimization_summaries_1): New.
2958 (ipa_write_optimization_summaries): New.
2959 (ipa_read_summaries): Do not test ltrans.
2960 (ipa_read_optimization_summaries_1): New.
2961 (ipa_read_optimization_summaries): New.
2963 2010-04-21 Jan Hubicka <jh@suse.cz>
2965 * lto-cgraph.c (lto_output_node): Do not output comdat groups
2967 (output_cgraph): Do not arrange comdat groups for boundary nodes.
2969 2010-04-21 Jakub Jelinek <jakub@redhat.com>
2972 * dwarf2out.c (add_name_and_src_coords_attributes): Add
2973 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
2975 2010-04-21 Jan Hubicka <jh@suse.cz>
2977 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
2979 2010-04-21 Jan Hubicka <jh@suse.cz>
2981 * varpool.c (decide_is_variable_needed): Variable is always needed
2984 2010-04-21 Jan Hubicka <jh@suse.cz>
2986 * opts.c (decode_options): Enable pure-const pass for whopr.
2988 2010-04-21 Jan Hubicka <jh@suse.cz>
2990 * cgraph.c (dump_cgraph_node): Dump also assembler name.
2991 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
2993 (cgraph_decide_inlining): Do not expect callee to be removed in all
2996 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
2998 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
3000 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
3002 * config/i386/i386.md (x86_shrd): Add athlon_decode and
3003 amdfam10_decode attributes.
3005 2010-04-21 Jakub Jelinek <jakub@redhat.com>
3008 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
3009 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
3010 (lower_copyprivate_clauses): Use private var in outer
3011 context instead of original var. Make sure the types
3012 are correct for VLAs.
3014 2010-04-21 Richard Guenther <rguenther@suse.de>
3016 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
3017 to non-pointer objects.
3019 2010-04-21 Jakub Jelinek <jakub@redhat.com>
3021 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
3022 last chain entry if it starts with the still current label.
3023 (add_location_or_const_value_attribute): Check that
3024 loc_list->first->next is NULL instead of comparing ->first with ->last.
3025 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
3026 to add_var_loc_to_decl.
3028 * dwarf2out.c (output_call_frame_info): For dw_cie_version
3029 >= 4 add also address size and segment size fields into CIE header.
3031 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
3032 long as address size is the same as sizeof (void *) and
3034 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
3035 address size or segment size is unexpected, return DW_EH_PE_omit.
3036 (classify_object_over_fdes): If get_cie_encoding returned
3037 DW_EH_PE_omit, return -1.
3038 (init_object): If classify_object_over_fdes returned -1,
3039 pretend there were no FDEs at all.
3041 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
3043 * config/i386/i386.md (bswap<mode>2): Macroize expander from
3044 bswap{si,di}2 using SWI48 mode iterator.
3045 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
3046 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
3047 set modrm attribute of bswap insn to 0 and remove length attribute.
3048 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
3049 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
3050 set mode attribute to <MODE> and remove length attribute.
3052 2010-04-20 James E. Wilson <wilson@codesourcery.com>
3054 PR rtl-optimization/43520
3055 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
3056 zero available registers.
3058 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3060 * builtins.c (fold_builtin_cproj): Fold more cases.
3062 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3064 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
3065 (fold_builtin_1): Fold builtin cproj.
3066 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
3067 Use ATTR_CONST_NOTHROW_LIST.
3069 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
3071 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
3072 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
3073 ffsi2_no_cmove for !TARGET_CMOVE.
3074 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
3075 (ffssi2): Remove expander.
3076 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
3078 (ctz<mode>2): Ditto from ctz{si,di}2.
3079 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
3081 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
3084 2010-04-20 Jakub Jelinek <jakub@redhat.com>
3086 * dwarf2out.c (AT_linkage_name): Define.
3087 (clone_as_declaration): Handle DW_AT_linkage_name.
3088 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
3089 of DW_AT_MIPS_linkage_name.
3090 (move_linkage_attr): Likewise.
3091 (dwarf2out_finish): Likewise.
3093 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
3096 * fold-const.c (fold_comparison): New folding rule.
3098 2010-04-20 Anatoly Sokolov <aesok@post.ru>
3100 * double-int.h (double_int_setbit): Declare.
3101 * double-int.c (double_int_setbit): New function.
3102 * rtl.h (immed_double_int_const): Declare.
3103 * emit-rtl.c (immed_double_int_const): New function.
3104 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
3105 and immed_double_int_const functions.
3106 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
3107 expand_copysign_bit): (Ditto.).
3108 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
3109 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
3110 * dojump.c (prefer_and_bit_test): (Ditto.).
3111 * expr.c (convert_modes, reduce_to_bit_field_precision,
3112 const_vector_from_tree): (Ditto.).
3113 * expmed.c (mask_rtx, lshift_value): (Ditto.).
3115 2010-04-20 Jan Hubicka <jh@suse.cz>
3117 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
3118 (dump_cgraph_node): Dump new flags.
3119 * cgraph.h (struct cgraph_node): Add flags
3120 reachable_from_other_partition and in_other_partition.
3121 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
3122 other partition can not be removed.
3123 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
3124 the other partition must be output; silence sanity checking on
3125 leaking functions bodies from other paritition.
3126 * lto-cgraph.c (reachable_from_other_partition_p): New function.
3127 (lto_output_node): Output new flags; do not sanity check that inline
3128 clones are output; drop lto_forced_extern_inline_p code; do not mock
3129 visibility flags at partition boundaries.
3130 (add_node_to): New function.
3131 (output_cgraph): Use it to sort functions so masters appear before
3133 (input_overwrite_node): Input new flags.
3134 * passes.c (ipa_write_summaries): Do not call
3135 lto_new_extern_inline_states.
3136 * lto-section-out.c (forced_extern_inline,
3137 lto_new_extern_inline_states lto_delete_extern_inline_states,
3138 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
3139 * lto-streamer.h (lto_new_extern_inline_states,
3140 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
3141 lto_forced_extern_inline_p): Kill.
3143 2010-04-20 Richard Guenther <rguenther@suse.de>
3145 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
3146 from vars that can have pointers.
3147 (process_constraint): Dump useless constraints.
3149 2010-04-20 Richard Guenther <rguenther@suse.de>
3151 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
3152 (dump_sa_points_to_info): Remove asserts.
3153 (init_base_vars): nothing_id isn't an escape point nor does it
3156 2010-04-20 Jakub Jelinek <jakub@redhat.com>
3158 * tree.h (TYPE_REF_IS_RVALUE): Define.
3159 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
3160 should_move_die_to_comdat, prune_unused_types_walk): Handle
3161 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
3162 (modified_type_die, gen_reference_type_die): Emit
3163 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
3164 if TYPE_REF_IS_RVALUE and -gdwarf-4.
3166 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3169 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
3170 calls for -fpic -m31 if they have been sibcall optimized.
3172 2010-04-19 James E. Wilson <wilson@codesourcery.com>
3174 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
3175 ar.lc fixed and call-used.
3177 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
3179 2010-04-19 Jan Hubicka <jh@suse.cz>
3181 * opts.c (decode_options): Disable whpr incompatible passes.
3182 * lto/lto.c (lto_1_to_1_map): Skip clones.
3183 (read_cgraph_and_symbols): Do not mark everything as needed.
3184 (do_whole_program_analysis): Do map only after optimizing;
3185 set proper cgraph_state; use passmanager.
3187 2010-04-19 DJ Delorie <dj@redhat.com>
3189 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
3190 POINTER_PLUS_EXPR and fix them.
3192 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
3194 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
3195 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
3196 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
3197 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
3198 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
3199 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
3200 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
3201 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
3202 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
3203 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
3204 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
3206 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
3208 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
3209 (check_cond_move_block): Likewise.
3210 (cond_move_process_if_block): Likewise.
3211 (noce_find_if_block): Improve formatting.
3212 (find_if_header): Pass 0 to memset and tweak conditions.
3213 (cond_exec_find_if_block): Fix long lines and tweak conditions.
3215 2010-04-19 Jakub Jelinek <jakub@redhat.com>
3217 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
3221 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
3222 with non-local decl doesn't need chain.
3224 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
3226 * ira-color.c (allocno_reload_assign): Avoid accumulating
3227 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
3229 2010-04-19 Martin Jambor <mjambor@suse.cz>
3231 * gimple.h (create_tmp_reg): Declare.
3232 * gimplify.c (create_tmp_reg): New function.
3233 (gimplify_return_expr): Use create_tmp_reg.
3234 (gimplify_omp_atomic): Likewise.
3235 (gimple_regimplify_operands): Likewise.
3236 * tree-dfa.c (make_rename_temp): Likewise.
3237 * tree-predcom.c (predcom_tmp_var): Likewise.
3238 (reassociate_to_the_same_stmt): Likewise.
3239 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
3240 (get_replaced_param_substitute): Likewise.
3241 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
3242 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
3243 * tree-ssa-pre.c (get_representative_for): Likewise.
3244 (create_expression_by_pieces): Likewise.
3245 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
3246 (create_tailcall_accumulator): Likewise.
3248 2010-04-19 Martin Jambor <mjambor@suse.cz>
3250 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
3252 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
3254 2010-04-19 Richard Guenther <rguenther@suse.de>
3256 PR tree-optimization/43796
3257 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
3258 from SCEV in the lattice.
3259 (vrp_visit_phi_node): Dump change.
3261 2010-04-19 Richard Guenther <rguenther@suse.de>
3263 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
3264 * configure: Re-generated.
3266 2010-04-19 Richard Guenther <rguenther@suse.de>
3268 PR tree-optimization/43783
3269 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
3270 constant ARRAY_REF operands two and three if possible.
3272 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
3275 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
3277 2010-04-19 Jie Zhang <jie@codesourcery.com>
3280 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
3282 2010-04-19 Ira Rosen <irar@il.ibm.com>
3284 PR tree-optimization/37027
3285 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
3286 and macro to access it.
3287 (vectorizable_reduction): Add argument.
3288 (vect_get_slp_defs): Likewise.
3289 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
3290 statements for possible use in SLP.
3291 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
3292 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
3293 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
3295 (vectorizable_reduction): Likewise.
3296 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
3298 (vectorizable_type_demotion, vectorizable_type_promotion,
3299 vectorizable_store): Likewise.
3300 (vect_analyze_stmt): Update call to vectorizable_reduction.
3301 (vect_transform_stmt): Likewise.
3302 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
3303 (vect_build_slp_tree): Fix indentation. Check that there are no loads
3304 from different interleaving chains in same node.
3305 (vect_slp_rearrange_stmts): New function.
3306 (vect_supported_load_permutation_p): Allow load permutations for
3307 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
3308 inside SLP nodes if necessary.
3309 (vect_analyze_slp_instance): Handle reductions.
3310 (vect_analyze_slp): Try to build SLP instances originating from groups
3312 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
3313 (vect_get_constant_vectors): Create initial vectors for reductions
3314 according to reduction code. Add new argument.
3315 (vect_get_slp_defs): Add new argument, pass it to
3316 vect_get_constant_vectors.
3317 (vect_schedule_slp_instance): Remove SLP tree root statements.
3319 2010-04-19 Jakub Jelinek <jakub@redhat.com>
3321 * tree.h (ENUM_IS_SCOPED): Define.
3322 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
3323 for ENUM_IS_SCOPED enums.
3325 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
3327 * fold-const.c (fold_comparison): Use ssizetype.
3328 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
3329 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
3330 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
3331 * tree-object-size.c (compute_object_sizes): Use size_type_node.
3333 * tree.h (initialize_sizetypes): Remove parameter.
3334 (build_common_tree_nodes): Remove second parameter.
3335 * stor-layout.c (initialize_sizetypes): Remove parameter.
3336 Always create an unsigned type.
3337 (set_sizetype): Assert that the passed type is unsigned and simplify.
3338 * tree.c (build_common_tree_nodes): Remove second parameter.
3339 Adjust call to initialize_sizetypes.
3340 * c-decl.c (c_init_decl_processing): Remove second argument in call to
3341 build_common_tree_nodes.
3343 2010-04-18 Matthias Klose <doko@ubuntu.com>
3345 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
3347 2010-04-18 Ira Rosen <irar@il.ibm.com>
3349 PR tree-optimization/43771
3350 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
3351 load permutation doesn't have gaps.
3353 2010-04-18 Jan Hubicka <jh@suse.cz>
3355 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
3356 (sse_prologue_save_insn expander): Use new pattern.
3357 (sse_prologue_save_insn1): New pattern and splitter.
3358 (sse_prologue_save_insn): Update to deal also with 64bit aligned
3360 * i386.c (setup_incoming_varargs_64): Do not compute jump
3362 (ix86_gimplify_va_arg): Update alignment needed.
3363 (ix86_local_alignment): Do not align all local arrays to 128bit.
3365 2010-04-17 Jan Hubicka <jh@suse.cz>
3367 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
3369 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
3371 * arm.md (negdi2): Remove redundant code to force values into a
3374 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
3376 * arm/bpabi.S: Add EABI alignment attributes to objects.
3377 * arm/bpabi-v6m.S: Likewise.
3378 * arm/crti.asm: Likewise.
3379 * arm/crtn.asm: Likewise.
3380 * arm/lib1funcs.asm: Likewise.
3381 * arm/libunwind.S: Likewise.
3383 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
3385 * arm-protos.h (tune_params): New structure.
3386 * arm.c (current_tune): New variable.
3387 (arm_constant_limit): Delete.
3388 (struct processors): Add pointer to the tune parameters.
3389 (arm_slowmul_tune): New tuning option.
3390 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
3391 (all_cores): Adjust to pick up the tuning model.
3392 (arm_constant_limit): New function.
3393 (arm_override_options): Select the appropriate tuning model. Delete
3394 initialization of arm_const_limit.
3395 (arm_split_constant): Use the new constant-limit model.
3396 (arm_rtx_costs): Pick up the current tuning model.
3397 * arm.md (is_strongarm, is_xscale): Delete.
3398 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
3399 for Xscale variant architectures.
3400 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
3402 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3404 * config/arm/arm.c (arm_gen_constant): Remove unused variable
3406 (arm_rtx_costs_1): Remove unused variable extra_cost.
3407 (arm_unwind_emit_set): Use variable offset.
3408 (thumb1_output_casesi): Remove unused variable flags.
3410 2010-04-16 Jeff Law <law@redhat.com>
3412 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
3413 needing assignment rather than doing a two-phase assignment. Remove
3414 unused variable 'm'.
3416 2010-04-16 Jakub Jelinek <jakub@redhat.com>
3419 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
3421 2010-04-16 Doug Kwan <dougkwan@google.com>
3423 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
3424 (next_operand_entry_id): New static variable.
3425 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
3426 (add_to_ops_vec): Assigned unique ID to operand entry.
3427 (struct oecount_s): New field ID.
3428 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
3429 (undistribute_ops_list): Assign unique IDs to oecounts.
3430 (init_reassoc): reset next_operand_entry_id.
3432 2010-04-16 Doug Kwan <dougkwan@google.com>
3434 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
3435 missing left parenthesis.
3437 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
3439 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
3440 *btdi_rex64 using SWI48 mode iterator.
3441 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
3442 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
3443 *jcc_btdi_mask_rex64.
3445 2010-04-16 Anatoly Sokolov <aesok@post.ru>
3447 * double-int.h (tree_to_double_int): Convert to macro.
3448 * double-int.c (tree_to_double_int): Remove.
3450 2010-04-16 Jakub Jelinek <jakub@redhat.com>
3453 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
3454 with want_address 2 and in case a single element list might be
3455 possible, call it again with want_address 0.
3457 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
3459 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
3460 case 'W' print operands for HI mode.
3461 * config/h8300/h8300.h (Y0, Y2) : New constraints.
3462 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
3463 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
3464 * config/h8300/predicate.md (bit_register_indirect_operand): New.
3466 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
3468 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
3469 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
3470 #xx:3 and #xx:4 mode.
3472 * config/h8300/h8300.md (inverted load with HImode dest): Add
3473 support for H8300SX.
3475 * config/h8300/predicate.md (bit_operand): Allow immediate values that
3476 satisfy 'U' constraint.
3478 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3480 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
3481 * configure: Regenerate.
3482 * config.in: Regenerate.
3483 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
3486 2010-04-16 Richard Guenther <rguenther@suse.de>
3488 * tree.h (struct tree_decl_minimal): Move pt_uid ...
3489 (struct tree_decl_common): ... here.
3490 (DECL_PT_UID): Adjust.
3491 (SET_DECL_PT_UID): Likewise.
3492 (DECL_PT_UID_SET_P): Likewise.
3494 2010-04-16 Richard Guenther <rguenther@suse.de>
3496 PR tree-optimization/43572
3497 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
3498 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
3499 * tree-flow.h (is_call_clobbered): Remove.
3500 * tree-flow-inline.h (is_call_clobbered): Likewise.
3501 * tree-dfa.c (dump_variable): Do not dump call clobber state.
3502 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
3503 (execute_return_slot_opt): Adjust.
3504 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
3505 check for call clobbered vars here.
3506 (find_tail_calls): Move tailcall verification to the
3509 2010-04-16 Diego Novillo <dnovillo@google.com>
3511 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
3513 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
3516 * config/arm/arm.md (cbranchqi4): New pattern.
3517 * config/arm/predicates.md (const0_operand,
3518 cbranchqi4_comparison_operator): New predicates.
3520 2010-04-16 Richard Guenther <rguenther@suse.de>
3522 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
3523 (dump_gimple_stmt): Likewise.
3525 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
3527 * recog.h (struct recog_data): New field is_operator.
3528 (struct insn_operand_data): New field is_operator.
3529 * recog.c (extract_insn): Set recog_data.is_operator.
3530 * genoutput.c (output_operand_data): Emit code to set the
3532 * reload.c (find_reloads): Use it rather than testing for an
3533 empty constraint string.
3536 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
3537 If the previous insn is a cbranchsi4_insn with the same arguments,
3538 omit the compare instruction.
3540 * config/arm/arm.md (addsi3_cbranch): If destination is a high
3541 register, inputs must be low registers and we need a low register
3542 scratch. Handle alternative 2 like alternative 3.
3544 2010-04-16 Jakub Jelinek <jakub@redhat.com>
3546 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
3547 don't call get_addr on both. If one expression is a VALUE and
3548 the other a REG, check VALUE's locs if the REG isn't among them.
3550 2010-04-16 Christian Bruel <christian.bruel@st.com>
3552 * config/sh/sh.h (sh_frame_pointer_required): New function.
3553 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
3554 (flag_omit_frame_pointer) Set.
3555 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
3556 (rounded_frame_size): Adjust size with outgoing_args_size.
3557 (sh_set_return_address): Must return from stack pointer.
3558 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
3559 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
3560 (ACCUMULATE_OUTGOING_ARGS): Define.
3561 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
3562 * gcc/config/sh/sh.opt: (maccumulate-outgoing-args): New option.
3564 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
3567 * config/sh/sh.c (sh_legitimize_reload_address): Use
3568 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
3569 Remove a unneeded check for offset_base.
3571 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
3573 * configure: Regenerated.
3575 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3577 * config/s390/s390.c (s390_call_save_register_used): Switch back
3578 to HARD_REGNO_NREGS.
3580 2010-04-15 Richard Guenther <rguenther@suse.de>
3582 * alias.c (alias_set_subset_of): Handle alias-set zero
3585 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
3586 Julian Brown <julian@codesourcery.com>
3588 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
3589 alternatives according to use of high and low regs.
3590 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
3591 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
3592 optimizing for size on Thumb-2.
3594 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
3596 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
3598 2010-04-15 Richard Guenther <rguenther@suse.de>
3600 * tree-ssa-structalias.c (struct variable_info): Add
3602 (new_var_info): Initialize it.
3603 (dump_constraints): Support printing last added constraints.
3604 (debug_constraints): Adjust.
3605 (dump_constraint_graph): Likewise.
3606 (make_heapvar_for): Check for NULL cfun.
3607 (get_function_part_constraint): New function.
3608 (get_fi_for_callee): Likewise.
3609 (find_func_aliases): Properly implement IPA PTA constraints.
3610 (process_ipa_clobber): New function.
3611 (find_func_clobbers): Likewise.
3612 (insert_into_field_list_sorted): Remove.
3613 (create_function_info_for): Properly allocate vars for IPA mode.
3614 Do not use insert_into_field_list_sorted.
3615 (create_variable_info_for): Properly generate constraints for
3616 global vars in IPA mode.
3617 (dump_solution_for_var): Always dump the solution.
3618 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
3619 (find_what_var_points_to): Adjust.
3620 (pt_solution_set): Change.
3621 (pt_solution_ior_into): New function.
3622 (pt_solution_empty_p): Export.
3623 (pt_solution_includes_global): Adjust.
3624 (pt_solution_includes_1): Likewise.
3625 (pt_solutions_intersect_1): Likewise.
3626 (dump_sa_points_to_info): Check some invariants.
3627 (solve_constraints): Move constraint dumping ...
3628 (compute_points_to_sets): ... here.
3629 (ipa_pta_execute): ... and here.
3630 (compute_may_aliases): Do not re-compute points-to info
3631 locally if IPA info is available.
3632 (ipa_escaped_pt): New global var.
3633 (ipa_pta_execute): Properly implement IPA PTA.
3634 * tree-into-ssa.c (dump_decl_set): Support dumping
3635 decls not in referenced-vars.
3636 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
3637 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
3638 (dump_points_to_solution): Likewise.
3639 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
3640 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
3641 (remap_gimple_stmt): Reset call clobber/use information if necessary.
3642 (copy_decl_to_var): Copy DECL_PT_UID.
3643 (copy_result_decl_to_var): Likewise.
3644 * tree.c (make_node_stat): Initialize DECL_PT_UID.
3645 (copy_node_stat): Copy it.
3646 * tree.h (DECL_PT_UID): New macro.
3647 (SET_DECL_PT_UID): Likewise.
3648 (DECL_PT_UID_SET_P): Likewise.
3649 (struct tree_decl_minimal): Add pt_uid member.
3650 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
3651 (pt_solution_empty_p): Declare.
3652 (pt_solution_set): Adjust.
3653 (ipa_escaped_pt): Declare.
3654 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
3655 * gimple-pretty-print.c (pp_points_to_solution): New function.
3656 (dump_gimple_call): Dump call clobber/use information.
3657 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
3658 * tree-pass.h (TDF_ALIAS): New dump option.
3659 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
3660 * doc/invoke.texi (-fipa-pta): Update documentation.
3662 2010-04-15 Richard Guenther <rguenther@suse.de>
3664 * Makefile.in (OBJS-common): Add gimple-fold.o.
3665 (gimple-fold.o): New rule.
3666 * tree.h (maybe_fold_offset_to_reference,
3667 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
3669 * gimple.h: ... here.
3670 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
3671 may_propagate_address_into_dereference): Move prototypes ...
3672 * gimple.h: ... here.
3673 * tree-ssa-ccp.c (get_symbol_constant_value,
3674 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
3675 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
3676 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
3677 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
3678 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
3679 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
3680 gimplify_and_update_call_from_tree): Move ...
3681 * gimple-fold.c: ... here. New file.
3682 (ccp_fold_builtin): Rename to ...
3683 (gimple_fold_builtin): ... this.
3684 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
3686 2010-04-15 Richard Guenther <rguenther@suse.de>
3688 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
3689 fit_double_type, force_fit_type_double, add_double_with_sign,
3690 neg_double, mul_double_with_sign, lshift_double, rshift_double,
3691 lrotate_double, rrotate_double, div_and_round_double): Move ...
3692 * double-int.c: ... here.
3693 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
3694 add_double, neg_double, mul_double_with_sign, mul_double,
3695 lshift_double, rshift_double, lrotate_double, rrotate_double,
3696 div_and_round_double): Move prototypes ...
3697 * double-int.h: ... here.
3699 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
3702 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
3703 matching constraints to ensure inputs match the output.
3705 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
3708 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
3709 in an input-only operand.
3711 2010-04-15 Anatoly Sokolov <aesok@post.ru>
3713 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
3714 (double_int_not, double_int_lshift, double_int_rshift): Declare.
3715 (double_int_negative_p): Convert to static inline function.
3716 * double-int.c (double_int_lshift, double_int_lshift): New functions.
3717 (double_int_negative_p): Remove.
3718 * tree.h (lshift_double, rshift_double):
3719 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
3720 * fold-const.c (fold_convert_const_int_from_real,
3721 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
3722 (lshift_double): Change type of arith argument to bool.
3723 (rshift_double): Change type of arith argument to bool. Correct
3725 * expmed.c (mask_rtx, lshift_value): (Ditto.).
3727 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
3730 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
3731 at the start and end of the then/else blocks, and omit them from the
3733 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
3734 argument; all callers changed. Pass zero to old_insns_match_p instead.
3735 (flow_find_head_matching_sequence): New function.
3736 (old_insns_match_p): Check REG_EH_REGION notes for calls.
3737 * basic-block.h (flow_find_cross_jump,
3738 flow_find_head_matching_sequence): Declare functions.
3740 2010-04-14 Jason Merrill <jason@redhat.com>
3743 * c-common.c (attribute_takes_identifier_p): New fn.
3744 * c-common.h: Declare it.
3746 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
3748 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
3750 (*udivmod<mode>4): Ditto.
3752 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
3754 * config/i386/i386.md (maxmin_int): Rename code attribute from
3755 maxminiprefix and update all users.
3756 (maxmin_float): Ditto from maxminfprefix.
3757 (logic): Ditto from logicprefix.
3758 (absneg_mnemonic): Ditto from absnegprefix.
3759 * config/i386/mmx.md: Update all users of maxminiprefix,
3760 maxminfprefix and logicprefix for rename.
3761 * config/i386/sse.md: Ditto.
3762 * config/i386/sync.md (sync_<code><mode>): Update for
3765 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
3768 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
3769 warnings converted to errors.
3771 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
3773 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
3774 used insn_type variable.
3775 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
3776 to avoid set-but-not-used warning.
3778 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
3780 * df-core.c (df_ref_debug): Change format string placeholder
3782 * dwarf2asm.c (dw2_asm_output_data_raw,
3783 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
3784 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
3785 * dwarf2out.c (output_cfi, output_cfi_directive,
3786 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
3787 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
3789 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
3790 * print-rtl.c (print_rtx): Ditto.
3792 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3795 * builtins.c (expand_builtin_pow_root): New function to expand pow
3796 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
3797 series of sqrt and cbrt calls under -ffast-math.
3798 (expand_builtin_pow): Call it.
3800 2010-04-14 Michael Matz <matz@suse.de>
3802 PR tree-optimization/42963
3803 * tree-cfg.c (touched_switch_bbs): New static variable.
3804 (group_case_labels_stmt): New function broken out from ...
3805 (group_case_labels): ... here, use the above.
3806 (start_recording_case_labels): Allocate touched_switch_bbs.
3807 (end_recording_case_labels): Deallocate it, call
3808 group_case_labels_stmt.
3809 (gimple_redirect_edge_and_branch): Remember index of affected BB.
3811 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
3813 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
3816 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
3818 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
3820 2010-04-13 Jan Hubicka <jh@suse.cz>
3822 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
3823 of optimized out static functions.
3824 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
3825 cost computation. Also sanity check for overflows.
3826 (update_caller_keys): Update cgraph_edge_badness call; properly
3827 update fibheap and sanity check that it is up to date.
3828 (add_new_edges_to_heap): Update cgraph_edge_badness.
3829 (cgraph_decide_inlining_of_small_function): Likewise;
3830 add sanity checking that badness in heap is up to date;
3831 improve dumping of reason; Update badness of calls to the
3832 offline copy of function currently inlined; dump badness
3833 of functions not inlined because of unit growth limits.
3835 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
3838 * c-common.c (pointer_int_sum): Disregard overflow that occured only
3839 because of sign-extension change when converting to sizetype here...
3840 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
3842 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
3843 the folding to constants. Remove redundant final conversion.
3844 (fold_binary) <associate>: Do not associate if the re-association of
3845 constants alone overflows.
3846 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
3847 to the end of the list.
3848 (multiple_of_p) <COND_EXPR>: New case.
3850 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
3852 * opt-functions.awk (opt_sanitized_name): New.
3854 * optc-gen.awk: Use it
3855 * opth-gen.awk: Use it.
3857 2010-04-13 Martin Jambor <mjambor@suse.cz>
3859 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
3860 (sra_modify_assign): Delete stmts loading dead data even if racc has no
3861 children. Call replace_uses_with_default_def_ssa_name to handle
3864 2010-04-13 Michael Matz <matz@suse.de>
3867 * builtins.c (expand_builtin_interclass_mathfn): Also create
3868 a register if the predicate doesn't match.
3870 2010-04-13 Diego Novillo <dnovillo@google.com>
3872 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
3873 * c-pch.c: Include timevar.h.
3874 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
3875 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
3876 * ggc-common.c: Include timevar.h.
3877 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
3878 * timevar.def (TV_PCH_SAVE): Define.
3879 (TV_PCH_CPP_SAVE): Define.
3880 (TV_PCH_PTR_REALLOC): Define.
3881 (TV_PCH_PTR_SORT): Define.
3882 (TV_PCH_RESTORE): Define.
3883 (TV_PCH_CPP_RESTORE): Define.
3885 2010-04-13 Michael Matz <matz@suse.de>
3887 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
3889 (can_reassociate_p): New function.
3890 (break_up_subtract_bb, reassociate_bb): Use it.
3892 2010-04-13 Richard Guenther <rguenther@suse.de>
3895 * builtins.c (c_readstr): Fix assert.
3897 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
3899 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
3900 when generating cltd insn.
3902 (*ashl<mode>3_1): Remove special handling for register operand 2.
3903 (*ashlsi3_1_zext): Ditto.
3904 (*ashlhi3_1): Ditto.
3905 (*ashlhi3_1_lea): Ditto.
3906 (*ashlqi3_1): Ditto.
3907 (*ashlqi3_1_lea): Ditto.
3908 (*<shiftrt_insn><mode>3_1): Ditto.
3909 (*<shiftrt_insn>si3_1_zext): Ditto.
3910 (*<shiftrt_insn>qi3_1_slp): Ditto.
3911 (*<rotate_insn><mode>3_1): Ditto.
3912 (*<rotate_insn>si3_1_zext): Ditto.
3913 (*<rotate_insn>qi3_1_slp): Ditto.
3915 2010-04-13 Richard Guenther <rguenther@suse.de>
3917 * tree-ssa-structalias.c (callused_id): Remove.
3918 (call_stmt_vars): New.
3919 (get_call_vi): Likewise.
3920 (lookup_call_use_vi): Likewise.
3921 (lookup_call_clobber_vi): Likewise.
3922 (get_call_use_vi): Likewise.
3923 (get_call_clobber_vi): Likewise.
3924 (make_transitive_closure_constraints): Likewise.
3925 (handle_const_call): Adjust to do per-call call-used handling.
3926 (handle_pure_call): Likewise.
3927 (find_what_var_points_to): Remove general callused handling.
3928 (init_base_vars): Likewise.
3929 (init_alias_vars): Initialize call_stmt_vars.
3930 (compute_points_to_sets): Process call-used and call-clobbered
3931 vars for call statements.
3932 (delete_points_to_sets): Free call_stmt_vars.
3934 2010-04-13 Richard Guenther <rguenther@suse.de>
3936 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
3937 Only add RW dependence for dependence distance zero.
3938 Adjust maximal vectorization factor according to dependences.
3939 Move alignment handling ...
3940 (vect_find_same_alignment_drs): ... here. New function.
3941 (vect_analyze_data_ref_dependences): Adjust.
3942 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
3943 (vect_analyze_data_refs): Adjust minimal vectorization factor
3944 according to data references.
3945 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
3946 dependences before determining the vectorization factor.
3947 Analyze alignment after determining the vectorization factor.
3948 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
3949 dependences before alignment.
3950 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
3952 (vect_analyze_data_refs): Likewise.
3953 (MAX_VECTORIZATION_FACTOR): New define.
3955 2010-04-13 Duncan Sands <baldrick@free.fr>
3957 * except.h (lang_eh_type_covers): Remove.
3958 * except.c (lang_eh_type_covers): Likewise.
3960 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3961 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3963 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
3964 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
3965 UNITS_PER_LONG where it is ABI relevant.
3966 (s390_return_addr_rtx): Likewise.
3967 (s390_back_chain_rtx): Likewise.
3968 (s390_frame_area): Likewise.
3969 (s390_frame_info): Likewise.
3970 (s390_initial_elimination_offset): Likewise.
3971 (save_gprs): Likewise.
3972 (s390_emit_prologue): Likewise.
3973 (s390_emit_epilogue): Likewise.
3974 (s390_function_arg_advance): Likewise.
3975 (s390_function_arg): Likewise.
3976 (s390_va_start): Likewise.
3977 (s390_gimplify_va_arg): Likewise.
3978 (s390_function_profiler): Likewise.
3979 (s390_optimize_prologue): Likewise.
3980 (s390_rtx_costs): Likewise.
3981 (s390_secondary_reload): Likewise.
3982 (s390_promote_function_mode): Likewise.
3983 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
3984 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
3985 registers available.
3986 (s390_unwind_word_mode): New function.
3987 (s390_function_value): Split 64 bit values into register pair if
3988 used as return value.
3989 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
3990 function call parameters. Handle parallels.
3991 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
3992 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
3993 (DWARF_CIE_DATA_ALIGNMENT): New macro.
3994 (s390_expand_setmem): Remove unused variable src_addr.
3995 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
3996 deal with 64 bit registers.
3997 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
3998 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
3999 (UNITS_PER_LONG): New macro.
4000 * libjava/include/s390-signal.h: Define extended ucontext
4001 structure containing the upper halfs of the 64 bit registers.
4003 2010-04-13 Simon Baldwin <simonb@google.com>
4005 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
4007 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
4009 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
4010 rvalue on the RHS if the LHS is of a non-renamable type.
4011 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
4013 2010-04-13 Matthias Klose <doko@ubuntu.com>
4015 * gcc.c (cc1_options): Handle -iplugindir before processing
4016 the cc1 spec. Only add -iplugindir once.
4017 (cpp_unique_options): Add -iplugindir option if -fplugin* options
4019 * common.opt (iplugindir): Remove `Separate' property, initialize.
4020 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
4022 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
4023 (distclean): Remove plugin dir.
4024 * doc/invoke.texi: Document -iplugindir.
4026 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
4028 * doc/plugins.texi (Loading Plugins): Document short
4029 -fplugin=foo option.
4030 (Plugin API): Mention default_plugin_dir_name function.
4032 * gcc.c (find_file_spec_function): Add new declaration.
4033 (static_spec_func): Use it for "find-file".
4034 (find_file_spec_function): Add new function.
4035 (cc1_options): Add -iplugindir option if -fplugin* options found.
4037 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
4039 * plugin.c (add_new_plugin): Updated comment, and handle short
4041 (default_plugin_dir_name): Added new function.
4043 * common.opt (iplugindir): New option to set the plugin directory.
4045 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
4047 * config/i386/i386.md (any_rotate): New code iterator.
4048 (rotate_insn): New code attribute.
4050 (SWIM124): New mode iterator.
4051 (<rotate_insn>ti3): New expander.
4052 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
4053 any_rotate code iterator.
4054 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
4055 using any_rotate code iterator and SWIM124 mode iterator.
4056 (ix86_rotlti3): New insn_and_split pattern.
4057 (ix86_rotrti3): Ditto.
4058 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
4059 ix86_rotl{di,ti}3 patterns.
4060 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
4061 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
4062 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
4063 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
4064 code iterator and SWI mode iterator.
4065 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
4066 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
4068 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
4069 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
4070 (bswap rotatert splitter): Add splitter.
4071 (bswap splitter): Macroize splitter using any_rotate code iterator.
4072 Add insn predicate to split only for TARGET_USE_XCHGB or when
4073 optimizing function for size.
4075 2010-04-12 Steve Ellcey <sje@cup.hp.com>
4077 * config/pa/pa.c (emit_move_sequence): Remove use of
4078 deleted variable flag_argument_noalias.
4080 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4082 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
4084 Add to unsupported targets list.
4085 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
4086 sparc*-sun-solaris2.[567]* from target lists.
4087 * configure: Regenerate.
4088 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
4090 Remove Solaris 7 patch references.
4091 (Specific, sparc-sun-solaris2.7): Removed.
4092 (sparc-sun-solaris2*): Update Solaris 7 example.
4093 (sparc64-*-solaris2*): Likewise.
4095 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4097 * config.build (alpha*-dec-osf4*): Remove.
4098 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
4099 of obsolete configurations.
4100 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
4102 * config/alpha/t-osf4: Renamed to ...
4103 * config/alpha/t-osf5: ... this.
4104 * config/alpha/osf.h: Renamed to ...
4105 * config/alpha/osf5.h: ... this.
4106 Merged old osf5.h contents.
4108 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
4109 (EXTRA_SPECS): Removed.
4110 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
4111 reflect removal of Tru64 UNIX V4.0/V5.0 support.
4114 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4116 * doc/contrib.texi (Contributors, Rainer Orth): Update.
4118 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
4121 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
4122 __thiscall convention.
4124 2010-04-12 Steve Ellcey <sje@cup.hp.com>
4126 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
4128 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
4130 2010-04-12 Steve Ellcey <sje@cup.hp.com>
4132 * function.c (assign_parms_initialize_all): Add unused attribute
4135 2010-04-12 Richard Guenther <rguenther@suse.de>
4137 * gsstruct.def (GSS_CALL): New.
4138 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
4139 * gimple.h: Include tree-ssa-alias.h.
4140 (struct gimple_statement_call): New.
4141 (union gimple_statement_struct_d): Add gimple_call member.
4142 (gimple_call_reset_alias_info): Declare.
4143 (gimple_call_use_set): New function.
4144 (gimple_call_clobber_set): Likewise.
4145 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
4146 * gimple.c (gimple_call_reset_alias_info): New function.
4147 (gimple_build_call_1): Call it.
4148 * lto-streamer-in.c (input_gimple_stmt): Likewise.
4149 * tree-inline.c (remap_gimple_stmt): Likewise.
4150 (expand_call_inline): Remove callused handling.
4151 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
4152 * tree-dfa.c (dump_variable): Likewise.
4153 * tree-parloops.c (parallelize_loops): Likewise.
4154 * tree-ssa.c (init_tree_ssa): Likewise.
4155 (delete_tree_ssa): Likewise.
4156 * tree-flow-inline.h (is_call_used): Remove.
4157 * tree-flow.h (struct gimple_df): Remove callused member.
4158 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
4159 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
4160 (ref_maybe_used_by_call_p_1): Simplify.
4161 (call_may_clobber_ref_p_1): Likewise.
4162 * tree-ssa-structalias.c (compute_points_to_sets): Set
4163 the call stmt used and clobbered sets.
4164 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
4165 (find_tail_calls): Verify the tail call.
4167 2010-04-12 Richard Guenther <rguenther@suse.de>
4169 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
4170 single-iteration always-inline inlining.
4171 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
4172 (cgraph_decide_inlining): Do not handle always-inline specially.
4173 (try_inline): Remove always-inline cycle detection special case.
4174 Do not recurse on always-inlines.
4175 (cgraph_early_inlining): Do not iterate if not optimizing.
4176 (cgraph_gate_early_inlining): remove.
4177 (pass_early_inline): Run unconditionally.
4178 (gate_cgraph_decide_inlining): New function.
4179 (pass_ipa_inline): Use it. Do not run the IPA inliner if
4180 not inlining or optimizing.
4181 (cgraph_decide_inlining_of_small_functions): Also consider
4182 always-inline functions.
4183 (cgraph_default_inline_p): Return true for nodes which should
4184 disregard inline limits.
4185 (estimate_function_body_sizes): Assume zero size and time for
4186 nodes which are marked as disregarding inline limits.
4187 (cgraph_decide_recursive_inlining): Do not perform recursive
4188 inlining on always-inline nodes.
4190 2010-04-12 Jakub Jelinek <jakub@redhat.com>
4193 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
4194 for exprs satisfying handled_component_p.
4196 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
4198 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
4199 non-constant aggregate elements.
4201 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
4202 is a real initialization.
4204 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
4207 * c-decl.c (start_function): Move forward check for nested function.
4209 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
4211 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
4212 * config/sh/sh.c: Include reload.h.
4213 (sh_legitimize_reload_address): New.
4214 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
4215 sh_legitimize_reload_address.
4217 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
4219 * config/sh/sh.md (*movqi_pop): New insn pattern.
4220 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
4222 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
4224 * config/i386/i386.md (any_shiftrt): New code iterator.
4225 (shiftrt_insn): New code attribute.
4227 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
4228 using any_shiftrt code iterator.
4229 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
4230 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
4231 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
4232 pattern from corresponding peephole2 patterns.
4233 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
4234 using any_shiftrt code iterator.
4235 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
4236 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
4237 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
4238 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
4239 *{ashr,lshr}<mode>3_cmp_zext.
4240 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
4242 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
4244 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
4246 (*lshr<mode>3_cconly): Ditto.
4248 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
4250 * config/i386/i386.md (lshr<mode>3): Macroize expander from
4251 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
4252 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
4253 pattern from *lshr{di,ti}3_1 and corresponding splitters using
4255 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
4256 from corresponding peephole2 patterns.
4257 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
4258 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
4259 and *lshrdi3_1_rex64 using SWI mode iterator.
4260 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
4261 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
4262 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
4263 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
4264 and *lshrdi3_cmp_rex64 using SWI mode iterator.
4265 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
4266 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
4267 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
4268 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
4271 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
4273 * config/i386/i386.md (ashr<mode>3): Macroize expander from
4274 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
4275 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
4276 pattern from *ashr{di,ti}3_1 and corresponding splitters using
4278 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
4279 from corresponding peephole2 patterns.
4280 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
4281 (ashrsi3_cvt): Rename from ashrsi3_31.
4282 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
4283 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
4284 and x86_64_shift_adj_3 using SWI48 mode iterator.
4285 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
4286 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
4287 and *ashrdi3_1_rex64 using SWI mode iterator.
4288 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
4289 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
4290 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
4291 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
4292 and *ashrdi3_cmp_rex64 using SWI mode iterator.
4293 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
4294 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
4295 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
4296 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
4298 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
4299 * config/i386/i386.c (ix86_split_ashr): Update for renamed
4300 x86_shift<mode>_adj_3 expanders.
4302 2010-04-10 Wei Guozhi <carrot@google.com>
4305 * config/arm/arm.c (arm_pic_static_addr): New function.
4306 (legitimize_pic_address): Call arm_pic_static_addr when it detects
4308 (arm_output_addr_const_extra): Output expression for new pattern.
4309 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
4311 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
4313 * ira-costs.c (record_reg_classes): Ignore alternatives that are
4316 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
4317 * web.c: Include "insn-config.h" and "recog.h".
4318 (union_match_dups): New function.
4319 (web_main): Call it.
4320 (union_defs): Don't try to recognize match_dups.
4322 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
4323 if doing so would replace the entire pattern.
4325 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
4329 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
4330 and splitter pattern. Change splitter operand 1 predicate to
4333 2010-04-09 Martin Jambor <mjambor@suse.cz>
4335 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
4336 lattices are addresses of CONST_DECLs with the same initial value.
4337 (ipcp_print_all_lattices): Print values of CONST_DECLs.
4338 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
4340 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
4341 Bernd Schmidt <bernds@codesourcery.com>
4343 * loop-invariant.c (replace_uses): New static function.
4344 (move_invariant_reg): Use it to ensure we can replace the uses.
4346 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
4348 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
4350 (picochip_override_options): Enable section anchors only above -O1.
4351 (picochip_reorg): Fixed a couple of build warnings.
4353 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4355 * configure.ac (plugin -rdynamic test): Log result.
4356 * configure: Regenerate.
4357 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
4358 (RDYNAMIC_SPEC): Define.
4359 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
4361 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4363 * configure.ac: Determine Sun ld version numbers.
4364 (comdat_group): Restrict GNU ld version checks to gld.
4365 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
4366 (enable_comdat): Support --enable-comdat.
4367 * configure: Regenerate.
4368 * doc/install.texi (Configuration): Document --enable-comdat.
4370 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4372 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
4373 * config/sol2-gld.h: ... here.
4374 * config.gcc (sparc*-*-solaris2*): Reflect this.
4375 (i[34567]86-*-solaris2*): Use it.
4377 2010-04-09 Steve Ellcey <sje@cup.hp.com>
4379 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
4381 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
4383 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4386 * diagnostic.c (diagnostic_initialize): Initialize
4387 some_warnings_are_errors.
4388 (diagnostic_finish): New.
4389 (diagnostic_action_after_output): Call it before exiting.
4390 (diagnostic_report_diagnostic): Do not print message here. Set
4391 some_warnings_are_errors.
4392 * diagnostic.h (diagnostic_context): Delete
4393 issue_warnings_are_errors_message. Add some_warnings_are_errors.
4394 (diagnostic_finish): Declare.
4395 * toplev.c (toplev_main): Call it before exit.
4397 2010-04-09 Jason Merrill <jason@redhat.com>
4400 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
4401 for incomplete type.
4404 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
4405 based on a warning flag.
4407 2010-04-09 Richard Guenther <rguenther@suse.de>
4409 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
4411 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
4414 * varasm.c (default_assemble_visibility): Wrap vars that are
4415 set, but unused, by targets without GAS.
4416 * config/rs6000/rs6000.c: (paired_emit_vector_compare):
4417 Remove set, but unused, vars.
4418 (rs6000_legitimize_tls_address): Likewise.
4419 (altivec_expand_dst_builtin): Likewise.
4420 * config/darwin.c (machopic_classify_symbol): Likewise.
4421 (machopic_indirection_name): Likewise.
4423 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
4425 * config/i386/i386.md (DWI): New mode iterator.
4426 (S): New mode attribute.
4427 (shift_operand): Ditto.
4428 (shift_immediate_operand): Ditto.
4429 (ashl_input_operand): Ditto.
4430 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
4431 using SDWIM mode iterator.
4432 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
4433 pattern from *ashl{di,ti}3_1 and corresponding splitters using
4435 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
4436 from corresponding peephole2 patterns.
4437 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
4438 and x86_64_shift_adj_1 using SWI48 mode iterator.
4439 (x86_shift<mode>_adj_2): Ditto.
4440 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
4441 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
4442 using SWI48 mode iterator.
4443 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
4444 *ashldi3_cmp_rex64 using SWI mode iterator.
4445 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
4446 *ashldi3_cconly_rex64 using SWI mode iterator.
4447 * config/i386/i386.c (ix86_split_ashl): Update for renamed
4448 x86_shift<mode>_adj_{1,2}.
4449 (ix86_split_ashr): Ditto.
4450 (ix86_split_lshr): Ditto.
4452 2010-04-09 Richard Guenther <rguenther@suse.de>
4454 * target.h (builtin_conversion): Pass in input and output types.
4455 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
4456 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
4457 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
4458 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
4460 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
4462 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
4464 2010-04-09 Richard Guenther <rguenther@suse.de>
4467 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
4469 2010-04-09 Richard Guenther <rguenther@suse.de>
4471 * tree-vectorizer.h (struct _stmt_vec_info): Document
4472 that vectype is the type of the LHS.
4473 (supportable_widening_operation, supportable_narrowing_operation):
4474 Get both input and output vector types as arguments.
4475 (vect_is_simple_use_1): Declare.
4476 (get_same_sized_vectype): Likewise.
4477 * tree-vect-loop.c (vect_determine_vectorization_factor):
4478 Set STMT_VINFO_VECTYPE to the vector type of the def.
4479 (vectorizable_reduction): Adjust.
4480 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
4481 Adjust. Specify the output vector type.
4482 (vect_pattern_recog_1): Adjust.
4483 * tree-vect-stmts.c (get_same_sized_vectype): New function.
4484 (vectorizable_call): Adjust.
4485 (vectorizable_conversion): Likewise.
4486 (vectorizable_operation): Likewise.
4487 (vectorizable_type_demotion): Likewise.
4488 (vectorizable_type_promotion): Likewise.
4489 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
4491 (vect_is_simple_use_1): New function.
4492 (supportable_widening_operation): Get both input and output
4494 (supportable_narrowing_operation): Likewise.
4495 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
4497 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
4499 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
4500 __thiscall and _thiscall as predefined macros.
4501 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
4502 thiscall attribute handling.
4503 (ix86_comp_type_attributes): Likewise.
4504 (ix86_function_regparm): Likewise.
4505 (ix86_return_pops_args): Likewise.
4506 (init_cumulative_args): Likewise.
4507 (find_drap_reg): Likewise.
4508 (ix86_static_chain): Likewise.
4509 (x86_this_parameter): Likewise.
4510 (x86_output_mi_thunk): Likewise.
4511 (ix86_attribute_table): Add description for thiscall attribute.
4512 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
4513 * doc/extend.texi: Add documentation for thiscall.
4515 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4518 * c.opt (Wint-to-pointer-cast): Available in C++.
4519 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
4521 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
4523 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
4524 * calls.c (expand_call): Pass the function type to aggregate_value_p.
4525 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
4526 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
4527 function type instead. Reorder and simplify checks.
4529 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
4531 2010-04-08 Jing Yu <jingyu@google.com>
4532 Zdenek Dvorak <ook@ucw.cz>
4534 PR tree-optimization/42720
4535 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
4536 loop unswitch conditions here from ...
4537 (tree_unswitch_single_loop): ... here.
4539 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
4541 * tree-if-conv.c: Fix comments and simplify logic.
4543 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
4545 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
4546 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
4547 (main_tree_if_conversion): Update call to tree_if_conversion.
4549 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
4552 * doc/invoke.texi (-b,-V): Delete.
4553 * doc/tm.texi: Do not mention -b.
4554 * gcc.c (display_help): Delete -b and -V.
4555 (process_command): Delete -b and -V.
4556 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
4558 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
4559 Wolfgang Gellerich <gellerich@de.ibm.com>
4561 Implement target hook for loop unrolling
4562 * target.h (loop_unroll_adjust): Add a new target hook function.
4563 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
4564 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
4565 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
4566 (s390_loop_unroll_adjust): Implement the new target hook for s390.
4567 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
4569 (decide_unroll_stupid): Likewise.
4571 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4574 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
4576 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4578 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
4579 (Specific, *-*-solaris2*): Likewise.
4580 Don't prefer Sun as over GNU as.
4582 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
4584 * config/s390/s390.c (override_options): Adjust the z10 defaults
4585 for max-unroll-times, max-completely-peeled-insns
4586 and max-completely-peel-times.
4588 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4590 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
4591 instructions for z10.
4592 (s390_expand_setmem): Likewise.
4593 (s390_expand_cmpmem): Likewise.
4595 2010-04-08 Richard Guenther <rguenther@suse.de>
4597 PR tree-optimization/43679
4598 * tree-ssa-pre.c (eliminate): Only propagate copies.
4600 2010-04-08 Jakub Jelinek <jakub@redhat.com>
4603 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
4604 set but not used variable warning.
4606 2010-04-08 Wei Guozhi <carrot@google.com>
4609 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
4610 (arm_size_rtx_costs): Call the new function when optimized for size.
4612 2010-04-08 Jakub Jelinek <jakub@redhat.com>
4615 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
4616 op0 is not a MEM, just return NULL instead of assertion
4618 (discover_nonconstant_array_refs): Don't walk debug stmts.
4620 2010-04-08 Doug Kwan <dougkwan@google.com>
4622 * configure.ac: Recognize gold and do not use its version number
4623 to test ld features.
4624 * configure: Regenerate.
4626 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
4629 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
4630 (negate_value): Move code to push elements to broken_up_substracts ...
4631 (eliminate_plus_minus_pair): ... here. Push operands that have no
4632 negative pair to plus_negates.
4633 (repropagate_negates, init_reassoc, fini_reassoc): Update.
4635 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4637 * doc/install.texi (Configuration): Move description of
4638 --enable-lto, --with-libelf*, --enable-gold from Java section to
4641 * doc/generic.texi (Working with declarations)
4642 (Function Properties, C and C++ Trees): Fix typos.
4643 * doc/sourcebuild.texi (Top Level): Likewise.
4645 2010-04-07 Jakub Jelinek <jakub@redhat.com>
4648 * tree.h (DECL_READ_P): Define.
4649 (struct tree_decl_common): Add decl_read_flag.
4650 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
4651 a set but not used warning.
4652 (merge_decls): Merge DECL_READ_P flag.
4653 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
4654 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
4655 * c-common.c (handle_used_attribute, handle_unused_attribute):
4657 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
4659 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
4661 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
4662 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
4663 c_parser_binary_expression, c_parser_cast_expression,
4664 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
4665 Call default_function_array_read_conversion instead of
4666 default_function_array_conversion where needed.
4667 (c_parser_unary_expression, c_parser_conditional_expression,
4668 c_parser_postfix_expression_after_primary, c_parser_initelt):
4669 Likewise. Call mark_exp_read where needed.
4670 (c_parser_statement_after_labels, c_parser_asm_operands,
4671 c_parser_typeof_specifier, c_parser_sizeof_expression,
4672 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
4674 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
4676 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
4677 (warn_unused_but_set_parameter): Default to warn_unused
4679 * doc/invoke.texi: Document -Wunused-but-set-variable and
4680 -Wunused-but-set-parameter.
4682 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
4683 used count variable.
4684 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
4685 when operandN variables aren't used in the body of the expander
4687 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
4688 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
4689 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
4690 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
4691 FOR_EACH_IMM_USE_ON_STMT): Likewise.
4692 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
4693 * tree.c (PROCESS_ARG): Likewise.
4695 2010-04-07 Simon Baldwin <simonb@google.com>
4697 * diagnostic.h (diagnostic_override_option_index): New macro to
4698 set a diagnostic's option_index.
4699 * c-tree.h (c_cpp_error): Add warning reason argument.
4700 * opts.c (_warning_as_error_callback): New.
4701 (register_warning_as_error_callback): Store callback for
4702 warnings enabled via enable_warning_as_error.
4703 (enable_warning_as_error): Call callback, minor code tidy.
4704 * opts.h (register_warning_as_error_callback): Declare.
4705 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
4706 response to -Werror=.
4707 (c_common_init_options): Register warning_as_error_callback in opts.c.
4708 * common.opt: Add -Wno-cpp option.
4709 * c-common.c (struct reason_option_codes_t): Map cpp warning
4710 reason codes to gcc option indexes.
4711 * (c_option_controlling_cpp_error): New function, lookup the gcc
4712 option index for a cpp warning reason code.
4713 * (c_cpp_error): Add warning reason argument, call
4714 c_option_controlling_cpp_error for diagnostic_override_option_index.
4715 * doc/invoke.texi: Document -Wno-cpp.
4717 2010-04-07 Richard Guenther <rguenther@suse.de>
4719 * ipa-reference.c (mark_load): Use get_base_address.
4720 (mark_store): Likewise.
4722 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
4723 inserting GIMPLE_NOPs into the IL.
4724 * tree-ssa-structalias.c (get_constraint_for_component_ref):
4725 Explicitly strip handled components and indirect references.
4727 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
4728 folding address expressions.
4729 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
4730 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
4731 operand_equal_p to compare decls.
4732 (ptr_deref_may_alias_decl_p): Likewise.
4733 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
4734 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
4735 Handle reversed comparison ops.
4736 * tree-sra.c (asm_visit_addr): Use get_base_address.
4737 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
4738 * ipa-reference.c (mark_address): Use get_base_address.
4740 2010-04-07 Richard Guenther <rguenther@suse.de>
4742 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
4743 Propagate constants everywhere.
4745 2010-04-07 Jakub Jelinek <jakub@redhat.com>
4748 * tree.c (MAX_INT_CACHED_PREC): Define.
4749 (nonstandard_integer_type_cache): New array.
4750 (build_nonstandard_integer_type): Cache results for precision
4751 <= MAX_INT_CACHED_PREC.
4753 2010-04-07 Richard Guenther <rguenther@suse.de>
4755 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
4756 -fargument-noalias-global, -fargument-noalias-anything): Remove.
4757 * common.opt: Likewise.
4758 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
4759 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
4760 (nonoverlapping_memrefs_p): Likewise.
4761 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
4762 * opts.c (common_handle_option): Handle OPT_fargument_alias,
4763 OPT_fargument_noalias, OPT_fargument_noalias_anything and
4764 OPT_fargument_noalias_global for backward compatibility.
4766 2010-04-07 Richard Guenther <rguenther@suse.de>
4768 PR tree-optimization/43270
4769 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
4770 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
4771 * tree-ssa-pre.c (phi_translate_1): Adjust.
4772 (fully_constant_expression): Split out vn_reference handling to ...
4773 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
4774 Fold reads from constant strings.
4775 (vn_reference_lookup): Handle fully constant references.
4776 (vn_reference_lookup_pieces): Likewise.
4777 * Makefile.in (expmed.o-warn): Add -Wno-error.
4779 2010-04-07 Martin Jambor <mjambor@suse.cz>
4781 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
4783 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
4786 * gcc.c: Add -static-libstdc++ to list of recognized options.
4788 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4790 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
4792 2010-04-07 Richard Guenther <rguenther@suse.de>
4795 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
4796 bases build simple mem attributes to retain points-to information.
4798 2010-04-07 Richard Guenther <rguenther@suse.de>
4801 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
4802 preserve points-to related information.
4804 2010-04-07 Richard Guenther <rguenther@suse.de>
4807 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
4808 discard plain indirect references.
4809 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
4810 * tree.c (tree_nop_conversion): Likewise.
4812 2010-04-07 Dodji Seketeli <dodji@redhat.com>
4815 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
4817 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
4819 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
4820 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
4822 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
4824 * tree-if-conv.c: Fix indentation and comments.
4826 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
4828 * tree-if-conv.c: Sort static functions in topological order.
4830 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
4832 * tree-if-conv.c: Fix indentation and comments.
4834 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
4837 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
4838 lang_hooks.types.type_for_size instead of
4839 build_nonstandard_integer_type.
4840 When converting an unsigned type to signed, double its precision.
4841 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
4842 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
4843 (graphite_create_new_loop_guard): When ub + 1 wraps around,
4846 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
4849 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
4850 POINTER_PLUS_EXPR for pointer types.
4852 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
4855 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
4856 * graphite-clast-to-gimple.c: Include langhooks.h.
4857 (max_signed_precision_type): New.
4858 (max_precision_type): Takes two types as arguments.
4859 (precision_for_value): New.
4860 (precision_for_interval): New.
4861 (gcc_type_for_interval): New.
4862 (gcc_type_for_value): New.
4863 (gcc_type_for_clast_term): New.
4864 (gcc_type_for_clast_red): New.
4865 (gcc_type_for_clast_bin): New.
4866 (gcc_type_for_clast_expr): Split up into several functions.
4867 (gcc_type_for_clast_eq): Rewritten.
4868 (compute_bounds_for_level): New.
4869 (compute_type_for_level_1): New.
4870 (compute_type_for_level): New.
4871 (gcc_type_for_cloog_iv): Removed.
4872 (gcc_type_for_iv_of_clast_loop): Rewritten.
4873 (graphite_create_new_loop): Compute the lower and upper bound types
4874 with gcc_type_for_clast_expr.
4875 (graphite_create_new_loop_guard): Same.
4876 (find_cloog_iv_in_expr): Removed.
4877 (compute_cloog_iv_types_1): Removed.
4878 (compute_cloog_iv_types): Removed.
4879 (gloog): Do not call compute_cloog_iv_types.
4880 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
4882 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
4883 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
4884 (GBB_CLOOG_IV_TYPES): Removed.
4886 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
4888 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
4889 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
4890 (detect_commutative_reduction): Same.
4892 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
4894 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
4895 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
4897 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
4898 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
4899 (rewrite_commutative_reductions_out_of_ssa): Same.
4900 * passes.c (execute_function_todo): Call verify_ssa for every pass
4901 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
4902 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
4903 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
4904 with an extra argument.
4905 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
4906 verify_ssa only when the extra argument is true.
4907 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
4908 with an extra argument.
4909 (tree_transform_and_unroll_loop): Same.
4911 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
4913 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
4914 for all the passes of the LNO having LOOP_CLOSED_SSA.
4915 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
4916 * tree-loop-distribution.c (pass_loop_distribution): Same.
4917 * tree-pass.h (TODO_verify_loops): Removed.
4918 * tree-ssa-loop.c (pass_tree_loop_init): Same.
4920 (pass_tree_unswitch): Same.
4921 (pass_predcom): Same.
4922 (pass_vectorize): Same.
4923 (pass_linear_transform): Same.
4924 (pass_graphite_transforms): Same.
4925 (pass_iv_canon): Same.
4926 (pass_complete_unroll): Same.
4927 (pass_complete_unrolli): Same.
4928 (pass_parallelize_loops): Same.
4929 (pass_loop_prefetch): Same.
4930 (pass_iv_optimize): Same.
4932 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
4935 * passes.c (init_optimization_passes): Move pass_lim before
4936 pass_copy_prop and pass_dce_loop.
4938 2010-04-06 Jakub Jelinek <jakub@redhat.com>
4941 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
4942 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
4943 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
4944 MULTI_* defines for 4 argument vpermil2p* builtins.
4946 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
4948 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
4949 * config/i386/i386.c (x86_maybe_negate_const_int): New.
4950 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
4951 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
4952 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
4953 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
4954 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
4955 Use x86_maybe_negate_const_int to output insn mnemonic.
4956 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
4957 check from instruction predicate. Update comments.
4958 * config/i386/sync.md (sync_add<mode>): Use
4959 x86_maybe_negate_const_int to output insn mnemonic.
4961 2010-04-06 Jan Hubicka <jh@suse.cz>
4963 PR tree-optimization/42906
4964 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
4965 IGNORE_SELF argument. Set visited_control_parents for fully
4967 (find_obviously_necessary_stmts): Update call of
4968 mark_control_dependent_edges_necessary.
4969 (propagate_necessity): Likewise. Handle PHI edges more curefully.
4971 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
4973 * config/i386/i386.md: Remove comment about 'e' and 'E'
4976 2010-04-06 Richard Guenther <rguenther@suse.de>
4978 PR tree-optimization/43627
4979 * tree-vrp.c (extract_range_from_unary_expr): Widenings
4980 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
4983 2010-04-06 Jakub Jelinek <jakub@redhat.com>
4985 * BASE-VER: Change to 4.6.0.
4988 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
4991 2010-04-06 Richard Guenther <rguenther@suse.de>
4994 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
4996 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4998 * doc/invoke.texi (Optimize Options): Document that LTO
4999 won't remove object access purely due to incompatible
5002 2010-04-04 Matthias Klose <doko@ubuntu.com>
5004 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
5005 Initialize variable.
5007 2010-04-03 Richard Guenther <rguenther@suse.de>
5010 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
5011 require a non-NULL MEM_OFFSET.
5013 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
5015 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
5016 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
5017 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
5018 config/alpha/predicates.md, config/arm/arm.md,
5019 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
5020 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
5021 config/darwin9.h, config/darwin.c, config/darwin.h,
5022 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
5023 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
5024 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
5025 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
5026 config/mips/mips.md, config/mn10300/mn10300.c,
5027 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
5028 config/rs6000/aix.h, config/rs6000/dfp.md,
5029 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
5030 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
5031 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
5032 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
5033 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
5034 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
5035 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
5036 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
5037 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
5038 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
5039 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
5040 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
5041 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
5042 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
5043 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
5044 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
5045 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
5046 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
5047 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
5048 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
5049 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
5050 opt-functions.awk, opth-gen.awk, params.def, passes.c,
5051 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
5052 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
5053 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
5054 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
5055 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
5056 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
5057 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
5058 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
5059 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
5060 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
5061 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
5062 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
5063 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
5064 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
5066 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5069 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
5070 * aclocal.m4: Regenerate.
5072 2010-04-02 Richard Guenther <rguenther@suse.de>
5074 PR tree-optimization/43629
5075 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
5076 if we have seen a constant value.
5078 2010-04-02 Joseph Myers <joseph@codesourcery.com>
5080 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
5082 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
5085 * arm.c (legitimize_tls_address): Adjust call to
5086 gen_tls_load_dot_plus_four.
5087 (arm_note_pic_base): New function.
5088 (arm_cannot_copy_insn_p): Use it.
5089 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
5092 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5097 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5099 * Makefile.in ($(out_object_file)): Depend on
5100 gt-$(basename $(notdir $(out_file))).h.
5102 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
5104 * config.gcc (lm32-*-rtems*): Add t-lm32.
5106 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
5108 * config.gcc: Add lm32-*-rtems*.
5109 * config/lm32/rtems.h: New file.
5111 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
5114 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
5116 2010-04-01 Jakub Jelinek <jakub@redhat.com>
5118 * dwarf2out.c (output_compilation_unit_header): For
5119 -gdwarf-4 use version 4 instead of version 3.
5120 (output_line_info): For version 4 and above emit additional
5121 maximum ops per insn header field.
5122 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
5124 * dwarf2out.c (is_c_family, is_java): Remove.
5125 (lower_bound_default): New function.
5126 (add_bound_info, gen_descr_array_type_die): Use it.
5128 2010-04-01 Dodji Seketeli <dodji@redhat.com>
5131 * dwarf2out.c (gen_variable_die): Allow debug info for variable
5132 re-declaration when it happens in a function.
5134 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
5136 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
5137 (cgraph_remove_function_insertion_hook): Same.
5138 (cgraph_call_function_insertion_hooks): Same.
5140 2010-04-01 Richard Guenther <rguenther@suse.de>
5143 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
5144 and TREE_THIS_VOLATILE.
5145 (copy_ref_info): Likewise.
5146 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
5147 * tree.c (build6_stat): Ignore side-effects of all but arg5
5148 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
5151 2010-04-01 Richard Guenther <rguenther@suse.de>
5153 PR tree-optimization/43607
5154 * ipa-type-escape.c (check_call): Do not access non-existing
5157 2010-04-01 Richard Guenther <rguenther@suse.de>
5161 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
5162 Jack Howarth <howarth@bromo.med.uc.edu>
5164 * tree-profile.c (tree_init_ic_make_global_vars): Make static
5167 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5169 * doc/install.texi (Prerequisites): Document libelf usability on
5170 IRIX 5/6 and Solaris 2.
5171 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
5172 Update GNU as, GNU ld requirements.
5173 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
5174 Document Sun Studio compiler download.
5175 Update and simplify as, ld recommendations.
5176 (Specific, *-*-solaris2.7): Note obsoletion, removal.
5178 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5180 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
5181 with_tune_32 to pentium4.
5183 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
5185 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
5187 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5189 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
5190 obsoletion, removal.
5192 Document GNU as requirement.
5193 Update configure requirements.
5194 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
5195 Recomment IRIX 6.5.18+.
5196 Document IDF/IDL requirement.
5197 Document GNU as requirement.
5198 Document GNU ld bootstrap failure.
5199 Remove freeware.sgi.com reference.
5201 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5203 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
5204 UNIX V4.0, V5.0 obsoletion, removal.
5205 Remove --with-gc=simple reference.
5206 Update VM requirements during bootstrap.
5207 Remove -oldas bootstrap description.
5208 Update binutils reference.
5209 Remove comparison failure note.
5211 2010-03-31 Richard Guenther <rguenther@suse.de>
5212 Zdenek Dvorak <ook@ucw.cz>
5213 Sebastian Pop <sebastian.pop@amd.com>
5216 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
5217 with multiple arguments.
5218 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
5220 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
5222 * graphite-dependences.c (print_pddr): Call print_pdr with an
5224 * graphite-poly.c (debug_pdr): Add an extra argument for the
5227 (print_pbb_domain): Same.
5229 (print_scop_context): Same.
5231 (print_cloog): Same.
5232 (debug_pbb_domain): Same.
5236 (debug_scop_context): Same.
5238 (debug_cloog): Same.
5239 (print_scop_params): Same.
5240 (debug_scop_params): Same.
5241 (print_iteration_domain): Same.
5242 (print_iteration_domains): Same.
5243 (debug_iteration_domain): Same.
5244 (debug_iteration_domains): Same.
5245 (print_scattering_function): Same.
5246 (print_scattering_functions): Same.
5247 (debug_scattering_function): Same.
5248 (debug_scattering_functions): Same.
5249 * graphite-poly.h (debug_pdr): Update declaration.
5251 (print_pbb_domain): Same.
5253 (print_scop_context): Same.
5255 (print_cloog): Same.
5256 (debug_pbb_domain): Same.
5260 (debug_scop_context): Same.
5262 (debug_cloog): Same.
5263 (print_scop_params): Same.
5264 (debug_scop_params): Same.
5265 (print_iteration_domain): Same.
5266 (print_iteration_domains): Same.
5267 (debug_iteration_domain): Same.
5268 (debug_iteration_domains): Same.
5269 (print_scattering_function): Same.
5270 (print_scattering_functions): Same.
5271 (debug_scattering_function): Same.
5272 (debug_scattering_functions): Same.
5274 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
5276 * graphite-poly.c (print_scattering_function_1): New.
5277 (print_scattering_function): Call it.
5278 (print_scop_params): Remove spaces at the end of lines.
5281 * graphite-poly.h (print_cloog): Declared.
5282 (debug_cloog): Declared.
5284 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
5286 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
5288 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
5289 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
5290 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
5291 to switch between adding the IV bump in loop->latch or in loop->header.
5293 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
5295 * graphite-poly.c (print_scattering_function): Pretty print following
5298 (print_pbb_domain): Same.
5299 (dump_gbb_cases): Same.
5300 (dump_gbb_conditions): Same.
5303 (print_scop_params): Same.
5304 (print_scop_context): Same.
5306 (print_pbb_body): New.
5307 (lst_indent_to): New.
5308 (print_lst): Start new lines with a #.
5309 * graphite-poly.h (pbb_bb): New.
5310 (pbb_index): Use pbb_bb.
5311 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
5313 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
5315 2010-03-31 Jakub Jelinek <jakub@redhat.com>
5317 * dwarf2out.c (size_of_die): For -gdwarf-4 use
5318 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
5319 and 0 instead of 1 for dw_val_class_flag.
5320 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
5321 dw_val_class_range_list, dw_val_class_loc_list,
5322 dw_val_class_lineptr and dw_val_class_macptr, use
5323 DW_FORM_flag_present for dw_val_class_flag and
5324 DW_FORM_exprloc for dw_val_class_loc.
5325 (output_die): For -gdwarf-4 print dw_val_class_loc
5326 size as uleb128 instead of 1 or 2 bytes and don't print
5327 anything for dw_val_class_flag.
5329 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
5330 instead of cselib_lookup following by tweaking locs->setting_insn.
5333 * cselib.c (cselib_process_insn): Clear cselib_current_insn
5334 even before returning from label, setjmp call or volatile asm
5337 2010-03-31 Richard Guenther <rguenther@suse.de>
5340 * cgraphunit.c (cgraph_output_in_order): Do not allocate
5341 temporary data on stack.
5343 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5345 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
5346 (PUSHSECTION_ASM_OP): Remove.
5347 (POPSECTION_ASM_OP): Remove.
5348 (PUSHSECTION_FORMAT): Remove.
5349 * config/sol2.h (PUSHSECTION_FORMAT): Define.
5350 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
5351 * config/sol2.c (solaris_output_init_fini): Use it.
5353 2010-03-31 Jie Zhang <jie@codesourcery.com>
5356 * opt-functions.awk (var_type_struct): Use signed char type
5357 for simple variables.
5359 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5361 * config/sol2.c: Include output.h.
5362 (solaris_assemble_visibility): New function.
5363 * config/t-sol2 (sol2.o): Add output.h dependency.
5364 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
5365 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
5368 2010-03-31 Jakub Jelinek <jakub@redhat.com>
5371 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
5372 V2SImode or XFmode on PRE_DEC.
5375 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
5378 2010-03-31 Jie Zhang <jie@codesourcery.com>
5381 * reload.h (caller_save_initialized_p): Declare.
5382 * toplev.c (backend_init_target): Don't call
5383 init_caller_save but set caller_save_initialized_p to false.
5384 * caller-save.c (caller_save_initialized_p): Define.
5385 (init_caller_save): Check caller_save_initialized_p.
5386 * ira.c (ira): Call init_caller_save if flag_caller_saves.
5388 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5391 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
5392 and soft-fp/t-softfp to tmake_file.
5393 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
5394 (LIBGCC2_TF_CEXT): Define.
5397 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
5400 * cselib.c (n_useless_values): Document handling of debug locs.
5401 (n_useless_debug_values, n_debug_values): New variables.
5402 (new_elt_loc_list): Don't add to debug values, keep count.
5403 (promote_debug_loc): New.
5404 (cselib_reset_table): Zero new variables.
5405 (entry_and_rtx_equal_p): Promote debug locs.
5406 (discard_useless_locs): Increment n_useless_debug_values for
5408 (remove_useless_values): Adjust n_useless_values and n_debug_values
5409 with n_useless_debug_values.
5410 (add_mem_for_addr): Promote debug locs.
5411 (cselib_lookup_mem): Likewise.
5412 (cselib_lookup_addr): Renamed to...
5413 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
5414 (cselib_log_lookup): ... this. Turn into...
5415 (cselib_lookup_addr): ... new wrapper.
5416 (cselib_lookup_from_insn): New.
5417 (cselib_invalidate_regno): Increment n_useless_debug_values for
5419 (cselib_invalidate_mem): Likewise.
5420 (cselib_process_insn): Take n_deleted and n_debug_values into
5421 account to guard remove_useless_value call.
5422 (cselib_finish): Zero n_useless_debug_values.
5423 * cselib.h (cselib_lookup_from_insn): Declare.
5424 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
5425 (sched_analyze_2): Likewise.
5427 2010-03-30 Jakub Jelinek <jakub@redhat.com>
5429 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
5431 (adjust_mems): Replace narrowing SUBREG of expression containing
5432 just PLUS, MINUS, MULT and ASHIFT of registers and constants
5433 with operations in the narrower mode.
5436 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
5437 regs_invalidated_by_call instead all call_used_reg_set registers.
5439 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
5442 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
5443 pointer comparisons with types_compatible_p.
5444 * tree-vect-stmts.c (vectorizable_call): Same.
5445 (vectorizable_condition): Same.
5447 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5449 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
5450 stack check if the mask would be zero.
5452 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
5453 Jack Howarth <howarth@bromo.med.uc.edu>
5455 * tree-profile.c (tree_init_ic_make_global_vars): Make static
5458 2010-03-30 Joseph Myers <joseph@codesourcery.com>
5461 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
5463 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
5464 Include ___unordxf2 and ___unordtf2.
5465 * config/i386/libgcc-glibc.ver: Do not define inheritance from
5468 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
5470 * config/lm32/t-lm32: New file.
5471 * config.gcc: Use the above file when targetting lm32.
5473 2010-03-28 Duncan Sands <baldrick@free.fr>
5475 * Makefile.in (PLUGIN_HEADERS): Add except.h.
5477 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
5480 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
5481 Improve vectorization cost model diagnostic.
5483 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
5486 * tree-vect-data-refs.c (vect_analyze_data_refs): When
5487 compute_data_dependences_for_loop returns false, early exit
5488 and output an extra diagnostic for the failed data reference
5491 2010-03-29 Richard Guenther <rguenther@suse.de>
5493 PR tree-optimization/43560
5494 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
5495 (can_sm_ref_p): Treat stores to readonly locations as trapping.
5497 2010-03-29 Jie Zhang <jie@codesourcery.com>
5500 * toplev.c (process_options): Set optimization_default_node
5501 and optimization_current_node.
5502 * opts.c (decode_options): Don't set optimization_default_node
5503 and optimization_current_node.
5505 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
5507 * config/rtems.h: Abandon -qrtems_debug.
5509 2010-03-28 Jan Hubicka <jh@suse.cz>
5511 PR tree-optimization/43505
5512 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
5513 map should not be copied.
5515 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5518 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
5519 cdtors, set DECL_PRESERVE_P.
5520 * ipa.c (cgraph_externally_visible_p): Return true if declaration
5523 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
5525 PR tree-optimization/43528
5526 * stor-layout.c (place_field): Check that constant fits into
5527 unsigned HWI when skipping calculation of MS bitfield layout.
5529 2010-03-27 Jan Hubicka <jh@suse.cz>
5532 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
5533 notice_global_symbol work.
5535 2010-03-27 Jakub Jelinek <jakub@redhat.com>
5537 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
5538 instead of dwarf2out_decl.
5539 (struct var_loc_node): Remove section_label field.
5540 (dwarf2out_function_decl): New function.
5541 (dwarf2out_var_location): Don't set section_label field.
5542 (dwarf2out_begin_function): Don't empty decl_loc_table here.
5544 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
5546 PR tree-optimization/43544
5547 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
5548 First argument for builtin vectorized function hook is now a
5549 tree to be able to distinguish between machine specific and
5551 * targhooks.c (default_builtin_vectorized_function): Ditto.
5552 * targhooks.h (default_builtin_vectorized_function): Ditto.
5553 * target.h (struct gcc_target): Ditto.
5554 * tree-vect-stmts.c (vectorizable_function): Ditto.
5555 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
5556 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
5559 2010-03-26 Joseph Myers <joseph@codesourcery.com>
5562 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
5563 nested binding iff it is a FUNCTION_DECL.
5564 (store_parm_decls_newstyle): Pass nested=true to bind for
5565 FUNCTION_DECLs amongst parameters.
5567 2010-03-26 Jakub Jelinek <jakub@redhat.com>
5569 * var-tracking.c (vt_expand_loc_callback): Don't run
5570 cselib_expand_value_rtx_cb in dummy mode if
5571 cselib_dummy_expand_value_rtx_cb returned false.
5573 * var-tracking.c (emit_note_insn_var_location): For one part
5574 notes with offset 0, don't add EXPR_LIST around the location.
5575 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
5576 add_location_or_const_value_attribute): Adjust for that change.
5579 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
5580 into first operand and location into second.
5581 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
5582 dw_cfi_oprnd_loc for DW_CFA_expression.
5583 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
5584 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
5585 assume first argument is regnum and second argument is location.
5587 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
5590 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
5591 of scratch register to DImode. Split to DImode comparison operator.
5592 Use SImode subreg of scratch register in the multiplication.
5593 (*cmp_sadd_sidi): Ditto.
5594 (*cmp_ssub_si): Ditto.
5595 (*cmp_ssub_sidi): Ditto.
5597 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
5600 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
5601 Remove invalid assert and wrong comment.
5603 2010-03-26 Jakub Jelinek <jakub@redhat.com>
5606 * flags.h (final_insns_dump_p): New extern.
5607 * final.c (final_insns_dump_p): New variable.
5608 (rest_of_clean_state): Set it before -fdump-final-insns=
5609 dumping, clear afterwards.
5610 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
5611 MEM_ALIAS_SET on MEMs.
5613 2010-03-26 David S. Miller <davem@davemloft.net>
5615 * configure.ac: Fix sparc GOTDATA_OP bug check.
5616 * configure: Rebuild.
5618 2010-03-26 Alan Modra <amodra@gmail.com>
5620 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
5622 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5624 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
5625 TLS_SECTION_ASM_FLAG.
5627 2010-03-25 Jakub Jelinek <jakub@redhat.com>
5630 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
5631 Clear first_function_block_is_cold.
5634 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
5635 argument if the argument is truth_value_p.
5637 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
5639 * config/rs6000/constraints.md: Update copyright year for my changes.
5642 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
5643 used in reg+reg addressing, swap registers.
5645 2010-03-24 Jakub Jelinek <jakub@redhat.com>
5648 * target.h (struct gcc_target): Add code_end hook.
5649 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
5651 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
5652 * toplev.c (compile_file): Call targetm.asm_out.code_end
5653 hook before unwind info/debug info output.
5654 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
5655 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
5656 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
5657 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
5658 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
5659 * config/i386/i386.c (ix86_file_end): Renamed to...
5660 (ix86_code_end): ... this. Make static. Don't call
5661 file_end_indicate_exec_stack. Emit unwind info using
5662 final_start_function/final_end_function.
5663 (darwin_x86_file_end): Remove.
5664 (TARGET_ASM_CODE_END): Define.
5665 * config/i386/i386.h (TARGET_ASM_FILE_END,
5666 NEED_INDICATE_EXEC_STACK): Don't define.
5667 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
5668 (TARGET_ASM_FILE_END): Define to darwin_file_end.
5669 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
5670 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
5673 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
5674 at the beginning and final_end_function at the end.
5675 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
5677 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5679 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
5680 and Sun as TLS syntax.
5681 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
5682 * configure: Regenerate.
5683 * config.in: Regenerate.
5684 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
5685 (default_elf_asm_named_section): Use it.
5686 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
5687 (i386_output_dwarf_dtprel): Likewise.
5688 (output_addr_const_extra): Likewise.
5689 (output_pic_addr_const): Lowercase @GOTTPOFF.
5690 (output_addr_const_extra): Likewise.
5691 (output_pic_addr_const): Lowercase @GOTNTPOFF.
5692 (output_addr_const_extra): Likewise.
5693 (output_pic_addr_const): Lowercase @INDNTPOFF.
5694 (output_addr_const_extra): Likewise.
5695 (output_pic_addr_const): Lowercase @NTPOFF.
5696 (output_addr_const_extra): Likewise.
5697 (output_pic_addr_const): Lowercase @TPOFF.
5698 (output_addr_const_extra): Likewise.
5699 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
5700 (*tls_global_dynamic_64): Likewise.
5701 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
5702 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
5704 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
5705 (ASM_OUTPUT_TLS_COMMON): Use it.
5706 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
5709 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
5710 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
5711 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
5712 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
5713 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
5714 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
5716 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5718 * config/i386/i386.c (override_options): Don't accept
5719 -mtls-dialect=sun any longer.
5720 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
5721 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
5722 (*tls_local_dynamic_base_32_sun): Likewise.
5723 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
5725 2010-03-24 Jakub Jelinek <jakub@redhat.com>
5728 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
5729 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
5732 * ira.c (adjust_cleared_regs): New function.
5733 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
5737 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
5739 * expr.c (expand_expr_real): Restore previous
5740 curr_insn_source_location and curr_insn_block after
5741 expand_expr_real_1 call.
5742 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
5743 instead of expand_expr_real_1.
5745 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
5747 PR rtl-optimization/43413
5748 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
5751 2010-03-22 James E. Wilson <wilson@codesourcery.com>
5754 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
5755 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
5757 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
5759 * config/i386/i386.c (ix86_target_string): Add -mfma.
5760 Fix a typo in comment.
5762 2010-03-22 Mike Stump <mikestump@comcast.net>
5765 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
5766 Don't overly align based upon packed packed fields.
5768 2010-03-22 Jason Merrill <jason@redhat.com>
5770 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
5771 Use () rather than [], and move before the element type.
5773 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5775 * doc/configfiles.texi (Configuration Files): Removed
5776 fixinc/Makefile*, intl/Makefile.*.
5777 * doc/makefile.texi: Fixed markup. Abstract from version
5778 control system used.
5779 (Makefile): Removed obsolete gcc/java/parse.y example.
5780 * doc/sourcebuild.texi: Likewise.
5781 (Top Level): Added config, gnattools, libdecnumber, libgcc,
5782 libgomp, libssp. Removed fastjar.
5783 (Miscellaneous Docs): Clarify location.
5784 Added COPYING3, COPYING3.LIB.
5785 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
5787 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5790 * config/i386/i386.c (x86_function_profiler)
5791 [!NO_PROFILE_COUNTERS]: Fix typo.
5792 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
5795 2010-03-22 Janis Johnson <janis187@us.ibm.com>
5796 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5798 * doc/sourcebuild.texi (Test Directives): Split into six
5799 subsections, with most of the current text in new subsections
5800 Directives, Selectors, and Final Actions.
5801 (Directives): Split list of test directives into multiple
5803 (Selectors): Describe use and syntax of selectors.
5804 (Effective-Target Keywords): Describe all existing keywords.
5805 (Add Options): Describe features for dg-add-options.
5806 (Require Support): Describe variants of dg-require-support.
5807 (Final Actions): Describe commands to use in dg-final.
5809 2010-03-22 Michael Matz <matz@suse.de>
5812 * recog.c (validate_replace_rtx_group): Replace also in
5813 REG_EQUAL and REG_EQUIV notes.
5815 2010-03-22 Richard Guenther <rguenther@suse.de>
5817 PR tree-optimization/43390
5818 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
5819 sure vector extracts are type correct.
5821 2010-03-22 Richard Guenther <rguenther@suse.de>
5824 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
5825 x * sqrt (x) even when optimizing for size if the target
5826 has native support for sqrt.
5828 2010-03-22 Jakub Jelinek <jakub@redhat.com>
5830 * varasm.c (make_decl_rtl_for_debug): Also clear
5831 flag_mudflap for the duration of make_decl_rtl call.
5834 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
5835 locs from preserved VALUEs.
5837 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5840 * pa.md (movmemsi): Set align to one if zero.
5841 (movmemdi): Likewise.
5843 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
5846 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
5847 with their corresponding prologue pushes.
5849 2010-03-20 Andrew Pinski <pinskia@gmail.com>
5852 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
5853 at the begining or end.
5854 (spu_expand_epilogue): Likewise.
5856 2010-03-20 Richard Guenther <rguenther@suse.de>
5858 PR rtl-optimization/43438
5859 * combine.c (make_extraction): Properly zero-/sign-extend an
5860 extraction of the low part of a CONST_INT. Also handle
5863 2010-03-19 Mike Stump <mikestump@comcast.net>
5865 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
5866 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
5867 (override_options): Use SUBTARGET32_DEFAULT_CPU.
5869 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
5872 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
5875 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
5877 PR rtl-optimization/42258
5878 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
5879 use that may match DEF.
5882 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
5883 the cost of loading the constant rather than assuming
5885 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
5886 outer code is AND, do the same tests as the andsi3 expander and
5887 return COSTS_N_INSNS (1) if and is cheap.
5889 * optabs.c (avoid_expensive_constant): Fix formatting.
5891 2010-03-19 Michael Matz <matz@suse.de>
5894 * attribs.c (decl_attributes): When rebuilding a function pointer
5895 type use the same qualifiers as the original pointer type.
5897 2010-03-19 Martin Jambor <mjambor@suse.cz>
5899 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
5900 and is_gimple_ip_invariant_address.
5902 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5905 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5907 * config/arm/arm.c (arm_override_options): Turn off
5908 flag_dwarf2_cfi_asm for AAPCS variants.
5910 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5913 * config/arm/arm.c (emit_multi_reg_push): Update comments.
5914 Use PRE_MODIFY instead of PRE_DEC.
5915 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
5916 (vfp_emit_fstmd): Likewise.
5918 2010-03-19 Michael Matz <matz@suse.de>
5921 * builtins.c (expand_builtin_interclass_mathfn,
5922 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
5925 2010-03-19 Richard Guenther <rguenther@suse.de>
5927 PR tree-optimization/43415
5928 * tree-ssa-pre.c (phi_translate): Split out worker to ...
5929 (phi_translate_1): ... this.
5930 (phi_translate): Move all caching here. Cache all NARY
5931 and REFERENCE translations.
5933 2010-03-19 David S. Miller <davem@davemloft.net>
5935 With help from Eric Botcazou.
5936 * config/sparc/sparc.c: Include dwarf2out.h.
5937 (emit_pic_helper): Delete.
5938 (pic_helper_symbol_name): Delete.
5939 (pic_helper_emitted_p): Delete.
5940 (pic_helper_needed): New.
5941 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
5942 (get_pc_thunk_name): New.
5943 (load_pic_register): Remove 'delay_pic_helper' arg. Use
5944 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
5945 Set pic_helper_needed to true. Don't call emit_pic_helper.
5946 (sparc_expand_prologue): Update load_pic_register call.
5947 (sparc_output_mi_thunk): Likewise.
5948 (sparc_file_end): Emit a hidden comdat symbol for the PIC
5949 thunk if possible. Output CFI information as needed.
5951 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5952 Jack Howarth <howarth@bromo.med.uc.edu>
5955 * config/i386/i386.h: Fix ABI on darwin x86-32.
5957 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
5959 * tree.h: Declare make_decl_rtl_for_debug.
5960 * varasm.c (make_decl_rtl_for_debug): New.
5961 * dwarf2out.c (rtl_for_decl_location): Call it.
5962 * cfgexpand.c (expand_debug_expr): Call it.
5964 2010-03-18 Jakub Jelinek <jakub@redhat.com>
5967 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
5971 * var-tracking.c (vt_init_cfa_base): Do nothing if
5972 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
5974 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
5977 * var-tracking.c (canonicalize_vars_star): New.
5978 (dataflow_post_merge_adjust): Use it.
5980 2010-03-18 Jakub Jelinek <jakub@redhat.com>
5983 * var-tracking.c (non_suitable_const): New function.
5984 (add_uses): For DEBUG_INSNs with constants, don't record any
5985 value, instead just the constant value itself.
5986 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
5987 is not VAR_LOC_UNKNOWN_P, set var to the constant.
5988 (emit_notes_in_bb): Likewise.
5989 (emit_note_insn_var_location): For onepart variables if
5990 cur_loc is a VOIDmode constant, use DECL_MODE.
5992 2010-03-18 Martin Jambor <mjambor@suse.cz>
5995 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
5996 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
5997 all non-clones. Moved call redirection...
5998 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
5999 (cgraph_materialize_all_clones): Dispose of all
6000 combined_args_to_skip bitmaps.
6001 (verify_cgraph_node): Do not check for edges pointing to wrong
6002 nodes in inline clones.
6003 * tree-inline.c (copy_bb): Call
6004 cgraph_redirect_edge_call_stmt_to_callee.
6005 * ipa.c (cgraph_remove_unreachable_nodes): Call
6006 cgraph_node_remove_callees even when there are used clones.
6008 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
6010 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
6012 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
6015 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
6018 2010-03-18 Michael Matz <matz@suse.de>
6021 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
6022 into sqrt(x) if we need to preserve signed zeros.
6024 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
6025 Eric Botcazou <ebotcazou@adacore.com>
6027 PR rtl-optimization/43360
6028 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
6029 note if we don't know its invariant status.
6031 2010-03-18 Michael Matz <matz@suse.de>
6033 PR tree-optimization/43402
6034 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
6035 PHI chains of ssa names registered for update.
6037 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
6040 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
6041 non-offsettable and pre_modify update addressing.
6042 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
6043 and "2" alternatives "#".
6044 (*movdd_softfloat32): Make all alternatives "#";
6045 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
6046 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
6047 (*movdf_softfloat32): Make all alternatives "#";
6048 (movdi): Use the new DIFD mode iterator to create a common splitter
6049 for movdi, movdf and movdd patterns.
6051 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
6053 * common.opt (dumpdir): Remove redundant tab.
6055 2010-03-17 Martin Jambor <mjambor@suse.cz>
6057 PR tree-optimization/43347
6058 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
6059 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
6061 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
6063 PR rtl-optimization/42216
6064 * regrename.c (create_new_chain): New function, broken out from...
6065 (scan_rtx_reg): ... here. Call it. Handle the case where we are
6066 appending a use to an empty chain.
6067 (build_def_use): Remove previous changes that convert OP_INOUT to
6068 OP_OUT operands; instead detect the case where an OP_INOUT operand
6069 uses a previously untracked register and create an empty chain for it.
6071 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6073 * doc/extend.texi (Function Attributes): Rewrite unfinished
6074 sentence in ms_abi documentation.
6076 2010-03-17 Alan Modra <amodra@gmail.com>
6078 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
6079 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
6080 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
6081 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
6083 2010-03-16 Richard Henderson <rth@redhat.com>
6086 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
6087 (lower_try_finally): Save and restore eh_seq around the expansion
6090 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
6092 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
6093 statements before splitting block.
6095 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6097 * doc/sourcebuild.texi (Testsuites): Fix markup.
6098 Use pathnames relative to gcc/testsuite.
6099 (Test Directives): Move description of how timeout is determined.
6100 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
6101 (C Tests): Correct gcc.misc-tests directory.
6102 Framework tests now live in gcc.test-framework.
6104 2010-03-16 Richard Guenther <rguenther@suse.de>
6107 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
6108 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
6110 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
6111 Alexandre Oliva <aoliva@redhat.com>
6113 PR tree-optimization/42917
6114 * lambda-code.c (remove_iv): Skip debug statements.
6115 (lambda_loopnest_to_gcc_loopnest): Likewise.
6116 (not_interesting_stmt): Debug statements are not interesting.
6118 2010-03-16 Jakub Jelinek <jakub@redhat.com>
6122 * cselib.c (cselib_preserve_constants,
6123 cfa_base_preserved_val): New static variables.
6124 (preserve_only_constants): New function.
6125 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
6126 clear its REG_VALUES. If cselib_preserve_constants, don't
6127 empty the whole hash table, but preserve there VALUEs with constants,
6128 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
6129 (cselib_preserve_cfa_base_value): New function.
6130 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
6131 (cselib_init): Change argument to int bitfield. Set
6132 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
6134 (cselib_finish): Clear cselib_preserve_constants and
6135 cfa_base_preserved_val.
6136 * cselib.h (enum cselib_record_what): New enum.
6137 (cselib_init): Change argument to int.
6138 (cselib_preserve_cfa_base_value): New prototype.
6139 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
6140 * dse.c (dse_step1): Likewise.
6141 * cfgcleanup.c (thread_jump): Likewise.
6142 * sched-deps.c (sched_analyze): Likewise.
6143 * gcse.c (local_cprop_pass): Likewise.
6144 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
6145 If FN is non-NULL, call the callback always and whenever it returns
6146 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
6147 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
6148 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
6149 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
6150 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
6151 * var-tracking.c: Include recog.h.
6152 (bb_stack_adjust_offset): Remove.
6153 (vt_stack_adjustments): Don't call it, instead just gather the
6154 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
6155 (adjust_stack_reference): Remove.
6156 (compute_cfa_pointer): New function.
6157 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
6158 (struct adjust_mem_data): New type.
6159 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
6161 (get_address_mode): New function.
6162 (replace_expr_with_values): Use it.
6163 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
6164 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
6165 (adjust_sets): Remove.
6166 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
6167 Use get_address_mode.
6168 (get_adjusted_src): Remove.
6169 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
6170 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
6171 (add_with_sets): Don't call adjust_sets.
6172 (fp_setter, vt_init_cfa_base): New functions.
6173 (vt_initialize): Change return type to bool. Move most of pool etc.
6174 initialization to the beginning of the function from end. Pass
6175 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
6176 If !frame_pointer_needed, call vt_stack_adjustment before mos
6177 vector is filled, call vt_init_cfa_base if argp/framep has been
6178 eliminated to sp. If frame_pointer_needed and argp/framep has
6179 been eliminated to hard frame pointer, set
6180 hard_frame_pointer_adjustment and call vt_init_cfa_base after
6181 encountering fp setter in the prologue. For MO_ADJUST, call
6182 log_op_type before pusing the op into mos vector, not afterwards.
6183 Call adjust_insn before cselib_process_insn/add_with_sets,
6184 call cancel_changes (0) afterwards.
6185 (variable_tracking_main_1): Adjust for vt_initialize calling
6186 vt_stack_adjustments and returning whether it succeeded or not.
6188 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
6190 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
6193 2010-03-15 Jakub Jelinek <jakub@redhat.com>
6195 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
6197 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
6198 drap_reg has not been set.
6200 2010-03-15 Michael Matz <matz@suse.de>
6203 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
6204 use it to expand block copies.
6205 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
6206 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
6207 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
6209 2010-03-15 Richard Guenther <rguenther@suse.de>
6211 PR tree-optimization/43367
6212 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
6215 2010-03-15 Richard Guenther <rguenther@suse.de>
6217 PR tree-optimization/43317
6218 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
6220 2010-03-15 Martin Jambor <mjambor@suse.cz>
6222 PR tree-optimization/43141
6223 * tree-sra.c (create_abstract_origin): New function.
6224 (modify_function): Call create_abstract_origin.
6226 2010-03-15 Chris Demetriou <cgd@google.com>
6228 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
6231 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
6234 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
6235 call insert_out_of_ssa_copy for default definitions.
6237 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
6239 * graphite-clast-to-gimple.c (my_long_long): Defined.
6240 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
6241 * graphite-sese-to-poly.c (my_long_long): Defined.
6242 (scop_ivs_can_be_represented): Use it.
6244 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
6246 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
6247 graphite-max-bbs-per-function, and loop-block-tile-size.
6248 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
6250 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
6252 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
6254 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
6255 forward declaration.
6256 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
6257 (add_upper_bounds_from_estimated_nit): New.
6258 (build_loop_iteration_domains): Use it.
6260 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
6262 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
6264 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
6267 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
6268 should be an INTEGER_CST. Also handle CASE_CONVERT.
6270 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
6272 * graphite.c (graphite_initialize): To bound the number of bbs per
6273 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
6274 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
6275 * doc/invoke.texi: Document it.
6277 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
6279 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
6280 * graphite-sese-to-poly.h (build_poly_scop): Same.
6282 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
6284 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
6285 the number of parameters in the scop. Use as an upper bound
6286 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
6287 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
6288 * doc/invoke.texi: Document it.
6290 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
6292 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
6293 * doc/c-tree.texi: Remove.
6294 * doc/generic.texi: Merge c-tree.texi here.
6295 * doc/gccint.texi (Trees): Remove menu entry.
6296 (c-tree.texi): Remove @include.
6297 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
6298 * doc/languages.texi (Reading RTL): Ditto.
6300 2010-03-12 Steve Ellcey <sje@cup.hp.com>
6303 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
6305 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
6308 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
6309 code added to work around reload clobbering CONST insns.
6311 2010-03-12 Jakub Jelinek <jakub@redhat.com>
6313 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
6314 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
6315 (cselib_preserve_only_values): Remove retain argument, don't
6316 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
6317 * cselib.h (cselib_preserve_only_values): Remove retain argument.
6318 * var-tracking.c (micro_operation): Move insn field before union.
6319 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
6320 (struct variable_tracking_info_def): Remove n_mos field, change
6321 mos into a vector of micro_operations.
6322 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
6323 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
6324 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
6325 changing into a vector.
6326 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
6327 come before all other uops generated by add_stores.
6328 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
6330 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
6331 a vector. Run just one pass over the bbs instead of separate counting
6332 and computation phase.
6333 (vt_finalize): Free VTI (bb)->mos vector instead of array.
6336 * tree-inline.c (remap_decls): Put old_var rather than origin_var
6337 into *nonlocalized_list vector.
6338 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
6339 even if origin is non-NULL.
6340 (gen_variable_die): Likewise.
6341 (process_scope_var): Don't change origin.
6342 (gen_decl_die): Likewise.
6343 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
6344 before adding new edges instead of after it, fix moving over
6347 2010-03-11 David S. Miller <davem@davemloft.net>
6349 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
6351 * configure: Rebuild.
6353 2010-03-11 Martin Jambor <mjambor@suse.cz>
6355 PR tree-optimization/43257
6356 * tree.c (assign_assembler_name_if_neeeded): New function.
6357 (free_lang_data_in_cgraph): Assembler name assignment moved to the
6359 * tree.h (assign_assembler_name_if_neeeded): Declare.
6360 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
6361 the function if needed.
6363 2010-03-11 Chris Demetriou <cgd@google.com>
6365 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
6366 include/stdint-gcc.h, and include/stdint.h world-readable.
6368 2010-03-11 Richard Guenther <rguenther@suse.de>
6370 PR tree-optimization/43255
6371 * tree-vrp.c (process_assert_insertions_for): Do not insert
6372 asserts for trivial conditions.
6374 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6376 PR tree-optimization/43280
6377 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
6378 generation. Move calculation of size out of the if branch.
6379 (find_bswap): Modify compare number generation.
6381 2010-03-11 Richard Guenther <rguenther@suse.de>
6384 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
6385 (input_gimple_stmt): Fixup handled component types during
6386 operand read. Also fix up decls in ADDR_EXPRs.
6388 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
6390 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
6391 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
6393 2010-03-10 Jan Hubicka <jh@suse.cz>
6396 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
6397 * varasm.c (get_variable_section): Don't do that here...
6398 (make_decl_rtl): ... and here.
6399 (do_assemble_alias): Produce decl RTL.
6400 (assemble_alias): Likewise.
6402 2010-03-10 Jakub Jelinek <jakub@redhat.com>
6405 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
6406 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
6408 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
6409 (based_loc_descr): Only express drap or vdrap regno based expressions
6410 using DW_OP_fbreg when not optimizing.
6411 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
6412 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
6413 REG_CFA_SET_VDRAP note.
6415 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
6417 PR tree-optimization/43236
6418 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
6419 error in calculation of base address in reverse iteration case.
6420 (generate_builtin): Take number of latch executions if the statement
6423 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
6426 * tree-eh.c: Include pointer-set.h.
6427 (lower_eh_dispatch): Filter out duplicate case labels and
6428 remove the unneeded edge when the label is unused. Return
6429 true when some edges are removed.
6430 (execute_lower_eh_dispatch): When any lowering resulted in
6431 removing an edge, also delete unreachable blocks.
6433 2010-03-10 Jakub Jelinek <jakub@redhat.com>
6436 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
6437 UNSPEC_MACHOPIC_OFFSET.
6439 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
6442 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
6443 (m68k_delegitimize_address): New function.
6445 2010-03-09 Jakub Jelinek <jakub@redhat.com>
6448 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
6451 * var-tracking.c (adjust_sets): New function.
6452 (count_with_sets, add_with_sets): Use it.
6453 (get_adjusted_src): New inline function.
6454 (add_stores): Use it.
6457 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
6458 call cselib_dummy_expand_value_rtx_cb instead of
6459 cselib_expand_value_rtx_cb.
6462 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
6463 * config/i386/i386.c: Include debug.h and dwarf2out.h.
6464 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
6465 and .cfi_endproc around the pic thunks.
6466 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
6467 all queued unwind info register saves are saved before the call.
6468 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
6469 considered as sp-=4 for unwind info and the pop as sp+=4 which
6470 also clobbers dest, but doesn't actually restore it.
6473 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
6474 RTX_FRAME_RELATED_P.
6476 2010-03-09 Jie Zhang <jie@codesourcery.com>
6478 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
6479 whitespaces in output template.
6481 2010-03-09 Jie Zhang <jie@codesourcery.com>
6483 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
6486 2010-03-08 Jakub Jelinek <jakub@redhat.com>
6488 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
6489 builtins.exp in a separate job.
6491 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
6493 * graphite-sese-to-poly.c (add_param_constraints): Use
6494 lower_bound_in_type and upper_bound_in_type.
6496 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
6498 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
6499 instead of unsigned_type_node.
6501 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
6502 Reza Yazdani <reza.yazdani@amd.com>
6505 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
6506 on pointer type parameters.
6508 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
6512 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
6513 handle conversions from pointer to integers.
6514 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
6515 induction variable, to be able to work with code generated by CLooG.
6516 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
6517 (build_poly_scop): Bail out if we cannot codegen a loop.
6519 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
6521 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
6522 code generation with gloog_error.
6524 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
6526 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
6527 Call fold_convert on all the returned values.
6528 (expand_scalar_variables_expr): Pass to
6529 expand_scalar_variables_ssa_name the type of the resulting expression.
6531 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
6533 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
6534 ppl_min_for_le_pointset.
6535 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
6536 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
6538 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
6540 * graphite-dependences.c (map_into_dep_poly): Removed.
6541 (dependence_polyhedron_1): Use combine_context_id_scat.
6543 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
6545 * graphite-poly.h (struct poly_scattering): Add layout documentation.
6546 (struct poly_bb): Same.
6547 (combine_context_id_scat): New.
6549 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
6552 * sese.c (name_defined_in_loop_p): Return false for default
6555 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
6557 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
6558 and clean up the logic.
6560 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
6562 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
6565 2010-03-08 Jakub Jelinek <jakub@redhat.com>
6567 * var-tracking.c (remove_cselib_value_chains): Define only for
6569 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
6570 delete_slot_part, emit_notes_for_differences_1): Don't call
6571 remove_cselib_value_chains here.
6572 (set_slot_part, emit_notes_for_differences_2): Don't call
6573 add_cselib_value_chains here.
6574 (preserved_values): New vector.
6575 (preserve_value): New function.
6576 (add_uses, add_stores, vt_add_function_parameters): Use it
6577 instead of cselib_preserve_value.
6578 (changed_values_stack): New vector.
6579 (check_changed_vars_0): New function.
6580 (check_changed_vars_1, check_changed_vars_2): Use it.
6581 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
6582 changed_values_stack VALUEs.
6583 (vt_emit_notes): For all preserved_values call
6584 add_cselib_value_chains. If ENABLE_CHECKING call
6585 remove_cselib_value_chains before verifying value_chains is empty.
6586 Initialize and free changed_values_stack.
6587 (vt_initialize): Initialize preserved_values.
6588 (vt_finalize): Free preserved_values.
6590 2010-03-08 Richard Guenther <rguenther@suse.de>
6592 PR tree-optimization/43269
6593 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
6596 2010-03-08 Martin Jambor <mjambor@suse.cz>
6598 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
6599 (ipa_is_param_called): Removed.
6600 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
6601 (ipa_print_node_params): Do not print the called flag.
6602 (ipa_write_node_info): Do not stream the called flag.
6603 (ipa_read_node_info): Likewise.
6605 2010-03-07 Jakub Jelinek <jakub@redhat.com>
6608 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
6609 * cselib.c (struct expand_value_data): Add dummy field.
6610 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
6612 (cselib_dummy_expand_value_rtx_cb): New function.
6613 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
6615 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
6616 * var-tracking.c: Include pointer-set.h.
6617 (variable): Change n_var_parts to char from int. Add
6618 cur_loc_changed and in_changed_variables fields.
6619 (variable_canonicalize): Remove.
6620 (shared_var_p): New inline function.
6621 (unshare_variable): Maintain cur_loc_changed and
6622 in_changed_variables fields. If var was in changed_variables,
6623 replace it there with new_var. Just copy cur_loc instead of
6624 resetting it to something else.
6625 (variable_union): Don't recompute cur_loc. Use shared_var_p.
6626 (dataflow_set_union): Don't call variable_canonicalize.
6627 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
6628 of their DEBUG_EXPR_TREE_DECLs.
6629 (canonicalize_loc_order_check): Verify that cur_loc is NULL
6630 and in_changed_variables and cur_loc_changed is false.
6631 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
6632 and cur_loc_changed. Don't update cur_loc here.
6633 (variable_merge_over_src): Don't call variable_canonicalize.
6634 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
6635 removing loc that is equal to cur_loc, clear cur_loc,
6636 set cur_loc_changed and ensure variable_was_changed is called.
6637 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
6638 compare pointers in cur_loc check, if it is equal to loc,
6639 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
6640 (variable_different_p): Remove compare_current_location argument,
6641 don't compare cur_loc.
6642 (dataflow_set_different_1): Adjust variable_different_p caller.
6643 (variable_was_changed): If dv had some var in changed_variables
6644 already, reset in_changed_variables flag for it and propagate
6645 cur_loc_changed over to the new variable. On empty var
6646 always set cur_loc_changed. Set in_changed_variables on whatever
6647 var is added to changed_variables.
6648 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
6649 Use shared_var_p. When removing loc that is equal to cur_loc,
6650 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
6651 end, don't set it to something else, just call variable_was_changed.
6652 (delete_slot_part): Use shared_var_p. When cur_loc equals to
6653 loc being removed, clear cur_loc and set cur_loc_changed.
6654 Set cur_loc_changed if all locations have been removed.
6655 (struct expand_loc_callback_data): New type.
6656 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
6657 allocated. Always create SUBREGs if simplify_subreg failed.
6658 Prefer to use cur_loc, when that fails and still in
6659 changed_variables (and seen first time) recompute it. Set
6660 cur_loc_changed of variables which had to change cur_loc and
6661 compute elcd->cur_loc_changed if any of the subexpressions used
6662 had to change cur_loc.
6663 (vt_expand_loc): Adjust to pass arguments in
6664 expand_loc_callback_data structure.
6665 (vt_expand_loc_dummy): New function.
6666 (emitted_notes): New variable.
6667 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
6668 that weren't used for any other decl in current
6669 emit_notes_for_changes call call vt_expand_loc_dummy to update
6670 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
6671 first loc_chain location if NULL before. Always use just
6672 cur_loc instead of first loc_chain location. When cur_loc_changed
6673 is false, when not --enable-checking=rtl just don't emit any note.
6674 When rtl checking, compute the note and assert it is the same
6675 as previous note. Clear cur_loc_changed and in_changed_variables
6676 at the end before removing from changed_variables.
6677 (check_changed_vars_3): New function.
6678 (emit_notes_for_changes): Traverse changed_vars to call
6679 check_changed_vars_3 on each changed var.
6680 (emit_notes_for_differences_1): Clear cur_loc_changed and
6681 in_changed_variables. Recompute cur_loc of new_var.
6682 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
6683 (vt_emit_notes): Initialize and destroy emitted_notes.
6685 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
6687 PR rtl-optimization/42220
6688 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
6689 Use verify_reg_tracked to determine if we should use OP_OUT rather
6691 (build_def_use): If we see an in-out operand for a register that we
6692 know nothing about, treat is an output if possible, fail the block if
6695 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
6698 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
6701 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
6704 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
6705 uses of relevant DEFs that are dead outside the loop too.
6707 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
6709 * var-tracking.c (dataflow_set_merge): Swap src and src2.
6711 2010-01-13 Jakub Jelinek <jakub@redhat.com>
6713 * var-tracking.c (values_to_unmark): New variable.
6714 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
6715 values_to_unmark vector. Moved body to...
6716 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
6717 instead queue it into values_to_unmark vector.
6718 (vt_find_locations): Free values_to_unmark vector.
6720 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
6722 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
6723 (site.exp): Export them when plugins are enabled.
6725 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
6728 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
6730 (chrec_fold_multiply): Same.
6732 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
6735 * c-decl.c (build_compound_literal): Return early if init is
6738 2010-03-04 Martin Jambor <mjambor@suse.cz>
6740 PR tree-optimization/43164
6741 PR tree-optimization/43191
6742 * tree-sra.c (type_consists_of_records_p): Reject records with
6743 zero-size bit-fields at the end.
6745 2010-03-04 Mike Stump <mikestump@comcast.net>
6747 * Makefile.in (TAGS): Remove *.y.
6749 2010-03-04 Richard Guenther <rguenther@suse.de>
6751 PR tree-optimization/40761
6752 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
6754 (my_rev_post_order_compute): New function.
6755 (init_pre): Call it.
6757 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
6760 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
6761 decrease the cost of an IV candidate when the cost is infinite.
6763 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6765 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
6766 Use '3DNow!' for the extension of that name, ensure normal space
6768 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
6770 2010-03-03 Jeff Law <law@redhat.com>
6772 * PR middle-end/32693
6773 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
6774 than gen_rtx_SUBREG.
6775 (extract_bit_field_1): Likewise.
6777 2010-03-03 Janis Johnson <janis187@us.ibm.com>
6779 * doc/sourcebuild.texi (Test directives): Document that arguments
6780 include-opts and exclude-opts are now optional for dg-skip-if,
6781 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
6783 2010-03-03 Jason Merrill <jason@redhat.com>
6786 * cgraph.h (varpool_node): Add extra_name field.
6787 * varpool.c (varpool_extra_name_alias): New.
6788 (varpool_assemble_decl): Emit extra name aliases.
6789 (varpool_mark_needed_node): Look past an extra name alias.
6790 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
6791 * lto-streamer-in.c (lto_input_tree): Read it.
6792 * lto-streamer-out.c (output_unreferenced_globals): Write it.
6794 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
6796 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
6797 (sparc*-*-solaris2*): ...this.
6799 2010-03-03 Jakub Jelinek <jakub@redhat.com>
6802 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
6803 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
6804 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
6805 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
6808 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
6809 fallthrough to default handling, just with want_address 0 instead of 2.
6810 For single element lists, add_AT_loc directly, otherwise create an
6811 artificial variable DIE and stick location list to it.
6814 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
6815 (VAL_EXPR_HAS_REVERSE): Define.
6816 (reverse_op): New function.
6817 (add_stores): For reversible operations add an extra MO_VAL_USE.
6819 2010-03-02 Jason Merrill <jason@redhat.com>
6821 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
6823 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
6825 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
6826 (sparc64-*-linux*): Likewise.
6827 (sparc64-*-solaris2*): Include assembler files before linker ones.
6828 (sparc-*-solaris2*): Simplify and reorder to match previous case.
6829 * config/sparc/gas.h: Delete.
6830 * config/sparc/sol2-64.h: Add copyright notice.
6831 * config/sparc/sol2-gas-bi.h: Likewise.
6832 * config/sparc/sol2-gld.h: Likewise.
6833 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
6834 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
6835 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
6836 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
6837 (sparc_elf_asm_named_section): Rename into...
6838 (sparc_solaris_elf_asm_named_section): ...this. Always define.
6840 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
6842 * config/alpha/alpha.c (override_options): Fix -mtune error message.
6844 2010-03-02 Jeff Law <law@redhat.com>
6847 * reload1.c (rtx_p, substitute_stack): Declare.
6848 (substitute): Record addresses of changed rtxs.
6849 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
6850 Restore the original rtx when complete.
6851 (reload): Free subsitute_stack when complete.
6853 2010-03-02 Janis Johnson <janis187@us.ibm.com>
6855 * doc/gccint.texi (menu): Add Testsuites as a chapter.
6856 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
6858 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
6859 LTO Testing, gcov Testing, profopt Testing, compat Testing,
6860 Torture Tests): Change from subsection to section.
6862 2010-03-02 Jakub Jelinek <jakub@redhat.com>
6863 Steven Bosscher <steven@gcc.gnu.org>
6865 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
6868 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
6871 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
6872 the assignment from the new induction variable to the assignment
6873 of the value from the original loop PHI function.
6875 2010-03-01 Janis Johnson <janis187@us.ibm.com>
6876 Daniel Jacobowitz <dan@codesourcery.com>
6878 * doc/sourcebuild.texi (Test directives): Clarify options to
6881 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6883 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
6884 Disable cfi directives unless GCC and gas agree on using read-only
6885 .eh_frame sections for 64-bit.
6886 * configure: Regenerate.
6888 2010-03-01 Richard Guenther <rguenther@suse.de>
6890 PR tree-optimization/43220
6891 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
6892 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
6894 2010-03-01 Richard Guenther <rguenther@suse.de>
6895 Martin Jambor <mjambor@suse.cz>
6898 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
6899 gimplified parameters.
6901 2010-03-01 Christian Bruel <christian.bruel@st.com>
6903 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
6905 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
6907 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
6909 2010-03-01 Richard Guenther <rguenther@suse.de>
6912 * expr.c (expand_assignment): Use the alias-oracle to tell
6913 if the rhs aliases the result decl.
6915 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6918 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
6919 to sol_gt_pch_get_address.
6920 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
6921 64-bit, SPARC and x86.
6922 (sol_gt_pch_get_address): New function.
6924 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
6926 * toplev.h (inform_n, error_n): Declare.
6927 * diagnostic.c (inform_n, error_n): New function.
6929 2010-03-01 Jakub Jelinek <jakub@redhat.com>
6931 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
6932 has no rtl yet when processing local_decls, queue it and recheck
6933 if deferred stack allocation hasn't assigned it rtl.
6935 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
6937 * config/sh/sh.c (unspec_bbr_uid): New.
6938 (gen_block_redirect): Use it instead of INSN_UID.
6939 (gen_far_branch): Likewise.
6941 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
6943 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
6944 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
6946 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6948 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
6949 (Warning Options): -Wno-conversion-null is valid for
6950 Objective-C++ as well.
6951 * doc/tm.texi (Named Address Spaces): Likewise.
6952 * doc/plugins.texi (Plugins): Replace TABs with spaces.
6953 * doc/tree-ssa.texi (Tree SSA): Likewise.
6955 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
6958 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
6959 by default. Don't set the default arch for
6960 i[34567]86-*-darwin*|x86_64-*-darwin*.
6962 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
6965 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
6966 default. Set the default 32bit/64bit archs with $with_arch
6967 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
6969 2010-02-27 Richard Guenther <rguenther@suse.de>
6971 PR tree-optimization/43186
6972 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
6973 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
6974 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
6975 unroller iterations.
6977 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
6979 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
6980 required and i[34567]86-*-* targets don't support 64bit ISA.
6982 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
6985 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
6988 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
6990 * config.gcc: Set the default arch at least to Prescott for
6991 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
6992 if SSE math is enabled.
6994 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
6996 * diagnostic.c (diagnostic_initialize): Update.
6997 (diagnostic_report_diagnostic): Test inhibit_notes_p for
6999 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
7000 (diagnostic_inhibit_notes): New.
7001 * toplev.c (process_options): inhibit notes with -fcompare-debug.
7003 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
7006 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
7007 * doc/standards.texi: Likewise.
7008 * doc/extend.texi: Likewise.
7009 * doc/trouble.texi: Likewise.
7010 * doc/cppopts.texi: Likewise.
7011 * doc/install.texi: Likewise.
7012 * c.opt (std=c90,std=gnu90): New options.
7013 * c-opts.c (c_common_handle_option): Handle them.
7015 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
7018 * c-decl.c (undeclared_variable): Use an informative note.
7020 2010-02-26 Richard Guenther <rguenther@suse.de>
7022 PR tree-optimization/43186
7023 * gimple.h (gimple_fold): Remove.
7024 * gimple.c (gimple_fold): Remove. Inline into single user ...
7025 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
7026 Try harder for conditions.
7028 2010-02-26 Jakub Jelinek <jakub@redhat.com>
7031 * function.c (used_types_insert): Don't skip through named pointer
7032 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
7033 and it is different from the main variant's type.
7035 2010-02-26 Nick Clifton <nickc@redhat.com>
7037 * config/rx/rx.md (sminsi3): Remove bogus alternative.
7039 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
7041 * config.gcc: Support --with-fpmath=sse for x86.
7043 * config/i386/ssemath.h: New.
7045 * doc/install.texi (--with-fpmath=sse): Documented.
7047 2010-02-26 Richard Guenther <rguenther@suse.de>
7049 PR tree-optimization/43188
7050 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
7051 vector types of over-aligned element type.
7053 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
7056 * config/i386/i386.c (expand_vec_perm_blend): Use correct
7057 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
7059 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7061 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
7063 2010-02-26 Jakub Jelinek <jakub@redhat.com>
7065 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
7066 * var-tracking.c: Include diagnostic.h.
7067 (debug_dv): New function.
7068 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
7071 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
7072 (add_value_chain, add_value_chains, remove_value_chain,
7073 remove_value_chains): Handle DEBUG_EXPRs.
7074 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
7077 * regcprop.c (struct queued_debug_insn_change): New type.
7078 (struct value_data_entry): Add debug_insn_changes field.
7079 (struct value_data): Add n_debug_insn_changes field.
7080 (debug_insn_changes_pool): New variable.
7081 (free_debug_insn_changes, apply_debug_insn_changes,
7082 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
7083 (kill_value_one_regno): Call free_debug_insn_changes if needed.
7084 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
7086 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
7088 (copyprop_hardreg_forward_1): Don't call apply_change_group for
7089 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
7090 changes, call cprop_find_used_regs via note_stores.
7091 (copyprop_hardreg_forward): When copying vd from predecessor
7092 which has any queued DEBUG_INSN changes, make sure the pointers are
7093 cleared. At the end call df_analyze and then if there are any
7094 DEBUG_INSN changes queued at the end of some basic block for still
7095 live registers, apply them.
7096 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
7098 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
7100 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
7103 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
7105 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
7106 targets. Set the default with_cpu/with_arch from arch/cpu.
7107 Allow x86-64 and native for with_cpu/with_arch.
7109 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
7111 * ebitmap.c: Change calls to verify_popcount with calls to
7112 sbitmap_verify_popcount.
7113 (ebitmap_clear_bit): Fixed map->cacheindex test and
7114 map>cache update when bit clearing results in an empty
7117 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
7120 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
7121 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
7122 and support both V2DF and V2DI modes.
7123 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
7124 support both V2DF and V2DI modes.
7125 (general): Delete trailing whitespace from a few patterns.
7127 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7128 V2DF/V2DI interleave high/low builtins.
7130 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
7133 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
7134 interleave high/low functions.
7136 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
7138 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
7139 #pragma extern_prefix.
7141 2010-02-25 Jakub Jelinek <jakub@redhat.com>
7144 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
7145 BLKmode, assert op0 is a MEM and just adjust its mode.
7148 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
7149 if bitpos isn't multiple of mode's bitsize.
7151 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
7153 * c.opt (-ftemplate-depth=): New.
7154 (-ftemplate-depth-): Deprecate.
7155 * optc-gen.awk: Handle -ftemplate-depth=.
7156 * opth-gen.awk: Likewise.
7157 * c-opts.c (c_common_handle_option): Likewise.
7158 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
7160 2010-02-24 Jason Merrill <jason@redhat.com>
7162 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
7164 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7166 * cfg.c (alloc_aux_for_block): Remove inline.
7167 (alloc_aux_for_edge): Likewise.
7169 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7171 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
7173 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7175 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
7176 * config/i386/sol2-gas.h: New file.
7177 * config.gcc (i[34567]86-*-solaris2*): Use it.
7179 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
7182 * c-typeck.c (ep_convert_and_check): New.
7183 (build_conditional_expr): Use it.
7184 (build_binary_op): Likewise.
7186 2010-02-24 Jakub Jelinek <jakub@redhat.com>
7188 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
7191 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
7192 bounds even for -O+.
7193 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
7194 expr needs to have DECL_NAME set.
7196 2010-02-24 Nick Clifton <nickc@redhat.com>
7198 * config/mep/mep.c: Include gimple.h.
7199 (mep_function_uses_sp): Delete unused function.
7200 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
7201 parameters. Use unsigned integers to count args. Return a
7202 NULL_RTX instead of an error_mark_node. Toidy up formatting.
7204 2010-02-23 Jakub Jelinek <jakub@redhat.com>
7207 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
7208 greater or equal to nelt instead of 2 * nelt.
7209 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
7212 2010-02-23 Jason Merrill <jason@redhat.com>
7215 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
7216 in cfun->local_decls even if they have register types.
7219 * stor-layout.c (place_field): Don't warn about unnecessary
7220 DECL_PACKED if the type is packed.
7222 2010-02-23 Jakub Jelinek <jakub@redhat.com>
7225 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
7226 GOTOFF relocs, even when the base reg isn't pic pointer.
7228 2010-02-23 Michael Matz <matz@suse.de>
7231 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
7232 (expand_gimple_basic_block): Generate and use debug temps if there
7233 are debug uses left after the last real use of TERed ssa names.
7234 Unlink debug immediate uses when they are expanded.
7236 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
7239 * config/i386/i386.c (override_options): Reorganise to provide
7240 better error messages.
7242 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
7245 * graphite-scop-detection.c (create_single_exit_edge): Move
7246 the call to find_single_exit_edge to....
7247 (create_sese_edges): ...here. Don't handle multiple edges
7248 exiting the function.
7249 (build_graphite_scops): Don't handle multiple edges
7250 exiting the function.
7252 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
7255 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
7256 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
7258 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
7261 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
7263 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
7266 * c-typeck.c (convert_arguments): Print declaration location.
7267 * c-common.c (validate_nargs): Rename as
7268 builtin_function_validate_nargs.
7269 (check_builtin_function_arguments): Update.
7271 2010-02-22 Richard Guenther <rguenther@suse.de>
7274 * tree-inline.c (declare_return_variable): Use the type of
7275 the call stmt lhs if available.
7277 2010-02-22 Duncan Sands <baldrick@free.fr>
7279 * passes.c (register_pass): Always consider all pass lists when
7280 ref_pass_instance_number is zero.
7282 2010-02-22 Richard Guenther <rguenther@suse.de>
7284 PR tree-optimization/42749
7285 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
7286 parameter. Do arithmetic in the original type.
7287 (update_accumulator_with_ops): Likewise.
7288 (adjust_accumulator_values): Adjust.
7290 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7292 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
7293 (QI to BLKmode splitter): New splitter.
7295 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
7297 * config/i386/i386.c (initial_ix86_tune_features): Turn on
7298 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
7300 2010-02-22 Richard Guenther <rguenther@suse.de>
7302 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
7304 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
7306 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
7307 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
7308 ($(T)crti.o, $(T)crtn.o): Remove rules.
7310 2010-02-21 Tobias Burnus <burnus@net-b.de>
7313 * doc/invoke.texi (-fassociative-math): Document that this
7314 option is automatically enabled for Fortran.
7316 2010-02-20 David S. Miller <davem@davemloft.net>
7318 * configure.ac: Test if linker and assembler properly support
7319 GOTDATA_OP relocations.
7320 * configure: Rebuild.
7321 * config.in: Likewise.
7322 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
7323 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
7324 (movsi_high_pic): Likewise.
7325 (movdi_lo_sum_pic): Likewise.
7326 (movdi_high_pic): Likewise.
7327 (movsi_pic_gotdata_op): New pattern.
7328 (movdi_pic_gotdata_op): Likewise.
7329 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
7330 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
7332 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
7335 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
7336 attribute to ssemul.
7337 (xop_mulv2div2di3_high): Ditto.
7339 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
7342 * c.opt (Wconversion-null): New option.
7343 * doc/invoke.texi (Wconversion-null): Document.
7345 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
7347 * common.opt (Wlarger-than-): Add Undocumented.
7349 2010-02-19 Mike Stump <mikestump@comcast.net>
7351 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
7353 2010-02-19 Jason Merrill <jason@redhat.com>
7356 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
7357 * configure: Likewise.
7359 2010-02-20 Alan Modra <amodra@gmail.com>
7362 * cgraph.h (cgraph_make_decl_local): Declare.
7363 * cgraph.c (cgraph_make_decl_local): New function.
7364 (cgraph_make_node_local): Use it.
7365 * cgraphunit.c (cgraph_function_versioning): Likewise.
7366 * ipa.c (function_and_variable_visibility): Likewise.
7368 2010-02-19 Jakub Jelinek <jakub@redhat.com>
7371 * except.c (sjlj_emit_function_enter): Don't call
7372 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
7374 * rtl.h (add_reg_br_prob_note): Remove prototype.
7376 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
7379 * c-common.c (conversion_warning): Remove widening conversions
7380 before checking the conversion of integers to reals.
7382 2010-02-19 Mike Stump <mikestump@comcast.net>
7385 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
7388 * cgraphunit.c (process_function_and_variable_attributes): Check
7389 DECL_PRESERVE_P instead of looking up attribute "used".
7390 * ipa-pure-const.c (check_decl): Likewise.
7391 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
7392 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
7393 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
7394 instead of attribute "used".
7395 * config/sol2-c.c (solaris_pragma_init): Likewise.
7396 (solaris_pragma_fini): Likewise.
7398 2010-02-19 Jakub Jelinek <jakub@redhat.com>
7400 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
7401 Use XCNEW instead of xcalloc.
7402 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
7403 XNEW instead of xmalloc.
7404 (get_fields): Use XNEWVEC instead of xmalloc.
7407 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
7408 populate vars array.
7409 (create_new_general_access): For debug stmts just reset value.
7410 (get_stmt_accesses): For accesses within debug stmts just record them
7411 using add_access_to_acc_sites instead of preventing the peeling or
7412 counting them as accesses.
7415 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
7417 2010-02-19 Richard Guenther <rguenther@suse.de>
7419 PR tree-optimization/42916
7420 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
7423 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
7425 * configure.ac: Replace all uses of changequote in macro arguments
7426 with proper quoting.
7428 2010-02-19 Jakub Jelinek <jakub@redhat.com>
7431 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
7433 2010-02-19 Richard Guenther <rguenther@suse.de>
7435 PR tree-optimization/42944
7436 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
7437 test for aliasing with errno.
7439 2010-02-19 Jakub Jelinek <jakub@redhat.com>
7442 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
7443 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
7444 * dojump.c: Include output.h.
7445 (inv): New inline function.
7446 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
7447 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
7448 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
7449 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
7450 argument, pass it down to other calls.
7451 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
7452 add REG_BR_PROB note to the conditional jump.
7453 * cfgexpand.c (add_reg_br_prob_note): Removed.
7454 (expand_gimple_cond): Don't call it, add the probability
7455 as last argument to jumpif_1/jumpifnot_1.
7456 * Makefile.in (dojump.o): Depend on output.h.
7457 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
7459 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
7460 * stmt.c (do_jump_if_equal): Likewise.
7461 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
7462 * loop-unswitch.c (compare_and_jump_seq): Likewise.
7463 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
7465 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
7466 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
7467 jumpifnot_1 callers.
7468 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
7470 (store_expr): Adjust jumpifnot caller.
7471 (store_constructor): Adjust jumpif caller.
7474 * gimplify.c (gimple_boolify): For __builtin_expect call
7475 gimple_boolify also on its first argument.
7477 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
7479 * configure.ac (gnu-unique-object): Wrap regexps using [] in
7481 (__stack_chk_fail): Ditto. Remove quadrigraphs.
7482 * configure: Regenerated.
7484 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7486 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
7487 lang_hooks.types_compatible_p instead of comptypes.
7489 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
7491 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
7492 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
7493 if __prefer_thumb__ is defined.
7495 2010-02-18 Martin Jambor <mjambor@suse.cz>
7497 PR tree-optimization/43066
7498 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
7499 array with zero-sized element type.
7501 2010-02-18 Jakub Jelinek <jakub@redhat.com>
7503 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
7504 rtx, allocate struct var_loc_node here and return it to the
7505 caller, and only if it is actually needed.
7506 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
7507 move it earlier and return immediately if it returns NULL.
7509 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
7511 * config/sparc/gas.h: New file. Restore
7512 TARGET_ASM_NAMED_SECTION to its ELF default.
7513 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
7515 * config/sparc/sparc.c (sparc_elf_asm_named_section):
7516 Likewise. Add ATTRIBUTE_UNUSED to prototype.
7517 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
7518 after sparc/sysv4.h.
7520 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
7522 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
7524 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
7526 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
7527 patterns from predicated pattern.
7529 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
7532 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
7533 for insn mnemonic suffix.
7535 2010-02-17 Richard Guenther <rguenther@suse.de>
7537 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
7540 2010-02-17 Jakub Jelinek <jakub@redhat.com>
7543 * caller-save.c (save_call_clobbered_regs): If BB ends with
7544 a DEBUG_INSN, move any notes in between last real insn and the last
7545 DEBUG_INSN after the last DEBUG_INSN.
7547 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
7549 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
7550 Fix return type. Fix argument type. Explain meaning of return value.
7552 2010-02-16 Richard Guenther <rguenther@suse.de>
7554 PR tree-optimization/41043
7555 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
7556 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
7558 (vrp_visit_phi_node): ... but only for loop PHI nodes.
7560 2010-02-16 Ira Rosen <irar@il.ibm.com>
7562 PR tree-optimization/43074
7563 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
7564 * tree-vect-loop.c (vect_analyze_loop_operations): Add
7565 vectorizable cycles in hybrid SLP check.
7566 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
7568 2010-02-16 Richard Guenther <rguenther@suse.de>
7570 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
7571 (true_dependence): If memrefs_conflict_p computes must-alias
7572 trust it. Move TBAA check after offset-based disambiguation.
7573 (canon_true_dependence): Likewise.
7575 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
7577 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
7578 * doc/invoke.texi: Document it.
7579 * var-tracking.c: Include toplev.h and params.h.
7580 (vt_find_locations): Return bool indicating success. Compute
7581 hash sizes unconditionally. Check new parameter, report.
7582 (variable_tracking_main_1): Check vt_find_locations results and
7583 retry. Renamed from...
7584 (variable_tracking_main): ... this. New wrapper to preserve
7585 flag_var_tracking_assignments.
7586 * Makefile.in (var-tracking.o): Adjust dependencies.
7588 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
7589 Jakub Jelinek <jakub@redhat.com>
7592 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
7593 if weak_import attribute is present.
7594 * config/darwin.c (machopic_select_section): Likewise.
7596 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
7598 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
7599 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
7600 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
7601 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
7603 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
7606 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
7609 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
7610 Rewrite text to refer to the names.
7612 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
7614 * config/i386/i386-builtin-types.def
7615 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
7616 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
7617 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
7618 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
7619 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
7620 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
7621 IX86_BUILTIN_VPERMIL2PS256.
7622 (MULTI_ARG_4_DF2_DI_I): Defined.
7623 (MULTI_ARG_4_DF2_DI_I1): Defined.
7624 (MULTI_ARG_4_SF2_SI_I): Defined.
7625 (MULTI_ARG_4_SF2_SI_I1): Defined.
7626 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
7627 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
7628 __builtin_ia32_vpermil2ps256.
7629 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
7630 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
7631 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
7632 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
7633 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
7634 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
7635 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
7636 CODE_FOR_xop_vpermil2v8sf3.
7637 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
7638 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
7639 * config/i386/xopintrin.h (_mm_permute2_pd): New.
7640 (_mm256_permute2_pd): New.
7641 (_mm_permute2_ps): New.
7642 (_mm256_permute2_ps): New.
7644 2010-02-15 Nick Clifton <nickc@redhat.com>
7646 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
7647 boolean parameters. Use emit_jump_insn when emitting a pop
7648 instruction containing a return insn.
7649 (push): Use 'true' rather than '1' as second parameter to F.
7650 (h8300_expand_prologue): Likewise.
7651 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
7652 (h8300_expand_epilogue): Likewise.
7654 2010-02-15 Richard Guenther <rguenther@suse.de>
7657 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
7660 2010-02-15 Nick Clifton <nickc@redhat.com>
7662 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
7665 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
7667 * intl.c (fake_ngettext): New function.
7668 * intl.h (fake_ngettext): Declare.
7669 (ngettext): Define macro.
7670 * collect2.c (notice_translated): New function.
7671 (main): Use notice_translated and ngettext.
7672 * collect2.h (notice_translated): Declare.
7674 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
7676 * reorg.c (delete_computation): Comment fixes.
7677 * caller-save.c (setup_save_areas): Idem.
7678 * sel-sched-dump.c (dump_lv_set): Idem.
7681 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7683 * config/s390/s390.c (s390_sched_init): New function.
7684 (TARGET_SCHED_INIT): Target hook defined.
7686 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
7687 Jack Howarth <howarth@bromo.med.uc.edu>
7688 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
7691 Partial revert of unintended change in fix for PR41605.
7692 * config/darwin.h: Fix typo.
7693 * config/darwin9.h: Same.
7695 2010-02-11 Jakub Jelinek <jakub@redhat.com>
7697 * c-pch.c (pch_init): Clear v.
7699 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
7702 * graphite-scop-detection.c (graphite_can_represent_scev): Call
7703 graphite_can_represent_init for MULT_EXPR.
7705 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
7709 * graphite-sese-to-poly.c (remove_phi): New.
7710 (translate_scalar_reduction_to_array): Call remove_phi.
7712 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
7715 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
7716 * graphite-clast-to-gimple.h (gloog): Update declaration.
7717 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
7718 * graphite-poly.h (struct poly_bb): Add missing comments.
7719 (struct scop): Add poly_scop_p field.
7721 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
7722 * graphite.c (graphite_transform_loops): Build the polyhedral
7723 representation for each scop before code generation.
7724 * sese.c (rename_variables_in_operand): Removed.
7725 (rename_variables_in_expr): Return the renamed expression.
7726 (rename_sese_parameters): New.
7727 * sese.h (rename_sese_parameters): Declared.
7729 2010-02-11 Richard Guenther <rguenther@suse.de>
7731 PR tree-optimization/42998
7732 * tree-ssa-pre.c (create_expression_by_pieces): Treat
7733 POINTER_PLUS_EXPR properly.
7735 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
7736 Changpeng Fang <changpeng.fang@amd.com>
7739 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
7740 the cost of an IV candidate when the IV is used in a test against zero.
7742 * gcc.dg/tree-ssa/ivopts-3.c: New.
7744 2010-02-11 Richard Guenther <rguenther@suse.de>
7747 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
7748 pointer-vs-decl case by swapping refs. Handle some cases
7749 of pointer-vs-decl disambiguations more conservatively.
7750 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
7751 to false after expanding.
7753 2010-02-11 Richard Guenther <rguenther@suse.de>
7756 * gcc.c (process_command): Handle LTO file@offset case more
7759 2010-02-11 Jakub Jelinek <jakub@redhat.com>
7761 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
7762 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
7764 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
7766 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
7767 if MEM's mode size isn't DWARF2_ADDR_SIZE.
7768 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
7769 Optimize eq/ne comparisons when both arguments are known to be
7771 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
7772 Don't mask operands unnecessarily if they are known to be already
7775 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
7777 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
7780 2010-02-10 Richard Guenther <rguenther@suse.de>
7782 PR tree-optimization/43017
7783 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
7784 for wrapping signed arithmetic.
7786 2010-02-10 Jakub Jelinek <jakub@redhat.com>
7789 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
7790 if no debug info should be emitted for it.
7792 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
7794 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
7795 note when flag_exceptions is set.
7797 2010-02-10 Duncan Sands <baldrick@free.fr>
7799 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
7801 2010-02-10 Richard Guenther <rguenther@suse.de>
7804 * tree.c (get_unwidened): Handle constants.
7805 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
7807 2010-02-10 Martin Jambor <mjambor@suse.cz>
7810 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
7811 check for variable argument counts independently.
7813 2010-02-10 Christian Bruel <christian.bruel@st.com>
7816 * config/sh/sh.c (find_barrier): Increase length for non delayed
7817 conditional branches.
7819 2010-02-10 Christian Bruel <christian.bruel@st.com>
7821 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
7823 2010-02-10 Jakub Jelinek <jakub@redhat.com>
7825 * builtins.c (set_builtin_user_assembler_name): Also handle
7826 ffs if int is smaller than word.
7828 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
7831 * ira-conflicts.c (get_dup): Remove.
7832 (process_reg_shuffles): Add new parameter. Use it as an
7833 additional guard for copy generation.
7834 (add_insn_allocno_copies): Rewrite.
7836 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
7838 * common.opt (fsched2-use-traces): Preserved for backward
7840 * doc/invoke.texi: Remove the documentation about option
7841 -fsched2-use-traces.
7842 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
7843 flag_sched2_use_traces.
7844 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
7845 the backward compatibility flag section.
7847 2010-02-09 Richard Guenther <rguenther@suse.de>
7849 PR tree-optimization/43008
7850 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
7851 make HEAP variables initialized from global memory if they
7852 are not known builtin functions.
7853 (find_func_aliases): Adjust.
7855 2010-02-09 Richard Guenther <rguenther@suse.de>
7857 PR tree-optimization/43000
7858 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
7859 arithmetic manually.
7861 2010-02-08 Jakub Jelinek <jakub@redhat.com>
7863 PR tree-optimization/42931
7864 * tree-loop-linear.c (try_interchange_loops): Don't call
7865 double_int_mul if estimated_loop_iterations failed.
7867 2010-02-08 Martin Jambor <mjambor@suse.cz>
7870 * tree-sra.c (build_accesses_from_assign): Do not mark in
7871 should_scalarize_away_bitmap if stmt has volatile ops.
7872 (sra_modify_assign): Do not process assigns piecemeal if if stmt
7875 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
7877 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
7879 2010-02-07 Adam Nemet <adambnmet@gmail.com>
7881 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
7884 2010-02-07 Andrew Pinski <pinskia@gmail.com>
7887 * df-core.c (df_finish_pass): Change type of saved_flags to int.
7889 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
7892 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
7893 to unknown_dependence.
7894 (graphite_legal_transform_dr): Handle the unknown_dependence.
7895 (graphite_carried_dependence_level_k): Same.
7897 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
7899 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
7901 2010-02-07 Richard Guenther <rguenther@suse.de>
7904 * expr.c (get_inner_reference): Always initialize *pbitsize.
7906 2010-02-07 Richard Guenther <rguenther@suse.de>
7909 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
7910 new ARRAY_REFs on variable size element or minimal index arrays.
7912 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
7913 gimple_fold_indirect_ref.
7915 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
7918 * arm.c (arm_override_options): Just return if the user has specified
7919 an invalid fpu name.
7921 2010-02-03 Jason Merrill <jason@redhat.com>
7924 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
7925 i386_pe_maybe_record_exported_symbol.
7927 2010-02-05 Steve Ellcey <sje@cup.hp.com>
7930 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
7931 (pa_delegitimize_address): New function.
7933 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
7935 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
7936 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
7938 2010-02-05 Richard Guenther <rguenther@suse.de>
7941 * lto-streamer-in.c (get_resolution): Deal with references
7942 to undefined functions.
7944 2010-02-05 Richard Guenther <rguenther@suse.de>
7946 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
7947 (fold_const_aggregate_ref): Likewise.
7948 (ccp_fold_stmt): Substitute loads.
7949 (maybe_fold_reference): Verify types before substituting.
7951 (fold_gimple_assign): Unshare properly.
7952 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
7954 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
7956 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
7957 for rs6000_gen_cell_microcode.
7959 2010-02-04 Richard Guenther <rguenther@suse.de>
7961 PR rtl-optimization/42952
7962 * dse.c (const_or_frame_p): Remove MEM handling.
7964 2010-02-04 Nick Clifton <nickc@redhat.com>
7966 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
7967 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
7968 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
7969 (mn10300_asm_output_mi_thunk): New function.
7970 (mn10300_can_output_mu_thunk): New function.
7971 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
7972 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
7973 (FUNCTION_ARG): Delete incorrect comment.
7975 2010-02-03 Jason Merrill <jason@redhat.com>
7978 * fold-const.c (operand_equal_p): Handle erroneous types.
7980 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
7982 * config/h8300/h8300.md (can_delay): Fix attibute condition.
7984 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
7986 PR rtl-optimization/42941
7987 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
7990 2010-02-03 Jason Merrill <jason@redhat.com>
7993 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
7995 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
7998 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
7999 (cselib_reset_table): Renamed from...
8000 (cselib_reset_table_with_next_value): ... this.
8001 (cselib_get_next_uid): Renamed from...
8002 (cselib_get_next_unknown_value): ... this.
8003 * cselib.c (next_uid): Renamed from...
8004 (next_unknown_value): ... this.
8005 (cselib_clear_table): Adjust.
8006 (cselib_reset_table): Adjust. Renamed from...
8007 (cselib_reset_table_with_next_value): ... this.
8008 (cselib_get_next_uid): Adjust. Renamed from...
8009 (cselib_get_next_unknown_value): ... this.
8010 (get_value_hash): Use hash.
8011 (cselib_hash_rtx): Likewise.
8012 (new_cselib_val): Adjust. Set and dump uid.
8013 (cselib_lookup_mem): Pass next_uid as hash.
8014 (cselib_subst_to_values): Likewise.
8015 (cselib_log_lookup): Dump uid.
8016 (cselib_lookup): Pass next_uid as hash. Adjust.
8017 (cselib_process_insn): Adjust.
8018 (cselib_init): Initialize next_uid.
8019 (cselib_finish): Adjust.
8020 (dump_cselib_table): Likewise.
8021 * dse.c (canon_address): Dump value uid.
8022 * print-rtl.c (print_rtx): Print value uid.
8023 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
8025 (dv_uid): New function, sort of renamed from...
8026 (dv_htab_hash): ... this, reimplemented in terms of it and...
8027 (dv_uid2hash): ... this. New.
8028 (variable_htab_eq): Drop excess assertions.
8029 (tie_break_pointers): Removed.
8030 (canon_value_cmp): Compare uids.
8031 (variable_post_merge_New_vals): Print uids.
8032 (vt_add_function_parameters): Adjust.
8033 (vt_initialize): Reset table. Adjust.
8035 2010-02-03 Richard Guenther <rguenther@suse.de>
8037 PR tree-optimization/42944
8038 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
8039 (call_may_clobber_ref_p_1): Likewise. Properly handle
8040 malloc and calloc clobbering errno.
8042 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
8044 * doc/invoke.texi: Fix name of sched1 dump.
8046 * opts.c (decode_options): Set flag_tree_switch_conversion
8047 only conditionally on optimize >= 2.
8049 * gcse.c: Assorted comment fixes in pass description.
8051 2010-02-03 Anthony Green <green@moxielogic.com>
8053 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
8054 nop padding in order to maintain alignment of storage location of
8055 target function address.
8056 (moxie_trampoline_init): Store target function address at newly
8058 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
8060 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
8062 2010-02-03 Richard Guenther <rguenther@suse.de>
8065 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
8067 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8069 * config.gcc: Reenable check for obsolete targets.
8070 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
8071 mips-sgi-irix6.[0-4]*.
8073 2010-02-02 Nick Clifton <nickc@redhat.com>
8075 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
8076 constant size of 4 as being the same as 0.
8077 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
8078 can take values in the range 0..4.
8080 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
8083 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
8084 as _darwin10_Unwind_FindEnclosingFunction().
8085 * libgcc-libsystem.ver: New.
8087 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
8090 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
8091 implicitly set registers.
8093 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
8095 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
8096 (arm_override_options): Allow automatic selection of the thread
8097 pointer register if thumb2.
8098 (legitimize_pic_address): Improve code sequences for Thumb2.
8099 (arm_call_tls_get_addr): Likewise.
8100 (legitimize_tls_address): Likewise.
8101 * arm.md (pic_load_addr_arm): Delete. Replace with ...
8102 (pic_load_addr_32bit): ... this. New named pattern.
8103 * thumb2.md (pic_load_addr_thumb2): Delete.
8104 (pic_load_dot_plus_four): Delete.
8105 (tls_load_dot_plus_four): New named pattern.
8107 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8110 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
8111 Document fix for TLS bug.
8113 2010-01-31 Richard Guenther <rguenther@suse.de>
8115 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
8116 conservatively correct.
8118 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8122 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8124 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
8126 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8128 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
8130 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
8132 * config.gcc: Adjust order of makefile fragments for mingw targets.
8134 2010-01-31 Richard Guenther <rguenther@suse.de>
8137 * gimplify.c (gimplify_init_constructor): For volatile LHS
8138 initialize a temporary.
8140 2010-01-31 Matthias Klose <doko@ubuntu.com>
8142 * configure.ac: Fix __stack_chk_fail check for cross builds configured
8144 * configure: Regenerate.
8146 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
8148 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
8149 the same alias set and their sizes different constantness.
8150 (aliasing_component_refs_p): Revert 2009-10-24 change.
8152 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8154 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
8157 2010-01-29 Richard Guenther <rguenther@suse.de>
8159 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
8160 Assert we successfully updated the call.
8162 2010-01-29 Jakub Jelinek <jakub@redhat.com>
8164 PR rtl-optimization/42889
8165 * df.h (df_set_bb_dirty_nonlr): New prototype.
8166 * df-core.c (df_set_bb_dirty_nonlr): New function.
8167 * df-scan.c (df_insn_rescan): Call it instead of
8168 df_set_bb_dirty for DEBUG_INSNs.
8170 2010-01-29 Richard Guenther <rguenther@suse.de>
8173 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
8174 quadratic behavior in most cases.
8176 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
8179 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
8180 in the call to gen_x86_movsicc_0_m1.
8182 2010-01-28 Richard Guenther <rguenther@suse.de>
8184 PR tree-optimization/42871
8185 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
8187 2010-01-28 Richard Guenther <rguenther@suse.de>
8189 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
8190 into call arguments.
8192 2010-01-28 Richard Guenther <rguenther@suse.de>
8195 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
8196 the forwarder if the destination is an EH landing pad.
8198 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
8200 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
8201 block list passed to gimple_duplicate_sese_tail.
8202 (parallelize_loops): Avoid parallelization when the function
8204 Avoid parallelization when the preheader is IRREDUCIBLE.
8205 Try to optimize when estimated_loop_iterations_int is unresolved.
8206 Add the loop's location to the dump file.
8207 * tree-cfg.c (add_phi_args_after_redirect): Remove.
8208 (gimple_duplicate_sese_tail): Remove the check for the latch.
8209 Redirect nexits to the exit block.
8210 Remove handling of the incoming edges to the latch.
8211 Redirect the backedge from the copied latch to the exit bb.
8213 2010-01-28 Michael Matz <matz@suse.de>
8216 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
8217 Wrap force_reg into a sequence, emit it before user.
8219 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
8221 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
8223 (arm_legacy_rev): Likewise.
8224 (thumb_legacy_rev): Likewise.
8226 2010-01-27 Jakub Jelinek <jakub@redhat.com>
8228 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
8229 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
8230 on MEM's address failed, try avoid_constant_pool_reference and
8231 recurse if it returned something different.
8232 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
8233 address, try avoid_constant_pool_reference and recurse if it
8234 returned something different.
8235 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
8236 address and avoid_constant_pool_reference returned something
8237 different, don't set have_address.
8239 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
8242 * var-tracking.c (val_store): Add modified argument, obey it.
8244 (count_uses): Move down logging of main.
8245 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
8246 don't need resolution.
8247 (emit_notes_in_bb): Likewise.
8249 2010-01-27 Richard Guenther <rguenther@suse.de>
8252 * tree-inline.c (remap_decl): Delay remapping of SSA name
8253 default definitions until we need them.
8255 2010-01-27 Jakub Jelinek <jakub@redhat.com>
8257 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
8258 (rs6000_delegitimize_address): New function.
8260 * config/s390/s390.c (s390_delegitimize_address): Call
8261 delegitimize_mem_from_attrs.
8264 * tree-inline.c (cannot_copy_type_1): Removed.
8265 (copy_forbidden): Don't forbid copying of functions containing
8266 records/unions with variable length fields.
8268 2010-01-27 Christian Bruel <christian.bruel@st.com>
8272 * config/sh/sh.c (find_barrier): Increase length for non delayed
8273 conditional branches.
8275 2010-01-27 Matthias Klose <doko@ubuntu.com>
8277 * configure.ac (gnu-unique-object): Fix ldd version check.
8278 * configure: Regenerate.
8280 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8282 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
8284 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
8285 Test for HAVE_GNU_AS value.
8287 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8289 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
8290 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
8291 INT64_TYPE): Define.
8292 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
8293 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
8294 INT_LEAST64_TYPE): Define.
8295 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
8296 UINT_LEAST64_TYPE): Define.
8297 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
8298 INT_FAST64_TYPE): Define.
8299 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
8300 UINT_FAST64_TYPE): Define.
8301 (INTMAX_TYPE, UINTMAX_TYPE): Define.
8302 (INTPTR_TYPE, UINTPTR_TYPE): Define.
8303 (SIG_ATOMIC_TYPE): Define.
8305 2010-01-26 Richard Guenther <rguenther@suse.de>
8307 * df-scan.c (df_scan_set_bb_info): Remove assert.
8308 (df_insn_rescan_debug_internal): Merge asserts.
8309 (df_install_ref): Likewise.
8310 (df_mark_reg): Use bitmap_set_range.
8311 (df_hard_reg_used_p): Remove assert.
8312 (df_hard_reg_used_count): Likewise.
8314 2010-01-26 Richard Guenther <rguenther@suse.de>
8316 PR rtl-optimization/42685
8317 * web.c (web_main): Ignore DEBUG_INSNs.
8319 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
8321 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
8323 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
8324 Fix types of fndecl and arglist parameters.
8326 2010-01-26 Richard Guenther <rguenther@suse.de>
8329 * tree-eh.c (unsplit_eh): Skip debug insns.
8331 2010-01-26 Richard Guenther <rguenther@suse.de>
8333 PR tree-optimization/42250
8334 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
8336 2010-01-26 Jakub Jelinek <jakub@redhat.com>
8339 * omp-low.c (expand_omp_sections): Only use single_pred if
8340 l2_bb is single_pred_p.
8342 2010-01-25 Christian Bruel <christian.bruel@st.com>
8345 * config/sh/sh.c (find_barrier): Increase length for non delayed
8346 conditional branches.
8347 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
8349 2010-01-24 David S. Miller <davem@davemloft.net>
8351 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
8352 define if not using GAS.
8353 * config/sparc/sparc.c (sparc_elf_asm_named_section):
8354 Likewise. Delete SECTION_MERGE code, which is only applicable
8357 2010-01-24 Mark Mitchell <mark@codesourcery.com>
8360 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
8361 mangling of va_list in system headers.
8363 2010-01-23 Toon Moene <toon@moene.org>
8365 * tree-predcom.c (combine_chains): Return NULL, not false.
8367 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
8369 * tree-loop-distribution.c (distribute_loop): Fix declaration and
8370 initialization of variable res to agree with return type.
8372 2010-01-22 Steve Ellcey <sje@cup.hp.com>
8374 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
8375 * tree-sra.c: Add include of expr.h.
8377 2010-01-22 Jakub Jelinek <jakub@redhat.com>
8379 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
8380 insert the debug stmt on the single non-EH edge from the stmt.
8382 2010-01-22 Richard Henderson <rth@redhat.com>
8385 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
8386 the RHS until after generate_subtree_copies has insertted its
8387 code before the current statement.
8389 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
8391 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
8393 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
8395 2010-01-21 Martin Jambor <mjambor@suse.cz>
8397 PR tree-optimization/42585
8398 * tree-sra.c (struct access): New field grp_total_scalarization.
8399 (dump_access): Dump the new field.
8400 (should_scalarize_away_bitmap): New variable.
8401 (cannot_scalarize_away_bitmap): Likewise.
8402 (sra_initialize): Allocate new bitmaps.
8403 (sra_deinitialize): Free new bitmaps.
8404 (create_access_1): New function.
8405 (create_access): Parts moved to create_access_1.
8406 (type_consists_of_records_p): New function.
8407 (completely_scalarize_record): Likewise.
8408 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
8409 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
8410 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
8412 (analyze_all_variable_accesses): Completely scalarize small eligible
8415 2010-01-21 Martin Jambor <mjambor@suse.cz>
8417 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
8419 2010-01-21 Andrew Haley <aph@redhat.com>
8421 * gcc.c (process_command): Move lang_specific_driver before
8422 setting cc_libexec_prefix.
8424 2010-01-21 Richard Guenther <rguenther@suse.de>
8427 * fold-const.c (negate_expr_p): Pretend only negative
8428 real constants are easily negatable.
8430 2010-01-20 Janis Johnson <janis187@us.ibm.com>
8431 Jason Merrill <jason@redhat.com>
8433 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
8434 (TYPE_TRANSPARENT_AGGR): this, for union and record.
8435 * calls.c (initialize argument_information): Handle it.
8436 * c-common.c (handle_transparent_union_attribute): Use new name.
8437 * c-decl.c (finish_struct): Ditto.
8438 * c-typeck.c (type_lists_compatible_p): Ditto.
8439 (convert_for_assignment): Use new name and also handle record.
8440 * function.c (aggregate_value_p): Handle it.
8441 (pass_by_reference): Ditto.
8442 (assign_parm_data_types): Ditto.
8443 * print-tree.c (print_node): Ditto.
8444 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
8445 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
8446 * tree.c (first_field): New fn.
8448 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
8451 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
8452 even when linking statically, for now.
8454 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
8457 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
8458 without a cselib val.
8459 (count_uses): Accept MO_VAL_SET with no val on stores.
8460 (add_stores): Likewise.
8462 2010-01-20 Jakub Jelinek <jakub@redhat.com>
8464 * var-tracking.c (check_value_val): Add a compile time assertion.
8465 (dv_is_decl_p): Simplify.
8466 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
8467 gcc_assert if ENABLE_CHECKING.
8469 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
8472 * var-tracking.c: Include tree-flow.h.
8473 (mem_dies_at_call): New.
8474 (dataflow_set_preserve_mem_locs): Use it.
8475 (dataflow_set_remove_mem_locs): Likewise.
8476 (dump_var): Renamed from dump_variable. Adjust all callers.
8477 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
8478 * Makefile.in (var-tracking.o): Adjust deps.
8480 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
8482 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
8484 2010-01-20 Richard Guenther <rguenther@suse.de>
8486 PR tree-optimization/42717
8487 * tree-ssa-dce.c (get_live_post_dom): Remove.
8488 (forward_edge_to_pdom): Take an arbitrary edge to copy
8489 degenerate PHI args from.
8490 (remove_dead_stmt): Use the first post-dominator even if it
8491 does not contain live statements as redirection destination.
8493 2010-01-20 Richard Guenther <rguenther@suse.de>
8495 * tree-inline.c (estimate_num_insns): Handle EH builtins.
8497 2010-01-20 Jakub Jelinek <jakub@redhat.com>
8499 * sel-sched.c (create_speculation_check): Remove set but not used
8501 (try_transformation_cache): Remove set but not used variable ds.
8502 (calculate_privileged_insns): Remove set but not used variables
8503 cur_insn and min_spec_insn.
8504 (find_best_expr): Remove set but not used variable avail_n.
8505 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
8507 * cgraphunit.c (assemble_thunk): Remove set but not used variable
8509 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
8510 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
8513 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
8516 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
8517 cpu types. Add support for *-sse3 cpu types.
8518 (x86_64-*-*): Ditto.
8520 2010-01-20 Jakub Jelinek <jakub@redhat.com>
8523 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
8524 argument, call initializer_constant_valid_p_1 instead of
8525 initializer_constant_valid_p, pass CACHE to it, return NULL
8526 immediately if first call returns NULL.
8527 (initializer_constant_valid_p_1): New function.
8528 (initializer_constant_valid_p): Use it.
8530 2010-01-20 Thomas Quinot <quinot@adacore.com>
8532 * tree.def (PLACEHOLDER_EXPR): Fix comment.
8534 2010-01-20 Jakub Jelinek <jakub@redhat.com>
8536 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
8537 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
8538 (loc_list_from_tree): Don't handle unsigned division. Handle
8539 signed modulo using DW_OP_{over,over,div,mul,minus}.
8540 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
8541 modulo instead of signed.
8543 2010-01-20 DJ Delorie <dj@redhat.com>
8545 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
8547 (h8300_emit_stack_adjustment): Propogate it.
8549 (h8300_expand_prologue): Likewise.
8550 (h8300_expand_epilogue): Likewise.
8552 2010-01-19 Michael Matz <matz@suse.de>
8554 PR tree-optimization/41783
8555 * tree-data-ref.c (toplevel): Include flags.h.
8556 (dump_data_dependence_relation): Also dump the inputs if the
8557 result will be unknown.
8558 (split_constant_offset_1): Look through some conversions.
8559 * tree-predcom.c (determine_roots_comp): Restart a new chain if
8560 the offset from last element is too large.
8561 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
8562 (reassociate_to_the_same_stmt): Handle vector registers.
8563 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
8565 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
8566 wide_prolog_niters argument, emit widening instructions.
8567 (vect_do_peeling_for_alignment): Adjust caller, use widened
8568 variant of the iteration cound.
8569 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
8571 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8574 * config/arm/neon-testgen.m (emit_automatics): New parameter
8575 features. Adjust for Fixed_return_reg feature.
8576 (test_intrinsic): Call emit_automatics with new feature.
8577 * config/arm/neon.ml: Update copyright years.
8578 (features): New Fixed_return_reg feature.
8579 (ops): Update feature for Vget_low.
8581 2010-01-19 Jakub Jelinek <jakub@redhat.com>
8583 PR tree-optimization/42719
8584 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
8588 * fwprop.c (all_uses_available_at): Return false if def_set dest
8589 is a REG that is used in def_insn.
8591 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
8593 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
8595 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
8598 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
8600 * target.h (struct gcc_target) <secondary_reload>: Change type
8601 of last argument to secondary_reload_info *.
8603 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
8606 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
8607 memory references with unaligned offsets. Remove CQImode handling.
8608 (unaligned_memory_operand): Return 1 for memory references with
8609 unaligned offsets. Remove CQImode handling.
8611 2010-01-18 Richard Guenther <rguenther@suse.de>
8614 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
8617 2010-01-18 Richard Guenther <rguenther@suse.de>
8619 PR tree-optimization/42781
8620 * tree-ssa-structalias.c (find_what_var_points_to): Skip
8621 restrict processing only if the original variable was artificial.
8623 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
8625 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
8626 find number of popped argument bytes.
8628 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
8629 Fix the text that describes the return value for invalid insns.
8631 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
8633 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
8634 Clarify what 'cost of the -dependence' is. Fix quoting.
8636 * toplev.c (default_get_pch_validity): Rename argument to "sz".
8637 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
8639 2010-01-17 Jakub Jelinek <jakub@redhat.com>
8641 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
8642 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
8644 2010-01-17 Richard Guenther <rguenther@suse.de>
8647 * function.c (split_complex_args): Take a VEC to modify.
8648 (assign_parms_augmented_arg_list): Build a VEC instead of
8649 a chain of PARM_DECLs.
8650 (assign_parms_unsplit_complex): Take a VEC of arguments.
8651 Do not fixup unmodified parms.
8652 (assign_parms): Deal with the VEC.
8653 (gimplify_parameters): Likewise.
8655 2010-01-17 Richard Guenther <rguenther@suse.de>
8657 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
8658 node existence check.
8659 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
8660 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
8661 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
8662 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
8663 (gimple_execute_on_growing_pred): Likewise.
8665 2010-01-17 Richard Guenther <rguenther@suse.de>
8667 PR tree-optimization/42773
8668 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
8669 (compute_antic_aux): Likewise.
8670 (compute_partial_antic_aux): Likewise.
8672 2010-01-17 Jie Zhang <jie.zhang@analog.com>
8675 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
8678 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
8680 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
8683 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
8684 Fix markup for strict argument.
8686 (TARGET_SCHED_REORDER2): Fix argument types.
8688 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
8689 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
8691 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
8692 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
8694 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
8697 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
8698 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
8699 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
8700 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
8701 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
8703 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
8705 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
8707 (TARGET_ASM_RELOC_RW_MASK): Add return type.
8708 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
8710 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
8712 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
8715 (TARGET_ASM_NAMED_SECTION): Fix argument list.
8717 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
8718 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
8720 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
8722 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
8724 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
8725 referring to it. Fix language.
8727 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
8729 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
8731 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
8733 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
8735 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
8736 '@var{stream}. Remove stray 'and'.
8738 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
8740 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
8742 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
8744 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
8745 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
8747 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
8748 Fix description of return value.
8749 Rename argument "sz" to "len."
8751 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
8752 Clarify meaning of 'true' return value.
8754 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
8756 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
8757 rep_mode versus mode_rep.
8759 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
8761 (TARGET_BUILTIN_DECL): Fix name.
8763 (TARGET_COMMUTATIVE_P): Fix type of first argument.
8765 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
8767 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
8769 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
8771 (TARGET_RELAXED_ORDERING): Use @deftypevr.
8773 (TARGET_GET_DRAP_RTX): Note that this is a hook.
8776 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
8777 Rename argument tm_fn to md_fn.
8779 (TARGET_OPTION_PRINT): Fix argument list.
8781 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
8784 * config/i386/i386.c (ix86_fixup_binary_operands):
8785 Revert FMA4 fixup of operands.
8787 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8790 * Makefile.in (write_entries_to_file, install-plugin):
8791 Use \012 instead of \n with tr.
8793 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
8795 * configure.ac (HAVE_AS_REF): New C macro.
8796 * configure: Regenerate.
8797 * config.in: Likewise.
8798 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
8800 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
8803 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
8805 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
8807 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
8809 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
8811 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
8813 (TARGET_IN_SMALL_DATA_P): Fix argument type.
8815 (TARGET_BINDS_LOCAL_P): Fix argument type.
8817 (TARGET_ASM_FILE_END): Use prototype.
8819 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
8821 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
8823 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
8825 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
8827 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
8828 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
8830 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
8831 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
8833 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
8834 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
8835 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
8836 (TARGET_ADDR_SPACE_CONVERT): Likewise.
8838 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
8840 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
8842 (TARGET_INIT_BUILTINS): Use prototype.
8844 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
8845 Put 'const char *' in braces. Fix parameter types.
8846 (TARGET_INVALID_CONVERSION): Fix parameter types.
8847 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
8848 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
8850 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
8853 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
8855 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
8857 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
8859 * doc/tm.texi (TARGET_HELP): Fix return type.
8861 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
8862 in braces. Fix argument types.
8864 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
8866 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
8868 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
8870 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
8871 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
8873 (TARGET_MANGLE_TYPE): Fix argument types.
8875 (TARGET_IRA_COVER_CLASSES): Use prototype.
8877 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
8879 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
8881 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
8883 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
8885 (TARGET_CALLEE_COPIES): Fix argument types.
8887 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
8889 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
8891 (TARGET_FUNCTION_VALUE): Fix argument types.
8893 (TARGET_RETURN_IN_MSB): Fix argument type.
8895 (TARGET_RETURN_IN_MEMORY): Fix argument types.
8897 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
8899 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
8901 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
8902 agree with return type.
8904 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
8906 2010-01-15 Jing Yu <jingyu@google.com>
8908 PR rtl-optimization/42691
8909 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
8910 a pseudo to a constant and are merged, and adjust comments.
8912 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
8914 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
8916 2010-01-15 Richard Guenther <rguenther@suse.de>
8919 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
8920 labels of computed or non-local gotos to the destination.
8921 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
8922 landing pad label is the first label.
8924 2010-01-15 Richard Guenther <rguenther@suse.de>
8926 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
8928 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8931 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
8932 to allow generation of the xssqrtdp instruction on power7.
8933 (sqrtdf2_fpr): Ditto.
8935 2010-01-14 Jakub Jelinek <jakub@redhat.com>
8938 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
8939 functions with noreturn attribute.
8942 * varasm.c (declare_weak): Add weak attribute to decl if it
8943 doesn't have one already.
8944 (assemble_external): Only add decls to weak_decls if they also
8945 have weak attribute.
8947 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
8949 * var-tracking.c (var_reg_delete): Don't delete the association
8950 between REGs and values or one-part variables if the register
8953 2010-01-14 Jakub Jelinek <jakub@redhat.com>
8956 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
8957 because its first operand is a non-localized variable.
8959 2010-01-14 Martin Jambor <mjambor@suse.cz>
8961 PR tree-optimization/42706
8962 * tree-sra.c (encountered_recursive_call): New variable.
8963 (encountered_unchangable_recursive_call): Likewise.
8964 (sra_initialize): Initialize both new variables.
8965 (callsite_has_enough_arguments_p): New function.
8966 (scan_function): Call decl and flags check only for IPA-SRA, check
8967 whether there is a recursive call and whether it has enough arguments.
8968 (all_callers_have_enough_arguments_p): New function.
8969 (convert_callers): Look for recursive calls only when
8970 encountered_recursive_call is set.
8971 (ipa_early_sra): Bail out either if
8972 !all_callers_have_enough_arguments_p or
8973 encountered_unchangable_recursive_call.
8975 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
8977 * sel-sched.c: Add 2010 to copyright years.
8978 * sel-sched-ir.c: Likewise.
8979 * sel-sched-ir.h: Likewise.
8981 2010-01-14 Martin Jambor <mjambor@suse.cz>
8983 PR tree-optimization/42714
8984 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
8985 constructors specially.
8987 2010-01-14 Andi Kleen <ak@linux.intel.com>
8989 * config/i386/drivers-i386.c (detect_caches_intel):
8990 Add l2sizekb parameter and fill in.
8991 (host_detect_local_cpu): Add l2sizekb, fill in.
8992 Add Atom small cache heuristic.
8994 2010-01-14 Andi Kleen <ak@linux.intel.com>
8996 * config/i386/drivers-i386.c (detect_caches_cpuid4):
8997 Add level3 parameter and fill in.
8998 (detect_caches_intel): Handle level3 cache.
9000 2010-01-14 Andi Kleen <ak@linux.intel.com>
9002 * config/i386/drivers-i386.c (host_detect_local_cpu):
9003 Fix core duo detection.
9005 2010-01-14 Andi Kleen <ak@linux.intel.com>
9007 * config/i386/drivers-i386.c (host_detect_local_cpu):
9010 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
9012 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
9013 (rs6000_variable_issue_1): this. Use...
9014 (rs6000_variable_issue): here. Reimplement. Print debug info.
9016 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
9018 * sel-sched-ir.c (sel_restore_other_notes): Rename to
9019 sel_restore_notes. Update all callers. Call reemit_notes
9022 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
9024 PR rtl-optimization/42246
9025 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
9028 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
9030 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
9031 all successors is the same as number of successors in current region.
9033 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
9035 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
9036 to rename is not separable. Otherwise check that its LHS is not NULL.
9038 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
9040 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
9042 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
9044 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
9045 available registers when failed to discover LHS register class.
9046 Fix indentation. Update comment.
9048 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
9049 Alexander Monakov <amonakov@ispras.ru>
9051 PR rtl-optimization/42389
9052 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
9054 (advance_state_on_fence): Likewise.
9055 (sel_target_adjust_priority): Print debug output only when
9056 sched_verbose >= 4, not 2.
9057 (get_expr_cost): Do not issue all unique insns on the next cycle.
9058 (fill_insns): Initialize can_issue_more from the value saved
9060 * sel-sched-ir.c (flist_add): New parameter issue_more.
9061 Init FENCE_ISSUE_MORE with it.
9062 (merge_fences): Likewise.
9063 (init_fences): Update call to flist_add.
9064 (add_to_fences, add_clean_fence_to_fences)
9065 (add_dirty_fence_to_fences): Likewise.
9066 (move_fence_to_fences): Update call to merge_fences.
9067 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
9069 * sel-sched-ir.h (struct _fence): New field issue_more.
9070 (FENCE_ISSUE_MORE): New accessor macro.
9072 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
9074 PR rtl-optimization/42388
9075 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
9076 that have no predecessors nor successors. Do not call move_bb_info
9077 for empty blocks outside of current region.
9079 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
9081 PR rtl-optimization/42294
9082 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
9083 * sel-sched.c (move_exprs_to_boundary): Transitively add all
9084 originators' originators.
9086 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
9088 PR rtl-optimization/39453
9089 PR rtl-optimization/42246
9090 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
9092 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
9094 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
9095 Alexander Monakov <amonakov@ispras.ru>
9098 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
9099 (maybe_tidy_empty_bb): ... here. Make static. Add new
9100 argument. Update all callers.
9101 (tidy_control_flow): ... and here. Recompute topological order
9102 of basic blocks in region if necessary.
9103 (sel_redirect_edge_and_branch): Change return type. Return true
9104 if topological order might have been invalidated.
9105 (purge_empty_blocks): Export and move from...
9106 * sel-sched.c (purge_empty_blocks): ... here.
9107 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
9108 (maybe_tidy_empty_bb): Delete prototype.
9109 (purge_empty_blocks): Declare.
9111 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
9113 PR rtl-optimization/42249
9114 * sel-sched.c (try_replace_dest_reg): When chosen register
9115 and original register is the same, do not bail out early, but
9116 still check all original insns for validity of replacing destination
9117 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
9120 2010-01-14 Jakub Jelinek <jakub@redhat.com>
9123 Port from no-undefined-overflow branch:
9124 2009-03-09 Richard Guenther <rguenther@suse.de>
9126 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
9128 2010-01-14 Richard Guenther <rguenther@suse.de>
9131 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
9133 2010-01-14 Ira Rosen <irar@il.ibm.com>
9135 PR tree-optimization/42709
9136 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
9137 as scalar type in creation of constant vector operand.
9139 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9142 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
9143 (check-parallel-%): Match `testsuite' directory component only
9146 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
9148 PR translation/39521
9149 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
9152 2010-01-13 Richard Guenther <rguenther@suse.de>
9154 PR tree-optimization/42730
9155 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
9158 2010-01-13 Steve Ellcey <sje@cup.hp.com>
9161 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
9162 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
9165 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
9167 * config/bfin/libgcc-bfin.ver: Regenerate based on current
9168 libgcc-std.ver. Add entries for ___smulsi3_highpart and
9169 ___umulsi3_highpart.
9171 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
9172 rather than schedule_insns if the pass is enabled.
9174 2010-01-13 Martin Jambor <mjambor@suse.cz>
9176 PR tree-optimization/42704
9177 * tree-sra.c (sra_modify_assign): Do not delete assignments to
9180 2010-01-13 Martin Jambor <mjambor@suse.cz>
9182 PR tree-optimization/42703
9183 * tree-sra.c (analyze_access_subtree): Check that we can build a
9184 reference to the original data within the aggregate.
9186 2010-01-13 Richard Guenther <rguenther@suse.de>
9188 PR tree-optimization/42705
9189 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
9191 2010-01-13 Richard Guenther <rguenther@suse.de>
9194 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
9196 2010-01-13 Jakub Jelinek <jakub@redhat.com>
9199 * var-tracking.c (values_to_unmark): New variable.
9200 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
9201 values_to_unmark vector. Moved body to...
9202 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
9203 instead queue it into values_to_unmark vector.
9204 (vt_find_locations): Free values_to_unmark vector.
9206 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
9208 * config/s390/s390.c (override_options): Set
9209 default of max-pending-list-length to 256
9211 2010-01-13 Richard Guenther <rguenther@suse.de>
9214 * tree-pass.h (PROP_gimple_lcx): New.
9215 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
9216 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
9217 before the final cleanup_eh.
9218 (dump_properties): Dump PROP_gimple_lcx.
9219 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
9220 (tree_lower_complex_O0): Remove.
9221 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
9222 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
9223 tree_lower_complex, schedule TODO_update_ssa.
9224 * lto-streamer-out.c (output_function): Stream the functions
9226 * lto-streamer-in.c (input_function): Likewise.
9227 (lto_read_body): Do not override them here.
9229 2010-01-12 Joseph Myers <joseph@codesourcery.com>
9232 * c-typeck.c (build_c_cast): Fold value cast to union type before
9233 wrapping it in a CONSTRUCTOR.
9235 2010-01-12 Jakub Jelinek <jakub@redhat.com>
9237 PR rtl-optimization/42699
9238 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
9241 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9243 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
9244 SUBTARGET_WARN_UNUSED_SPEC): Move ...
9245 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
9246 SUBTARGET_WARN_UNUSED_SPEC): ... here
9247 * config/mips/iris5.h (LIBGCC_SPEC): Define.
9249 2010-01-12 Julian Brown <julian@codesourcery.com>
9251 * config/arm/neon-schedgen.ml (Utils): Don't try to
9252 open missing module.
9253 (find_with_result): New.
9255 2010-01-12 Jakub Jelinek <jakub@redhat.com>
9258 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
9259 sharing when canonicalizing ({lt,ge}u (plus a b) b).
9261 PR tree-optimization/42645
9262 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
9263 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
9264 decl_map, set processing_debug_stmt to -1 and return name without
9267 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
9269 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
9270 binutils version, and reword target configuration description.
9272 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
9274 * config/avr/avr.h (LINKER_NAME): Remove.
9276 2010-01-11 Janis Johnson <janis187@us.ibm.com>
9279 * config/rs6000/rs6000.c (rs6000_override_options): On targets
9280 that support VSX, warn for -mno-altivec if vsx is not disabled,
9283 2010-01-11 Joseph Myers <joseph@codesourcery.com>
9284 Shujing Zhao <pearly.zhao@oracle.com>
9286 PR translation/42469
9287 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
9288 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
9289 character between option name and help text.
9290 * c.opt (imultilib): Likewise.
9292 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
9294 * lto-streamer-out.c (output_unreferenced_globals): Output static
9297 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
9299 PR rtl-optimization/42621
9300 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
9301 optimizing for size.
9302 (duplicate_computed_gotos): Remove now-redundant check.
9304 2010-01-10 Steve Ellcey <sje@cup.hp.com>
9307 * configure.ac: Save and restore LDFLAGS and LIBS
9308 * configure: Regenerate.
9310 2010-01-10 Richard Guenther <rguenther@suse.de>
9313 * builtins.c (fold_builtin_strlen): Add type argument and
9314 convert the resulting length to it.
9315 (fold_builtin_1): Adjust.
9317 2010-01-09 Jakub Jelinek <jakub@redhat.com>
9319 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
9320 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
9322 (num_insns_constant_wide): Adjust for that change.
9324 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
9327 * web.c (union_defs): Add used argument, to combine uses of
9329 (entry_register): Adjust type and tests of used argument.
9330 (web_main): Widen used for new use. Pass it to union_defs.
9331 * df.h (union_defs): Adjust prototype.
9333 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
9336 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
9337 uses in new incoming argument. Free body.
9338 (reset_debug_uses_in_loop): New.
9339 (analyze_insn_to_expand_var): Call the latter if the former found
9340 anything. Fix whitespace. Reject invalid dest overlaps before
9341 going through all insns in the loop.
9343 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
9346 * haifa-sched.c (dying_use_p): Debug insns don't count.
9348 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
9351 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
9352 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
9353 (verify_gimple_call): Reject LHS in noreturn calls.
9355 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
9359 * tree-vect-loop-manip.c (adjust_info): New type.
9360 (adjust_vec): New pointer to vector.
9361 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
9362 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
9363 (slpeel_update_phis_for_duplicate_loop): Use them.
9364 (slpeel_update_phi_nodes_for_guard1): Likewise.
9365 (slpeel_update_phi_nodes_for_guard2): Likewise.
9366 (slpeel_tree_peel_loop_to_edge): Likewise.
9367 (vect_update_ivs_after_vectorizer): Likewise.
9369 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
9371 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
9372 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
9374 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
9376 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
9377 bogus uninitialized warning.
9379 2010-01-09 Richard Guenther <rguenther@suse.de>
9382 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
9383 the evolution is compatible with the initial condition.
9385 2010-01-09 Jakub Jelinek <jakub@redhat.com>
9387 * gcc.c (process_command): Update copyright notice dates.
9388 * gcov.c (print_version): Likewise.
9389 * gcov-dump.c (print_version): Likewise.
9390 * mips-tfile.c (main): Likewise.
9391 * mips-tdump.c (main): Likewise.
9393 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
9396 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
9398 (rotlhi3_8): Delete.
9400 (rotlsi3_8): Delete.
9401 (rotlsi3_16): Delete.
9402 (rotlsi3_24): Delete.
9404 (*rotw<mode>3): New.
9405 (*rotb<mode>3): New.
9406 * config/avr/avr.c (avr_rotate_bytes): New function.
9407 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
9409 2010-01-08 Steve Ellcey <sje@cup.hp.com>
9412 * configure.ac: Modify -rdynamic check.
9413 * configure: Regenerate.
9415 2010-01-08 DJ Delorie <dj@redhat.com>
9417 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
9418 register popping order.
9420 2010-01-08 Richard Guenther <rguenther@suse.de>
9423 * c.opt (fsigned-char): Also let LTO handle this option.
9424 (funsigned-char): Likewise.
9426 2010-01-07 Richard Guenther <rguenther@suse.de>
9428 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
9429 (gimple_op): Likewise.
9430 (gimple_op_ptr): Likewise.
9431 (gimple_assign_set_lhs): Remove gcc_assert.
9432 (gimple_assign_set_rhs1): Likewise.
9433 (gimple_assign_set_rhs2): Likewise.
9434 (gimple_call_set_lhs): Likewise.
9435 (gimple_call_set_fn): Likewise.
9436 (gimple_call_set_fndecl): Likewise.
9437 (gimple_call_fndecl): Likewise.
9438 (gimple_call_return_type): Likewise.
9439 (gimple_call_set_chain): Likewise.
9440 (gimple_call_num_args): Likewise.
9441 (gimple_call_set_arg): Likewise.
9442 (gimple_cond_set_code): Likewise.
9443 (gimple_cond_set_lhs): Likewise.
9444 (gimple_cond_set_rhs): Likewise.
9445 (gimple_cond_set_true_label): Likewise.
9446 (gimple_cond_set_false_label): Likewise.
9447 (gimple_label_set_label): Likewise.
9448 (gimple_goto_set_dest): Likewise.
9449 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
9450 (gimple_debug_bind_get_value): Likewise.
9451 (gimple_debug_bind_get_value_ptr): Likewise.
9452 (gimple_debug_bind_set_var): Likewise.
9453 (gimple_debug_bind_set_value): Likewise.
9454 (gimple_debug_bind_reset_value): Likewise.
9455 (gimple_debug_bind_has_value_p): Likewise.
9456 (gimple_return_retval_ptr): Remove gcc_assert.
9457 (gimple_return_retval): Likewise.
9458 (gimple_return_set_retval): Likewise.
9459 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
9460 (safe_referenced_var_iterator): Remove.
9461 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
9462 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
9463 (fill_referenced_var_vec): Remove.
9464 (first_readonly_imm_use): Remove redundant gcc_assert.
9465 (phi_arg_index_from_use): Combine gcc_asserts.
9466 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
9467 (first_imm_use_stmt): Remove redundant gcc_assert.
9468 * tree-cfg.c (verify_gimple_call): Verify function and chain
9469 operands. Verify arguments.
9470 (verify_types_in_gimple_stmt): Verify condition code and labels.
9472 2010-01-07 Richard Guenther <rguenther@suse.de>
9474 PR tree-optimization/42641
9475 * sese.c (rename_map_elt_info): Use the SSA name version, do
9478 2010-01-07 Jakub Jelinek <jakub@redhat.com>
9480 PR tree-optimization/42625
9481 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
9482 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
9484 2010-01-07 Duncan Sands <baldrick@free.fr>
9486 * Makefile.in (PLUGIN_HEADERS): Add version.h.
9488 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
9491 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
9492 note itself is not function_invariant_p.
9494 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
9496 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
9497 Do not add the DF_NOTE problem.
9498 * store-motion.c (execute_rtl_store_motion): Likewise.
9500 2010-01-07 Martin Jambor <mjambor@suse.cz>
9502 PR tree-optimization/42157
9503 * tree-sra.c (compare_access_positions): Stabilize sort if both
9504 accesses have integer types, return zero immediately if they are the
9507 2010-01-06 Richard Henderson <rth@redhat.com>
9510 * haifa-sched.c (add_to_note_list): Merge into ...
9511 (concat_note_lists): ... here, and ...
9512 (unlink_other_notes, rm_other_notes): Merge into...
9513 (remove_notes): ... here. Create REG_SAVE_NOTEs for
9514 NOTE_INSN_EPILOGUE_BEG.
9516 2010-01-06 Richard Guenther <rguenther@suse.de>
9518 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
9519 not inline regular functions into always-inline functions.
9521 2010-01-06 Nick Clifton <nickc@redhat.com>
9523 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
9524 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
9526 (OVERRIDE_OPTIONS): Delete.
9527 (OPTIMIZATION_OPTIONS): Define.
9528 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
9529 * config/rx/rx.c (rx_handle_option): Issue an error message if
9530 -mcpu=rx200 and -fpu are used together.
9531 (rx_set_optimization_options): New function. Issue an error
9532 message if an optimization attribute attempts to reset the FPU/
9533 math optimization pairing.
9534 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
9535 * config/rx/rx.opt: Set the default to 32-bit doubles.
9536 * config/rx/t-rx: Add multilibs for -nofpu option.
9537 * doc/invoke.texi: Update documentation of RX options.
9539 2010-01-06 Richard Guenther <rguenther@suse.de>
9541 * tree-ssa-pre.c (name_to_id): New global.
9542 (alloc_expression_id): Simplify SSA name handling.
9543 (lookup_expression_id): Likewise.
9544 (init_pre): Zero name_to_id.
9545 (fini_pre): Free it.
9547 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
9549 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
9551 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
9554 * config/i386/sse.md (smaxv2di3): New.
9555 (umaxv2di3): Likewise.
9556 (sminv2di3): Likewise.
9557 (uminv2di3): Likewise.
9559 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
9562 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
9563 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
9564 (legitimize_tls_address): Likewise.
9565 (sparc_tls_referenced_p): Likewise.
9566 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
9567 and adjust calls to legitimize_pic_address.
9568 (legitimate_constant_p) Use sparc_tls_referenced_p.
9569 (legitimate_pic_operand_p): Likewise.
9570 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
9571 (sparc_tls_symbol_ref_1): Delete.
9572 (sparc_tls_referenced_p): Make static, recognize specific patterns.
9573 (legitimize_tls_address): Make static, handle CONST patterns.
9574 (legitimize_pic_address): Make static, remove unused parameter and
9575 adjust recursive calls.
9576 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
9577 and adjust call to legitimize_pic_address.
9578 (sparc_output_mi_thunk): Likewise.
9580 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
9581 H.J. Lu <hongjiu.lu@intel.com>
9584 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
9585 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
9586 operands to make them signed.
9589 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
9592 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
9593 GTU to GT for V4SI and V2DI.
9595 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
9596 (umin<mode>3): Removed.
9598 (uminv4si3): Likewise.
9600 2010-01-05 Martin Jambor <mjambor@suse.cz>
9602 PR tree-optimization/42462
9603 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
9604 current_function_decl to helper functions and macros.
9606 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9609 * flags.h: Don't include real.h.
9610 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
9611 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
9612 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
9613 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
9614 * dominance.c: Update copyright.
9615 * gimple.c (walk_gimple_op): Remove inline.
9616 * tree-ssa-reassoc.c: Include real.h.
9617 * Makefile.in (FLAGS_H): Remove $(REAL_H).
9618 (tree-ssa-reassoc.o): Depend on $(REAL_H).
9620 2010-01-05 Nick Clifton <nickc@redhat.com>
9622 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
9623 register to push into the stack frame when the accumulator has to
9624 be saved during interrupts.
9626 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
9628 * doc/invoke.texi: Remove the documentation about option
9630 * common.opt (Wunreachable-code): Preserved for backward
9632 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
9633 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
9634 the backward compatibility flag section.
9636 2010-01-05 Richard Guenther <rguenther@suse.de>
9638 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
9640 2010-01-05 Jakub Jelinek <jakub@redhat.com>
9643 * cfgexpand.c (expand_one_var): Diagnose too large variables.
9645 PR tree-optimization/42508
9646 * tree-sra.c (convert_callers): Check for recursive call
9647 by comparing cgraph nodes instead of decls.
9648 (modify_function): Call ipa_modify_formal_parameters also
9649 on all same_body aliases.
9651 * cgraphunit.c (cgraph_materialize_all_clones): Compare
9652 cgraph nodes when checking for same_body aliases.
9654 2010-01-05 Richard Guenther <rguenther@suse.de>
9656 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
9657 allocation and lookup.
9658 (get_or_alloc_expr_for_constant): Likewise.
9659 (phi_translate): Sink allocation.
9661 2010-01-04 Richard Guenther <rguenther@suse.de>
9663 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
9664 a new entry only if needed.
9665 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
9666 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
9668 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
9670 (phi_translate): Handle CONSTANTs early.
9672 2010-01-04 Martin Jambor <mjambor@suse.cz>
9674 PR tree-optimization/42398
9675 * tree-sra.c (struct access): Removed flag grp_different_types.
9676 (dump_access): Do not dump the removed flag.
9677 (sort_and_splice_var_accesses): Do not set the removed flag.
9678 (sra_modify_expr): Check for type compatibility directly.
9680 2010-01-04 Martin Jambor <mjambor@suse.cz>
9682 PR tree-optimization/42366
9683 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
9684 edges with variable number of parameters.
9685 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
9686 flag instead of asserting it.
9687 (ipa_read_node_info): Read uses_analysis_done flag.
9689 2010-01-04 Richard Guenther <rguenther@suse.de>
9691 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
9692 iterative_hash_* as intended.
9693 (vn_reference_compute_hash): Likewise. Simplify hashing
9695 (vn_reference_lookup_2): Likewise.
9696 (vn_nary_op_compute_hash): Likewise.
9697 (vn_phi_compute_hash): Likewise.
9698 (expressions_equal_p): Remove strange code.
9699 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
9700 (pre_expr_hash): Likewise. Simplify hashing SSA names.
9701 (bitmap_insert_into_set_1): Take value-id as parameter.
9702 (add_to_value): Pass it.
9703 (bitmap_insert_into_set): Likewise.
9704 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
9706 2010-01-04 Jakub Jelinek <jakub@redhat.com>
9709 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
9710 (do_self_spec): For switches with SWITCH_IGNORE set set also
9711 SWITCH_IGNORE_PERMANENTLY.
9712 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
9715 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
9717 * lto-streamer-out.c (output_unreferenced_globals): Output the full
9718 tree of an unreferenced global var.
9720 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
9723 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
9724 GTU to GT for V4SI and V2DI.
9726 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
9727 (umin<mode>3): Removed.
9729 (uminv4si3): Likewise.
9731 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
9734 * collect2.c (main): Turn on trace in collect2 if -v is passed
9737 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
9739 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
9740 description of expression operand.
9742 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
9744 * configure.ac: Add install-html to target_list for Make-hooks.
9745 * configure: Regenerate.
9746 * fortran/Make-lang.in (F95_HTMLFILES): New.
9747 (fortran.html): Use it.
9748 (fortran.install-html): New.
9749 * Makefile.in (install-html): Add lang.install-html.
9750 * java/Make-lang.in (JAVA_HTMLFILES): New.
9751 (java.html): Use it.
9752 (java.install-html): New.
9753 * objc/Make-lang.in (objc.install-html): New.
9754 * objcp/Make-lang.in (obj-c++.install-html): New.
9755 * cp/Make-lang.in (c++.install-html): New.
9756 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
9757 * lto/Make-lang.in (lto.install-html): New.
9759 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
9762 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
9764 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
9766 PR rtl-optimization/41862
9767 * store-motion.c (store_killed_in_insn, compute_store_table,
9768 remove_reachable_equiv_notes, replace_store_insn,
9769 build_store_vectors): Ignore all DEBUG_INSNs.
9771 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
9774 * common.opt: Add dumpdir.
9776 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
9778 (option_map): Add --dumpdir.
9780 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
9782 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
9784 * opts.c (decode_options): Try dump_dir_name first if
9785 dump_base_name isn't an absolute path.
9786 (common_handle_option): Handle OPT_dumpdir.
9788 * toplev.c (dump_dir_name): New.
9789 (print_switch_values): Also ignore -dumpdir.
9791 * toplev.h (dump_dir_name): New.
9793 2010-01-03 Richard Guenther <rguenther@suse.de>
9795 PR tree-optimization/42589
9796 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
9797 double-word expansion of bswap32.
9799 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
9801 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
9802 with BLOCK_FOR_INSN.
9803 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
9804 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
9805 noce_process_if_block): Likewise.
9806 * gcse.c (compute_local_properties, insert_expr_in_table,
9807 insert_set_in_table, canon_list_insert, find_avail_set,
9808 pre_insert_copy_insn): Likewise.
9810 * basic-block.h (BLOCK_NUM): Move from here...
9811 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
9813 2010-01-03 Richard Guenther <rguenther@suse.de>
9815 PR tree-optimization/42438
9816 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
9817 contains_may_not_return_call flag.
9818 (BB_MAY_NOTRETURN): New.
9819 (valid_in_sets): Trapping nary operations are not valid
9820 in blocks that may not return.
9821 (insert_into_preds_of_block): Remove check for trapping expressions.
9822 (compute_avail): Compute also BB_MAY_NOTRETURN.
9824 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
9826 * doc/invoke.texi: Add 2010 to copyright years.
9828 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
9830 * config/sparc/sparc.c: Fix formatting nits.
9832 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
9833 Alexander Monakov <amonakov@ispras.ru>
9835 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
9837 2010-01-02 Richard Guenther <rguenther@suse.de>
9840 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
9841 (simplify_switch_using_ranges): Mark to be removed edges
9844 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9846 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
9848 * collect2.c (scan_libraries): Add missing argument in call to
9851 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
9854 * config/alpha/predicates.md (aligned_memory_operand): Return false
9856 (unaligned_memory_operand): Return true for CQImode.
9857 * config/alpha/alpha.c (get_aligned_mem): Assert that location
9858 doesn not cross aligned SImode word boundary.
9860 2010-01-02 Anatoly Sokolov <aesok@post.ru>
9862 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
9864 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
9865 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
9867 2010-01-02 Richard Guenther <rguenther@suse.de>
9870 * toplev.c (compile_file): Emit LTO marker properly. Change
9872 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
9874 2010-01-01 Richard Guenther <rguenther@suse.de>
9877 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
9879 2010-01-01 Richard Guenther <rguenther@suse.de>
9882 * c-decl.c (grokdeclarator): For zero-size arrays force
9883 structural equality checks as layout_type does.
9885 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
9887 * builtins.c: Update copyright to 2010.
9889 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
9892 * lto-streamer-out.c (produce_asm): Revert the last change.
9893 (copy_function): Likewise.
9895 * lto-streamer.c (lto_get_section_name): Skip any leading
9898 2010-01-01 Richard Guenther <rguenther@suse.de>
9901 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
9905 Copyright (C) 2010 Free Software Foundation, Inc.
9907 Copying and distribution of this file, with or without modification,
9908 are permitted in any medium without royalty provided the copyright
9909 notice and this notice are preserved.