OSDN Git Service

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