OSDN Git Service

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