1 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
4 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
6 * tree.h (build_call_list): Remove.
7 * tree.c (build_call_list): Remove.
9 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
11 * tree.h (build_call_list): Remove.
12 * tree.c (build_call_list): Remove.
14 2010-05-18 Jan Hubicka <jh@suse.cz>
16 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
18 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
20 PR rtl-optimization/43332
21 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
23 2010-05-18 Anatoly Sokolov <aesok@post.ru>
25 * tree.h (build_int_cstu): Implement as static inline.
26 * tree.c (build_int_cstu): Remove function.
27 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
30 2010-05-18 Richard Guenther <rguenther@suse.de>
33 * lto-wrapper.c (verbose): New variable. Initialize from -v.
34 (debug): Initialize from -save-temps.
35 (collect_execute): Print command-line when verbose.
36 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
37 for ltrans invocation. Produce -dumpbase flag again.
38 (process_args): Remove.
40 * collect2.c (maybe_run_lto_and_relink): Only pass object
42 * gcc.c (LINK_COMMAND_SPEC): Likewise.
44 2010-05-18 Jan Hubicka <jh@suse.cz>
46 * opts.c (decode_options): Do not disable whopr at ipa_cp.
47 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
49 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
52 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
54 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
57 2010-05-18 Jakub Jelinek <jakub@redhat.com>
60 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
63 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
65 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
66 lto-macho as lto_binary_reader.
68 * darwin.c (darwin_asm_named_section): Do not add assembler comment
69 after .section directive; just print it before the directive instead.
71 2010-05-17 Jan Hubicka <jh@suse.cz>
73 * cgraph.c (cgraph_create_virtual_clone): Only check
74 versionable_function_p when not in wpa and checking is enabled.
75 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
76 there are no more functions to materialize.
78 2010-05-17 Jan Hubicka <jh@suse.cz>
80 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
81 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
83 (output_cgraph): Call output_cgraph_opt_summary.
84 (input_cgrpah): Call input_cgraph_opt_summary.
85 (output_cgraph_opt_summary_p, output_node_opt_summary,
86 input_node_opt_summary, input_cgraph_opt_section): New functions.
87 * lto-section-in.c (lto_section_name): Add cgraphopt.
88 * tree-inline.c (tree_function_versioning): Handle parm_num.
89 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
90 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
92 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
94 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
95 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
96 the insn to prefetch ratio heuristic to loops with known trip count.
98 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
100 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
101 (schedule_prefetches): Do not generate a prefetch if the unroll factor
102 is far from what is required by the prefetch.
104 2010-05-17 Jan Hubicka <jh@suse.cz>
106 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
107 (ipcp_estimate_growth): Likewise.
108 (ipcp_const_param_count): Likewise.
109 (ipcp_insert_stage): Likewise.
110 * ipa-prop.c (visit_load_for_mod_analysis): New function.
111 (visit_store_addr_for_mod_analysis): Set used flag.
112 (ipa_detect_param_modifications): Set used flag for SSE params;
113 update use of walk_stmt_load_store_addr_ops.
114 (ipa_print_node_params): Print used flag.
115 (ipa_write_node_info): Stream used flag.
116 (ipa_read_node_info): Likewise.
117 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
118 (ipa_is_param_used): New function.
119 (lto_ipa_fixup_call_notes): Remove unused declaration.
121 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
124 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
125 * configure: Regenerate.
126 * config.in: Regenerate.
127 * config/i386/i386.c (print_operand) <case ;>: Also print ; if
128 !HAVE_AS_IX86_REP_LOCK_PREFIX.
129 Don't emit whitespace.
130 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
131 (*rep_movsi): Likewise.
132 (*rep_movsi_rex64): Likewise.
133 (*rep_movqi): Likewise.
134 (*rep_movqi_rex64): Likewise.
135 (*rep_stosdi_rex64): Likewise.
136 (*rep_stossi): Likewise.
137 (*rep_stossi_rex64): Likewise.
138 (*rep_stosqi): Likewise.
139 (*rep_stosqi_rex64): Likewise.
140 (*cmpstrnqi_nz_1): Use {%;} after repz.
141 (*cmpstrnqi_nz_rex_1): Likewise.
142 (*cmpstrnqi_1): Likewise.
143 (*cmpstrnqi_rex_1): Likewise.
144 (*strlenqi_1): Use {%;} after repnz.
145 (*strlenqi_rex_1): Likewise.
146 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
147 (*sync_compare_and_swap<mode>): Likewise.
148 (sync_double_compare_and_swap<mode>): Likewise.
149 (*sync_double_compare_and_swapdi_pic): Likewise.
150 (sync_old_add<mode>): Likewise.
151 (sync_add<mode>): Likewise.
152 (sync_sub<mode>): Likewise.
153 (sync_<code><mode>): Likewise.
155 2010-05-17 Martin Jambor <mjambor@suse.cz>
157 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
158 otr_token and polymorphic.
159 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
160 (cgraph_clone_edge): Copy the above fields.
161 * tree.c (get_binfo_at_offset): New function.
162 * tree.h (get_binfo_at_offset): Declare.
163 * ipa-prop.h (enum jump_func_type): Added known_type jump function
164 type, reordered items, updated comments.
165 (union jump_func_value): Added base_type field, reordered fields.
166 (enum ipa_lattice_type): Moved down in the file.
167 (struct ipa_param_descriptor): New field polymorphic.
168 (ipa_is_param_polymorphic): New function.
169 * ipa-prop.c: Include gimple.h and gimple-fold.h.
170 (ipa_print_node_jump_functions): Print known type jump functions.
171 (compute_complex_pass_through): Renamed to...
172 (compute_complex_assign_jump_func): this.
173 (compute_complex_ancestor_jump_func): New function.
174 (compute_known_type_jump_func): Likewise.
175 (compute_scalar_jump_functions): Create known type and complex ancestor
177 (ipa_note_param_call): New parameter polymorphic, set the corresponding
178 flag in the call note accordingly.
179 (ipa_analyze_call_uses): Renamed to...
180 (ipa_analyze_indirect_call_uses): this. New parameter target, define
181 variable var only in the block where it is used.
182 (ipa_analyze_virtual_call_uses): New function.
183 (ipa_analyze_call_uses): Likewise.
184 (combine_known_type_and_ancestor_jfs): Likewise.
185 (update_jump_functions_after_inlining): Implemented handling of a
186 number of new jump function types combination.
187 (print_edge_addition_message): Removed.
188 (make_edge_direct_to_target): New function.
189 (try_make_edge_direct_simple_call): Likewise.
190 (try_make_edge_direct_virtual_call): Likewise.
191 (update_call_notes_after_inlining): Renamed to...
192 (update_indirect_edges_after_inlining): this. Moved edge creation for
193 indirect calls to try_make_edge_direct_simple_call, also calls
194 try_make_edge_direct_virtual_call for virtual calls.
195 (ipa_print_node_params): Changed the header message.
196 (ipa_write_jump_function): Stream also known type jump functions.
197 (ipa_read_jump_function): Likewise.
198 (ipa_write_indirect_edge_info): Stream new fields in
199 cgraph_indirect_call_info.
200 (ipa_read_indirect_edge_info): Likewise.
201 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
204 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
206 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
208 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
210 * tree.h (CALL_EXPR_ARGS): Delete.
211 (call_expr_arglist): Delete.
212 * tree.c (call_expr_arglist): Delete.
213 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
214 targetm.fold_builtin.
215 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
216 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
217 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
218 arglist parameter. Use CALL_EXPR_ARG.
219 (picochip_expand_builtin_3op): Likewise.
220 (picochip_expand_builtin_2opvoid): Likewise.
221 (picochip_expand_array_get): Likewise.
222 (picochip_expand_array_put): Likewise.
223 (picochip_expand_array_testport): Likewise.
224 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
226 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
228 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
229 than TREE_VALUE and TREE_CHAIN.
230 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
231 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
234 2010-05-17 Jakub Jelinek <jakub@redhat.com>
237 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
238 to have no fallthru edge.
241 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
242 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
243 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
244 add BARRIER after previous bb if needed.
246 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
248 * tree.c (build_function_type_list_1): Remove bogus assert condition.
250 2010-05-17 Alan Modra <amodra@gmail.com>
252 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
253 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
254 with copy_reg rtx param.
255 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
256 Correct cases where code for ABI_V4 did not initialise the reg
257 used to access frame. Also leave frame_reg_rtx as sp for large
258 frames that save no regs.
260 2010-05-17 Martin Jambor <mjambor@suse.cz>
263 * tree-sra.c (create_access_replacement): New parameter rename, mark
264 the replaement for renaming only when it is true.
265 (get_access_replacement): Pass true in the rename parameter of
266 create_access_replacement.
267 (get_unrenamed_access_replacement): New function.
268 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
269 replacement declaration from it.
271 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
273 * function.c (try_fit_stack_local, add_frame_space): New static
275 (assign_stack_local_1): Use them. Look for opportunities to use
276 space previously wasted on alignment.
277 * function.h (struct frame_space): New.
278 (struct rtl_data): Add FRAME_SPACE_LIST member.
279 * reload1.c (something_was_spilled): New static variable.
281 (reload): Test it in addition to testing if the frame size changed.
283 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
285 * config/s390/s390.c: Define sane prefetch settings and activate
286 flag_prefetch_loop_arrays on -O3.
287 * config/s390/s390.h: Declare that read can use write prefetch.
289 2010-05-17 Jakub Jelinek <jakub@redhat.com>
291 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
294 2010-05-16 Jan Hubicka <jh@suse.cz>
296 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
297 function body; do not check stdarg field of struct function.
299 2010-05-16 Jan Hubicka <jh@suse.cz>
301 * cgraph.c (dump_cgraph_node): Dump versionable flag.
302 * cgraph.h (cgraph_local_info): Add versionable flag.
303 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
304 (ipcp_versionable_function_p): Use it.
305 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
308 2010-05-16 Jan Hubicka <jh@suse.cz>
310 * cgraph.c (cgraph_clone_node): Take decl argument and insert
311 clone into hash when it is different from orig.
312 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
313 * cgraph.h (cgraph_clone_node): Update prototype.
314 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
315 (lto_cgraph_encoder_delete): Delete body map.
316 (lto_cgraph_encoder_size): Move to header.
317 (lto_cgraph_encoder_encode_body_p,
318 lto_set_cgraph_encoder_encode_body): New.
319 (lto_output_node): Do not take written_decls argument; output clone_of
321 (add_node_to): Add include_body_argument; call
322 lto_set_cgraph_encoder_encode_body on master of the clone.
323 (add_references): Update use of add_node_to.
324 (compute_ltrans_boundary): Likewise.
325 (output_cgraph): Do not create written_decls bitmap.
326 (input_node): Take nodes argument; stream in clone_of correctly.
327 (input_cgraph_1): Update use of input_node.
328 * lto-streamer-out.c (lto_output): Use encoder info to decide
329 what bodies to output.
330 * ipa-inline.c (cgraph_clone_inlined_nodes,
331 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
332 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
333 (lto_cgraph_encoder_size): Define here.
334 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
337 2010-05-16 Richard Guenther <rguenther@suse.de>
339 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
341 * ipa-type-escape.c (gate_type_escape_vars): Run when
342 -fipa-struct-reorg runs.
343 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
344 * common.opt (fipa-type-escape): Remove.
346 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
348 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
349 (decode_options): Likewise.
350 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
352 2010-05-16 Jan Hubicka <jh@suse.cz>
354 * ipa.c (function_and_variable_visibility): Also bring local all
357 2010-05-16 Richard Guenther <rguenther@suse.de>
359 * alias.c (nonoverlapping_memrefs_p): Remove use of
360 IPA type-escape information.
362 2010-05-16 Joseph Myers <joseph@codesourcery.com>
364 * c-common.c (c_common_reswords): Add _Static_assert for C.
365 * c-parser.c (c_token_starts_declaration,
366 c_parser_next_token_starts_declaration,
367 c_parser_static_assert_declaration_no_semi,
368 c_parser_static_assert_declaration): New.
369 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
370 Handle static assertions if static_assert_ok.
371 (c_parser_external_declaration, c_parser_declaration_or_fndef,
372 c_parser_compound_statement_nostart, c_parser_label,
373 c_parser_for_statement, c_parser_objc_methodprotolist,
374 c_parser_omp_for_loop): All callers of
375 c_parser_declaration_or_fndef changed.
376 (c_parser_struct_declaration): Handle static assertions.
377 (c_parser_compound_statement_nostart): Use
378 c_parser_next_token_starts_declaration and
379 c_token_starts_declaration to detect start of declarations.
380 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
383 2010-05-16 Anatoly Sokolov <aesok@post.ru>
385 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
386 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
387 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
388 TARGET_FUNCTION_VALUE_REGNO_P): Define.
389 (mmix_function_outgoing_value): Rename to...
390 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
391 (mmix_function_value_regno_p): Make static.
392 (mmix_libcall_value): New function.
393 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
394 mmix_function_value_regno_p): Remove declaration.
396 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
398 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
399 BUILT_IN_ALLOCA if stack checking is enabled.
401 2010-05-16 Richard Guenther <rguenther@suse.de>
403 * var-tracking.c (vars_copy_1): Inline ...
404 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
405 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
406 (variable_merge_over_cur): Adjust. Merge asserts.
407 (variable_merge_over_src): Likewise.
408 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
409 (variable_post_merge_new_vals): Merge asserts.
410 (variable_post_merge_perm_vals): Likewise.
411 (find_mem_expr_in_1pdv): Likewise.
412 (dataflow_set_different_value): Remove.
413 (onepart_variable_different_p): Merge asserts.
414 (variable_different_p): Likewise.
415 (dataflow_set_different_1): Inline ...
416 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
417 (emit_notes_for_differences_1): Merge asserts.
419 2010-05-16 Richard Guenther <rguenther@suse.de>
421 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
422 * optabs.c (libfunc_decl_hash): Likewise.
423 * varasm.c (emutls_decl): Likewise.
425 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
427 * c-decl.c: Don't include gimple.h.
428 (merge_decls): Do not copy gimple_body.
430 2010-05-15 Jason Merrill <jason@redhat.com>
432 * c.opt: Add -fnothrow-opt.
434 2010-05-15 Jan Hubicka <jh@suse.cz>
436 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
438 * passes.c (ipa_write_summaries): Write all analyzed nodes.
440 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
442 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
443 * Makefile.in: Add it.
444 Fix all other Makefile dependencies for changes below.
445 * tree.h: Include it instead of defining VEC primitives here.
446 * gimple.h: Likewise.
448 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
449 * except.h: Include vecir.h, break dependence on tree.h.
451 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
453 * tree-iterator.c: ...to here.
454 * tree-iterator.h: Fix file introduction comment. Add extern markers.
456 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
458 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
459 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
460 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
461 tree-mudflap.h, and target.h.
462 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
463 predict.h, tree-inline.h, gimple.h, and langhooks.h.
464 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
465 Add FIXME for why gimple.h is still included (should be unnecessary
466 since GCC 4.5 gimplification unit-at-a-time).
467 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
468 * c-pragma.c: Add FIXME for why function.h needs to be included just
469 for cfun, at front-end level.
470 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
471 Do not include ggc.h, but include vecprim.h for VEC(char).
472 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
473 Explain why target.h is included.
474 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
475 Explain why gimple.h is included.
476 * c-ppoutput.c: Do not include tm.h.
477 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
478 * c-parses.c: Explain why rtl.h is included, and that this (and only
479 this) is also why tm.h must be included.
480 Do not include except.h.
481 * c-lang.c: Do not include ggc.h.
483 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
485 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
487 2010-05-15 Joseph Myers <joseph@codesourcery.com>
489 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
490 unions by default if those structs and unions have no tags. Do
491 not condition anonymous struct and unions handling on flag_iso.
492 Allow anonymous structs and unions for C1X.
493 (finish_struct): Do not diagnose lack of named fields when
494 anonymous structs and unions present for C1X. Accept flexible
495 array members in structure with anonymous structs or unions but no
496 directly named fields.
497 * doc/extend.texi (Unnamed Fields): Update.
499 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
501 * gimple.h (compare_field_offset): Rename into...
502 (gimple_compare_field_offset): ...this.
503 * gimple.c (compare_field_offset): Rename into...
504 (gimple_compare_field_offset): ...this. Compare the full access if
505 the offset is self-referential.
506 (gimple_types_compatible_p): Adjust for above renaming.
507 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
508 DECL_NONADDRESSABLE_P flag of fields before merging them.
510 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
512 * tree.h (ctor_to_list): Delete.
513 * tree.c (ctor_to_list): Delete.
515 2010-05-15 Jan Hubicka <jh@suse.cz>
517 * ipa-reference.c: Include toplev.h
518 (is_proper_for_analysis): Only add to all_module_statics
520 (write_node_summary_p, stream_out_bitmap,
521 ipa_reference_write_optimization_summary,
522 ipa_reference_read_optimization_summary): New.
523 (struct ipa_opt_pass_d pass_ipa_reference): Add
524 optimization summary streaming.
525 * lto-cgraph.c (referenced_from_this_partition_p,
526 reachable_from_this_partition_p): New functions.
527 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
528 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
529 * opts.c (decode_options): Enable ipa_reference.
530 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
531 * lto-streamer.h (referenced_from_this_partition_p,
532 reachable_from_this_partition_p): Declare.
534 2010-05-15 Richard Guenther <rguenther@suse.de>
536 PR tree-optimization/44038
537 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
538 taking the address of a V_C_E of a constant.
540 2010-05-14 Jan Hubicka <jh@suse.cz>
542 * tree.h (memory_identifier_string): Remove.
543 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
544 (ipa_reference_global_vars_info_d): Remove statics_not_read and
546 (ipa_reference_optimization_summary_d): New structure.
547 (ipa_reference_optimization_summary_t): New type and vector.
548 (ipa_reference_vars_info_d): Embedd structures instead of using
550 (reference_vars_to_consider): Remove out of GGC space.
551 (module_statics_escape): Remove.
552 (global_info_obstack): Rename to ...
553 (optimization_summary_obstack): ... this one.
554 (initialization_status_t): Remove.
555 (memory_identifier_string): Remove.
556 (get_reference_vars_info): Fix indenting.
557 (set_reference_vars_info): Likewise.
558 (get_reference_optimization_summary): New.
559 (set_reference_optimization_summary): New.
560 (get_global_reference_vars_info): Remove.
561 (ipa_reference_get_read_global): Remove.
562 (ipa_reference_get_written_global): Remove.
563 (ipa_reference_get_not_read_global): Update.
564 (ipa_reference_get_not_written_global): Update.
565 (is_proper_for_analysis): Outlaw addressable.
566 (propagate_bits): Update for new datastructures.
567 (analyze_variable): Remove.
568 (init_function_info): Update for new datastructures.
569 (clean_function_local_data): Remove.
570 (clean_function): Remove.
571 (copy_global_bitmap): Use optimizations_summary_obstack.
572 (duplicate_node_data): Duplicate optimization summary only.
573 (remove_node_data): Remove optimization summary only.
574 (generate_summary): Do not analyze variables; do not compute
575 module_statics_escape; do not prune solutions by it.
576 (read_write_all_from_decl): Fix typos in comments.
577 (propagate): Doscover readonly and nonaddressable first;
578 update for new datastructures; share global bitmaps.
579 * ipa-reference.h (ipa_reference_get_read_global,
580 ipa_reference_get_written_global): Remove.
581 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
582 * Makefile.in: Remove ipa-refereference from GT files.
584 2010-05-14 Jakub Jelinek <jakub@redhat.com>
587 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
588 for all SYMBOL_REF_DECLs.
590 2010-05-14 Jan Hubicka <jh@suse.cz>
592 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
593 (varpool_all_refs_explicit_p): New inline function.
594 * ipa-reference.c: Update comment.
595 (module_statics_written): Remove.
596 (get_static_decl): Remove.
597 (ipa_init): Do not initialize module_statics_written.
598 (analyze_function): Likewise.
599 (generate_summary): Likewise; do not compute module_statics_readonly
600 and do not update variable flags.
601 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
602 * ipa.c: Inlucde flags.h
603 (cgraph_local_node_p): New.
604 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
605 promote functions to local.
606 (ipa_discover_readonly_nonaddressable_vars): New function.
607 (function_and_variable_visibility): Use cgraph_local_node_p.
608 * varpool.c (varpool_finalize_decl): Set force_output for
609 DECL_PRESERVE_P vars.
611 2010-05-14 Jan Hubicka <jh@suse.cz>
613 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
615 2010-05-14 Richard Guenther <rguenther@suse.de>
617 PR tree-optimization/44119
618 * tree-ssa-pre.c (eliminate): Properly mark replacement of
619 a PHI node necessary.
621 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
623 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
625 2010-05-14 Jason Merrill <jason@redhat.com>
628 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
629 (gimple_call_set_nothrow): New.
630 * gimple.c (gimple_build_call_from_tree): Call it.
631 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
634 * gimplify.c (gimplify_seq_add_stmt): No longer static.
635 * gimple.h: Declare it.
636 * gimple.c (gimple_build_eh_filter): No ops.
638 2010-05-14 Jan Hubicka <jh@suse.cz>
640 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
641 nodes already in queue.
642 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
645 2010-05-14 Jakub Jelinek <jakub@redhat.com>
648 * cfgexpand.c (expand_debug_expr): If non-memory op0
649 has BLKmode, return NULL.
651 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
653 * config.gcc: Add support for --with-cpu option for bdver1.
654 * config/i386/i386.h (TARGET_BDVER1): New macro.
655 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
656 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
657 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
658 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
659 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
660 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
661 (processor_type): Add PROCESSOR_BDVER1.
662 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
663 processor_type in config/i386/i386.h.
664 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
665 movaps <reg, reg> instead of movapd <reg, reg> when replacing
666 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
667 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
668 to emit packed xor instead of packed double/packed integer
669 xor for SSE and AVX when moving a zero value.
670 * config/i386/sse.md: Add check for
671 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
672 movapd/movdqa for SSE and AVX.
673 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
674 single logical operations i.e and, or and xor instead of packed double
675 logical operations for SSE and AVX.
676 * config/i386/i386-c.c (ix86_target_macros_internal):
677 Add PROCESSOR_BDVER1.
678 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
679 (has_fma4, has_xop): New.
680 * config/i386/i386.c (bdver1_cost): New variable.
681 (m_BDVER1): New macro.
682 (m_AMD_MULTIPLE): Add m_BDVER1.
683 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
684 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
685 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
686 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
687 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
688 x86_tune_sse_partial_reg_dependency,
689 x86_tune_sse_unaligned_load_optimal,
690 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
691 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
692 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
693 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
694 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
695 Enable/disable for bdver1.
696 (processor_target_table): Add bdver1_cost.
697 (cpu_names): Add bdver1.
698 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
699 processor_alias_table.
700 (ix86_expand_vector_move_misalign): Change.
701 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
702 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
703 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
704 of movupd/movdqu for SSE and AVX.
705 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
706 (ix86_tune_adjust_cost): Add code for bdver1.
707 (standard_sse_constant_opcode): Add check for
708 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
709 of packed double xor for SSE and AVX.
711 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
713 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
716 2010-05-14 Tristan Gingold <gingold@adacore.com>
718 * toplev.c (default_debug_hooks): Remove this variable.
719 (process_options): Remove assignments to default_debug_hooks.
721 2010-05-14 Martin Jambor <mjambor@suse.cz>
723 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
724 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
725 * langhooks.h (struct lang_hooks_for_decls): Removed field
727 * tree.c (free_lang_data): Remove assignment to
728 lang_hooks.fold_obj_type_ref.
729 * tree.def (OBJ_TYPE_REF): Update comment.
731 2010-05-14 Richard Guenther <rguenther@suse.de>
733 PR tree-optimization/44124
734 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
736 2010-05-14 Alan Modra <amodra@gmail.com>
739 * config/rs6000/rs6000.c (struct machine_function): Reorder
740 fields for better packing. Add lr_save_state.
741 (rs6000_ra_ever_killed): Return lr_save_state if set.
742 (rs6000_emit_eh_reg_restore): Set lr_save_state.
744 2010-05-13 Jan Hubicka <jh@suse.cz>
746 * varpool.c (decide_is_variable_needed): Drop code checking
747 TREE_SYMBOL_REFERENCED.
749 2010-05-13 Jan Hubicka <jh@suse.cz>
751 * final.c (output_addr_const): Do not call mark_decl_referenced.
752 * cgraphunit.c (process_function_and_variable_attributes): Use
753 mark_needed_node dirrectly.
754 (assemble_thunk): Do not call mark_decl_referenced.
756 2010-05-13 Anatoly Sokolov <aesok@post.ru>
758 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
760 2010-05-13 Jeff Law <law@redhat.com>
762 * ira-conflicts.c (print_allocno_conflicts): New function broken out
764 (print_conflicts): Call print_allocno_conflicts.
766 2010-05-13 Jakub Jelinek <jakub@redhat.com>
769 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
772 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
774 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
775 t-mingw-w64 or t-mingw-w32 for multilib configuration.
776 * config/i386/t-mingw-w32: New.
777 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
779 2010-05-13 Martin Jambor <mjambor@suse.cz>
781 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
783 * gimple-fold.c (get_base_binfo_for_type): New function.
784 (gimple_get_relevant_ref_binfo): Likewise.
785 (gimple_fold_obj_type_ref_known_binfo): Likewise.
786 (gimple_fold_obj_type_ref): Likewise.
787 (fold_gimple_call): Simplify condition for folding virtual calls
788 and call gimple_fold_obj_type_ref.
789 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
790 (gimple_fold_obj_type_ref_known_binfo): Likewise.
792 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
794 * config/rs6000/rs6000-protos.h
795 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
796 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
797 (rs6000_debug_mode_dependent_address)
798 (rs6000_mode_dependent_address_ptr): Likewise.
800 2010-05-13 Jakub Jelinek <jakub@redhat.com>
803 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
805 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
806 * tree-sra.c (create_access_replacement): Call unshare_expr before
807 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
808 * dwarf2out.c: Include tree-flow.h.
809 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
810 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
811 Handle DW_OP_bit_piece.
812 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
813 construct_piece_list, adjust_piece_list): New functions.
814 (add_var_loc_to_decl): Handle SRA optimized variables.
815 Adjust for var_loc_note to loc field renaming.
816 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
817 in VAR_LOCATION note.
818 (new_loc_descr_op_bit_piece): New function.
819 (dw_sra_loc_expr): New function.
820 (dw_loc_list): Use it. Don't handle the last range after the
821 loop, handle it inside of the loop. Adjust for var_loc_note
822 to loc field renaming.
823 (add_location_or_const_value_attribute): Only special case
824 single entry loc lists if loc is NOTE_P. Adjust for
825 var_loc_note to loc field renaming.
826 (dwarf2out_var_location): Don't set newloc->var_loc_note
827 and newloc->next here.
829 2010-05-12 Jan Hubicka <jh@suse.cz>
831 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
833 * cgraph.h (cgraph_only_called_directly_p,
834 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
835 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
836 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
838 * ipa.c (cgraph_remove_unreachable_nodes): Use
839 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
841 * tree-inline.c (copy_bb): Check address_taken flag.
842 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
843 externally_visible flag.
845 2010-05-12 Jason Merrill <jason@redhat.com>
849 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
850 * sdbout.c (plain_type_1): Likewise.
851 * dwarf2out.c (is_base_type): Likewise.
852 (gen_type_die_with_usage): Likewise. Generate
853 DW_TAG_unspecified_type for any LANG_TYPE.
855 2010-05-12 Jan Hubicka <jh@suse.cz>
857 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
859 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
860 (cgraph_clone_edge): Update.
861 (cgraph_node_remove_callees): Remove indirect calls too.
862 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
863 (cgraph_create_indirect_edge): Update prototype.
864 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
865 is_proper_for_analysis.
866 (add_new_function, visited_nodes, function_insertion_hook_holder,
867 get_local_reference_vars_info, mark_address_taken, mark_address,
868 mark_load, mark_store, check_asm_memory_clobber, check_call,
869 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
870 (ipa_init): Do not initialize visited_nodes;
871 function_insertion_hook_holder.
872 (analyze_variable): Rewrite.
873 (analyze_function): Rewrite.
874 (copy_local_bitmap): Remove.
875 (duplicate_node_dat): Do not duplicate local info.
876 (generate_summary): Simplify to only walk cgraph.
877 (write_node_summary_p, ipa_reference_write_summary,
878 ipa_reference_read_summary): Remove.
879 (propagate): Do not remove function insertion;
881 (pass_ipa_reference): NULLify summary handling fields.
882 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
883 (input_edge): Input ecf_flags.
884 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
885 (update_indirect_edges_after_inlining): Ignore edges with unknown
888 2010-05-12 Sriraman Tallam <tmsriram@google.com>
890 * implicit-zee.c: New file.
891 * tree-pass.h (pass_implicit_zee): Declare.
892 * passes.c (init_optimization_passes): Add zee pass.
893 * common.opt (fzee): New flag.
894 * timevar.def (TV_ZEE): Define.
895 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
897 * Makefile.in (implicit-zee.o): Add new build file.
899 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
900 Nathan Froyd <froydnj@codesourcery.com>
902 * c-common.c (sync_resolve_params): Remove write-only variable.
904 2010-05-12 Anatoly Sokolov <aesok@post.ru>
906 * target.h (struct gcc_target): Add mode_dependent_address_p field.
907 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
908 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
909 * targhooks.c (default_mode_dependent_address_p): New function.
910 * targhooks.h (default_mode_dependent_address_p): Declare function.
911 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
912 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
913 * recog.c: (mode_dependent_address_p): Call mode_dependent_address_p
914 target hook. Change return type to bool.
915 * recog.h: (mode_dependent_address_p): Change return type to bool.
917 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
918 Nathan Froyd <froydnj@codesourcery.com>
920 * tree-mudflap.c (build_function_type_0, build_function_type_1,
921 build_function_type_2, build_function_type_3): Remove.
922 (mudflap_init): Use build_function_type_list.
924 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
925 Nathan Froyd <froydnj@codesourcery.com>
927 * coverage.c (build_fn_info_value): Call build_constructor instead of
928 build_constructor_from_list.
929 (build_ctr_info_value): Likewise.
930 (build_gcov_info): Likewise.
932 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
934 * tree.c (build_constructor): Compute TREE_CONSTANT for the
935 resultant constructor.
936 (build_constructor_single): Don't set TREE_CONSTANT.
937 (build_constructor_from_list): Don't compute TREE_CONSTANT.
939 2010-05-12 Jan Hubicka <jh@suse.cz>
941 * cgraph.h (struct varpool_node): Add aux.
942 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
943 * varpool.c (varpool_remove_node): Do not remove initializer.
944 (varpool_reset_queue): Export.
945 (varpool_finalize_decl): Volatile vars are forced to be output.
946 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
948 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
949 process_references, varpool_can_remove_if_no_refs): New functions.
950 (cgraph_remove_unreachable_nodes): Handle variables too.
952 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
955 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
957 2010-05-12 Jakub Jelinek <jakub@redhat.com>
960 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
961 change value of ORT_TASK.
962 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
963 (omp_notice_threadprivate_variable): New function.
964 (omp_notice_variable): Call it for threadprivate variables.
965 If enclosing ctx is a task, print enclosing task rather than
966 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
967 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
968 if task has untied clause.
971 * dwarf2out.c (base_type_die): Don't add name attribute here.
972 (modified_type_die): Instead of sizetype use
973 its underlying original type. If a DW_TAG_base_type doesn't
974 have name added, add __unknown__.
975 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
976 always call force_type_die instead.
978 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
980 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
981 for __stack_chk_guard.
983 2010-05-11 Jakub Jelinek <jakub@redhat.com>
985 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
986 don't call start_source_file debug hook here...
987 (finish_options): ... but here, after outputting predefined and
988 command line defines and undefs.
991 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
993 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
994 optimizing away empty bb with no successors, move over its
995 footer chain to fallthru predecessor.
996 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
997 (rtl_split_edge): For asm goto call patch_jump_insn even if
998 splitting fallthru edge.
1001 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
1002 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
1003 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
1004 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
1008 * c-parser.c (c_parser_expression): Mark LHS of a comma
1009 expression as read if it is a decl, handled component or
1010 COMPOUND_EXPR with that on the RHS.
1011 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
1012 if it is a decl or handled component.
1014 2010-05-11 Jan Hubicka <jh@suse.cz>
1016 * lto-symtab.c (lto_symtab_free): New function.
1017 * lto-streamer.h (lto_symtab_free): Declare.
1019 2010-05-11 Jan Hubicka <jh@suse.cz>
1021 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
1022 that if function is needed it is reachable.
1023 (lto_output_node): See if it the function is reachable or referenced.
1024 (output_cgraph): Update call of lto_output_node.
1025 * lto-streamer.h (reachable_from_other_partition_p): Declare.
1027 2010-05-11 Jan Hubicka <jh@suse.cz>
1029 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
1032 2010-05-11 Jan Hubicka <jh@suse.cz>
1034 PR tree-optimize/44063
1035 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
1037 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
1039 (estimate_function_body_sizes): Compute sizes even when disregarding.
1041 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
1043 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
1045 2010-05-11 Jan Hubicka <jh@suse.cz>
1047 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
1048 into every boundary.
1050 2010-05-11 Jan Hubicka <jh@suse.cz>
1052 * matrix-reorg.c (matrix_reorg): Rebuild edges.
1054 2010-05-11 Jan Hubicka <jh@suse.cz>
1056 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
1057 lto_streamer_cache_delete): Put nodes into heap.
1058 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
1061 2010-05-11 Jan Hubicka <jh@suse.cz>
1063 * cgraphbuild.c (cgraph_rebuild_references): New.
1064 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
1066 * cgraph.h (cgraph_rebuild_references): Declare.
1067 * tree-inline.c (tree_function_versioning): Use it.
1068 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
1070 2010-05-11 Jan Hubicka <jh@suse.cz>
1072 * cgraph.c: Include ipa-utils.h
1073 (cgraph_create_virtual_clone): Update references.
1074 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
1076 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
1078 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
1079 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
1082 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
1084 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
1086 2010-05-11 Jakub Jelinek <jakub@redhat.com>
1088 * gcc.c (execute): For -### don't quote arguments that
1089 contain just alphanumerics and _/-. characters.
1090 * doc/invoke.texi: Document that change for -###.
1093 * df-problems.c (struct dead_debug): Add to_rescan field.
1094 (dead_debug_init): Clear to_rescan field.
1095 (dead_debug_finish): Rescan all debug insns in to_rescan
1096 bitmap and free the bitmap.
1097 (dead_debug_insert_before): Instead of rescanning debug insns
1098 immediately queue their rescanning until dead_debug_finish.
1099 (df_note_bb_compute): After dead_debug_add do continue instead
1102 2010-05-10 Jakub Jelinek <jakub@redhat.com>
1105 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
1106 clear also INSN_REG_USE_LIST.
1108 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1110 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
1112 2010-05-10 Jan Hubicka <jh@suse.cz>
1114 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
1117 2010-05-10 Jan Hubicka <jh@suse.cz>
1119 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
1121 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
1122 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
1123 (lto_streamer_cache_create): Init alloc pool.
1124 (lto_streamer_cache_delete): Free alloc pool.
1125 * lto-streamer.h: Include alloc pool.
1126 (lto_streamer_cache_d): Use alloc pool.
1127 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
1129 2010-05-10 Jan Hubicka <jh@suse.cz>
1131 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
1132 * cgraphbuild.c: Include except.h
1133 (record_type_list, record_eh_tables): New function.
1134 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
1136 2010-05-10 Jan Hubicka <jh@suse.cz>
1138 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
1139 __frame_dummy_init_array_entry, force_to_data): Attribute as used
1142 2010-05-10 Michael Matz <matz@suse.de>
1144 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
1145 (can_reassociate_p): Use FLOAT_TYPE_P.
1146 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
1147 (vect_force_simple_reduction): ... this.
1148 * tree-parloops.c (gather_scalar_reductions): Use
1149 vect_force_simple_reduction.
1150 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
1151 vect_is_simple_reduction, add modify argument, if true rewrite
1152 "a-b" into "a+(-b)".
1153 (vect_is_simple_reduction, vect_force_simple_reduction): New
1155 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
1157 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
1158 Vladimir Makarov <vmakarov@redhat.com>
1160 PR rtl-optimization/44012
1161 * ira-build.c (remove_unnecessary_allocnos): Nullify
1162 regno_allocno_map of the removed allocno.
1164 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1166 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
1168 * configure: Regenerate.
1170 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1172 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
1174 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
1175 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
1177 * configure: Regenerate.
1179 2010-05-10 Richard Guenther <rguenther@suse.de>
1181 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
1182 marked if the entry identifier is marked.
1184 2010-05-10 Richard Guenther <rguenther@suse.de>
1186 * c-common.c (struct c_common_attributes): Add fnspec attribute.
1187 (handle_fnspec_attribute): New function.
1188 * gimple.h (gimple_call_return_flags): Declare.
1189 (gimple_call_arg_flags): Likewise.
1190 * gimple.c (gimple_call_arg_flags): New function.
1191 (gimple_call_return_flags): Likewise.
1192 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
1194 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
1196 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
1197 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
1199 (make_heapvar_for): ... this new function.
1200 (handle_rhs_call): Handle fnspec attribute argument specifiers.
1201 (handle_lhs_call): Likewise.
1202 (find_func_aliases): Adjust.
1204 2010-05-10 Richard Guenther <rguenther@suse.de>
1206 PR tree-optimization/44050
1207 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
1209 2010-05-10 Wei Guozhi <carrot@google.com>
1212 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
1214 2010-05-09 Joseph Myers <joseph@codesourcery.com>
1217 * c-typeck.c (lookup_field): Take a type directly. Update
1219 (build_component_ref): Update call to lookup_field.
1220 (set_init_label): Use lookup_field to find initialized field.
1221 Handle returned list of fields like a sequence of designators.
1223 2010-05-09 Richard Guenther <rguenther@suse.de>
1226 * fold-const.c (tree_single_nonzero_warnv_p): Properly
1227 handle &FUNCTION_DECL.
1229 2010-05-09 Joseph Myers <joseph@codesourcery.com>
1232 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
1233 structures and unions recursively.
1234 (detect_field_duplicates): Move duplicate detection with a hash to
1235 detect_field_duplicates_hash. Always use a hash if anonymous
1236 structures or unions are present.
1237 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
1240 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
1243 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
1244 detect Atom, Core 2 and Core i7.
1246 2010-05-09 Richard Guenther <rguenther@suse.de>
1248 * gcc.c (store_arg): Handle temporary file deletion for
1251 2010-05-09 Richard Guenther <rguenther@suse.de>
1254 * ipa-inline.c (estimate_function_body_sizes): Return after
1255 disregarding inline limits.
1257 2010-05-09 Richard Guenther <rguenther@suse.de>
1259 * gcc.c (store_arg): Revert last change.
1261 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
1264 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
1265 (optimize_ops_list): Call it.
1267 2010-05-08 Richard Guenther <rguenther@suse.de>
1269 PR tree-optimization/44030
1270 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
1271 NECESSARY flag if we propagate from a inserted expression.
1273 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
1275 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
1276 domain types as equal if they are both PLACEHOLDER_EXPRs.
1278 2010-05-08 Richard Guenther <rguenther@suse.de>
1280 * lto-wrapper.c (run_gcc): Remove linker output from
1281 command line for LTRANS invocation.
1283 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
1285 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1286 lto-macho as lto_binary_reader.
1287 * target.h (struct gcc_target): New hooks lto_start and lto_end.
1288 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
1289 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
1290 in lto_start and lto_end calls.
1291 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
1293 (scan_prog_file): Update is_elf_or_coff call.
1294 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
1296 * collect2.c (main): Fix enum comparison.
1298 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
1300 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
1301 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
1302 and TARGET_ASM_LTO_END.
1303 * darwin.c: Include obstack.h and lto-streamer.h.
1304 (lto_section_names_offset, lto_section_names_obstack,
1305 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
1307 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
1308 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
1309 to a temporary file.
1310 (darwin_asm_lto_end): New function. Restore asm_out_file.
1311 (darwin_asm_named_section): For LTO sections, replace the name with
1312 the offset of the section name in a string table, and build this
1314 (darwin_file_start): Initialize global vars for LTO support.
1315 (darwin_file_end): If output to asm_out_file was redirected, append it
1316 to the proper asm_out_file here. Add the section names section.
1318 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
1320 * c-pragma.c (pending_weak_d, pending_weak): New.
1321 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
1322 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
1323 handle_pragma_weak): Update the uses of pending_weaks.
1325 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1327 PR documentation/44016
1328 * doc/standards.texi (Standards): Link to unversioned
1329 cxx0x_status.html page.
1331 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
1334 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
1335 in addition to TREE_USED, to avoid "set but unused" warnings.
1337 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
1339 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
1340 (is_loop_prefetching_profitable): Do not insert prefetches
1341 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
1342 times the prefetch ahead distance.
1344 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
1346 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
1347 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
1348 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
1351 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
1353 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
1354 a diagnostic info when the insn-to-mem ratio is too small.
1356 2010-05-07 Richard Guenther <rguenther@suse.de>
1358 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
1360 (store_arg): Queue temp_filename for deletion instead of
1363 2010-05-07 Richard Guenther <rguenther@suse.de>
1365 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
1366 (run_gcc): Handle LTRANS phase invocation.
1367 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
1369 2010-05-07 Jakub Jelinek <jakub@redhat.com>
1371 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
1372 this is also meaningful on PARM_DECLs and RESULT_DECLs.
1374 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1376 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
1378 2010-05-07 Richard Guenther <rguenther@suse.de>
1380 PR tree-optimization/44020
1381 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
1382 code when PRE is not yet initialized.
1384 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1386 * config/mips/dbxmdebug.h: Remove.
1387 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
1389 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
1391 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
1392 with null pointer and also warn about ordered comparison of zero with
1395 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1397 * graphite-blocking.c
1398 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
1399 * graphite-clast-to-gimple.c
1400 (clast_to_gcc_expression): Same.
1401 (precision_for_value): Same.
1402 (precision_for_interval): Same.
1403 (gcc_type_for_interval): Same.
1404 (graphite_create_new_guard): Same.
1405 (compute_bounds_for_level): Same.
1406 (graphite_create_new_loop_guard): Same.
1407 * graphite-interchange.c
1408 (build_linearized_memory_access): Same.
1409 (pdr_stride_in_loop): Same.
1410 (memory_strides_in_loop_1): Same.
1411 (memory_strides_in_loop): Same.
1412 (extend_scattering): Same.
1413 (psct_scattering_dim_for_loop_depth): Same.
1414 (pbb_number_of_iterations): Same.
1416 (debug_iteration_domains): Same.
1418 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1419 (ppl_set_inhomogeneous_gmp): Same.
1420 (ppl_strip_loop): Same.
1421 (ppl_lexico_compare_linear_expressions): Same.
1422 (ppl_read_polyhedron_matrix): Same.
1423 (ppl_max_for_le_pointset): Same.
1425 (ppl_read_polyhedron_matrix): Same.
1426 (tree_int_to_gmp): Same.
1427 (gmp_cst_to_tree): Same.
1428 (ppl_set_inhomogeneous): Same.
1429 (ppl_set_inhomogeneous_tree): Same.
1430 (ppl_set_coef): Same.
1431 (ppl_set_coef_tree): Same.
1432 * graphite-sese-to-poly.c
1433 (build_pbb_scattering_polyhedrons): Same.
1434 (build_scop_scattering): Same.
1435 (scan_tree_for_params_right_scev): Same.
1436 (scan_tree_for_params): Same.
1437 (find_params_in_bb): Same.
1438 (find_scop_parameters): Same.
1439 (add_upper_bounds_from_estimated_nit): Same.
1440 (build_loop_iteration_domains): Same.
1441 (add_condition_to_domain): Same.
1442 (pdr_add_memory_accesses): Same.
1444 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1446 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
1447 CLooG's value_* macros to their respective mpz_* counterparts.
1448 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
1449 (graphite_create_new_loop_guard): Same.
1450 * graphite-interchange.c (build_linearized_memory_access): Same.
1451 (pdr_stride_in_loop): Same.
1452 (memory_strides_in_loop_1): Same.
1453 (1st_interchange_profitable_p): Same.
1454 * graphite-poly.c (extend_scattering): Same.
1455 (psct_scattering_dim_for_loop_depth): Same.
1456 (pbb_number_of_iterations): Same.
1457 (pbb_number_of_iterations_at_time): Same.
1458 * graphite-poly.h (new_1st_loop): Same.
1459 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
1460 (oppose_constraint): Same.
1461 (insert_constraint_into_matrix): Same.
1462 (ppl_set_inhomogeneous_gmp): Same.
1463 (ppl_set_coef_gmp): Same.
1464 (ppl_strip_loop): Same.
1465 (ppl_lexico_compare_linear_expressions): Same.
1466 (ppl_max_for_le_pointset): Same.
1467 (ppl_min_for_le_pointset): Same.
1468 (ppl_build_realtion): Same.
1469 * graphite-ppl.h (gmp_cst_to_tree): Same.
1470 (ppl_set_inhomogeneous): Same.
1471 (ppl_set_inhomogeneous_tree): Same.
1472 (ppl_set_coef): Same.
1473 (ppl_set_coef_tree): Same.
1474 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
1475 (build_scop_scattering): Same.
1476 (add_value_to_dim): Same.
1477 (scan_tree_for_params_right_scev): Same.
1478 (scan_tree_for_params_int): Same.
1479 (scan_tree_for_params): Same.
1480 (find_params_in_bb): Same.
1481 (find_scop_parameters): Same.
1482 (add_upper_bounds_from_estimated_nit): Same.
1483 (build_loop_iteration_domains): Same.
1484 (create_linear_expr_from_tree): Same.
1485 (add_condition_to_domain): Same.
1486 (pdr_add_memory_accesses): Same.
1488 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
1489 Jason Merrill <jason@redhat.com>
1491 * c-common.c (c_common_reswords): Add nullptr.
1492 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
1493 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
1494 (gen_type_die_with_usage): Likewise.
1495 * dbxout.c (dbxout_type): Likewise.
1496 * sdbout.c (plain_type_1): Likewise.
1498 2010-05-06 Jason Merrill <jason@redhat.com>
1500 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
1501 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
1503 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
1505 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
1506 stripping WITH_SIZE_EXPR.
1507 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
1510 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1512 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
1513 list of obsolete configurations.
1514 Disabled check for obsolete configurations.
1515 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
1516 Removed support for previous versions.
1517 * config/mips/iris.h: Removed.
1518 * config/mips/iris5.h: Removed.
1519 * config/mips/iris6.h: Merged old iris.h contents.
1520 (TARGET_IRIX): Removed.
1521 (DRIVER_SELF_SPECS): Removed mabi=32.
1522 (IDENT_ASM_OP): Removed undef.
1523 (STARTFILE_SPEC): Removed mabi=32.
1524 (ENDFILE_SPEC): Likewise.
1525 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
1526 (MACHINE_TYPE): Update for IRIX 6.5.
1527 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
1528 TARGET_IRIX by TARGET_IRIX6.
1529 (mips_file_start): Likewise.
1530 (mips_output_external): Remove IRIX 5/6 O32 support.
1531 (mips_output_function_prologue): Likewise.
1532 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
1534 (TARGET_CPU_CPP_BUILTINS): Likewise.
1535 (TARGET_IRIX): Removed.
1536 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
1537 (MULTILIB_DIRNAMES): Removed 32.
1538 (MULTILIB_OSDIRNAMES): Removed ../lib.
1539 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
1540 (Specific, mips-sgi-irix5): Document removal.
1541 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
1542 Remove references to older IRIX 6 releases and the O32 ABI.
1544 2010-05-06 Jakub Jelinek <jakub@redhat.com>
1547 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
1548 instead of DF_REF_REAL_REG.
1550 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
1553 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
1554 handling to still return true for x64 targets.
1556 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
1558 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
1560 2010-05-06 Jan Hubicka <jh@suse.cz>
1562 PR tree-optimization/43791
1563 * ipa-inline.c (update_caller_keys): Remove bogus
1564 disregard_inline_limits check.
1566 2010-05-06 Michael Matz <matz@suse.de>
1568 PR tree-optimization/43984
1569 * tree-ssa-pre.c (inserted_phi_names): Remove.
1570 (inserted_exprs): Change to bitmap.
1571 (create_expression_by_pieces): Set bits, don't append to vector.
1572 (insert_into_preds_of_block): Don't handle inserted_phi_names.
1573 (eliminate): Don't look at inserted_phi_names, remove deleted
1574 insns from inserted_exprs.
1575 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
1576 (init_pre, fini_pre): Allocate and free bitmaps.
1577 (execute_pre): Insert insns on edges before elimination.
1579 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
1581 * tree.c (initializer_zerop): Handle STRING_CST.
1583 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
1586 * doc/invoke.texi (Wimplicit): Document as C only.
1587 * opts.c (common_handle_option): Add argument kind.
1588 (handle_option): Rename as read_cmdline_option. Factor out code to...
1589 (handle_option): ... here. New.
1590 (handle_options): Rename as read_cmdline_options.
1591 (decode_options): Update call.
1592 (set_option): Use option index instead of option pointer. Classify
1593 diagnostics correctly.
1594 (enable_warning_as_error): Call handle_option.
1595 * opts.h (set_option): Update declaration.
1596 (handle_option): Declare.
1597 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
1598 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
1599 * c-opts.c (set_Wimplicit): Delete.
1600 (c_family_lang_mask): New static constant.
1601 (c_common_handle_option): Add argument kind. Use handle_option
1602 instead of set_Wimplicit.
1603 (c_common_post_options): warn_implicit and warn_implicit_int
1604 are disabled by default.
1605 * c-common.c (warn_implicit): Do not define here.
1606 * c-common.h (warn_implicit): Do not declare here.
1607 (c_common_handle_option): Update declaration.
1608 * lto-opts.c (lto_reissue_options): Update call to set_option.
1610 2010-05-06 Richard Guenther <rguenther@suse.de>
1612 PR tree-optimization/43571
1613 * domwalk.c (walk_dominator_tree): Walk the dominator
1614 sons in more optimal order.
1616 2010-05-06 Richard Guenther <rguenther@suse.de>
1618 PR tree-optimization/43934
1619 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
1620 (stmt_cost): Likewise.
1621 (extract_true_false_args_from_phi): New helper.
1622 (determine_max_movement): For PHI nodes verify we can hoist them
1623 and compute their cost.
1624 (determine_invariantness_stmt): Handle PHI nodes.
1625 (move_computations_stmt): Likewise. Hoist PHI nodes in
1626 if-converted form using COND_EXPRs.
1627 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
1628 (tree_ssa_lim): Likewise.
1629 * tree-flow.h (tree_ssa_lim): Adjust prototype.
1630 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
1632 2010-05-06 Richard Guenther <rguenther@suse.de>
1634 PR tree-optimization/43987
1635 * tree-ssa-structalias.c (could_have_pointers): For possibly
1636 address-taken variables force pointers to be recorded.
1637 (create_variable_info_for_1): Likewise.
1638 (push_fields_onto_fieldstack): Pass in wheter all fields
1640 (find_func_aliases): Query types instead of vars whether
1641 they contain pointers where appropriate.
1643 2010-05-06 Jan Hubicka <jh@suse.cz>
1645 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
1646 (record_reference, mark_address, mark_load, mark_store): Record
1648 (record_references_in_initializer): Update call of record_references.
1649 (rebuild_cgraph_edges): Remove all references before rebuiding.
1650 * cgraph.c (cgraph_create_node): Clear ref list.
1651 (cgraph_remove_node): Remove references.
1652 (dump_cgraph_node): Dump references.
1653 (cgraph_clone_node): Clone references.
1654 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
1655 (struct cgraph_node, varpool_node): Add ref_lst.
1656 * ipa-ref.c: New file.
1657 * ipa-ref.h: New file.
1658 * ipa-ref-inline.h: New file.
1659 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
1660 (referenced_from_other_partition_p): New function.
1661 (lto_output_varpool_node): Take set arugment; call
1662 referenced_from_other_partition.
1663 (lto_output_ref): New.
1664 (add_references): New.
1666 (output_cgraph): Compute boundary based on references; output refs.
1667 (output_varpool): Accept cgraph_node_set argument.
1670 (input_cgraph): Call input_refs.
1671 * lto-section-in.c (lto_section_name): Add refs.
1672 * Makefile.in: (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
1673 (ipa-ref.o): New file.
1674 * varpool.c (varpool_node): Clear ipa ref list.
1675 (varpool_remove_node): Remove references.
1676 (dump_varpool_node): Dump references.
1677 (varpool_assemble_decl): Only compile finalized ones.
1678 (varpool_extra_name_alias): Initialize ref list.
1679 * lto-streamer.c (lto-get_section_name): Add .refs section.
1680 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
1681 (referenced_from_other_partition_p): Declared.
1683 2010-05-06 Ira Rosen <irar@il.ibm.com>
1685 PR tree-optimization/43901
1686 * tree-vect-stmts.c (vectorizable_call): Assert that vector
1687 type is not NULL if it's transformation phase, and return
1688 FALSE if it's analysis.
1689 (vectorizable_conversion, vectorizable_operation,
1690 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
1692 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
1694 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
1696 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
1698 * config/mips/mips-protos.h
1699 (mips_small_register_classes_for_mode_p): Delete prototype.
1701 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
1703 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
1704 * config/arm/arm.c (multiple_operation_profitable_p,
1705 compute_offset_order): New static functions.
1706 (load_multiple_sequence, store_multiple_sequence): Use them.
1707 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
1708 memory offsets, not register numbers.
1709 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
1711 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
1713 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
1714 (get_pending_sizes, put_pending_size, put_pending_sizes):
1715 Update the uses of pending_sizes.
1716 * c-decl.c (store_parm_decls): Likewise.
1717 * c-tree.h (struct c_arg_info): Likewise.
1718 * tree.h: Update the prototype for get_pending_sizes and
1721 2010-05-05 Jason Merrill <jason@redhat.com>
1724 * c-common.c (handle_aligned_attribute): Respect
1725 ATTR_FLAG_TYPE_IN_PLACE.
1728 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
1729 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
1730 (TARGET_INITIALIZER): Use it.
1731 * c-common.c (attribute_takes_identifier_p): Call it.
1732 * c-common.h: Update prototype.
1733 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
1734 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
1736 2010-05-05 Jakub Jelinek <jakub@redhat.com>
1739 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
1740 DW_ID_down_case for Fortran compilation units.
1742 2010-05-05 Jan Hubicka <jh@suse.cz>
1744 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
1747 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
1749 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
1750 a variable-sized RESULT_DECL.
1752 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
1754 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
1756 2010-05-05 Jason Merrill <jason@redhat.com>
1759 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
1761 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
1763 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
1764 Jakub Jelinek <jakub@redhat.com>
1767 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
1768 (dead_debug_init, dead_debug_finish): New functions.
1769 (dead_debug_add, dead_debug_insert_before): Likewise.
1770 (df_note_bb_compute): Initialize a dead_debug object, add dead
1771 debug uses to it, insert debug bind insns before death insns,
1772 reset debug insns that refer to pending uses at the end.
1773 * rtl.h (make_debug_expr_from_rtl): New prototype.
1774 * varasm.c (make_debug_expr_from_rtl): New function.
1776 2010-05-05 Jan Hubicka <jh@suse.cz>
1778 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
1779 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
1780 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
1781 lto_varpool_encoder_deref, lto_varpool_encoder_size,
1782 lto_varpool_encoder_encode_initializer_p,
1783 lto_set_varpool_encoder_encode_initializer): New functions.
1784 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
1785 call output_varpool.
1786 (input_varpool_node): Do not always set analyzed.
1787 (input_cgraph_1): Return vector of cgraph nodes.
1788 (input_varpool_1): Return vector of varpools.
1789 (input_cgraph): Free the vectors.
1790 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
1791 output only initializers needed.
1792 (lto_output): Only call output_cgraph.
1793 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
1794 * lto-section-out.c (lto_new_out_decl_state): Initialize
1795 state->varpool_node_encoder.
1796 * lto-streamer.h (lto_varpool_encoder_d): New.
1797 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
1798 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
1799 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
1800 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
1801 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
1803 (output_varpool, input_varpool): Remove declarations.
1805 2010-05-05 Jan Hubicka <jh@suse.cz>
1807 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
1808 with body can prevail.
1810 2010-05-05 Jan Hubicka <jh@suse.cz>
1812 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
1815 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1817 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
1819 * gengtype.h (erro_at_line): Constify pos argument.
1821 * gengtype.c: Include hashtab.h.
1822 (enum gc_used): Document GC_MAYBE_POINTED_TO.
1823 (error_at_line): Constify pos argument.
1824 (do_typedef): Initialize p->opt field.
1825 (get_file_gtfilename): Fix comment typo.
1826 (struct walk_type_data): Constify line field.
1827 (get_output_file_for_structure): New function.
1828 (write_local_func_for_structure): Constify orig_s argument.
1829 Use get_output_file_for_structure.
1830 (write_func_for_structure): Use get_output_file_for_structure.
1831 (INDENT): New define.
1832 (dump_pair, dump_type, dump_type_list, dump_typekind)
1833 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
1834 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
1836 (seen_types): New variable.
1837 (main): New variable do_dump. Process "-d" command line option.
1838 Call dump_everything if dump requested.
1840 2010-05-05 Jakub Jelinek <jakub@redhat.com>
1842 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
1843 in a temporary instead of invoking the macro multiple times.
1844 (track_expr_p): Likewise.
1846 2010-05-04 Neil Vachharajani <nvachhar@google.com>
1848 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
1850 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
1851 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
1852 conditions for printing notes.
1853 * common.opt (-Wcoverage-mismatch): Allow negative, default to
1854 true, update documentation.
1855 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
1857 2010-05-04 Jakub Jelinek <jakub@redhat.com>
1860 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
1863 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
1866 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
1867 (*sse_prologue_save_insn1): Likewise.
1868 (SSE prologue save splitter): Likewise.
1870 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
1872 * tree.c (free_lang_data_in_one_sizepos): New inline function.
1873 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
1874 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
1875 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
1876 all decls. Call it on DECL_FIELD_OFFSET of fields.
1877 (find_decls_types_r): Follow DECL_VALUE_EXPR.
1878 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
1880 2010-05-04 Martin Jambor <mjambor@suse.cz>
1882 * tree-sra.c (build_access_from_expr_1): The first parameter type
1883 changed to simple tree.
1884 (build_access_from_expr): Likewise, gsi parameter was eliminated.
1885 (scan_assign_result): Renamed to assignment_mod_result, enum elements
1887 (build_accesses_from_assign): Removed all parameters except for a
1888 simple gimple statement. Now returns a simple bool.
1889 (scan_function): All non-analysis parts moved to separate functions
1890 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
1891 parameters and updated both callers.
1892 (sra_modify_expr): Removed parameter data.
1893 (sra_modify_function_body): New function.
1894 (perform_intra_sra): Call sra_modify_function_body to modify the
1896 (replace_removed_params_ssa_names): Parameter data changed into
1898 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
1899 changed the parameter dont_convert to convert with the opposite
1901 (sra_ipa_modify_assign): Parameter data changed into adjustments
1902 vector, return value changed to bool.
1903 (ipa_sra_modify_function_body): New function.
1904 (sra_ipa_reset_debug_stmts): Updated a comment.
1905 (modify_function): Use ipa_sra_modify_function_body to modify function
1908 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
1911 * alias.c (true_dependence): Handle the same VALUE in x and mem.
1912 (canon_true_dependence): Likewise.
1913 (write_dependence_p): Likewise.
1915 2010-05-04 Jan Hubicka <jh@suse.cz>
1917 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
1918 * cgraphbuild.c: Include ipa-utils.h
1919 (record_reference_ctx): New struct.
1920 (record_reference): Simplify to work on initializers; not statements.
1921 (mark_address, mark_load, mark_store): New.
1922 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
1924 (record_references_in_initializer): Update use of record_reference.
1925 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
1928 2010-05-04 Jan Hubicka <jh@suse.cz>
1930 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
1931 node will be removed anyway.
1932 (lto_varpool_replace_node): Allow also unanalyzed nodes;
1933 relink aliases of node into prevailing node.
1934 * varpool.c (varpool_remove_node): Remove aliases properly;
1935 when removing node, remove all its aliases too; remove DECL_INITIAL
1936 of removed node; ggc_free the varpool node.
1938 2010-05-04 Richard Guenther <rguenther@suse.de>
1940 PR tree-optimization/43879
1941 * tree-ssa-structalias.c (alias_get_name): Use
1942 DECL_ASSEMBLER_NAME if available.
1943 (create_function_info_for): Return the varinfo node.
1944 (ipa_pta_execute): Associate same-body aliases and extra names
1945 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
1947 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
1949 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
1951 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
1954 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
1955 only if HONOR_REG_ALLOC_ORDER is not defined.
1957 2010-05-04 Richard Guenther <rguenther@suse.de>
1959 PR tree-optimization/43949
1960 * tree-vrp.c (extract_range_from_binary_expr): Only handle
1963 2010-04-26 Jason Merrill <jason@redhat.com>
1965 * c.opt (-fstrict-enums): New.
1966 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
1968 2010-05-03 David Ung <davidu@mips.com>
1969 James E. Wilson <wilson@codesourcery.com>
1971 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
1972 emit the trap instruction before the divide for TUNE_74K.
1974 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
1976 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
1977 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
1978 based on the above, for new target hook.
1980 * hooks.c (hook_bool_mode_true): New generic hook.
1981 * hooks.h (hook_bool_mode_true): Add prototype.
1983 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
1985 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
1986 target hook, set to hook_bool_mode_false.
1987 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
1988 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
1989 with targetm.small_register_classes_for_mode_p.
1990 (find_reusable_reload): Likewise.
1991 (combine_reloads): Likewise.
1992 * reload1.c (reload_as_needed): Likewise.
1993 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
1994 * ifcvt.c (noce_process_if_block, check_cond_move_block,
1995 dead_or_predicable): Likewise.
1996 * regmove.c (optimize_reg_copy_1): Likewise.
1997 * calls.c (prepare_call_address): Likewise.
1998 (precompute_register_parameters): Likewise.
2000 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
2002 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
2003 implementation of the hook that considers all register classes
2004 small except for SH64.
2005 (sh_override_options): Use the new hook.
2006 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
2009 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
2011 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
2012 implementation of the hook that considers all register classes
2014 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
2017 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
2019 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
2020 implementation of the hook that considers all register classes
2022 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
2025 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
2027 * config/m32c/m32c.h: Likewise.
2028 * config/pdp11/pdp11.h: Likewise.
2029 * config/avr/avr.h: Likewise.
2030 * config/xtensa/xtensa.h: Likewise.
2031 * config/m68hc11/m68hc11.h: Likewise.
2032 * config/mn10300/mn10300.h: Likewise.
2033 * config/mcore/mcore.h: Likewise.
2034 * config/h8300/h8300.h: Likewise.
2035 * config/bfin/bfin.h: Likewise.
2037 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
2038 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
2040 2010-05-03 Anatoly Sokolov <aesok@post.ru>
2042 * double-int.h (tree_to_double_int): Remove macro.
2043 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
2044 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
2045 (tree_to_double_int): New function.
2046 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
2048 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
2050 2010-05-03 Richard Guenther <rguenther@suse.de>
2052 PR tree-optimization/43971
2053 * tree-ssa-structalias.c (get_constraint_for_1): Fix
2054 constraints in the !flag_delete_null_pointer_checks case.
2056 2010-05-03 Jakub Jelinek <jakub@redhat.com>
2059 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
2060 result mode matches original rtl mode.
2062 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
2065 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
2067 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
2069 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
2070 when processing flag options.
2072 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
2074 * gcov-iov.c (main): Change format string placeholder
2075 from %#08x to 0x%08x.
2076 * genchecksum.c (dosum): Change format string placeholder
2077 from %#02x to 0x%02x.
2079 2010-05-02 Richard Guenther <rguenther@suse.de>
2081 PR tree-optimization/43879
2082 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
2084 2010-05-02 Bruno Haible <bruno@clisp.org>
2086 * doc/extend.texi (Function Attributes): Fix a typo.
2088 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
2091 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
2092 placeholder from 0x%x to %#x.
2093 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
2094 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
2095 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
2096 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
2097 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
2098 * config/i386/i386.c (ix86_target_string): Ditto.
2099 * config/i386/i386.c (output_pic_addr_const): Ditto.
2100 (print_operand): Ditto.
2102 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
2104 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
2105 placeholder from 0x%x to %#x.
2106 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
2107 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
2108 (ASM_OUTPUT_DEBUG_DATA): Ditto.
2109 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
2110 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
2111 * optc-gen.awk: Ditto.
2112 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
2113 (HOST_WIDE_INT_PRINT_HEX): Ditto.
2114 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
2115 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
2117 2010-05-01 Anatoly Sokolov <aesok@post.ru>
2119 * target.h (struct calls): Add function_value_regno_p field.
2120 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
2121 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
2122 * targhooks.c (default_function_value_regno_p): New function.
2123 * targhooks.h (default_function_value_regno_p): Declare function.
2124 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
2125 * builtins.c. (apply_result_size): (Ditto.).
2126 * combine.c. (likely_spilled_retval_p): (Ditto.).
2127 * mode-switching.c. Include 'target.h'.
2128 (create_pre_exit): Use function_value_regno_p hook.
2129 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
2130 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
2131 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
2133 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
2134 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
2135 (ix86_function_value_regno_p): Declare as static, change argument
2136 type to const unsigned int.
2137 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
2139 2010-05-01 Richard Guenther <rguenther@suse.de>
2141 PR tree-optimization/43949
2142 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
2144 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
2146 2010-05-01 Anatoly Sokolov <aesok@post.ru>
2148 * rtl.h (CONST_DOUBLE_P): Define.
2149 (rtx_to_double_int): Declare.
2150 * emit-rtl.c (rtx_to_double_int): New function.
2151 * dwarf2out.c (insert_double): New function.
2152 (loc_descriptor, add_const_value_attribute): Clean up, use
2153 rtx_to_double_int and insert_double functions.
2155 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
2157 * doc/extend.texi (Inline): Add missing return keyword to examples.
2158 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
2161 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
2163 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
2164 the variable part of the offset as well. Use highest_pow2_factor for
2165 all alignment checks.
2167 2010-04-30 Richard Guenther <rguenther@suse.de>
2169 PR tree-optimization/43879
2170 * tree-ssa-structalias.c (type_could_have_pointers): Functions
2173 2010-04-30 Jan Hubicka <jh@suse.cz>
2175 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
2177 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
2179 2010-04-30 Jan Hubicka <jh@suse.cz>
2181 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
2183 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
2184 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
2185 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
2186 cgraph_node_set_needs_ltrans_p): Remove.
2188 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
2190 * sdbout.c: Include vec.h, do not include varray.h.
2191 (deferred_global_decls, sdbout_global_decl,
2192 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
2193 * toplev.c: Do not include varray.h.
2194 (dump_memory_report): Do not dump VARRAY statistics.
2195 * gengtype.c (open_base_file): Ignore varray.h.
2196 * Makefile.in: Update for abovementioned changes.
2197 Remove all traces of varray.c and varray.h.
2198 * varray.c: Remove file.
2199 * varray.h: Remove file.
2201 2010-04-30 Jan Hubicka <jh@suse.cz>
2203 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
2206 2010-04-30 Jan Hubicka <jh@suse.cz>
2208 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
2211 2010-04-30 Richard Guenther <rguenther@suse.de>
2213 * tree-ssa-structalias.c (get_constraint_for_1): Generate
2214 constraints for CONSTRUCTOR.
2216 2010-04-30 Richard Guenther <rguenther@suse.de>
2219 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
2220 first after all lowering passes.
2222 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
2224 * toplev.c: Include varray.h for statistics dumping.
2225 * tree.h: Do not declare varray_head_tag.
2226 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
2227 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
2228 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
2229 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
2230 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
2231 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
2232 c-common.c, c-common.h, reg-stack.c, basic-block.h,
2233 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
2235 * Makefile.in: Update for abovementioned changes.
2237 2010-04-30 Jakub Jelinek <jakub@redhat.com>
2240 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
2242 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
2244 * config/picochip/picochip.c (picochip_legitimize_address): Define.
2245 Use this function to do machine-specific conversion.
2246 (picochip_legitimize_reload_address): Likewise.
2247 (picochip_legitimate_address_p): Check valid base register only if
2249 (picochip_check_conditional_copy): Check for modw only if opnd is
2251 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
2252 to call the function in c.
2253 * config/picochip/picochip-protos.h
2254 (picochip_legitimize_reload_address): Define.
2255 * config/picochip/picochip.md (supported_compare1): Define.
2257 2010-04-30 Jan Hubicka <jh@suse.cz>
2259 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
2260 (cgraph_global_info): Remove inlined.
2261 (LTO_cgraph_tag_names): Remove.
2262 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
2263 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
2264 simplify cgraph tags and document.
2265 (lto_output_node): Use only LTO_cgraph_unavail_node and
2266 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
2267 for_functions_valid, global info, process and output flags.
2268 (input_overwrite_node): Initialize estimated stack size and
2269 estimated growth. Do not read flags we no longer store.
2270 (input_node): Likewise do not read info no longer stored.
2271 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
2274 2010-04-30 Richard Guenther <rguenther@suse.de>
2276 PR tree-optimization/43879
2277 * tree-ssa-structalias.c (get_constraint_for_1): Properly
2278 handle non-zero initializers.
2280 2010-04-30 Richard Guenther <rguenther@suse.de>
2282 * builtins.c (fold_builtin_1): Delete free (0).
2284 2010-04-29 Jan Hubicka <jh@suse.cz>
2286 * gengtype.c (open_base_files): Add lto-streamer.h
2287 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
2288 (pass_ipa_cp): GGC collect.
2289 * toplev. (compile_file): Do not output symbols.
2290 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
2291 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
2292 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
2293 * lto-section-in.c: Include ggc.h
2294 (lto_new_in_decl_state): Alloc in GGC.
2295 (lto_delete_in_decl_state): Likewise.
2296 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
2299 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
2302 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
2303 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
2304 (HONOR_REG_ALLOC_ORDER): Describe new macro.
2305 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
2306 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
2307 account only if HONOR_REG_ALLOC_ORDER is not defined.
2308 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
2309 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
2311 2010-04-29 Jon Grant <04@jguk.org>
2313 * collect2.c (vflag): Change type from int to bool.
2315 (helpflag): New global bool.
2316 (main): Set vflag and debug with boolean, not integer truth values.
2317 Accept new "--help" option and output usage text if found.
2318 * collect2.h (vflag): Update prototype.
2321 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
2324 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
2326 2010-04-29 Richard Guenther <rguenther@suse.de>
2329 * plugin.h (invoke_plugin_callbacks): Annotate arguments
2330 with ATTRIBUTE_UNUSED.
2332 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
2335 * config/i386/i386.c (get_some_local_dynamic_name): Replace
2336 INSN_P with NONDEBUG_INSN_P.
2337 (distance_non_agu_define): Likewise.
2338 (distance_agu_use): Likewise.
2340 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
2342 From Dominique d'Humieres <dominiq@lps.ens.fr>
2344 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
2347 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
2349 * plugin.h (invoke_plugin_callbacks): New inline function.
2350 * plugin.c (flag_plugin_added): New global flag.
2351 (add_new_plugin): Initialize above flag.
2352 (invoke_plugin_callbacks): Rename to ...
2353 (invoke_plugin_callbacks_full): ... this.
2355 2010-04-28 Jan Hubicka <jh@suse.cz>
2357 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
2358 (lto_varpool_replace_node): New.
2359 (lto_symtab_resolve_symbols): Resolve varpool nodes.
2360 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
2361 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
2362 * cgraph.h (varpool_node_ptr): New type.
2363 (varpool_node_ptr): New vector.
2364 (varpool_node_set_def): New structure.
2365 (varpool_node_set): New type.
2366 (varpool_node_set): New vector.
2367 (varpool_node_set_element_def): New structure.
2368 (varpool_node_set_element, const_varpool_node_set_element): New types.
2369 (varpool_node_set_iterator): New type.
2370 (varpool_node): Add prev pointers, add used_from_other_partition,
2372 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
2373 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
2374 varpool_get_node, varpool_remove_node): Declare.
2375 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
2376 varpool_node_set_size): New inlines.
2377 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
2378 * tree-pass.h (varpool_node_set_def): Forward declare.
2379 (ipa_opt_pass_d): Summary writting takes vnode sets too.
2380 (ipa_write_optimization_summaries): Update prototype.
2381 * ipa-cp.c (ipcp_write_summary): Update.
2382 * ipa-reference.c (ipa_reference_write_summary): Update.
2383 * lto-cgraph.c (lto_output_varpool_node): New static function.
2384 (output_varpool): New function.
2385 (input_varpool_node): New static function.
2386 (input_varpool_1): New function.
2387 (input_cgraph): Input varpool.
2388 * ipa-pure-const.c (pure_const_write_summary): Update.
2389 * lto-streamer-out.c (lto_output): Update, output varpool too.
2390 (write_global_stream): Kill WPA hack.
2391 (produce_asm_for_decls): Update.
2392 (output_alias_pair_p): Handle variables.
2393 (output_unreferenced_globals): Output only needed partition of varpool.
2394 * ipa-inline.c (inline_write_summary): Update.
2395 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
2397 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
2398 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
2399 varpool_node_set_new, varpool_node_set_add,
2400 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
2401 debug_varpool_node_set): New functions.
2402 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
2403 (execute_one_pass): Process new decls too.
2404 (ipa_write_summaries_2): Pass around vsets.
2405 (ipa_write_summaries_1): Likewise.
2406 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
2408 (ipa_write_optimization_summaries_1): Pass around vsets.
2409 (ipa_write_optimization_summaries): Likewise.
2410 * varpool.c (varpool_get_node): New.
2411 (varpool_node): Update doubly linked lists.
2412 (varpool_remove_node): New.
2413 (dump_varpool_node): More dumping.
2414 (varpool_enqueue_needed_node): Update doubly linked lists.
2415 (decide_is_variable_needed): Kill ltrans hack.
2416 (varpool_finalize_decl): Kill lto hack.
2417 (varpool_assemble_decl): Skip decls in other partitions.
2418 (varpool_assemble_pending_decls): Update doubly linkes lists.
2419 (varpool_empty_needed_queue): Likewise.
2420 (varpool_extra_name_alias): Likewise.
2421 * lto-streamer.c (lto_get_section_name): Add vars section.
2422 * lto-streamer.h (lto_section_type): Update.
2423 (output_varpool, input_varpool): Declare.
2425 2010-04-28 Mike Stump <mikestump@comcast.net>
2427 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
2429 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
2431 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
2432 record or union type with RECORD_OR_UNION_TYPE_P predicate.
2433 (lto_input_ts_type_tree_pointers): Likewise.
2434 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
2435 (lto_output_ts_type_tree_pointers): Likewise.
2437 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
2439 Uniquization of constants at the Tree level
2440 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
2441 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
2443 (tree_output_constant_def): Declare.
2444 * gimplify.c (gimplify_init_constructor): When using block copy, first
2445 uniquize the constant constructor on the RHS.
2446 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
2447 DECL_IN_CONSTANT_POOL flag.
2448 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
2449 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
2451 (assemble_variable): Deal with symbols belonging to the tree constant
2453 (get_constant_section): Add ALIGN parameter and simplify.
2454 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
2455 (assemble_constant_contents): Use the expression of the VAR_DECL.
2456 (output_constant_def_contents): Use the alignment of the VAR_DECL.
2457 (tree_output_constant_def): New global function.
2458 (mark_constant): Use the expression of the VAR_DECL.
2459 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
2461 (output_object_block): Likewise and assemble the expression.
2463 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
2465 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
2466 hash_tree, eq_tree): New tree hash table.
2467 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
2468 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
2469 lto_orig_address_remove): Reimplement.
2471 2010-04-28 Xinliang David Li <davidxl@google.com>
2474 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
2475 (compute_uninit_opnds_pos): New function.
2476 (is_non_loop_exit_postdominating): New function.
2477 (compute_control_dep_chain): New function.
2478 (find_pdom): New function.
2479 (convert_control_dep_chain_into_preds): New function.
2480 (find_predicates): New function.
2481 (find_control_equiv_block): New function.
2482 (collect_phi_def_edges): New function.
2483 (find_def_preds): New function.
2484 (find_dom): New function.
2485 (dump_predicates): New function.
2486 (get_cmp_code): New function.
2487 (is_value_included_in): New function.
2488 (find_matching_predicate_in_rest_chains): New function.
2489 (use_pred_not_overlap_with_undef_path_pred): New function.
2490 (is_use_properly_guarded): New function.
2491 (normalize_cond_1): New function.
2492 (is_and_or_or): New function.
2493 (normalize_cond): New function.
2494 (is_gcond_subset_of): New function.
2495 (is_subset_of_any): New function.
2496 (is_or_set_subset_of): New function.
2497 (is_and_set_subset_of): New function.
2498 (is_norm_cond_subset_of): New function.
2499 (is_pred_expr_subset_of): New function.
2500 (is_pred_chain_subset_of): New function.
2501 (is_included_in): New function.
2502 (is_superset_of): New function.
2503 (find_uninit_use): New function.
2504 (warn_uninitialized_phi): New function.
2505 (compute_possibly_undefined_names): New function.
2506 (ssa_undefined_value_p): New function.
2507 (execute_late_warn_uninitialized): New function.
2508 * tree-ssa.c (ssa_undefined_value_p): Removed.
2509 (warn_uninit): Changed to extern.
2510 (warn_uninitialized_phi): Removed.
2511 (warn_uninitialized_vars): Changed to extern.
2512 (execute_late_warn_uninitialized): Removed
2513 * tree-flow.h: Add new prototypes.
2514 * timevar.def: Add new time variable.
2515 * Makefile.in: Add new build file.
2517 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
2519 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
2522 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2525 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
2527 2010-04-28 Martin Jambor <mjambor@suse.cz>
2529 * cgraph.h (struct cgraph_node): New field indirect_calls.
2530 (struct cgraph_indirect_call_info): New type.
2531 (struct cgraph_edge): Removed field indirect_call. New fields
2532 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
2533 (cgraph_create_indirect_edge): Declare.
2534 (cgraph_make_edge_direct): Likewise.
2535 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
2536 * ipa-prop.h (struct ipa_param_call_note): Removed.
2537 (struct ipa_node_params): Removed field param_calls.
2538 (ipa_create_all_structures_for_iinln): Declare.
2539 * cgraph.c: Described indirect edges and uids in initial comment.
2540 (cgraph_add_edge_to_call_site_hash): New function.
2541 (cgraph_edge): Search also among the indirect edges, use
2542 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
2543 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
2544 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
2546 (initialize_inline_failed): Assign a reason to indirect edges.
2547 (cgraph_create_edge_1): New function.
2548 (cgraph_create_edge): Moved some functionality to
2549 cgraph_create_edge_1.
2550 (cgraph_create_indirect_edge): New function.
2551 (cgraph_edge_remove_callee): Add an assert checking for
2553 (cgraph_edge_remove_caller): Special-case indirect edges.
2554 (cgraph_remove_edge): Likewise.
2555 (cgraph_set_edge_callee): New function.
2556 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
2557 (cgraph_make_edge_direct): New function.
2558 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
2559 the declaration of the call statement matches.
2560 (cgraph_node_remove_callees): Special-case indirect edges.
2561 (cgraph_clone_edge): Likewise.
2562 (cgraph_clone_node): Clone also the indirect edges.
2563 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
2564 indirect_call, dump count of indirect_calls edges.
2565 * ipa-prop.c (iinlining_processed_edges): New variable.
2566 (ipa_note_param_call): Create indirect edges instead of
2567 creating notes. New parameter node.
2568 (ipa_analyze_call_uses): New parameter node, pass it on to
2569 ipa_note_param_call.
2570 (ipa_analyze_stmt_uses): Likewise.
2571 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
2572 (print_edge_addition_message): Work on edges rather than on notes.
2573 (update_call_notes_after_inlining): Likewise, renamed to
2574 update_indirect_edges_after_inlining.
2575 (ipa_create_all_structures_for_iinln): New function.
2576 (ipa_free_node_params_substructures): Do not free notes.
2577 (ipa_edge_duplication_hook): Propagate bits within
2578 iinlining_processed_edges bitmap.
2579 (ipa_node_duplication_hook): Do not duplicate notes.
2580 (free_all_ipa_structures_after_ipa_cp): Renamed to
2581 ipa_free_all_structures_after_ipa_cp.
2582 (free_all_ipa_structures_after_iinln): Renamed to
2583 ipa_free_all_structures_after_iinln.
2584 (ipa_write_param_call_note): Removed.
2585 (ipa_read_param_call_note): Removed.
2586 (ipa_write_indirect_edge_info): New function.
2587 (ipa_read_indirect_edge_info): Likewise.
2588 (ipa_write_node_info): Do not stream notes, do stream information
2590 (ipa_read_node_info): Likewise.
2591 (lto_ipa_fixup_call_notes): Removed.
2592 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
2593 * ipa-inline.c (pass_ipa_inline): Likewise.
2594 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
2595 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
2596 * tree-inline.c (copy_bb): Removed an unnecessary double check for
2598 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
2600 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
2601 (output_cgraph): Stream also indirect edges.
2602 (lto_output_edge): Added capability to stream indirect edges.
2603 (input_edge): Likewise.
2604 (input_cgraph_1): Likewise.
2605 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
2608 2010-04-28 Richard Guenther <rguenther@suse.de>
2610 PR tree-optimization/43879
2611 PR tree-optimization/43909
2612 * tree-ssa-structalias.c (struct variable_info): Add
2613 only_restrict_pointers flag.
2614 (new_var_info): Initialize it. Increment stats.total_vars here.
2615 (create_function_info_for): Do not increment stats.total_vars here.
2616 (get_function_part_constraint): Fix build with C++.
2617 (insert_into_field_list): Remove.
2618 (push_fields_onto_fieldstack): Properly merge fields.
2619 (create_variable_info_for): Split and simplify.
2620 (create_variable_info_for_1): New piece.
2621 (intra_create_variable_infos): Properly make restrict constraints
2624 2010-04-28 Richard Guenther <rguenther@suse.de>
2627 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
2629 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
2630 Jan Hubicka <hubicka@ucw.cz>
2632 * doc/invoke.texi (-Wsuggest-attribute=const,
2633 -Wsuggest-attribute=pure): Document.
2634 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
2635 (function_always_visible_to_compiler_p,
2636 suggest_attribute, warn_function_pure, warn_function_const):
2638 (check_call): Improve debug info.
2639 (analyze_function): Do not check availability.
2640 (add_new_function): Check availability.
2641 (propagate): Output warnings.
2642 (skip_function_for_local_pure_const): New function.
2643 (local_pure_const): Use it; output warnings.
2644 * common.opt (Wsuggest-attribute=const,
2645 Wsuggest-attribute=pure): New.
2647 2010-04-27 Jakub Jelinek <jakub@redhat.com>
2649 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
2650 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
2651 or DW_CFA_def_cfa_offset{,_sf}.
2653 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
2655 * tree.h: Fix truncated long macros.
2657 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
2659 * collect2.c (TARGET_64BIT): Redefine to target's default.
2660 * tlink.c: Likewise.
2661 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
2662 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
2663 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
2664 for underscoring __USER_LABEL_PREFIX__.
2665 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
2666 (SUB_LINK_ENTRY32): New.
2667 (SUB_LINK_ENTRY64): New.
2668 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
2669 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
2670 (SUB_LINK_ENTRY64): New.
2671 (SUB_LINK_ENTRY): New.
2672 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
2673 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
2674 x64 target is choosen.
2675 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
2676 * configure: Regenerated.
2677 * configure.ac (leading-mingw64-underscores): Option added.
2679 2010-04-27 Jan Hubicka <jh@suse.cz>
2681 * doc/invoke.texi (-fipa-profile): Document.
2682 * opts.c (decode_options): Enable ipa-profile at -O1.
2683 * timevar.def (TV_IPA_PROFILE): Define.
2684 * common.opt (fipa-profile): Add.
2685 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
2687 (cgraph_propagate_frequency): Handle only local ones.
2688 * tree-pass.h (pass_ipa_profile): Declare.
2689 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
2690 (pass_ipa_profile): Use TV_IPA_PROFILE.
2691 * ipa.c (ipa_profile): New function.
2692 (gate_ipa_profile): Likewise.
2693 (pass_ipa_profile): New global variable.
2694 * passes.c (pass_ipa_profile): New.
2696 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
2698 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
2700 2010-04-27 Martin Jambor <mjambor@suse.cz>
2703 * ipa.c (dissolve_same_comdat_group_list): New function.
2704 (function_and_variable_visibility): Call
2705 dissolve_same_comdat_group_list when comdat group contains external or
2707 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
2708 lists are circular and that they contain only DECL_ONE_ONLY nodes.
2710 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
2712 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
2713 (const_hash_1) <VECTOR_CST>: New case.
2714 (compare_constant) <VECTOR_CST>: Likewise.
2715 <ADDR_EXPR>: Deal with LABEL_REFs.
2716 (copy_constant) <VECTOR_CST>: New case.
2718 2010-04-27 Jan Hubicka <jh@suse.cz>
2720 * cgraph.c (cgraph_propagate_frequency): New function.
2721 * cgraph.h (cgraph_propagate_frequency): Declare.
2722 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
2723 cgraph_propagate_frequency.
2725 2010-04-27 Jakub Jelinek <jakub@redhat.com>
2727 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
2729 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
2732 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
2733 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
2734 here to determine which regs to push and how much stack to reserve.
2736 2010-04-27 Jie Zhang <jie@codesourcery.com>
2738 * doc/gimple.texi (gimple_statement_with_ops): Remove
2739 addresses_taken field.
2740 (gimple_statement_with_memory_ops): Likewise.
2742 2010-04-27 Jan Hubicka <jh@suse.cz>
2744 * tree-inline.c (eni_inlining_weights): Remove.
2745 (estimate_num_insns): Special case more builtins.
2747 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
2750 * c-typeck.c (build_binary_op): Move forward check for comparison
2751 pointer with null pointer constant and adjust the diagnostic message.
2753 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
2756 * configure.ac (gcc_cv_as_section_has_align): Set if installed
2757 binutils supports extended .section directive needed by LTO, or
2758 warn if older binutils found.
2759 (LTO_BINARY_READER): New AC_SUBST'd variable.
2760 (LTO_USE_LIBELF): Likewise.
2761 * gcc/config.gcc (lto_binary_reader): New target-specific configure
2763 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
2764 (LTO_USE_LIBELF): Likewise.
2765 * configure: Regenerate.
2767 * collect2.c (is_elf): Rename from this ...
2768 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
2769 object files in addition to ELF-formatted ones.
2770 (scan_prog_file): Caller updated. Also allow for LTO info marker
2771 symbol to be prefixed or not by an extra underscore.
2773 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
2774 * config/i386/winnt.c: Also #include lto-streamer.h
2775 (i386_pe_asm_named_section): Specify 1-byte section alignment for
2777 (i386_pe_asm_output_aligned_decl_common): Add comment.
2778 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
2780 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
2783 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
2784 Add missing earlyclobber for second alternative.
2786 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
2788 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
2789 bits for artificial defs at the top of the block.
2790 * fwprop.c (single_def_use_enter_block): Don't call it.
2792 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
2795 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
2796 instead of "$gcc_cv_objdump -T".
2797 Use "-undefined dynamic_lookup" on darwin.
2798 * gcc/configure: Regenerate.
2800 2010-04-26 Jakub Jelinek <jakub@redhat.com>
2803 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
2805 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
2807 * c-parser.c (struct c_token): Move location field up.
2808 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
2809 (struct c_declspecs): Convert typespec_word, storage_class, and
2810 default_int_p into bitfields.
2811 (struct c_declarator): Move loc field up.
2813 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
2815 * cfgloop.h (struct loop): Move can_be_parallel field up.
2816 * ipa-prop.h (struct ip_node_params): Move bitfields up.
2817 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
2819 (struct iv_cand): Convert pos field into a bitfield.
2820 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
2822 (struct _stmt_vec_info): Shuffle fields for better packing.
2824 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
2826 * varasm.c (IN_NAMED_SECTION): Remove guard.
2827 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
2828 (IN_NAMED_SECTION_P): ...this.
2829 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
2830 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
2832 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
2834 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
2835 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
2836 of shadowing it. Fix comments.
2838 2010-04-26 Jan Hubicka <jh@suse.cz>
2840 * cgraph.c (cgraph_create_node): Set node frequency to normal.
2841 (cgraph_clone_node): Copy function frequency.
2842 * cgraph.h (node_frequency): New enum
2843 (struct cgraph_node): Add.
2844 * final.c (rest_of_clean_state): Update.
2845 * lto-cgraph.c (lto_output_node): Output node frequency.
2846 (input_overwrite_node): Input node frequency.
2847 * tre-ssa-loop-ivopts (computation_cost): Update.
2848 * lto-streamer-out.c (output_function): Do not output function
2850 * predict.c (maybe_hot_frequency_p): Update and handle functions
2852 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
2854 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
2855 (compute_function_frequency): Set noreturn functions to be executed
2857 (choose_function_section): Update.
2858 * lto-streamer-in.c (input_function): Do not input function frequency.
2859 * function.c (allocate_struct_function): Do not initialize function
2861 * function.h (function_frequency): Remove.
2862 (struct function): Remove function frequency.
2863 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
2864 (try_update): Update.
2865 * tree-inline.c (initialize_cfun): Do not update function frequency.
2866 * passes.c (pass_init_dump_file): Update.
2867 * i386.c (ix86_compute_frame_layout): Update.
2868 (ix86_pad_returns): Update.
2870 2010-04-26 Jie Zhang <jie@codesourcery.com>
2872 PR tree-optimization/43833
2873 * tree-vrp.c (range_int_cst_p): New.
2874 (range_int_cst_singleton_p): New.
2875 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
2876 when both operands are constants. Use range_int_cst_p in
2879 2010-04-26 Jan Hubicka <jh@suse.cz>
2881 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
2883 2010-04-26 Richard Guenther <rguenther@suse.de>
2886 * gimple.c (gimple_decl_printable_name): Deal gracefully
2887 with a NULL DECL_NAME.
2889 2010-04-26 Richard Guenther <rguenther@suse.de>
2892 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
2893 if emitting debug information and it is either a function
2894 or a namespace decl.
2896 2010-04-26 Ira Rosen <irar@il.ibm.com>
2898 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
2899 determine if the statement is vectorizable, and a macro to access it.
2900 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
2901 Skip statements that can't be vectorized. If the analysis fails,
2902 mark the statement as unvectorizable if vectorizing basic block.
2903 (vect_compute_data_refs_alignment): Likewise.
2904 (vect_verify_datarefs_alignment): Skip statements marked as
2905 unvectorizable. Add print.
2906 (vect_analyze_group_access): Skip statements that can't be
2907 vectorized. If the analysis fails, mark the statement as
2908 unvectorizable if vectorizing basic block.
2909 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
2910 * tree-vect-stmts.c (vectorizable_store): Fix the number of
2911 generated stmts for SLP.
2912 (new_stmt_vec_info): Initialize the new field.
2913 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
2914 statements marked as unvectorizable.
2916 2010-04-25 Joseph Myers <joseph@codesourcery.com>
2918 * c-common.c (flag_isoc1x): New.
2919 (flag_isoc99): Update comment.
2920 * c-common.h (flag_isoc1x): New.
2921 (flag_isoc99): Update comment.
2922 * c-cppbuiltin.c (builtin_define_float_constants): Also define
2923 __<type>_DECIMAL_DIG__.
2924 * c-opts.c (set_std_c1x): New.
2925 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
2926 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
2927 * c.opt (-std=c1x, -std=gnu1x): New options.
2928 * doc/cpp.texi: Mention -std=c1x.
2929 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
2930 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
2931 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
2932 * doc/standards.texi: Mention C1X.
2933 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
2934 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
2935 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
2938 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
2940 * config/i386/gmon-sol2.c (_mcleanup): Change format string
2941 placeholder from 0x%x to %#x.
2942 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
2943 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
2944 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
2945 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
2946 * config/i386/i386.c (ix86_target_string): Ditto.
2947 (output_pic_addr_const): Ditto.
2948 (print_operand): Ditto.
2950 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
2952 * combine.c (find_split_point): Add third argument. Use it
2953 to find nested multiply-accumulate instructions. Adjust calls.
2954 (try_combine): Adjust call to find_split_point.
2956 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
2958 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
2960 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
2962 PR tree-optimization/41442
2963 * fold-const.c (merge_truthop_with_opposite_arm): New function.
2964 (fold_binary_loc): Call it.
2966 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
2968 * toplev.c (general_init): Set default for fdiagnostics-show-option.
2969 * opts.c (common_handle_option): Allow disabling it.
2970 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
2972 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
2974 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
2975 between modes if both types are integral.
2977 2010-04-23 Richard Guenther <rguenther@suse.de>
2979 PR tree-optimization/43572
2980 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
2982 2010-04-23 Richard Guenther <rguenther@suse.de>
2985 * tree-inline.c (tree_can_inline_p): Also check compatibility
2988 2010-04-23 Martin Jambor <mjambor@suse.cz>
2990 PR tree-optimization/43846
2991 * tree-sra.c (struct access): New flag grp_assignment_read.
2992 (build_accesses_from_assign): Set grp_assignment_read.
2993 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
2994 (enum mark_read_status): New type.
2995 (analyze_access_subtree): Propagate grp_assignment_read, create
2996 accesses also if both direct_read and root->grp_assignment_read.
2998 2010-04-23 Martin Jambor <mjambor@suse.cz>
3001 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
3002 function does not have type attributes.
3004 2010-04-23 Richard Guenther <rguenther@suse.de>
3007 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
3010 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3012 * sese.h (create_if_region_on_edge): Remove.
3014 * sese.c (create_if_region_on_edge): Make static.
3016 * tree-inline.c: Do not include ggc.h.
3018 * expr.c: Do not include ggc.h.
3020 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
3023 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
3026 * config/sh/sh.c (find_barrier): Don't emit a constant pool
3027 in the middle of insns for casesi_worker_2.
3029 2010-04-22 David Edelsohn <edelsohn@gnu.org>
3031 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
3033 2010-04-22 Ira Rosen <irar@il.ibm.com>
3035 PR tree-optimization/43842
3036 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
3037 loop unrolling in update of exit phis. Fix comment.
3038 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
3039 least two reduction statements in the loop before starting SLP
3042 2010-04-22 Nick Clifton <nickc@redhat.com>
3044 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
3046 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
3048 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
3051 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3053 * tree-parloops.c (loop_parallel_p): New argument
3054 parloop_obstack. Pass it down.
3055 (parallelize_loops): New variable parloop_obstack. Initialize it,
3056 pass it down, free it.
3058 * tree-loop-linear.c (linear_transform_loops): Pass down
3061 * tree-data-ref.h (lambda_compute_access_matrices): New argument
3062 of type struct obstack *.
3064 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
3065 scratch_obstack. Initialize it, pass down, free it.
3067 * lambda.h (lambda_loop_new): Remove.
3068 (lambda_matrix_new, lambda_matrix_inverse)
3069 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
3070 argument of type struct obstack *.
3072 * lambda-trans.c (lambda_trans_matrix_new): New argument
3073 lambda_obstack. Pass it down, use obstack allocation for ret.
3074 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
3077 * lambda-mat.c (lambda_matrix_get_column)
3078 (lambda_matrix_project_to_null): Remove.
3079 (lambda_matrix_new): New argument lambda_obstack. Use obstack
3081 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
3084 * lambda-code.c (lambda_loop_new): New function.
3085 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
3086 (lambda_compute_auxillary_space, lambda_compute_target_space)
3087 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
3088 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
3089 (build_access_matrix): New argument lambda_obstack. Use obstack
3091 (lambda_compute_step_signs, lambda_compute_access_matrices): New
3092 argument lambda_obstack. Pass it down.
3094 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
3096 * optabs.h (expand_widening_mult): Declare.
3098 2010-04-22 Richard Guenther <rguenther@suse.de>
3100 PR tree-optimization/43845
3101 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
3102 lookup the CALL_EXPR function and arguments.
3104 2010-04-22 Nick Clifton <nickc@redhat.com>
3106 * config/stormy16/stormy16.c
3107 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
3108 * config/stormy16/stormy16.h: Tidy up formatting.
3109 (DONT_USE_BUILTIN_SETJMP): Remove definition.
3110 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
3111 (ineqbranchsi): Delete pattern.
3112 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
3113 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
3114 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
3115 stormy16-lib2-ucmpsi2.c.
3117 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
3119 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
3120 df_simulate_find_noclobber_defs as appropriate. Keep track of an
3121 extra set merge_set_noclobber, and use it to relax the final test
3123 * df.h (df_simulate_find_noclobber_defs): Declare.
3124 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
3126 (df_simulate_find_noclobber_defs): New function.
3128 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
3130 * config/i386/i386.md: Use {} around multi-line preparation statements.
3132 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3134 * c-tree.h (push_init_level, pop_init_level, set_init_index)
3135 (process_init_element): New argument of type struct obstack *.
3137 * c-typeck.c (push_init_level, pop_init_level, set_designator)
3138 (set_init_index, set_init_label, set_nonincremental_init)
3139 (set_nonincremental_init_from_string, find_init_member)
3140 (output_init_element, output_pending_init_elements)
3141 (process_init_element): New argument braced_init_obstack. Pass it
3143 (push_range_stack, add_pending_init): New argument
3144 braced_init_obstack. Use obstack allocation.
3146 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
3147 braced_init_obstack. Pass it down.
3148 (c_parser_braced_init): New variables ret, braced_init_obstack.
3149 Initialize obstack, pass it down and finally free it.
3151 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
3154 * tree-pass.h (pass_optimize_widening_mul): Declare.
3155 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
3156 gate_optimize_widening_mul): New static functions.
3157 (pass_optimize_widening_mul): New.
3158 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
3159 <case MULT_EXPR>: Remove support for widening multiplies.
3160 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
3161 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
3162 simplify_gen_unary rather than directly building extensions.
3163 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
3165 * expmed.c (expand_widening_mult): New function.
3166 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
3168 2010-04-21 Jan Hubicka <jh@suse.cz>
3170 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
3171 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
3172 * lto-wpa-fixup.c: Remove.
3173 * Makefile.in (lto-wpa-fixup.o): Remove.
3174 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
3175 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
3176 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
3178 2010-04-21 Jan Hubicka <jh@suse.cz>
3180 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
3181 add write_optimization_summary, read_optimization_summary.
3182 (ipa_write_summaries_of_cgraph_node_set): Remove.
3183 (ipa_write_optimization_summaries): Declare.
3184 (ipa_read_optimization_summaries): Declare.
3185 * ipa-cp.c (pass_ipa_cp): Update.
3186 * ipa-reference.c (pass_ipa_reference): Update.
3187 * ipa-pure-const.c (pass_ipa_pure_const): Update.
3188 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
3190 * ipa-inline.c (pass_ipa_inline): Update.
3191 * ipa.c (pass_ipa_whole_program): Update.
3192 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
3193 * passes.c (ipa_write_summaries_1): Do not test wpa.
3194 (ipa_write_optimization_summaries_1): New.
3195 (ipa_write_optimization_summaries): New.
3196 (ipa_read_summaries): Do not test ltrans.
3197 (ipa_read_optimization_summaries_1): New.
3198 (ipa_read_optimization_summaries): New.
3200 2010-04-21 Jan Hubicka <jh@suse.cz>
3202 * lto-cgraph.c (lto_output_node): Do not output comdat groups
3204 (output_cgraph): Do not arrange comdat groups for boundary nodes.
3206 2010-04-21 Jakub Jelinek <jakub@redhat.com>
3209 * dwarf2out.c (add_name_and_src_coords_attributes): Add
3210 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
3212 2010-04-21 Jan Hubicka <jh@suse.cz>
3214 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
3216 2010-04-21 Jan Hubicka <jh@suse.cz>
3218 * varpool.c (decide_is_variable_needed): Variable is always needed
3221 2010-04-21 Jan Hubicka <jh@suse.cz>
3223 * opts.c (decode_options): Enable pure-const pass for whopr.
3225 2010-04-21 Jan Hubicka <jh@suse.cz>
3227 * cgraph.c (dump_cgraph_node): Dump also assembler name.
3228 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
3230 (cgraph_decide_inlining): Do not expect callee to be removed in all
3233 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
3235 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
3237 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
3239 * config/i386/i386.md (x86_shrd): Add athlon_decode and
3240 amdfam10_decode attributes.
3242 2010-04-21 Jakub Jelinek <jakub@redhat.com>
3245 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
3246 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
3247 (lower_copyprivate_clauses): Use private var in outer
3248 context instead of original var. Make sure the types
3249 are correct for VLAs.
3251 2010-04-21 Richard Guenther <rguenther@suse.de>
3253 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
3254 to non-pointer objects.
3256 2010-04-21 Jakub Jelinek <jakub@redhat.com>
3258 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
3259 last chain entry if it starts with the still current label.
3260 (add_location_or_const_value_attribute): Check that
3261 loc_list->first->next is NULL instead of comparing ->first with ->last.
3262 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
3263 to add_var_loc_to_decl.
3265 * dwarf2out.c (output_call_frame_info): For dw_cie_version
3266 >= 4 add also address size and segment size fields into CIE header.
3268 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
3269 long as address size is the same as sizeof (void *) and
3271 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
3272 address size or segment size is unexpected, return DW_EH_PE_omit.
3273 (classify_object_over_fdes): If get_cie_encoding returned
3274 DW_EH_PE_omit, return -1.
3275 (init_object): If classify_object_over_fdes returned -1,
3276 pretend there were no FDEs at all.
3278 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
3280 * config/i386/i386.md (bswap<mode>2): Macroize expander from
3281 bswap{si,di}2 using SWI48 mode iterator.
3282 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
3283 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
3284 set modrm attribute of bswap insn to 0 and remove length attribute.
3285 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
3286 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
3287 set mode attribute to <MODE> and remove length attribute.
3289 2010-04-20 James E. Wilson <wilson@codesourcery.com>
3291 PR rtl-optimization/43520
3292 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
3293 zero available registers.
3295 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3297 * builtins.c (fold_builtin_cproj): Fold more cases.
3299 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3301 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
3302 (fold_builtin_1): Fold builtin cproj.
3303 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
3304 Use ATTR_CONST_NOTHROW_LIST.
3306 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
3308 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
3309 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
3310 ffsi2_no_cmove for !TARGET_CMOVE.
3311 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
3312 (ffssi2): Remove expander.
3313 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
3315 (ctz<mode>2): Ditto from ctz{si,di}2.
3316 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
3318 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
3321 2010-04-20 Jakub Jelinek <jakub@redhat.com>
3323 * dwarf2out.c (AT_linkage_name): Define.
3324 (clone_as_declaration): Handle DW_AT_linkage_name.
3325 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
3326 of DW_AT_MIPS_linkage_name.
3327 (move_linkage_attr): Likewise.
3328 (dwarf2out_finish): Likewise.
3330 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
3333 * fold-const.c (fold_comparison): New folding rule.
3335 2010-04-20 Anatoly Sokolov <aesok@post.ru>
3337 * double-int.h (double_int_setbit): Declare.
3338 * double-int.c (double_int_setbit): New function.
3339 * rtl.h (immed_double_int_const): Declare.
3340 * emit-rtl.c (immed_double_int_const): New function.
3341 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
3342 and immed_double_int_const functions.
3343 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
3344 expand_copysign_bit): (Ditto.).
3345 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
3346 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
3347 * dojump.c (prefer_and_bit_test): (Ditto.).
3348 * expr.c (convert_modes, reduce_to_bit_field_precision,
3349 const_vector_from_tree): (Ditto.).
3350 * expmed.c (mask_rtx, lshift_value): (Ditto.).
3352 2010-04-20 Jan Hubicka <jh@suse.cz>
3354 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
3355 (dump_cgraph_node): Dump new flags.
3356 * cgraph.h (struct cgraph_node): Add flags
3357 reachable_from_other_partition and in_other_partition.
3358 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
3359 other partition can not be removed.
3360 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
3361 the other partition must be output; silence sanity checking on
3362 leaking functions bodies from other paritition.
3363 * lto-cgraph.c (reachable_from_other_partition_p): New function.
3364 (lto_output_node): Output new flags; do not sanity check that inline
3365 clones are output; drop lto_forced_extern_inline_p code; do not mock
3366 visibility flags at partition boundaries.
3367 (add_node_to): New function.
3368 (output_cgraph): Use it to sort functions so masters appear before
3370 (input_overwrite_node): Input new flags.
3371 * passes.c (ipa_write_summaries): Do not call
3372 lto_new_extern_inline_states.
3373 * lto-section-out.c (forced_extern_inline,
3374 lto_new_extern_inline_states lto_delete_extern_inline_states,
3375 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
3376 * lto-streamer.h (lto_new_extern_inline_states,
3377 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
3378 lto_forced_extern_inline_p): Kill.
3380 2010-04-20 Richard Guenther <rguenther@suse.de>
3382 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
3383 from vars that can have pointers.
3384 (process_constraint): Dump useless constraints.
3386 2010-04-20 Richard Guenther <rguenther@suse.de>
3388 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
3389 (dump_sa_points_to_info): Remove asserts.
3390 (init_base_vars): nothing_id isn't an escape point nor does it
3393 2010-04-20 Jakub Jelinek <jakub@redhat.com>
3395 * tree.h (TYPE_REF_IS_RVALUE): Define.
3396 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
3397 should_move_die_to_comdat, prune_unused_types_walk): Handle
3398 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
3399 (modified_type_die, gen_reference_type_die): Emit
3400 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
3401 if TYPE_REF_IS_RVALUE and -gdwarf-4.
3403 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3406 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
3407 calls for -fpic -m31 if they have been sibcall optimized.
3409 2010-04-19 James E. Wilson <wilson@codesourcery.com>
3411 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
3412 ar.lc fixed and call-used.
3414 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
3416 2010-04-19 Jan Hubicka <jh@suse.cz>
3418 * opts.c (decode_options): Disable whpr incompatible passes.
3419 * lto/lto.c (lto_1_to_1_map): Skip clones.
3420 (read_cgraph_and_symbols): Do not mark everything as needed.
3421 (do_whole_program_analysis): Do map only after optimizing;
3422 set proper cgraph_state; use passmanager.
3424 2010-04-19 DJ Delorie <dj@redhat.com>
3426 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
3427 POINTER_PLUS_EXPR and fix them.
3429 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
3431 * config/avr/avr-devices.c (avr_mcu_types): Add support for new