1 2010-05-17 Martin Jambor <mjambor@suse.cz>
3 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
4 otr_token and polymorphic.
5 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
6 (cgraph_clone_edge): Copy the above fields.
7 * tree.c (get_binfo_at_offset): New function.
8 * tree.h (get_binfo_at_offset): Declare.
9 * ipa-prop.h (enum jump_func_type): Added known_type jump function
10 type, reordered items, updated comments.
11 (union jump_func_value): Added base_type field, reordered fields.
12 (enum ipa_lattice_type): Moved down in the file.
13 (struct ipa_param_descriptor): New field polymorphic.
14 (ipa_is_param_polymorphic): New function.
15 * ipa-prop.c: Include gimple.h and gimple-fold.h.
16 (ipa_print_node_jump_functions): Print known type jump functions.
17 (compute_complex_pass_through): Renamed to...
18 (compute_complex_assign_jump_func): this.
19 (compute_complex_ancestor_jump_func): New function.
20 (compute_known_type_jump_func): Likewise.
21 (compute_scalar_jump_functions): Create known type and complex ancestor
23 (ipa_note_param_call): New parameter polymorphic, set the corresponding
24 flag in the call note accordingly.
25 (ipa_analyze_call_uses): Renamed to...
26 (ipa_analyze_indirect_call_uses): this. New parameter target, define
27 variable var only in the block where it is used.
28 (ipa_analyze_virtual_call_uses): New function.
29 (ipa_analyze_call_uses): Likewise.
30 (combine_known_type_and_ancestor_jfs): Likewise.
31 (update_jump_functions_after_inlining): Implemented handling of a
32 number of new jump function types combination.
33 (print_edge_addition_message): Removed.
34 (make_edge_direct_to_target): New function.
35 (try_make_edge_direct_simple_call): Likewise.
36 (try_make_edge_direct_virtual_call): Likewise.
37 (update_call_notes_after_inlining): Renamed to...
38 (update_indirect_edges_after_inlining): this. Moved edge creation for
39 indirect calls to try_make_edge_direct_simple_call, also calls
40 try_make_edge_direct_virtual_call for virtual calls.
41 (ipa_print_node_params): Changed the header message.
42 (ipa_write_jump_function): Stream also known type jump functions.
43 (ipa_read_jump_function): Likewise.
44 (ipa_write_indirect_edge_info): Stream new fields in
45 cgraph_indirect_call_info.
46 (ipa_read_indirect_edge_info): Likewise.
47 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
50 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
52 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
54 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
56 * tree.h (CALL_EXPR_ARGS): Delete.
57 (call_expr_arglist): Delete.
58 * tree.c (call_expr_arglist): Delete.
59 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
61 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
62 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
63 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
64 arglist parameter. Use CALL_EXPR_ARG.
65 (picochip_expand_builtin_3op): Likewise.
66 (picochip_expand_builtin_2opvoid): Likewise.
67 (picochip_expand_array_get): Likewise.
68 (picochip_expand_array_put): Likewise.
69 (picochip_expand_array_testport): Likewise.
70 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
72 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
74 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
75 than TREE_VALUE and TREE_CHAIN.
76 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
77 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
80 2010-05-17 Jakub Jelinek <jakub@redhat.com>
83 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
84 to have no fallthru edge.
87 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
88 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
89 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
90 add BARRIER after previous bb if needed.
92 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
94 * tree.c (build_function_type_list_1): Remove bogus assert condition.
96 2010-05-17 Alan Modra <amodra@gmail.com>
98 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
99 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
100 with copy_reg rtx param.
101 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
102 Correct cases where code for ABI_V4 did not initialise the reg
103 used to access frame. Also leave frame_reg_rtx as sp for large
104 frames that save no regs.
106 2010-05-17 Martin Jambor <mjambor@suse.cz>
109 * tree-sra.c (create_access_replacement): New parameter rename, mark
110 the replaement for renaming only when it is true.
111 (get_access_replacement): Pass true in the rename parameter of
112 create_access_replacement.
113 (get_unrenamed_access_replacement): New function.
114 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
115 replacement declaration from it.
117 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
119 * function.c (try_fit_stack_local, add_frame_space): New static
121 (assign_stack_local_1): Use them. Look for opportunities to use
122 space previously wasted on alignment.
123 * function.h (struct frame_space): New.
124 (struct rtl_data): Add FRAME_SPACE_LIST member.
125 * reload1.c (something_was_spilled): New static variable.
127 (reload): Test it in addition to testing if the frame size changed.
129 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
131 * config/s390/s390.c: Define sane prefetch settings and activate
132 flag_prefetch_loop_arrays on -O3.
133 * config/s390/s390.h: Declare that read can use write prefetch.
135 2010-05-17 Jakub Jelinek <jakub@redhat.com>
137 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
140 2010-05-16 Jan Hubicka <jh@suse.cz>
142 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
143 function body; do not check stdarg field of struct function.
145 2010-05-16 Jan Hubicka <jh@suse.cz>
147 * cgraph.c (dump_cgraph_node): Dump versionable flag.
148 * cgraph.h (cgraph_local_info): Add versionable flag.
149 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
150 (ipcp_versionable_function_p): Use it.
151 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
154 2010-05-16 Jan Hubicka <jh@suse.cz>
156 * cgraph.c (cgraph_clone_node): Take decl argument and insert
157 clone into hash when it is different from orig.
158 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
159 * cgraph.h (cgraph_clone_node): Update prototype.
160 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
161 (lto_cgraph_encoder_delete): Delete body map.
162 (lto_cgraph_encoder_size): Move to header.
163 (lto_cgraph_encoder_encode_body_p,
164 lto_set_cgraph_encoder_encode_body): New.
165 (lto_output_node): Do not take written_decls argument; output clone_of
167 (add_node_to): Add include_body_argument; call
168 lto_set_cgraph_encoder_encode_body on master of the clone.
169 (add_references): Update use of add_node_to.
170 (compute_ltrans_boundary): Likewise.
171 (output_cgraph): Do not create written_decls bitmap.
172 (input_node): Take nodes argument; stream in clone_of correctly.
173 (input_cgraph_1): Update use of input_node.
174 * lto-streamer-out.c (lto_output): Use encoder info to decide
175 what bodies to output.
176 * ipa-inline.c (cgraph_clone_inlined_nodes,
177 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
178 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
179 (lto_cgraph_encoder_size): Define here.
180 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
183 2010-05-16 Richard Guenther <rguenther@suse.de>
185 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
187 * ipa-type-escape.c (gate_type_escape_vars): Run when
188 -fipa-struct-reorg runs.
189 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
190 * common.opt (fipa-type-escape): Remove.
192 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
194 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
195 (decode_options): Likewise.
196 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
198 2010-05-16 Jan Hubicka <jh@suse.cz>
200 * ipa.c (function_and_variable_visibility): Also bring local all
203 2010-05-16 Richard Guenther <rguenther@suse.de>
205 * alias.c (nonoverlapping_memrefs_p): Remove use of
206 IPA type-escape information.
208 2010-05-16 Joseph Myers <joseph@codesourcery.com>
210 * c-common.c (c_common_reswords): Add _Static_assert for C.
211 * c-parser.c (c_token_starts_declaration,
212 c_parser_next_token_starts_declaration,
213 c_parser_static_assert_declaration_no_semi,
214 c_parser_static_assert_declaration): New.
215 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
216 Handle static assertions if static_assert_ok.
217 (c_parser_external_declaration, c_parser_declaration_or_fndef,
218 c_parser_compound_statement_nostart, c_parser_label,
219 c_parser_for_statement, c_parser_objc_methodprotolist,
220 c_parser_omp_for_loop): All callers of
221 c_parser_declaration_or_fndef changed.
222 (c_parser_struct_declaration): Handle static assertions.
223 (c_parser_compound_statement_nostart): Use
224 c_parser_next_token_starts_declaration and
225 c_token_starts_declaration to detect start of declarations.
226 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
229 2010-05-16 Anatoly Sokolov <aesok@post.ru>
231 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
232 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
233 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
234 TARGET_FUNCTION_VALUE_REGNO_P): Define.
235 (mmix_function_outgoing_value): Rename to...
236 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
237 (mmix_function_value_regno_p): Make static.
238 (mmix_libcall_value): New function.
239 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
240 mmix_function_value_regno_p): Remove declaration.
242 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
244 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
245 BUILT_IN_ALLOCA if stack checking is enabled.
247 2010-05-16 Richard Guenther <rguenther@suse.de>
249 * var-tracking.c (vars_copy_1): Inline ...
250 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
251 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
252 (variable_merge_over_cur): Adjust. Merge asserts.
253 (variable_merge_over_src): Likewise.
254 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
255 (variable_post_merge_new_vals): Merge asserts.
256 (variable_post_merge_perm_vals): Likewise.
257 (find_mem_expr_in_1pdv): Likewise.
258 (dataflow_set_different_value): Remove.
259 (onepart_variable_different_p): Merge asserts.
260 (variable_different_p): Likewise.
261 (dataflow_set_different_1): Inline ...
262 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
263 (emit_notes_for_differences_1): Merge asserts.
265 2010-05-16 Richard Guenther <rguenther@suse.de>
267 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
268 * optabs.c (libfunc_decl_hash): Likewise.
269 * varasm.c (emutls_decl): Likewise.
271 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
273 * c-decl.c: Don't include gimple.h.
274 (merge_decls): Do not copy gimple_body.
276 2010-05-15 Jason Merrill <jason@redhat.com>
278 * c.opt: Add -fnothrow-opt.
280 2010-05-15 Jan Hubicka <jh@suse.cz>
282 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
284 * passes.c (ipa_write_summaries): Write all analyzed nodes.
286 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
288 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
289 * Makefile.in: Add it.
290 Fix all other Makefile dependencies for changes below.
291 * tree.h: Include it instead of defining VEC primitives here.
292 * gimple.h: Likewise.
294 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
295 * except.h: Include vecir.h, break dependence on tree.h.
297 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
299 * tree-iterator.c: ...to here.
300 * tree-iterator.h: Fix file introduction comment. Add extern markers.
302 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
304 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
305 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
306 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
307 tree-mudflap.h, and target.h.
308 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
309 predict.h, tree-inline.h, gimple.h, and langhooks.h.
310 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
311 Add FIXME for why gimple.h is still included (should be unnecessary
312 since GCC 4.5 gimplification unit-at-a-time).
313 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
314 * c-pragma.c: Add FIXME for why function.h needs to be included just
315 for cfun, at front-end level.
316 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
317 Do not include ggc.h, but include vecprim.h for VEC(char).
318 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
319 Explain why target.h is included.
320 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
321 Explain why gimple.h is included.
322 * c-ppoutput.c: Do not include tm.h.
323 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
324 * c-parses.c: Explain why rtl.h is included, and that this (and only
325 this) is also why tm.h must be included.
326 Do not include except.h.
327 * c-lang.c: Do not include ggc.h.
329 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
331 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
333 2010-05-15 Joseph Myers <joseph@codesourcery.com>
335 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
336 unions by default if those structs and unions have no tags. Do
337 not condition anonymous struct and unions handling on flag_iso.
338 Allow anonymous structs and unions for C1X.
339 (finish_struct): Do not diagnose lack of named fields when
340 anonymous structs and unions present for C1X. Accept flexible
341 array members in structure with anonymous structs or unions but no
342 directly named fields.
343 * doc/extend.texi (Unnamed Fields): Update.
345 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
347 * gimple.h (compare_field_offset): Rename into...
348 (gimple_compare_field_offset): ...this.
349 * gimple.c (compare_field_offset): Rename into...
350 (gimple_compare_field_offset): ...this. Compare the full access if
351 the offset is self-referential.
352 (gimple_types_compatible_p): Adjust for above renaming.
353 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
354 DECL_NONADDRESSABLE_P flag of fields before merging them.
356 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
358 * tree.h (ctor_to_list): Delete.
359 * tree.c (ctor_to_list): Delete.
361 2010-05-15 Jan Hubicka <jh@suse.cz>
363 * ipa-reference.c: Include toplev.h
364 (is_proper_for_analysis): Only add to all_module_statics
366 (write_node_summary_p, stream_out_bitmap,
367 ipa_reference_write_optimization_summary,
368 ipa_reference_read_optimization_summary): New.
369 (struct ipa_opt_pass_d pass_ipa_reference): Add
370 optimization summary streaming.
371 * lto-cgraph.c (referenced_from_this_partition_p,
372 reachable_from_this_partition_p): New functions.
373 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
374 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
375 * opts.c (decode_options): Enable ipa_reference.
376 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
377 * lto-streamer.h (referenced_from_this_partition_p,
378 reachable_from_this_partition_p): Declare.
380 2010-05-15 Richard Guenther <rguenther@suse.de>
382 PR tree-optimization/44038
383 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
384 taking the address of a V_C_E of a constant.
386 2010-05-14 Jan Hubicka <jh@suse.cz>
388 * tree.h (memory_identifier_string): Remove.
389 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
390 (ipa_reference_global_vars_info_d): Remove statics_not_read and
392 (ipa_reference_optimization_summary_d): New structure.
393 (ipa_reference_optimization_summary_t): New type and vector.
394 (ipa_reference_vars_info_d): Embedd structures instead of using
396 (reference_vars_to_consider): Remove out of GGC space.
397 (module_statics_escape): Remove.
398 (global_info_obstack): Rename to ...
399 (optimization_summary_obstack): ... this one.
400 (initialization_status_t): Remove.
401 (memory_identifier_string): Remove.
402 (get_reference_vars_info): Fix indenting.
403 (set_reference_vars_info): Likewise.
404 (get_reference_optimization_summary): New.
405 (set_reference_optimization_summary): New.
406 (get_global_reference_vars_info): Remove.
407 (ipa_reference_get_read_global): Remove.
408 (ipa_reference_get_written_global): Remove.
409 (ipa_reference_get_not_read_global): Update.
410 (ipa_reference_get_not_written_global): Update.
411 (is_proper_for_analysis): Outlaw addressable.
412 (propagate_bits): Update for new datastructures.
413 (analyze_variable): Remove.
414 (init_function_info): Update for new datastructures.
415 (clean_function_local_data): Remove.
416 (clean_function): Remove.
417 (copy_global_bitmap): Use optimizations_summary_obstack.
418 (duplicate_node_data): Duplicate optimization summary only.
419 (remove_node_data): Remove optimization summary only.
420 (generate_summary): Do not analyze variables; do not compute
421 module_statics_escape; do not prune solutions by it.
422 (read_write_all_from_decl): Fix typos in comments.
423 (propagate): Doscover readonly and nonaddressable first;
424 update for new datastructures; share global bitmaps.
425 * ipa-reference.h (ipa_reference_get_read_global,
426 ipa_reference_get_written_global): Remove.
427 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
428 * Makefile.in: Remove ipa-refereference from GT files.
430 2010-05-14 Jakub Jelinek <jakub@redhat.com>
433 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
434 for all SYMBOL_REF_DECLs.
436 2010-05-14 Jan Hubicka <jh@suse.cz>
438 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
439 (varpool_all_refs_explicit_p): New inline function.
440 * ipa-reference.c: Update comment.
441 (module_statics_written): Remove.
442 (get_static_decl): Remove.
443 (ipa_init): Do not initialize module_statics_written.
444 (analyze_function): Likewise.
445 (generate_summary): Likewise; do not compute module_statics_readonly
446 and do not update variable flags.
447 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
448 * ipa.c: Inlucde flags.h
449 (cgraph_local_node_p): New.
450 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
451 promote functions to local.
452 (ipa_discover_readonly_nonaddressable_vars): New function.
453 (function_and_variable_visibility): Use cgraph_local_node_p.
454 * varpool.c (varpool_finalize_decl): Set force_output for
455 DECL_PRESERVE_P vars.
457 2010-05-14 Jan Hubicka <jh@suse.cz>
459 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
461 2010-05-14 Richard Guenther <rguenther@suse.de>
463 PR tree-optimization/44119
464 * tree-ssa-pre.c (eliminate): Properly mark replacement of
465 a PHI node necessary.
467 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
469 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
471 2010-05-14 Jason Merrill <jason@redhat.com>
474 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
475 (gimple_call_set_nothrow): New.
476 * gimple.c (gimple_build_call_from_tree): Call it.
477 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
480 * gimplify.c (gimplify_seq_add_stmt): No longer static.
481 * gimple.h: Declare it.
482 * gimple.c (gimple_build_eh_filter): No ops.
484 2010-05-14 Jan Hubicka <jh@suse.cz>
486 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
487 nodes already in queue.
488 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
491 2010-05-14 Jakub Jelinek <jakub@redhat.com>
494 * cfgexpand.c (expand_debug_expr): If non-memory op0
495 has BLKmode, return NULL.
497 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
499 * config.gcc: Add support for --with-cpu option for bdver1.
500 * config/i386/i386.h (TARGET_BDVER1): New macro.
501 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
502 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
503 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
504 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
505 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
506 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
507 (processor_type): Add PROCESSOR_BDVER1.
508 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
509 processor_type in config/i386/i386.h.
510 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
511 movaps <reg, reg> instead of movapd <reg, reg> when replacing
512 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
513 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
514 to emit packed xor instead of packed double/packed integer
515 xor for SSE and AVX when moving a zero value.
516 * config/i386/sse.md: Add check for
517 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
518 movapd/movdqa for SSE and AVX.
519 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
520 single logical operations i.e and, or and xor instead of packed double
521 logical operations for SSE and AVX.
522 * config/i386/i386-c.c (ix86_target_macros_internal):
523 Add PROCESSOR_BDVER1.
524 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
525 (has_fma4, has_xop): New.
526 * config/i386/i386.c (bdver1_cost): New variable.
527 (m_BDVER1): New macro.
528 (m_AMD_MULTIPLE): Add m_BDVER1.
529 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
530 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
531 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
532 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
533 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
534 x86_tune_sse_partial_reg_dependency,
535 x86_tune_sse_unaligned_load_optimal,
536 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
537 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
538 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
539 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
540 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
541 Enable/disable for bdver1.
542 (processor_target_table): Add bdver1_cost.
543 (cpu_names): Add bdver1.
544 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
545 processor_alias_table.
546 (ix86_expand_vector_move_misalign): Change.
547 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
548 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
549 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
550 of movupd/movdqu for SSE and AVX.
551 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
552 (ix86_tune_adjust_cost): Add code for bdver1.
553 (standard_sse_constant_opcode): Add check for
554 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
555 of packed double xor for SSE and AVX.
557 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
559 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
562 2010-05-14 Tristan Gingold <gingold@adacore.com>
564 * toplev.c (default_debug_hooks): Remove this variable.
565 (process_options): Remove assignments to default_debug_hooks.
567 2010-05-14 Martin Jambor <mjambor@suse.cz>
569 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
570 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
571 * langhooks.h (struct lang_hooks_for_decls): Removed field
573 * tree.c (free_lang_data): Remove assignment to
574 lang_hooks.fold_obj_type_ref.
575 * tree.def (OBJ_TYPE_REF): Update comment.
577 2010-05-14 Richard Guenther <rguenther@suse.de>
579 PR tree-optimization/44124
580 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
582 2010-05-14 Alan Modra <amodra@gmail.com>
585 * config/rs6000/rs6000.c (struct machine_function): Reorder
586 fields for better packing. Add lr_save_state.
587 (rs6000_ra_ever_killed): Return lr_save_state if set.
588 (rs6000_emit_eh_reg_restore): Set lr_save_state.
590 2010-05-13 Jan Hubicka <jh@suse.cz>
592 * varpool.c (decide_is_variable_needed): Drop code checking
593 TREE_SYMBOL_REFERENCED.
595 2010-05-13 Jan Hubicka <jh@suse.cz>
597 * final.c (output_addr_const): Do not call mark_decl_referenced.
598 * cgraphunit.c (process_function_and_variable_attributes): Use
599 mark_needed_node dirrectly.
600 (assemble_thunk): Do not call mark_decl_referenced.
602 2010-05-13 Anatoly Sokolov <aesok@post.ru>
604 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
606 2010-05-13 Jeff Law <law@redhat.com>
608 * ira-conflicts.c (print_allocno_conflicts): New function broken out
610 (print_conflicts): Call print_allocno_conflicts.
612 2010-05-13 Jakub Jelinek <jakub@redhat.com>
615 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
618 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
620 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
621 t-mingw-w64 or t-mingw-w32 for multilib configuration.
622 * config/i386/t-mingw-w32: New.
623 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
625 2010-05-13 Martin Jambor <mjambor@suse.cz>
627 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
629 * gimple-fold.c (get_base_binfo_for_type): New function.
630 (gimple_get_relevant_ref_binfo): Likewise.
631 (gimple_fold_obj_type_ref_known_binfo): Likewise.
632 (gimple_fold_obj_type_ref): Likewise.
633 (fold_gimple_call): Simplify condition for folding virtual calls
634 and call gimple_fold_obj_type_ref.
635 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
636 (gimple_fold_obj_type_ref_known_binfo): Likewise.
638 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
640 * config/rs6000/rs6000-protos.h
641 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
642 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
643 (rs6000_debug_mode_dependent_address)
644 (rs6000_mode_dependent_address_ptr): Likewise.
646 2010-05-13 Jakub Jelinek <jakub@redhat.com>
649 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
651 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
652 * tree-sra.c (create_access_replacement): Call unshare_expr before
653 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
654 * dwarf2out.c: Include tree-flow.h.
655 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
656 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
657 Handle DW_OP_bit_piece.
658 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
659 construct_piece_list, adjust_piece_list): New functions.
660 (add_var_loc_to_decl): Handle SRA optimized variables.
661 Adjust for var_loc_note to loc field renaming.
662 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
663 in VAR_LOCATION note.
664 (new_loc_descr_op_bit_piece): New function.
665 (dw_sra_loc_expr): New function.
666 (dw_loc_list): Use it. Don't handle the last range after the
667 loop, handle it inside of the loop. Adjust for var_loc_note
668 to loc field renaming.
669 (add_location_or_const_value_attribute): Only special case
670 single entry loc lists if loc is NOTE_P. Adjust for
671 var_loc_note to loc field renaming.
672 (dwarf2out_var_location): Don't set newloc->var_loc_note
673 and newloc->next here.
675 2010-05-12 Jan Hubicka <jh@suse.cz>
677 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
679 * cgraph.h (cgraph_only_called_directly_p,
680 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
681 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
682 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
684 * ipa.c (cgraph_remove_unreachable_nodes): Use
685 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
687 * tree-inline.c (copy_bb): Check address_taken flag.
688 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
689 externally_visible flag.
691 2010-05-12 Jason Merrill <jason@redhat.com>
695 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
696 * sdbout.c (plain_type_1): Likewise.
697 * dwarf2out.c (is_base_type): Likewise.
698 (gen_type_die_with_usage): Likewise. Generate
699 DW_TAG_unspecified_type for any LANG_TYPE.
701 2010-05-12 Jan Hubicka <jh@suse.cz>
703 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
705 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
706 (cgraph_clone_edge): Update.
707 (cgraph_node_remove_callees): Remove indirect calls too.
708 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
709 (cgraph_create_indirect_edge): Update prototype.
710 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
711 is_proper_for_analysis.
712 (add_new_function, visited_nodes, function_insertion_hook_holder,
713 get_local_reference_vars_info, mark_address_taken, mark_address,
714 mark_load, mark_store, check_asm_memory_clobber, check_call,
715 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
716 (ipa_init): Do not initialize visited_nodes;
717 function_insertion_hook_holder.
718 (analyze_variable): Rewrite.
719 (analyze_function): Rewrite.
720 (copy_local_bitmap): Remove.
721 (duplicate_node_dat): Do not duplicate local info.
722 (generate_summary): Simplify to only walk cgraph.
723 (write_node_summary_p, ipa_reference_write_summary,
724 ipa_reference_read_summary): Remove.
725 (propagate): Do not remove function insertion;
727 (pass_ipa_reference): NULLify summary handling fields.
728 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
729 (input_edge): Input ecf_flags.
730 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
731 (update_indirect_edges_after_inlining): Ignore edges with unknown
734 2010-05-12 Sriraman Tallam <tmsriram@google.com>
736 * implicit-zee.c: New file.
737 * tree-pass.h (pass_implicit_zee): Declare.
738 * passes.c (init_optimization_passes): Add zee pass.
739 * common.opt (fzee): New flag.
740 * timevar.def (TV_ZEE): Define.
741 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
743 * Makefile.in (implicit-zee.o): Add new build file.
745 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
746 Nathan Froyd <froydnj@codesourcery.com>
748 * c-common.c (sync_resolve_params): Remove write-only variable.
750 2010-05-12 Anatoly Sokolov <aesok@post.ru>
752 * target.h (struct gcc_target): Add mode_dependent_address_p field.
753 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
754 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
755 * targhooks.c (default_mode_dependent_address_p): New function.
756 * targhooks.h (default_mode_dependent_address_p): Declare function.
757 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
758 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
759 * recog.c: (mode_dependent_address_p): Call mode_dependent_address_p
760 target hook. Change return type to bool.
761 * recog.h: (mode_dependent_address_p): Change return type to bool.
763 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
764 Nathan Froyd <froydnj@codesourcery.com>
766 * tree-mudflap.c (build_function_type_0, build_function_type_1,
767 build_function_type_2, build_function_type_3): Remove.
768 (mudflap_init): Use build_function_type_list.
770 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
771 Nathan Froyd <froydnj@codesourcery.com>
773 * coverage.c (build_fn_info_value): Call build_constructor instead of
774 build_constructor_from_list.
775 (build_ctr_info_value): Likewise.
776 (build_gcov_info): Likewise.
778 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
780 * tree.c (build_constructor): Compute TREE_CONSTANT for the
781 resultant constructor.
782 (build_constructor_single): Don't set TREE_CONSTANT.
783 (build_constructor_from_list): Don't compute TREE_CONSTANT.
785 2010-05-12 Jan Hubicka <jh@suse.cz>
787 * cgraph.h (struct varpool_node): Add aux.
788 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
789 * varpool.c (varpool_remove_node): Do not remove initializer.
790 (varpool_reset_queue): Export.
791 (varpool_finalize_decl): Volatile vars are forced to be output.
792 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
794 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
795 process_references, varpool_can_remove_if_no_refs): New functions.
796 (cgraph_remove_unreachable_nodes): Handle variables too.
798 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
801 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
803 2010-05-12 Jakub Jelinek <jakub@redhat.com>
806 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
807 change value of ORT_TASK.
808 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
809 (omp_notice_threadprivate_variable): New function.
810 (omp_notice_variable): Call it for threadprivate variables.
811 If enclosing ctx is a task, print enclosing task rather than
812 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
813 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
814 if task has untied clause.
817 * dwarf2out.c (base_type_die): Don't add name attribute here.
818 (modified_type_die): Instead of sizetype use
819 its underlying original type. If a DW_TAG_base_type doesn't
820 have name added, add __unknown__.
821 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
822 always call force_type_die instead.
824 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
826 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
827 for __stack_chk_guard.
829 2010-05-11 Jakub Jelinek <jakub@redhat.com>
831 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
832 don't call start_source_file debug hook here...
833 (finish_options): ... but here, after outputting predefined and
834 command line defines and undefs.
837 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
839 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
840 optimizing away empty bb with no successors, move over its
841 footer chain to fallthru predecessor.
842 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
843 (rtl_split_edge): For asm goto call patch_jump_insn even if
844 splitting fallthru edge.
847 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
848 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
849 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
850 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
854 * c-parser.c (c_parser_expression): Mark LHS of a comma
855 expression as read if it is a decl, handled component or
856 COMPOUND_EXPR with that on the RHS.
857 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
858 if it is a decl or handled component.
860 2010-05-11 Jan Hubicka <jh@suse.cz>
862 * lto-symtab.c (lto_symtab_free): New function.
863 * lto-streamer.h (lto_symtab_free): Declare.
865 2010-05-11 Jan Hubicka <jh@suse.cz>
867 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
868 that if function is needed it is reachable.
869 (lto_output_node): See if it the function is reachable or referenced.
870 (output_cgraph): Update call of lto_output_node.
871 * lto-streamer.h (reachable_from_other_partition_p): Declare.
873 2010-05-11 Jan Hubicka <jh@suse.cz>
875 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
878 2010-05-11 Jan Hubicka <jh@suse.cz>
880 PR tree-optimize/44063
881 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
883 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
885 (estimate_function_body_sizes): Compute sizes even when disregarding.
887 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
889 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
891 2010-05-11 Jan Hubicka <jh@suse.cz>
893 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
896 2010-05-11 Jan Hubicka <jh@suse.cz>
898 * matrix-reorg.c (matrix_reorg): Rebuild edges.
900 2010-05-11 Jan Hubicka <jh@suse.cz>
902 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
903 lto_streamer_cache_delete): Put nodes into heap.
904 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
907 2010-05-11 Jan Hubicka <jh@suse.cz>
909 * cgraphbuild.c (cgraph_rebuild_references): New.
910 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
912 * cgraph.h (cgraph_rebuild_references): Declare.
913 * tree-inline.c (tree_function_versioning): Use it.
914 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
916 2010-05-11 Jan Hubicka <jh@suse.cz>
918 * cgraph.c: Include ipa-utils.h
919 (cgraph_create_virtual_clone): Update references.
920 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
922 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
924 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
925 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
928 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
930 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
932 2010-05-11 Jakub Jelinek <jakub@redhat.com>
934 * gcc.c (execute): For -### don't quote arguments that
935 contain just alphanumerics and _/-. characters.
936 * doc/invoke.texi: Document that change for -###.
939 * df-problems.c (struct dead_debug): Add to_rescan field.
940 (dead_debug_init): Clear to_rescan field.
941 (dead_debug_finish): Rescan all debug insns in to_rescan
942 bitmap and free the bitmap.
943 (dead_debug_insert_before): Instead of rescanning debug insns
944 immediately queue their rescanning until dead_debug_finish.
945 (df_note_bb_compute): After dead_debug_add do continue instead
948 2010-05-10 Jakub Jelinek <jakub@redhat.com>
951 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
952 clear also INSN_REG_USE_LIST.
954 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
956 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
958 2010-05-10 Jan Hubicka <jh@suse.cz>
960 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
963 2010-05-10 Jan Hubicka <jh@suse.cz>
965 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
967 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
968 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
969 (lto_streamer_cache_create): Init alloc pool.
970 (lto_streamer_cache_delete): Free alloc pool.
971 * lto-streamer.h: Include alloc pool.
972 (lto_streamer_cache_d): Use alloc pool.
973 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
975 2010-05-10 Jan Hubicka <jh@suse.cz>
977 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
978 * cgraphbuild.c: Include except.h
979 (record_type_list, record_eh_tables): New function.
980 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
982 2010-05-10 Jan Hubicka <jh@suse.cz>
984 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
985 __frame_dummy_init_array_entry, force_to_data): Attribute as used
988 2010-05-10 Michael Matz <matz@suse.de>
990 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
991 (can_reassociate_p): Use FLOAT_TYPE_P.
992 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
993 (vect_force_simple_reduction): ... this.
994 * tree-parloops.c (gather_scalar_reductions): Use
995 vect_force_simple_reduction.
996 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
997 vect_is_simple_reduction, add modify argument, if true rewrite
999 (vect_is_simple_reduction, vect_force_simple_reduction): New
1001 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
1003 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
1004 Vladimir Makarov <vmakarov@redhat.com>
1006 PR rtl-optimization/44012
1007 * ira-build.c (remove_unnecessary_allocnos): Nullify
1008 regno_allocno_map of the removed allocno.
1010 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1012 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
1014 * configure: Regenerate.
1016 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1018 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
1020 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
1021 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
1023 * configure: Regenerate.
1025 2010-05-10 Richard Guenther <rguenther@suse.de>
1027 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
1028 marked if the entry identifier is marked.
1030 2010-05-10 Richard Guenther <rguenther@suse.de>
1032 * c-common.c (struct c_common_attributes): Add fnspec attribute.
1033 (handle_fnspec_attribute): New function.
1034 * gimple.h (gimple_call_return_flags): Declare.
1035 (gimple_call_arg_flags): Likewise.
1036 * gimple.c (gimple_call_arg_flags): New function.
1037 (gimple_call_return_flags): Likewise.
1038 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
1040 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
1042 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
1043 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
1045 (make_heapvar_for): ... this new function.
1046 (handle_rhs_call): Handle fnspec attribute argument specifiers.
1047 (handle_lhs_call): Likewise.
1048 (find_func_aliases): Adjust.
1050 2010-05-10 Richard Guenther <rguenther@suse.de>
1052 PR tree-optimization/44050
1053 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
1055 2010-05-10 Wei Guozhi <carrot@google.com>
1058 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
1060 2010-05-09 Joseph Myers <joseph@codesourcery.com>
1063 * c-typeck.c (lookup_field): Take a type directly. Update
1065 (build_component_ref): Update call to lookup_field.
1066 (set_init_label): Use lookup_field to find initialized field.
1067 Handle returned list of fields like a sequence of designators.
1069 2010-05-09 Richard Guenther <rguenther@suse.de>
1072 * fold-const.c (tree_single_nonzero_warnv_p): Properly
1073 handle &FUNCTION_DECL.
1075 2010-05-09 Joseph Myers <joseph@codesourcery.com>
1078 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
1079 structures and unions recursively.
1080 (detect_field_duplicates): Move duplicate detection with a hash to
1081 detect_field_duplicates_hash. Always use a hash if anonymous
1082 structures or unions are present.
1083 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
1086 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
1089 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
1090 detect Atom, Core 2 and Core i7.
1092 2010-05-09 Richard Guenther <rguenther@suse.de>
1094 * gcc.c (store_arg): Handle temporary file deletion for
1097 2010-05-09 Richard Guenther <rguenther@suse.de>
1100 * ipa-inline.c (estimate_function_body_sizes): Return after
1101 disregarding inline limits.
1103 2010-05-09 Richard Guenther <rguenther@suse.de>
1105 * gcc.c (store_arg): Revert last change.
1107 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
1110 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
1111 (optimize_ops_list): Call it.
1113 2010-05-08 Richard Guenther <rguenther@suse.de>
1115 PR tree-optimization/44030
1116 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
1117 NECESSARY flag if we propagate from a inserted expression.
1119 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
1121 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
1122 domain types as equal if they are both PLACEHOLDER_EXPRs.
1124 2010-05-08 Richard Guenther <rguenther@suse.de>
1126 * lto-wrapper.c (run_gcc): Remove linker output from
1127 command line for LTRANS invocation.
1129 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
1131 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1132 lto-macho as lto_binary_reader.
1133 * target.h (struct gcc_target): New hooks lto_start and lto_end.
1134 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
1135 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
1136 in lto_start and lto_end calls.
1137 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
1139 (scan_prog_file): Update is_elf_or_coff call.
1140 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
1142 * collect2.c (main): Fix enum comparison.
1144 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
1146 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
1147 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
1148 and TARGET_ASM_LTO_END.
1149 * darwin.c: Include obstack.h and lto-streamer.h.
1150 (lto_section_names_offset, lto_section_names_obstack,
1151 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
1153 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
1154 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
1155 to a temporary file.
1156 (darwin_asm_lto_end): New function. Restore asm_out_file.
1157 (darwin_asm_named_section): For LTO sections, replace the name with
1158 the offset of the section name in a string table, and build this
1160 (darwin_file_start): Initialize global vars for LTO support.
1161 (darwin_file_end): If output to asm_out_file was redirected, append it
1162 to the proper asm_out_file here. Add the section names section.
1164 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
1166 * c-pragma.c (pending_weak_d, pending_weak): New.
1167 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
1168 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
1169 handle_pragma_weak): Update the uses of pending_weaks.
1171 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1173 PR documentation/44016
1174 * doc/standards.texi (Standards): Link to unversioned
1175 cxx0x_status.html page.
1177 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
1180 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
1181 in addition to TREE_USED, to avoid "set but unused" warnings.
1183 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
1185 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
1186 (is_loop_prefetching_profitable): Do not insert prefetches
1187 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
1188 times the prefetch ahead distance.
1190 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
1192 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
1193 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
1194 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
1197 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
1199 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
1200 a diagnostic info when the insn-to-mem ratio is too small.
1202 2010-05-07 Richard Guenther <rguenther@suse.de>
1204 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
1206 (store_arg): Queue temp_filename for deletion instead of
1209 2010-05-07 Richard Guenther <rguenther@suse.de>
1211 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
1212 (run_gcc): Handle LTRANS phase invocation.
1213 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
1215 2010-05-07 Jakub Jelinek <jakub@redhat.com>
1217 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
1218 this is also meaningful on PARM_DECLs and RESULT_DECLs.
1220 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1222 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
1224 2010-05-07 Richard Guenther <rguenther@suse.de>
1226 PR tree-optimization/44020
1227 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
1228 code when PRE is not yet initialized.
1230 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1232 * config/mips/dbxmdebug.h: Remove.
1233 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
1235 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
1237 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
1238 with null pointer and also warn about ordered comparison of zero with
1241 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1243 * graphite-blocking.c
1244 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
1245 * graphite-clast-to-gimple.c
1246 (clast_to_gcc_expression): Same.
1247 (precision_for_value): Same.
1248 (precision_for_interval): Same.
1249 (gcc_type_for_interval): Same.
1250 (graphite_create_new_guard): Same.
1251 (compute_bounds_for_level): Same.
1252 (graphite_create_new_loop_guard): Same.
1253 * graphite-interchange.c
1254 (build_linearized_memory_access): Same.
1255 (pdr_stride_in_loop): Same.
1256 (memory_strides_in_loop_1): Same.
1257 (memory_strides_in_loop): Same.
1258 (extend_scattering): Same.
1259 (psct_scattering_dim_for_loop_depth): Same.
1260 (pbb_number_of_iterations): Same.
1262 (debug_iteration_domains): Same.
1264 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1265 (ppl_set_inhomogeneous_gmp): Same.
1266 (ppl_strip_loop): Same.
1267 (ppl_lexico_compare_linear_expressions): Same.
1268 (ppl_read_polyhedron_matrix): Same.
1269 (ppl_max_for_le_pointset): Same.
1271 (ppl_read_polyhedron_matrix): Same.
1272 (tree_int_to_gmp): Same.
1273 (gmp_cst_to_tree): Same.
1274 (ppl_set_inhomogeneous): Same.
1275 (ppl_set_inhomogeneous_tree): Same.
1276 (ppl_set_coef): Same.
1277 (ppl_set_coef_tree): Same.
1278 * graphite-sese-to-poly.c
1279 (build_pbb_scattering_polyhedrons): Same.
1280 (build_scop_scattering): Same.
1281 (scan_tree_for_params_right_scev): Same.
1282 (scan_tree_for_params): Same.
1283 (find_params_in_bb): Same.
1284 (find_scop_parameters): Same.
1285 (add_upper_bounds_from_estimated_nit): Same.
1286 (build_loop_iteration_domains): Same.
1287 (add_condition_to_domain): Same.
1288 (pdr_add_memory_accesses): Same.
1290 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1292 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
1293 CLooG's value_* macros to their respective mpz_* counterparts.
1294 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
1295 (graphite_create_new_loop_guard): Same.
1296 * graphite-interchange.c (build_linearized_memory_access): Same.
1297 (pdr_stride_in_loop): Same.
1298 (memory_strides_in_loop_1): Same.
1299 (1st_interchange_profitable_p): Same.
1300 * graphite-poly.c (extend_scattering): Same.
1301 (psct_scattering_dim_for_loop_depth): Same.
1302 (pbb_number_of_iterations): Same.
1303 (pbb_number_of_iterations_at_time): Same.
1304 * graphite-poly.h (new_1st_loop): Same.
1305 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
1306 (oppose_constraint): Same.
1307 (insert_constraint_into_matrix): Same.
1308 (ppl_set_inhomogeneous_gmp): Same.
1309 (ppl_set_coef_gmp): Same.
1310 (ppl_strip_loop): Same.
1311 (ppl_lexico_compare_linear_expressions): Same.
1312 (ppl_max_for_le_pointset): Same.
1313 (ppl_min_for_le_pointset): Same.
1314 (ppl_build_realtion): Same.
1315 * graphite-ppl.h (gmp_cst_to_tree): Same.
1316 (ppl_set_inhomogeneous): Same.
1317 (ppl_set_inhomogeneous_tree): Same.
1318 (ppl_set_coef): Same.
1319 (ppl_set_coef_tree): Same.
1320 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
1321 (build_scop_scattering): Same.
1322 (add_value_to_dim): Same.
1323 (scan_tree_for_params_right_scev): Same.
1324 (scan_tree_for_params_int): Same.
1325 (scan_tree_for_params): Same.
1326 (find_params_in_bb): Same.
1327 (find_scop_parameters): Same.
1328 (add_upper_bounds_from_estimated_nit): Same.
1329 (build_loop_iteration_domains): Same.
1330 (create_linear_expr_from_tree): Same.
1331 (add_condition_to_domain): Same.
1332 (pdr_add_memory_accesses): Same.
1334 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
1335 Jason Merrill <jason@redhat.com>
1337 * c-common.c (c_common_reswords): Add nullptr.
1338 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
1339 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
1340 (gen_type_die_with_usage): Likewise.
1341 * dbxout.c (dbxout_type): Likewise.
1342 * sdbout.c (plain_type_1): Likewise.
1344 2010-05-06 Jason Merrill <jason@redhat.com>
1346 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
1347 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
1349 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
1351 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
1352 stripping WITH_SIZE_EXPR.
1353 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
1356 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1358 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
1359 list of obsolete configurations.
1360 Disabled check for obsolete configurations.
1361 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
1362 Removed support for previous versions.
1363 * config/mips/iris.h: Removed.
1364 * config/mips/iris5.h: Removed.
1365 * config/mips/iris6.h: Merged old iris.h contents.
1366 (TARGET_IRIX): Removed.
1367 (DRIVER_SELF_SPECS): Removed mabi=32.
1368 (IDENT_ASM_OP): Removed undef.
1369 (STARTFILE_SPEC): Removed mabi=32.
1370 (ENDFILE_SPEC): Likewise.
1371 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
1372 (MACHINE_TYPE): Update for IRIX 6.5.
1373 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
1374 TARGET_IRIX by TARGET_IRIX6.
1375 (mips_file_start): Likewise.
1376 (mips_output_external): Remove IRIX 5/6 O32 support.
1377 (mips_output_function_prologue): Likewise.
1378 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
1380 (TARGET_CPU_CPP_BUILTINS): Likewise.
1381 (TARGET_IRIX): Removed.
1382 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
1383 (MULTILIB_DIRNAMES): Removed 32.
1384 (MULTILIB_OSDIRNAMES): Removed ../lib.
1385 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
1386 (Specific, mips-sgi-irix5): Document removal.
1387 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
1388 Remove references to older IRIX 6 releases and the O32 ABI.
1390 2010-05-06 Jakub Jelinek <jakub@redhat.com>
1393 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
1394 instead of DF_REF_REAL_REG.
1396 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
1399 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
1400 handling to still return true for x64 targets.
1402 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
1404 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
1406 2010-05-06 Jan Hubicka <jh@suse.cz>
1408 PR tree-optimization/43791
1409 * ipa-inline.c (update_caller_keys): Remove bogus
1410 disregard_inline_limits check.
1412 2010-05-06 Michael Matz <matz@suse.de>
1414 PR tree-optimization/43984
1415 * tree-ssa-pre.c (inserted_phi_names): Remove.
1416 (inserted_exprs): Change to bitmap.
1417 (create_expression_by_pieces): Set bits, don't append to vector.
1418 (insert_into_preds_of_block): Don't handle inserted_phi_names.
1419 (eliminate): Don't look at inserted_phi_names, remove deleted
1420 insns from inserted_exprs.
1421 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
1422 (init_pre, fini_pre): Allocate and free bitmaps.
1423 (execute_pre): Insert insns on edges before elimination.
1425 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
1427 * tree.c (initializer_zerop): Handle STRING_CST.
1429 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
1432 * doc/invoke.texi (Wimplicit): Document as C only.
1433 * opts.c (common_handle_option): Add argument kind.
1434 (handle_option): Rename as read_cmdline_option. Factor out code to...
1435 (handle_option): ... here. New.
1436 (handle_options): Rename as read_cmdline_options.
1437 (decode_options): Update call.
1438 (set_option): Use option index instead of option pointer. Classify
1439 diagnostics correctly.
1440 (enable_warning_as_error): Call handle_option.
1441 * opts.h (set_option): Update declaration.
1442 (handle_option): Declare.
1443 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
1444 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
1445 * c-opts.c (set_Wimplicit): Delete.
1446 (c_family_lang_mask): New static constant.
1447 (c_common_handle_option): Add argument kind. Use handle_option
1448 instead of set_Wimplicit.
1449 (c_common_post_options): warn_implicit and warn_implicit_int
1450 are disabled by default.
1451 * c-common.c (warn_implicit): Do not define here.
1452 * c-common.h (warn_implicit): Do not declare here.
1453 (c_common_handle_option): Update declaration.
1454 * lto-opts.c (lto_reissue_options): Update call to set_option.
1456 2010-05-06 Richard Guenther <rguenther@suse.de>
1458 PR tree-optimization/43571
1459 * domwalk.c (walk_dominator_tree): Walk the dominator
1460 sons in more optimal order.
1462 2010-05-06 Richard Guenther <rguenther@suse.de>
1464 PR tree-optimization/43934
1465 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
1466 (stmt_cost): Likewise.
1467 (extract_true_false_args_from_phi): New helper.
1468 (determine_max_movement): For PHI nodes verify we can hoist them
1469 and compute their cost.
1470 (determine_invariantness_stmt): Handle PHI nodes.
1471 (move_computations_stmt): Likewise. Hoist PHI nodes in
1472 if-converted form using COND_EXPRs.
1473 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
1474 (tree_ssa_lim): Likewise.
1475 * tree-flow.h (tree_ssa_lim): Adjust prototype.
1476 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
1478 2010-05-06 Richard Guenther <rguenther@suse.de>
1480 PR tree-optimization/43987
1481 * tree-ssa-structalias.c (could_have_pointers): For possibly
1482 address-taken variables force pointers to be recorded.
1483 (create_variable_info_for_1): Likewise.
1484 (push_fields_onto_fieldstack): Pass in wheter all fields
1486 (find_func_aliases): Query types instead of vars whether
1487 they contain pointers where appropriate.
1489 2010-05-06 Jan Hubicka <jh@suse.cz>
1491 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
1492 (record_reference, mark_address, mark_load, mark_store): Record
1494 (record_references_in_initializer): Update call of record_references.
1495 (rebuild_cgraph_edges): Remove all references before rebuiding.
1496 * cgraph.c (cgraph_create_node): Clear ref list.
1497 (cgraph_remove_node): Remove references.
1498 (dump_cgraph_node): Dump references.
1499 (cgraph_clone_node): Clone references.
1500 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
1501 (struct cgraph_node, varpool_node): Add ref_lst.
1502 * ipa-ref.c: New file.
1503 * ipa-ref.h: New file.
1504 * ipa-ref-inline.h: New file.
1505 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
1506 (referenced_from_other_partition_p): New function.
1507 (lto_output_varpool_node): Take set arugment; call
1508 referenced_from_other_partition.
1509 (lto_output_ref): New.
1510 (add_references): New.
1512 (output_cgraph): Compute boundary based on references; output refs.
1513 (output_varpool): Accept cgraph_node_set argument.
1516 (input_cgraph): Call input_refs.
1517 * lto-section-in.c (lto_section_name): Add refs.
1518 * Makefile.in: (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
1519 (ipa-ref.o): New file.
1520 * varpool.c (varpool_node): Clear ipa ref list.
1521 (varpool_remove_node): Remove references.
1522 (dump_varpool_node): Dump references.
1523 (varpool_assemble_decl): Only compile finalized ones.
1524 (varpool_extra_name_alias): Initialize ref list.
1525 * lto-streamer.c (lto-get_section_name): Add .refs section.
1526 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
1527 (referenced_from_other_partition_p): Declared.
1529 2010-05-06 Ira Rosen <irar@il.ibm.com>
1531 PR tree-optimization/43901
1532 * tree-vect-stmts.c (vectorizable_call): Assert that vector
1533 type is not NULL if it's transformation phase, and return
1534 FALSE if it's analysis.
1535 (vectorizable_conversion, vectorizable_operation,
1536 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
1538 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
1540 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
1542 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
1544 * config/mips/mips-protos.h
1545 (mips_small_register_classes_for_mode_p): Delete prototype.
1547 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
1549 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
1550 * config/arm/arm.c (multiple_operation_profitable_p,
1551 compute_offset_order): New static functions.
1552 (load_multiple_sequence, store_multiple_sequence): Use them.
1553 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
1554 memory offsets, not register numbers.
1555 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
1557 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
1559 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
1560 (get_pending_sizes, put_pending_size, put_pending_sizes):
1561 Update the uses of pending_sizes.
1562 * c-decl.c (store_parm_decls): Likewise.
1563 * c-tree.h (struct c_arg_info): Likewise.
1564 * tree.h: Update the prototype for get_pending_sizes and
1567 2010-05-05 Jason Merrill <jason@redhat.com>
1570 * c-common.c (handle_aligned_attribute): Respect
1571 ATTR_FLAG_TYPE_IN_PLACE.
1574 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
1575 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
1576 (TARGET_INITIALIZER): Use it.
1577 * c-common.c (attribute_takes_identifier_p): Call it.
1578 * c-common.h: Update prototype.
1579 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
1580 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
1582 2010-05-05 Jakub Jelinek <jakub@redhat.com>
1585 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
1586 DW_ID_down_case for Fortran compilation units.
1588 2010-05-05 Jan Hubicka <jh@suse.cz>
1590 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
1593 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
1595 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
1596 a variable-sized RESULT_DECL.
1598 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
1600 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
1602 2010-05-05 Jason Merrill <jason@redhat.com>
1605 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
1607 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
1609 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
1610 Jakub Jelinek <jakub@redhat.com>
1613 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
1614 (dead_debug_init, dead_debug_finish): New functions.
1615 (dead_debug_add, dead_debug_insert_before): Likewise.
1616 (df_note_bb_compute): Initialize a dead_debug object, add dead
1617 debug uses to it, insert debug bind insns before death insns,
1618 reset debug insns that refer to pending uses at the end.
1619 * rtl.h (make_debug_expr_from_rtl): New prototype.
1620 * varasm.c (make_debug_expr_from_rtl): New function.
1622 2010-05-05 Jan Hubicka <jh@suse.cz>
1624 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
1625 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
1626 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
1627 lto_varpool_encoder_deref, lto_varpool_encoder_size,
1628 lto_varpool_encoder_encode_initializer_p,
1629 lto_set_varpool_encoder_encode_initializer): New functions.
1630 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
1631 call output_varpool.
1632 (input_varpool_node): Do not always set analyzed.
1633 (input_cgraph_1): Return vector of cgraph nodes.
1634 (input_varpool_1): Return vector of varpools.
1635 (input_cgraph): Free the vectors.
1636 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
1637 output only initializers needed.
1638 (lto_output): Only call output_cgraph.
1639 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
1640 * lto-section-out.c (lto_new_out_decl_state): Initialize
1641 state->varpool_node_encoder.
1642 * lto-streamer.h (lto_varpool_encoder_d): New.
1643 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
1644 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
1645 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
1646 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
1647 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
1649 (output_varpool, input_varpool): Remove declarations.
1651 2010-05-05 Jan Hubicka <jh@suse.cz>
1653 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
1654 with body can prevail.
1656 2010-05-05 Jan Hubicka <jh@suse.cz>
1658 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
1661 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1663 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
1665 * gengtype.h (erro_at_line): Constify pos argument.
1667 * gengtype.c: Include hashtab.h.
1668 (enum gc_used): Document GC_MAYBE_POINTED_TO.
1669 (error_at_line): Constify pos argument.
1670 (do_typedef): Initialize p->opt field.
1671 (get_file_gtfilename): Fix comment typo.
1672 (struct walk_type_data): Constify line field.
1673 (get_output_file_for_structure): New function.
1674 (write_local_func_for_structure): Constify orig_s argument.
1675 Use get_output_file_for_structure.
1676 (write_func_for_structure): Use get_output_file_for_structure.
1677 (INDENT): New define.
1678 (dump_pair, dump_type, dump_type_list, dump_typekind)
1679 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
1680 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
1682 (seen_types): New variable.
1683 (main): New variable do_dump. Process "-d" command line option.
1684 Call dump_everything if dump requested.
1686 2010-05-05 Jakub Jelinek <jakub@redhat.com>
1688 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
1689 in a temporary instead of invoking the macro multiple times.
1690 (track_expr_p): Likewise.
1692 2010-05-04 Neil Vachharajani <nvachhar@google.com>
1694 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
1696 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
1697 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
1698 conditions for printing notes.
1699 * common.opt (-Wcoverage-mismatch): Allow negative, default to
1700 true, update documentation.
1701 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
1703 2010-05-04 Jakub Jelinek <jakub@redhat.com>
1706 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
1709 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
1712 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
1713 (*sse_prologue_save_insn1): Likewise.
1714 (SSE prologue save splitter): Likewise.
1716 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
1718 * tree.c (free_lang_data_in_one_sizepos): New inline function.
1719 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
1720 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
1721 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
1722 all decls. Call it on DECL_FIELD_OFFSET of fields.
1723 (find_decls_types_r): Follow DECL_VALUE_EXPR.
1724 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
1726 2010-05-04 Martin Jambor <mjambor@suse.cz>
1728 * tree-sra.c (build_access_from_expr_1): The first parameter type
1729 changed to simple tree.
1730 (build_access_from_expr): Likewise, gsi parameter was eliminated.
1731 (scan_assign_result): Renamed to assignment_mod_result, enum elements
1733 (build_accesses_from_assign): Removed all parameters except for a
1734 simple gimple statement. Now returns a simple bool.
1735 (scan_function): All non-analysis parts moved to separate functions
1736 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
1737 parameters and updated both callers.
1738 (sra_modify_expr): Removed parameter data.
1739 (sra_modify_function_body): New function.
1740 (perform_intra_sra): Call sra_modify_function_body to modify the
1742 (replace_removed_params_ssa_names): Parameter data changed into
1744 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
1745 changed the parameter dont_convert to convert with the opposite
1747 (sra_ipa_modify_assign): Parameter data changed into adjustments
1748 vector, return value changed to bool.
1749 (ipa_sra_modify_function_body): New function.
1750 (sra_ipa_reset_debug_stmts): Updated a comment.
1751 (modify_function): Use ipa_sra_modify_function_body to modify function
1754 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
1757 * alias.c (true_dependence): Handle the same VALUE in x and mem.
1758 (canon_true_dependence): Likewise.
1759 (write_dependence_p): Likewise.
1761 2010-05-04 Jan Hubicka <jh@suse.cz>
1763 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
1764 * cgraphbuild.c: Include ipa-utils.h
1765 (record_reference_ctx): New struct.
1766 (record_reference): Simplify to work on initializers; not statements.
1767 (mark_address, mark_load, mark_store): New.
1768 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
1770 (record_references_in_initializer): Update use of record_reference.
1771 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
1774 2010-05-04 Jan Hubicka <jh@suse.cz>
1776 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
1777 node will be removed anyway.
1778 (lto_varpool_replace_node): Allow also unanalyzed nodes;
1779 relink aliases of node into prevailing node.
1780 * varpool.c (varpool_remove_node): Remove aliases properly;
1781 when removing node, remove all its aliases too; remove DECL_INITIAL
1782 of removed node; ggc_free the varpool node.
1784 2010-05-04 Richard Guenther <rguenther@suse.de>
1786 PR tree-optimization/43879
1787 * tree-ssa-structalias.c (alias_get_name): Use
1788 DECL_ASSEMBLER_NAME if available.
1789 (create_function_info_for): Return the varinfo node.
1790 (ipa_pta_execute): Associate same-body aliases and extra names
1791 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
1793 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
1795 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
1797 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
1800 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
1801 only if HONOR_REG_ALLOC_ORDER is not defined.
1803 2010-05-04 Richard Guenther <rguenther@suse.de>
1805 PR tree-optimization/43949
1806 * tree-vrp.c (extract_range_from_binary_expr): Only handle
1809 2010-04-26 Jason Merrill <jason@redhat.com>
1811 * c.opt (-fstrict-enums): New.
1812 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
1814 2010-05-03 David Ung <davidu@mips.com>
1815 James E. Wilson <wilson@codesourcery.com>
1817 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
1818 emit the trap instruction before the divide for TUNE_74K.
1820 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
1822 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
1823 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
1824 based on the above, for new target hook.
1826 * hooks.c (hook_bool_mode_true): New generic hook.
1827 * hooks.h (hook_bool_mode_true): Add prototype.
1829 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
1831 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
1832 target hook, set to hook_bool_mode_false.
1833 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
1834 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
1835 with targetm.small_register_classes_for_mode_p.
1836 (find_reusable_reload): Likewise.
1837 (combine_reloads): Likewise.
1838 * reload1.c (reload_as_needed): Likewise.
1839 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
1840 * ifcvt.c (noce_process_if_block, check_cond_move_block,
1841 dead_or_predicable): Likewise.
1842 * regmove.c (optimize_reg_copy_1): Likewise.
1843 * calls.c (prepare_call_address): Likewise.
1844 (precompute_register_parameters): Likewise.
1846 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
1848 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
1849 implementation of the hook that considers all register classes
1850 small except for SH64.
1851 (sh_override_options): Use the new hook.
1852 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
1855 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
1857 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
1858 implementation of the hook that considers all register classes
1860 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
1863 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
1865 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
1866 implementation of the hook that considers all register classes
1868 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
1871 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
1873 * config/m32c/m32c.h: Likewise.
1874 * config/pdp11/pdp11.h: Likewise.
1875 * config/avr/avr.h: Likewise.
1876 * config/xtensa/xtensa.h: Likewise.
1877 * config/m68hc11/m68hc11.h: Likewise.
1878 * config/mn10300/mn10300.h: Likewise.
1879 * config/mcore/mcore.h: Likewise.
1880 * config/h8300/h8300.h: Likewise.
1881 * config/bfin/bfin.h: Likewise.
1883 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
1884 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
1886 2010-05-03 Anatoly Sokolov <aesok@post.ru>
1888 * double-int.h (tree_to_double_int): Remove macro.
1889 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
1890 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
1891 (tree_to_double_int): New function.
1892 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
1894 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
1896 2010-05-03 Richard Guenther <rguenther@suse.de>
1898 PR tree-optimization/43971
1899 * tree-ssa-structalias.c (get_constraint_for_1): Fix
1900 constraints in the !flag_delete_null_pointer_checks case.
1902 2010-05-03 Jakub Jelinek <jakub@redhat.com>
1905 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
1906 result mode matches original rtl mode.
1908 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
1911 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
1913 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
1915 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
1916 when processing flag options.
1918 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
1920 * gcov-iov.c (main): Change format string placeholder
1921 from %#08x to 0x%08x.
1922 * genchecksum.c (dosum): Change format string placeholder
1923 from %#02x to 0x%02x.
1925 2010-05-02 Richard Guenther <rguenther@suse.de>
1927 PR tree-optimization/43879
1928 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
1930 2010-05-02 Bruno Haible <bruno@clisp.org>
1932 * doc/extend.texi (Function Attributes): Fix a typo.
1934 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
1937 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
1938 placeholder from 0x%x to %#x.
1939 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
1940 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
1941 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
1942 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
1943 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
1944 * config/i386/i386.c (ix86_target_string): Ditto.
1945 * config/i386/i386.c (output_pic_addr_const): Ditto.
1946 (print_operand): Ditto.
1948 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
1950 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
1951 placeholder from 0x%x to %#x.
1952 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
1953 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
1954 (ASM_OUTPUT_DEBUG_DATA): Ditto.
1955 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
1956 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
1957 * optc-gen.awk: Ditto.
1958 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
1959 (HOST_WIDE_INT_PRINT_HEX): Ditto.
1960 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
1961 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
1963 2010-05-01 Anatoly Sokolov <aesok@post.ru>
1965 * target.h (struct calls): Add function_value_regno_p field.
1966 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
1967 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
1968 * targhooks.c (default_function_value_regno_p): New function.
1969 * targhooks.h (default_function_value_regno_p): Declare function.
1970 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
1971 * builtins.c. (apply_result_size): (Ditto.).
1972 * combine.c. (likely_spilled_retval_p): (Ditto.).
1973 * mode-switching.c. Include 'target.h'.
1974 (create_pre_exit): Use function_value_regno_p hook.
1975 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
1976 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
1977 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
1979 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
1980 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
1981 (ix86_function_value_regno_p): Declare as static, change argument
1982 type to const unsigned int.
1983 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
1985 2010-05-01 Richard Guenther <rguenther@suse.de>
1987 PR tree-optimization/43949
1988 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
1990 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
1992 2010-05-01 Anatoly Sokolov <aesok@post.ru>
1994 * rtl.h (CONST_DOUBLE_P): Define.
1995 (rtx_to_double_int): Declare.
1996 * emit-rtl.c (rtx_to_double_int): New function.
1997 * dwarf2out.c (insert_double): New function.
1998 (loc_descriptor, add_const_value_attribute): Clean up, use
1999 rtx_to_double_int and insert_double functions.
2001 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
2003 * doc/extend.texi (Inline): Add missing return keyword to examples.
2004 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
2007 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
2009 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
2010 the variable part of the offset as well. Use highest_pow2_factor for
2011 all alignment checks.
2013 2010-04-30 Richard Guenther <rguenther@suse.de>
2015 PR tree-optimization/43879
2016 * tree-ssa-structalias.c (type_could_have_pointers): Functions
2019 2010-04-30 Jan Hubicka <jh@suse.cz>
2021 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
2023 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
2025 2010-04-30 Jan Hubicka <jh@suse.cz>
2027 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
2029 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
2030 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
2031 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
2032 cgraph_node_set_needs_ltrans_p): Remove.
2034 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
2036 * sdbout.c: Include vec.h, do not include varray.h.
2037 (deferred_global_decls, sdbout_global_decl,
2038 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
2039 * toplev.c: Do not include varray.h.
2040 (dump_memory_report): Do not dump VARRAY statistics.
2041 * gengtype.c (open_base_file): Ignore varray.h.
2042 * Makefile.in: Update for abovementioned changes.
2043 Remove all traces of varray.c and varray.h.
2044 * varray.c: Remove file.
2045 * varray.h: Remove file.
2047 2010-04-30 Jan Hubicka <jh@suse.cz>
2049 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
2052 2010-04-30 Jan Hubicka <jh@suse.cz>
2054 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
2057 2010-04-30 Richard Guenther <rguenther@suse.de>
2059 * tree-ssa-structalias.c (get_constraint_for_1): Generate
2060 constraints for CONSTRUCTOR.
2062 2010-04-30 Richard Guenther <rguenther@suse.de>
2065 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
2066 first after all lowering passes.
2068 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
2070 * toplev.c: Include varray.h for statistics dumping.
2071 * tree.h: Do not declare varray_head_tag.
2072 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
2073 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
2074 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
2075 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
2076 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
2077 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
2078 c-common.c, c-common.h, reg-stack.c, basic-block.h,
2079 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
2081 * Makefile.in: Update for abovementioned changes.
2083 2010-04-30 Jakub Jelinek <jakub@redhat.com>
2086 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
2088 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
2090 * config/picochip/picochip.c (picochip_legitimize_address): Define.
2091 Use this function to do machine-specific conversion.
2092 (picochip_legitimize_reload_address): Likewise.
2093 (picochip_legitimate_address_p): Check valid base register only if
2095 (picochip_check_conditional_copy): Check for modw only if opnd is
2097 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
2098 to call the function in c.
2099 * config/picochip/picochip-protos.h
2100 (picochip_legitimize_reload_address): Define.
2101 * config/picochip/picochip.md (supported_compare1): Define.
2103 2010-04-30 Jan Hubicka <jh@suse.cz>
2105 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
2106 (cgraph_global_info): Remove inlined.
2107 (LTO_cgraph_tag_names): Remove.
2108 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
2109 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
2110 simplify cgraph tags and document.
2111 (lto_output_node): Use only LTO_cgraph_unavail_node and
2112 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
2113 for_functions_valid, global info, process and output flags.
2114 (input_overwrite_node): Initialize estimated stack size and
2115 estimated growth. Do not read flags we no longer store.
2116 (input_node): Likewise do not read info no longer stored.
2117 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
2120 2010-04-30 Richard Guenther <rguenther@suse.de>
2122 PR tree-optimization/43879
2123 * tree-ssa-structalias.c (get_constraint_for_1): Properly
2124 handle non-zero initializers.
2126 2010-04-30 Richard Guenther <rguenther@suse.de>
2128 * builtins.c (fold_builtin_1): Delete free (0).
2130 2010-04-29 Jan Hubicka <jh@suse.cz>
2132 * gengtype.c (open_base_files): Add lto-streamer.h
2133 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
2134 (pass_ipa_cp): GGC collect.
2135 * toplev. (compile_file): Do not output symbols.
2136 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
2137 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
2138 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
2139 * lto-section-in.c: Include ggc.h
2140 (lto_new_in_decl_state): Alloc in GGC.
2141 (lto_delete_in_decl_state): Likewise.
2142 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
2145 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
2148 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
2149 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
2150 (HONOR_REG_ALLOC_ORDER): Describe new macro.
2151 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
2152 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
2153 account only if HONOR_REG_ALLOC_ORDER is not defined.
2154 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
2155 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
2157 2010-04-29 Jon Grant <04@jguk.org>
2159 * collect2.c (vflag): Change type from int to bool.
2161 (helpflag): New global bool.
2162 (main): Set vflag and debug with boolean, not integer truth values.
2163 Accept new "--help" option and output usage text if found.
2164 * collect2.h (vflag): Update prototype.
2167 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
2170 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
2172 2010-04-29 Richard Guenther <rguenther@suse.de>
2175 * plugin.h (invoke_plugin_callbacks): Annotate arguments
2176 with ATTRIBUTE_UNUSED.
2178 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
2181 * config/i386/i386.c (get_some_local_dynamic_name): Replace
2182 INSN_P with NONDEBUG_INSN_P.
2183 (distance_non_agu_define): Likewise.
2184 (distance_agu_use): Likewise.
2186 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
2188 From Dominique d'Humieres <dominiq@lps.ens.fr>
2190 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
2193 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
2195 * plugin.h (invoke_plugin_callbacks): New inline function.
2196 * plugin.c (flag_plugin_added): New global flag.
2197 (add_new_plugin): Initialize above flag.
2198 (invoke_plugin_callbacks): Rename to ...
2199 (invoke_plugin_callbacks_full): ... this.
2201 2010-04-28 Jan Hubicka <jh@suse.cz>
2203 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
2204 (lto_varpool_replace_node): New.
2205 (lto_symtab_resolve_symbols): Resolve varpool nodes.
2206 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
2207 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
2208 * cgraph.h (varpool_node_ptr): New type.
2209 (varpool_node_ptr): New vector.
2210 (varpool_node_set_def): New structure.
2211 (varpool_node_set): New type.
2212 (varpool_node_set): New vector.
2213 (varpool_node_set_element_def): New structure.
2214 (varpool_node_set_element, const_varpool_node_set_element): New types.
2215 (varpool_node_set_iterator): New type.
2216 (varpool_node): Add prev pointers, add used_from_other_partition,
2218 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
2219 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
2220 varpool_get_node, varpool_remove_node): Declare.
2221 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
2222 varpool_node_set_size): New inlines.
2223 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
2224 * tree-pass.h (varpool_node_set_def): Forward declare.
2225 (ipa_opt_pass_d): Summary writting takes vnode sets too.
2226 (ipa_write_optimization_summaries): Update prototype.
2227 * ipa-cp.c (ipcp_write_summary): Update.
2228 * ipa-reference.c (ipa_reference_write_summary): Update.
2229 * lto-cgraph.c (lto_output_varpool_node): New static function.
2230 (output_varpool): New function.
2231 (input_varpool_node): New static function.
2232 (input_varpool_1): New function.
2233 (input_cgraph): Input varpool.
2234 * ipa-pure-const.c (pure_const_write_summary): Update.
2235 * lto-streamer-out.c (lto_output): Update, output varpool too.
2236 (write_global_stream): Kill WPA hack.
2237 (produce_asm_for_decls): Update.
2238 (output_alias_pair_p): Handle variables.
2239 (output_unreferenced_globals): Output only needed partition of varpool.
2240 * ipa-inline.c (inline_write_summary): Update.
2241 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
2243 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
2244 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
2245 varpool_node_set_new, varpool_node_set_add,
2246 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
2247 debug_varpool_node_set): New functions.
2248 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
2249 (execute_one_pass): Process new decls too.
2250 (ipa_write_summaries_2): Pass around vsets.
2251 (ipa_write_summaries_1): Likewise.
2252 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
2254 (ipa_write_optimization_summaries_1): Pass around vsets.
2255 (ipa_write_optimization_summaries): Likewise.
2256 * varpool.c (varpool_get_node): New.
2257 (varpool_node): Update doubly linked lists.
2258 (varpool_remove_node): New.
2259 (dump_varpool_node): More dumping.
2260 (varpool_enqueue_needed_node): Update doubly linked lists.
2261 (decide_is_variable_needed): Kill ltrans hack.
2262 (varpool_finalize_decl): Kill lto hack.
2263 (varpool_assemble_decl): Skip decls in other partitions.
2264 (varpool_assemble_pending_decls): Update doubly linkes lists.
2265 (varpool_empty_needed_queue): Likewise.
2266 (varpool_extra_name_alias): Likewise.
2267 * lto-streamer.c (lto_get_section_name): Add vars section.
2268 * lto-streamer.h (lto_section_type): Update.
2269 (output_varpool, input_varpool): Declare.
2271 2010-04-28 Mike Stump <mikestump@comcast.net>
2273 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
2275 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
2277 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
2278 record or union type with RECORD_OR_UNION_TYPE_P predicate.
2279 (lto_input_ts_type_tree_pointers): Likewise.
2280 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
2281 (lto_output_ts_type_tree_pointers): Likewise.
2283 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
2285 Uniquization of constants at the Tree level
2286 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
2287 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
2289 (tree_output_constant_def): Declare.
2290 * gimplify.c (gimplify_init_constructor): When using block copy, first
2291 uniquize the constant constructor on the RHS.
2292 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
2293 DECL_IN_CONSTANT_POOL flag.
2294 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
2295 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
2297 (assemble_variable): Deal with symbols belonging to the tree constant
2299 (get_constant_section): Add ALIGN parameter and simplify.
2300 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
2301 (assemble_constant_contents): Use the expression of the VAR_DECL.
2302 (output_constant_def_contents): Use the alignment of the VAR_DECL.
2303 (tree_output_constant_def): New global function.
2304 (mark_constant): Use the expression of the VAR_DECL.
2305 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
2307 (output_object_block): Likewise and assemble the expression.
2309 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
2311 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
2312 hash_tree, eq_tree): New tree hash table.
2313 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
2314 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
2315 lto_orig_address_remove): Reimplement.
2317 2010-04-28 Xinliang David Li <davidxl@google.com>
2320 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
2321 (compute_uninit_opnds_pos): New function.
2322 (is_non_loop_exit_postdominating): New function.
2323 (compute_control_dep_chain): New function.
2324 (find_pdom): New function.
2325 (convert_control_dep_chain_into_preds): New function.
2326 (find_predicates): New function.
2327 (find_control_equiv_block): New function.
2328 (collect_phi_def_edges): New function.
2329 (find_def_preds): New function.
2330 (find_dom): New function.
2331 (dump_predicates): New function.
2332 (get_cmp_code): New function.
2333 (is_value_included_in): New function.
2334 (find_matching_predicate_in_rest_chains): New function.
2335 (use_pred_not_overlap_with_undef_path_pred): New function.
2336 (is_use_properly_guarded): New function.
2337 (normalize_cond_1): New function.
2338 (is_and_or_or): New function.
2339 (normalize_cond): New function.
2340 (is_gcond_subset_of): New function.
2341 (is_subset_of_any): New function.
2342 (is_or_set_subset_of): New function.
2343 (is_and_set_subset_of): New function.
2344 (is_norm_cond_subset_of): New function.
2345 (is_pred_expr_subset_of): New function.
2346 (is_pred_chain_subset_of): New function.
2347 (is_included_in): New function.
2348 (is_superset_of): New function.
2349 (find_uninit_use): New function.
2350 (warn_uninitialized_phi): New function.
2351 (compute_possibly_undefined_names): New function.
2352 (ssa_undefined_value_p): New function.
2353 (execute_late_warn_uninitialized): New function.
2354 * tree-ssa.c (ssa_undefined_value_p): Removed.
2355 (warn_uninit): Changed to extern.
2356 (warn_uninitialized_phi): Removed.
2357 (warn_uninitialized_vars): Changed to extern.
2358 (execute_late_warn_uninitialized): Removed
2359 * tree-flow.h: Add new prototypes.
2360 * timevar.def: Add new time variable.
2361 * Makefile.in: Add new build file.
2363 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
2365 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
2368 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2371 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
2373 2010-04-28 Martin Jambor <mjambor@suse.cz>
2375 * cgraph.h (struct cgraph_node): New field indirect_calls.
2376 (struct cgraph_indirect_call_info): New type.
2377 (struct cgraph_edge): Removed field indirect_call. New fields
2378 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
2379 (cgraph_create_indirect_edge): Declare.
2380 (cgraph_make_edge_direct): Likewise.
2381 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
2382 * ipa-prop.h (struct ipa_param_call_note): Removed.
2383 (struct ipa_node_params): Removed field param_calls.
2384 (ipa_create_all_structures_for_iinln): Declare.
2385 * cgraph.c: Described indirect edges and uids in initial comment.
2386 (cgraph_add_edge_to_call_site_hash): New function.
2387 (cgraph_edge): Search also among the indirect edges, use
2388 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
2389 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
2390 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
2392 (initialize_inline_failed): Assign a reason to indirect edges.
2393 (cgraph_create_edge_1): New function.
2394 (cgraph_create_edge): Moved some functionality to
2395 cgraph_create_edge_1.
2396 (cgraph_create_indirect_edge): New function.
2397 (cgraph_edge_remove_callee): Add an assert checking for
2399 (cgraph_edge_remove_caller): Special-case indirect edges.
2400 (cgraph_remove_edge): Likewise.
2401 (cgraph_set_edge_callee): New function.
2402 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
2403 (cgraph_make_edge_direct): New function.
2404 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
2405 the declaration of the call statement matches.
2406 (cgraph_node_remove_callees): Special-case indirect edges.
2407 (cgraph_clone_edge): Likewise.
2408 (cgraph_clone_node): Clone also the indirect edges.
2409 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
2410 indirect_call, dump count of indirect_calls edges.
2411 * ipa-prop.c (iinlining_processed_edges): New variable.
2412 (ipa_note_param_call): Create indirect edges instead of
2413 creating notes. New parameter node.
2414 (ipa_analyze_call_uses): New parameter node, pass it on to
2415 ipa_note_param_call.
2416 (ipa_analyze_stmt_uses): Likewise.
2417 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
2418 (print_edge_addition_message): Work on edges rather than on notes.
2419 (update_call_notes_after_inlining): Likewise, renamed to
2420 update_indirect_edges_after_inlining.
2421 (ipa_create_all_structures_for_iinln): New function.
2422 (ipa_free_node_params_substructures): Do not free notes.
2423 (ipa_edge_duplication_hook): Propagate bits within
2424 iinlining_processed_edges bitmap.
2425 (ipa_node_duplication_hook): Do not duplicate notes.
2426 (free_all_ipa_structures_after_ipa_cp): Renamed to
2427 ipa_free_all_structures_after_ipa_cp.
2428 (free_all_ipa_structures_after_iinln): Renamed to
2429 ipa_free_all_structures_after_iinln.
2430 (ipa_write_param_call_note): Removed.
2431 (ipa_read_param_call_note): Removed.
2432 (ipa_write_indirect_edge_info): New function.
2433 (ipa_read_indirect_edge_info): Likewise.
2434 (ipa_write_node_info): Do not stream notes, do stream information
2436 (ipa_read_node_info): Likewise.
2437 (lto_ipa_fixup_call_notes): Removed.
2438 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
2439 * ipa-inline.c (pass_ipa_inline): Likewise.
2440 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
2441 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
2442 * tree-inline.c (copy_bb): Removed an unnecessary double check for
2444 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
2446 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
2447 (output_cgraph): Stream also indirect edges.
2448 (lto_output_edge): Added capability to stream indirect edges.
2449 (input_edge): Likewise.
2450 (input_cgraph_1): Likewise.
2451 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
2454 2010-04-28 Richard Guenther <rguenther@suse.de>
2456 PR tree-optimization/43879
2457 PR tree-optimization/43909
2458 * tree-ssa-structalias.c (struct variable_info): Add
2459 only_restrict_pointers flag.
2460 (new_var_info): Initialize it. Increment stats.total_vars here.
2461 (create_function_info_for): Do not increment stats.total_vars here.
2462 (get_function_part_constraint): Fix build with C++.
2463 (insert_into_field_list): Remove.
2464 (push_fields_onto_fieldstack): Properly merge fields.
2465 (create_variable_info_for): Split and simplify.
2466 (create_variable_info_for_1): New piece.
2467 (intra_create_variable_infos): Properly make restrict constraints
2470 2010-04-28 Richard Guenther <rguenther@suse.de>
2473 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
2475 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
2476 Jan Hubicka <hubicka@ucw.cz>
2478 * doc/invoke.texi (-Wsuggest-attribute=const,
2479 -Wsuggest-attribute=pure): Document.
2480 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
2481 (function_always_visible_to_compiler_p,
2482 suggest_attribute, warn_function_pure, warn_function_const):
2484 (check_call): Improve debug info.
2485 (analyze_function): Do not check availability.
2486 (add_new_function): Check availability.
2487 (propagate): Output warnings.
2488 (skip_function_for_local_pure_const): New function.
2489 (local_pure_const): Use it; output warnings.
2490 * common.opt (Wsuggest-attribute=const,
2491 Wsuggest-attribute=pure): New.
2493 2010-04-27 Jakub Jelinek <jakub@redhat.com>
2495 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
2496 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
2497 or DW_CFA_def_cfa_offset{,_sf}.
2499 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
2501 * tree.h: Fix truncated long macros.
2503 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
2505 * collect2.c (TARGET_64BIT): Redefine to target's default.
2506 * tlink.c: Likewise.
2507 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
2508 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
2509 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
2510 for underscoring __USER_LABEL_PREFIX__.
2511 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
2512 (SUB_LINK_ENTRY32): New.
2513 (SUB_LINK_ENTRY64): New.
2514 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
2515 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
2516 (SUB_LINK_ENTRY64): New.
2517 (SUB_LINK_ENTRY): New.
2518 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
2519 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
2520 x64 target is choosen.
2521 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
2522 * configure: Regenerated.
2523 * configure.ac (leading-mingw64-underscores): Option added.
2525 2010-04-27 Jan Hubicka <jh@suse.cz>
2527 * doc/invoke.texi (-fipa-profile): Document.
2528 * opts.c (decode_options): Enable ipa-profile at -O1.
2529 * timevar.def (TV_IPA_PROFILE): Define.
2530 * common.opt (fipa-profile): Add.
2531 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
2533 (cgraph_propagate_frequency): Handle only local ones.
2534 * tree-pass.h (pass_ipa_profile): Declare.
2535 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
2536 (pass_ipa_profile): Use TV_IPA_PROFILE.
2537 * ipa.c (ipa_profile): New function.
2538 (gate_ipa_profile): Likewise.
2539 (pass_ipa_profile): New global variable.
2540 * passes.c (pass_ipa_profile): New.
2542 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
2544 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
2546 2010-04-27 Martin Jambor <mjambor@suse.cz>
2549 * ipa.c (dissolve_same_comdat_group_list): New function.
2550 (function_and_variable_visibility): Call
2551 dissolve_same_comdat_group_list when comdat group contains external or
2553 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
2554 lists are circular and that they contain only DECL_ONE_ONLY nodes.
2556 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
2558 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
2559 (const_hash_1) <VECTOR_CST>: New case.
2560 (compare_constant) <VECTOR_CST>: Likewise.
2561 <ADDR_EXPR>: Deal with LABEL_REFs.
2562 (copy_constant) <VECTOR_CST>: New case.
2564 2010-04-27 Jan Hubicka <jh@suse.cz>
2566 * cgraph.c (cgraph_propagate_frequency): New function.
2567 * cgraph.h (cgraph_propagate_frequency): Declare.
2568 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
2569 cgraph_propagate_frequency.
2571 2010-04-27 Jakub Jelinek <jakub@redhat.com>
2573 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
2575 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
2578 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
2579 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
2580 here to determine which regs to push and how much stack to reserve.
2582 2010-04-27 Jie Zhang <jie@codesourcery.com>
2584 * doc/gimple.texi (gimple_statement_with_ops): Remove
2585 addresses_taken field.
2586 (gimple_statement_with_memory_ops): Likewise.
2588 2010-04-27 Jan Hubicka <jh@suse.cz>
2590 * tree-inline.c (eni_inlining_weights): Remove.
2591 (estimate_num_insns): Special case more builtins.
2593 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
2596 * c-typeck.c (build_binary_op): Move forward check for comparison
2597 pointer with null pointer constant and adjust the diagnostic message.
2599 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
2602 * configure.ac (gcc_cv_as_section_has_align): Set if installed
2603 binutils supports extended .section directive needed by LTO, or
2604 warn if older binutils found.
2605 (LTO_BINARY_READER): New AC_SUBST'd variable.
2606 (LTO_USE_LIBELF): Likewise.
2607 * gcc/config.gcc (lto_binary_reader): New target-specific configure
2609 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
2610 (LTO_USE_LIBELF): Likewise.
2611 * configure: Regenerate.
2613 * collect2.c (is_elf): Rename from this ...
2614 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
2615 object files in addition to ELF-formatted ones.
2616 (scan_prog_file): Caller updated. Also allow for LTO info marker
2617 symbol to be prefixed or not by an extra underscore.
2619 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
2620 * config/i386/winnt.c: Also #include lto-streamer.h
2621 (i386_pe_asm_named_section): Specify 1-byte section alignment for
2623 (i386_pe_asm_output_aligned_decl_common): Add comment.
2624 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
2626 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
2629 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
2630 Add missing earlyclobber for second alternative.
2632 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
2634 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
2635 bits for artificial defs at the top of the block.
2636 * fwprop.c (single_def_use_enter_block): Don't call it.
2638 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
2641 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
2642 instead of "$gcc_cv_objdump -T".
2643 Use "-undefined dynamic_lookup" on darwin.
2644 * gcc/configure: Regenerate.
2646 2010-04-26 Jakub Jelinek <jakub@redhat.com>
2649 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
2651 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
2653 * c-parser.c (struct c_token): Move location field up.
2654 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
2655 (struct c_declspecs): Convert typespec_word, storage_class, and
2656 default_int_p into bitfields.
2657 (struct c_declarator): Move loc field up.
2659 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
2661 * cfgloop.h (struct loop): Move can_be_parallel field up.
2662 * ipa-prop.h (struct ip_node_params): Move bitfields up.
2663 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
2665 (struct iv_cand): Convert pos field into a bitfield.
2666 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
2668 (struct _stmt_vec_info): Shuffle fields for better packing.
2670 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
2672 * varasm.c (IN_NAMED_SECTION): Remove guard.
2673 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
2674 (IN_NAMED_SECTION_P): ...this.
2675 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
2676 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
2678 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
2680 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
2681 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
2682 of shadowing it. Fix comments.
2684 2010-04-26 Jan Hubicka <jh@suse.cz>
2686 * cgraph.c (cgraph_create_node): Set node frequency to normal.
2687 (cgraph_clone_node): Copy function frequency.
2688 * cgraph.h (node_frequency): New enum
2689 (struct cgraph_node): Add.
2690 * final.c (rest_of_clean_state): Update.
2691 * lto-cgraph.c (lto_output_node): Output node frequency.
2692 (input_overwrite_node): Input node frequency.
2693 * tre-ssa-loop-ivopts (computation_cost): Update.
2694 * lto-streamer-out.c (output_function): Do not output function
2696 * predict.c (maybe_hot_frequency_p): Update and handle functions
2698 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
2700 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
2701 (compute_function_frequency): Set noreturn functions to be executed
2703 (choose_function_section): Update.
2704 * lto-streamer-in.c (input_function): Do not input function frequency.
2705 * function.c (allocate_struct_function): Do not initialize function
2707 * function.h (function_frequency): Remove.
2708 (struct function): Remove function frequency.
2709 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
2710 (try_update): Update.
2711 * tree-inline.c (initialize_cfun): Do not update function frequency.
2712 * passes.c (pass_init_dump_file): Update.
2713 * i386.c (ix86_compute_frame_layout): Update.
2714 (ix86_pad_returns): Update.
2716 2010-04-26 Jie Zhang <jie@codesourcery.com>
2718 PR tree-optimization/43833
2719 * tree-vrp.c (range_int_cst_p): New.
2720 (range_int_cst_singleton_p): New.
2721 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
2722 when both operands are constants. Use range_int_cst_p in
2725 2010-04-26 Jan Hubicka <jh@suse.cz>
2727 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
2729 2010-04-26 Richard Guenther <rguenther@suse.de>
2732 * gimple.c (gimple_decl_printable_name): Deal gracefully
2733 with a NULL DECL_NAME.
2735 2010-04-26 Richard Guenther <rguenther@suse.de>
2738 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
2739 if emitting debug information and it is either a function
2740 or a namespace decl.
2742 2010-04-26 Ira Rosen <irar@il.ibm.com>
2744 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
2745 determine if the statement is vectorizable, and a macro to access it.
2746 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
2747 Skip statements that can't be vectorized. If the analysis fails,
2748 mark the statement as unvectorizable if vectorizing basic block.
2749 (vect_compute_data_refs_alignment): Likewise.
2750 (vect_verify_datarefs_alignment): Skip statements marked as
2751 unvectorizable. Add print.
2752 (vect_analyze_group_access): Skip statements that can't be
2753 vectorized. If the analysis fails, mark the statement as
2754 unvectorizable if vectorizing basic block.
2755 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
2756 * tree-vect-stmts.c (vectorizable_store): Fix the number of
2757 generated stmts for SLP.
2758 (new_stmt_vec_info): Initialize the new field.
2759 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
2760 statements marked as unvectorizable.
2762 2010-04-25 Joseph Myers <joseph@codesourcery.com>
2764 * c-common.c (flag_isoc1x): New.
2765 (flag_isoc99): Update comment.
2766 * c-common.h (flag_isoc1x): New.
2767 (flag_isoc99): Update comment.
2768 * c-cppbuiltin.c (builtin_define_float_constants): Also define
2769 __<type>_DECIMAL_DIG__.
2770 * c-opts.c (set_std_c1x): New.
2771 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
2772 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
2773 * c.opt (-std=c1x, -std=gnu1x): New options.
2774 * doc/cpp.texi: Mention -std=c1x.
2775 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
2776 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
2777 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
2778 * doc/standards.texi: Mention C1X.
2779 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
2780 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
2781 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
2784 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
2786 * config/i386/gmon-sol2.c (_mcleanup): Change format string
2787 placeholder from 0x%x to %#x.
2788 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
2789 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
2790 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
2791 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
2792 * config/i386/i386.c (ix86_target_string): Ditto.
2793 (output_pic_addr_const): Ditto.
2794 (print_operand): Ditto.
2796 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
2798 * combine.c (find_split_point): Add third argument. Use it
2799 to find nested multiply-accumulate instructions. Adjust calls.
2800 (try_combine): Adjust call to find_split_point.
2802 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
2804 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
2806 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
2808 PR tree-optimization/41442
2809 * fold-const.c (merge_truthop_with_opposite_arm): New function.
2810 (fold_binary_loc): Call it.
2812 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
2814 * toplev.c (general_init): Set default for fdiagnostics-show-option.
2815 * opts.c (common_handle_option): Allow disabling it.
2816 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
2818 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
2820 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
2821 between modes if both types are integral.
2823 2010-04-23 Richard Guenther <rguenther@suse.de>
2825 PR tree-optimization/43572
2826 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
2828 2010-04-23 Richard Guenther <rguenther@suse.de>
2831 * tree-inline.c (tree_can_inline_p): Also check compatibility
2834 2010-04-23 Martin Jambor <mjambor@suse.cz>
2836 PR tree-optimization/43846
2837 * tree-sra.c (struct access): New flag grp_assignment_read.
2838 (build_accesses_from_assign): Set grp_assignment_read.
2839 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
2840 (enum mark_read_status): New type.
2841 (analyze_access_subtree): Propagate grp_assignment_read, create
2842 accesses also if both direct_read and root->grp_assignment_read.
2844 2010-04-23 Martin Jambor <mjambor@suse.cz>
2847 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
2848 function does not have type attributes.
2850 2010-04-23 Richard Guenther <rguenther@suse.de>
2853 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
2856 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2858 * sese.h (create_if_region_on_edge): Remove.
2860 * sese.c (create_if_region_on_edge): Make static.
2862 * tree-inline.c: Do not include ggc.h.
2864 * expr.c: Do not include ggc.h.
2866 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
2869 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
2872 * config/sh/sh.c (find_barrier): Don't emit a constant pool
2873 in the middle of insns for casesi_worker_2.
2875 2010-04-22 David Edelsohn <edelsohn@gnu.org>
2877 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
2879 2010-04-22 Ira Rosen <irar@il.ibm.com>
2881 PR tree-optimization/43842
2882 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
2883 loop unrolling in update of exit phis. Fix comment.
2884 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
2885 least two reduction statements in the loop before starting SLP
2888 2010-04-22 Nick Clifton <nickc@redhat.com>
2890 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
2892 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
2894 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
2897 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2899 * tree-parloops.c (loop_parallel_p): New argument
2900 parloop_obstack. Pass it down.
2901 (parallelize_loops): New variable parloop_obstack. Initialize it,
2902 pass it down, free it.
2904 * tree-loop-linear.c (linear_transform_loops): Pass down
2907 * tree-data-ref.h (lambda_compute_access_matrices): New argument
2908 of type struct obstack *.
2910 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
2911 scratch_obstack. Initialize it, pass down, free it.
2913 * lambda.h (lambda_loop_new): Remove.
2914 (lambda_matrix_new, lambda_matrix_inverse)
2915 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
2916 argument of type struct obstack *.
2918 * lambda-trans.c (lambda_trans_matrix_new): New argument
2919 lambda_obstack. Pass it down, use obstack allocation for ret.
2920 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
2923 * lambda-mat.c (lambda_matrix_get_column)
2924 (lambda_matrix_project_to_null): Remove.
2925 (lambda_matrix_new): New argument lambda_obstack. Use obstack
2927 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
2930 * lambda-code.c (lambda_loop_new): New function.
2931 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
2932 (lambda_compute_auxillary_space, lambda_compute_target_space)
2933 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
2934 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
2935 (build_access_matrix): New argument lambda_obstack. Use obstack
2937 (lambda_compute_step_signs, lambda_compute_access_matrices): New
2938 argument lambda_obstack. Pass it down.
2940 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
2942 * optabs.h (expand_widening_mult): Declare.
2944 2010-04-22 Richard Guenther <rguenther@suse.de>
2946 PR tree-optimization/43845
2947 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
2948 lookup the CALL_EXPR function and arguments.
2950 2010-04-22 Nick Clifton <nickc@redhat.com>
2952 * config/stormy16/stormy16.c
2953 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
2954 * config/stormy16/stormy16.h: Tidy up formatting.
2955 (DONT_USE_BUILTIN_SETJMP): Remove definition.
2956 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
2957 (ineqbranchsi): Delete pattern.
2958 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
2959 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
2960 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
2961 stormy16-lib2-ucmpsi2.c.
2963 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
2965 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
2966 df_simulate_find_noclobber_defs as appropriate. Keep track of an
2967 extra set merge_set_noclobber, and use it to relax the final test
2969 * df.h (df_simulate_find_noclobber_defs): Declare.
2970 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
2972 (df_simulate_find_noclobber_defs): New function.
2974 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
2976 * config/i386/i386.md: Use {} around multi-line preparation statements.
2978 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2980 * c-tree.h (push_init_level, pop_init_level, set_init_index)
2981 (process_init_element): New argument of type struct obstack *.
2983 * c-typeck.c (push_init_level, pop_init_level, set_designator)
2984 (set_init_index, set_init_label, set_nonincremental_init)
2985 (set_nonincremental_init_from_string, find_init_member)
2986 (output_init_element, output_pending_init_elements)
2987 (process_init_element): New argument braced_init_obstack. Pass it
2989 (push_range_stack, add_pending_init): New argument
2990 braced_init_obstack. Use obstack allocation.
2992 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
2993 braced_init_obstack. Pass it down.
2994 (c_parser_braced_init): New variables ret, braced_init_obstack.
2995 Initialize obstack, pass it down and finally free it.
2997 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
3000 * tree-pass.h (pass_optimize_widening_mul): Declare.
3001 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
3002 gate_optimize_widening_mul): New static functions.
3003 (pass_optimize_widening_mul): New.
3004 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
3005 <case MULT_EXPR>: Remove support for widening multiplies.
3006 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
3007 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
3008 simplify_gen_unary rather than directly building extensions.
3009 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
3011 * expmed.c (expand_widening_mult): New function.
3012 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
3014 2010-04-21 Jan Hubicka <jh@suse.cz>
3016 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
3017 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
3018 * lto-wpa-fixup.c: Remove.
3019 * Makefile.in (lto-wpa-fixup.o): Remove.
3020 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
3021 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
3022 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
3024 2010-04-21 Jan Hubicka <jh@suse.cz>
3026 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
3027 add write_optimization_summary, read_optimization_summary.
3028 (ipa_write_summaries_of_cgraph_node_set): Remove.
3029 (ipa_write_optimization_summaries): Declare.
3030 (ipa_read_optimization_summaries): Declare.
3031 * ipa-cp.c (pass_ipa_cp): Update.
3032 * ipa-reference.c (pass_ipa_reference): Update.
3033 * ipa-pure-const.c (pass_ipa_pure_const): Update.
3034 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
3036 * ipa-inline.c (pass_ipa_inline): Update.
3037 * ipa.c (pass_ipa_whole_program): Update.
3038 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
3039 * passes.c (ipa_write_summaries_1): Do not test wpa.
3040 (ipa_write_optimization_summaries_1): New.
3041 (ipa_write_optimization_summaries): New.
3042 (ipa_read_summaries): Do not test ltrans.
3043 (ipa_read_optimization_summaries_1): New.
3044 (ipa_read_optimization_summaries): New.
3046 2010-04-21 Jan Hubicka <jh@suse.cz>
3048 * lto-cgraph.c (lto_output_node): Do not output comdat groups
3050 (output_cgraph): Do not arrange comdat groups for boundary nodes.
3052 2010-04-21 Jakub Jelinek <jakub@redhat.com>
3055 * dwarf2out.c (add_name_and_src_coords_attributes): Add
3056 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
3058 2010-04-21 Jan Hubicka <jh@suse.cz>
3060 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
3062 2010-04-21 Jan Hubicka <jh@suse.cz>
3064 * varpool.c (decide_is_variable_needed): Variable is always needed
3067 2010-04-21 Jan Hubicka <jh@suse.cz>
3069 * opts.c (decode_options): Enable pure-const pass for whopr.
3071 2010-04-21 Jan Hubicka <jh@suse.cz>
3073 * cgraph.c (dump_cgraph_node): Dump also assembler name.
3074 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
3076 (cgraph_decide_inlining): Do not expect callee to be removed in all
3079 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
3081 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
3083 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
3085 * config/i386/i386.md (x86_shrd): Add athlon_decode and
3086 amdfam10_decode attributes.
3088 2010-04-21 Jakub Jelinek <jakub@redhat.com>
3091 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
3092 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
3093 (lower_copyprivate_clauses): Use private var in outer
3094 context instead of original var. Make sure the types
3095 are correct for VLAs.
3097 2010-04-21 Richard Guenther <rguenther@suse.de>
3099 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
3100 to non-pointer objects.
3102 2010-04-21 Jakub Jelinek <jakub@redhat.com>
3104 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
3105 last chain entry if it starts with the still current label.
3106 (add_location_or_const_value_attribute): Check that
3107 loc_list->first->next is NULL instead of comparing ->first with ->last.
3108 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
3109 to add_var_loc_to_decl.
3111 * dwarf2out.c (output_call_frame_info): For dw_cie_version
3112 >= 4 add also address size and segment size fields into CIE header.
3114 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
3115 long as address size is the same as sizeof (void *) and
3117 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
3118 address size or segment size is unexpected, return DW_EH_PE_omit.
3119 (classify_object_over_fdes): If get_cie_encoding returned
3120 DW_EH_PE_omit, return -1.
3121 (init_object): If classify_object_over_fdes returned -1,
3122 pretend there were no FDEs at all.
3124 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
3126 * config/i386/i386.md (bswap<mode>2): Macroize expander from
3127 bswap{si,di}2 using SWI48 mode iterator.
3128 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
3129 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
3130 set modrm attribute of bswap insn to 0 and remove length attribute.
3131 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
3132 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
3133 set mode attribute to <MODE> and remove length attribute.
3135 2010-04-20 James E. Wilson <wilson@codesourcery.com>
3137 PR rtl-optimization/43520
3138 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
3139 zero available registers.
3141 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3143 * builtins.c (fold_builtin_cproj): Fold more cases.
3145 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3147 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
3148 (fold_builtin_1): Fold builtin cproj.
3149 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
3150 Use ATTR_CONST_NOTHROW_LIST.
3152 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
3154 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
3155 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
3156 ffsi2_no_cmove for !TARGET_CMOVE.
3157 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
3158 (ffssi2): Remove expander.
3159 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
3161 (ctz<mode>2): Ditto from ctz{si,di}2.
3162 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
3164 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
3167 2010-04-20 Jakub Jelinek <jakub@redhat.com>
3169 * dwarf2out.c (AT_linkage_name): Define.
3170 (clone_as_declaration): Handle DW_AT_linkage_name.
3171 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
3172 of DW_AT_MIPS_linkage_name.
3173 (move_linkage_attr): Likewise.
3174 (dwarf2out_finish): Likewise.
3176 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
3179 * fold-const.c (fold_comparison): New folding rule.
3181 2010-04-20 Anatoly Sokolov <aesok@post.ru>
3183 * double-int.h (double_int_setbit): Declare.
3184 * double-int.c (double_int_setbit): New function.
3185 * rtl.h (immed_double_int_const): Declare.
3186 * emit-rtl.c (immed_double_int_const): New function.
3187 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
3188 and immed_double_int_const functions.
3189 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
3190 expand_copysign_bit): (Ditto.).
3191 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
3192 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
3193 * dojump.c (prefer_and_bit_test): (Ditto.).
3194 * expr.c (convert_modes, reduce_to_bit_field_precision,
3195 const_vector_from_tree): (Ditto.).
3196 * expmed.c (mask_rtx, lshift_value): (Ditto.).
3198 2010-04-20 Jan Hubicka <jh@suse.cz>
3200 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
3201 (dump_cgraph_node): Dump new flags.
3202 * cgraph.h (struct cgraph_node): Add flags
3203 reachable_from_other_partition and in_other_partition.
3204 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
3205 other partition can not be removed.
3206 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
3207 the other partition must be output; silence sanity checking on
3208 leaking functions bodies from other paritition.
3209 * lto-cgraph.c (reachable_from_other_partition_p): New function.
3210 (lto_output_node): Output new flags; do not sanity check that inline
3211 clones are output; drop lto_forced_extern_inline_p code; do not mock
3212 visibility flags at partition boundaries.
3213 (add_node_to): New function.
3214 (output_cgraph): Use it to sort functions so masters appear before
3216 (input_overwrite_node): Input new flags.
3217 * passes.c (ipa_write_summaries): Do not call
3218 lto_new_extern_inline_states.
3219 * lto-section-out.c (forced_extern_inline,
3220 lto_new_extern_inline_states lto_delete_extern_inline_states,
3221 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
3222 * lto-streamer.h (lto_new_extern_inline_states,
3223 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
3224 lto_forced_extern_inline_p): Kill.
3226 2010-04-20 Richard Guenther <rguenther@suse.de>
3228 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
3229 from vars that can have pointers.
3230 (process_constraint): Dump useless constraints.
3232 2010-04-20 Richard Guenther <rguenther@suse.de>
3234 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
3235 (dump_sa_points_to_info): Remove asserts.
3236 (init_base_vars): nothing_id isn't an escape point nor does it
3239 2010-04-20 Jakub Jelinek <jakub@redhat.com>
3241 * tree.h (TYPE_REF_IS_RVALUE): Define.
3242 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
3243 should_move_die_to_comdat, prune_unused_types_walk): Handle
3244 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
3245 (modified_type_die, gen_reference_type_die): Emit
3246 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
3247 if TYPE_REF_IS_RVALUE and -gdwarf-4.
3249 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3252 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
3253 calls for -fpic -m31 if they have been sibcall optimized.
3255 2010-04-19 James E. Wilson <wilson@codesourcery.com>
3257 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
3258 ar.lc fixed and call-used.
3260 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
3262 2010-04-19 Jan Hubicka <jh@suse.cz>
3264 * opts.c (decode_options): Disable whpr incompatible passes.
3265 * lto/lto.c (lto_1_to_1_map): Skip clones.
3266 (read_cgraph_and_symbols): Do not mark everything as needed.
3267 (do_whole_program_analysis): Do map only after optimizing;
3268 set proper cgraph_state; use passmanager.
3270 2010-04-19 DJ Delorie <dj@redhat.com>
3272 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
3273 POINTER_PLUS_EXPR and fix them.
3275 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
3277 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
3278 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
3279 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
3280 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
3281 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
3282 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
3283 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
3284 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
3285 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
3286 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
3287 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
3289 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
3291 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
3292 (check_cond_move_block): Likewise.
3293 (cond_move_process_if_block): Likewise.
3294 (noce_find_if_block): Improve formatting.
3295 (find_if_header): Pass 0 to memset and tweak conditions.
3296 (cond_exec_find_if_block): Fix long lines and tweak conditions.
3298 2010-04-19 Jakub Jelinek <jakub@redhat.com>
3300 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
3304 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
3305 with non-local decl doesn't need chain.
3307 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
3309 * ira-color.c (allocno_reload_assign): Avoid accumulating
3310 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
3312 2010-04-19 Martin Jambor <mjambor@suse.cz>
3314 * gimple.h (create_tmp_reg): Declare.
3315 * gimplify.c (create_tmp_reg): New function.
3316 (gimplify_return_expr): Use create_tmp_reg.
3317 (gimplify_omp_atomic): Likewise.
3318 (gimple_regimplify_operands): Likewise.
3319 * tree-dfa.c (make_rename_temp): Likewise.
3320 * tree-predcom.c (predcom_tmp_var): Likewise.
3321 (reassociate_to_the_same_stmt): Likewise.
3322 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
3323 (get_replaced_param_substitute): Likewise.
3324 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
3325 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
3326 * tree-ssa-pre.c (get_representative_for): Likewise.
3327 (create_expression_by_pieces): Likewise.
3328 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
3329 (create_tailcall_accumulator): Likewise.
3331 2010-04-19 Martin Jambor <mjambor@suse.cz>
3333 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
3335 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
3337 2010-04-19 Richard Guenther <rguenther@suse.de>
3339 PR tree-optimization/43796
3340 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
3341 from SCEV in the lattice.
3342 (vrp_visit_phi_node): Dump change.
3344 2010-04-19 Richard Guenther <rguenther@suse.de>
3346 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
3347 * configure: Re-generated.
3349 2010-04-19 Richard Guenther <rguenther@suse.de>
3351 PR tree-optimization/43783
3352 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
3353 constant ARRAY_REF operands two and three if possible.
3355 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
3358 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
3360 2010-04-19 Jie Zhang <jie@codesourcery.com>
3363 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
3365 2010-04-19 Ira Rosen <irar@il.ibm.com>
3367 PR tree-optimization/37027
3368 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
3369 and macro to access it.
3370 (vectorizable_reduction): Add argument.
3371 (vect_get_slp_defs): Likewise.
3372 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
3373 statements for possible use in SLP.
3374 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
3375 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
3376 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
3378 (vectorizable_reduction): Likewise.
3379 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
3381 (vectorizable_type_demotion, vectorizable_type_promotion,
3382 vectorizable_store): Likewise.
3383 (vect_analyze_stmt): Update call to vectorizable_reduction.
3384 (vect_transform_stmt): Likewise.
3385 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
3386 (vect_build_slp_tree): Fix indentation. Check that there are no loads
3387 from different interleaving chains in same node.
3388 (vect_slp_rearrange_stmts): New function.
3389 (vect_supported_load_permutation_p): Allow load permutations for
3390 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
3391 inside SLP nodes if necessary.
3392 (vect_analyze_slp_instance): Handle reductions.
3393 (vect_analyze_slp): Try to build SLP instances originating from groups
3395 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
3396 (vect_get_constant_vectors): Create initial vectors for reductions
3397 according to reduction code. Add new argument.
3398 (vect_get_slp_defs): Add new argument, pass it to
3399 vect_get_constant_vectors.
3400 (vect_schedule_slp_instance): Remove SLP tree root statements.
3402 2010-04-19 Jakub Jelinek <jakub@redhat.com>
3404 * tree.h (ENUM_IS_SCOPED): Define.
3405 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
3406 for ENUM_IS_SCOPED enums.
3408 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
3410 * fold-const.c (fold_comparison): Use ssizetype.
3411 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
3412 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
3413 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
3414 * tree-object-size.c (compute_object_sizes): Use size_type_node.
3416 * tree.h (initialize_sizetypes): Remove parameter.
3417 (build_common_tree_nodes): Remove second parameter.
3418 * stor-layout.c (initialize_sizetypes): Remove parameter.
3419 Always create an unsigned type.
3420 (set_sizetype): Assert that the passed type is unsigned and simplify.
3421 * tree.c (build_common_tree_nodes): Remove second parameter.
3422 Adjust call to initialize_sizetypes.
3423 * c-decl.c (c_init_decl_processing): Remove second argument in call to
3424 build_common_tree_nodes.
3426 2010-04-18 Matthias Klose <doko@ubuntu.com>
3428 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
3430 2010-04-18 Ira Rosen <irar@il.ibm.com>
3432 PR tree-optimization/43771
3433 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
3434 load permutation doesn't have gaps.
3436 2010-04-18 Jan Hubicka <jh@suse.cz>
3438 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
3439 (sse_prologue_save_insn expander): Use new pattern.
3440 (sse_prologue_save_insn1): New pattern and splitter.
3441 (sse_prologue_save_insn): Update to deal also with 64bit aligned
3443 * i386.c (setup_incoming_varargs_64): Do not compute jump
3445 (ix86_gimplify_va_arg): Update alignment needed.
3446 (ix86_local_alignment): Do not align all local arrays to 128bit.
3448 2010-04-17 Jan Hubicka <jh@suse.cz>
3450 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
3452 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
3454 * arm.md (negdi2): Remove redundant code to force values into a
3457 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
3459 * arm/bpabi.S: Add EABI alignment attributes to objects.
3460 * arm/bpabi-v6m.S: Likewise.
3461 * arm/crti.asm: Likewise.
3462 * arm/crtn.asm: Likewise.
3463 * arm/lib1funcs.asm: Likewise.
3464 * arm/libunwind.S: Likewise.
3466 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
3468 * arm-protos.h (tune_params): New structure.
3469 * arm.c (current_tune): New variable.
3470 (arm_constant_limit): Delete.
3471 (struct processors): Add pointer to the tune parameters.
3472 (arm_slowmul_tune): New tuning option.
3473 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
3474 (all_cores): Adjust to pick up the tuning model.
3475 (arm_constant_limit): New function.
3476 (arm_override_options): Select the appropriate tuning model. Delete
3477 initialization of arm_const_limit.
3478 (arm_split_constant): Use the new constant-limit model.
3479 (arm_rtx_costs): Pick up the current tuning model.
3480 * arm.md (is_strongarm, is_xscale): Delete.
3481 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
3482 for Xscale variant architectures.
3483 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
3485 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3487 * config/arm/arm.c (arm_gen_constant): Remove unused variable
3489 (arm_rtx_costs_1): Remove unused variable extra_cost.
3490 (arm_unwind_emit_set): Use variable offset.
3491 (thumb1_output_casesi): Remove unused variable flags.
3493 2010-04-16 Jeff Law <law@redhat.com>
3495 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
3496 needing assignment rather than doing a two-phase assignment. Remove
3497 unused variable 'm'.
3499 2010-04-16 Jakub Jelinek <jakub@redhat.com>
3502 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
3504 2010-04-16 Doug Kwan <dougkwan@google.com>
3506 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
3507 (next_operand_entry_id): New static variable.
3508 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
3509 (add_to_ops_vec): Assigned unique ID to operand entry.
3510 (struct oecount_s): New field ID.
3511 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
3512 (undistribute_ops_list): Assign unique IDs to oecounts.
3513 (init_reassoc): reset next_operand_entry_id.
3515 2010-04-16 Doug Kwan <dougkwan@google.com>
3517 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
3518 missing left parenthesis.
3520 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
3522 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
3523 *btdi_rex64 using SWI48 mode iterator.
3524 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
3525 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
3526 *jcc_btdi_mask_rex64.
3528 2010-04-16 Anatoly Sokolov <aesok@post.ru>
3530 * double-int.h (tree_to_double_int): Convert to macro.
3531 * double-int.c (tree_to_double_int): Remove.
3533 2010-04-16 Jakub Jelinek <jakub@redhat.com>
3536 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
3537 with want_address 2 and in case a single element list might be
3538 possible, call it again with want_address 0.
3540 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
3542 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
3543 case 'W' print operands for HI mode.
3544 * config/h8300/h8300.h (Y0, Y2) : New constraints.
3545 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
3546 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
3547 * config/h8300/predicate.md (bit_register_indirect_operand): New.
3549 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
3551 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
3552 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
3553 #xx:3 and #xx:4 mode.
3555 * config/h8300/h8300.md (inverted load with HImode dest): Add
3556 support for H8300SX.
3558 * config/h8300/predicate.md (bit_operand): Allow immediate values that
3559 satisfy 'U' constraint.
3561 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3563 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
3564 * configure: Regenerate.
3565 * config.in: Regenerate.
3566 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
3569 2010-04-16 Richard Guenther <rguenther@suse.de>
3571 * tree.h (struct tree_decl_minimal): Move pt_uid ...
3572 (struct tree_decl_common): ... here.
3573 (DECL_PT_UID): Adjust.
3574 (SET_DECL_PT_UID): Likewise.
3575 (DECL_PT_UID_SET_P): Likewise.
3577 2010-04-16 Richard Guenther <rguenther@suse.de>
3579 PR tree-optimization/43572
3580 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
3581 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
3582 * tree-flow.h (is_call_clobbered): Remove.
3583 * tree-flow-inline.h (is_call_clobbered): Likewise.
3584 * tree-dfa.c (dump_variable): Do not dump call clobber state.
3585 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
3586 (execute_return_slot_opt): Adjust.
3587 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
3588 check for call clobbered vars here.
3589 (find_tail_calls): Move tailcall verification to the
3592 2010-04-16 Diego Novillo <dnovillo@google.com>
3594 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
3596 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
3599 * config/arm/arm.md (cbranchqi4): New pattern.
3600 * config/arm/predicates.md (const0_operand,
3601 cbranchqi4_comparison_operator): New predicates.
3603 2010-04-16 Richard Guenther <rguenther@suse.de>
3605 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
3606 (dump_gimple_stmt): Likewise.
3608 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
3610 * recog.h (struct recog_data): New field is_operator.
3611 (struct insn_operand_data): New field is_operator.
3612 * recog.c (extract_insn): Set recog_data.is_operator.
3613 * genoutput.c (output_operand_data): Emit code to set the
3615 * reload.c (find_reloads): Use it rather than testing for an
3616 empty constraint string.
3619 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
3620 If the previous insn is a cbranchsi4_insn with the same arguments,
3621 omit the compare instruction.
3623 * config/arm/arm.md (addsi3_cbranch): If destination is a high
3624 register, inputs must be low registers and we need a low register
3625 scratch. Handle alternative 2 like alternative 3.
3627 2010-04-16 Jakub Jelinek <jakub@redhat.com>
3629 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
3630 don't call get_addr on both. If one expression is a VALUE and
3631 the other a REG, check VALUE's locs if the REG isn't among them.
3633 2010-04-16 Christian Bruel <christian.bruel@st.com>
3635 * config/sh/sh.h (sh_frame_pointer_required): New function.
3636 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
3637 (flag_omit_frame_pointer) Set.
3638 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
3639 (rounded_frame_size): Adjust size with outgoing_args_size.
3640 (sh_set_return_address): Must return from stack pointer.
3641 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
3642 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
3643 (ACCUMULATE_OUTGOING_ARGS): Define.
3644 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
3645 * gcc/config/sh/sh.opt: (maccumulate-outgoing-args): New option.
3647 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
3650 * config/sh/sh.c (sh_legitimize_reload_address): Use
3651 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
3652 Remove a unneeded check for offset_base.
3654 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
3656 * configure: Regenerated.
3658 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3660 * config/s390/s390.c (s390_call_save_register_used): Switch back
3661 to HARD_REGNO_NREGS.
3663 2010-04-15 Richard Guenther <rguenther@suse.de>
3665 * alias.c (alias_set_subset_of): Handle alias-set zero
3668 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
3669 Julian Brown <julian@codesourcery.com>
3671 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
3672 alternatives according to use of high and low regs.
3673 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
3674 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
3675 optimizing for size on Thumb-2.
3677 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
3679 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
3681 2010-04-15 Richard Guenther <rguenther@suse.de>
3683 * tree-ssa-structalias.c (struct variable_info): Add
3685 (new_var_info): Initialize it.
3686 (dump_constraints): Support printing last added constraints.
3687 (debug_constraints): Adjust.
3688 (dump_constraint_graph): Likewise.
3689 (make_heapvar_for): Check for NULL cfun.
3690 (get_function_part_constraint): New function.
3691 (get_fi_for_callee): Likewise.
3692 (find_func_aliases): Properly implement IPA PTA constraints.
3693 (process_ipa_clobber): New function.
3694 (find_func_clobbers): Likewise.
3695 (insert_into_field_list_sorted): Remove.
3696 (create_function_info_for): Properly allocate vars for IPA mode.
3697 Do not use insert_into_field_list_sorted.
3698 (create_variable_info_for): Properly generate constraints for
3699 global vars in IPA mode.
3700 (dump_solution_for_var): Always dump the solution.
3701 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
3702 (find_what_var_points_to): Adjust.
3703 (pt_solution_set): Change.
3704 (pt_solution_ior_into): New function.
3705 (pt_solution_empty_p): Export.
3706 (pt_solution_includes_global): Adjust.
3707 (pt_solution_includes_1): Likewise.
3708 (pt_solutions_intersect_1): Likewise.
3709 (dump_sa_points_to_info): Check some invariants.
3710 (solve_constraints): Move constraint dumping ...
3711 (compute_points_to_sets): ... here.
3712 (ipa_pta_execute): ... and here.
3713 (compute_may_aliases): Do not re-compute points-to info
3714 locally if IPA info is available.
3715 (ipa_escaped_pt): New global var.
3716 (ipa_pta_execute): Properly implement IPA PTA.
3717 * tree-into-ssa.c (dump_decl_set): Support dumping
3718 decls not in referenced-vars.
3719 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
3720 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
3721 (dump_points_to_solution): Likewise.
3722 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
3723 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
3724 (remap_gimple_stmt): Reset call clobber/use information if necessary.
3725 (copy_decl_to_var): Copy DECL_PT_UID.
3726 (copy_result_decl_to_var): Likewise.
3727 * tree.c (make_node_stat): Initialize DECL_PT_UID.
3728 (copy_node_stat): Copy it.
3729 * tree.h (DECL_PT_UID): New macro.
3730 (SET_DECL_PT_UID): Likewise.
3731 (DECL_PT_UID_SET_P): Likewise.
3732 (struct tree_decl_minimal): Add pt_uid member.
3733 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
3734 (pt_solution_empty_p): Declare.
3735 (pt_solution_set): Adjust.
3736 (ipa_escaped_pt): Declare.
3737 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
3738 * gimple-pretty-print.c (pp_points_to_solution): New function.
3739 (dump_gimple_call): Dump call clobber/use information.
3740 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
3741 * tree-pass.h (TDF_ALIAS): New dump option.
3742 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
3743 * doc/invoke.texi (-fipa-pta): Update documentation.
3745 2010-04-15 Richard Guenther <rguenther@suse.de>
3747 * Makefile.in (OBJS-common): Add gimple-fold.o.
3748 (gimple-fold.o): New rule.
3749 * tree.h (maybe_fold_offset_to_reference,
3750 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
3752 * gimple.h: ... here.
3753 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
3754 may_propagate_address_into_dereference): Move prototypes ...
3755 * gimple.h: ... here.
3756 * tree-ssa-ccp.c (get_symbol_constant_value,
3757 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
3758 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
3759 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
3760 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
3761 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
3762 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
3763 gimplify_and_update_call_from_tree): Move ...
3764 * gimple-fold.c: ... here. New file.
3765 (ccp_fold_builtin): Rename to ...
3766 (gimple_fold_builtin): ... this.
3767 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
3769 2010-04-15 Richard Guenther <rguenther@suse.de>
3771 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
3772 fit_double_type, force_fit_type_double, add_double_with_sign,
3773 neg_double, mul_double_with_sign, lshift_double, rshift_double,
3774 lrotate_double, rrotate_double, div_and_round_double): Move ...
3775 * double-int.c: ... here.
3776 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
3777 add_double, neg_double, mul_double_with_sign, mul_double,
3778 lshift_double, rshift_double, lrotate_double, rrotate_double,
3779 div_and_round_double): Move prototypes ...
3780 * double-int.h: ... here.
3782 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
3785 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
3786 matching constraints to ensure inputs match the output.
3788 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
3791 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
3792 in an input-only operand.
3794 2010-04-15 Anatoly Sokolov <aesok@post.ru>
3796 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
3797 (double_int_not, double_int_lshift, double_int_rshift): Declare.
3798 (double_int_negative_p): Convert to static inline function.
3799 * double-int.c (double_int_lshift, double_int_lshift): New functions.
3800 (double_int_negative_p): Remove.
3801 * tree.h (lshift_double, rshift_double):
3802 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
3803 * fold-const.c (fold_convert_const_int_from_real,
3804 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
3805 (lshift_double): Change type of arith argument to bool.
3806 (rshift_double): Change type of arith argument to bool. Correct
3808 * expmed.c (mask_rtx, lshift_value): (Ditto.).
3810 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
3813 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
3814 at the start and end of the then/else blocks, and omit them from the
3816 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
3817 argument; all callers changed. Pass zero to old_insns_match_p instead.
3818 (flow_find_head_matching_sequence): New function.
3819 (old_insns_match_p): Check REG_EH_REGION notes for calls.
3820 * basic-block.h (flow_find_cross_jump,
3821 flow_find_head_matching_sequence): Declare functions.
3823 2010-04-14 Jason Merrill <jason@redhat.com>
3826 * c-common.c (attribute_takes_identifier_p): New fn.
3827 * c-common.h: Declare it.
3829 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
3831 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
3833 (*udivmod<mode>4): Ditto.
3835 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
3837 * config/i386/i386.md (maxmin_int): Rename code attribute from
3838 maxminiprefix and update all users.
3839 (maxmin_float): Ditto from maxminfprefix.
3840 (logic): Ditto from logicprefix.
3841 (absneg_mnemonic): Ditto from absnegprefix.
3842 * config/i386/mmx.md: Update all users of maxminiprefix,
3843 maxminfprefix and logicprefix for rename.
3844 * config/i386/sse.md: Ditto.
3845 * config/i386/sync.md (sync_<code><mode>): Update for
3848 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
3851 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
3852 warnings converted to errors.
3854 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
3856 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
3857 used insn_type variable.
3858 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
3859 to avoid set-but-not-used warning.
3861 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
3863 * df-core.c (df_ref_debug): Change format string placeholder
3865 * dwarf2asm.c (dw2_asm_output_data_raw,
3866 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
3867 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
3868 * dwarf2out.c (output_cfi, output_cfi_directive,
3869 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
3870 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
3872 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
3873 * print-rtl.c (print_rtx): Ditto.
3875 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3878 * builtins.c (expand_builtin_pow_root): New function to expand pow
3879 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
3880 series of sqrt and cbrt calls under -ffast-math.
3881 (expand_builtin_pow): Call it.
3883 2010-04-14 Michael Matz <matz@suse.de>
3885 PR tree-optimization/42963
3886 * tree-cfg.c (touched_switch_bbs): New static variable.
3887 (group_case_labels_stmt): New function broken out from ...
3888 (group_case_labels): ... here, use the above.
3889 (start_recording_case_labels): Allocate touched_switch_bbs.
3890 (end_recording_case_labels): Deallocate it, call
3891 group_case_labels_stmt.
3892 (gimple_redirect_edge_and_branch): Remember index of affected BB.
3894 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
3896 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
3899 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
3901 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
3903 2010-04-13 Jan Hubicka <jh@suse.cz>
3905 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
3906 of optimized out static functions.
3907 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
3908 cost computation. Also sanity check for overflows.
3909 (update_caller_keys): Update cgraph_edge_badness call; properly
3910 update fibheap and sanity check that it is up to date.
3911 (add_new_edges_to_heap): Update cgraph_edge_badness.
3912 (cgraph_decide_inlining_of_small_function): Likewise;
3913 add sanity checking that badness in heap is up to date;
3914 improve dumping of reason; Update badness of calls to the
3915 offline copy of function currently inlined; dump badness
3916 of functions not inlined because of unit growth limits.
3918 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
3921 * c-common.c (pointer_int_sum): Disregard overflow that occured only
3922 because of sign-extension change when converting to sizetype here...
3923 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
3925 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
3926 the folding to constants. Remove redundant final conversion.
3927 (fold_binary) <associate>: Do not associate if the re-association of
3928 constants alone overflows.
3929 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
3930 to the end of the list.
3931 (multiple_of_p) <COND_EXPR>: New case.
3933 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
3935 * opt-functions.awk (opt_sanitized_name): New.
3937 * optc-gen.awk: Use it
3938 * opth-gen.awk: Use it.
3940 2010-04-13 Martin Jambor <mjambor@suse.cz>
3942 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
3943 (sra_modify_assign): Delete stmts loading dead data even if racc has no
3944 children. Call replace_uses_with_default_def_ssa_name to handle
3947 2010-04-13 Michael Matz <matz@suse.de>
3950 * builtins.c (expand_builtin_interclass_mathfn): Also create
3951 a register if the predicate doesn't match.
3953 2010-04-13 Diego Novillo <dnovillo@google.com>
3955 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
3956 * c-pch.c: Include timevar.h.
3957 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
3958 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
3959 * ggc-common.c: Include timevar.h.
3960 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
3961 * timevar.def (TV_PCH_SAVE): Define.
3962 (TV_PCH_CPP_SAVE): Define.
3963 (TV_PCH_PTR_REALLOC): Define.
3964 (TV_PCH_PTR_SORT): Define.
3965 (TV_PCH_RESTORE): Define.
3966 (TV_PCH_CPP_RESTORE): Define.
3968 2010-04-13 Michael Matz <matz@suse.de>
3970 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
3972 (can_reassociate_p): New function.
3973 (break_up_subtract_bb, reassociate_bb): Use it.
3975 2010-04-13 Richard Guenther <rguenther@suse.de>
3978 * builtins.c (c_readstr): Fix assert.
3980 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
3982 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
3983 when generating cltd insn.
3985 (*ashl<mode>3_1): Remove special handling for register operand 2.
3986 (*ashlsi3_1_zext): Ditto.
3987 (*ashlhi3_1): Ditto.
3988 (*ashlhi3_1_lea): Ditto.
3989 (*ashlqi3_1): Ditto.
3990 (*ashlqi3_1_lea): Ditto.
3991 (*<shiftrt_insn><mode>3_1): Ditto.
3992 (*<shiftrt_insn>si3_1_zext): Ditto.
3993 (*<shiftrt_insn>qi3_1_slp): Ditto.
3994 (*<rotate_insn><mode>3_1): Ditto.
3995 (*<rotate_insn>si3_1_zext): Ditto.
3996 (*<rotate_insn>qi3_1_slp): Ditto.
3998 2010-04-13 Richard Guenther <rguenther@suse.de>
4000 * tree-ssa-structalias.c (callused_id): Remove.
4001 (call_stmt_vars): New.
4002 (get_call_vi): Likewise.
4003 (lookup_call_use_vi): Likewise.
4004 (lookup_call_clobber_vi): Likewise.
4005 (get_call_use_vi): Likewise.
4006 (get_call_clobber_vi): Likewise.
4007 (make_transitive_closure_constraints): Likewise.
4008 (handle_const_call): Adjust to do per-call call-used handling.
4009 (handle_pure_call): Likewise.
4010 (find_what_var_points_to): Remove general callused handling.
4011 (init_base_vars): Likewise.
4012 (init_alias_vars): Initialize call_stmt_vars.
4013 (compute_points_to_sets): Process call-used and call-clobbered
4014 vars for call statements.
4015 (delete_points_to_sets): Free call_stmt_vars.
4017 2010-04-13 Richard Guenther <rguenther@suse.de>
4019 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
4020 Only add RW dependence for dependence distance zero.
4021 Adjust maximal vectorization factor according to dependences.
4022 Move alignment handling ...
4023 (vect_find_same_alignment_drs): ... here. New function.
4024 (vect_analyze_data_ref_dependences): Adjust.
4025 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
4026 (vect_analyze_data_refs): Adjust minimal vectorization factor
4027 according to data references.
4028 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
4029 dependences before determining the vectorization factor.
4030 Analyze alignment after determining the vectorization factor.
4031 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
4032 dependences before alignment.
4033 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
4035 (vect_analyze_data_refs): Likewise.
4036 (MAX_VECTORIZATION_FACTOR): New define.
4038 2010-04-13 Duncan Sands <baldrick@free.fr>
4040 * except.h (lang_eh_type_covers): Remove.
4041 * except.c (lang_eh_type_covers): Likewise.
4043 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4044 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4046 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
4047 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
4048 UNITS_PER_LONG where it is ABI relevant.
4049 (s390_return_addr_rtx): Likewise.
4050 (s390_back_chain_rtx): Likewise.
4051 (s390_frame_area): Likewise.
4052 (s390_frame_info): Likewise.
4053 (s390_initial_elimination_offset): Likewise.
4054 (save_gprs): Likewise.
4055 (s390_emit_prologue): Likewise.
4056 (s390_emit_epilogue): Likewise.
4057 (s390_function_arg_advance): Likewise.
4058 (s390_function_arg): Likewise.
4059 (s390_va_start): Likewise.
4060 (s390_gimplify_va_arg): Likewise.
4061 (s390_function_profiler): Likewise.
4062 (s390_optimize_prologue): Likewise.
4063 (s390_rtx_costs): Likewise.
4064 (s390_secondary_reload): Likewise.
4065 (s390_promote_function_mode): Likewise.
4066 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
4067 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
4068 registers available.
4069 (s390_unwind_word_mode): New function.
4070 (s390_function_value): Split 64 bit values into register pair if
4071 used as return value.
4072 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
4073 function call parameters. Handle parallels.
4074 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
4075 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
4076 (DWARF_CIE_DATA_ALIGNMENT): New macro.
4077 (s390_expand_setmem): Remove unused variable src_addr.
4078 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
4079 deal with 64 bit registers.
4080 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
4081 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
4082 (UNITS_PER_LONG): New macro.
4083 * libjava/include/s390-signal.h: Define extended ucontext
4084 structure containing the upper halfs of the 64 bit registers.
4086 2010-04-13 Simon Baldwin <simonb@google.com>
4088 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
4090 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
4092 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
4093 rvalue on the RHS if the LHS is of a non-renamable type.
4094 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
4096 2010-04-13 Matthias Klose <doko@ubuntu.com>
4098 * gcc.c (cc1_options): Handle -iplugindir before processing
4099 the cc1 spec. Only add -iplugindir once.
4100 (cpp_unique_options): Add -iplugindir option if -fplugin* options
4102 * common.opt (iplugindir): Remove `Separate' property, initialize.
4103 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
4105 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
4106 (distclean): Remove plugin dir.
4107 * doc/invoke.texi: Document -iplugindir.
4109 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
4111 * doc/plugins.texi (Loading Plugins): Document short
4112 -fplugin=foo option.
4113 (Plugin API): Mention default_plugin_dir_name function.
4115 * gcc.c (find_file_spec_function): Add new declaration.
4116 (static_spec_func): Use it for "find-file".
4117 (find_file_spec_function): Add new function.
4118 (cc1_options): Add -iplugindir option if -fplugin* options found.
4120 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
4122 * plugin.c (add_new_plugin): Updated comment, and handle short
4124 (default_plugin_dir_name): Added new function.
4126 * common.opt (iplugindir): New option to set the plugin directory.
4128 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
4130 * config/i386/i386.md (any_rotate): New code iterator.
4131 (rotate_insn): New code attribute.
4133 (SWIM124): New mode iterator.
4134 (<rotate_insn>ti3): New expander.
4135 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
4136 any_rotate code iterator.
4137 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
4138 using any_rotate code iterator and SWIM124 mode iterator.
4139 (ix86_rotlti3): New insn_and_split pattern.
4140 (ix86_rotrti3): Ditto.
4141 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
4142 ix86_rotl{di,ti}3 patterns.
4143 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
4144 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
4145 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
4146 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
4147 code iterator and SWI mode iterator.
4148 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
4149 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
4151 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
4152 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
4153 (bswap rotatert splitter): Add splitter.
4154 (bswap splitter): Macroize splitter using any_rotate code iterator.
4155 Add insn predicate to split only for TARGET_USE_XCHGB or when
4156 optimizing function for size.
4158 2010-04-12 Steve Ellcey <sje@cup.hp.com>
4160 * config/pa/pa.c (emit_move_sequence): Remove use of
4161 deleted variable flag_argument_noalias.
4163 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4165 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
4167 Add to unsupported targets list.
4168 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
4169 sparc*-sun-solaris2.[567]* from target lists.
4170 * configure: Regenerate.
4171 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
4173 Remove Solaris 7 patch references.
4174 (Specific, sparc-sun-solaris2.7): Removed.
4175 (sparc-sun-solaris2*): Update Solaris 7 example.
4176 (sparc64-*-solaris2*): Likewise.
4178 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4180 * config.build (alpha*-dec-osf4*): Remove.
4181 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
4182 of obsolete configurations.
4183 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
4185 * config/alpha/t-osf4: Renamed to ...
4186 * config/alpha/t-osf5: ... this.
4187 * config/alpha/osf.h: Renamed to ...
4188 * config/alpha/osf5.h: ... this.
4189 Merged old osf5.h contents.
4191 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
4192 (EXTRA_SPECS): Removed.
4193 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
4194 reflect removal of Tru64 UNIX V4.0/V5.0 support.
4197 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4199 * doc/contrib.texi (Contributors, Rainer Orth): Update.
4201 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
4204 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
4205 __thiscall convention.
4207 2010-04-12 Steve Ellcey <sje@cup.hp.com>
4209 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
4211 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
4213 2010-04-12 Steve Ellcey <sje@cup.hp.com>
4215 * function.c (assign_parms_initialize_all): Add unused attribute
4218 2010-04-12 Richard Guenther <rguenther@suse.de>
4220 * gsstruct.def (GSS_CALL): New.
4221 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
4222 * gimple.h: Include tree-ssa-alias.h.
4223 (struct gimple_statement_call): New.
4224 (union gimple_statement_struct_d): Add gimple_call member.
4225 (gimple_call_reset_alias_info): Declare.
4226 (gimple_call_use_set): New function.
4227 (gimple_call_clobber_set): Likewise.
4228 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
4229 * gimple.c (gimple_call_reset_alias_info): New function.
4230 (gimple_build_call_1): Call it.
4231 * lto-streamer-in.c (input_gimple_stmt): Likewise.
4232 * tree-inline.c (remap_gimple_stmt): Likewise.
4233 (expand_call_inline): Remove callused handling.
4234 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
4235 * tree-dfa.c (dump_variable): Likewise.
4236 * tree-parloops.c (parallelize_loops): Likewise.
4237 * tree-ssa.c (init_tree_ssa): Likewise.
4238 (delete_tree_ssa): Likewise.
4239 * tree-flow-inline.h (is_call_used): Remove.
4240 * tree-flow.h (struct gimple_df): Remove callused member.
4241 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
4242 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
4243 (ref_maybe_used_by_call_p_1): Simplify.
4244 (call_may_clobber_ref_p_1): Likewise.
4245 * tree-ssa-structalias.c (compute_points_to_sets): Set
4246 the call stmt used and clobbered sets.
4247 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
4248 (find_tail_calls): Verify the tail call.
4250 2010-04-12 Richard Guenther <rguenther@suse.de>
4252 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
4253 single-iteration always-inline inlining.
4254 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
4255 (cgraph_decide_inlining): Do not handle always-inline specially.
4256 (try_inline): Remove always-inline cycle detection special case.
4257 Do not recurse on always-inlines.
4258 (cgraph_early_inlining): Do not iterate if not optimizing.
4259 (cgraph_gate_early_inlining): remove.
4260 (pass_early_inline): Run unconditionally.
4261 (gate_cgraph_decide_inlining): New function.
4262 (pass_ipa_inline): Use it. Do not run the IPA inliner if
4263 not inlining or optimizing.
4264 (cgraph_decide_inlining_of_small_functions): Also consider
4265 always-inline functions.
4266 (cgraph_default_inline_p): Return true for nodes which should
4267 disregard inline limits.
4268 (estimate_function_body_sizes): Assume zero size and time for
4269 nodes which are marked as disregarding inline limits.
4270 (cgraph_decide_recursive_inlining): Do not perform recursive
4271 inlining on always-inline nodes.
4273 2010-04-12 Jakub Jelinek <jakub@redhat.com>
4276 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
4277 for exprs satisfying handled_component_p.
4279 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
4281 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
4282 non-constant aggregate elements.
4284 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
4285 is a real initialization.
4287 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
4290 * c-decl.c (start_function): Move forward check for nested function.
4292 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
4294 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
4295 * config/sh/sh.c: Include reload.h.
4296 (sh_legitimize_reload_address): New.
4297 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
4298 sh_legitimize_reload_address.
4300 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
4302 * config/sh/sh.md (*movqi_pop): New insn pattern.
4303 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
4305 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
4307 * config/i386/i386.md (any_shiftrt): New code iterator.
4308 (shiftrt_insn): New code attribute.
4310 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
4311 using any_shiftrt code iterator.
4312 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
4313 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
4314 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
4315 pattern from corresponding peephole2 patterns.
4316 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
4317 using any_shiftrt code iterator.
4318 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
4319 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
4320 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
4321 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
4322 *{ashr,lshr}<mode>3_cmp_zext.
4323 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
4325 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
4327 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
4329 (*lshr<mode>3_cconly): Ditto.
4331 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
4333 * config/i386/i386.md (lshr<mode>3): Macroize expander from
4334 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
4335 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
4336 pattern from *lshr{di,ti}3_1 and corresponding splitters using
4338 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
4339 from corresponding peephole2 patterns.
4340 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
4341 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
4342 and *lshrdi3_1_rex64 using SWI mode iterator.
4343 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
4344 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
4345 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
4346 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
4347 and *lshrdi3_cmp_rex64 using SWI mode iterator.
4348 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
4349 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
4350 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
4351 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
4354 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
4356 * config/i386/i386.md (ashr<mode>3): Macroize expander from
4357 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
4358 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
4359 pattern from *ashr{di,ti}3_1 and corresponding splitters using
4361 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
4362 from corresponding peephole2 patterns.
4363 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
4364 (ashrsi3_cvt): Rename from ashrsi3_31.
4365 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
4366 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
4367 and x86_64_shift_adj_3 using SWI48 mode iterator.
4368 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
4369 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
4370 and *ashrdi3_1_rex64 using SWI mode iterator.
4371 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
4372 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
4373 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
4374 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
4375 and *ashrdi3_cmp_rex64 using SWI mode iterator.
4376 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
4377 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
4378 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
4379 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
4381 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
4382 * config/i386/i386.c (ix86_split_ashr): Update for renamed
4383 x86_shift<mode>_adj_3 expanders.
4385 2010-04-10 Wei Guozhi <carrot@google.com>
4388 * config/arm/arm.c (arm_pic_static_addr): New function.
4389 (legitimize_pic_address): Call arm_pic_static_addr when it detects
4391 (arm_output_addr_const_extra): Output expression for new pattern.
4392 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
4394 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
4396 * ira-costs.c (record_reg_classes): Ignore alternatives that are
4399 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
4400 * web.c: Include "insn-config.h" and "recog.h".
4401 (union_match_dups): New function.
4402 (web_main): Call it.
4403 (union_defs): Don't try to recognize match_dups.
4405 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
4406 if doing so would replace the entire pattern.
4408 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
4412 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
4413 and splitter pattern. Change splitter operand 1 predicate to
4416 2010-04-09 Martin Jambor <mjambor@suse.cz>
4418 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
4419 lattices are addresses of CONST_DECLs with the same initial value.
4420 (ipcp_print_all_lattices): Print values of CONST_DECLs.
4421 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
4423 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
4424 Bernd Schmidt <bernds@codesourcery.com>
4426 * loop-invariant.c (replace_uses): New static function.
4427 (move_invariant_reg): Use it to ensure we can replace the uses.
4429 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
4431 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
4433 (picochip_override_options): Enable section anchors only above -O1.
4434 (picochip_reorg): Fixed a couple of build warnings.
4436 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4438 * configure.ac (plugin -rdynamic test): Log result.
4439 * configure: Regenerate.
4440 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
4441 (RDYNAMIC_SPEC): Define.
4442 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
4444 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4446 * configure.ac: Determine Sun ld version numbers.
4447 (comdat_group): Restrict GNU ld version checks to gld.
4448 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
4449 (enable_comdat): Support --enable-comdat.
4450 * configure: Regenerate.
4451 * doc/install.texi (Configuration): Document --enable-comdat.
4453 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4455 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
4456 * config/sol2-gld.h: ... here.
4457 * config.gcc (sparc*-*-solaris2*): Reflect this.
4458 (i[34567]86-*-solaris2*): Use it.
4460 2010-04-09 Steve Ellcey <sje@cup.hp.com>
4462 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
4464 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
4466 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4469 * diagnostic.c (diagnostic_initialize): Initialize
4470 some_warnings_are_errors.
4471 (diagnostic_finish): New.
4472 (diagnostic_action_after_output): Call it before exiting.
4473 (diagnostic_report_diagnostic): Do not print message here. Set
4474 some_warnings_are_errors.
4475 * diagnostic.h (diagnostic_context): Delete
4476 issue_warnings_are_errors_message. Add some_warnings_are_errors.
4477 (diagnostic_finish): Declare.
4478 * toplev.c (toplev_main): Call it before exit.
4480 2010-04-09 Jason Merrill <jason@redhat.com>
4483 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
4484 for incomplete type.
4487 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
4488 based on a warning flag.
4490 2010-04-09 Richard Guenther <rguenther@suse.de>
4492 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
4494 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
4497 * varasm.c (default_assemble_visibility): Wrap vars that are
4498 set, but unused, by targets without GAS.
4499 * config/rs6000/rs6000.c: (paired_emit_vector_compare):
4500 Remove set, but unused, vars.
4501 (rs6000_legitimize_tls_address): Likewise.
4502 (altivec_expand_dst_builtin): Likewise.
4503 * config/darwin.c (machopic_classify_symbol): Likewise.
4504 (machopic_indirection_name): Likewise.
4506 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
4508 * config/i386/i386.md (DWI): New mode iterator.
4509 (S): New mode attribute.
4510 (shift_operand): Ditto.
4511 (shift_immediate_operand): Ditto.
4512 (ashl_input_operand): Ditto.
4513 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
4514 using SDWIM mode iterator.
4515 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
4516 pattern from *ashl{di,ti}3_1 and corresponding splitters using
4518 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
4519 from corresponding peephole2 patterns.
4520 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
4521 and x86_64_shift_adj_1 using SWI48 mode iterator.
4522 (x86_shift<mode>_adj_2): Ditto.
4523 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
4524 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
4525 using SWI48 mode iterator.
4526 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
4527 *ashldi3_cmp_rex64 using SWI mode iterator.
4528 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
4529 *ashldi3_cconly_rex64 using SWI mode iterator.
4530 * config/i386/i386.c (ix86_split_ashl): Update for renamed
4531 x86_shift<mode>_adj_{1,2}.
4532 (ix86_split_ashr): Ditto.
4533 (ix86_split_lshr): Ditto.
4535 2010-04-09 Richard Guenther <rguenther@suse.de>
4537 * target.h (builtin_conversion): Pass in input and output types.
4538 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
4539 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
4540 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
4541 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
4543 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
4545 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
4547 2010-04-09 Richard Guenther <rguenther@suse.de>
4550 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
4552 2010-04-09 Richard Guenther <rguenther@suse.de>
4554 * tree-vectorizer.h (struct _stmt_vec_info): Document
4555 that vectype is the type of the LHS.
4556 (supportable_widening_operation, supportable_narrowing_operation):
4557 Get both input and output vector types as arguments.
4558 (vect_is_simple_use_1): Declare.
4559 (get_same_sized_vectype): Likewise.
4560 * tree-vect-loop.c (vect_determine_vectorization_factor):
4561 Set STMT_VINFO_VECTYPE to the vector type of the def.
4562 (vectorizable_reduction): Adjust.
4563 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
4564 Adjust. Specify the output vector type.
4565 (vect_pattern_recog_1): Adjust.
4566 * tree-vect-stmts.c (get_same_sized_vectype): New function.
4567 (vectorizable_call): Adjust.
4568 (vectorizable_conversion): Likewise.
4569 (vectorizable_operation): Likewise.
4570 (vectorizable_type_demotion): Likewise.
4571 (vectorizable_type_promotion): Likewise.
4572 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
4574 (vect_is_simple_use_1): New function.
4575 (supportable_widening_operation): Get both input and output
4577 (supportable_narrowing_operation): Likewise.
4578 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
4580 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
4582 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
4583 __thiscall and _thiscall as predefined macros.
4584 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
4585 thiscall attribute handling.
4586 (ix86_comp_type_attributes): Likewise.
4587 (ix86_function_regparm): Likewise.
4588 (ix86_return_pops_args): Likewise.
4589 (init_cumulative_args): Likewise.
4590 (find_drap_reg): Likewise.
4591 (ix86_static_chain): Likewise.
4592 (x86_this_parameter): Likewise.
4593 (x86_output_mi_thunk): Likewise.
4594 (ix86_attribute_table): Add description for thiscall attribute.
4595 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
4596 * doc/extend.texi: Add documentation for thiscall.
4598 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4601 * c.opt (Wint-to-pointer-cast): Available in C++.
4602 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
4604 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
4606 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
4607 * calls.c (expand_call): Pass the function type to aggregate_value_p.
4608 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
4609 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
4610 function type instead. Reorder and simplify checks.
4612 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
4614 2010-04-08 Jing Yu <jingyu@google.com>
4615 Zdenek Dvorak <ook@ucw.cz>
4617 PR tree-optimization/42720
4618 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
4619 loop unswitch conditions here from ...
4620 (tree_unswitch_single_loop): ... here.
4622 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
4624 * tree-if-conv.c: Fix comments and simplify logic.
4626 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
4628 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
4629 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
4630 (main_tree_if_conversion): Update call to tree_if_conversion.
4632 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
4635 * doc/invoke.texi (-b,-V): Delete.
4636 * doc/tm.texi: Do not mention -b.
4637 * gcc.c (display_help): Delete -b and -V.
4638 (process_command): Delete -b and -V.
4639 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
4641 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
4642 Wolfgang Gellerich <gellerich@de.ibm.com>
4644 Implement target hook for loop unrolling
4645 * target.h (loop_unroll_adjust): Add a new target hook function.
4646 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
4647 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
4648 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
4649 (s390_loop_unroll_adjust): Implement the new target hook for s390.
4650 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
4652 (decide_unroll_stupid): Likewise.
4654 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4657 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
4659 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4661 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
4662 (Specific, *-*-solaris2*): Likewise.
4663 Don't prefer Sun as over GNU as.
4665 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
4667 * config/s390/s390.c (override_options): Adjust the z10 defaults
4668 for max-unroll-times, max-completely-peeled-insns
4669 and max-completely-peel-times.
4671 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4673 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
4674 instructions for z10.
4675 (s390_expand_setmem): Likewise.
4676 (s390_expand_cmpmem): Likewise.
4678 2010-04-08 Richard Guenther <rguenther@suse.de>
4680 PR tree-optimization/43679
4681 * tree-ssa-pre.c (eliminate): Only propagate copies.
4683 2010-04-08 Jakub Jelinek <jakub@redhat.com>
4686 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
4687 set but not used variable warning.
4689 2010-04-08 Wei Guozhi <carrot@google.com>
4692 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
4693 (arm_size_rtx_costs): Call the new function when optimized for size.
4695 2010-04-08 Jakub Jelinek <jakub@redhat.com>
4698 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
4699 op0 is not a MEM, just return NULL instead of assertion
4701 (discover_nonconstant_array_refs): Don't walk debug stmts.
4703 2010-04-08 Doug Kwan <dougkwan@google.com>
4705 * configure.ac: Recognize gold and do not use its version number
4706 to test ld features.
4707 * configure: Regenerate.
4709 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
4712 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
4713 (negate_value): Move code to push elements to broken_up_substracts ...
4714 (eliminate_plus_minus_pair): ... here. Push operands that have no
4715 negative pair to plus_negates.
4716 (repropagate_negates, init_reassoc, fini_reassoc): Update.
4718 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4720 * doc/install.texi (Configuration): Move description of
4721 --enable-lto, --with-libelf*, --enable-gold from Java section to
4724 * doc/generic.texi (Working with declarations)
4725 (Function Properties, C and C++ Trees): Fix typos.
4726 * doc/sourcebuild.texi (Top Level): Likewise.
4728 2010-04-07 Jakub Jelinek <jakub@redhat.com>
4731 * tree.h (DECL_READ_P): Define.
4732 (struct tree_decl_common): Add decl_read_flag.
4733 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
4734 a set but not used warning.
4735 (merge_decls): Merge DECL_READ_P flag.
4736 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
4737 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
4738 * c-common.c (handle_used_attribute, handle_unused_attribute):
4740 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
4742 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
4744 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
4745 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
4746 c_parser_binary_expression, c_parser_cast_expression,
4747 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
4748 Call default_function_array_read_conversion instead of
4749 default_function_array_conversion where needed.
4750 (c_parser_unary_expression, c_parser_conditional_expression,
4751 c_parser_postfix_expression_after_primary, c_parser_initelt):
4752 Likewise. Call mark_exp_read where needed.
4753 (c_parser_statement_after_labels, c_parser_asm_operands,
4754 c_parser_typeof_specifier, c_parser_sizeof_expression,
4755 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
4757 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
4759 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
4760 (warn_unused_but_set_parameter): Default to warn_unused
4762 * doc/invoke.texi: Document -Wunused-but-set-variable and
4763 -Wunused-but-set-parameter.
4765 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
4766 used count variable.
4767 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
4768 when operandN variables aren't used in the body of the expander
4770 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
4771 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
4772 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
4773 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
4774 FOR_EACH_IMM_USE_ON_STMT): Likewise.
4775 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
4776 * tree.c (PROCESS_ARG): Likewise.
4778 2010-04-07 Simon Baldwin <simonb@google.com>
4780 * diagnostic.h (diagnostic_override_option_index): New macro to
4781 set a diagnostic's option_index.
4782 * c-tree.h (c_cpp_error): Add warning reason argument.
4783 * opts.c (_warning_as_error_callback): New.
4784 (register_warning_as_error_callback): Store callback for
4785 warnings enabled via enable_warning_as_error.
4786 (enable_warning_as_error): Call callback, minor code tidy.
4787 * opts.h (register_warning_as_error_callback): Declare.
4788 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
4789 response to -Werror=.
4790 (c_common_init_options): Register warning_as_error_callback in opts.c.
4791 * common.opt: Add -Wno-cpp option.
4792 * c-common.c (struct reason_option_codes_t): Map cpp warning
4793 reason codes to gcc option indexes.
4794 * (c_option_controlling_cpp_error): New function, lookup the gcc
4795 option index for a cpp warning reason code.
4796 * (c_cpp_error): Add warning reason argument, call
4797 c_option_controlling_cpp_error for diagnostic_override_option_index.
4798 * doc/invoke.texi: Document -Wno-cpp.
4800 2010-04-07 Richard Guenther <rguenther@suse.de>
4802 * ipa-reference.c (mark_load): Use get_base_address.
4803 (mark_store): Likewise.
4805 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
4806 inserting GIMPLE_NOPs into the IL.
4807 * tree-ssa-structalias.c (get_constraint_for_component_ref):
4808 Explicitly strip handled components and indirect references.
4810 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
4811 folding address expressions.
4812 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
4813 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
4814 operand_equal_p to compare decls.
4815 (ptr_deref_may_alias_decl_p): Likewise.
4816 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
4817 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
4818 Handle reversed comparison ops.
4819 * tree-sra.c (asm_visit_addr): Use get_base_address.
4820 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
4821 * ipa-reference.c (mark_address): Use get_base_address.
4823 2010-04-07 Richard Guenther <rguenther@suse.de>
4825 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
4826 Propagate constants everywhere.
4828 2010-04-07 Jakub Jelinek <jakub@redhat.com>
4831 * tree.c (MAX_INT_CACHED_PREC): Define.
4832 (nonstandard_integer_type_cache): New array.
4833 (build_nonstandard_integer_type): Cache results for precision
4834 <= MAX_INT_CACHED_PREC.
4836 2010-04-07 Richard Guenther <rguenther@suse.de>
4838 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
4839 -fargument-noalias-global, -fargument-noalias-anything): Remove.
4840 * common.opt: Likewise.
4841 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
4842 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
4843 (nonoverlapping_memrefs_p): Likewise.
4844 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
4845 * opts.c (common_handle_option): Handle OPT_fargument_alias,
4846 OPT_fargument_noalias, OPT_fargument_noalias_anything and
4847 OPT_fargument_noalias_global for backward compatibility.
4849 2010-04-07 Richard Guenther <rguenther@suse.de>
4851 PR tree-optimization/43270
4852 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
4853 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
4854 * tree-ssa-pre.c (phi_translate_1): Adjust.
4855 (fully_constant_expression): Split out vn_reference handling to ...
4856 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
4857 Fold reads from constant strings.
4858 (vn_reference_lookup): Handle fully constant references.
4859 (vn_reference_lookup_pieces): Likewise.
4860 * Makefile.in (expmed.o-warn): Add -Wno-error.
4862 2010-04-07 Martin Jambor <mjambor@suse.cz>
4864 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
4866 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
4869 * gcc.c: Add -static-libstdc++ to list of recognized options.
4871 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4873 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
4875 2010-04-07 Richard Guenther <rguenther@suse.de>
4878 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
4879 bases build simple mem attributes to retain points-to information.
4881 2010-04-07 Richard Guenther <rguenther@suse.de>
4884 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
4885 preserve points-to related information.
4887 2010-04-07 Richard Guenther <rguenther@suse.de>
4890 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
4891 discard plain indirect references.
4892 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
4893 * tree.c (tree_nop_conversion): Likewise.
4895 2010-04-07 Dodji Seketeli <dodji@redhat.com>
4898 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
4900 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
4902 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
4903 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
4905 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
4907 * tree-if-conv.c: Fix indentation and comments.
4909 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
4911 * tree-if-conv.c: Sort static functions in topological order.
4913 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
4915 * tree-if-conv.c: Fix indentation and comments.
4917 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
4920 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
4921 lang_hooks.types.type_for_size instead of
4922 build_nonstandard_integer_type.
4923 When converting an unsigned type to signed, double its precision.
4924 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
4925 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
4926 (graphite_create_new_loop_guard): When ub + 1 wraps around,
4929 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
4932 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
4933 POINTER_PLUS_EXPR for pointer types.
4935 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
4938 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
4939 * graphite-clast-to-gimple.c: Include langhooks.h.
4940 (max_signed_precision_type): New.
4941 (max_precision_type): Takes two types as arguments.
4942 (precision_for_value): New.
4943 (precision_for_interval): New.
4944 (gcc_type_for_interval): New.
4945 (gcc_type_for_value): New.
4946 (gcc_type_for_clast_term): New.
4947 (gcc_type_for_clast_red): New.
4948 (gcc_type_for_clast_bin): New.
4949 (gcc_type_for_clast_expr): Split up into several functions.
4950 (gcc_type_for_clast_eq): Rewritten.
4951 (compute_bounds_for_level): New.
4952 (compute_type_for_level_1): New.
4953 (compute_type_for_level): New.
4954 (gcc_type_for_cloog_iv): Removed.
4955 (gcc_type_for_iv_of_clast_loop): Rewritten.
4956 (graphite_create_new_loop): Compute the lower and upper bound types
4957 with gcc_type_for_clast_expr.
4958 (graphite_create_new_loop_guard): Same.
4959 (find_cloog_iv_in_expr): Removed.
4960 (compute_cloog_iv_types_1): Removed.
4961 (compute_cloog_iv_types): Removed.
4962 (gloog): Do not call compute_cloog_iv_types.
4963 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
4965 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
4966 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
4967 (GBB_CLOOG_IV_TYPES): Removed.
4969 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
4971 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
4972 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
4973 (detect_commutative_reduction): Same.
4975 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
4977 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
4978 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
4980 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
4981 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
4982 (rewrite_commutative_reductions_out_of_ssa): Same.
4983 * passes.c (execute_function_todo): Call verify_ssa for every pass
4984 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
4985 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
4986 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
4987 with an extra argument.
4988 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
4989 verify_ssa only when the extra argument is true.
4990 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
4991 with an extra argument.
4992 (tree_transform_and_unroll_loop): Same.
4994 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
4996 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
4997 for all the passes of the LNO having LOOP_CLOSED_SSA.
4998 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
4999 * tree-loop-distribution.c (pass_loop_distribution): Same.
5000 * tree-pass.h (TODO_verify_loops): Removed.
5001 * tree-ssa-loop.c (pass_tree_loop_init): Same.
5003 (pass_tree_unswitch): Same.
5004 (pass_predcom): Same.
5005 (pass_vectorize): Same.
5006 (pass_linear_transform): Same.
5007 (pass_graphite_transforms): Same.
5008 (pass_iv_canon): Same.
5009 (pass_complete_unroll): Same.
5010 (pass_complete_unrolli): Same.
5011 (pass_parallelize_loops): Same.
5012 (pass_loop_prefetch): Same.
5013 (pass_iv_optimize): Same.
5015 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
5018 * passes.c (init_optimization_passes): Move pass_lim before
5019 pass_copy_prop and pass_dce_loop.
5021 2010-04-06 Jakub Jelinek <jakub@redhat.com>
5024 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
5025 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
5026 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
5027 MULTI_* defines for 4 argument vpermil2p* builtins.
5029 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
5031 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
5032 * config/i386/i386.c (x86_maybe_negate_const_int): New.
5033 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
5034 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
5035 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
5036 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
5037 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
5038 Use x86_maybe_negate_const_int to output insn mnemonic.
5039 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
5040 check from instruction predicate. Update comments.
5041 * config/i386/sync.md (sync_add<mode>): Use
5042 x86_maybe_negate_const_int to output insn mnemonic.
5044 2010-04-06 Jan Hubicka <jh@suse.cz>
5046 PR tree-optimization/42906
5047 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
5048 IGNORE_SELF argument. Set visited_control_parents for fully
5050 (find_obviously_necessary_stmts): Update call of
5051 mark_control_dependent_edges_necessary.
5052 (propagate_necessity): Likewise. Handle PHI edges more curefully.
5054 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
5056 * config/i386/i386.md: Remove comment about 'e' and 'E'
5059 2010-04-06 Richard Guenther <rguenther@suse.de>
5061 PR tree-optimization/43627
5062 * tree-vrp.c (extract_range_from_unary_expr): Widenings
5063 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
5066 2010-04-06 Jakub Jelinek <jakub@redhat.com>
5068 * BASE-VER: Change to 4.6.0.
5071 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
5074 2010-04-06 Richard Guenther <rguenther@suse.de>
5077 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
5079 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5081 * doc/invoke.texi (Optimize Options): Document that LTO
5082 won't remove object access purely due to incompatible
5085 2010-04-04 Matthias Klose <doko@ubuntu.com>
5087 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
5088 Initialize variable.
5090 2010-04-03 Richard Guenther <rguenther@suse.de>
5093 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
5094 require a non-NULL MEM_OFFSET.
5096 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
5098 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
5099 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
5100 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
5101 config/alpha/predicates.md, config/arm/arm.md,
5102 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
5103 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
5104 config/darwin9.h, config/darwin.c, config/darwin.h,
5105 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
5106 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
5107 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
5108 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
5109 config/mips/mips.md, config/mn10300/mn10300.c,
5110 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
5111 config/rs6000/aix.h, config/rs6000/dfp.md,
5112 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
5113 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
5114 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
5115 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
5116 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
5117 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
5118 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
5119 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
5120 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
5121 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
5122 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
5123 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
5124 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
5125 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
5126 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
5127 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
5128 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
5129 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
5130 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
5131 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
5132 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
5133 opt-functions.awk, opth-gen.awk, params.def, passes.c,
5134 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
5135 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
5136 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
5137 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
5138 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
5139 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
5140 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
5141 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
5142 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
5143 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
5144 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
5145 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
5146 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
5147 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
5149 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5152 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
5153 * aclocal.m4: Regenerate.
5155 2010-04-02 Richard Guenther <rguenther@suse.de>
5157 PR tree-optimization/43629
5158 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
5159 if we have seen a constant value.
5161 2010-04-02 Joseph Myers <joseph@codesourcery.com>
5163 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
5165 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
5168 * arm.c (legitimize_tls_address): Adjust call to
5169 gen_tls_load_dot_plus_four.
5170 (arm_note_pic_base): New function.
5171 (arm_cannot_copy_insn_p): Use it.
5172 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
5175 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5180 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5182 * Makefile.in ($(out_object_file)): Depend on
5183 gt-$(basename $(notdir $(out_file))).h.
5185 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
5187 * config.gcc (lm32-*-rtems*): Add t-lm32.
5189 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
5191 * config.gcc: Add lm32-*-rtems*.
5192 * config/lm32/rtems.h: New file.
5194 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
5197 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
5199 2010-04-01 Jakub Jelinek <jakub@redhat.com>
5201 * dwarf2out.c (output_compilation_unit_header): For
5202 -gdwarf-4 use version 4 instead of version 3.
5203 (output_line_info): For version 4 and above emit additional
5204 maximum ops per insn header field.
5205 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
5207 * dwarf2out.c (is_c_family, is_java): Remove.
5208 (lower_bound_default): New function.
5209 (add_bound_info, gen_descr_array_type_die): Use it.
5211 2010-04-01 Dodji Seketeli <dodji@redhat.com>
5214 * dwarf2out.c (gen_variable_die): Allow debug info for variable
5215 re-declaration when it happens in a function.
5217 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
5219 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
5220 (cgraph_remove_function_insertion_hook): Same.
5221 (cgraph_call_function_insertion_hooks): Same.
5223 2010-04-01 Richard Guenther <rguenther@suse.de>
5226 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
5227 and TREE_THIS_VOLATILE.
5228 (copy_ref_info): Likewise.
5229 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
5230 * tree.c (build6_stat): Ignore side-effects of all but arg5
5231 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
5234 2010-04-01 Richard Guenther <rguenther@suse.de>
5236 PR tree-optimization/43607
5237 * ipa-type-escape.c (check_call): Do not access non-existing
5240 2010-04-01 Richard Guenther <rguenther@suse.de>
5244 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
5245 Jack Howarth <howarth@bromo.med.uc.edu>
5247 * tree-profile.c (tree_init_ic_make_global_vars): Make static
5250 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5252 * doc/install.texi (Prerequisites): Document libelf usability on
5253 IRIX 5/6 and Solaris 2.
5254 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
5255 Update GNU as, GNU ld requirements.
5256 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
5257 Document Sun Studio compiler download.
5258 Update and simplify as, ld recommendations.
5259 (Specific, *-*-solaris2.7): Note obsoletion, removal.
5261 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5263 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
5264 with_tune_32 to pentium4.
5266 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
5268 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
5270 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5272 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
5273 obsoletion, removal.
5275 Document GNU as requirement.
5276 Update configure requirements.
5277 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
5278 Recomment IRIX 6.5.18+.
5279 Document IDF/IDL requirement.
5280 Document GNU as requirement.
5281 Document GNU ld bootstrap failure.
5282 Remove freeware.sgi.com reference.
5284 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5286 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
5287 UNIX V4.0, V5.0 obsoletion, removal.
5288 Remove --with-gc=simple reference.
5289 Update VM requirements during bootstrap.
5290 Remove -oldas bootstrap description.
5291 Update binutils reference.
5292 Remove comparison failure note.
5294 2010-03-31 Richard Guenther <rguenther@suse.de>
5295 Zdenek Dvorak <ook@ucw.cz>
5296 Sebastian Pop <sebastian.pop@amd.com>
5299 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
5300 with multiple arguments.
5301 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
5303 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
5305 * graphite-dependences.c (print_pddr): Call print_pdr with an
5307 * graphite-poly.c (debug_pdr): Add an extra argument for the
5310 (print_pbb_domain): Same.
5312 (print_scop_context): Same.
5314 (print_cloog): Same.
5315 (debug_pbb_domain): Same.
5319 (debug_scop_context): Same.
5321 (debug_cloog): Same.
5322 (print_scop_params): Same.
5323 (debug_scop_params): Same.
5324 (print_iteration_domain): Same.
5325 (print_iteration_domains): Same.
5326 (debug_iteration_domain): Same.
5327 (debug_iteration_domains): Same.
5328 (print_scattering_function): Same.
5329 (print_scattering_functions): Same.
5330 (debug_scattering_function): Same.
5331 (debug_scattering_functions): Same.
5332 * graphite-poly.h (debug_pdr): Update declaration.
5334 (print_pbb_domain): Same.
5336 (print_scop_context): Same.
5338 (print_cloog): Same.
5339 (debug_pbb_domain): Same.
5343 (debug_scop_context): Same.
5345 (debug_cloog): Same.
5346 (print_scop_params): Same.
5347 (debug_scop_params): Same.
5348 (print_iteration_domain): Same.
5349 (print_iteration_domains): Same.
5350 (debug_iteration_domain): Same.
5351 (debug_iteration_domains): Same.
5352 (print_scattering_function): Same.
5353 (print_scattering_functions): Same.
5354 (debug_scattering_function): Same.
5355 (debug_scattering_functions): Same.
5357 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
5359 * graphite-poly.c (print_scattering_function_1): New.
5360 (print_scattering_function): Call it.
5361 (print_scop_params): Remove spaces at the end of lines.
5364 * graphite-poly.h (print_cloog): Declared.
5365 (debug_cloog): Declared.
5367 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
5369 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
5371 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
5372 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
5373 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
5374 to switch between adding the IV bump in loop->latch or in loop->header.
5376 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
5378 * graphite-poly.c (print_scattering_function): Pretty print following
5381 (print_pbb_domain): Same.
5382 (dump_gbb_cases): Same.
5383 (dump_gbb_conditions): Same.
5386 (print_scop_params): Same.
5387 (print_scop_context): Same.
5389 (print_pbb_body): New.
5390 (lst_indent_to): New.
5391 (print_lst): Start new lines with a #.
5392 * graphite-poly.h (pbb_bb): New.
5393 (pbb_index): Use pbb_bb.
5394 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
5396 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
5398 2010-03-31 Jakub Jelinek <jakub@redhat.com>
5400 * dwarf2out.c (size_of_die): For -gdwarf-4 use
5401 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
5402 and 0 instead of 1 for dw_val_class_flag.
5403 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
5404 dw_val_class_range_list, dw_val_class_loc_list,
5405 dw_val_class_lineptr and dw_val_class_macptr, use
5406 DW_FORM_flag_present for dw_val_class_flag and
5407 DW_FORM_exprloc for dw_val_class_loc.
5408 (output_die): For -gdwarf-4 print dw_val_class_loc
5409 size as uleb128 instead of 1 or 2 bytes and don't print
5410 anything for dw_val_class_flag.
5412 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
5413 instead of cselib_lookup following by tweaking locs->setting_insn.
5416 * cselib.c (cselib_process_insn): Clear cselib_current_insn
5417 even before returning from label, setjmp call or volatile asm
5420 2010-03-31 Richard Guenther <rguenther@suse.de>
5423 * cgraphunit.c (cgraph_output_in_order): Do not allocate
5424 temporary data on stack.
5426 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5428 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
5429 (PUSHSECTION_ASM_OP): Remove.
5430 (POPSECTION_ASM_OP): Remove.
5431 (PUSHSECTION_FORMAT): Remove.
5432 * config/sol2.h (PUSHSECTION_FORMAT): Define.
5433 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
5434 * config/sol2.c (solaris_output_init_fini): Use it.
5436 2010-03-31 Jie Zhang <jie@codesourcery.com>
5439 * opt-functions.awk (var_type_struct): Use signed char type
5440 for simple variables.
5442 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5444 * config/sol2.c: Include output.h.
5445 (solaris_assemble_visibility): New function.
5446 * config/t-sol2 (sol2.o): Add output.h dependency.
5447 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
5448 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
5451 2010-03-31 Jakub Jelinek <jakub@redhat.com>
5454 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
5455 V2SImode or XFmode on PRE_DEC.
5458 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
5461 2010-03-31 Jie Zhang <jie@codesourcery.com>
5464 * reload.h (caller_save_initialized_p): Declare.
5465 * toplev.c (backend_init_target): Don't call
5466 init_caller_save but set caller_save_initialized_p to false.
5467 * caller-save.c (caller_save_initialized_p): Define.
5468 (init_caller_save): Check caller_save_initialized_p.
5469 * ira.c (ira): Call init_caller_save if flag_caller_saves.
5471 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5474 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
5475 and soft-fp/t-softfp to tmake_file.
5476 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
5477 (LIBGCC2_TF_CEXT): Define.
5480 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
5483 * cselib.c (n_useless_values): Document handling of debug locs.
5484 (n_useless_debug_values, n_debug_values): New variables.
5485 (new_elt_loc_list): Don't add to debug values, keep count.
5486 (promote_debug_loc): New.
5487 (cselib_reset_table): Zero new variables.
5488 (entry_and_rtx_equal_p): Promote debug locs.
5489 (discard_useless_locs): Increment n_useless_debug_values for
5491 (remove_useless_values): Adjust n_useless_values and n_debug_values
5492 with n_useless_debug_values.
5493 (add_mem_for_addr): Promote debug locs.
5494 (cselib_lookup_mem): Likewise.
5495 (cselib_lookup_addr): Renamed to...
5496 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
5497 (cselib_log_lookup): ... this. Turn into...
5498 (cselib_lookup_addr): ... new wrapper.
5499 (cselib_lookup_from_insn): New.
5500 (cselib_invalidate_regno): Increment n_useless_debug_values for
5502 (cselib_invalidate_mem): Likewise.
5503 (cselib_process_insn): Take n_deleted and n_debug_values into
5504 account to guard remove_useless_value call.
5505 (cselib_finish): Zero n_useless_debug_values.
5506 * cselib.h (cselib_lookup_from_insn): Declare.
5507 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
5508 (sched_analyze_2): Likewise.
5510 2010-03-30 Jakub Jelinek <jakub@redhat.com>
5512 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
5514 (adjust_mems): Replace narrowing SUBREG of expression containing
5515 just PLUS, MINUS, MULT and ASHIFT of registers and constants
5516 with operations in the narrower mode.
5519 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
5520 regs_invalidated_by_call instead all call_used_reg_set registers.
5522 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
5525 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
5526 pointer comparisons with types_compatible_p.
5527 * tree-vect-stmts.c (vectorizable_call): Same.
5528 (vectorizable_condition): Same.
5530 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5532 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
5533 stack check if the mask would be zero.
5535 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
5536 Jack Howarth <howarth@bromo.med.uc.edu>
5538 * tree-profile.c (tree_init_ic_make_global_vars): Make static
5541 2010-03-30 Joseph Myers <joseph@codesourcery.com>
5544 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
5546 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
5547 Include ___unordxf2 and ___unordtf2.
5548 * config/i386/libgcc-glibc.ver: Do not define inheritance from
5551 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
5553 * config/lm32/t-lm32: New file.
5554 * config.gcc: Use the above file when targetting lm32.
5556 2010-03-28 Duncan Sands <baldrick@free.fr>
5558 * Makefile.in (PLUGIN_HEADERS): Add except.h.
5560 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
5563 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
5564 Improve vectorization cost model diagnostic.
5566 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
5569 * tree-vect-data-refs.c (vect_analyze_data_refs): When
5570 compute_data_dependences_for_loop returns false, early exit
5571 and output an extra diagnostic for the failed data reference
5574 2010-03-29 Richard Guenther <rguenther@suse.de>
5576 PR tree-optimization/43560
5577 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
5578 (can_sm_ref_p): Treat stores to readonly locations as trapping.
5580 2010-03-29 Jie Zhang <jie@codesourcery.com>
5583 * toplev.c (process_options): Set optimization_default_node
5584 and optimization_current_node.
5585 * opts.c (decode_options): Don't set optimization_default_node
5586 and optimization_current_node.
5588 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
5590 * config/rtems.h: Abandon -qrtems_debug.
5592 2010-03-28 Jan Hubicka <jh@suse.cz>
5594 PR tree-optimization/43505
5595 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
5596 map should not be copied.
5598 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5601 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
5602 cdtors, set DECL_PRESERVE_P.
5603 * ipa.c (cgraph_externally_visible_p): Return true if declaration
5606 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
5608 PR tree-optimization/43528
5609 * stor-layout.c (place_field): Check that constant fits into
5610 unsigned HWI when skipping calculation of MS bitfield layout.
5612 2010-03-27 Jan Hubicka <jh@suse.cz>
5615 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
5616 notice_global_symbol work.
5618 2010-03-27 Jakub Jelinek <jakub@redhat.com>
5620 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
5621 instead of dwarf2out_decl.
5622 (struct var_loc_node): Remove section_label field.
5623 (dwarf2out_function_decl): New function.
5624 (dwarf2out_var_location): Don't set section_label field.
5625 (dwarf2out_begin_function): Don't empty decl_loc_table here.
5627 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
5629 PR tree-optimization/43544
5630 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
5631 First argument for builtin vectorized function hook is now a
5632 tree to be able to distinguish between machine specific and
5634 * targhooks.c (default_builtin_vectorized_function): Ditto.
5635 * targhooks.h (default_builtin_vectorized_function): Ditto.
5636 * target.h (struct gcc_target): Ditto.
5637 * tree-vect-stmts.c (vectorizable_function): Ditto.
5638 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
5639 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
5642 2010-03-26 Joseph Myers <joseph@codesourcery.com>
5645 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
5646 nested binding iff it is a FUNCTION_DECL.
5647 (store_parm_decls_newstyle): Pass nested=true to bind for
5648 FUNCTION_DECLs amongst parameters.
5650 2010-03-26 Jakub Jelinek <jakub@redhat.com>
5652 * var-tracking.c (vt_expand_loc_callback): Don't run
5653 cselib_expand_value_rtx_cb in dummy mode if
5654 cselib_dummy_expand_value_rtx_cb returned false.
5656 * var-tracking.c (emit_note_insn_var_location): For one part
5657 notes with offset 0, don't add EXPR_LIST around the location.
5658 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
5659 add_location_or_const_value_attribute): Adjust for that change.
5662 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
5663 into first operand and location into second.
5664 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
5665 dw_cfi_oprnd_loc for DW_CFA_expression.
5666 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
5667 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
5668 assume first argument is regnum and second argument is location.
5670 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
5673 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
5674 of scratch register to DImode. Split to DImode comparison operator.
5675 Use SImode subreg of scratch register in the multiplication.
5676 (*cmp_sadd_sidi): Ditto.
5677 (*cmp_ssub_si): Ditto.
5678 (*cmp_ssub_sidi): Ditto.
5680 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
5683 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
5684 Remove invalid assert and wrong comment.
5686 2010-03-26 Jakub Jelinek <jakub@redhat.com>
5689 * flags.h (final_insns_dump_p): New extern.
5690 * final.c (final_insns_dump_p): New variable.
5691 (rest_of_clean_state): Set it before -fdump-final-insns=
5692 dumping, clear afterwards.
5693 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
5694 MEM_ALIAS_SET on MEMs.
5696 2010-03-26 David S. Miller <davem@davemloft.net>
5698 * configure.ac: Fix sparc GOTDATA_OP bug check.
5699 * configure: Rebuild.
5701 2010-03-26 Alan Modra <amodra@gmail.com>
5703 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
5705 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5707 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
5708 TLS_SECTION_ASM_FLAG.
5710 2010-03-25 Jakub Jelinek <jakub@redhat.com>
5713 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
5714 Clear first_function_block_is_cold.
5717 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
5718 argument if the argument is truth_value_p.
5720 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
5722 * config/rs6000/constraints.md: Update copyright year for my changes.
5725 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
5726 used in reg+reg addressing, swap registers.
5728 2010-03-24 Jakub Jelinek <jakub@redhat.com>
5731 * target.h (struct gcc_target): Add code_end hook.
5732 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
5734 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
5735 * toplev.c (compile_file): Call targetm.asm_out.code_end
5736 hook before unwind info/debug info output.
5737 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
5738 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
5739 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
5740 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
5741 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
5742 * config/i386/i386.c (ix86_file_end): Renamed to...
5743 (ix86_code_end): ... this. Make static. Don't call
5744 file_end_indicate_exec_stack. Emit unwind info using
5745 final_start_function/final_end_function.
5746 (darwin_x86_file_end): Remove.
5747 (TARGET_ASM_CODE_END): Define.
5748 * config/i386/i386.h (TARGET_ASM_FILE_END,
5749 NEED_INDICATE_EXEC_STACK): Don't define.
5750 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
5751 (TARGET_ASM_FILE_END): Define to darwin_file_end.
5752 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
5753 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
5756 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
5757 at the beginning and final_end_function at the end.
5758 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
5760 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5762 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
5763 and Sun as TLS syntax.
5764 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
5765 * configure: Regenerate.
5766 * config.in: Regenerate.
5767 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
5768 (default_elf_asm_named_section): Use it.
5769 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
5770 (i386_output_dwarf_dtprel): Likewise.
5771 (output_addr_const_extra): Likewise.
5772 (output_pic_addr_const): Lowercase @GOTTPOFF.
5773 (output_addr_const_extra): Likewise.
5774 (output_pic_addr_const): Lowercase @GOTNTPOFF.
5775 (output_addr_const_extra): Likewise.
5776 (output_pic_addr_const): Lowercase @INDNTPOFF.
5777 (output_addr_const_extra): Likewise.
5778 (output_pic_addr_const): Lowercase @NTPOFF.
5779 (output_addr_const_extra): Likewise.
5780 (output_pic_addr_const): Lowercase @TPOFF.
5781 (output_addr_const_extra): Likewise.
5782 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
5783 (*tls_global_dynamic_64): Likewise.
5784 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
5785 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
5787 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
5788 (ASM_OUTPUT_TLS_COMMON): Use it.
5789 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
5792 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
5793 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
5794 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
5795 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
5796 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
5797 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
5799 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5801 * config/i386/i386.c (override_options): Don't accept
5802 -mtls-dialect=sun any longer.
5803 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
5804 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
5805 (*tls_local_dynamic_base_32_sun): Likewise.
5806 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
5808 2010-03-24 Jakub Jelinek <jakub@redhat.com>
5811 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
5812 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
5815 * ira.c (adjust_cleared_regs): New function.
5816 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
5820 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
5822 * expr.c (expand_expr_real): Restore previous
5823 curr_insn_source_location and curr_insn_block after
5824 expand_expr_real_1 call.
5825 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
5826 instead of expand_expr_real_1.
5828 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
5830 PR rtl-optimization/43413
5831 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
5834 2010-03-22 James E. Wilson <wilson@codesourcery.com>
5837 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
5838 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
5840 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
5842 * config/i386/i386.c (ix86_target_string): Add -mfma.
5843 Fix a typo in comment.
5845 2010-03-22 Mike Stump <mikestump@comcast.net>
5848 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
5849 Don't overly align based upon packed packed fields.
5851 2010-03-22 Jason Merrill <jason@redhat.com>
5853 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
5854 Use () rather than [], and move before the element type.
5856 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5858 * doc/configfiles.texi (Configuration Files): Removed
5859 fixinc/Makefile*, intl/Makefile.*.
5860 * doc/makefile.texi: Fixed markup. Abstract from version
5861 control system used.
5862 (Makefile): Removed obsolete gcc/java/parse.y example.
5863 * doc/sourcebuild.texi: Likewise.
5864 (Top Level): Added config, gnattools, libdecnumber, libgcc,
5865 libgomp, libssp. Removed fastjar.
5866 (Miscellaneous Docs): Clarify location.
5867 Added COPYING3, COPYING3.LIB.
5868 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
5870 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5873 * config/i386/i386.c (x86_function_profiler)
5874 [!NO_PROFILE_COUNTERS]: Fix typo.
5875 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
5878 2010-03-22 Janis Johnson <janis187@us.ibm.com>
5879 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5881 * doc/sourcebuild.texi (Test Directives): Split into six
5882 subsections, with most of the current text in new subsections
5883 Directives, Selectors, and Final Actions.
5884 (Directives): Split list of test directives into multiple
5886 (Selectors): Describe use and syntax of selectors.
5887 (Effective-Target Keywords): Describe all existing keywords.
5888 (Add Options): Describe features for dg-add-options.
5889 (Require Support): Describe variants of dg-require-support.
5890 (Final Actions): Describe commands to use in dg-final.
5892 2010-03-22 Michael Matz <matz@suse.de>
5895 * recog.c (validate_replace_rtx_group): Replace also in
5896 REG_EQUAL and REG_EQUIV notes.
5898 2010-03-22 Richard Guenther <rguenther@suse.de>
5900 PR tree-optimization/43390
5901 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
5902 sure vector extracts are type correct.
5904 2010-03-22 Richard Guenther <rguenther@suse.de>
5907 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
5908 x * sqrt (x) even when optimizing for size if the target
5909 has native support for sqrt.
5911 2010-03-22 Jakub Jelinek <jakub@redhat.com>
5913 * varasm.c (make_decl_rtl_for_debug): Also clear
5914 flag_mudflap for the duration of make_decl_rtl call.
5917 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
5918 locs from preserved VALUEs.
5920 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5923 * pa.md (movmemsi): Set align to one if zero.
5924 (movmemdi): Likewise.
5926 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
5929 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
5930 with their corresponding prologue pushes.
5932 2010-03-20 Andrew Pinski <pinskia@gmail.com>
5935 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
5936 at the begining or end.
5937 (spu_expand_epilogue): Likewise.
5939 2010-03-20 Richard Guenther <rguenther@suse.de>
5941 PR rtl-optimization/43438
5942 * combine.c (make_extraction): Properly zero-/sign-extend an
5943 extraction of the low part of a CONST_INT. Also handle
5946 2010-03-19 Mike Stump <mikestump@comcast.net>
5948 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
5949 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
5950 (override_options): Use SUBTARGET32_DEFAULT_CPU.
5952 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
5955 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
5958 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
5960 PR rtl-optimization/42258
5961 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
5962 use that may match DEF.
5965 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
5966 the cost of loading the constant rather than assuming
5968 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
5969 outer code is AND, do the same tests as the andsi3 expander and
5970 return COSTS_N_INSNS (1) if and is cheap.
5972 * optabs.c (avoid_expensive_constant): Fix formatting.
5974 2010-03-19 Michael Matz <matz@suse.de>
5977 * attribs.c (decl_attributes): When rebuilding a function pointer
5978 type use the same qualifiers as the original pointer type.
5980 2010-03-19 Martin Jambor <mjambor@suse.cz>
5982 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
5983 and is_gimple_ip_invariant_address.
5985 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5988 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5990 * config/arm/arm.c (arm_override_options): Turn off
5991 flag_dwarf2_cfi_asm for AAPCS variants.
5993 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5996 * config/arm/arm.c (emit_multi_reg_push): Update comments.
5997 Use PRE_MODIFY instead of PRE_DEC.
5998 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
5999 (vfp_emit_fstmd): Likewise.
6001 2010-03-19 Michael Matz <matz@suse.de>
6004 * builtins.c (expand_builtin_interclass_mathfn,
6005 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
6008 2010-03-19 Richard Guenther <rguenther@suse.de>
6010 PR tree-optimization/43415
6011 * tree-ssa-pre.c (phi_translate): Split out worker to ...
6012 (phi_translate_1): ... this.
6013 (phi_translate): Move all caching here. Cache all NARY
6014 and REFERENCE translations.
6016 2010-03-19 David S. Miller <davem@davemloft.net>
6018 With help from Eric Botcazou.
6019 * config/sparc/sparc.c: Include dwarf2out.h.
6020 (emit_pic_helper): Delete.
6021 (pic_helper_symbol_name): Delete.
6022 (pic_helper_emitted_p): Delete.
6023 (pic_helper_needed): New.
6024 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
6025 (get_pc_thunk_name): New.
6026 (load_pic_register): Remove 'delay_pic_helper' arg. Use
6027 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
6028 Set pic_helper_needed to true. Don't call emit_pic_helper.
6029 (sparc_expand_prologue): Update load_pic_register call.
6030 (sparc_output_mi_thunk): Likewise.
6031 (sparc_file_end): Emit a hidden comdat symbol for the PIC
6032 thunk if possible. Output CFI information as needed.
6034 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6035 Jack Howarth <howarth@bromo.med.uc.edu>
6038 * config/i386/i386.h: Fix ABI on darwin x86-32.
6040 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
6042 * tree.h: Declare make_decl_rtl_for_debug.
6043 * varasm.c (make_decl_rtl_for_debug): New.
6044 * dwarf2out.c (rtl_for_decl_location): Call it.
6045 * cfgexpand.c (expand_debug_expr): Call it.
6047 2010-03-18 Jakub Jelinek <jakub@redhat.com>
6050 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
6054 * var-tracking.c (vt_init_cfa_base): Do nothing if
6055 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
6057 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
6060 * var-tracking.c (canonicalize_vars_star): New.
6061 (dataflow_post_merge_adjust): Use it.
6063 2010-03-18 Jakub Jelinek <jakub@redhat.com>
6066 * var-tracking.c (non_suitable_const): New function.
6067 (add_uses): For DEBUG_INSNs with constants, don't record any
6068 value, instead just the constant value itself.
6069 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
6070 is not VAR_LOC_UNKNOWN_P, set var to the constant.
6071 (emit_notes_in_bb): Likewise.
6072 (emit_note_insn_var_location): For onepart variables if
6073 cur_loc is a VOIDmode constant, use DECL_MODE.
6075 2010-03-18 Martin Jambor <mjambor@suse.cz>
6078 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
6079 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
6080 all non-clones. Moved call redirection...
6081 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
6082 (cgraph_materialize_all_clones): Dispose of all
6083 combined_args_to_skip bitmaps.
6084 (verify_cgraph_node): Do not check for edges pointing to wrong
6085 nodes in inline clones.
6086 * tree-inline.c (copy_bb): Call
6087 cgraph_redirect_edge_call_stmt_to_callee.
6088 * ipa.c (cgraph_remove_unreachable_nodes): Call
6089 cgraph_node_remove_callees even when there are used clones.
6091 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
6093 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
6095 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
6098 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
6101 2010-03-18 Michael Matz <matz@suse.de>
6104 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
6105 into sqrt(x) if we need to preserve signed zeros.
6107 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
6108 Eric Botcazou <ebotcazou@adacore.com>
6110 PR rtl-optimization/43360
6111 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
6112 note if we don't know its invariant status.
6114 2010-03-18 Michael Matz <matz@suse.de>
6116 PR tree-optimization/43402
6117 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
6118 PHI chains of ssa names registered for update.
6120 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
6123 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
6124 non-offsettable and pre_modify update addressing.
6125 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
6126 and "2" alternatives "#".
6127 (*movdd_softfloat32): Make all alternatives "#";
6128 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
6129 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
6130 (*movdf_softfloat32): Make all alternatives "#";
6131 (movdi): Use the new DIFD mode iterator to create a common splitter
6132 for movdi, movdf and movdd patterns.
6134 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
6136 * common.opt (dumpdir): Remove redundant tab.
6138 2010-03-17 Martin Jambor <mjambor@suse.cz>
6140 PR tree-optimization/43347
6141 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
6142 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
6144 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
6146 PR rtl-optimization/42216
6147 * regrename.c (create_new_chain): New function, broken out from...
6148 (scan_rtx_reg): ... here. Call it. Handle the case where we are
6149 appending a use to an empty chain.
6150 (build_def_use): Remove previous changes that convert OP_INOUT to
6151 OP_OUT operands; instead detect the case where an OP_INOUT operand
6152 uses a previously untracked register and create an empty chain for it.
6154 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6156 * doc/extend.texi (Function Attributes): Rewrite unfinished
6157 sentence in ms_abi documentation.
6159 2010-03-17 Alan Modra <amodra@gmail.com>
6161 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
6162 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
6163 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
6164 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
6166 2010-03-16 Richard Henderson <rth@redhat.com>
6169 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
6170 (lower_try_finally): Save and restore eh_seq around the expansion
6173 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
6175 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
6176 statements before splitting block.
6178 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6180 * doc/sourcebuild.texi (Testsuites): Fix markup.
6181 Use pathnames relative to gcc/testsuite.
6182 (Test Directives): Move description of how timeout is determined.
6183 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
6184 (C Tests): Correct gcc.misc-tests directory.
6185 Framework tests now live in gcc.test-framework.
6187 2010-03-16 Richard Guenther <rguenther@suse.de>
6190 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
6191 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
6193 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
6194 Alexandre Oliva <aoliva@redhat.com>
6196 PR tree-optimization/42917
6197 * lambda-code.c (remove_iv): Skip debug statements.
6198 (lambda_loopnest_to_gcc_loopnest): Likewise.
6199 (not_interesting_stmt): Debug statements are not interesting.
6201 2010-03-16 Jakub Jelinek <jakub@redhat.com>
6205 * cselib.c (cselib_preserve_constants,
6206 cfa_base_preserved_val): New static variables.
6207 (preserve_only_constants): New function.
6208 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
6209 clear its REG_VALUES. If cselib_preserve_constants, don't
6210 empty the whole hash table, but preserve there VALUEs with constants,
6211 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
6212 (cselib_preserve_cfa_base_value): New function.
6213 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
6214 (cselib_init): Change argument to int bitfield. Set
6215 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
6217 (cselib_finish): Clear cselib_preserve_constants and
6218 cfa_base_preserved_val.
6219 * cselib.h (enum cselib_record_what): New enum.
6220 (cselib_init): Change argument to int.
6221 (cselib_preserve_cfa_base_value): New prototype.
6222 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
6223 * dse.c (dse_step1): Likewise.
6224 * cfgcleanup.c (thread_jump): Likewise.
6225 * sched-deps.c (sched_analyze): Likewise.
6226 * gcse.c (local_cprop_pass): Likewise.
6227 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
6228 If FN is non-NULL, call the callback always and whenever it returns
6229 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
6230 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
6231 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
6232 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
6233 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
6234 * var-tracking.c: Include recog.h.
6235 (bb_stack_adjust_offset): Remove.
6236 (vt_stack_adjustments): Don't call it, instead just gather the
6237 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
6238 (adjust_stack_reference): Remove.
6239 (compute_cfa_pointer): New function.
6240 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
6241 (struct adjust_mem_data): New type.
6242 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
6244 (get_address_mode): New function.
6245 (replace_expr_with_values): Use it.
6246 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
6247 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
6248 (adjust_sets): Remove.
6249 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
6250 Use get_address_mode.
6251 (get_adjusted_src): Remove.
6252 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
6253 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
6254 (add_with_sets): Don't call adjust_sets.
6255 (fp_setter, vt_init_cfa_base): New functions.
6256 (vt_initialize): Change return type to bool. Move most of pool etc.
6257 initialization to the beginning of the function from end. Pass
6258 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
6259 If !frame_pointer_needed, call vt_stack_adjustment before mos
6260 vector is filled, call vt_init_cfa_base if argp/framep has been
6261 eliminated to sp. If frame_pointer_needed and argp/framep has
6262 been eliminated to hard frame pointer, set
6263 hard_frame_pointer_adjustment and call vt_init_cfa_base after
6264 encountering fp setter in the prologue. For MO_ADJUST, call
6265 log_op_type before pusing the op into mos vector, not afterwards.
6266 Call adjust_insn before cselib_process_insn/add_with_sets,
6267 call cancel_changes (0) afterwards.
6268 (variable_tracking_main_1): Adjust for vt_initialize calling
6269 vt_stack_adjustments and returning whether it succeeded or not.
6271 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
6273 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
6276 2010-03-15 Jakub Jelinek <jakub@redhat.com>
6278 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
6280 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
6281 drap_reg has not been set.
6283 2010-03-15 Michael Matz <matz@suse.de>
6286 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
6287 use it to expand block copies.
6288 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
6289 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
6290 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
6292 2010-03-15 Richard Guenther <rguenther@suse.de>
6294 PR tree-optimization/43367
6295 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
6298 2010-03-15 Richard Guenther <rguenther@suse.de>
6300 PR tree-optimization/43317
6301 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
6303 2010-03-15 Martin Jambor <mjambor@suse.cz>
6305 PR tree-optimization/43141
6306 * tree-sra.c (create_abstract_origin): New function.
6307 (modify_function): Call create_abstract_origin.
6309 2010-03-15 Chris Demetriou <cgd@google.com>
6311 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
6314 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
6317 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
6318 call insert_out_of_ssa_copy for default definitions.
6320 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
6322 * graphite-clast-to-gimple.c (my_long_long): Defined.
6323 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
6324 * graphite-sese-to-poly.c (my_long_long): Defined.
6325 (scop_ivs_can_be_represented): Use it.
6327 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
6329 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
6330 graphite-max-bbs-per-function, and loop-block-tile-size.
6331 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
6333 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
6335 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
6337 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
6338 forward declaration.
6339 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
6340 (add_upper_bounds_from_estimated_nit): New.
6341 (build_loop_iteration_domains): Use it.
6343 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
6345 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
6347 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
6350 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
6351 should be an INTEGER_CST. Also handle CASE_CONVERT.
6353 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
6355 * graphite.c (graphite_initialize): To bound the number of bbs per
6356 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
6357 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
6358 * doc/invoke.texi: Document it.
6360 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
6362 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
6363 * graphite-sese-to-poly.h (build_poly_scop): Same.
6365 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
6367 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
6368 the number of parameters in the scop. Use as an upper bound
6369 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
6370 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
6371 * doc/invoke.texi: Document it.
6373 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
6375 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
6376 * doc/c-tree.texi: Remove.
6377 * doc/generic.texi: Merge c-tree.texi here.
6378 * doc/gccint.texi (Trees): Remove menu entry.
6379 (c-tree.texi): Remove @include.
6380 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
6381 * doc/languages.texi (Reading RTL): Ditto.
6383 2010-03-12 Steve Ellcey <sje@cup.hp.com>
6386 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
6388 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
6391 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
6392 code added to work around reload clobbering CONST insns.
6394 2010-03-12 Jakub Jelinek <jakub@redhat.com>
6396 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
6397 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
6398 (cselib_preserve_only_values): Remove retain argument, don't
6399 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
6400 * cselib.h (cselib_preserve_only_values): Remove retain argument.
6401 * var-tracking.c (micro_operation): Move insn field before union.
6402 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
6403 (struct variable_tracking_info_def): Remove n_mos field, change
6404 mos into a vector of micro_operations.
6405 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
6406 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
6407 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
6408 changing into a vector.
6409 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
6410 come before all other uops generated by add_stores.
6411 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
6413 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
6414 a vector. Run just one pass over the bbs instead of separate counting
6415 and computation phase.
6416 (vt_finalize): Free VTI (bb)->mos vector instead of array.
6419 * tree-inline.c (remap_decls): Put old_var rather than origin_var
6420 into *nonlocalized_list vector.
6421 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
6422 even if origin is non-NULL.
6423 (gen_variable_die): Likewise.
6424 (process_scope_var): Don't change origin.
6425 (gen_decl_die): Likewise.
6426 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
6427 before adding new edges instead of after it, fix moving over
6430 2010-03-11 David S. Miller <davem@davemloft.net>
6432 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
6434 * configure: Rebuild.
6436 2010-03-11 Martin Jambor <mjambor@suse.cz>
6438 PR tree-optimization/43257
6439 * tree.c (assign_assembler_name_if_neeeded): New function.
6440 (free_lang_data_in_cgraph): Assembler name assignment moved to the
6442 * tree.h (assign_assembler_name_if_neeeded): Declare.
6443 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
6444 the function if needed.
6446 2010-03-11 Chris Demetriou <cgd@google.com>
6448 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
6449 include/stdint-gcc.h, and include/stdint.h world-readable.
6451 2010-03-11 Richard Guenther <rguenther@suse.de>
6453 PR tree-optimization/43255
6454 * tree-vrp.c (process_assert_insertions_for): Do not insert
6455 asserts for trivial conditions.
6457 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6459 PR tree-optimization/43280
6460 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
6461 generation. Move calculation of size out of the if branch.
6462 (find_bswap): Modify compare number generation.
6464 2010-03-11 Richard Guenther <rguenther@suse.de>
6467 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
6468 (input_gimple_stmt): Fixup handled component types during
6469 operand read. Also fix up decls in ADDR_EXPRs.
6471 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
6473 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
6474 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
6476 2010-03-10 Jan Hubicka <jh@suse.cz>
6479 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
6480 * varasm.c (get_variable_section): Don't do that here...
6481 (make_decl_rtl): ... and here.
6482 (do_assemble_alias): Produce decl RTL.
6483 (assemble_alias): Likewise.
6485 2010-03-10 Jakub Jelinek <jakub@redhat.com>
6488 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
6489 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
6491 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
6492 (based_loc_descr): Only express drap or vdrap regno based expressions
6493 using DW_OP_fbreg when not optimizing.
6494 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
6495 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
6496 REG_CFA_SET_VDRAP note.
6498 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
6500 PR tree-optimization/43236
6501 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
6502 error in calculation of base address in reverse iteration case.
6503 (generate_builtin): Take number of latch executions if the statement
6506 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
6509 * tree-eh.c: Include pointer-set.h.
6510 (lower_eh_dispatch): Filter out duplicate case labels and
6511 remove the unneeded edge when the label is unused. Return
6512 true when some edges are removed.
6513 (execute_lower_eh_dispatch): When any lowering resulted in
6514 removing an edge, also delete unreachable blocks.
6516 2010-03-10 Jakub Jelinek <jakub@redhat.com>
6519 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
6520 UNSPEC_MACHOPIC_OFFSET.
6522 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
6525 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
6526 (m68k_delegitimize_address): New function.
6528 2010-03-09 Jakub Jelinek <jakub@redhat.com>
6531 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
6534 * var-tracking.c (adjust_sets): New function.
6535 (count_with_sets, add_with_sets): Use it.
6536 (get_adjusted_src): New inline function.
6537 (add_stores): Use it.
6540 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
6541 call cselib_dummy_expand_value_rtx_cb instead of
6542 cselib_expand_value_rtx_cb.
6545 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
6546 * config/i386/i386.c: Include debug.h and dwarf2out.h.
6547 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
6548 and .cfi_endproc around the pic thunks.
6549 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
6550 all queued unwind info register saves are saved before the call.
6551 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
6552 considered as sp-=4 for unwind info and the pop as sp+=4 which
6553 also clobbers dest, but doesn't actually restore it.
6556 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
6557 RTX_FRAME_RELATED_P.
6559 2010-03-09 Jie Zhang <jie@codesourcery.com>
6561 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
6562 whitespaces in output template.
6564 2010-03-09 Jie Zhang <jie@codesourcery.com>
6566 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
6569 2010-03-08 Jakub Jelinek <jakub@redhat.com>
6571 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
6572 builtins.exp in a separate job.
6574 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
6576 * graphite-sese-to-poly.c (add_param_constraints): Use
6577 lower_bound_in_type and upper_bound_in_type.
6579 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
6581 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
6582 instead of unsigned_type_node.
6584 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
6585 Reza Yazdani <reza.yazdani@amd.com>
6588 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
6589 on pointer type parameters.
6591 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
6595 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
6596 handle conversions from pointer to integers.
6597 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
6598 induction variable, to be able to work with code generated by CLooG.
6599 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
6600 (build_poly_scop): Bail out if we cannot codegen a loop.
6602 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
6604 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
6605 code generation with gloog_error.
6607 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
6609 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
6610 Call fold_convert on all the returned values.
6611 (expand_scalar_variables_expr): Pass to
6612 expand_scalar_variables_ssa_name the type of the resulting expression.
6614 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
6616 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
6617 ppl_min_for_le_pointset.
6618 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
6619 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
6621 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
6623 * graphite-dependences.c (map_into_dep_poly): Removed.
6624 (dependence_polyhedron_1): Use combine_context_id_scat.
6626 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
6628 * graphite-poly.h (struct poly_scattering): Add layout documentation.
6629 (struct poly_bb): Same.
6630 (combine_context_id_scat): New.
6632 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
6635 * sese.c (name_defined_in_loop_p): Return false for default
6638 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
6640 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
6641 and clean up the logic.
6643 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
6645 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
6648 2010-03-08 Jakub Jelinek <jakub@redhat.com>
6650 * var-tracking.c (remove_cselib_value_chains): Define only for
6652 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
6653 delete_slot_part, emit_notes_for_differences_1): Don't call
6654 remove_cselib_value_chains here.
6655 (set_slot_part, emit_notes_for_differences_2): Don't call
6656 add_cselib_value_chains here.
6657 (preserved_values): New vector.
6658 (preserve_value): New function.
6659 (add_uses, add_stores, vt_add_function_parameters): Use it
6660 instead of cselib_preserve_value.
6661 (changed_values_stack): New vector.
6662 (check_changed_vars_0): New function.
6663 (check_changed_vars_1, check_changed_vars_2): Use it.
6664 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
6665 changed_values_stack VALUEs.
6666 (vt_emit_notes): For all preserved_values call
6667 add_cselib_value_chains. If ENABLE_CHECKING call
6668 remove_cselib_value_chains before verifying value_chains is empty.
6669 Initialize and free changed_values_stack.
6670 (vt_initialize): Initialize preserved_values.
6671 (vt_finalize): Free preserved_values.
6673 2010-03-08 Richard Guenther <rguenther@suse.de>
6675 PR tree-optimization/43269
6676 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
6679 2010-03-08 Martin Jambor <mjambor@suse.cz>
6681 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
6682 (ipa_is_param_called): Removed.
6683 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
6684 (ipa_print_node_params): Do not print the called flag.
6685 (ipa_write_node_info): Do not stream the called flag.
6686 (ipa_read_node_info): Likewise.
6688 2010-03-07 Jakub Jelinek <jakub@redhat.com>
6691 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
6692 * cselib.c (struct expand_value_data): Add dummy field.
6693 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
6695 (cselib_dummy_expand_value_rtx_cb): New function.
6696 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
6698 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
6699 * var-tracking.c: Include pointer-set.h.
6700 (variable): Change n_var_parts to char from int. Add
6701 cur_loc_changed and in_changed_variables fields.
6702 (variable_canonicalize): Remove.
6703 (shared_var_p): New inline function.
6704 (unshare_variable): Maintain cur_loc_changed and
6705 in_changed_variables fields. If var was in changed_variables,
6706 replace it there with new_var. Just copy cur_loc instead of
6707 resetting it to something else.
6708 (variable_union): Don't recompute cur_loc. Use shared_var_p.
6709 (dataflow_set_union): Don't call variable_canonicalize.
6710 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
6711 of their DEBUG_EXPR_TREE_DECLs.
6712 (canonicalize_loc_order_check): Verify that cur_loc is NULL
6713 and in_changed_variables and cur_loc_changed is false.
6714 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
6715 and cur_loc_changed. Don't update cur_loc here.
6716 (variable_merge_over_src): Don't call variable_canonicalize.
6717 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
6718 removing loc that is equal to cur_loc, clear cur_loc,
6719 set cur_loc_changed and ensure variable_was_changed is called.
6720 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
6721 compare pointers in cur_loc check, if it is equal to loc,
6722 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
6723 (variable_different_p): Remove compare_current_location argument,
6724 don't compare cur_loc.
6725 (dataflow_set_different_1): Adjust variable_different_p caller.
6726 (variable_was_changed): If dv had some var in changed_variables
6727 already, reset in_changed_variables flag for it and propagate
6728 cur_loc_changed over to the new variable. On empty var
6729 always set cur_loc_changed. Set in_changed_variables on whatever
6730 var is added to changed_variables.
6731 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
6732 Use shared_var_p. When removing loc that is equal to cur_loc,
6733 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
6734 end, don't set it to something else, just call variable_was_changed.
6735 (delete_slot_part): Use shared_var_p. When cur_loc equals to
6736 loc being removed, clear cur_loc and set cur_loc_changed.
6737 Set cur_loc_changed if all locations have been removed.
6738 (struct expand_loc_callback_data): New type.
6739 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
6740 allocated. Always create SUBREGs if simplify_subreg failed.
6741 Prefer to use cur_loc, when that fails and still in
6742 changed_variables (and seen first time) recompute it. Set
6743 cur_loc_changed of variables which had to change cur_loc and
6744 compute elcd->cur_loc_changed if any of the subexpressions used
6745 had to change cur_loc.
6746 (vt_expand_loc): Adjust to pass arguments in
6747 expand_loc_callback_data structure.
6748 (vt_expand_loc_dummy): New function.
6749 (emitted_notes): New variable.
6750 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
6751 that weren't used for any other decl in current
6752 emit_notes_for_changes call call vt_expand_loc_dummy to update
6753 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
6754 first loc_chain location if NULL before. Always use just
6755 cur_loc instead of first loc_chain location. When cur_loc_changed
6756 is false, when not --enable-checking=rtl just don't emit any note.
6757 When rtl checking, compute the note and assert it is the same
6758 as previous note. Clear cur_loc_changed and in_changed_variables
6759 at the end before removing from changed_variables.
6760 (check_changed_vars_3): New function.
6761 (emit_notes_for_changes): Traverse changed_vars to call
6762 check_changed_vars_3 on each changed var.
6763 (emit_notes_for_differences_1): Clear cur_loc_changed and
6764 in_changed_variables. Recompute cur_loc of new_var.
6765 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
6766 (vt_emit_notes): Initialize and destroy emitted_notes.
6768 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
6770 PR rtl-optimization/42220
6771 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
6772 Use verify_reg_tracked to determine if we should use OP_OUT rather
6774 (build_def_use): If we see an in-out operand for a register that we
6775 know nothing about, treat is an output if possible, fail the block if
6778 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
6781 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
6784 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
6787 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
6788 uses of relevant DEFs that are dead outside the loop too.
6790 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
6792 * var-tracking.c (dataflow_set_merge): Swap src and src2.
6794 2010-01-13 Jakub Jelinek <jakub@redhat.com>
6796 * var-tracking.c (values_to_unmark): New variable.
6797 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
6798 values_to_unmark vector. Moved body to...
6799 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
6800 instead queue it into values_to_unmark vector.
6801 (vt_find_locations): Free values_to_unmark vector.
6803 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
6805 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
6806 (site.exp): Export them when plugins are enabled.
6808 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
6811 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
6813 (chrec_fold_multiply): Same.
6815 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
6818 * c-decl.c (build_compound_literal): Return early if init is
6821 2010-03-04 Martin Jambor <mjambor@suse.cz>
6823 PR tree-optimization/43164
6824 PR tree-optimization/43191
6825 * tree-sra.c (type_consists_of_records_p): Reject records with
6826 zero-size bit-fields at the end.
6828 2010-03-04 Mike Stump <mikestump@comcast.net>
6830 * Makefile.in (TAGS): Remove *.y.
6832 2010-03-04 Richard Guenther <rguenther@suse.de>
6834 PR tree-optimization/40761
6835 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
6837 (my_rev_post_order_compute): New function.
6838 (init_pre): Call it.
6840 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
6843 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
6844 decrease the cost of an IV candidate when the cost is infinite.
6846 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6848 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
6849 Use '3DNow!' for the extension of that name, ensure normal space
6851 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
6853 2010-03-03 Jeff Law <law@redhat.com>
6855 * PR middle-end/32693
6856 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
6857 than gen_rtx_SUBREG.
6858 (extract_bit_field_1): Likewise.
6860 2010-03-03 Janis Johnson <janis187@us.ibm.com>
6862 * doc/sourcebuild.texi (Test directives): Document that arguments
6863 include-opts and exclude-opts are now optional for dg-skip-if,
6864 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
6866 2010-03-03 Jason Merrill <jason@redhat.com>
6869 * cgraph.h (varpool_node): Add extra_name field.
6870 * varpool.c (varpool_extra_name_alias): New.
6871 (varpool_assemble_decl): Emit extra name aliases.
6872 (varpool_mark_needed_node): Look past an extra name alias.
6873 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
6874 * lto-streamer-in.c (lto_input_tree): Read it.
6875 * lto-streamer-out.c (output_unreferenced_globals): Write it.
6877 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
6879 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
6880 (sparc*-*-solaris2*): ...this.
6882 2010-03-03 Jakub Jelinek <jakub@redhat.com>
6885 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
6886 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
6887 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
6888 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
6891 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
6892 fallthrough to default handling, just with want_address 0 instead of 2.
6893 For single element lists, add_AT_loc directly, otherwise create an
6894 artificial variable DIE and stick location list to it.
6897 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
6898 (VAL_EXPR_HAS_REVERSE): Define.
6899 (reverse_op): New function.
6900 (add_stores): For reversible operations add an extra MO_VAL_USE.
6902 2010-03-02 Jason Merrill <jason@redhat.com>
6904 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
6906 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
6908 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
6909 (sparc64-*-linux*): Likewise.
6910 (sparc64-*-solaris2*): Include assembler files before linker ones.
6911 (sparc-*-solaris2*): Simplify and reorder to match previous case.
6912 * config/sparc/gas.h: Delete.
6913 * config/sparc/sol2-64.h: Add copyright notice.
6914 * config/sparc/sol2-gas-bi.h: Likewise.
6915 * config/sparc/sol2-gld.h: Likewise.
6916 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
6917 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
6918 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
6919 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
6920 (sparc_elf_asm_named_section): Rename into...
6921 (sparc_solaris_elf_asm_named_section): ...this. Always define.
6923 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
6925 * config/alpha/alpha.c (override_options): Fix -mtune error message.
6927 2010-03-02 Jeff Law <law@redhat.com>
6930 * reload1.c (rtx_p, substitute_stack): Declare.
6931 (substitute): Record addresses of changed rtxs.
6932 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
6933 Restore the original rtx when complete.
6934 (reload): Free subsitute_stack when complete.
6936 2010-03-02 Janis Johnson <janis187@us.ibm.com>
6938 * doc/gccint.texi (menu): Add Testsuites as a chapter.
6939 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
6941 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
6942 LTO Testing, gcov Testing, profopt Testing, compat Testing,
6943 Torture Tests): Change from subsection to section.
6945 2010-03-02 Jakub Jelinek <jakub@redhat.com>
6946 Steven Bosscher <steven@gcc.gnu.org>
6948 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
6951 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
6954 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
6955 the assignment from the new induction variable to the assignment
6956 of the value from the original loop PHI function.
6958 2010-03-01 Janis Johnson <janis187@us.ibm.com>
6959 Daniel Jacobowitz <dan@codesourcery.com>
6961 * doc/sourcebuild.texi (Test directives): Clarify options to
6964 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6966 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
6967 Disable cfi directives unless GCC and gas agree on using read-only
6968 .eh_frame sections for 64-bit.
6969 * configure: Regenerate.
6971 2010-03-01 Richard Guenther <rguenther@suse.de>
6973 PR tree-optimization/43220
6974 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
6975 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
6977 2010-03-01 Richard Guenther <rguenther@suse.de>
6978 Martin Jambor <mjambor@suse.cz>
6981 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
6982 gimplified parameters.
6984 2010-03-01 Christian Bruel <christian.bruel@st.com>
6986 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
6988 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
6990 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
6992 2010-03-01 Richard Guenther <rguenther@suse.de>
6995 * expr.c (expand_assignment): Use the alias-oracle to tell
6996 if the rhs aliases the result decl.
6998 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7001 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
7002 to sol_gt_pch_get_address.
7003 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
7004 64-bit, SPARC and x86.
7005 (sol_gt_pch_get_address): New function.
7007 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
7009 * toplev.h (inform_n, error_n): Declare.
7010 * diagnostic.c (inform_n, error_n): New function.
7012 2010-03-01 Jakub Jelinek <jakub@redhat.com>
7014 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
7015 has no rtl yet when processing local_decls, queue it and recheck
7016 if deferred stack allocation hasn't assigned it rtl.
7018 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
7020 * config/sh/sh.c (unspec_bbr_uid): New.
7021 (gen_block_redirect): Use it instead of INSN_UID.
7022 (gen_far_branch): Likewise.
7024 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
7026 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
7027 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
7029 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7031 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
7032 (Warning Options): -Wno-conversion-null is valid for
7033 Objective-C++ as well.
7034 * doc/tm.texi (Named Address Spaces): Likewise.
7035 * doc/plugins.texi (Plugins): Replace TABs with spaces.
7036 * doc/tree-ssa.texi (Tree SSA): Likewise.
7038 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
7041 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
7042 by default. Don't set the default arch for
7043 i[34567]86-*-darwin*|x86_64-*-darwin*.
7045 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
7048 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
7049 default. Set the default 32bit/64bit archs with $with_arch
7050 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
7052 2010-02-27 Richard Guenther <rguenther@suse.de>
7054 PR tree-optimization/43186
7055 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
7056 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
7057 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
7058 unroller iterations.
7060 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
7062 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
7063 required and i[34567]86-*-* targets don't support 64bit ISA.
7065 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
7068 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
7071 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
7073 * config.gcc: Set the default arch at least to Prescott for
7074 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
7075 if SSE math is enabled.
7077 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
7079 * diagnostic.c (diagnostic_initialize): Update.
7080 (diagnostic_report_diagnostic): Test inhibit_notes_p for
7082 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
7083 (diagnostic_inhibit_notes): New.
7084 * toplev.c (process_options): inhibit notes with -fcompare-debug.
7086 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
7089 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
7090 * doc/standards.texi: Likewise.
7091 * doc/extend.texi: Likewise.
7092 * doc/trouble.texi: Likewise.
7093 * doc/cppopts.texi: Likewise.
7094 * doc/install.texi: Likewise.
7095 * c.opt (std=c90,std=gnu90): New options.
7096 * c-opts.c (c_common_handle_option): Handle them.
7098 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
7101 * c-decl.c (undeclared_variable): Use an informative note.
7103 2010-02-26 Richard Guenther <rguenther@suse.de>
7105 PR tree-optimization/43186
7106 * gimple.h (gimple_fold): Remove.
7107 * gimple.c (gimple_fold): Remove. Inline into single user ...
7108 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
7109 Try harder for conditions.
7111 2010-02-26 Jakub Jelinek <jakub@redhat.com>
7114 * function.c (used_types_insert): Don't skip through named pointer
7115 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
7116 and it is different from the main variant's type.
7118 2010-02-26 Nick Clifton <nickc@redhat.com>
7120 * config/rx/rx.md (sminsi3): Remove bogus alternative.
7122 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
7124 * config.gcc: Support --with-fpmath=sse for x86.
7126 * config/i386/ssemath.h: New.
7128 * doc/install.texi (--with-fpmath=sse): Documented.
7130 2010-02-26 Richard Guenther <rguenther@suse.de>
7132 PR tree-optimization/43188
7133 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
7134 vector types of over-aligned element type.
7136 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
7139 * config/i386/i386.c (expand_vec_perm_blend): Use correct
7140 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
7142 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7144 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
7146 2010-02-26 Jakub Jelinek <jakub@redhat.com>
7148 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
7149 * var-tracking.c: Include diagnostic.h.
7150 (debug_dv): New function.
7151 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
7154 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
7155 (add_value_chain, add_value_chains, remove_value_chain,
7156 remove_value_chains): Handle DEBUG_EXPRs.
7157 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
7160 * regcprop.c (struct queued_debug_insn_change): New type.
7161 (struct value_data_entry): Add debug_insn_changes field.
7162 (struct value_data): Add n_debug_insn_changes field.
7163 (debug_insn_changes_pool): New variable.
7164 (free_debug_insn_changes, apply_debug_insn_changes,
7165 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
7166 (kill_value_one_regno): Call free_debug_insn_changes if needed.
7167 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
7169 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
7171 (copyprop_hardreg_forward_1): Don't call apply_change_group for
7172 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
7173 changes, call cprop_find_used_regs via note_stores.
7174 (copyprop_hardreg_forward): When copying vd from predecessor
7175 which has any queued DEBUG_INSN changes, make sure the pointers are
7176 cleared. At the end call df_analyze and then if there are any
7177 DEBUG_INSN changes queued at the end of some basic block for still
7178 live registers, apply them.
7179 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
7181 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
7183 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
7186 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
7188 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
7189 targets. Set the default with_cpu/with_arch from arch/cpu.
7190 Allow x86-64 and native for with_cpu/with_arch.
7192 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
7194 * ebitmap.c: Change calls to verify_popcount with calls to
7195 sbitmap_verify_popcount.
7196 (ebitmap_clear_bit): Fixed map->cacheindex test and
7197 map>cache update when bit clearing results in an empty
7200 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
7203 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
7204 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
7205 and support both V2DF and V2DI modes.
7206 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
7207 support both V2DF and V2DI modes.
7208 (general): Delete trailing whitespace from a few patterns.
7210 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7211 V2DF/V2DI interleave high/low builtins.
7213 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
7216 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
7217 interleave high/low functions.
7219 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
7221 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
7222 #pragma extern_prefix.
7224 2010-02-25 Jakub Jelinek <jakub@redhat.com>
7227 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
7228 BLKmode, assert op0 is a MEM and just adjust its mode.
7231 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
7232 if bitpos isn't multiple of mode's bitsize.
7234 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
7236 * c.opt (-ftemplate-depth=): New.
7237 (-ftemplate-depth-): Deprecate.
7238 * optc-gen.awk: Handle -ftemplate-depth=.
7239 * opth-gen.awk: Likewise.
7240 * c-opts.c (c_common_handle_option): Likewise.
7241 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
7243 2010-02-24 Jason Merrill <jason@redhat.com>
7245 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
7247 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7249 * cfg.c (alloc_aux_for_block): Remove inline.
7250 (alloc_aux_for_edge): Likewise.
7252 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7254 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
7256 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7258 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
7259 * config/i386/sol2-gas.h: New file.
7260 * config.gcc (i[34567]86-*-solaris2*): Use it.
7262 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
7265 * c-typeck.c (ep_convert_and_check): New.
7266 (build_conditional_expr): Use it.
7267 (build_binary_op): Likewise.
7269 2010-02-24 Jakub Jelinek <jakub@redhat.com>
7271 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
7274 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
7275 bounds even for -O+.
7276 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
7277 expr needs to have DECL_NAME set.
7279 2010-02-24 Nick Clifton <nickc@redhat.com>
7281 * config/mep/mep.c: Include gimple.h.
7282 (mep_function_uses_sp): Delete unused function.
7283 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
7284 parameters. Use unsigned integers to count args. Return a
7285 NULL_RTX instead of an error_mark_node. Toidy up formatting.
7287 2010-02-23 Jakub Jelinek <jakub@redhat.com>
7290 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
7291 greater or equal to nelt instead of 2 * nelt.
7292 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
7295 2010-02-23 Jason Merrill <jason@redhat.com>
7298 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
7299 in cfun->local_decls even if they have register types.
7302 * stor-layout.c (place_field): Don't warn about unnecessary
7303 DECL_PACKED if the type is packed.
7305 2010-02-23 Jakub Jelinek <jakub@redhat.com>
7308 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
7309 GOTOFF relocs, even when the base reg isn't pic pointer.
7311 2010-02-23 Michael Matz <matz@suse.de>
7314 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
7315 (expand_gimple_basic_block): Generate and use debug temps if there
7316 are debug uses left after the last real use of TERed ssa names.
7317 Unlink debug immediate uses when they are expanded.
7319 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
7322 * config/i386/i386.c (override_options): Reorganise to provide
7323 better error messages.
7325 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
7328 * graphite-scop-detection.c (create_single_exit_edge): Move
7329 the call to find_single_exit_edge to....
7330 (create_sese_edges): ...here. Don't handle multiple edges
7331 exiting the function.
7332 (build_graphite_scops): Don't handle multiple edges
7333 exiting the function.
7335 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
7338 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
7339 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
7341 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
7344 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
7346 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
7349 * c-typeck.c (convert_arguments): Print declaration location.
7350 * c-common.c (validate_nargs): Rename as
7351 builtin_function_validate_nargs.
7352 (check_builtin_function_arguments): Update.
7354 2010-02-22 Richard Guenther <rguenther@suse.de>
7357 * tree-inline.c (declare_return_variable): Use the type of
7358 the call stmt lhs if available.
7360 2010-02-22 Duncan Sands <baldrick@free.fr>
7362 * passes.c (register_pass): Always consider all pass lists when
7363 ref_pass_instance_number is zero.
7365 2010-02-22 Richard Guenther <rguenther@suse.de>
7367 PR tree-optimization/42749
7368 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
7369 parameter. Do arithmetic in the original type.
7370 (update_accumulator_with_ops): Likewise.
7371 (adjust_accumulator_values): Adjust.
7373 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7375 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
7376 (QI to BLKmode splitter): New splitter.
7378 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
7380 * config/i386/i386.c (initial_ix86_tune_features): Turn on
7381 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
7383 2010-02-22 Richard Guenther <rguenther@suse.de>
7385 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
7387 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
7389 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
7390 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
7391 ($(T)crti.o, $(T)crtn.o): Remove rules.
7393 2010-02-21 Tobias Burnus <burnus@net-b.de>
7396 * doc/invoke.texi (-fassociative-math): Document that this
7397 option is automatically enabled for Fortran.
7399 2010-02-20 David S. Miller <davem@davemloft.net>
7401 * configure.ac: Test if linker and assembler properly support
7402 GOTDATA_OP relocations.
7403 * configure: Rebuild.
7404 * config.in: Likewise.
7405 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
7406 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
7407 (movsi_high_pic): Likewise.
7408 (movdi_lo_sum_pic): Likewise.
7409 (movdi_high_pic): Likewise.
7410 (movsi_pic_gotdata_op): New pattern.
7411 (movdi_pic_gotdata_op): Likewise.
7412 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
7413 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
7415 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
7418 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
7419 attribute to ssemul.
7420 (xop_mulv2div2di3_high): Ditto.
7422 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
7425 * c.opt (Wconversion-null): New option.
7426 * doc/invoke.texi (Wconversion-null): Document.
7428 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
7430 * common.opt (Wlarger-than-): Add Undocumented.
7432 2010-02-19 Mike Stump <mikestump@comcast.net>
7434 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
7436 2010-02-19 Jason Merrill <jason@redhat.com>
7439 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
7440 * configure: Likewise.
7442 2010-02-20 Alan Modra <amodra@gmail.com>
7445 * cgraph.h (cgraph_make_decl_local): Declare.
7446 * cgraph.c (cgraph_make_decl_local): New function.
7447 (cgraph_make_node_local): Use it.
7448 * cgraphunit.c (cgraph_function_versioning): Likewise.
7449 * ipa.c (function_and_variable_visibility): Likewise.
7451 2010-02-19 Jakub Jelinek <jakub@redhat.com>
7454 * except.c (sjlj_emit_function_enter): Don't call
7455 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
7457 * rtl.h (add_reg_br_prob_note): Remove prototype.
7459 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
7462 * c-common.c (conversion_warning): Remove widening conversions
7463 before checking the conversion of integers to reals.
7465 2010-02-19 Mike Stump <mikestump@comcast.net>
7468 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
7471 * cgraphunit.c (process_function_and_variable_attributes): Check
7472 DECL_PRESERVE_P instead of looking up attribute "used".
7473 * ipa-pure-const.c (check_decl): Likewise.
7474 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
7475 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
7476 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
7477 instead of attribute "used".
7478 * config/sol2-c.c (solaris_pragma_init): Likewise.
7479 (solaris_pragma_fini): Likewise.
7481 2010-02-19 Jakub Jelinek <jakub@redhat.com>
7483 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
7484 Use XCNEW instead of xcalloc.
7485 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
7486 XNEW instead of xmalloc.
7487 (get_fields): Use XNEWVEC instead of xmalloc.
7490 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
7491 populate vars array.
7492 (create_new_general_access): For debug stmts just reset value.
7493 (get_stmt_accesses): For accesses within debug stmts just record them
7494 using add_access_to_acc_sites instead of preventing the peeling or
7495 counting them as accesses.
7498 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
7500 2010-02-19 Richard Guenther <rguenther@suse.de>
7502 PR tree-optimization/42916
7503 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
7506 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
7508 * configure.ac: Replace all uses of changequote in macro arguments
7509 with proper quoting.
7511 2010-02-19 Jakub Jelinek <jakub@redhat.com>
7514 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
7516 2010-02-19 Richard Guenther <rguenther@suse.de>
7518 PR tree-optimization/42944
7519 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
7520 test for aliasing with errno.
7522 2010-02-19 Jakub Jelinek <jakub@redhat.com>
7525 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
7526 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
7527 * dojump.c: Include output.h.
7528 (inv): New inline function.
7529 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
7530 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
7531 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
7532 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
7533 argument, pass it down to other calls.
7534 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
7535 add REG_BR_PROB note to the conditional jump.
7536 * cfgexpand.c (add_reg_br_prob_note): Removed.
7537 (expand_gimple_cond): Don't call it, add the probability
7538 as last argument to jumpif_1/jumpifnot_1.
7539 * Makefile.in (dojump.o): Depend on output.h.
7540 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
7542 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
7543 * stmt.c (do_jump_if_equal): Likewise.
7544 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
7545 * loop-unswitch.c (compare_and_jump_seq): Likewise.
7546 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
7548 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
7549 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
7550 jumpifnot_1 callers.
7551 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
7553 (store_expr): Adjust jumpifnot caller.
7554 (store_constructor): Adjust jumpif caller.
7557 * gimplify.c (gimple_boolify): For __builtin_expect call
7558 gimple_boolify also on its first argument.
7560 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
7562 * configure.ac (gnu-unique-object): Wrap regexps using [] in
7564 (__stack_chk_fail): Ditto. Remove quadrigraphs.
7565 * configure: Regenerated.
7567 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7569 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
7570 lang_hooks.types_compatible_p instead of comptypes.
7572 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
7574 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
7575 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
7576 if __prefer_thumb__ is defined.
7578 2010-02-18 Martin Jambor <mjambor@suse.cz>
7580 PR tree-optimization/43066
7581 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
7582 array with zero-sized element type.
7584 2010-02-18 Jakub Jelinek <jakub@redhat.com>
7586 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
7587 rtx, allocate struct var_loc_node here and return it to the
7588 caller, and only if it is actually needed.
7589 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
7590 move it earlier and return immediately if it returns NULL.
7592 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
7594 * config/sparc/gas.h: New file. Restore
7595 TARGET_ASM_NAMED_SECTION to its ELF default.
7596 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
7598 * config/sparc/sparc.c (sparc_elf_asm_named_section):
7599 Likewise. Add ATTRIBUTE_UNUSED to prototype.
7600 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
7601 after sparc/sysv4.h.
7603 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
7605 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
7607 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
7609 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
7610 patterns from predicated pattern.
7612 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
7615 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
7616 for insn mnemonic suffix.
7618 2010-02-17 Richard Guenther <rguenther@suse.de>
7620 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
7623 2010-02-17 Jakub Jelinek <jakub@redhat.com>
7626 * caller-save.c (save_call_clobbered_regs): If BB ends with
7627 a DEBUG_INSN, move any notes in between last real insn and the last
7628 DEBUG_INSN after the last DEBUG_INSN.
7630 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
7632 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
7633 Fix return type. Fix argument type. Explain meaning of return value.
7635 2010-02-16 Richard Guenther <rguenther@suse.de>
7637 PR tree-optimization/41043
7638 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
7639 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
7641 (vrp_visit_phi_node): ... but only for loop PHI nodes.
7643 2010-02-16 Ira Rosen <irar@il.ibm.com>
7645 PR tree-optimization/43074
7646 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
7647 * tree-vect-loop.c (vect_analyze_loop_operations): Add
7648 vectorizable cycles in hybrid SLP check.
7649 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
7651 2010-02-16 Richard Guenther <rguenther@suse.de>
7653 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
7654 (true_dependence): If memrefs_conflict_p computes must-alias
7655 trust it. Move TBAA check after offset-based disambiguation.
7656 (canon_true_dependence): Likewise.
7658 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
7660 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
7661 * doc/invoke.texi: Document it.
7662 * var-tracking.c: Include toplev.h and params.h.
7663 (vt_find_locations): Return bool indicating success. Compute
7664 hash sizes unconditionally. Check new parameter, report.
7665 (variable_tracking_main_1): Check vt_find_locations results and
7666 retry. Renamed from...
7667 (variable_tracking_main): ... this. New wrapper to preserve
7668 flag_var_tracking_assignments.
7669 * Makefile.in (var-tracking.o): Adjust dependencies.
7671 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
7672 Jakub Jelinek <jakub@redhat.com>
7675 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
7676 if weak_import attribute is present.
7677 * config/darwin.c (machopic_select_section): Likewise.
7679 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
7681 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
7682 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
7683 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
7684 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
7686 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
7689 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
7692 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
7693 Rewrite text to refer to the names.
7695 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
7697 * config/i386/i386-builtin-types.def
7698 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
7699 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
7700 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
7701 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
7702 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
7703 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
7704 IX86_BUILTIN_VPERMIL2PS256.
7705 (MULTI_ARG_4_DF2_DI_I): Defined.
7706 (MULTI_ARG_4_DF2_DI_I1): Defined.
7707 (MULTI_ARG_4_SF2_SI_I): Defined.
7708 (MULTI_ARG_4_SF2_SI_I1): Defined.
7709 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
7710 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
7711 __builtin_ia32_vpermil2ps256.
7712 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
7713 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
7714 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
7715 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
7716 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
7717 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
7718 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
7719 CODE_FOR_xop_vpermil2v8sf3.
7720 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
7721 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
7722 * config/i386/xopintrin.h (_mm_permute2_pd): New.
7723 (_mm256_permute2_pd): New.
7724 (_mm_permute2_ps): New.
7725 (_mm256_permute2_ps): New.
7727 2010-02-15 Nick Clifton <nickc@redhat.com>
7729 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
7730 boolean parameters. Use emit_jump_insn when emitting a pop
7731 instruction containing a return insn.
7732 (push): Use 'true' rather than '1' as second parameter to F.
7733 (h8300_expand_prologue): Likewise.
7734 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
7735 (h8300_expand_epilogue): Likewise.
7737 2010-02-15 Richard Guenther <rguenther@suse.de>
7740 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
7743 2010-02-15 Nick Clifton <nickc@redhat.com>
7745 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
7748 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
7750 * intl.c (fake_ngettext): New function.
7751 * intl.h (fake_ngettext): Declare.
7752 (ngettext): Define macro.
7753 * collect2.c (notice_translated): New function.
7754 (main): Use notice_translated and ngettext.
7755 * collect2.h (notice_translated): Declare.
7757 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
7759 * reorg.c (delete_computation): Comment fixes.
7760 * caller-save.c (setup_save_areas): Idem.
7761 * sel-sched-dump.c (dump_lv_set): Idem.
7764 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7766 * config/s390/s390.c (s390_sched_init): New function.
7767 (TARGET_SCHED_INIT): Target hook defined.
7769 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
7770 Jack Howarth <howarth@bromo.med.uc.edu>
7771 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
7774 Partial revert of unintended change in fix for PR41605.
7775 * config/darwin.h: Fix typo.
7776 * config/darwin9.h: Same.
7778 2010-02-11 Jakub Jelinek <jakub@redhat.com>
7780 * c-pch.c (pch_init): Clear v.
7782 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
7785 * graphite-scop-detection.c (graphite_can_represent_scev): Call
7786 graphite_can_represent_init for MULT_EXPR.
7788 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
7792 * graphite-sese-to-poly.c (remove_phi): New.
7793 (translate_scalar_reduction_to_array): Call remove_phi.
7795 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
7798 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
7799 * graphite-clast-to-gimple.h (gloog): Update declaration.
7800 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
7801 * graphite-poly.h (struct poly_bb): Add missing comments.
7802 (struct scop): Add poly_scop_p field.
7804 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
7805 * graphite.c (graphite_transform_loops): Build the polyhedral
7806 representation for each scop before code generation.
7807 * sese.c (rename_variables_in_operand): Removed.
7808 (rename_variables_in_expr): Return the renamed expression.
7809 (rename_sese_parameters): New.
7810 * sese.h (rename_sese_parameters): Declared.
7812 2010-02-11 Richard Guenther <rguenther@suse.de>
7814 PR tree-optimization/42998
7815 * tree-ssa-pre.c (create_expression_by_pieces): Treat
7816 POINTER_PLUS_EXPR properly.
7818 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
7819 Changpeng Fang <changpeng.fang@amd.com>
7822 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
7823 the cost of an IV candidate when the IV is used in a test against zero.
7825 * gcc.dg/tree-ssa/ivopts-3.c: New.
7827 2010-02-11 Richard Guenther <rguenther@suse.de>
7830 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
7831 pointer-vs-decl case by swapping refs. Handle some cases
7832 of pointer-vs-decl disambiguations more conservatively.
7833 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
7834 to false after expanding.
7836 2010-02-11 Richard Guenther <rguenther@suse.de>
7839 * gcc.c (process_command): Handle LTO file@offset case more
7842 2010-02-11 Jakub Jelinek <jakub@redhat.com>
7844 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
7845 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
7847 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
7849 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
7850 if MEM's mode size isn't DWARF2_ADDR_SIZE.
7851 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
7852 Optimize eq/ne comparisons when both arguments are known to be
7854 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
7855 Don't mask operands unnecessarily if they are known to be already
7858 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
7860 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
7863 2010-02-10 Richard Guenther <rguenther@suse.de>
7865 PR tree-optimization/43017
7866 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
7867 for wrapping signed arithmetic.
7869 2010-02-10 Jakub Jelinek <jakub@redhat.com>
7872 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
7873 if no debug info should be emitted for it.
7875 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
7877 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
7878 note when flag_exceptions is set.
7880 2010-02-10 Duncan Sands <baldrick@free.fr>
7882 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
7884 2010-02-10 Richard Guenther <rguenther@suse.de>
7887 * tree.c (get_unwidened): Handle constants.
7888 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
7890 2010-02-10 Martin Jambor <mjambor@suse.cz>
7893 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
7894 check for variable argument counts independently.
7896 2010-02-10 Christian Bruel <christian.bruel@st.com>
7899 * config/sh/sh.c (find_barrier): Increase length for non delayed
7900 conditional branches.
7902 2010-02-10 Christian Bruel <christian.bruel@st.com>
7904 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
7906 2010-02-10 Jakub Jelinek <jakub@redhat.com>
7908 * builtins.c (set_builtin_user_assembler_name): Also handle
7909 ffs if int is smaller than word.
7911 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
7914 * ira-conflicts.c (get_dup): Remove.
7915 (process_reg_shuffles): Add new parameter. Use it as an
7916 additional guard for copy generation.
7917 (add_insn_allocno_copies): Rewrite.
7919 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
7921 * common.opt (fsched2-use-traces): Preserved for backward
7923 * doc/invoke.texi: Remove the documentation about option
7924 -fsched2-use-traces.
7925 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
7926 flag_sched2_use_traces.
7927 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
7928 the backward compatibility flag section.
7930 2010-02-09 Richard Guenther <rguenther@suse.de>
7932 PR tree-optimization/43008
7933 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
7934 make HEAP variables initialized from global memory if they
7935 are not known builtin functions.
7936 (find_func_aliases): Adjust.
7938 2010-02-09 Richard Guenther <rguenther@suse.de>
7940 PR tree-optimization/43000
7941 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
7942 arithmetic manually.
7944 2010-02-08 Jakub Jelinek <jakub@redhat.com>
7946 PR tree-optimization/42931
7947 * tree-loop-linear.c (try_interchange_loops): Don't call
7948 double_int_mul if estimated_loop_iterations failed.
7950 2010-02-08 Martin Jambor <mjambor@suse.cz>
7953 * tree-sra.c (build_accesses_from_assign): Do not mark in
7954 should_scalarize_away_bitmap if stmt has volatile ops.
7955 (sra_modify_assign): Do not process assigns piecemeal if if stmt
7958 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
7960 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
7962 2010-02-07 Adam Nemet <adambnmet@gmail.com>
7964 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
7967 2010-02-07 Andrew Pinski <pinskia@gmail.com>
7970 * df-core.c (df_finish_pass): Change type of saved_flags to int.
7972 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
7975 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
7976 to unknown_dependence.
7977 (graphite_legal_transform_dr): Handle the unknown_dependence.
7978 (graphite_carried_dependence_level_k): Same.
7980 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
7982 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
7984 2010-02-07 Richard Guenther <rguenther@suse.de>
7987 * expr.c (get_inner_reference): Always initialize *pbitsize.
7989 2010-02-07 Richard Guenther <rguenther@suse.de>
7992 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
7993 new ARRAY_REFs on variable size element or minimal index arrays.
7995 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
7996 gimple_fold_indirect_ref.
7998 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
8001 * arm.c (arm_override_options): Just return if the user has specified
8002 an invalid fpu name.
8004 2010-02-03 Jason Merrill <jason@redhat.com>
8007 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
8008 i386_pe_maybe_record_exported_symbol.
8010 2010-02-05 Steve Ellcey <sje@cup.hp.com>
8013 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
8014 (pa_delegitimize_address): New function.
8016 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
8018 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
8019 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
8021 2010-02-05 Richard Guenther <rguenther@suse.de>
8024 * lto-streamer-in.c (get_resolution): Deal with references
8025 to undefined functions.
8027 2010-02-05 Richard Guenther <rguenther@suse.de>
8029 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
8030 (fold_const_aggregate_ref): Likewise.
8031 (ccp_fold_stmt): Substitute loads.
8032 (maybe_fold_reference): Verify types before substituting.
8034 (fold_gimple_assign): Unshare properly.
8035 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
8037 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
8039 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
8040 for rs6000_gen_cell_microcode.
8042 2010-02-04 Richard Guenther <rguenther@suse.de>
8044 PR rtl-optimization/42952
8045 * dse.c (const_or_frame_p): Remove MEM handling.
8047 2010-02-04 Nick Clifton <nickc@redhat.com>
8049 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
8050 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
8051 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
8052 (mn10300_asm_output_mi_thunk): New function.
8053 (mn10300_can_output_mu_thunk): New function.
8054 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
8055 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
8056 (FUNCTION_ARG): Delete incorrect comment.
8058 2010-02-03 Jason Merrill <jason@redhat.com>
8061 * fold-const.c (operand_equal_p): Handle erroneous types.
8063 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
8065 * config/h8300/h8300.md (can_delay): Fix attibute condition.
8067 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
8069 PR rtl-optimization/42941
8070 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
8073 2010-02-03 Jason Merrill <jason@redhat.com>
8076 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
8078 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
8081 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
8082 (cselib_reset_table): Renamed from...
8083 (cselib_reset_table_with_next_value): ... this.
8084 (cselib_get_next_uid): Renamed from...
8085 (cselib_get_next_unknown_value): ... this.
8086 * cselib.c (next_uid): Renamed from...
8087 (next_unknown_value): ... this.
8088 (cselib_clear_table): Adjust.
8089 (cselib_reset_table): Adjust. Renamed from...
8090 (cselib_reset_table_with_next_value): ... this.
8091 (cselib_get_next_uid): Adjust. Renamed from...
8092 (cselib_get_next_unknown_value): ... this.
8093 (get_value_hash): Use hash.
8094 (cselib_hash_rtx): Likewise.
8095 (new_cselib_val): Adjust. Set and dump uid.
8096 (cselib_lookup_mem): Pass next_uid as hash.
8097 (cselib_subst_to_values): Likewise.
8098 (cselib_log_lookup): Dump uid.
8099 (cselib_lookup): Pass next_uid as hash. Adjust.
8100 (cselib_process_insn): Adjust.
8101 (cselib_init): Initialize next_uid.
8102 (cselib_finish): Adjust.
8103 (dump_cselib_table): Likewise.
8104 * dse.c (canon_address): Dump value uid.
8105 * print-rtl.c (print_rtx): Print value uid.
8106 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
8108 (dv_uid): New function, sort of renamed from...
8109 (dv_htab_hash): ... this, reimplemented in terms of it and...
8110 (dv_uid2hash): ... this. New.
8111 (variable_htab_eq): Drop excess assertions.
8112 (tie_break_pointers): Removed.
8113 (canon_value_cmp): Compare uids.
8114 (variable_post_merge_New_vals): Print uids.
8115 (vt_add_function_parameters): Adjust.
8116 (vt_initialize): Reset table. Adjust.
8118 2010-02-03 Richard Guenther <rguenther@suse.de>
8120 PR tree-optimization/42944
8121 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
8122 (call_may_clobber_ref_p_1): Likewise. Properly handle
8123 malloc and calloc clobbering errno.
8125 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
8127 * doc/invoke.texi: Fix name of sched1 dump.
8129 * opts.c (decode_options): Set flag_tree_switch_conversion
8130 only conditionally on optimize >= 2.
8132 * gcse.c: Assorted comment fixes in pass description.
8134 2010-02-03 Anthony Green <green@moxielogic.com>
8136 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
8137 nop padding in order to maintain alignment of storage location of
8138 target function address.
8139 (moxie_trampoline_init): Store target function address at newly
8141 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
8143 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
8145 2010-02-03 Richard Guenther <rguenther@suse.de>
8148 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
8150 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8152 * config.gcc: Reenable check for obsolete targets.
8153 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
8154 mips-sgi-irix6.[0-4]*.
8156 2010-02-02 Nick Clifton <nickc@redhat.com>
8158 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
8159 constant size of 4 as being the same as 0.
8160 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
8161 can take values in the range 0..4.
8163 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
8166 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
8167 as _darwin10_Unwind_FindEnclosingFunction().
8168 * libgcc-libsystem.ver: New.
8170 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
8173 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
8174 implicitly set registers.
8176 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
8178 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
8179 (arm_override_options): Allow automatic selection of the thread
8180 pointer register if thumb2.
8181 (legitimize_pic_address): Improve code sequences for Thumb2.
8182 (arm_call_tls_get_addr): Likewise.
8183 (legitimize_tls_address): Likewise.
8184 * arm.md (pic_load_addr_arm): Delete. Replace with ...
8185 (pic_load_addr_32bit): ... this. New named pattern.
8186 * thumb2.md (pic_load_addr_thumb2): Delete.
8187 (pic_load_dot_plus_four): Delete.
8188 (tls_load_dot_plus_four): New named pattern.
8190 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8193 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
8194 Document fix for TLS bug.
8196 2010-01-31 Richard Guenther <rguenther@suse.de>
8198 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
8199 conservatively correct.
8201 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8205 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8207 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
8209 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8211 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
8213 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
8215 * config.gcc: Adjust order of makefile fragments for mingw targets.
8217 2010-01-31 Richard Guenther <rguenther@suse.de>
8220 * gimplify.c (gimplify_init_constructor): For volatile LHS
8221 initialize a temporary.
8223 2010-01-31 Matthias Klose <doko@ubuntu.com>
8225 * configure.ac: Fix __stack_chk_fail check for cross builds configured
8227 * configure: Regenerate.
8229 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
8231 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
8232 the same alias set and their sizes different constantness.
8233 (aliasing_component_refs_p): Revert 2009-10-24 change.
8235 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8237 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
8240 2010-01-29 Richard Guenther <rguenther@suse.de>
8242 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
8243 Assert we successfully updated the call.
8245 2010-01-29 Jakub Jelinek <jakub@redhat.com>
8247 PR rtl-optimization/42889
8248 * df.h (df_set_bb_dirty_nonlr): New prototype.
8249 * df-core.c (df_set_bb_dirty_nonlr): New function.
8250 * df-scan.c (df_insn_rescan): Call it instead of
8251 df_set_bb_dirty for DEBUG_INSNs.
8253 2010-01-29 Richard Guenther <rguenther@suse.de>
8256 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
8257 quadratic behavior in most cases.
8259 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
8262 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
8263 in the call to gen_x86_movsicc_0_m1.
8265 2010-01-28 Richard Guenther <rguenther@suse.de>
8267 PR tree-optimization/42871
8268 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
8270 2010-01-28 Richard Guenther <rguenther@suse.de>
8272 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
8273 into call arguments.
8275 2010-01-28 Richard Guenther <rguenther@suse.de>
8278 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
8279 the forwarder if the destination is an EH landing pad.
8281 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
8283 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
8284 block list passed to gimple_duplicate_sese_tail.
8285 (parallelize_loops): Avoid parallelization when the function
8287 Avoid parallelization when the preheader is IRREDUCIBLE.
8288 Try to optimize when estimated_loop_iterations_int is unresolved.
8289 Add the loop's location to the dump file.
8290 * tree-cfg.c (add_phi_args_after_redirect): Remove.
8291 (gimple_duplicate_sese_tail): Remove the check for the latch.
8292 Redirect nexits to the exit block.
8293 Remove handling of the incoming edges to the latch.
8294 Redirect the backedge from the copied latch to the exit bb.
8296 2010-01-28 Michael Matz <matz@suse.de>
8299 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
8300 Wrap force_reg into a sequence, emit it before user.
8302 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
8304 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
8306 (arm_legacy_rev): Likewise.
8307 (thumb_legacy_rev): Likewise.
8309 2010-01-27 Jakub Jelinek <jakub@redhat.com>
8311 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
8312 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
8313 on MEM's address failed, try avoid_constant_pool_reference and
8314 recurse if it returned something different.
8315 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
8316 address, try avoid_constant_pool_reference and recurse if it
8317 returned something different.
8318 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
8319 address and avoid_constant_pool_reference returned something
8320 different, don't set have_address.
8322 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
8325 * var-tracking.c (val_store): Add modified argument, obey it.
8327 (count_uses): Move down logging of main.
8328 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
8329 don't need resolution.
8330 (emit_notes_in_bb): Likewise.
8332 2010-01-27 Richard Guenther <rguenther@suse.de>
8335 * tree-inline.c (remap_decl): Delay remapping of SSA name
8336 default definitions until we need them.
8338 2010-01-27 Jakub Jelinek <jakub@redhat.com>
8340 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
8341 (rs6000_delegitimize_address): New function.
8343 * config/s390/s390.c (s390_delegitimize_address): Call
8344 delegitimize_mem_from_attrs.
8347 * tree-inline.c (cannot_copy_type_1): Removed.
8348 (copy_forbidden): Don't forbid copying of functions containing
8349 records/unions with variable length fields.
8351 2010-01-27 Christian Bruel <christian.bruel@st.com>
8355 * config/sh/sh.c (find_barrier): Increase length for non delayed
8356 conditional branches.
8358 2010-01-27 Matthias Klose <doko@ubuntu.com>
8360 * configure.ac (gnu-unique-object): Fix ldd version check.
8361 * configure: Regenerate.
8363 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8365 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
8367 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
8368 Test for HAVE_GNU_AS value.
8370 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8372 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
8373 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
8374 INT64_TYPE): Define.
8375 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
8376 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
8377 INT_LEAST64_TYPE): Define.
8378 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
8379 UINT_LEAST64_TYPE): Define.
8380 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
8381 INT_FAST64_TYPE): Define.
8382 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
8383 UINT_FAST64_TYPE): Define.
8384 (INTMAX_TYPE, UINTMAX_TYPE): Define.
8385 (INTPTR_TYPE, UINTPTR_TYPE): Define.
8386 (SIG_ATOMIC_TYPE): Define.
8388 2010-01-26 Richard Guenther <rguenther@suse.de>
8390 * df-scan.c (df_scan_set_bb_info): Remove assert.
8391 (df_insn_rescan_debug_internal): Merge asserts.
8392 (df_install_ref): Likewise.
8393 (df_mark_reg): Use bitmap_set_range.
8394 (df_hard_reg_used_p): Remove assert.
8395 (df_hard_reg_used_count): Likewise.
8397 2010-01-26 Richard Guenther <rguenther@suse.de>
8399 PR rtl-optimization/42685
8400 * web.c (web_main): Ignore DEBUG_INSNs.
8402 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
8404 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
8406 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
8407 Fix types of fndecl and arglist parameters.
8409 2010-01-26 Richard Guenther <rguenther@suse.de>
8412 * tree-eh.c (unsplit_eh): Skip debug insns.
8414 2010-01-26 Richard Guenther <rguenther@suse.de>
8416 PR tree-optimization/42250
8417 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
8419 2010-01-26 Jakub Jelinek <jakub@redhat.com>
8422 * omp-low.c (expand_omp_sections): Only use single_pred if
8423 l2_bb is single_pred_p.
8425 2010-01-25 Christian Bruel <christian.bruel@st.com>
8428 * config/sh/sh.c (find_barrier): Increase length for non delayed
8429 conditional branches.
8430 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
8432 2010-01-24 David S. Miller <davem@davemloft.net>
8434 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
8435 define if not using GAS.
8436 * config/sparc/sparc.c (sparc_elf_asm_named_section):
8437 Likewise. Delete SECTION_MERGE code, which is only applicable
8440 2010-01-24 Mark Mitchell <mark@codesourcery.com>
8443 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
8444 mangling of va_list in system headers.
8446 2010-01-23 Toon Moene <toon@moene.org>
8448 * tree-predcom.c (combine_chains): Return NULL, not false.
8450 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
8452 * tree-loop-distribution.c (distribute_loop): Fix declaration and
8453 initialization of variable res to agree with return type.
8455 2010-01-22 Steve Ellcey <sje@cup.hp.com>
8457 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
8458 * tree-sra.c: Add include of expr.h.
8460 2010-01-22 Jakub Jelinek <jakub@redhat.com>
8462 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
8463 insert the debug stmt on the single non-EH edge from the stmt.
8465 2010-01-22 Richard Henderson <rth@redhat.com>
8468 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
8469 the RHS until after generate_subtree_copies has insertted its
8470 code before the current statement.
8472 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
8474 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
8476 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
8478 2010-01-21 Martin Jambor <mjambor@suse.cz>
8480 PR tree-optimization/42585
8481 * tree-sra.c (struct access): New field grp_total_scalarization.
8482 (dump_access): Dump the new field.
8483 (should_scalarize_away_bitmap): New variable.
8484 (cannot_scalarize_away_bitmap): Likewise.
8485 (sra_initialize): Allocate new bitmaps.
8486 (sra_deinitialize): Free new bitmaps.
8487 (create_access_1): New function.
8488 (create_access): Parts moved to create_access_1.
8489 (type_consists_of_records_p): New function.
8490 (completely_scalarize_record): Likewise.
8491 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
8492 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
8493 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
8495 (analyze_all_variable_accesses): Completely scalarize small eligible
8498 2010-01-21 Martin Jambor <mjambor@suse.cz>
8500 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
8502 2010-01-21 Andrew Haley <aph@redhat.com>
8504 * gcc.c (process_command): Move lang_specific_driver before
8505 setting cc_libexec_prefix.
8507 2010-01-21 Richard Guenther <rguenther@suse.de>
8510 * fold-const.c (negate_expr_p): Pretend only negative
8511 real constants are easily negatable.
8513 2010-01-20 Janis Johnson <janis187@us.ibm.com>
8514 Jason Merrill <jason@redhat.com>
8516 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
8517 (TYPE_TRANSPARENT_AGGR): this, for union and record.
8518 * calls.c (initialize argument_information): Handle it.
8519 * c-common.c (handle_transparent_union_attribute): Use new name.
8520 * c-decl.c (finish_struct): Ditto.
8521 * c-typeck.c (type_lists_compatible_p): Ditto.
8522 (convert_for_assignment): Use new name and also handle record.
8523 * function.c (aggregate_value_p): Handle it.
8524 (pass_by_reference): Ditto.
8525 (assign_parm_data_types): Ditto.
8526 * print-tree.c (print_node): Ditto.
8527 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
8528 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
8529 * tree.c (first_field): New fn.
8531 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
8534 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
8535 even when linking statically, for now.
8537 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
8540 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
8541 without a cselib val.
8542 (count_uses): Accept MO_VAL_SET with no val on stores.
8543 (add_stores): Likewise.
8545 2010-01-20 Jakub Jelinek <jakub@redhat.com>
8547 * var-tracking.c (check_value_val): Add a compile time assertion.
8548 (dv_is_decl_p): Simplify.
8549 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
8550 gcc_assert if ENABLE_CHECKING.
8552 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
8555 * var-tracking.c: Include tree-flow.h.
8556 (mem_dies_at_call): New.
8557 (dataflow_set_preserve_mem_locs): Use it.
8558 (dataflow_set_remove_mem_locs): Likewise.
8559 (dump_var): Renamed from dump_variable. Adjust all callers.
8560 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
8561 * Makefile.in (var-tracking.o): Adjust deps.
8563 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
8565 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
8567 2010-01-20 Richard Guenther <rguenther@suse.de>
8569 PR tree-optimization/42717
8570 * tree-ssa-dce.c (get_live_post_dom): Remove.
8571 (forward_edge_to_pdom): Take an arbitrary edge to copy
8572 degenerate PHI args from.
8573 (remove_dead_stmt): Use the first post-dominator even if it
8574 does not contain live statements as redirection destination.
8576 2010-01-20 Richard Guenther <rguenther@suse.de>
8578 * tree-inline.c (estimate_num_insns): Handle EH builtins.
8580 2010-01-20 Jakub Jelinek <jakub@redhat.com>
8582 * sel-sched.c (create_speculation_check): Remove set but not used
8584 (try_transformation_cache): Remove set but not used variable ds.
8585 (calculate_privileged_insns): Remove set but not used variables
8586 cur_insn and min_spec_insn.
8587 (find_best_expr): Remove set but not used variable avail_n.
8588 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
8590 * cgraphunit.c (assemble_thunk): Remove set but not used variable
8592 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
8593 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
8596 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
8599 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
8600 cpu types. Add support for *-sse3 cpu types.
8601 (x86_64-*-*): Ditto.
8603 2010-01-20 Jakub Jelinek <jakub@redhat.com>
8606 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
8607 argument, call initializer_constant_valid_p_1 instead of
8608 initializer_constant_valid_p, pass CACHE to it, return NULL
8609 immediately if first call returns NULL.
8610 (initializer_constant_valid_p_1): New function.
8611 (initializer_constant_valid_p): Use it.
8613 2010-01-20 Thomas Quinot <quinot@adacore.com>
8615 * tree.def (PLACEHOLDER_EXPR): Fix comment.
8617 2010-01-20 Jakub Jelinek <jakub@redhat.com>
8619 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
8620 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
8621 (loc_list_from_tree): Don't handle unsigned division. Handle
8622 signed modulo using DW_OP_{over,over,div,mul,minus}.
8623 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
8624 modulo instead of signed.
8626 2010-01-20 DJ Delorie <dj@redhat.com>
8628 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
8630 (h8300_emit_stack_adjustment): Propogate it.
8632 (h8300_expand_prologue): Likewise.
8633 (h8300_expand_epilogue): Likewise.
8635 2010-01-19 Michael Matz <matz@suse.de>
8637 PR tree-optimization/41783
8638 * tree-data-ref.c (toplevel): Include flags.h.
8639 (dump_data_dependence_relation): Also dump the inputs if the
8640 result will be unknown.
8641 (split_constant_offset_1): Look through some conversions.
8642 * tree-predcom.c (determine_roots_comp): Restart a new chain if
8643 the offset from last element is too large.
8644 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
8645 (reassociate_to_the_same_stmt): Handle vector registers.
8646 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
8648 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
8649 wide_prolog_niters argument, emit widening instructions.
8650 (vect_do_peeling_for_alignment): Adjust caller, use widened
8651 variant of the iteration cound.
8652 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
8654 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8657 * config/arm/neon-testgen.m (emit_automatics): New parameter
8658 features. Adjust for Fixed_return_reg feature.
8659 (test_intrinsic): Call emit_automatics with new feature.
8660 * config/arm/neon.ml: Update copyright years.
8661 (features): New Fixed_return_reg feature.
8662 (ops): Update feature for Vget_low.
8664 2010-01-19 Jakub Jelinek <jakub@redhat.com>
8666 PR tree-optimization/42719
8667 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
8671 * fwprop.c (all_uses_available_at): Return false if def_set dest
8672 is a REG that is used in def_insn.
8674 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
8676 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
8678 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
8681 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
8683 * target.h (struct gcc_target) <secondary_reload>: Change type
8684 of last argument to secondary_reload_info *.
8686 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
8689 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
8690 memory references with unaligned offsets. Remove CQImode handling.
8691 (unaligned_memory_operand): Return 1 for memory references with
8692 unaligned offsets. Remove CQImode handling.
8694 2010-01-18 Richard Guenther <rguenther@suse.de>
8697 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
8700 2010-01-18 Richard Guenther <rguenther@suse.de>
8702 PR tree-optimization/42781
8703 * tree-ssa-structalias.c (find_what_var_points_to): Skip
8704 restrict processing only if the original variable was artificial.
8706 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
8708 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
8709 find number of popped argument bytes.
8711 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
8712 Fix the text that describes the return value for invalid insns.
8714 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
8716 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
8717 Clarify what 'cost of the -dependence' is. Fix quoting.
8719 * toplev.c (default_get_pch_validity): Rename argument to "sz".
8720 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
8722 2010-01-17 Jakub Jelinek <jakub@redhat.com>
8724 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
8725 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
8727 2010-01-17 Richard Guenther <rguenther@suse.de>
8730 * function.c (split_complex_args): Take a VEC to modify.
8731 (assign_parms_augmented_arg_list): Build a VEC instead of
8732 a chain of PARM_DECLs.
8733 (assign_parms_unsplit_complex): Take a VEC of arguments.
8734 Do not fixup unmodified parms.
8735 (assign_parms): Deal with the VEC.
8736 (gimplify_parameters): Likewise.
8738 2010-01-17 Richard Guenther <rguenther@suse.de>
8740 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
8741 node existence check.
8742 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
8743 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
8744 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
8745 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
8746 (gimple_execute_on_growing_pred): Likewise.
8748 2010-01-17 Richard Guenther <rguenther@suse.de>
8750 PR tree-optimization/42773
8751 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
8752 (compute_antic_aux): Likewise.
8753 (compute_partial_antic_aux): Likewise.
8755 2010-01-17 Jie Zhang <jie.zhang@analog.com>
8758 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
8761 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
8763 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
8766 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
8767 Fix markup for strict argument.
8769 (TARGET_SCHED_REORDER2): Fix argument types.
8771 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
8772 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
8774 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
8775 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
8777 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
8780 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
8781 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
8782 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
8783 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
8784 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
8786 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
8788 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
8790 (TARGET_ASM_RELOC_RW_MASK): Add return type.
8791 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
8793 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
8795 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
8798 (TARGET_ASM_NAMED_SECTION): Fix argument list.
8800 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
8801 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
8803 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
8805 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
8807 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
8808 referring to it. Fix language.
8810 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
8812 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
8814 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
8816 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
8818 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
8819 '@var{stream}. Remove stray 'and'.
8821 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
8823 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
8825 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
8827 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
8828 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
8830 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
8831 Fix description of return value.
8832 Rename argument "sz" to "len."
8834 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
8835 Clarify meaning of 'true' return value.
8837 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
8839 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
8840 rep_mode versus mode_rep.
8842 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
8844 (TARGET_BUILTIN_DECL): Fix name.
8846 (TARGET_COMMUTATIVE_P): Fix type of first argument.
8848 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
8850 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
8852 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
8854 (TARGET_RELAXED_ORDERING): Use @deftypevr.
8856 (TARGET_GET_DRAP_RTX): Note that this is a hook.
8859 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
8860 Rename argument tm_fn to md_fn.
8862 (TARGET_OPTION_PRINT): Fix argument list.
8864 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
8867 * config/i386/i386.c (ix86_fixup_binary_operands):
8868 Revert FMA4 fixup of operands.
8870 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8873 * Makefile.in (write_entries_to_file, install-plugin):
8874 Use \012 instead of \n with tr.
8876 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
8878 * configure.ac (HAVE_AS_REF): New C macro.
8879 * configure: Regenerate.
8880 * config.in: Likewise.
8881 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
8883 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
8886 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
8888 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
8890 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
8892 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
8894 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
8896 (TARGET_IN_SMALL_DATA_P): Fix argument type.
8898 (TARGET_BINDS_LOCAL_P): Fix argument type.
8900 (TARGET_ASM_FILE_END): Use prototype.
8902 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
8904 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
8906 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
8908 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
8910 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
8911 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
8913 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
8914 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
8916 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
8917 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
8918 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
8919 (TARGET_ADDR_SPACE_CONVERT): Likewise.
8921 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
8923 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
8925 (TARGET_INIT_BUILTINS): Use prototype.
8927 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
8928 Put 'const char *' in braces. Fix parameter types.
8929 (TARGET_INVALID_CONVERSION): Fix parameter types.
8930 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
8931 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
8933 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
8936 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
8938 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
8940 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
8942 * doc/tm.texi (TARGET_HELP): Fix return type.
8944 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
8945 in braces. Fix argument types.
8947 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
8949 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
8951 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
8953 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
8954 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
8956 (TARGET_MANGLE_TYPE): Fix argument types.
8958 (TARGET_IRA_COVER_CLASSES): Use prototype.
8960 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
8962 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
8964 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
8966 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
8968 (TARGET_CALLEE_COPIES): Fix argument types.
8970 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
8972 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
8974 (TARGET_FUNCTION_VALUE): Fix argument types.
8976 (TARGET_RETURN_IN_MSB): Fix argument type.
8978 (TARGET_RETURN_IN_MEMORY): Fix argument types.
8980 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
8982 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
8984 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
8985 agree with return type.
8987 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
8989 2010-01-15 Jing Yu <jingyu@google.com>
8991 PR rtl-optimization/42691
8992 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
8993 a pseudo to a constant and are merged, and adjust comments.
8995 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
8997 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
8999 2010-01-15 Richard Guenther <rguenther@suse.de>
9002 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
9003 labels of computed or non-local gotos to the destination.
9004 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
9005 landing pad label is the first label.
9007 2010-01-15 Richard Guenther <rguenther@suse.de>
9009 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
9011 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
9014 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
9015 to allow generation of the xssqrtdp instruction on power7.
9016 (sqrtdf2_fpr): Ditto.
9018 2010-01-14 Jakub Jelinek <jakub@redhat.com>
9021 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
9022 functions with noreturn attribute.
9025 * varasm.c (declare_weak): Add weak attribute to decl if it
9026 doesn't have one already.
9027 (assemble_external): Only add decls to weak_decls if they also
9028 have weak attribute.
9030 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
9032 * var-tracking.c (var_reg_delete): Don't delete the association
9033 between REGs and values or one-part variables if the register
9036 2010-01-14 Jakub Jelinek <jakub@redhat.com>
9039 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
9040 because its first operand is a non-localized variable.
9042 2010-01-14 Martin Jambor <mjambor@suse.cz>
9044 PR tree-optimization/42706
9045 * tree-sra.c (encountered_recursive_call): New variable.
9046 (encountered_unchangable_recursive_call): Likewise.
9047 (sra_initialize): Initialize both new variables.
9048 (callsite_has_enough_arguments_p): New function.
9049 (scan_function): Call decl and flags check only for IPA-SRA, check
9050 whether there is a recursive call and whether it has enough arguments.
9051 (all_callers_have_enough_arguments_p): New function.
9052 (convert_callers): Look for recursive calls only when
9053 encountered_recursive_call is set.
9054 (ipa_early_sra): Bail out either if
9055 !all_callers_have_enough_arguments_p or
9056 encountered_unchangable_recursive_call.
9058 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
9060 * sel-sched.c: Add 2010 to copyright years.
9061 * sel-sched-ir.c: Likewise.
9062 * sel-sched-ir.h: Likewise.
9064 2010-01-14 Martin Jambor <mjambor@suse.cz>
9066 PR tree-optimization/42714
9067 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
9068 constructors specially.
9070 2010-01-14 Andi Kleen <ak@linux.intel.com>
9072 * config/i386/drivers-i386.c (detect_caches_intel):
9073 Add l2sizekb parameter and fill in.
9074 (host_detect_local_cpu): Add l2sizekb, fill in.
9075 Add Atom small cache heuristic.
9077 2010-01-14 Andi Kleen <ak@linux.intel.com>
9079 * config/i386/drivers-i386.c (detect_caches_cpuid4):
9080 Add level3 parameter and fill in.
9081 (detect_caches_intel): Handle level3 cache.
9083 2010-01-14 Andi Kleen <ak@linux.intel.com>
9085 * config/i386/drivers-i386.c (host_detect_local_cpu):
9086 Fix core duo detection.
9088 2010-01-14 Andi Kleen <ak@linux.intel.com>
9090 * config/i386/drivers-i386.c (host_detect_local_cpu):
9093 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
9095 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
9096 (rs6000_variable_issue_1): this. Use...
9097 (rs6000_variable_issue): here. Reimplement. Print debug info.
9099 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
9101 * sel-sched-ir.c (sel_restore_other_notes): Rename to
9102 sel_restore_notes. Update all callers. Call reemit_notes
9105 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
9107 PR rtl-optimization/42246
9108 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
9111 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
9113 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
9114 all successors is the same as number of successors in current region.
9116 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
9118 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
9119 to rename is not separable. Otherwise check that its LHS is not NULL.
9121 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
9123 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
9125 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
9127 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
9128 available registers when failed to discover LHS register class.
9129 Fix indentation. Update comment.
9131 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
9132 Alexander Monakov <amonakov@ispras.ru>
9134 PR rtl-optimization/42389
9135 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
9137 (advance_state_on_fence): Likewise.
9138 (sel_target_adjust_priority): Print debug output only when
9139 sched_verbose >= 4, not 2.
9140 (get_expr_cost): Do not issue all unique insns on the next cycle.
9141 (fill_insns): Initialize can_issue_more from the value saved
9143 * sel-sched-ir.c (flist_add): New parameter issue_more.
9144 Init FENCE_ISSUE_MORE with it.
9145 (merge_fences): Likewise.
9146 (init_fences): Update call to flist_add.
9147 (add_to_fences, add_clean_fence_to_fences)
9148 (add_dirty_fence_to_fences): Likewise.
9149 (move_fence_to_fences): Update call to merge_fences.
9150 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
9152 * sel-sched-ir.h (struct _fence): New field issue_more.
9153 (FENCE_ISSUE_MORE): New accessor macro.
9155 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
9157 PR rtl-optimization/42388
9158 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
9159 that have no predecessors nor successors. Do not call move_bb_info
9160 for empty blocks outside of current region.
9162 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
9164 PR rtl-optimization/42294
9165 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
9166 * sel-sched.c (move_exprs_to_boundary): Transitively add all
9167 originators' originators.
9169 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
9171 PR rtl-optimization/39453
9172 PR rtl-optimization/42246
9173 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
9175 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
9177 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
9178 Alexander Monakov <amonakov@ispras.ru>
9181 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
9182 (maybe_tidy_empty_bb): ... here. Make static. Add new
9183 argument. Update all callers.
9184 (tidy_control_flow): ... and here. Recompute topological order
9185 of basic blocks in region if necessary.
9186 (sel_redirect_edge_and_branch): Change return type. Return true
9187 if topological order might have been invalidated.
9188 (purge_empty_blocks): Export and move from...
9189 * sel-sched.c (purge_empty_blocks): ... here.
9190 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
9191 (maybe_tidy_empty_bb): Delete prototype.
9192 (purge_empty_blocks): Declare.
9194 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
9196 PR rtl-optimization/42249
9197 * sel-sched.c (try_replace_dest_reg): When chosen register
9198 and original register is the same, do not bail out early, but
9199 still check all original insns for validity of replacing destination
9200 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
9203 2010-01-14 Jakub Jelinek <jakub@redhat.com>
9206 Port from no-undefined-overflow branch:
9207 2009-03-09 Richard Guenther <rguenther@suse.de>
9209 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
9211 2010-01-14 Richard Guenther <rguenther@suse.de>
9214 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
9216 2010-01-14 Ira Rosen <irar@il.ibm.com>
9218 PR tree-optimization/42709
9219 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
9220 as scalar type in creation of constant vector operand.
9222 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9225 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
9226 (check-parallel-%): Match `testsuite' directory component only
9229 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
9231 PR translation/39521
9232 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
9235 2010-01-13 Richard Guenther <rguenther@suse.de>
9237 PR tree-optimization/42730
9238 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
9241 2010-01-13 Steve Ellcey <sje@cup.hp.com>
9244 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
9245 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
9248 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
9250 * config/bfin/libgcc-bfin.ver: Regenerate based on current
9251 libgcc-std.ver. Add entries for ___smulsi3_highpart and
9252 ___umulsi3_highpart.
9254 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
9255 rather than schedule_insns if the pass is enabled.
9257 2010-01-13 Martin Jambor <mjambor@suse.cz>
9259 PR tree-optimization/42704
9260 * tree-sra.c (sra_modify_assign): Do not delete assignments to
9263 2010-01-13 Martin Jambor <mjambor@suse.cz>
9265 PR tree-optimization/42703
9266 * tree-sra.c (analyze_access_subtree): Check that we can build a
9267 reference to the original data within the aggregate.
9269 2010-01-13 Richard Guenther <rguenther@suse.de>
9271 PR tree-optimization/42705
9272 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
9274 2010-01-13 Richard Guenther <rguenther@suse.de>
9277 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
9279 2010-01-13 Jakub Jelinek <jakub@redhat.com>
9282 * var-tracking.c (values_to_unmark): New variable.
9283 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
9284 values_to_unmark vector. Moved body to...
9285 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
9286 instead queue it into values_to_unmark vector.
9287 (vt_find_locations): Free values_to_unmark vector.
9289 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
9291 * config/s390/s390.c (override_options): Set
9292 default of max-pending-list-length to 256
9294 2010-01-13 Richard Guenther <rguenther@suse.de>
9297 * tree-pass.h (PROP_gimple_lcx): New.
9298 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
9299 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
9300 before the final cleanup_eh.
9301 (dump_properties): Dump PROP_gimple_lcx.
9302 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
9303 (tree_lower_complex_O0): Remove.
9304 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
9305 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
9306 tree_lower_complex, schedule TODO_update_ssa.
9307 * lto-streamer-out.c (output_function): Stream the functions
9309 * lto-streamer-in.c (input_function): Likewise.
9310 (lto_read_body): Do not override them here.
9312 2010-01-12 Joseph Myers <joseph@codesourcery.com>
9315 * c-typeck.c (build_c_cast): Fold value cast to union type before
9316 wrapping it in a CONSTRUCTOR.
9318 2010-01-12 Jakub Jelinek <jakub@redhat.com>
9320 PR rtl-optimization/42699
9321 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
9324 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9326 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
9327 SUBTARGET_WARN_UNUSED_SPEC): Move ...
9328 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
9329 SUBTARGET_WARN_UNUSED_SPEC): ... here
9330 * config/mips/iris5.h (LIBGCC_SPEC): Define.
9332 2010-01-12 Julian Brown <julian@codesourcery.com>
9334 * config/arm/neon-schedgen.ml (Utils): Don't try to
9335 open missing module.
9336 (find_with_result): New.
9338 2010-01-12 Jakub Jelinek <jakub@redhat.com>
9341 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
9342 sharing when canonicalizing ({lt,ge}u (plus a b) b).
9344 PR tree-optimization/42645
9345 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
9346 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
9347 decl_map, set processing_debug_stmt to -1 and return name without
9350 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
9352 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
9353 binutils version, and reword target configuration description.
9355 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
9357 * config/avr/avr.h (LINKER_NAME): Remove.
9359 2010-01-11 Janis Johnson <janis187@us.ibm.com>
9362 * config/rs6000/rs6000.c (rs6000_override_options): On targets
9363 that support VSX, warn for -mno-altivec if vsx is not disabled,
9366 2010-01-11 Joseph Myers <joseph@codesourcery.com>
9367 Shujing Zhao <pearly.zhao@oracle.com>
9369 PR translation/42469
9370 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
9371 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
9372 character between option name and help text.
9373 * c.opt (imultilib): Likewise.
9375 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
9377 * lto-streamer-out.c (output_unreferenced_globals): Output static
9380 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
9382 PR rtl-optimization/42621
9383 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
9384 optimizing for size.
9385 (duplicate_computed_gotos): Remove now-redundant check.
9387 2010-01-10 Steve Ellcey <sje@cup.hp.com>
9390 * configure.ac: Save and restore LDFLAGS and LIBS
9391 * configure: Regenerate.
9393 2010-01-10 Richard Guenther <rguenther@suse.de>
9396 * builtins.c (fold_builtin_strlen): Add type argument and
9397 convert the resulting length to it.
9398 (fold_builtin_1): Adjust.
9400 2010-01-09 Jakub Jelinek <jakub@redhat.com>
9402 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
9403 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
9405 (num_insns_constant_wide): Adjust for that change.
9407 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
9410 * web.c (union_defs): Add used argument, to combine uses of
9412 (entry_register): Adjust type and tests of used argument.
9413 (web_main): Widen used for new use. Pass it to union_defs.
9414 * df.h (union_defs): Adjust prototype.
9416 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
9419 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
9420 uses in new incoming argument. Free body.
9421 (reset_debug_uses_in_loop): New.
9422 (analyze_insn_to_expand_var): Call the latter if the former found
9423 anything. Fix whitespace. Reject invalid dest overlaps before
9424 going through all insns in the loop.
9426 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
9429 * haifa-sched.c (dying_use_p): Debug insns don't count.
9431 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
9434 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
9435 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
9436 (verify_gimple_call): Reject LHS in noreturn calls.
9438 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
9442 * tree-vect-loop-manip.c (adjust_info): New type.
9443 (adjust_vec): New pointer to vector.
9444 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
9445 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
9446 (slpeel_update_phis_for_duplicate_loop): Use them.
9447 (slpeel_update_phi_nodes_for_guard1): Likewise.
9448 (slpeel_update_phi_nodes_for_guard2): Likewise.
9449 (slpeel_tree_peel_loop_to_edge): Likewise.
9450 (vect_update_ivs_after_vectorizer): Likewise.
9452 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
9454 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
9455 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
9457 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
9459 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
9460 bogus uninitialized warning.
9462 2010-01-09 Richard Guenther <rguenther@suse.de>
9465 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
9466 the evolution is compatible with the initial condition.
9468 2010-01-09 Jakub Jelinek <jakub@redhat.com>
9470 * gcc.c (process_command): Update copyright notice dates.
9471 * gcov.c (print_version): Likewise.
9472 * gcov-dump.c (print_version): Likewise.
9473 * mips-tfile.c (main): Likewise.
9474 * mips-tdump.c (main): Likewise.
9476 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
9479 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
9481 (rotlhi3_8): Delete.
9483 (rotlsi3_8): Delete.
9484 (rotlsi3_16): Delete.
9485 (rotlsi3_24): Delete.
9487 (*rotw<mode>3): New.
9488 (*rotb<mode>3): New.
9489 * config/avr/avr.c (avr_rotate_bytes): New function.
9490 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
9492 2010-01-08 Steve Ellcey <sje@cup.hp.com>
9495 * configure.ac: Modify -rdynamic check.
9496 * configure: Regenerate.
9498 2010-01-08 DJ Delorie <dj@redhat.com>
9500 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
9501 register popping order.
9503 2010-01-08 Richard Guenther <rguenther@suse.de>
9506 * c.opt (fsigned-char): Also let LTO handle this option.
9507 (funsigned-char): Likewise.
9509 2010-01-07 Richard Guenther <rguenther@suse.de>
9511 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
9512 (gimple_op): Likewise.
9513 (gimple_op_ptr): Likewise.
9514 (gimple_assign_set_lhs): Remove gcc_assert.
9515 (gimple_assign_set_rhs1): Likewise.
9516 (gimple_assign_set_rhs2): Likewise.
9517 (gimple_call_set_lhs): Likewise.
9518 (gimple_call_set_fn): Likewise.
9519 (gimple_call_set_fndecl): Likewise.
9520 (gimple_call_fndecl): Likewise.
9521 (gimple_call_return_type): Likewise.
9522 (gimple_call_set_chain): Likewise.
9523 (gimple_call_num_args): Likewise.
9524 (gimple_call_set_arg): Likewise.
9525 (gimple_cond_set_code): Likewise.
9526 (gimple_cond_set_lhs): Likewise.
9527 (gimple_cond_set_rhs): Likewise.
9528 (gimple_cond_set_true_label): Likewise.
9529 (gimple_cond_set_false_label): Likewise.
9530 (gimple_label_set_label): Likewise.
9531 (gimple_goto_set_dest): Likewise.
9532 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
9533 (gimple_debug_bind_get_value): Likewise.
9534 (gimple_debug_bind_get_value_ptr): Likewise.
9535 (gimple_debug_bind_set_var): Likewise.
9536 (gimple_debug_bind_set_value): Likewise.
9537 (gimple_debug_bind_reset_value): Likewise.
9538 (gimple_debug_bind_has_value_p): Likewise.
9539 (gimple_return_retval_ptr): Remove gcc_assert.
9540 (gimple_return_retval): Likewise.
9541 (gimple_return_set_retval): Likewise.
9542 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
9543 (safe_referenced_var_iterator): Remove.
9544 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
9545 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
9546 (fill_referenced_var_vec): Remove.
9547 (first_readonly_imm_use): Remove redundant gcc_assert.
9548 (phi_arg_index_from_use): Combine gcc_asserts.
9549 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
9550 (first_imm_use_stmt): Remove redundant gcc_assert.
9551 * tree-cfg.c (verify_gimple_call): Verify function and chain
9552 operands. Verify arguments.
9553 (verify_types_in_gimple_stmt): Verify condition code and labels.
9555 2010-01-07 Richard Guenther <rguenther@suse.de>
9557 PR tree-optimization/42641
9558 * sese.c (rename_map_elt_info): Use the SSA name version, do
9561 2010-01-07 Jakub Jelinek <jakub@redhat.com>
9563 PR tree-optimization/42625
9564 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
9565 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
9567 2010-01-07 Duncan Sands <baldrick@free.fr>
9569 * Makefile.in (PLUGIN_HEADERS): Add version.h.
9571 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
9574 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
9575 note itself is not function_invariant_p.
9577 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
9579 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
9580 Do not add the DF_NOTE problem.
9581 * store-motion.c (execute_rtl_store_motion): Likewise.
9583 2010-01-07 Martin Jambor <mjambor@suse.cz>
9585 PR tree-optimization/42157
9586 * tree-sra.c (compare_access_positions): Stabilize sort if both
9587 accesses have integer types, return zero immediately if they are the
9590 2010-01-06 Richard Henderson <rth@redhat.com>
9593 * haifa-sched.c (add_to_note_list): Merge into ...
9594 (concat_note_lists): ... here, and ...
9595 (unlink_other_notes, rm_other_notes): Merge into...
9596 (remove_notes): ... here. Create REG_SAVE_NOTEs for
9597 NOTE_INSN_EPILOGUE_BEG.
9599 2010-01-06 Richard Guenther <rguenther@suse.de>
9601 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
9602 not inline regular functions into always-inline functions.
9604 2010-01-06 Nick Clifton <nickc@redhat.com>
9606 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
9607 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
9609 (OVERRIDE_OPTIONS): Delete.
9610 (OPTIMIZATION_OPTIONS): Define.
9611 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
9612 * config/rx/rx.c (rx_handle_option): Issue an error message if
9613 -mcpu=rx200 and -fpu are used together.
9614 (rx_set_optimization_options): New function. Issue an error
9615 message if an optimization attribute attempts to reset the FPU/
9616 math optimization pairing.
9617 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
9618 * config/rx/rx.opt: Set the default to 32-bit doubles.
9619 * config/rx/t-rx: Add multilibs for -nofpu option.
9620 * doc/invoke.texi: Update documentation of RX options.
9622 2010-01-06 Richard Guenther <rguenther@suse.de>
9624 * tree-ssa-pre.c (name_to_id): New global.
9625 (alloc_expression_id): Simplify SSA name handling.
9626 (lookup_expression_id): Likewise.
9627 (init_pre): Zero name_to_id.
9628 (fini_pre): Free it.
9630 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
9632 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
9634 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
9637 * config/i386/sse.md (smaxv2di3): New.
9638 (umaxv2di3): Likewise.
9639 (sminv2di3): Likewise.
9640 (uminv2di3): Likewise.
9642 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
9645 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
9646 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
9647 (legitimize_tls_address): Likewise.
9648 (sparc_tls_referenced_p): Likewise.
9649 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
9650 and adjust calls to legitimize_pic_address.
9651 (legitimate_constant_p) Use sparc_tls_referenced_p.
9652 (legitimate_pic_operand_p): Likewise.
9653 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
9654 (sparc_tls_symbol_ref_1): Delete.
9655 (sparc_tls_referenced_p): Make static, recognize specific patterns.
9656 (legitimize_tls_address): Make static, handle CONST patterns.
9657 (legitimize_pic_address): Make static, remove unused parameter and
9658 adjust recursive calls.
9659 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
9660 and adjust call to legitimize_pic_address.
9661 (sparc_output_mi_thunk): Likewise.
9663 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
9664 H.J. Lu <hongjiu.lu@intel.com>
9667 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
9668 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
9669 operands to make them signed.
9672 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
9675 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
9676 GTU to GT for V4SI and V2DI.
9678 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
9679 (umin<mode>3): Removed.
9681 (uminv4si3): Likewise.
9683 2010-01-05 Martin Jambor <mjambor@suse.cz>
9685 PR tree-optimization/42462
9686 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
9687 current_function_decl to helper functions and macros.
9689 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9692 * flags.h: Don't include real.h.
9693 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
9694 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
9695 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
9696 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
9697 * dominance.c: Update copyright.
9698 * gimple.c (walk_gimple_op): Remove inline.
9699 * tree-ssa-reassoc.c: Include real.h.
9700 * Makefile.in (FLAGS_H): Remove $(REAL_H).
9701 (tree-ssa-reassoc.o): Depend on $(REAL_H).
9703 2010-01-05 Nick Clifton <nickc@redhat.com>
9705 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
9706 register to push into the stack frame when the accumulator has to
9707 be saved during interrupts.
9709 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
9711 * doc/invoke.texi: Remove the documentation about option
9713 * common.opt (Wunreachable-code): Preserved for backward
9715 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
9716 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
9717 the backward compatibility flag section.
9719 2010-01-05 Richard Guenther <rguenther@suse.de>
9721 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
9723 2010-01-05 Jakub Jelinek <jakub@redhat.com>
9726 * cfgexpand.c (expand_one_var): Diagnose too large variables.
9728 PR tree-optimization/42508
9729 * tree-sra.c (convert_callers): Check for recursive call
9730 by comparing cgraph nodes instead of decls.
9731 (modify_function): Call ipa_modify_formal_parameters also
9732 on all same_body aliases.
9734 * cgraphunit.c (cgraph_materialize_all_clones): Compare
9735 cgraph nodes when checking for same_body aliases.
9737 2010-01-05 Richard Guenther <rguenther@suse.de>
9739 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
9740 allocation and lookup.
9741 (get_or_alloc_expr_for_constant): Likewise.
9742 (phi_translate): Sink allocation.
9744 2010-01-04 Richard Guenther <rguenther@suse.de>
9746 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
9747 a new entry only if needed.
9748 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
9749 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
9751 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
9753 (phi_translate): Handle CONSTANTs early.
9755 2010-01-04 Martin Jambor <mjambor@suse.cz>
9757 PR tree-optimization/42398
9758 * tree-sra.c (struct access): Removed flag grp_different_types.
9759 (dump_access): Do not dump the removed flag.
9760 (sort_and_splice_var_accesses): Do not set the removed flag.
9761 (sra_modify_expr): Check for type compatibility directly.
9763 2010-01-04 Martin Jambor <mjambor@suse.cz>
9765 PR tree-optimization/42366
9766 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
9767 edges with variable number of parameters.
9768 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
9769 flag instead of asserting it.
9770 (ipa_read_node_info): Read uses_analysis_done flag.
9772 2010-01-04 Richard Guenther <rguenther@suse.de>
9774 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
9775 iterative_hash_* as intended.
9776 (vn_reference_compute_hash): Likewise. Simplify hashing
9778 (vn_reference_lookup_2): Likewise.
9779 (vn_nary_op_compute_hash): Likewise.
9780 (vn_phi_compute_hash): Likewise.
9781 (expressions_equal_p): Remove strange code.
9782 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
9783 (pre_expr_hash): Likewise. Simplify hashing SSA names.
9784 (bitmap_insert_into_set_1): Take value-id as parameter.
9785 (add_to_value): Pass it.
9786 (bitmap_insert_into_set): Likewise.
9787 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
9789 2010-01-04 Jakub Jelinek <jakub@redhat.com>
9792 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
9793 (do_self_spec): For switches with SWITCH_IGNORE set set also
9794 SWITCH_IGNORE_PERMANENTLY.
9795 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
9798 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
9800 * lto-streamer-out.c (output_unreferenced_globals): Output the full
9801 tree of an unreferenced global var.
9803 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
9806 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
9807 GTU to GT for V4SI and V2DI.
9809 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
9810 (umin<mode>3): Removed.
9812 (uminv4si3): Likewise.
9814 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
9817 * collect2.c (main): Turn on trace in collect2 if -v is passed
9820 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
9822 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
9823 description of expression operand.
9825 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
9827 * configure.ac: Add install-html to target_list for Make-hooks.
9828 * configure: Regenerate.
9829 * fortran/Make-lang.in (F95_HTMLFILES): New.
9830 (fortran.html): Use it.
9831 (fortran.install-html): New.
9832 * Makefile.in (install-html): Add lang.install-html.
9833 * java/Make-lang.in (JAVA_HTMLFILES): New.
9834 (java.html): Use it.
9835 (java.install-html): New.
9836 * objc/Make-lang.in (objc.install-html): New.
9837 * objcp/Make-lang.in (obj-c++.install-html): New.
9838 * cp/Make-lang.in (c++.install-html): New.
9839 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
9840 * lto/Make-lang.in (lto.install-html): New.
9842 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
9845 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
9847 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
9849 PR rtl-optimization/41862
9850 * store-motion.c (store_killed_in_insn, compute_store_table,
9851 remove_reachable_equiv_notes, replace_store_insn,
9852 build_store_vectors): Ignore all DEBUG_INSNs.
9854 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
9857 * common.opt: Add dumpdir.
9859 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
9861 (option_map): Add --dumpdir.
9863 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
9865 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
9867 * opts.c (decode_options): Try dump_dir_name first if
9868 dump_base_name isn't an absolute path.
9869 (common_handle_option): Handle OPT_dumpdir.
9871 * toplev.c (dump_dir_name): New.
9872 (print_switch_values): Also ignore -dumpdir.
9874 * toplev.h (dump_dir_name): New.
9876 2010-01-03 Richard Guenther <rguenther@suse.de>
9878 PR tree-optimization/42589
9879 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
9880 double-word expansion of bswap32.
9882 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
9884 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
9885 with BLOCK_FOR_INSN.
9886 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
9887 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
9888 noce_process_if_block): Likewise.
9889 * gcse.c (compute_local_properties, insert_expr_in_table,
9890 insert_set_in_table, canon_list_insert, find_avail_set,
9891 pre_insert_copy_insn): Likewise.
9893 * basic-block.h (BLOCK_NUM): Move from here...
9894 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
9896 2010-01-03 Richard Guenther <rguenther@suse.de>
9898 PR tree-optimization/42438
9899 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
9900 contains_may_not_return_call flag.
9901 (BB_MAY_NOTRETURN): New.
9902 (valid_in_sets): Trapping nary operations are not valid
9903 in blocks that may not return.
9904 (insert_into_preds_of_block): Remove check for trapping expressions.
9905 (compute_avail): Compute also BB_MAY_NOTRETURN.
9907 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
9909 * doc/invoke.texi: Add 2010 to copyright years.
9911 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
9913 * config/sparc/sparc.c: Fix formatting nits.
9915 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
9916 Alexander Monakov <amonakov@ispras.ru>
9918 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
9920 2010-01-02 Richard Guenther <rguenther@suse.de>
9923 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
9924 (simplify_switch_using_ranges): Mark to be removed edges
9927 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9929 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
9931 * collect2.c (scan_libraries): Add missing argument in call to
9934 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
9937 * config/alpha/predicates.md (aligned_memory_operand): Return false
9939 (unaligned_memory_operand): Return true for CQImode.
9940 * config/alpha/alpha.c (get_aligned_mem): Assert that location
9941 doesn not cross aligned SImode word boundary.
9943 2010-01-02 Anatoly Sokolov <aesok@post.ru>
9945 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
9947 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
9948 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
9950 2010-01-02 Richard Guenther <rguenther@suse.de>
9953 * toplev.c (compile_file): Emit LTO marker properly. Change
9955 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
9957 2010-01-01 Richard Guenther <rguenther@suse.de>
9960 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
9962 2010-01-01 Richard Guenther <rguenther@suse.de>
9965 * c-decl.c (grokdeclarator): For zero-size arrays force
9966 structural equality checks as layout_type does.
9968 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
9970 * builtins.c: Update copyright to 2010.
9972 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
9975 * lto-streamer-out.c (produce_asm): Revert the last change.
9976 (copy_function): Likewise.
9978 * lto-streamer.c (lto_get_section_name): Skip any leading
9981 2010-01-01 Richard Guenther <rguenther@suse.de>
9984 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
9988 Copyright (C) 2010 Free Software Foundation, Inc.
9990 Copying and distribution of this file, with or without modification,
9991 are permitted in any medium without royalty provided the copyright
9992 notice and this notice are preserved.