OSDN Git Service

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