OSDN Git Service

* gcc.dg/lto/ipareference2_0.c: New file.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
2
3         * diagnostic.c (FLOAT, FFS): Don't undefine.
4         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
5         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
6         include ordering.
7
8 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
9
10         * combine.c (propagate_for_debug): Call make_compound_operation
11         on the source value.
12         (try_combine): When implementing a split chosen by find_split_point,
13         either copy i2src or set it to null.  Assert that i2src is not null
14         before substituting into CALL_INSN_FUNCTION_USAGE.
15
16 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
17
18         * double-int.h (double_int_ior): New function.
19         * tree.h (build_int_cst_wide_type): Remove.
20         * tree.c (build_int_cst_wide_type): Remove.
21         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
22         of build_int_cst_wide_type.
23         * stor-layout.c (set_sizetype): (Ditto.).
24         * dojump.c (do_jump): Use build_int_cstu instead of
25         build_int_cst_wide_type.
26
27 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
28
29         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
30         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
31         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
32         * gimplify.c: (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
33         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
34         propagate the 'data' argument to copy_tree_r.
35         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
36         Propagate 'data' argument to walk_tree.
37         (copy_if_shared): New function.
38         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
39         (unmark_visited): New function.
40         (unshare_body): Call copy_if_shared instead of doing it manually.
41         (unvisit_body): Call unmark_visited instead of doing it manually.
42
43 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
44
45         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
46         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
47         * hooks.c: Likewise.
48         * target-def.h (TARGET_FOLD_BUILTIN): Define to
49         hook_tree_tree_int_treep_bool_null.
50         * target.h: (struct gcc_target): Update signature of fold_builtin
51         field.
52         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
53         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
54         instead of the call expression.
55         (fold_builtin_call_array): Pass n and argarray directly.
56         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
57         consing a list.
58         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
59         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
60         `i' and use it in place of `arity'.
61         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
62         Dereference `args' directly.
63         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
64
65 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
66
67         * doc/sourcebuild.texi (Effective-Target Keywords): Document
68         3dnow, sse3, sse2.
69         (Directives): Document optional dg-require-effective-target
70         selector.
71
72 2010-05-19  Richard Guenther  <rguenther@suse.de>
73
74         PR lto/44196
75         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
76
77 2010-05-19  Richard Guenther  <rguenther@suse.de>
78
79         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
80         * common.opt (fwhopr=): New.
81         * opts.c (common_handle_option): Handle OPT_fwhopr.
82         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
83         * collect2.c (main): Match -fwhopr*.
84         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
85         Execute ltrans stage in parallel when jobs is bigger than 1.
86
87 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
88
89         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
90         pentiumpro on Solaris 8/x86 with Sun as.
91         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
92         hidden alias bug.
93         (gcc_cv_as_ix86_quad): Check for .quad directive.
94         * configure: Regenerate.
95         * config.in: Regenerate.
96         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
97
98 2010-05-19  Martin Jambor  <mjambor@suse.cz>
99
100         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
101         also for indirect edges.  Actual printing moved...
102         (ipa_print_node_jump_functions_for_edge): ...here.
103         (ipa_compute_jump_functions): Renamed to
104         ipa_compute_jump_functions_for_edge and made static.
105         (ipa_compute_jump_functions): New function.
106         (make_edge_direct_to_target): Check if the number of arguments on
107         the newly direct edge is the same as the number of parametrs of
108         the callee.
109         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
110         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
111         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
112         analysis functions unconditionally, call the new
113         ipa_analyze_params_uses on the node instead of every edge.
114
115 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
116
117         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
118         to tree.
119         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
120         also checks for a constant int vs.  non-constant but
121         loop-invariant steps.
122         (find_or_create_group): Change the sort algorithm to only consider
123         steps that are constant ints.
124         (idx_analyze_ref): Adopt code to handle a tree instead of a
125         HOST_WIDE_INT for step.
126         (gather_memory_references_ref): Handle tree instead of int and be
127         prepared to see a NULL_TREE.
128         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
129         prefetches if the step cannot be calculated at compile time.
130         (issue_prefetch_ref): Issue prefetches for non-constant but
131         loop-invariant steps.
132
133 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
134
135         Revert:
136         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
137
138         * tree.h (build_call_list): Remove.
139         * tree.c (build_call_list): Remove.
140
141 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
142
143         * tree.h (build_call_list): Remove.
144         * tree.c (build_call_list): Remove.
145
146 2010-05-18  Jan Hubicka  <jh@suse.cz>
147
148         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
149
150 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
151
152         PR rtl-optimization/43332
153         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
154
155 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
156
157         * tree.h (build_int_cstu): Implement as static inline.
158         * tree.c (build_int_cstu): Remove function.
159         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
160         sign extended.
161
162 2010-05-18  Richard Guenther  <rguenther@suse.de>
163
164         PR lto/44143
165         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
166         (debug): Initialize from -save-temps.
167         (collect_execute): Print command-line when verbose.
168         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
169         for ltrans invocation.  Produce -dumpbase flag again.
170         (process_args): Remove.
171         (main): Simplify.
172         * collect2.c (maybe_run_lto_and_relink): Only pass object
173         files to lto-wrapper.
174         * gcc.c (LINK_COMMAND_SPEC): Likewise.
175
176 2010-05-18  Jan Hubicka  <jh@suse.cz>
177
178         * opts.c (decode_options): Do not disable whopr at ipa_cp.
179         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
180
181 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
182
183         PR lto/44184
184         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
185         in a GIMPLE_ASM.
186         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
187         in a GIMPLE_ASM.
188
189 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
190
191         PR debug/41371
192         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
193         rtx_equal_p inline.
194
195 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
196
197         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
198         lto-macho as lto_binary_reader.
199
200         * darwin.c (darwin_asm_named_section): Do not add assembler comment
201         after .section directive; just print it before the directive instead.
202
203 2010-05-17  Jan Hubicka  <jh@suse.cz>
204
205         * cgraph.c (cgraph_create_virtual_clone): Only check
206         versionable_function_p when not in wpa and checking is enabled.
207         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
208         there are no more functions to materialize.
209
210 2010-05-17  Jan Hubicka  <jh@suse.cz>
211
212         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
213         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
214         New functions.
215         (output_cgraph): Call output_cgraph_opt_summary.
216         (input_cgrpah): Call input_cgraph_opt_summary.
217         (output_cgraph_opt_summary_p, output_node_opt_summary,
218         input_node_opt_summary, input_cgraph_opt_section): New functions.
219         * lto-section-in.c (lto_section_name): Add cgraphopt.
220         * tree-inline.c (tree_function_versioning): Handle parm_num.
221         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
222         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
223
224 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
225
226         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
227         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
228         the insn to prefetch ratio heuristic to loops with known trip count.
229
230 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
231
232         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
233         (schedule_prefetches): Do not generate a prefetch if the unroll factor
234         is far from what is required by the prefetch.
235
236 2010-05-17  Jan Hubicka  <jh@suse.cz>
237
238         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
239         (ipcp_estimate_growth): Likewise.
240         (ipcp_const_param_count): Likewise.
241         (ipcp_insert_stage): Likewise.
242         * ipa-prop.c (visit_load_for_mod_analysis): New function.
243         (visit_store_addr_for_mod_analysis): Set used flag.
244         (ipa_detect_param_modifications): Set used flag for SSE params;
245         update use of walk_stmt_load_store_addr_ops.
246         (ipa_print_node_params): Print used flag.
247         (ipa_write_node_info): Stream used flag.
248         (ipa_read_node_info): Likewise.
249         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
250         (ipa_is_param_used): New function.
251         (lto_ipa_fixup_call_notes): Remove unused declaration.
252
253 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
254
255         PR target/44074
256         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
257         * configure: Regenerate.
258         * config.in: Regenerate.
259         * config/i386/i386.c (print_operand) <case ;>: Also print ; if
260         !HAVE_AS_IX86_REP_LOCK_PREFIX.
261         Don't emit whitespace.
262         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
263         (*rep_movsi): Likewise.
264         (*rep_movsi_rex64): Likewise.
265         (*rep_movqi): Likewise.
266         (*rep_movqi_rex64): Likewise.
267         (*rep_stosdi_rex64): Likewise.
268         (*rep_stossi): Likewise.
269         (*rep_stossi_rex64): Likewise.
270         (*rep_stosqi): Likewise.
271         (*rep_stosqi_rex64): Likewise.
272         (*cmpstrnqi_nz_1): Use {%;} after repz.
273         (*cmpstrnqi_nz_rex_1): Likewise.
274         (*cmpstrnqi_1): Likewise.
275         (*cmpstrnqi_rex_1): Likewise.
276         (*strlenqi_1): Use {%;} after repnz.
277         (*strlenqi_rex_1): Likewise.
278         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
279         (*sync_compare_and_swap<mode>): Likewise.
280         (sync_double_compare_and_swap<mode>): Likewise.
281         (*sync_double_compare_and_swapdi_pic): Likewise.
282         (sync_old_add<mode>): Likewise.
283         (sync_add<mode>): Likewise.
284         (sync_sub<mode>): Likewise.
285         (sync_<code><mode>): Likewise.
286
287 2010-05-17  Martin Jambor  <mjambor@suse.cz>
288
289         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
290         otr_token and polymorphic.
291         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
292         (cgraph_clone_edge): Copy the above fields.
293         * tree.c (get_binfo_at_offset): New function.
294         * tree.h (get_binfo_at_offset): Declare.
295         * ipa-prop.h (enum jump_func_type): Added known_type jump function
296         type, reordered items, updated comments.
297         (union jump_func_value): Added base_type field, reordered fields.
298         (enum ipa_lattice_type): Moved down in the file.
299         (struct ipa_param_descriptor): New field polymorphic.
300         (ipa_is_param_polymorphic): New function.
301         * ipa-prop.c: Include gimple.h and gimple-fold.h.
302         (ipa_print_node_jump_functions): Print known type jump functions.
303         (compute_complex_pass_through): Renamed to...
304         (compute_complex_assign_jump_func): this.
305         (compute_complex_ancestor_jump_func): New function.
306         (compute_known_type_jump_func): Likewise.
307         (compute_scalar_jump_functions): Create known type and complex ancestor
308         jump functions.
309         (ipa_note_param_call): New parameter polymorphic, set the corresponding
310         flag in the call note accordingly.
311         (ipa_analyze_call_uses): Renamed to...
312         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
313         variable var only in the block where it is used.
314         (ipa_analyze_virtual_call_uses): New function.
315         (ipa_analyze_call_uses): Likewise.
316         (combine_known_type_and_ancestor_jfs): Likewise.
317         (update_jump_functions_after_inlining): Implemented handling of a
318         number of new jump function types combination.
319         (print_edge_addition_message): Removed.
320         (make_edge_direct_to_target): New function.
321         (try_make_edge_direct_simple_call): Likewise.
322         (try_make_edge_direct_virtual_call): Likewise.
323         (update_call_notes_after_inlining): Renamed to...
324         (update_indirect_edges_after_inlining): this.  Moved edge creation for
325         indirect calls to try_make_edge_direct_simple_call, also calls
326         try_make_edge_direct_virtual_call for virtual calls.
327         (ipa_print_node_params): Changed the header message.
328         (ipa_write_jump_function): Stream also known type jump functions.
329         (ipa_read_jump_function): Likewise.
330         (ipa_write_indirect_edge_info): Stream new fields in
331         cgraph_indirect_call_info.
332         (ipa_read_indirect_edge_info): Likewise.
333         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
334         GIMPLE_FOLD_H.
335
336 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
337
338         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
339
340 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
341
342         * tree.h (CALL_EXPR_ARGS): Delete.
343         (call_expr_arglist): Delete.
344         * tree.c (call_expr_arglist): Delete.
345         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
346         targetm.fold_builtin.
347         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
348         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
349         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
350         arglist parameter.  Use CALL_EXPR_ARG.
351         (picochip_expand_builtin_3op): Likewise.
352         (picochip_expand_builtin_2opvoid): Likewise.
353         (picochip_expand_array_get): Likewise.
354         (picochip_expand_array_put): Likewise.
355         (picochip_expand_array_testport): Likewise.
356         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
357         rather than arglist.
358         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
359         CALL_EXPR_ARGS.
360         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
361         than TREE_VALUE and TREE_CHAIN.
362         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
363         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
364         the arglist.
365
366 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
367
368         PR bootstrap/42347
369         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
370         to have no fallthru edge.
371
372         PR middle-end/44102
373         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
374         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
375         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
376         add BARRIER after previous bb if needed.
377
378 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
379  
380         * tree.c (build_function_type_list_1): Remove bogus assert condition.
381  
382 2010-05-17  Alan Modra  <amodra@gmail.com>
383
384         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
385         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
386         with copy_reg rtx param.
387         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
388         Correct cases where code for ABI_V4 did not initialise the reg
389         used to access frame.  Also leave frame_reg_rtx as sp for large
390         frames that save no regs.
391
392 2010-05-17  Martin Jambor  <mjambor@suse.cz>
393
394         PR middle-end/44133
395         * tree-sra.c (create_access_replacement): New parameter rename, mark
396         the replaement for renaming only when it is true.
397         (get_access_replacement): Pass true in the rename parameter of
398         create_access_replacement.
399         (get_unrenamed_access_replacement): New function.
400         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
401         replacement declaration from it.
402
403 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
404
405         * function.c (try_fit_stack_local, add_frame_space): New static
406         functions.
407         (assign_stack_local_1): Use them.  Look for opportunities to use
408         space previously wasted on alignment.
409         * function.h (struct frame_space): New.
410         (struct rtl_data): Add FRAME_SPACE_LIST member.
411         * reload1.c (something_was_spilled): New static variable.
412         (alter_reg): Set it.
413         (reload): Test it in addition to testing if the frame size changed.
414
415 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
416
417         * config/s390/s390.c: Define sane prefetch settings and activate
418         flag_prefetch_loop_arrays on -O3.
419         * config/s390/s390.h: Declare that read can use write prefetch.
420
421 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
422
423         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
424         build.
425
426 2010-05-16  Jan Hubicka  <jh@suse.cz>
427
428         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
429         function body; do not check stdarg field of struct function.
430
431 2010-05-16  Jan Hubicka  <jh@suse.cz>
432
433         * cgraph.c (dump_cgraph_node): Dump versionable flag.
434         * cgraph.h (cgraph_local_info): Add versionable flag.
435         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
436         (ipcp_versionable_function_p): Use it.
437         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
438         versionable flag.
439
440 2010-05-16  Jan Hubicka  <jh@suse.cz>
441
442         * cgraph.c (cgraph_clone_node): Take decl argument and insert
443         clone into hash when it is different from orig.
444         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
445         * cgraph.h (cgraph_clone_node): Update prototype.
446         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
447         (lto_cgraph_encoder_delete): Delete body map.
448         (lto_cgraph_encoder_size): Move to header.
449         (lto_cgraph_encoder_encode_body_p,
450         lto_set_cgraph_encoder_encode_body): New.
451         (lto_output_node): Do not take written_decls argument; output clone_of
452         pointer.
453         (add_node_to): Add include_body_argument; call
454         lto_set_cgraph_encoder_encode_body on master of the clone.
455         (add_references): Update use of add_node_to.
456         (compute_ltrans_boundary): Likewise.
457         (output_cgraph): Do not create written_decls bitmap.
458         (input_node): Take nodes argument; stream in clone_of correctly.
459         (input_cgraph_1): Update use of input_node.
460         * lto-streamer-out.c (lto_output): Use encoder info to decide
461         what bodies to output.
462         * ipa-inline.c (cgraph_clone_inlined_nodes,
463         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
464         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
465         (lto_cgraph_encoder_size): Define here.
466         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
467         Declare.
468
469 2010-05-16  Richard Guenther  <rguenther@suse.de>
470
471         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
472         -fipa-type-escape.
473         * ipa-type-escape.c (gate_type_escape_vars): Run when
474         -fipa-struct-reorg runs.
475         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
476         * common.opt (fipa-type-escape): Remove.
477
478 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
479
480         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
481         (decode_options): Likewise.
482         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
483
484 2010-05-16  Jan Hubicka  <jh@suse.cz>
485
486         * ipa.c (function_and_variable_visibility): Also bring local all
487         aliases.
488
489 2010-05-16  Richard Guenther  <rguenther@suse.de>
490
491         * alias.c (nonoverlapping_memrefs_p): Remove use of
492         IPA type-escape information.
493
494 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
495
496         * c-common.c (c_common_reswords): Add _Static_assert for C.
497         * c-parser.c (c_token_starts_declaration,
498         c_parser_next_token_starts_declaration,
499         c_parser_static_assert_declaration_no_semi,
500         c_parser_static_assert_declaration): New.
501         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
502         Handle static assertions if static_assert_ok.
503         (c_parser_external_declaration, c_parser_declaration_or_fndef,
504         c_parser_compound_statement_nostart, c_parser_label,
505         c_parser_for_statement, c_parser_objc_methodprotolist,
506         c_parser_omp_for_loop): All callers of
507         c_parser_declaration_or_fndef changed.
508         (c_parser_struct_declaration): Handle static assertions.
509         (c_parser_compound_statement_nostart): Use
510         c_parser_next_token_starts_declaration and
511         c_token_starts_declaration to detect start of declarations.
512         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
513         Likewise.
514
515 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
516
517         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
518         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
519         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
520         TARGET_FUNCTION_VALUE_REGNO_P): Define.
521         (mmix_function_outgoing_value): Rename to...
522         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
523         (mmix_function_value_regno_p): Make static.
524         (mmix_libcall_value): New function.
525         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
526         mmix_function_value_regno_p): Remove declaration.
527
528 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
529
530         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
531         BUILT_IN_ALLOCA if stack checking is enabled.
532
533 2010-05-16  Richard Guenther  <rguenther@suse.de>
534
535         * var-tracking.c (vars_copy_1): Inline ...
536         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
537         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
538         (variable_merge_over_cur): Adjust.  Merge asserts.
539         (variable_merge_over_src): Likewise.
540         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
541         (variable_post_merge_new_vals): Merge asserts.
542         (variable_post_merge_perm_vals): Likewise.
543         (find_mem_expr_in_1pdv): Likewise.
544         (dataflow_set_different_value): Remove.
545         (onepart_variable_different_p): Merge asserts.
546         (variable_different_p): Likewise.
547         (dataflow_set_different_1): Inline ...
548         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
549         (emit_notes_for_differences_1): Merge asserts.
550
551 2010-05-16  Richard Guenther  <rguenther@suse.de>
552
553         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
554         * optabs.c (libfunc_decl_hash): Likewise.
555         * varasm.c (emutls_decl): Likewise.
556
557 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
558
559         * c-decl.c: Don't include gimple.h.
560         (merge_decls): Do not copy gimple_body.
561
562 2010-05-15  Jason Merrill  <jason@redhat.com>
563
564         * c.opt: Add -fnothrow-opt.
565
566 2010-05-15  Jan Hubicka  <jh@suse.cz>
567
568         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
569         analyzed.
570         * passes.c (ipa_write_summaries): Write all analyzed nodes.
571
572 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
573
574         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
575         * Makefile.in: Add it.
576         Fix all other Makefile dependencies for changes below.
577         * tree.h: Include it instead of defining VEC primitives here.
578         * gimple.h: Likewise.
579         * rtl.h: Likewise.
580         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
581         * except.h: Include vecir.h, break dependence on tree.h.
582
583         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
584         Move from here...
585         * tree-iterator.c: ...to here.
586         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
587
588         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
589         tm_p.h.
590         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
591         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
592         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
593         tree-mudflap.h, and target.h.
594         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
595         predict.h, tree-inline.h, gimple.h, and langhooks.h.
596         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
597         Add FIXME for why gimple.h is still included (should be unnecessary
598         since GCC 4.5 gimplification unit-at-a-time).
599         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
600         * c-pragma.c: Add FIXME for why function.h needs to be included just
601         for cfun, at front-end level.
602         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
603         Do not include ggc.h, but include vecprim.h for VEC(char).
604         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
605         Explain why target.h is included.
606         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
607         Explain why gimple.h is included.
608         * c-ppoutput.c: Do not include tm.h.
609         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
610         * c-parses.c: Explain why rtl.h is included, and that this (and only
611         this) is also why tm.h must be included.
612         Do not include except.h.
613         * c-lang.c: Do not include ggc.h.
614
615 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
616
617         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
618
619 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
620
621         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
622         unions by default if those structs and unions have no tags.  Do
623         not condition anonymous struct and unions handling on flag_iso.
624         Allow anonymous structs and unions for C1X.
625         (finish_struct): Do not diagnose lack of named fields when
626         anonymous structs and unions present for C1X.  Accept flexible
627         array members in structure with anonymous structs or unions but no
628         directly named fields.
629         * doc/extend.texi (Unnamed Fields): Update.
630
631 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
632
633         * gimple.h (compare_field_offset): Rename into...
634         (gimple_compare_field_offset): ...this.
635         * gimple.c (compare_field_offset): Rename into...
636         (gimple_compare_field_offset): ...this.  Compare the full access if
637         the offset is self-referential.
638         (gimple_types_compatible_p): Adjust for above renaming.
639         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
640         DECL_NONADDRESSABLE_P flag of fields before merging them.
641
642 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
643
644         * tree.h (ctor_to_list): Delete.
645         * tree.c (ctor_to_list): Delete.
646
647 2010-05-15  Jan Hubicka  <jh@suse.cz>
648
649         * ipa-reference.c: Include toplev.h
650         (is_proper_for_analysis): Only add to all_module_statics
651         if it is allocated.
652         (write_node_summary_p, stream_out_bitmap,
653         ipa_reference_write_optimization_summary,
654         ipa_reference_read_optimization_summary): New.
655         (struct ipa_opt_pass_d pass_ipa_reference): Add
656         optimization summary streaming.
657         * lto-cgraph.c (referenced_from_this_partition_p,
658         reachable_from_this_partition_p): New functions.
659         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
660         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
661         * opts.c (decode_options): Enable ipa_reference.
662         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
663         * lto-streamer.h (referenced_from_this_partition_p,
664         reachable_from_this_partition_p): Declare.
665
666 2010-05-15  Richard Guenther  <rguenther@suse.de>
667
668         PR tree-optimization/44038
669         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
670         taking the address of a V_C_E of a constant.
671
672 2010-05-14  Jan Hubicka  <jh@suse.cz>
673
674         * tree.h (memory_identifier_string): Remove.
675         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
676         (ipa_reference_global_vars_info_d): Remove statics_not_read and
677         statics_not_written.
678         (ipa_reference_optimization_summary_d): New structure.
679         (ipa_reference_optimization_summary_t): New type and vector.
680         (ipa_reference_vars_info_d): Embedd structures instead of using
681         pointers.
682         (reference_vars_to_consider): Remove out of GGC space.
683         (module_statics_escape): Remove.
684         (global_info_obstack): Rename to ...
685         (optimization_summary_obstack): ... this one.
686         (initialization_status_t): Remove.
687         (memory_identifier_string): Remove.
688         (get_reference_vars_info): Fix indenting.
689         (set_reference_vars_info): Likewise.
690         (get_reference_optimization_summary): New.
691         (set_reference_optimization_summary): New.
692         (get_global_reference_vars_info): Remove.
693         (ipa_reference_get_read_global): Remove.
694         (ipa_reference_get_written_global): Remove.
695         (ipa_reference_get_not_read_global): Update.
696         (ipa_reference_get_not_written_global): Update.
697         (is_proper_for_analysis): Outlaw addressable.
698         (propagate_bits): Update for new datastructures.
699         (analyze_variable): Remove.
700         (init_function_info): Update for new datastructures.
701         (clean_function_local_data): Remove.
702         (clean_function): Remove.
703         (copy_global_bitmap): Use optimizations_summary_obstack.
704         (duplicate_node_data): Duplicate optimization summary only.
705         (remove_node_data): Remove optimization summary only.
706         (generate_summary): Do not analyze variables; do not compute
707         module_statics_escape; do not prune solutions by it.
708         (read_write_all_from_decl): Fix typos in comments.
709         (propagate): Doscover readonly and nonaddressable first;
710         update for new datastructures; share global bitmaps.
711         * ipa-reference.h (ipa_reference_get_read_global,
712         ipa_reference_get_written_global): Remove.
713         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
714         * Makefile.in: Remove ipa-refereference from GT files.
715
716 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
717
718         PR debug/44112
719         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
720         for all SYMBOL_REF_DECLs.
721
722 2010-05-14  Jan Hubicka  <jh@suse.cz>
723
724         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
725         (varpool_all_refs_explicit_p): New inline function.
726         * ipa-reference.c: Update comment.
727         (module_statics_written): Remove.
728         (get_static_decl): Remove.
729         (ipa_init): Do not initialize module_statics_written.
730         (analyze_function): Likewise.
731         (generate_summary): Likewise; do not compute module_statics_readonly
732         and do not update variable flags.
733         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
734         * ipa.c: Inlucde flags.h
735         (cgraph_local_node_p): New.
736         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
737         promote functions to local.
738         (ipa_discover_readonly_nonaddressable_vars): New function.
739         (function_and_variable_visibility): Use cgraph_local_node_p.
740         * varpool.c (varpool_finalize_decl): Set force_output for
741         DECL_PRESERVE_P vars.
742
743 2010-05-14  Jan Hubicka  <jh@suse.cz>
744
745         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
746
747 2010-05-14  Richard Guenther  <rguenther@suse.de>
748
749         PR tree-optimization/44119
750         * tree-ssa-pre.c (eliminate): Properly mark replacement of
751         a PHI node necessary.
752
753 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
754
755         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
756
757 2010-05-14  Jason Merrill  <jason@redhat.com>
758
759         PR c++/44127
760         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
761         (gimple_call_set_nothrow): New.
762         * gimple.c (gimple_build_call_from_tree): Call it.
763         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
764
765         PR c++/44127
766         * gimplify.c (gimplify_seq_add_stmt): No longer static.
767         * gimple.h: Declare it.
768         * gimple.c (gimple_build_eh_filter): No ops.
769
770 2010-05-14  Jan Hubicka  <jh@suse.cz>
771
772         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
773         nodes already in queue.
774         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
775         re-enqueueing node.
776
777 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
778
779         PR debug/44136
780         * cfgexpand.c (expand_debug_expr): If non-memory op0
781         has BLKmode, return NULL.
782
783 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
784
785         * config.gcc: Add support for --with-cpu option for bdver1.
786         * config/i386/i386.h (TARGET_BDVER1): New macro.
787         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
788         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
789         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
790         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
791         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
792         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
793         (processor_type): Add PROCESSOR_BDVER1.
794         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
795         processor_type in config/i386/i386.h.
796         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
797         movaps <reg, reg> instead of movapd <reg, reg> when replacing
798         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
799         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
800         to emit packed xor instead of packed double/packed integer
801         xor for SSE and AVX when moving a zero value.
802         * config/i386/sse.md: Add check for
803         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
804         movapd/movdqa for SSE and AVX.
805         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
806         single logical operations i.e and, or and xor instead of packed double
807         logical operations for SSE and AVX.
808         * config/i386/i386-c.c (ix86_target_macros_internal):
809         Add PROCESSOR_BDVER1.
810         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
811         (has_fma4, has_xop): New.
812         * config/i386/i386.c (bdver1_cost): New variable.
813         (m_BDVER1): New macro.
814         (m_AMD_MULTIPLE): Add m_BDVER1.
815         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
816         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
817         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
818         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
819         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
820         x86_tune_sse_partial_reg_dependency,
821         x86_tune_sse_unaligned_load_optimal,
822         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
823         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
824         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
825         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
826         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
827         Enable/disable for bdver1.
828         (processor_target_table): Add bdver1_cost.
829         (cpu_names): Add bdver1.
830         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
831          processor_alias_table.
832         (ix86_expand_vector_move_misalign): Change.
833         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
834         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
835         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
836         of movupd/movdqu for SSE and AVX.
837         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
838         (ix86_tune_adjust_cost): Add code for bdver1.
839         (standard_sse_constant_opcode): Add check for
840         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
841         of packed double xor for SSE and AVX.
842
843 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
844
845         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
846         result to unsigned.
847
848 2010-05-14  Tristan Gingold  <gingold@adacore.com>
849
850         * toplev.c (default_debug_hooks): Remove this variable.
851         (process_options): Remove assignments to default_debug_hooks.
852
853 2010-05-14  Martin Jambor  <mjambor@suse.cz>
854
855         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
856         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
857         * langhooks.h (struct lang_hooks_for_decls): Removed field
858         fold_obj_type_ref.
859         * tree.c (free_lang_data): Remove assignment to
860         lang_hooks.fold_obj_type_ref.
861         * tree.def (OBJ_TYPE_REF): Update comment.
862
863 2010-05-14  Richard Guenther  <rguenther@suse.de>
864
865         PR tree-optimization/44124
866         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
867
868 2010-05-14  Alan Modra  <amodra@gmail.com>
869
870         PR target/44075
871         * config/rs6000/rs6000.c (struct machine_function): Reorder
872         fields for better packing.  Add lr_save_state.
873         (rs6000_ra_ever_killed): Return lr_save_state if set.
874         (rs6000_emit_eh_reg_restore): Set lr_save_state.
875
876 2010-05-13  Jan Hubicka  <jh@suse.cz>
877
878         * varpool.c (decide_is_variable_needed): Drop code checking
879         TREE_SYMBOL_REFERENCED.
880
881 2010-05-13  Jan Hubicka  <jh@suse.cz>
882
883         * final.c (output_addr_const): Do not call mark_decl_referenced.
884         * cgraphunit.c (process_function_and_variable_attributes): Use
885         mark_needed_node dirrectly.
886         (assemble_thunk): Do not call mark_decl_referenced.
887
888 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
889
890         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
891
892 2010-05-13  Jeff Law  <law@redhat.com>
893
894         * ira-conflicts.c (print_allocno_conflicts): New function broken out
895         from...
896         (print_conflicts): Call print_allocno_conflicts.
897
898 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
899
900         PR debug/44104
901         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
902         if it is NULL.
903
904 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
905
906         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
907         t-mingw-w64 or t-mingw-w32 for multilib configuration.
908         * config/i386/t-mingw-w32: New.
909         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
910
911 2010-05-13  Martin Jambor  <mjambor@suse.cz>
912
913         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
914         gimple-fold.c).
915         * gimple-fold.c (get_base_binfo_for_type): New function.
916         (gimple_get_relevant_ref_binfo): Likewise.
917         (gimple_fold_obj_type_ref_known_binfo): Likewise.
918         (gimple_fold_obj_type_ref): Likewise.
919         (fold_gimple_call): Simplify condition for folding virtual calls
920         and call gimple_fold_obj_type_ref.
921         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
922         (gimple_fold_obj_type_ref_known_binfo): Likewise.
923
924 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
925
926         * config/rs6000/rs6000-protos.h
927         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
928         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
929         (rs6000_debug_mode_dependent_address)
930         (rs6000_mode_dependent_address_ptr): Likewise.
931
932 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
933
934         PR debug/43983
935         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
936         by SRA.
937         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
938         * tree-sra.c (create_access_replacement): Call unshare_expr before
939         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
940         * dwarf2out.c: Include tree-flow.h.
941         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
942         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
943         Handle DW_OP_bit_piece.
944         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
945         construct_piece_list, adjust_piece_list): New functions.
946         (add_var_loc_to_decl): Handle SRA optimized variables.
947         Adjust for var_loc_note to loc field renaming.
948         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
949         in VAR_LOCATION note.
950         (new_loc_descr_op_bit_piece): New function.
951         (dw_sra_loc_expr): New function.
952         (dw_loc_list): Use it.  Don't handle the last range after the
953         loop, handle it inside of the loop.  Adjust for var_loc_note
954         to loc field renaming.
955         (add_location_or_const_value_attribute): Only special case
956         single entry loc lists if loc is NOTE_P.  Adjust for
957         var_loc_note to loc field renaming.
958         (dwarf2out_var_location): Don't set newloc->var_loc_note
959         and newloc->next here.
960
961 2010-05-12  Jan Hubicka  <jh@suse.cz>
962
963         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
964         flag.
965         * cgraph.h (cgraph_only_called_directly_p,
966         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
967         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
968         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
969         (assemble
970         * ipa.c (cgraph_remove_unreachable_nodes): Use
971         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
972         flags.
973         * tree-inline.c (copy_bb): Check address_taken flag.
974         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
975         externally_visible flag.
976
977 2010-05-12  Jason Merrill  <jason@redhat.com>
978
979         PR bootstrap/44048
980         PR target/44099
981         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
982         * sdbout.c (plain_type_1): Likewise.
983         * dwarf2out.c (is_base_type): Likewise.
984         (gen_type_die_with_usage): Likewise.  Generate
985         DW_TAG_unspecified_type for any LANG_TYPE.
986
987 2010-05-12  Jan Hubicka  <jh@suse.cz>
988
989         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
990         indrect edges too.
991         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
992         (cgraph_clone_edge): Update.
993         (cgraph_node_remove_callees): Remove indirect calls too.
994         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
995         (cgraph_create_indirect_edge): Update prototype.
996         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
997         is_proper_for_analysis.
998         (add_new_function, visited_nodes, function_insertion_hook_holder,
999         get_local_reference_vars_info, mark_address_taken, mark_address,
1000         mark_load, mark_store, check_asm_memory_clobber, check_call,
1001         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
1002         (ipa_init): Do not initialize visited_nodes;
1003         function_insertion_hook_holder.
1004         (analyze_variable): Rewrite.
1005         (analyze_function): Rewrite.
1006         (copy_local_bitmap): Remove.
1007         (duplicate_node_dat): Do not duplicate local info.
1008         (generate_summary): Simplify to only walk cgraph.
1009         (write_node_summary_p, ipa_reference_write_summary,
1010         ipa_reference_read_summary): Remove.
1011         (propagate): Do not remove function insertion;
1012         generate summary.
1013         (pass_ipa_reference): NULLify summary handling fields.
1014         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
1015         (input_edge): Input ecf_flags.
1016         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
1017         (update_indirect_edges_after_inlining): Ignore edges with unknown
1018         param.
1019
1020 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
1021
1022         * implicit-zee.c: New file.
1023         * tree-pass.h (pass_implicit_zee): Declare.
1024         * passes.c (init_optimization_passes): Add zee pass.
1025         * common.opt (fzee): New flag.
1026         * timevar.def (TV_ZEE): Define.
1027         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
1028         and beyond.
1029         * Makefile.in (implicit-zee.o): Add new build file.
1030
1031 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
1032             Nathan Froyd  <froydnj@codesourcery.com>
1033
1034         * c-common.c (sync_resolve_params): Remove write-only variable.
1035
1036 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
1037
1038         * target.h (struct gcc_target): Add mode_dependent_address_p field.
1039         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
1040         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
1041         * targhooks.c (default_mode_dependent_address_p): New function.
1042         * targhooks.h (default_mode_dependent_address_p): Declare function.
1043         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
1044         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
1045         * recog.c: (mode_dependent_address_p): Call mode_dependent_address_p
1046         target hook. Change return type to bool.
1047         * recog.h: (mode_dependent_address_p): Change return type to bool.
1048
1049 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
1050             Nathan Froyd  <froydnj@codesourcery.com>
1051
1052         * tree-mudflap.c (build_function_type_0, build_function_type_1,
1053         build_function_type_2, build_function_type_3): Remove.
1054         (mudflap_init): Use build_function_type_list.
1055
1056 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
1057             Nathan Froyd  <froydnj@codesourcery.com>
1058
1059         * coverage.c (build_fn_info_value): Call build_constructor instead of
1060         build_constructor_from_list.
1061         (build_ctr_info_value): Likewise.
1062         (build_gcov_info): Likewise.
1063
1064 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
1065
1066         * tree.c (build_constructor): Compute TREE_CONSTANT for the
1067         resultant constructor.
1068         (build_constructor_single): Don't set TREE_CONSTANT.
1069         (build_constructor_from_list): Don't compute TREE_CONSTANT.
1070
1071 2010-05-12  Jan Hubicka  <jh@suse.cz>
1072
1073         * cgraph.h (struct varpool_node): Add aux.
1074         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
1075         * varpool.c (varpool_remove_node): Do not remove initializer.
1076         (varpool_reset_queue): Export.
1077         (varpool_finalize_decl): Volatile vars are forced to be output.
1078         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
1079         replaced decl.
1080         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
1081         process_references, varpool_can_remove_if_no_refs): New functions.
1082         (cgraph_remove_unreachable_nodes): Handle variables too.
1083
1084 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
1085
1086         PR target/44088
1087         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
1088
1089 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
1090
1091         PR middle-end/44085
1092         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
1093         change value of ORT_TASK.
1094         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
1095         (omp_notice_threadprivate_variable): New function.
1096         (omp_notice_variable): Call it for threadprivate variables.
1097         If enclosing ctx is a task, print enclosing task rather than
1098         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
1099         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
1100         if task has untied clause.
1101
1102         PR debug/42278
1103         * dwarf2out.c (base_type_die): Don't add name attribute here.
1104         (modified_type_die): Instead of sizetype use
1105         its underlying original type.  If a DW_TAG_base_type doesn't
1106         have name added, add __unknown__.
1107         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
1108         always call force_type_die instead.
1109
1110 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
1111
1112         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
1113         for __stack_chk_guard.
1114
1115 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
1116
1117         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
1118         don't call start_source_file debug hook here...
1119         (finish_options): ... but here, after outputting predefined and
1120         command line defines and undefs.
1121
1122         PR middle-end/44071
1123         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
1124         no fallthru edge.
1125         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
1126         optimizing away empty bb with no successors, move over its
1127         footer chain to fallthru predecessor.
1128         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
1129         (rtl_split_edge): For asm goto call patch_jump_insn even if
1130         splitting fallthru edge.
1131
1132         PR c++/44059
1133         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
1134         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
1135         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
1136         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
1137         on DW.ref.* decls.
1138
1139         PR c++/44062
1140         * c-parser.c (c_parser_expression): Mark LHS of a comma
1141         expression as read if it is a decl, handled component or
1142         COMPOUND_EXPR with that on the RHS.
1143         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
1144         if it is a decl or handled component.
1145
1146 2010-05-11  Jan Hubicka  <jh@suse.cz>
1147
1148         * lto-symtab.c (lto_symtab_free): New function.
1149         * lto-streamer.h (lto_symtab_free): Declare.
1150
1151 2010-05-11  Jan Hubicka  <jh@suse.cz>
1152
1153         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
1154         that if function is needed it is reachable.
1155         (lto_output_node): See if it the function is reachable or referenced.
1156         (output_cgraph): Update call of lto_output_node.
1157         * lto-streamer.h (reachable_from_other_partition_p): Declare.
1158
1159 2010-05-11  Jan Hubicka  <jh@suse.cz>
1160
1161         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
1162         Mark as used.
1163
1164 2010-05-11  Jan Hubicka  <jh@suse.cz>
1165
1166         PR tree-optimize/44063
1167         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
1168         queue.
1169         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
1170         limits.
1171         (estimate_function_body_sizes): Compute sizes even when disregarding.
1172
1173 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
1174
1175         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
1176
1177 2010-05-11  Jan Hubicka  <jh@suse.cz>
1178
1179         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
1180         into every boundary.
1181
1182 2010-05-11  Jan Hubicka  <jh@suse.cz>
1183
1184         * matrix-reorg.c (matrix_reorg): Rebuild edges.
1185
1186 2010-05-11  Jan Hubicka  <jh@suse.cz>
1187
1188         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
1189         lto_streamer_cache_delete): Put nodes into heap.
1190         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
1191         heap.
1192
1193 2010-05-11  Jan Hubicka  <jh@suse.cz>
1194
1195         * cgraphbuild.c (cgraph_rebuild_references): New.
1196         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
1197         out extern inlines.
1198         * cgraph.h (cgraph_rebuild_references): Declare.
1199         * tree-inline.c (tree_function_versioning): Use it.
1200         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
1201
1202 2010-05-11  Jan Hubicka  <jh@suse.cz>
1203
1204         * cgraph.c: Include ipa-utils.h
1205         (cgraph_create_virtual_clone): Update references.
1206         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
1207
1208 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
1209
1210         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
1211         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
1212         cache size.
1213
1214 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
1215
1216         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
1217
1218 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
1219
1220         * gcc.c (execute): For -### don't quote arguments that
1221         contain just alphanumerics and _/-. characters.
1222         * doc/invoke.texi: Document that change for -###.
1223
1224         PR debug/44023
1225         * df-problems.c (struct dead_debug): Add to_rescan field.
1226         (dead_debug_init): Clear to_rescan field.
1227         (dead_debug_finish): Rescan all debug insns in to_rescan
1228         bitmap and free the bitmap.
1229         (dead_debug_insert_before): Instead of rescanning debug insns
1230         immediately queue their rescanning until dead_debug_finish.
1231         (df_note_bb_compute): After dead_debug_add do continue instead
1232         of break.
1233
1234 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
1235
1236         PR debug/44028
1237         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
1238         clear also INSN_REG_USE_LIST.
1239
1240 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1241
1242         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
1243
1244 2010-05-10  Jan Hubicka  <jh@suse.cz>
1245
1246         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
1247         commited change.
1248
1249 2010-05-10  Jan Hubicka  <jh@suse.cz>
1250
1251         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
1252         Allocate encoders.
1253         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
1254         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
1255         (lto_streamer_cache_create): Init alloc pool.
1256         (lto_streamer_cache_delete): Free alloc pool.
1257         * lto-streamer.h: Include alloc pool.
1258         (lto_streamer_cache_d): Use alloc pool.
1259         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
1260
1261 2010-05-10  Jan Hubicka  <jh@suse.cz>
1262
1263         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
1264         * cgraphbuild.c: Include except.h
1265         (record_type_list, record_eh_tables): New function.
1266         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
1267
1268 2010-05-10  Jan Hubicka  <jh@suse.cz>
1269
1270         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
1271         __frame_dummy_init_array_entry, force_to_data): Attribute as used
1272         rather than unused.
1273
1274 2010-05-10  Michael Matz  <matz@suse.de>
1275
1276         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
1277         (can_reassociate_p): Use FLOAT_TYPE_P.
1278         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
1279         (vect_force_simple_reduction): ... this.
1280         * tree-parloops.c (gather_scalar_reductions): Use
1281         vect_force_simple_reduction.
1282         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
1283         vect_is_simple_reduction, add modify argument, if true rewrite
1284         "a-b" into "a+(-b)".
1285         (vect_is_simple_reduction, vect_force_simple_reduction): New
1286         functions.
1287         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
1288
1289 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1290             Vladimir Makarov  <vmakarov@redhat.com>
1291
1292         PR rtl-optimization/44012
1293         * ira-build.c (remove_unnecessary_allocnos): Nullify
1294         regno_allocno_map of the removed allocno.
1295
1296 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1297
1298         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
1299         to /dev/null.
1300         * configure: Regenerate.
1301
1302 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1303
1304         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
1305         unused.
1306         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
1307         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
1308         support in Sun ld.
1309         * configure: Regenerate.
1310
1311 2010-05-10  Richard Guenther  <rguenther@suse.de>
1312
1313         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
1314         marked if the entry identifier is marked.
1315
1316 2010-05-10  Richard Guenther  <rguenther@suse.de>
1317
1318         * c-common.c (struct c_common_attributes): Add fnspec attribute.
1319         (handle_fnspec_attribute): New function.
1320         * gimple.h (gimple_call_return_flags): Declare.
1321         (gimple_call_arg_flags): Likewise.
1322         * gimple.c (gimple_call_arg_flags): New function.
1323         (gimple_call_return_flags): Likewise.
1324         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
1325         New argument flags.
1326         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
1327         return value flags.
1328         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
1329         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
1330         main work to ...
1331         (make_heapvar_for): ... this new function.
1332         (handle_rhs_call): Handle fnspec attribute argument specifiers.
1333         (handle_lhs_call): Likewise.
1334         (find_func_aliases): Adjust.
1335
1336 2010-05-10  Richard Guenther  <rguenther@suse.de>
1337
1338         PR tree-optimization/44050
1339         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
1340
1341 2010-05-10  Wei Guozhi  <carrot@google.com>
1342
1343         PR target/42879
1344         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
1345
1346 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
1347
1348         PR c/10676
1349         * c-typeck.c (lookup_field): Take a type directly.  Update
1350         recursive calls.
1351         (build_component_ref): Update call to lookup_field.
1352         (set_init_label): Use lookup_field to find initialized field.
1353         Handle returned list of fields like a sequence of designators.
1354
1355 2010-05-09  Richard Guenther  <rguenther@suse.de>
1356
1357         PR middle-end/44024
1358         * fold-const.c (tree_single_nonzero_warnv_p): Properly
1359         handle &FUNCTION_DECL.
1360
1361 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
1362
1363         PR c/4784
1364         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
1365         structures and unions recursively.
1366         (detect_field_duplicates): Move duplicate detection with a hash to
1367         detect_field_duplicates_hash.  Always use a hash if anonymous
1368         structures or unions are present.
1369         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
1370         give errors.
1371
1372 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
1373
1374         PR target/44046
1375         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
1376         detect Atom, Core 2 and Core i7.
1377
1378 2010-05-09  Richard Guenther  <rguenther@suse.de>
1379
1380         * gcc.c (store_arg): Handle temporary file deletion for
1381         joined arguments.
1382
1383 2010-05-09  Richard Guenther  <rguenther@suse.de>
1384
1385         PR middle-end/44043
1386         * ipa-inline.c (estimate_function_body_sizes): Return after
1387         disregarding inline limits.
1388
1389 2010-05-09  Richard Guenther  <rguenther@suse.de>
1390
1391         * gcc.c (store_arg): Revert last change.
1392
1393 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
1394
1395         PR middle-end/28685
1396         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
1397         (optimize_ops_list): Call it.
1398
1399 2010-05-08  Richard Guenther  <rguenther@suse.de>
1400
1401         PR tree-optimization/44030
1402         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
1403         NECESSARY flag if we propagate from a inserted expression.
1404
1405 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
1406
1407         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
1408         domain types as equal if they are both PLACEHOLDER_EXPRs.
1409
1410 2010-05-08  Richard Guenther  <rguenther@suse.de>
1411
1412         * lto-wrapper.c (run_gcc): Remove linker output from
1413         command line for LTRANS invocation.
1414
1415 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
1416
1417         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1418         lto-macho as lto_binary_reader.
1419         * target.h (struct gcc_target): New hooks lto_start and lto_end.
1420         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
1421         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
1422         in lto_start and lto_end calls.
1423         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
1424         magic numbers.
1425         (scan_prog_file): Update is_elf_or_coff call.
1426         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
1427
1428         * collect2.c (main): Fix enum comparison.
1429
1430         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
1431         Add prototypes.
1432         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
1433         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
1434         and TARGET_ASM_LTO_END.
1435         * darwin.c: Include obstack.h and lto-streamer.h.
1436         (lto_section_names_offset, lto_section_names_obstack,
1437         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
1438         global variables.
1439         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
1440         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
1441         to a temporary file.
1442         (darwin_asm_lto_end): New function.  Restore asm_out_file.
1443         (darwin_asm_named_section): For LTO sections, replace the name with
1444         the offset of the section name in a string table, and build this
1445         table.
1446         (darwin_file_start): Initialize global vars for LTO support.
1447         (darwin_file_end): If output to asm_out_file was redirected, append it
1448         to the proper asm_out_file here.  Add the section names section.
1449
1450 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
1451
1452         * c-pragma.c (pending_weak_d, pending_weak): New.
1453         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
1454         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
1455         handle_pragma_weak): Update the uses of pending_weaks.
1456
1457 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1458
1459         PR documentation/44016
1460         * doc/standards.texi (Standards): Link to unversioned
1461         cxx0x_status.html page.
1462
1463 2010-05-07  Iain Sandoe <iains@gcc.gnu.org>
1464
1465         PR target/43708
1466         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
1467         in addition to TREE_USED, to avoid "set but unused" warnings.
1468
1469 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
1470
1471         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
1472         (is_loop_prefetching_profitable): Do not insert prefetches
1473         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
1474         times the prefetch ahead distance.
1475
1476 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
1477
1478         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
1479         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
1480         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
1481         the unroll_factor.
1482
1483 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
1484
1485         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
1486         a diagnostic info when the insn-to-mem ratio is too small.
1487
1488 2010-05-07  Richard Guenther <rguenther@suse.de>
1489
1490         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
1491         the linker plugin.
1492         (store_arg): Queue temp_filename for deletion instead of
1493         the whole argument.
1494
1495 2010-05-07  Richard Guenther  <rguenther@suse.de>
1496
1497         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
1498         (run_gcc): Handle LTRANS phase invocation.
1499         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
1500
1501 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
1502
1503         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
1504         this is also meaningful on PARM_DECLs and RESULT_DECLs.
1505
1506 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1507
1508         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
1509
1510 2010-05-07  Richard Guenther  <rguenther@suse.de>
1511
1512         PR tree-optimization/44020
1513         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
1514         code when PRE is not yet initialized.
1515
1516 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1517
1518         * config/mips/dbxmdebug.h: Remove.
1519         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
1520
1521 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
1522
1523         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
1524         with null pointer and also warn about ordered comparison of zero with
1525         pointer if -Wextra.
1526
1527 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1528
1529         * graphite-blocking.c
1530         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
1531         * graphite-clast-to-gimple.c
1532         (clast_to_gcc_expression): Same.
1533         (precision_for_value): Same.
1534         (precision_for_interval): Same.
1535         (gcc_type_for_interval): Same.
1536         (graphite_create_new_guard): Same.
1537         (compute_bounds_for_level): Same.
1538         (graphite_create_new_loop_guard): Same.
1539         * graphite-interchange.c
1540         (build_linearized_memory_access): Same.
1541         (pdr_stride_in_loop): Same.
1542         (memory_strides_in_loop_1): Same.
1543         (memory_strides_in_loop): Same.
1544         (extend_scattering): Same.
1545         (psct_scattering_dim_for_loop_depth): Same.
1546         (pbb_number_of_iterations): Same.
1547         * graphite-poly.h
1548         (debug_iteration_domains): Same.
1549         * graphite-ppl.c
1550         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1551         (ppl_set_inhomogeneous_gmp): Same.
1552         (ppl_strip_loop): Same.
1553         (ppl_lexico_compare_linear_expressions): Same.
1554         (ppl_read_polyhedron_matrix): Same.
1555         (ppl_max_for_le_pointset): Same.
1556         * graphite-ppl.h
1557         (ppl_read_polyhedron_matrix): Same.
1558         (tree_int_to_gmp): Same.
1559         (gmp_cst_to_tree): Same.
1560         (ppl_set_inhomogeneous): Same.
1561         (ppl_set_inhomogeneous_tree): Same.
1562         (ppl_set_coef): Same.
1563         (ppl_set_coef_tree): Same.
1564         * graphite-sese-to-poly.c
1565         (build_pbb_scattering_polyhedrons): Same.
1566         (build_scop_scattering): Same.
1567         (scan_tree_for_params_right_scev): Same.
1568         (scan_tree_for_params): Same.
1569         (find_params_in_bb): Same.
1570         (find_scop_parameters): Same.
1571         (add_upper_bounds_from_estimated_nit): Same.
1572         (build_loop_iteration_domains): Same.
1573         (add_condition_to_domain): Same.
1574         (pdr_add_memory_accesses): Same.
1575
1576 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1577
1578         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
1579         CLooG's value_* macros to their respective mpz_* counterparts.
1580         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
1581         (graphite_create_new_loop_guard): Same.
1582         * graphite-interchange.c (build_linearized_memory_access): Same.
1583         (pdr_stride_in_loop): Same.
1584         (memory_strides_in_loop_1): Same.
1585         (1st_interchange_profitable_p): Same.
1586         * graphite-poly.c (extend_scattering): Same.
1587         (psct_scattering_dim_for_loop_depth): Same.
1588         (pbb_number_of_iterations): Same.
1589         (pbb_number_of_iterations_at_time): Same.
1590         * graphite-poly.h (new_1st_loop): Same.
1591         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
1592         (oppose_constraint): Same.
1593         (insert_constraint_into_matrix): Same.
1594         (ppl_set_inhomogeneous_gmp): Same.
1595         (ppl_set_coef_gmp): Same.
1596         (ppl_strip_loop): Same.
1597         (ppl_lexico_compare_linear_expressions): Same.
1598         (ppl_max_for_le_pointset): Same.
1599         (ppl_min_for_le_pointset): Same.
1600         (ppl_build_realtion): Same.
1601         * graphite-ppl.h (gmp_cst_to_tree): Same.
1602         (ppl_set_inhomogeneous): Same.
1603         (ppl_set_inhomogeneous_tree): Same.
1604         (ppl_set_coef): Same.
1605         (ppl_set_coef_tree): Same.
1606         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
1607         (build_scop_scattering): Same.
1608         (add_value_to_dim): Same.
1609         (scan_tree_for_params_right_scev): Same.
1610         (scan_tree_for_params_int): Same.
1611         (scan_tree_for_params): Same.
1612         (find_params_in_bb): Same.
1613         (find_scop_parameters): Same.
1614         (add_upper_bounds_from_estimated_nit): Same.
1615         (build_loop_iteration_domains): Same.
1616         (create_linear_expr_from_tree): Same.
1617         (add_condition_to_domain): Same.
1618         (pdr_add_memory_accesses): Same.
1619
1620 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
1621             Jason Merrill  <jason@redhat.com>
1622
1623         * c-common.c (c_common_reswords): Add nullptr.
1624         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
1625         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
1626         (gen_type_die_with_usage): Likewise.
1627         * dbxout.c (dbxout_type): Likewise.
1628         * sdbout.c (plain_type_1): Likewise.
1629
1630 2010-05-06  Jason Merrill  <jason@redhat.com>
1631
1632         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
1633         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
1634         ret appropriately.
1635         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
1636
1637         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
1638         stripping WITH_SIZE_EXPR.
1639         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
1640         change.
1641
1642 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1643
1644         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
1645         list of obsolete configurations.
1646         Disabled check for obsolete configurations.
1647         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
1648         Removed support for previous versions.
1649         * config/mips/iris.h: Removed.
1650         * config/mips/iris5.h: Removed.
1651         * config/mips/iris6.h: Merged old iris.h contents.
1652         (TARGET_IRIX): Removed.
1653         (DRIVER_SELF_SPECS): Removed mabi=32.
1654         (IDENT_ASM_OP): Removed undef.
1655         (STARTFILE_SPEC): Removed mabi=32.
1656         (ENDFILE_SPEC): Likewise.
1657         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
1658         (MACHINE_TYPE): Update for IRIX 6.5.
1659         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
1660         TARGET_IRIX by TARGET_IRIX6.
1661         (mips_file_start): Likewise.
1662         (mips_output_external): Remove IRIX 5/6 O32 support.
1663         (mips_output_function_prologue): Likewise.
1664         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
1665         TARGET_IRIX6.
1666         (TARGET_CPU_CPP_BUILTINS): Likewise.
1667         (TARGET_IRIX): Removed.
1668         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
1669         (MULTILIB_DIRNAMES): Removed 32.
1670         (MULTILIB_OSDIRNAMES): Removed ../lib.
1671         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
1672         (Specific, mips-sgi-irix5): Document removal.
1673         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
1674         Remove references to older IRIX 6 releases and the O32 ABI.
1675
1676 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
1677
1678         PR bootstrap/43994
1679         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
1680         instead of DF_REF_REAL_REG.
1681
1682 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
1683
1684         PR target/43888
1685         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
1686         handling to still return true for x64 targets.
1687
1688 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
1689
1690         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
1691
1692 2010-05-06  Jan Hubicka  <jh@suse.cz>
1693
1694         PR tree-optimization/43791
1695         * ipa-inline.c (update_caller_keys): Remove bogus
1696         disregard_inline_limits check.
1697
1698 2010-05-06  Michael Matz  <matz@suse.de>
1699
1700         PR tree-optimization/43984
1701         * tree-ssa-pre.c (inserted_phi_names): Remove.
1702         (inserted_exprs): Change to bitmap.
1703         (create_expression_by_pieces): Set bits, don't append to vector.
1704         (insert_into_preds_of_block): Don't handle inserted_phi_names.
1705         (eliminate): Don't look at inserted_phi_names, remove deleted
1706         insns from inserted_exprs.
1707         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
1708         (init_pre, fini_pre): Allocate and free bitmaps.
1709         (execute_pre): Insert insns on edges before elimination.
1710
1711 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
1712
1713         * tree.c (initializer_zerop): Handle STRING_CST.
1714
1715 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1716
1717         PR 40989
1718         * doc/invoke.texi (Wimplicit): Document as C only.
1719         * opts.c (common_handle_option): Add argument kind.
1720         (handle_option): Rename as read_cmdline_option. Factor out code to...
1721         (handle_option): ... here. New.
1722         (handle_options): Rename as read_cmdline_options.
1723         (decode_options): Update call.
1724         (set_option): Use option index instead of option pointer. Classify
1725         diagnostics correctly.
1726         (enable_warning_as_error): Call handle_option.
1727         * opts.h (set_option): Update declaration.
1728         (handle_option): Declare.
1729         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
1730         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
1731         * c-opts.c (set_Wimplicit): Delete.
1732         (c_family_lang_mask): New static constant.
1733         (c_common_handle_option): Add argument kind. Use handle_option
1734         instead of set_Wimplicit.
1735         (c_common_post_options): warn_implicit and warn_implicit_int
1736         are disabled by default.
1737         * c-common.c (warn_implicit): Do not define here.
1738         * c-common.h (warn_implicit): Do not declare here.
1739         (c_common_handle_option): Update declaration.
1740         * lto-opts.c (lto_reissue_options): Update call to set_option.
1741
1742 2010-05-06  Richard Guenther  <rguenther@suse.de>
1743
1744         PR tree-optimization/43571
1745         * domwalk.c (walk_dominator_tree): Walk the dominator
1746         sons in more optimal order.
1747
1748 2010-05-06  Richard Guenther  <rguenther@suse.de>
1749
1750         PR tree-optimization/43934
1751         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
1752         (stmt_cost): Likewise.
1753         (extract_true_false_args_from_phi): New helper.
1754         (determine_max_movement): For PHI nodes verify we can hoist them
1755         and compute their cost.
1756         (determine_invariantness_stmt): Handle PHI nodes.
1757         (move_computations_stmt): Likewise.  Hoist PHI nodes in
1758         if-converted form using COND_EXPRs.
1759         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
1760         (tree_ssa_lim): Likewise.
1761         * tree-flow.h (tree_ssa_lim): Adjust prototype.
1762         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
1763
1764 2010-05-06  Richard Guenther  <rguenther@suse.de>
1765
1766         PR tree-optimization/43987
1767         * tree-ssa-structalias.c (could_have_pointers): For possibly
1768         address-taken variables force pointers to be recorded.
1769         (create_variable_info_for_1): Likewise.
1770         (push_fields_onto_fieldstack): Pass in wheter all fields
1771         must have pointers.
1772         (find_func_aliases): Query types instead of vars whether
1773         they contain pointers where appropriate.
1774
1775 2010-05-06  Jan Hubicka  <jh@suse.cz>
1776
1777         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
1778         (record_reference, mark_address, mark_load, mark_store): Record
1779         references.
1780         (record_references_in_initializer): Update call of record_references.
1781         (rebuild_cgraph_edges): Remove all references before rebuiding.
1782         * cgraph.c (cgraph_create_node): Clear ref list.
1783         (cgraph_remove_node): Remove references.
1784         (dump_cgraph_node): Dump references.
1785         (cgraph_clone_node): Clone references.
1786         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
1787         (struct cgraph_node, varpool_node): Add ref_lst.
1788         * ipa-ref.c: New file.
1789         * ipa-ref.h: New file.
1790         * ipa-ref-inline.h: New file.
1791         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
1792         (referenced_from_other_partition_p): New function.
1793         (lto_output_varpool_node): Take set arugment; call
1794         referenced_from_other_partition.
1795         (lto_output_ref): New.
1796         (add_references): New.
1797         (output_refs): New.
1798         (output_cgraph): Compute boundary based on references; output refs.
1799         (output_varpool): Accept cgraph_node_set argument.
1800         (input_ref): New.
1801         (input_refs): New.
1802         (input_cgraph): Call input_refs.
1803         * lto-section-in.c (lto_section_name): Add refs.
1804         * Makefile.in: (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
1805         (ipa-ref.o): New file.
1806         * varpool.c (varpool_node): Clear ipa ref list.
1807         (varpool_remove_node): Remove references.
1808         (dump_varpool_node): Dump references.
1809         (varpool_assemble_decl): Only compile finalized ones.
1810         (varpool_extra_name_alias): Initialize ref list.
1811         * lto-streamer.c (lto-get_section_name): Add .refs section.
1812         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
1813         (referenced_from_other_partition_p): Declared.
1814
1815 2010-05-06  Ira Rosen  <irar@il.ibm.com>
1816
1817         PR tree-optimization/43901
1818         * tree-vect-stmts.c (vectorizable_call): Assert that vector
1819         type is not NULL if it's transformation phase, and return
1820         FALSE if it's analysis.
1821         (vectorizable_conversion, vectorizable_operation,
1822         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
1823
1824 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
1825
1826         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
1827         Delete.
1828         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
1829         New define.
1830         * config/mips/mips-protos.h
1831         (mips_small_register_classes_for_mode_p): Delete prototype.
1832
1833 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
1834
1835         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
1836         * config/arm/arm.c (multiple_operation_profitable_p,
1837         compute_offset_order): New static functions.
1838         (load_multiple_sequence, store_multiple_sequence): Use them.
1839         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
1840         memory offsets, not register numbers.
1841         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
1842
1843 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
1844
1845         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
1846         (get_pending_sizes, put_pending_size, put_pending_sizes):
1847         Update the uses of pending_sizes.
1848         * c-decl.c (store_parm_decls): Likewise.
1849         * c-tree.h (struct c_arg_info): Likewise.
1850         * tree.h: Update the prototype for get_pending_sizes and
1851         put_pending_sizes.
1852
1853 2010-05-05  Jason Merrill  <jason@redhat.com>
1854
1855         PR debug/43370
1856         * c-common.c (handle_aligned_attribute): Respect
1857         ATTR_FLAG_TYPE_IN_PLACE.
1858
1859         PR testsuite/43758
1860         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
1861         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
1862         (TARGET_INITIALIZER): Use it.
1863         * c-common.c (attribute_takes_identifier_p): Call it.
1864         * c-common.h: Update prototype.
1865         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
1866         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
1867
1868 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
1869
1870         PR debug/43950
1871         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
1872         DW_ID_down_case for Fortran compilation units.
1873
1874 2010-05-05  Jan Hubicka  <jh@suse.cz>
1875
1876         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
1877         handle aliases.
1878
1879 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
1880
1881         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
1882         a variable-sized RESULT_DECL.
1883
1884 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
1885
1886         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
1887
1888 2010-05-05  Jason Merrill  <jason@redhat.com>
1889
1890         PR c++/43787
1891         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
1892         returns GS_OK.
1893         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
1894
1895 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
1896             Jakub Jelinek  <jakub@redhat.com>
1897
1898         PR debug/43478
1899         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
1900         (dead_debug_init, dead_debug_finish): New functions.
1901         (dead_debug_add, dead_debug_insert_before): Likewise.
1902         (df_note_bb_compute): Initialize a dead_debug object, add dead
1903         debug uses to it, insert debug bind insns before death insns,
1904         reset debug insns that refer to pending uses at the end.
1905         * rtl.h (make_debug_expr_from_rtl): New prototype.
1906         * varasm.c (make_debug_expr_from_rtl): New function.
1907
1908 2010-05-05  Jan Hubicka  <jh@suse.cz>
1909
1910         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
1911         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
1912         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
1913         lto_varpool_encoder_deref, lto_varpool_encoder_size,
1914         lto_varpool_encoder_encode_initializer_p,
1915         lto_set_varpool_encoder_encode_initializer): New functions.
1916         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
1917         call output_varpool.
1918         (input_varpool_node): Do not always set analyzed.
1919         (input_cgraph_1): Return vector of cgraph nodes.
1920         (input_varpool_1): Return vector of varpools.
1921         (input_cgraph): Free the vectors.
1922         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
1923         output only initializers needed.
1924         (lto_output): Only call output_cgraph.
1925         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
1926         * lto-section-out.c (lto_new_out_decl_state): Initialize
1927         state->varpool_node_encoder.
1928         * lto-streamer.h (lto_varpool_encoder_d): New.
1929         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
1930         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
1931         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
1932         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
1933         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
1934         Declare.
1935         (output_varpool, input_varpool): Remove declarations.
1936
1937 2010-05-05  Jan Hubicka  <jh@suse.cz>
1938
1939         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
1940         with body can prevail.
1941
1942 2010-05-05  Jan Hubicka  <jh@suse.cz>
1943
1944         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
1945         size.
1946
1947 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1948
1949         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
1950
1951         * gengtype.h (erro_at_line): Constify pos argument.
1952
1953         * gengtype.c: Include hashtab.h.
1954         (enum gc_used): Document GC_MAYBE_POINTED_TO.
1955         (error_at_line): Constify pos argument.
1956         (do_typedef): Initialize p->opt field.
1957         (get_file_gtfilename): Fix comment typo.
1958         (struct walk_type_data): Constify line field.
1959         (get_output_file_for_structure): New function.
1960         (write_local_func_for_structure): Constify orig_s argument.
1961         Use get_output_file_for_structure.
1962         (write_func_for_structure): Use get_output_file_for_structure.
1963         (INDENT): New define.
1964         (dump_pair, dump_type, dump_type_list, dump_typekind)
1965         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
1966         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
1967         functions.
1968         (seen_types): New variable.
1969         (main): New variable do_dump.  Process "-d" command line option.
1970         Call dump_everything if dump requested.
1971
1972 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
1973
1974         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
1975         in a temporary instead of invoking the macro multiple times.
1976         (track_expr_p): Likewise.
1977
1978 2010-05-04  Neil Vachharajani <nvachhar@google.com>
1979
1980         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
1981         per new semantics.
1982         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
1983         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
1984         conditions for printing notes.
1985         * common.opt (-Wcoverage-mismatch): Allow negative, default to
1986         true, update documentation.
1987         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
1988
1989 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
1990
1991         PR c/43981
1992         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
1993         on dimen.
1994
1995 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
1996
1997         PR target/43799
1998         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
1999         (*sse_prologue_save_insn1): Likewise.
2000         (SSE prologue save splitter): Likewise.
2001
2002 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
2003
2004         * tree.c (free_lang_data_in_one_sizepos): New inline function.
2005         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
2006         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
2007         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
2008         all decls.  Call it on DECL_FIELD_OFFSET of fields.
2009         (find_decls_types_r): Follow DECL_VALUE_EXPR.
2010         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
2011
2012 2010-05-04  Martin Jambor  <mjambor@suse.cz>
2013
2014         * tree-sra.c (build_access_from_expr_1): The first parameter type
2015         changed to simple tree.
2016         (build_access_from_expr): Likewise, gsi parameter was eliminated.
2017         (scan_assign_result): Renamed to assignment_mod_result, enum elements
2018         renamed as well.
2019         (build_accesses_from_assign): Removed all parameters except for a
2020         simple gimple statement.  Now returns a simple bool.
2021         (scan_function): All non-analysis parts moved to separate functions
2022         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
2023         parameters and updated both callers.
2024         (sra_modify_expr): Removed parameter data.
2025         (sra_modify_function_body): New function.
2026         (perform_intra_sra): Call sra_modify_function_body to modify the
2027         function body.
2028         (replace_removed_params_ssa_names): Parameter data changed into
2029         adjustments vector.
2030         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
2031         changed the parameter dont_convert to convert with the opposite
2032         meaning.
2033         (sra_ipa_modify_assign): Parameter data changed into adjustments
2034         vector, return value changed to bool.
2035         (ipa_sra_modify_function_body): New function.
2036         (sra_ipa_reset_debug_stmts): Updated a comment.
2037         (modify_function): Use ipa_sra_modify_function_body to modify function
2038         body.
2039
2040 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
2041
2042         PR middle-end/43671
2043         * alias.c (true_dependence): Handle the same VALUE in x and mem.
2044         (canon_true_dependence): Likewise.
2045         (write_dependence_p): Likewise.
2046
2047 2010-05-04  Jan Hubicka  <jh@suse.cz>
2048
2049         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
2050         * cgraphbuild.c: Include ipa-utils.h
2051         (record_reference_ctx): New struct.
2052         (record_reference): Simplify to work on initializers; not statements.
2053         (mark_address, mark_load, mark_store): New.
2054         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
2055         walk PHI nodes too.
2056         (record_references_in_initializer): Update use of record_reference.
2057         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
2058         walk PHI nodes too.
2059
2060 2010-05-04  Jan Hubicka  <jh@suse.cz>
2061
2062         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
2063         node will be removed anyway.
2064         (lto_varpool_replace_node): Allow also unanalyzed nodes;
2065         relink aliases of node into prevailing node.
2066         * varpool.c (varpool_remove_node): Remove aliases properly;
2067         when removing node, remove all its aliases too; remove DECL_INITIAL
2068         of removed node; ggc_free the varpool node.
2069
2070 2010-05-04  Richard Guenther  <rguenther@suse.de>
2071
2072         PR tree-optimization/43879
2073         * tree-ssa-structalias.c (alias_get_name): Use
2074         DECL_ASSEMBLER_NAME if available.
2075         (create_function_info_for): Return the varinfo node.
2076         (ipa_pta_execute): Associate same-body aliases and extra names
2077         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
2078
2079 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
2080
2081         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
2082
2083 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
2084
2085         PR bootstrap/43964
2086         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
2087         only if HONOR_REG_ALLOC_ORDER is not defined.
2088
2089 2010-05-04  Richard Guenther  <rguenther@suse.de>
2090
2091         PR tree-optimization/43949
2092         * tree-vrp.c (extract_range_from_binary_expr): Only handle
2093         TRUNC_MOD_EXPR.
2094
2095 2010-04-26  Jason Merrill  <jason@redhat.com>
2096
2097         * c.opt (-fstrict-enums): New.
2098         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
2099
2100 2010-05-03  David Ung <davidu@mips.com>
2101             James E. Wilson  <wilson@codesourcery.com>
2102
2103         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
2104         emit the trap instruction before the divide for TUNE_74K.
2105
2106 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
2107
2108         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
2109         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
2110         based on the above, for new target hook.
2111
2112         * hooks.c (hook_bool_mode_true): New generic hook.
2113         * hooks.h (hook_bool_mode_true): Add prototype.
2114
2115         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
2116         target hook.
2117         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
2118         target hook, set to hook_bool_mode_false.
2119         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
2120         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
2121         with targetm.small_register_classes_for_mode_p.
2122         (find_reusable_reload): Likewise.
2123         (combine_reloads): Likewise.
2124         * reload1.c (reload_as_needed): Likewise.
2125         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
2126         * ifcvt.c (noce_process_if_block, check_cond_move_block,
2127         dead_or_predicable): Likewise.
2128         * regmove.c (optimize_reg_copy_1): Likewise.
2129         * calls.c (prepare_call_address): Likewise.
2130         (precompute_register_parameters): Likewise.
2131
2132         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
2133         hook definition.
2134         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
2135         implementation of the hook that considers all register classes
2136         small except for SH64.
2137         (sh_override_options): Use the new hook.
2138         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
2139         Add prototype.
2140
2141         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
2142         hook definition.
2143         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
2144         implementation of the hook that considers all register classes
2145         small for THUMB1.
2146         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
2147         Add prototype.
2148
2149         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
2150         hook definition.
2151         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
2152         implementation of the hook that considers all register classes
2153         small for MIPS16.
2154         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
2155         Add prototype.
2156
2157         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
2158         hook definition.
2159         * config/m32c/m32c.h: Likewise.
2160         * config/pdp11/pdp11.h: Likewise.
2161         * config/avr/avr.h: Likewise.
2162         * config/xtensa/xtensa.h: Likewise.
2163         * config/m68hc11/m68hc11.h: Likewise.
2164         * config/mn10300/mn10300.h: Likewise.
2165         * config/mcore/mcore.h: Likewise.
2166         * config/h8300/h8300.h: Likewise.
2167         * config/bfin/bfin.h: Likewise.
2168
2169         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
2170         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
2171
2172 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
2173
2174         * double-int.h (tree_to_double_int): Remove macro.
2175         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
2176         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
2177         (tree_to_double_int): New function.
2178         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
2179         Move ...
2180         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
2181
2182 2010-05-03  Richard Guenther  <rguenther@suse.de>
2183
2184         PR tree-optimization/43971
2185         * tree-ssa-structalias.c (get_constraint_for_1): Fix
2186         constraints in the !flag_delete_null_pointer_checks case.
2187
2188 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
2189
2190         PR debug/43972
2191         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
2192         result mode matches original rtl mode.
2193
2194 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
2195
2196         PR target/43888
2197         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
2198
2199 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
2200
2201         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
2202         when processing flag options.
2203
2204 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
2205
2206         * gcov-iov.c (main): Change format string placeholder
2207         from %#08x to 0x%08x.
2208         * genchecksum.c (dosum): Change format string placeholder
2209         from %#02x to 0x%02x.
2210
2211 2010-05-02  Richard Guenther  <rguenther@suse.de>
2212
2213         PR tree-optimization/43879
2214         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
2215
2216 2010-05-02  Bruno Haible  <bruno@clisp.org>
2217
2218         * doc/extend.texi (Function Attributes): Fix a typo.
2219
2220 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
2221
2222         Revert:
2223         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
2224         placeholder from 0x%x to %#x.
2225         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
2226         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
2227         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
2228         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
2229         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
2230         * config/i386/i386.c (ix86_target_string): Ditto.
2231         * config/i386/i386.c (output_pic_addr_const): Ditto.
2232         (print_operand): Ditto.
2233
2234 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
2235
2236         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
2237         placeholder from 0x%x to %#x.
2238         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
2239         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
2240         (ASM_OUTPUT_DEBUG_DATA): Ditto.
2241         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
2242         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
2243         * optc-gen.awk: Ditto.
2244         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
2245         (HOST_WIDE_INT_PRINT_HEX): Ditto.
2246         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
2247         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
2248
2249 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
2250
2251         * target.h (struct calls): Add function_value_regno_p field.
2252         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
2253         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
2254         * targhooks.c (default_function_value_regno_p): New function.
2255         * targhooks.h (default_function_value_regno_p): Declare function.
2256         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
2257         * builtins.c. (apply_result_size): (Ditto.).
2258         * combine.c. (likely_spilled_retval_p): (Ditto.).
2259         * mode-switching.c. Include 'target.h'.
2260         (create_pre_exit): Use function_value_regno_p hook.
2261         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
2262         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
2263         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
2264
2265         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
2266         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
2267         (ix86_function_value_regno_p): Declare as static, change argument
2268         type to const unsigned int.
2269         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
2270
2271 2010-05-01  Richard Guenther  <rguenther@suse.de>
2272
2273         PR tree-optimization/43949
2274         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
2275         types.
2276         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
2277
2278 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
2279
2280         * rtl.h (CONST_DOUBLE_P): Define.
2281         (rtx_to_double_int): Declare.
2282         * emit-rtl.c (rtx_to_double_int): New function.
2283         * dwarf2out.c (insert_double): New function.
2284         (loc_descriptor, add_const_value_attribute): Clean up, use
2285         rtx_to_double_int and insert_double functions.
2286
2287 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
2288
2289         * doc/extend.texi (Inline): Add missing return keyword to examples.
2290         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
2291         "command-line".
2292
2293 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
2294
2295         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
2296         the variable part of the offset as well.  Use highest_pow2_factor for
2297         all alignment checks.
2298
2299 2010-04-30  Richard Guenther  <rguenther@suse.de>
2300
2301         PR tree-optimization/43879
2302         * tree-ssa-structalias.c (type_could_have_pointers): Functions
2303         can have pointers.
2304
2305 2010-04-30  Jan Hubicka  <jh@suse.cz>
2306
2307         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
2308         varpool.
2309         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
2310
2311 2010-04-30  Jan Hubicka  <jh@suse.cz>
2312
2313         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
2314         New.
2315         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
2316         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
2317         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
2318         cgraph_node_set_needs_ltrans_p): Remove.
2319
2320 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
2321
2322         * sdbout.c: Include vec.h, do not include varray.h.
2323         (deferred_global_decls, sdbout_global_decl,
2324         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
2325         * toplev.c: Do not include varray.h.
2326         (dump_memory_report): Do not dump VARRAY statistics.
2327         * gengtype.c (open_base_file): Ignore varray.h.
2328         * Makefile.in: Update for abovementioned changes.
2329         Remove all traces of varray.c and varray.h.
2330         * varray.c: Remove file.
2331         * varray.h: Remove file.
2332
2333 2010-04-30  Jan Hubicka  <jh@suse.cz>
2334
2335         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
2336         references.
2337
2338 2010-04-30  Jan Hubicka  <jh@suse.cz>
2339
2340         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
2341         needed.
2342
2343 2010-04-30  Richard Guenther  <rguenther@suse.de>
2344
2345         * tree-ssa-structalias.c (get_constraint_for_1): Generate
2346         constraints for CONSTRUCTOR.
2347
2348 2010-04-30  Richard Guenther  <rguenther@suse.de>
2349
2350         PR lto/43946
2351         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
2352         first after all lowering passes.
2353
2354 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
2355
2356         * toplev.c: Include varray.h for statistics dumping.
2357         * tree.h: Do not declare varray_head_tag.
2358         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
2359         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
2360         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
2361         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
2362         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
2363         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
2364         c-common.c, c-common.h, reg-stack.c, basic-block.h,
2365         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
2366         include varray.h.
2367         * Makefile.in: Update for abovementioned changes.
2368
2369 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
2370
2371         PR debug/43942
2372         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
2373
2374 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
2375
2376         * config/picochip/picochip.c (picochip_legitimize_address): Define.
2377         Use this function to do machine-specific conversion.
2378         (picochip_legitimize_reload_address): Likewise.
2379         (picochip_legitimate_address_p): Check valid base register only if
2380         strict.
2381         (picochip_check_conditional_copy): Check for modw only if opnd is
2382         register.
2383         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
2384         to call the function in c.
2385         * config/picochip/picochip-protos.h
2386         (picochip_legitimize_reload_address): Define.
2387         * config/picochip/picochip.md (supported_compare1): Define.
2388
2389 2010-04-30  Jan Hubicka  <jh@suse.cz>
2390
2391         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
2392         (cgraph_global_info): Remove inlined.
2393         (LTO_cgraph_tag_names): Remove.
2394         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
2395         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
2396         simplify cgraph tags and document.
2397         (lto_output_node): Use only LTO_cgraph_unavail_node and
2398         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
2399         for_functions_valid, global info, process and output flags.
2400         (input_overwrite_node): Initialize estimated stack size and
2401         estimated growth.  Do not read flags we no longer store.
2402         (input_node): Likewise do not read info no longer stored.
2403         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
2404         flag.
2405
2406 2010-04-30  Richard Guenther  <rguenther@suse.de>
2407
2408         PR tree-optimization/43879
2409         * tree-ssa-structalias.c (get_constraint_for_1): Properly
2410         handle non-zero initializers.
2411
2412 2010-04-30  Richard Guenther  <rguenther@suse.de>
2413
2414         * builtins.c (fold_builtin_1): Delete free (0).
2415
2416 2010-04-29  Jan Hubicka  <jh@suse.cz>
2417
2418         * gengtype.c (open_base_files): Add lto-streamer.h
2419         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
2420         (pass_ipa_cp): GGC collect.
2421         * toplev. (compile_file): Do not output symbols.
2422         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
2423         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
2424         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
2425         * lto-section-in.c: Include ggc.h
2426         (lto_new_in_decl_state): Alloc in GGC.
2427         (lto_delete_in_decl_state): Likewise.
2428         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
2429         Collect.
2430
2431 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
2432
2433         PR target/42895
2434         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
2435         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
2436         (HONOR_REG_ALLOC_ORDER): Describe new macro.
2437         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
2438         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
2439         account only if HONOR_REG_ALLOC_ORDER is not defined.
2440         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
2441         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
2442
2443 2010-04-29  Jon Grant  <04@jguk.org>
2444
2445         * collect2.c (vflag): Change type from int to bool.
2446         (debug): Likewise.
2447         (helpflag): New global bool.
2448         (main): Set vflag and debug with boolean, not integer truth values.
2449         Accept new "--help" option and output usage text if found.
2450         * collect2.h (vflag): Update prototype.
2451         (debug): Likewise.
2452
2453 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
2454
2455         PR bootstrap/43936
2456         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
2457
2458 2010-04-29  Richard Guenther  <rguenther@suse.de>
2459
2460         PR bootstrap/43935
2461         * plugin.h (invoke_plugin_callbacks): Annotate arguments
2462         with ATTRIBUTE_UNUSED.
2463
2464 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
2465
2466         PR target/43921
2467         * config/i386/i386.c (get_some_local_dynamic_name): Replace
2468         INSN_P with NONDEBUG_INSN_P.
2469         (distance_non_agu_define): Likewise.
2470         (distance_agu_use): Likewise.
2471
2472 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
2473
2474         From Dominique d'Humieres <dominiq@lps.ens.fr>
2475         PR bootstrap/43858
2476         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
2477         test_set.
2478
2479 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
2480
2481         * plugin.h (invoke_plugin_callbacks): New inline function.
2482         * plugin.c (flag_plugin_added): New global flag.
2483         (add_new_plugin): Initialize above flag.
2484         (invoke_plugin_callbacks): Rename to ...
2485         (invoke_plugin_callbacks_full): ... this.
2486
2487 2010-04-28  Jan Hubicka  <jh@suse.cz>
2488
2489         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
2490         (lto_varpool_replace_node): New.
2491         (lto_symtab_resolve_symbols): Resolve varpool nodes.
2492         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
2493         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
2494         * cgraph.h (varpool_node_ptr): New type.
2495         (varpool_node_ptr): New vector.
2496         (varpool_node_set_def): New structure.
2497         (varpool_node_set): New type.
2498         (varpool_node_set): New vector.
2499         (varpool_node_set_element_def): New structure.
2500         (varpool_node_set_element, const_varpool_node_set_element): New types.
2501         (varpool_node_set_iterator): New type.
2502         (varpool_node): Add prev pointers, add used_from_other_partition,
2503         in_other_partition.
2504         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
2505         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
2506         varpool_get_node, varpool_remove_node): Declare.
2507         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
2508         varpool_node_set_size): New inlines.
2509         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
2510         * tree-pass.h (varpool_node_set_def): Forward declare.
2511         (ipa_opt_pass_d): Summary writting takes vnode sets too.
2512         (ipa_write_optimization_summaries): Update prototype.
2513         * ipa-cp.c (ipcp_write_summary): Update.
2514         * ipa-reference.c (ipa_reference_write_summary): Update.
2515         * lto-cgraph.c (lto_output_varpool_node): New static function.
2516         (output_varpool): New function.
2517         (input_varpool_node): New static function.
2518         (input_varpool_1): New function.
2519         (input_cgraph): Input varpool.
2520         * ipa-pure-const.c (pure_const_write_summary): Update.
2521         * lto-streamer-out.c (lto_output): Update, output varpool too.
2522         (write_global_stream): Kill WPA hack.
2523         (produce_asm_for_decls): Update.
2524         (output_alias_pair_p): Handle variables.
2525         (output_unreferenced_globals): Output only needed partition of varpool.
2526         * ipa-inline.c (inline_write_summary): Update.
2527         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
2528         cgraph.
2529         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
2530         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
2531         varpool_node_set_new, varpool_node_set_add,
2532         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
2533         debug_varpool_node_set): New functions.
2534         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
2535         (execute_one_pass): Process new decls too.
2536         (ipa_write_summaries_2): Pass around vsets.
2537         (ipa_write_summaries_1): Likewise.
2538         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
2539         to add.
2540         (ipa_write_optimization_summaries_1): Pass around vsets.
2541         (ipa_write_optimization_summaries): Likewise.
2542         * varpool.c (varpool_get_node): New.
2543         (varpool_node): Update doubly linked lists.
2544         (varpool_remove_node): New.
2545         (dump_varpool_node): More dumping.
2546         (varpool_enqueue_needed_node): Update doubly linked lists.
2547         (decide_is_variable_needed): Kill ltrans hack.
2548         (varpool_finalize_decl): Kill lto hack.
2549         (varpool_assemble_decl): Skip decls in other partitions.
2550         (varpool_assemble_pending_decls): Update doubly linkes lists.
2551         (varpool_empty_needed_queue): Likewise.
2552         (varpool_extra_name_alias): Likewise.
2553         * lto-streamer.c (lto_get_section_name): Add vars section.
2554         * lto-streamer.h (lto_section_type): Update.
2555         (output_varpool, input_varpool): Declare.
2556
2557 2010-04-28  Mike Stump  <mikestump@comcast.net>
2558
2559         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
2560
2561 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
2562
2563         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
2564         record or union type with RECORD_OR_UNION_TYPE_P predicate.
2565         (lto_input_ts_type_tree_pointers): Likewise.
2566         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
2567         (lto_output_ts_type_tree_pointers): Likewise.
2568
2569 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
2570
2571         Uniquization of constants at the Tree level
2572         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
2573         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
2574         bit to the end.
2575         (tree_output_constant_def): Declare.
2576         * gimplify.c (gimplify_init_constructor): When using block copy, first
2577         uniquize the constant constructor on the RHS.
2578         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
2579         DECL_IN_CONSTANT_POOL flag.
2580         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
2581         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
2582         constant pool.
2583         (assemble_variable): Deal with symbols belonging to the tree constant
2584         pool.
2585         (get_constant_section): Add ALIGN parameter and simplify.
2586         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
2587         (assemble_constant_contents): Use the expression of the VAR_DECL.
2588         (output_constant_def_contents): Use the alignment of the VAR_DECL.
2589         (tree_output_constant_def): New global function.
2590         (mark_constant): Use the expression of the VAR_DECL.
2591         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
2592         its expression.
2593         (output_object_block): Likewise and assemble the expression.
2594
2595 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
2596
2597         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
2598         hash_tree, eq_tree): New tree hash table.
2599         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
2600         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
2601         lto_orig_address_remove): Reimplement.
2602
2603 2010-04-28  Xinliang David Li  <davidxl@google.com>
2604
2605         PR c/42643
2606         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
2607         (compute_uninit_opnds_pos): New function.
2608         (is_non_loop_exit_postdominating): New function.
2609         (compute_control_dep_chain): New function.
2610         (find_pdom): New function.
2611         (convert_control_dep_chain_into_preds): New function.
2612         (find_predicates): New function.
2613         (find_control_equiv_block): New function.
2614         (collect_phi_def_edges): New function.
2615         (find_def_preds): New function.
2616         (find_dom): New function.
2617         (dump_predicates): New function.
2618         (get_cmp_code): New function.
2619         (is_value_included_in): New function.
2620         (find_matching_predicate_in_rest_chains): New function.
2621         (use_pred_not_overlap_with_undef_path_pred): New function.
2622         (is_use_properly_guarded): New function.
2623         (normalize_cond_1): New function.
2624         (is_and_or_or): New function.
2625         (normalize_cond): New function.
2626         (is_gcond_subset_of): New function.
2627         (is_subset_of_any): New function.
2628         (is_or_set_subset_of): New function.
2629         (is_and_set_subset_of): New function.
2630         (is_norm_cond_subset_of): New function.
2631         (is_pred_expr_subset_of): New function.
2632         (is_pred_chain_subset_of): New function.
2633         (is_included_in): New function.
2634         (is_superset_of): New function.
2635         (find_uninit_use): New function.
2636         (warn_uninitialized_phi): New function.
2637         (compute_possibly_undefined_names): New function.
2638         (ssa_undefined_value_p): New function.
2639         (execute_late_warn_uninitialized): New function.
2640         * tree-ssa.c (ssa_undefined_value_p): Removed.
2641         (warn_uninit): Changed to extern.
2642         (warn_uninitialized_phi): Removed.
2643         (warn_uninitialized_vars): Changed to extern.
2644         (execute_late_warn_uninitialized): Removed
2645         * tree-flow.h: Add new prototypes.
2646         * timevar.def: Add new time variable.
2647         * Makefile.in: Add new build file.
2648
2649 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
2650
2651         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
2652         type if available.
2653
2654 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2655
2656         PR target/22224
2657         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
2658
2659 2010-04-28  Martin Jambor  <mjambor@suse.cz>
2660
2661         * cgraph.h (struct cgraph_node): New field indirect_calls.
2662         (struct cgraph_indirect_call_info): New type.
2663         (struct cgraph_edge): Removed field indirect_call. New fields
2664         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
2665         (cgraph_create_indirect_edge): Declare.
2666         (cgraph_make_edge_direct): Likewise.
2667         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
2668         * ipa-prop.h (struct ipa_param_call_note): Removed.
2669         (struct ipa_node_params): Removed field param_calls.
2670         (ipa_create_all_structures_for_iinln): Declare.
2671         * cgraph.c: Described indirect edges and uids in initial comment.
2672         (cgraph_add_edge_to_call_site_hash): New function.
2673         (cgraph_edge): Search also among the indirect edges, use
2674         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
2675         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
2676         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
2677         site hash.
2678         (initialize_inline_failed): Assign a reason to indirect edges.
2679         (cgraph_create_edge_1): New function.
2680         (cgraph_create_edge): Moved some functionality to
2681         cgraph_create_edge_1.
2682         (cgraph_create_indirect_edge): New function.
2683         (cgraph_edge_remove_callee): Add an assert checking for
2684         non-indirectness.
2685         (cgraph_edge_remove_caller): Special-case indirect edges.
2686         (cgraph_remove_edge): Likewise.
2687         (cgraph_set_edge_callee): New function.
2688         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
2689         (cgraph_make_edge_direct): New function.
2690         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
2691         the declaration of the call statement matches.
2692         (cgraph_node_remove_callees): Special-case indirect edges.
2693         (cgraph_clone_edge): Likewise.
2694         (cgraph_clone_node): Clone also the indirect edges.
2695         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
2696         indirect_call, dump count of indirect_calls edges.
2697         * ipa-prop.c (iinlining_processed_edges): New variable.
2698         (ipa_note_param_call): Create indirect edges instead of
2699         creating notes.  New parameter node.
2700         (ipa_analyze_call_uses): New parameter node, pass it on to
2701         ipa_note_param_call.
2702         (ipa_analyze_stmt_uses): Likewise.
2703         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
2704         (print_edge_addition_message): Work on edges rather than on notes.
2705         (update_call_notes_after_inlining): Likewise, renamed to
2706         update_indirect_edges_after_inlining.
2707         (ipa_create_all_structures_for_iinln): New function.
2708         (ipa_free_node_params_substructures): Do not free notes.
2709         (ipa_edge_duplication_hook): Propagate bits within
2710         iinlining_processed_edges bitmap.
2711         (ipa_node_duplication_hook): Do not duplicate notes.
2712         (free_all_ipa_structures_after_ipa_cp): Renamed to
2713         ipa_free_all_structures_after_ipa_cp.
2714         (free_all_ipa_structures_after_iinln): Renamed to
2715         ipa_free_all_structures_after_iinln.
2716         (ipa_write_param_call_note): Removed.
2717         (ipa_read_param_call_note): Removed.
2718         (ipa_write_indirect_edge_info): New function.
2719         (ipa_read_indirect_edge_info): Likewise.
2720         (ipa_write_node_info): Do not stream notes, do stream information
2721         in indirect edges.
2722         (ipa_read_node_info): Likewise.
2723         (lto_ipa_fixup_call_notes): Removed.
2724         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
2725         * ipa-inline.c (pass_ipa_inline): Likewise.
2726         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
2727         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
2728         * tree-inline.c (copy_bb): Removed an unnecessary double check for
2729         is_gimple_call.
2730         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
2731         edges.
2732         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
2733         (output_cgraph): Stream also indirect edges.
2734         (lto_output_edge): Added capability to stream indirect edges.
2735         (input_edge): Likewise.
2736         (input_cgraph_1): Likewise.
2737         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
2738         of indirect edges.
2739
2740 2010-04-28  Richard Guenther  <rguenther@suse.de>
2741
2742         PR tree-optimization/43879
2743         PR tree-optimization/43909
2744         * tree-ssa-structalias.c (struct variable_info): Add
2745         only_restrict_pointers flag.
2746         (new_var_info): Initialize it.  Increment stats.total_vars here.
2747         (create_function_info_for): Do not increment stats.total_vars here.
2748         (get_function_part_constraint): Fix build with C++.
2749         (insert_into_field_list): Remove.
2750         (push_fields_onto_fieldstack): Properly merge fields.
2751         (create_variable_info_for): Split and simplify.
2752         (create_variable_info_for_1): New piece.
2753         (intra_create_variable_infos): Properly make restrict constraints
2754         from parameters.
2755
2756 2010-04-28  Richard Guenther  <rguenther@suse.de>
2757
2758         PR c++/43880
2759         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
2760
2761 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2762             Jan Hubicka <hubicka@ucw.cz>
2763
2764         * doc/invoke.texi (-Wsuggest-attribute=const,
2765         -Wsuggest-attribute=pure): Document.
2766         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
2767         (function_always_visible_to_compiler_p,
2768         suggest_attribute, warn_function_pure, warn_function_const):
2769         New functions.
2770         (check_call): Improve debug info.
2771         (analyze_function): Do not check availability.
2772         (add_new_function): Check availability.
2773         (propagate): Output warnings.
2774         (skip_function_for_local_pure_const): New function.
2775         (local_pure_const): Use it; output warnings.
2776         * common.opt (Wsuggest-attribute=const,
2777         Wsuggest-attribute=pure): New.
2778
2779 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
2780
2781         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
2782         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
2783         or DW_CFA_def_cfa_offset{,_sf}.
2784
2785 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
2786
2787         * tree.h: Fix truncated long macros.
2788
2789 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
2790
2791         * collect2.c (TARGET_64BIT): Redefine to target's default.
2792         * tlink.c: Likewise.
2793         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
2794         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
2795         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
2796         for underscoring __USER_LABEL_PREFIX__.
2797         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
2798         (SUB_LINK_ENTRY32): New.
2799         (SUB_LINK_ENTRY64): New.
2800         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
2801         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
2802         (SUB_LINK_ENTRY64): New.
2803         (SUB_LINK_ENTRY): New.
2804         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
2805         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
2806         x64 target is choosen.
2807         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
2808         * configure: Regenerated.
2809         * configure.ac (leading-mingw64-underscores): Option added.
2810
2811 2010-04-27  Jan Hubicka  <jh@suse.cz>
2812
2813         * doc/invoke.texi (-fipa-profile): Document.
2814         * opts.c (decode_options): Enable ipa-profile at -O1.
2815         * timevar.def (TV_IPA_PROFILE): Define.
2816         * common.opt (fipa-profile): Add.
2817         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
2818         flag for clones.
2819         (cgraph_propagate_frequency): Handle only local ones.
2820         * tree-pass.h (pass_ipa_profile): Declare.
2821         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
2822         (pass_ipa_profile): Use TV_IPA_PROFILE.
2823         * ipa.c (ipa_profile): New function.
2824         (gate_ipa_profile): Likewise.
2825         (pass_ipa_profile): New global variable.
2826         * passes.c (pass_ipa_profile): New.
2827
2828 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
2829
2830         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
2831
2832 2010-04-27  Martin Jambor  <mjambor@suse.cz>
2833
2834         PR middle-end/43812
2835         * ipa.c (dissolve_same_comdat_group_list): New function.
2836         (function_and_variable_visibility): Call
2837         dissolve_same_comdat_group_list when comdat group contains external or
2838         newly local nodes.
2839         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
2840         lists are circular and that they contain only DECL_ONE_ONLY nodes.
2841
2842 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
2843
2844         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
2845         (const_hash_1) <VECTOR_CST>: New case.
2846         (compare_constant) <VECTOR_CST>: Likewise.
2847         <ADDR_EXPR>: Deal with LABEL_REFs.
2848         (copy_constant) <VECTOR_CST>: New case.
2849
2850 2010-04-27  Jan Hubicka  <jh@suse.cz>
2851
2852         * cgraph.c (cgraph_propagate_frequency): New function.
2853         * cgraph.h (cgraph_propagate_frequency): Declare.
2854         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
2855         cgraph_propagate_frequency.
2856
2857 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
2858
2859         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
2860
2861 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
2862
2863         PR target/40657
2864         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
2865         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
2866         here to determine which regs to push and how much stack to reserve.
2867
2868 2010-04-27  Jie Zhang  <jie@codesourcery.com>
2869
2870         * doc/gimple.texi (gimple_statement_with_ops): Remove
2871         addresses_taken field.
2872         (gimple_statement_with_memory_ops): Likewise.
2873
2874 2010-04-27  Jan Hubicka  <jh@suse.cz>
2875
2876         * tree-inline.c (eni_inlining_weights): Remove.
2877         (estimate_num_insns): Special case more builtins.
2878
2879 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
2880
2881         PR c/32207
2882         * c-typeck.c (build_binary_op): Move forward check for comparison
2883         pointer with null pointer constant and adjust the diagnostic message.
2884
2885 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
2886
2887         PR lto/42776
2888         * configure.ac (gcc_cv_as_section_has_align): Set if installed
2889         binutils supports extended .section directive needed by LTO, or
2890         warn if older binutils found.
2891         (LTO_BINARY_READER): New AC_SUBST'd variable.
2892         (LTO_USE_LIBELF): Likewise.
2893         * gcc/config.gcc (lto_binary_reader): New target-specific configure
2894         variable.
2895         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
2896         (LTO_USE_LIBELF): Likewise.
2897         * configure: Regenerate.
2898
2899         * collect2.c (is_elf): Rename from this ...
2900         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
2901          object files in addition to ELF-formatted ones.
2902         (scan_prog_file): Caller updated.  Also allow for LTO info marker
2903         symbol to be prefixed or not by an extra underscore.
2904
2905         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
2906         * config/i386/winnt.c: Also #include lto-streamer.h
2907         (i386_pe_asm_named_section): Specify 1-byte section alignment for
2908         LTO named sections.
2909         (i386_pe_asm_output_aligned_decl_common): Add comment.
2910         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
2911
2912 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
2913
2914         PR target/43889
2915         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
2916         Add missing earlyclobber for second alternative.
2917
2918 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
2919
2920         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
2921         bits for artificial defs at the top of the block.
2922         * fwprop.c (single_def_use_enter_block): Don't call it.
2923
2924 2010-04-26  Jack Howarth <howarth@bromo.med.uc.edu>
2925
2926         PR 43715
2927         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
2928         instead of "$gcc_cv_objdump -T".
2929         Use "-undefined dynamic_lookup" on darwin.
2930         * gcc/configure: Regenerate.
2931
2932 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
2933
2934         PR c/43893
2935         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
2936
2937 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
2938
2939         * c-parser.c (struct c_token): Move location field up.
2940         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
2941         (struct c_declspecs): Convert typespec_word, storage_class, and
2942         default_int_p into bitfields.
2943         (struct c_declarator): Move loc field up.
2944
2945 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
2946
2947         * cfgloop.h (struct loop): Move can_be_parallel field up.
2948         * ipa-prop.h (struct ip_node_params): Move bitfields up.
2949         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
2950         down.
2951         (struct iv_cand): Convert pos field into a bitfield.
2952         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
2953         field up.
2954         (struct _stmt_vec_info): Shuffle fields for better packing.
2955
2956 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
2957
2958         * varasm.c (IN_NAMED_SECTION): Remove guard.
2959         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
2960         (IN_NAMED_SECTION_P): ...this.
2961         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
2962         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
2963
2964 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
2965
2966         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
2967         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
2968         of shadowing it.  Fix comments.
2969
2970 2010-04-26  Jan Hubicka  <jh@suse.cz>
2971
2972         * cgraph.c (cgraph_create_node): Set node frequency to normal.
2973         (cgraph_clone_node): Copy function frequency.
2974         * cgraph.h (node_frequency): New enum
2975         (struct cgraph_node): Add.
2976         * final.c (rest_of_clean_state): Update.
2977         * lto-cgraph.c (lto_output_node): Output node frequency.
2978         (input_overwrite_node): Input node frequency.
2979         * tre-ssa-loop-ivopts (computation_cost): Update.
2980         * lto-streamer-out.c (output_function): Do not output function
2981         frequency.
2982         * predict.c (maybe_hot_frequency_p): Update and handle functions
2983         executed once.
2984         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
2985         attribute lookup.
2986         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
2987         (compute_function_frequency): Set noreturn functions to be executed
2988         once.
2989         (choose_function_section): Update.
2990         * lto-streamer-in.c (input_function): Do not input function frequency.
2991         * function.c (allocate_struct_function): Do not initialize function
2992         frequency.
2993         * function.h (function_frequency): Remove.
2994         (struct function): Remove function frequency.
2995         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
2996         (try_update): Update.
2997         * tree-inline.c (initialize_cfun): Do not update function frequency.
2998         * passes.c (pass_init_dump_file): Update.
2999         * i386.c (ix86_compute_frame_layout): Update.
3000         (ix86_pad_returns): Update.
3001
3002 2010-04-26  Jie Zhang  <jie@codesourcery.com>
3003
3004         PR tree-optimization/43833
3005         * tree-vrp.c (range_int_cst_p): New.
3006         (range_int_cst_singleton_p): New.
3007         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
3008         when both operands are constants.  Use range_int_cst_p in
3009         BIT_IOR_EXPR case.
3010
3011 2010-04-26  Jan Hubicka  <jh@suse.cz>
3012
3013         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
3014
3015 2010-04-26  Richard Guenther  <rguenther@suse.de>
3016
3017         PR lto/43080
3018         * gimple.c (gimple_decl_printable_name): Deal gracefully
3019         with a NULL DECL_NAME.
3020
3021 2010-04-26  Richard Guenther  <rguenther@suse.de>
3022
3023         PR lto/42425
3024         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
3025         if emitting debug information and it is either a function
3026         or a namespace decl.
3027
3028 2010-04-26  Ira Rosen  <irar@il.ibm.com>
3029
3030         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
3031         determine if the statement is vectorizable, and a macro to access it.
3032         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
3033         Skip statements that can't be vectorized. If the analysis fails,
3034         mark the statement as unvectorizable if vectorizing basic block.
3035         (vect_compute_data_refs_alignment): Likewise.
3036         (vect_verify_datarefs_alignment): Skip statements marked as
3037         unvectorizable. Add print.
3038         (vect_analyze_group_access): Skip statements that can't be
3039         vectorized. If the analysis fails, mark the statement as
3040         unvectorizable if vectorizing basic block.
3041         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
3042         * tree-vect-stmts.c (vectorizable_store): Fix the number of
3043         generated stmts for SLP.
3044         (new_stmt_vec_info): Initialize the new field.
3045         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
3046         statements marked as unvectorizable.
3047
3048 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
3049
3050         * c-common.c (flag_isoc1x): New.
3051         (flag_isoc99): Update comment.
3052         * c-common.h (flag_isoc1x): New.
3053         (flag_isoc99): Update comment.
3054         * c-cppbuiltin.c (builtin_define_float_constants): Also define
3055         __<type>_DECIMAL_DIG__.
3056         * c-opts.c (set_std_c1x): New.
3057         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
3058         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
3059         * c.opt (-std=c1x, -std=gnu1x): New options.
3060         * doc/cpp.texi: Mention -std=c1x.
3061         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
3062         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
3063         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
3064         * doc/standards.texi: Mention C1X.
3065         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
3066         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
3067         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
3068         Define for C1X.
3069
3070 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
3071
3072         * config/i386/gmon-sol2.c (_mcleanup): Change format string
3073         placeholder from 0x%x to %#x.
3074         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
3075         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
3076         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
3077         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
3078         * config/i386/i386.c (ix86_target_string): Ditto.
3079         (output_pic_addr_const): Ditto.
3080         (print_operand): Ditto.
3081
3082 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
3083
3084         * combine.c (find_split_point): Add third argument.  Use it
3085         to find nested multiply-accumulate instructions.  Adjust calls.
3086         (try_combine): Adjust call to find_split_point.
3087
3088 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
3089
3090         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
3091
3092 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
3093
3094         PR tree-optimization/41442
3095         * fold-const.c (merge_truthop_with_opposite_arm): New function.
3096         (fold_binary_loc): Call it.
3097
3098 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3099
3100         * toplev.c (general_init): Set default for fdiagnostics-show-option.
3101         * opts.c (common_handle_option): Allow disabling it.
3102         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
3103
3104 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
3105
3106         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
3107         between modes if both types are integral.
3108
3109 2010-04-23  Richard Guenther  <rguenther@suse.de>
3110
3111         PR tree-optimization/43572
3112         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
3113
3114 2010-04-23  Richard Guenther  <rguenther@suse.de>
3115
3116         PR lto/43455
3117         * tree-inline.c (tree_can_inline_p): Also check compatibility
3118         of return types.
3119
3120 2010-04-23  Martin Jambor  <mjambor@suse.cz>
3121
3122         PR tree-optimization/43846
3123         * tree-sra.c (struct access): New flag grp_assignment_read.
3124         (build_accesses_from_assign): Set grp_assignment_read.
3125         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
3126         (enum mark_read_status): New type.
3127         (analyze_access_subtree): Propagate grp_assignment_read, create
3128         accesses also if both direct_read and root->grp_assignment_read.
3129
3130 2010-04-23  Martin Jambor  <mjambor@suse.cz>
3131
3132         PR middle-end/43835
3133         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
3134         function does not have type attributes.
3135
3136 2010-04-23  Richard Guenther  <rguenther@suse.de>
3137
3138         PR lto/42653
3139         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
3140         of FUNCTION_DECLs.
3141
3142 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3143
3144         * sese.h (create_if_region_on_edge): Remove.
3145
3146         * sese.c (create_if_region_on_edge): Make static.
3147
3148         * tree-inline.c: Do not include ggc.h.
3149
3150         * expr.c: Do not include ggc.h.
3151
3152         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
3153         dependencies.
3154
3155 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
3156
3157         PR target/43744
3158         * config/sh/sh.c (find_barrier): Don't emit a constant pool
3159         in the middle of insns for casesi_worker_2.
3160
3161 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
3162
3163         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
3164
3165 2010-04-22  Ira Rosen  <irar@il.ibm.com>
3166
3167         PR tree-optimization/43842
3168         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
3169         loop unrolling in update of exit phis. Fix comment.
3170         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
3171         least two reduction statements in the loop before starting SLP
3172         analysis.
3173
3174 2010-04-22  Nick Clifton  <nickc@redhat.com>
3175
3176         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
3177
3178 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
3179
3180         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
3181         to simplify a + ~a.
3182
3183 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3184
3185         * tree-parloops.c (loop_parallel_p): New argument
3186         parloop_obstack.  Pass it down.
3187         (parallelize_loops): New variable parloop_obstack.  Initialize it,
3188         pass it down, free it.
3189
3190         * tree-loop-linear.c (linear_transform_loops): Pass down
3191         lambda_obstack.
3192
3193         * tree-data-ref.h (lambda_compute_access_matrices): New argument
3194         of type struct obstack *.
3195
3196         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
3197         scratch_obstack.  Initialize it, pass down, free it.
3198
3199         * lambda.h (lambda_loop_new): Remove.
3200         (lambda_matrix_new, lambda_matrix_inverse)
3201         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
3202         argument of type struct obstack *.
3203
3204         * lambda-trans.c (lambda_trans_matrix_new): New argument
3205         lambda_obstack.  Pass it down, use obstack allocation for ret.
3206         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
3207         it down.
3208
3209         * lambda-mat.c (lambda_matrix_get_column)
3210         (lambda_matrix_project_to_null): Remove.
3211         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
3212         allocation for mat.
3213         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
3214         lambda_obstack.
3215
3216         * lambda-code.c (lambda_loop_new): New function.
3217         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
3218         (lambda_compute_auxillary_space, lambda_compute_target_space)
3219         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
3220         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
3221         (build_access_matrix): New argument lambda_obstack.  Use obstack
3222         allocation for am.
3223         (lambda_compute_step_signs, lambda_compute_access_matrices): New
3224         argument lambda_obstack.  Pass it down.
3225
3226 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
3227
3228         * optabs.h (expand_widening_mult): Declare.
3229
3230 2010-04-22  Richard Guenther  <rguenther@suse.de>
3231
3232         PR tree-optimization/43845
3233         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
3234         lookup the CALL_EXPR function and arguments.
3235
3236 2010-04-22  Nick Clifton  <nickc@redhat.com>
3237
3238         * config/stormy16/stormy16.c
3239         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
3240         * config/stormy16/stormy16.h: Tidy up formatting.
3241         (DONT_USE_BUILTIN_SETJMP): Remove definition.
3242         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
3243         (ineqbranchsi): Delete pattern.
3244         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
3245         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
3246         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
3247         stormy16-lib2-ucmpsi2.c.
3248
3249 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
3250
3251         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
3252         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
3253         extra set merge_set_noclobber, and use it to relax the final test
3254         slightly.
3255         * df.h (df_simulate_find_noclobber_defs): Declare.
3256         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
3257         conditional defs.
3258         (df_simulate_find_noclobber_defs): New function.
3259
3260 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
3261
3262         * config/i386/i386.md: Use {} around multi-line preparation statements.
3263
3264 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3265
3266         * c-tree.h (push_init_level, pop_init_level, set_init_index)
3267         (process_init_element): New argument of type struct obstack *.
3268
3269         * c-typeck.c (push_init_level, pop_init_level, set_designator)
3270         (set_init_index, set_init_label, set_nonincremental_init)
3271         (set_nonincremental_init_from_string, find_init_member)
3272         (output_init_element, output_pending_init_elements)
3273         (process_init_element): New argument braced_init_obstack.  Pass it
3274         down.
3275         (push_range_stack, add_pending_init): New argument
3276         braced_init_obstack.  Use obstack allocation.
3277
3278         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
3279         braced_init_obstack.  Pass it down.
3280         (c_parser_braced_init): New variables ret, braced_init_obstack.
3281         Initialize obstack, pass it down and finally free it.
3282
3283 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
3284
3285         PR middle-end/29274
3286         * tree-pass.h (pass_optimize_widening_mul): Declare.
3287         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
3288         gate_optimize_widening_mul): New static functions.
3289         (pass_optimize_widening_mul): New.
3290         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
3291         <case MULT_EXPR>: Remove support for widening multiplies.
3292         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
3293         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
3294         simplify_gen_unary rather than directly building extensions.
3295         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
3296         WIDEN_MULT_EXPR.
3297         * expmed.c (expand_widening_mult): New function.
3298         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
3299
3300 2010-04-21  Jan Hubicka  <jh@suse.cz>
3301
3302         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
3303         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
3304         * lto-wpa-fixup.c: Remove.
3305         * Makefile.in (lto-wpa-fixup.o): Remove.
3306         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
3307         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
3308         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
3309
3310 2010-04-21  Jan Hubicka  <jh@suse.cz>
3311
3312         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
3313         add write_optimization_summary, read_optimization_summary.
3314         (ipa_write_summaries_of_cgraph_node_set): Remove.
3315         (ipa_write_optimization_summaries): Declare.
3316         (ipa_read_optimization_summaries): Declare.
3317         * ipa-cp.c (pass_ipa_cp): Update.
3318         * ipa-reference.c (pass_ipa_reference): Update.
3319         * ipa-pure-const.c (pass_ipa_pure_const): Update.
3320         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
3321         Update.
3322         * ipa-inline.c (pass_ipa_inline): Update.
3323         * ipa.c (pass_ipa_whole_program): Update.
3324         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
3325         * passes.c (ipa_write_summaries_1): Do not test wpa.
3326         (ipa_write_optimization_summaries_1): New.
3327         (ipa_write_optimization_summaries): New.
3328         (ipa_read_summaries): Do not test ltrans.
3329         (ipa_read_optimization_summaries_1): New.
3330         (ipa_read_optimization_summaries): New.
3331
3332 2010-04-21  Jan Hubicka  <jh@suse.cz>
3333
3334         * lto-cgraph.c (lto_output_node): Do not output comdat groups
3335         for boundary nodes.
3336         (output_cgraph): Do not arrange comdat groups for boundary nodes.
3337
3338 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
3339
3340         PR debug/40040
3341         * dwarf2out.c (add_name_and_src_coords_attributes): Add
3342         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
3343
3344 2010-04-21  Jan Hubicka  <jh@suse.cz>
3345
3346         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
3347
3348 2010-04-21  Jan Hubicka  <jh@suse.cz>
3349
3350         * varpool.c (decide_is_variable_needed): Variable is always needed
3351         during ltrans.
3352
3353 2010-04-21  Jan Hubicka  <jh@suse.cz>
3354
3355         * opts.c (decode_options): Enable pure-const pass for whopr.
3356
3357 2010-04-21  Jan Hubicka  <jh@suse.cz>
3358
3359         * cgraph.c (dump_cgraph_node): Dump also assembler name.
3360         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
3361         at WPA dumping.
3362         (cgraph_decide_inlining): Do not expect callee to be removed in all
3363         cases.
3364
3365 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
3366
3367         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
3368
3369 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
3370
3371         * config/i386/i386.md (x86_shrd): Add athlon_decode and
3372         amdfam10_decode attributes.
3373
3374 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
3375
3376         PR middle-end/43570
3377         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
3378         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
3379         (lower_copyprivate_clauses): Use private var in outer
3380         context instead of original var.  Make sure the types
3381         are correct for VLAs.
3382
3383 2010-04-21  Richard Guenther  <rguenther@suse.de>
3384
3385         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
3386         to non-pointer objects.
3387
3388 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
3389
3390         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
3391         last chain entry if it starts with the still current label.
3392         (add_location_or_const_value_attribute): Check that
3393         loc_list->first->next is NULL instead of comparing ->first with ->last.
3394         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
3395         to add_var_loc_to_decl.
3396
3397         * dwarf2out.c (output_call_frame_info): For dw_cie_version
3398         >= 4 add also address size and segment size fields into CIE header.
3399
3400         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
3401         long as address size is the same as sizeof (void *) and
3402         segment size is 0.
3403         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
3404         address size or segment size is unexpected, return DW_EH_PE_omit.
3405         (classify_object_over_fdes): If get_cie_encoding returned
3406         DW_EH_PE_omit, return -1.
3407         (init_object): If classify_object_over_fdes returned -1,
3408         pretend there were no FDEs at all.
3409
3410 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
3411
3412         * config/i386/i386.md (bswap<mode>2): Macroize expander from
3413         bswap{si,di}2 using SWI48 mode iterator.
3414         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
3415         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
3416         set modrm attribute of bswap insn to 0 and remove length attribute.
3417         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
3418         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
3419         set mode attribute to <MODE> and remove length attribute.
3420
3421 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
3422
3423         PR rtl-optimization/43520
3424         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
3425         zero available registers.
3426
3427 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3428
3429         * builtins.c (fold_builtin_cproj): Fold more cases.
3430
3431 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3432
3433         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
3434         (fold_builtin_1): Fold builtin cproj.
3435         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
3436         Use ATTR_CONST_NOTHROW_LIST.
3437
3438 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
3439
3440         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
3441         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
3442         ffsi2_no_cmove for !TARGET_CMOVE.
3443         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
3444         (ffssi2): Remove expander.
3445         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
3446         mode iterator.
3447         (ctz<mode>2): Ditto from ctz{si,di}2.
3448         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
3449         mode iterator.
3450         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
3451         mode iterator.
3452
3453 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
3454
3455         * dwarf2out.c (AT_linkage_name): Define.
3456         (clone_as_declaration): Handle DW_AT_linkage_name.
3457         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
3458         of DW_AT_MIPS_linkage_name.
3459         (move_linkage_attr): Likewise.
3460         (dwarf2out_finish): Likewise.
3461
3462 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
3463
3464         PR middle-end/41952
3465         * fold-const.c (fold_comparison): New folding rule.
3466
3467 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
3468
3469         * double-int.h (double_int_setbit): Declare.
3470         * double-int.c (double_int_setbit): New function.
3471         * rtl.h (immed_double_int_const): Declare.
3472         * emit-rtl.c (immed_double_int_const): New function.
3473         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
3474         and immed_double_int_const functions.
3475         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
3476         expand_copysign_bit):  (Ditto.).
3477         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
3478         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
3479         * dojump.c (prefer_and_bit_test): (Ditto.).
3480         * expr.c (convert_modes, reduce_to_bit_field_precision,
3481         const_vector_from_tree): (Ditto.).
3482         * expmed.c (mask_rtx, lshift_value): (Ditto.).
3483
3484 2010-04-20  Jan Hubicka  <jh@suse.cz>
3485
3486         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
3487         (dump_cgraph_node): Dump new flags.
3488         * cgraph.h (struct cgraph_node): Add flags
3489         reachable_from_other_partition and in_other_partition.
3490         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
3491         other partition can not be removed.
3492         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
3493         the other partition must be output; silence sanity checking on
3494         leaking functions bodies from other paritition.
3495         * lto-cgraph.c (reachable_from_other_partition_p): New function.
3496         (lto_output_node): Output new flags; do not sanity check that inline
3497         clones are output; drop lto_forced_extern_inline_p code; do not mock
3498         visibility flags at partition boundaries.
3499         (add_node_to): New function.
3500         (output_cgraph): Use it to sort functions so masters appear before
3501         clones.
3502         (input_overwrite_node): Input new flags.
3503         * passes.c (ipa_write_summaries): Do not call
3504         lto_new_extern_inline_states.
3505         * lto-section-out.c (forced_extern_inline,
3506         lto_new_extern_inline_states lto_delete_extern_inline_states,
3507         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
3508         * lto-streamer.h (lto_new_extern_inline_states,
3509         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
3510         lto_forced_extern_inline_p): Kill.
3511
3512 2010-04-20  Richard Guenther  <rguenther@suse.de>
3513
3514         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
3515         from vars that can have pointers.
3516         (process_constraint): Dump useless constraints.
3517
3518 2010-04-20  Richard Guenther  <rguenther@suse.de>
3519
3520         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
3521         (dump_sa_points_to_info): Remove asserts.
3522         (init_base_vars): nothing_id isn't an escape point nor does it
3523         have pointers.
3524
3525 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
3526
3527         * tree.h (TYPE_REF_IS_RVALUE): Define.
3528         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
3529         should_move_die_to_comdat, prune_unused_types_walk): Handle
3530         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
3531         (modified_type_die, gen_reference_type_die): Emit
3532         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
3533         if TYPE_REF_IS_RVALUE and -gdwarf-4.
3534
3535 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3536
3537         PR target/43635
3538         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
3539         calls for -fpic -m31 if they have been sibcall optimized.
3540
3541 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
3542
3543         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
3544         ar.lc fixed and call-used.
3545
3546         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
3547
3548 2010-04-19  Jan Hubicka  <jh@suse.cz>
3549
3550         * opts.c (decode_options): Disable whpr incompatible passes.
3551         * lto/lto.c (lto_1_to_1_map): Skip clones.
3552         (read_cgraph_and_symbols): Do not mark everything as needed.
3553         (do_whole_program_analysis): Do map only after optimizing;
3554         set proper cgraph_state; use passmanager.
3555
3556 2010-04-19  DJ Delorie  <dj@redhat.com>
3557
3558         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
3559         POINTER_PLUS_EXPR and fix them.
3560
3561 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
3562
3563         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
3564         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
3565         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
3566         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
3567         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
3568         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
3569         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
3570         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
3571         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
3572         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
3573         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
3574
3575 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3576
3577         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
3578         (check_cond_move_block): Likewise.
3579         (cond_move_process_if_block): Likewise.
3580         (noce_find_if_block): Improve formatting.
3581         (find_if_header): Pass 0 to memset and tweak conditions.
3582         (cond_exec_find_if_block): Fix long lines and tweak conditions.
3583
3584 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
3585
3586         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
3587         for -gdwarf-4.
3588
3589         PR middle-end/43337
3590         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
3591         with non-local decl doesn't need chain.
3592
3593 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
3594
3595         * ira-color.c (allocno_reload_assign): Avoid accumulating
3596         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
3597
3598 2010-04-19  Martin Jambor  <mjambor@suse.cz>
3599
3600         * gimple.h (create_tmp_reg): Declare.
3601         * gimplify.c (create_tmp_reg): New function.
3602         (gimplify_return_expr): Use create_tmp_reg.
3603         (gimplify_omp_atomic): Likewise.
3604         (gimple_regimplify_operands): Likewise.
3605         * tree-dfa.c (make_rename_temp): Likewise.
3606         * tree-predcom.c (predcom_tmp_var): Likewise.
3607         (reassociate_to_the_same_stmt): Likewise.
3608         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
3609         (get_replaced_param_substitute): Likewise.
3610         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
3611         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
3612         * tree-ssa-pre.c (get_representative_for): Likewise.
3613         (create_expression_by_pieces): Likewise.
3614         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
3615         (create_tailcall_accumulator): Likewise.
3616
3617 2010-04-19  Martin Jambor  <mjambor@suse.cz>
3618
3619         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
3620         new_stmt.
3621         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
3622
3623 2010-04-19  Richard Guenther  <rguenther@suse.de>
3624
3625         PR tree-optimization/43796
3626         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
3627         from SCEV in the lattice.
3628         (vrp_visit_phi_node): Dump change.
3629
3630 2010-04-19  Richard Guenther  <rguenther@suse.de>
3631
3632         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
3633         * configure: Re-generated.
3634
3635 2010-04-19  Richard Guenther  <rguenther@suse.de>
3636
3637         PR tree-optimization/43783
3638         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
3639         constant ARRAY_REF operands two and three if possible.
3640
3641 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
3642
3643         PR target/43766
3644         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
3645
3646 2010-04-19  Jie Zhang  <jie@codesourcery.com>
3647
3648         PR target/43662
3649         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
3650
3651 2010-04-19  Ira Rosen  <irar@il.ibm.com>
3652
3653         PR tree-optimization/37027
3654         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
3655         and macro to access it.
3656         (vectorizable_reduction): Add argument.
3657         (vect_get_slp_defs): Likewise.
3658         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
3659         statements for possible use in SLP.
3660         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
3661         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
3662         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
3663         add new argument.
3664         (vectorizable_reduction): Likewise.
3665         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
3666         vect_get_slp_defs.
3667         (vectorizable_type_demotion, vectorizable_type_promotion,
3668         vectorizable_store): Likewise.
3669         (vect_analyze_stmt): Update call to vectorizable_reduction.
3670         (vect_transform_stmt): Likewise.
3671         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
3672         (vect_build_slp_tree): Fix indentation. Check that there are no loads
3673         from different interleaving chains in same node.
3674         (vect_slp_rearrange_stmts): New function.
3675         (vect_supported_load_permutation_p): Allow load permutations for
3676         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
3677         inside SLP nodes if necessary.
3678         (vect_analyze_slp_instance): Handle reductions.
3679         (vect_analyze_slp): Try to build SLP instances originating from groups
3680         of reductions.
3681         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
3682         (vect_get_constant_vectors): Create initial vectors for reductions
3683         according to reduction code. Add new argument.
3684         (vect_get_slp_defs): Add new argument, pass it to
3685         vect_get_constant_vectors.
3686         (vect_schedule_slp_instance): Remove SLP tree root statements.
3687
3688 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
3689
3690         * tree.h (ENUM_IS_SCOPED): Define.
3691         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
3692         for ENUM_IS_SCOPED enums.
3693
3694 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3695
3696         * fold-const.c (fold_comparison): Use ssizetype.
3697         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
3698         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
3699         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
3700         * tree-object-size.c (compute_object_sizes): Use size_type_node.
3701
3702         * tree.h (initialize_sizetypes): Remove parameter.
3703         (build_common_tree_nodes): Remove second parameter.
3704         * stor-layout.c (initialize_sizetypes): Remove parameter.
3705         Always create an unsigned type.
3706         (set_sizetype): Assert that the passed type is unsigned and simplify.
3707         * tree.c (build_common_tree_nodes): Remove second parameter.
3708         Adjust call to initialize_sizetypes.
3709         * c-decl.c (c_init_decl_processing): Remove second argument in call to
3710         build_common_tree_nodes.
3711
3712 2010-04-18  Matthias Klose  <doko@ubuntu.com>
3713
3714         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
3715
3716 2010-04-18  Ira Rosen  <irar@il.ibm.com>
3717
3718         PR tree-optimization/43771
3719         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
3720         load permutation doesn't have gaps.
3721
3722 2010-04-18  Jan Hubicka  <jh@suse.cz>
3723
3724         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
3725         (sse_prologue_save_insn expander): Use new pattern.
3726         (sse_prologue_save_insn1): New pattern and splitter.
3727         (sse_prologue_save_insn): Update to deal also with 64bit aligned
3728         blocks.
3729         * i386.c (setup_incoming_varargs_64): Do not compute jump
3730         destination here.
3731         (ix86_gimplify_va_arg): Update alignment needed.
3732         (ix86_local_alignment): Do not align all local arrays to 128bit.
3733
3734 2010-04-17  Jan Hubicka  <jh@suse.cz>
3735
3736         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
3737
3738 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
3739
3740         * arm.md (negdi2): Remove redundant code to force values into a
3741         register.
3742
3743 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
3744
3745         * arm/bpabi.S: Add EABI alignment attributes to objects.
3746         * arm/bpabi-v6m.S: Likewise.
3747         * arm/crti.asm: Likewise.
3748         * arm/crtn.asm: Likewise.
3749         * arm/lib1funcs.asm: Likewise.
3750         * arm/libunwind.S: Likewise.
3751
3752 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
3753
3754         * arm-protos.h (tune_params): New structure.
3755         * arm.c (current_tune): New variable.
3756         (arm_constant_limit): Delete.
3757         (struct processors): Add pointer to the tune parameters.
3758         (arm_slowmul_tune): New tuning option.
3759         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
3760         (all_cores): Adjust to pick up the tuning model.
3761         (arm_constant_limit): New function.
3762         (arm_override_options): Select the appropriate tuning model.  Delete
3763         initialization of arm_const_limit.
3764         (arm_split_constant): Use the new constant-limit model.
3765         (arm_rtx_costs): Pick up the current tuning model.
3766         * arm.md (is_strongarm, is_xscale): Delete.
3767         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
3768         for Xscale variant architectures.
3769         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
3770
3771 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3772
3773         * config/arm/arm.c (arm_gen_constant): Remove unused variable
3774         can_shift.
3775         (arm_rtx_costs_1): Remove unused variable extra_cost.
3776         (arm_unwind_emit_set): Use variable offset.
3777         (thumb1_output_casesi): Remove unused variable flags.
3778
3779 2010-04-16  Jeff Law  <law@redhat.com>
3780
3781         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
3782         needing assignment rather than doing a two-phase assignment.  Remove
3783         unused variable 'm'.
3784
3785 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
3786
3787         PR bootstrap/43767
3788         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
3789
3790 2010-04-16  Doug Kwan  <dougkwan@google.com>
3791
3792         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
3793         (next_operand_entry_id): New static variable.
3794         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
3795         (add_to_ops_vec): Assigned unique ID to operand entry.
3796         (struct oecount_s): New field ID.
3797         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
3798         (undistribute_ops_list): Assign unique IDs to oecounts.
3799         (init_reassoc): reset next_operand_entry_id.
3800
3801 2010-04-16  Doug Kwan  <dougkwan@google.com>
3802
3803         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
3804         missing left parenthesis.
3805
3806 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
3807
3808         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
3809         *btdi_rex64 using SWI48 mode iterator.
3810         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
3811         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
3812         *jcc_btdi_mask_rex64.
3813
3814 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
3815
3816         * double-int.h (tree_to_double_int): Convert to macro.
3817         * double-int.c (tree_to_double_int): Remove.
3818
3819 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
3820
3821         PR debug/43762
3822         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
3823         with want_address 2 and in case a single element list might be
3824         possible, call it again with want_address 0.
3825
3826 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
3827
3828         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
3829         case 'W' print operands for HI mode.
3830         * config/h8300/h8300.h (Y0, Y2) : New constraints.
3831         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
3832         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
3833         * config/h8300/predicate.md (bit_register_indirect_operand): New.
3834
3835         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
3836
3837         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
3838         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
3839         #xx:3 and #xx:4 mode.
3840
3841         * config/h8300/h8300.md (inverted load with HImode dest): Add
3842         support for H8300SX.
3843
3844         * config/h8300/predicate.md (bit_operand): Allow immediate values that
3845         satisfy 'U' constraint.
3846
3847 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3848
3849         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
3850         * configure: Regenerate.
3851         * config.in: Regenerate.
3852         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
3853         works.
3854
3855 2010-04-16  Richard Guenther  <rguenther@suse.de>
3856
3857         * tree.h (struct tree_decl_minimal): Move pt_uid ...
3858         (struct tree_decl_common): ... here.
3859         (DECL_PT_UID): Adjust.
3860         (SET_DECL_PT_UID): Likewise.
3861         (DECL_PT_UID_SET_P): Likewise.
3862
3863 2010-04-16  Richard Guenther  <rguenther@suse.de>
3864
3865         PR tree-optimization/43572
3866         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
3867         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
3868         * tree-flow.h (is_call_clobbered): Remove.
3869         * tree-flow-inline.h (is_call_clobbered): Likewise.
3870         * tree-dfa.c (dump_variable): Do not dump call clobber state.
3871         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
3872         (execute_return_slot_opt): Adjust.
3873         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
3874         check for call clobbered vars here.
3875         (find_tail_calls): Move tailcall verification to the
3876         proper place.
3877
3878 2010-04-16  Diego Novillo  <dnovillo@google.com>
3879
3880         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
3881
3882 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
3883
3884         PR target/40603
3885         * config/arm/arm.md (cbranchqi4): New pattern.
3886         * config/arm/predicates.md (const0_operand,
3887         cbranchqi4_comparison_operator): New predicates.
3888
3889 2010-04-16  Richard Guenther  <rguenther@suse.de>
3890
3891         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
3892         (dump_gimple_stmt): Likewise.
3893
3894 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
3895
3896         * recog.h (struct recog_data): New field is_operator.
3897         (struct insn_operand_data): New field is_operator.
3898         * recog.c (extract_insn): Set recog_data.is_operator.
3899         * genoutput.c (output_operand_data): Emit code to set the
3900         is_operator field.
3901         * reload.c (find_reloads): Use it rather than testing for an
3902         empty constraint string.
3903
3904         PR target/41514
3905         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
3906         If the previous insn is a cbranchsi4_insn with the same arguments,
3907         omit the compare instruction.
3908
3909         * config/arm/arm.md (addsi3_cbranch): If destination is a high
3910         register, inputs must be low registers and we need a low register
3911         scratch.  Handle alternative 2 like alternative 3.
3912
3913 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
3914
3915         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
3916         don't call get_addr on both.  If one expression is a VALUE and
3917         the other a REG, check VALUE's locs if the REG isn't among them.
3918
3919 2010-04-16  Christian Bruel  <christian.bruel@st.com>
3920
3921         * config/sh/sh.h (sh_frame_pointer_required): New function.
3922         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
3923         (flag_omit_frame_pointer) Set.
3924         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
3925         (rounded_frame_size): Adjust size with outgoing_args_size.
3926         (sh_set_return_address): Must return from stack pointer.
3927         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
3928         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
3929         (ACCUMULATE_OUTGOING_ARGS): Define.
3930         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
3931         * gcc/config/sh/sh.opt: (maccumulate-outgoing-args): New option.
3932
3933 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
3934
3935         PR target/43471
3936         * config/sh/sh.c (sh_legitimize_reload_address): Use
3937         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
3938         Remove a unneeded check for offset_base.
3939
3940 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
3941
3942         * configure: Regenerated.
3943
3944 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3945
3946         * config/s390/s390.c (s390_call_save_register_used): Switch back
3947         to HARD_REGNO_NREGS.
3948
3949 2010-04-15  Richard Guenther  <rguenther@suse.de>
3950
3951         * alias.c (alias_set_subset_of): Handle alias-set zero
3952         child properly.
3953
3954 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
3955             Julian Brown  <julian@codesourcery.com>
3956
3957         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
3958         alternatives according to use of high and low regs.
3959         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
3960         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
3961         optimizing for size on Thumb-2.
3962
3963 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
3964
3965         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
3966
3967 2010-04-15  Richard Guenther  <rguenther@suse.de>
3968
3969         * tree-ssa-structalias.c (struct variable_info): Add
3970         is_fn_info flag.
3971         (new_var_info): Initialize it.
3972         (dump_constraints): Support printing last added constraints.
3973         (debug_constraints): Adjust.
3974         (dump_constraint_graph): Likewise.
3975         (make_heapvar_for): Check for NULL cfun.
3976         (get_function_part_constraint): New function.
3977         (get_fi_for_callee): Likewise.
3978         (find_func_aliases): Properly implement IPA PTA constraints.
3979         (process_ipa_clobber): New function.
3980         (find_func_clobbers): Likewise.
3981         (insert_into_field_list_sorted): Remove.
3982         (create_function_info_for): Properly allocate vars for IPA mode.
3983         Do not use insert_into_field_list_sorted.
3984         (create_variable_info_for): Properly generate constraints for
3985         global vars in IPA mode.
3986         (dump_solution_for_var): Always dump the solution.
3987         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
3988         (find_what_var_points_to): Adjust.
3989         (pt_solution_set): Change.
3990         (pt_solution_ior_into): New function.
3991         (pt_solution_empty_p): Export.
3992         (pt_solution_includes_global): Adjust.
3993         (pt_solution_includes_1): Likewise.
3994         (pt_solutions_intersect_1): Likewise.
3995         (dump_sa_points_to_info): Check some invariants.
3996         (solve_constraints): Move constraint dumping ...
3997         (compute_points_to_sets): ... here.
3998         (ipa_pta_execute): ... and here.
3999         (compute_may_aliases): Do not re-compute points-to info
4000         locally if IPA info is available.
4001         (ipa_escaped_pt): New global var.
4002         (ipa_pta_execute): Properly implement IPA PTA.
4003         * tree-into-ssa.c (dump_decl_set): Support dumping
4004         decls not in referenced-vars.
4005         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
4006         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
4007         (dump_points_to_solution): Likewise.
4008         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
4009         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
4010         (remap_gimple_stmt): Reset call clobber/use information if necessary.
4011         (copy_decl_to_var): Copy DECL_PT_UID.
4012         (copy_result_decl_to_var): Likewise.
4013         * tree.c (make_node_stat): Initialize DECL_PT_UID.
4014         (copy_node_stat): Copy it.
4015         * tree.h (DECL_PT_UID): New macro.
4016         (SET_DECL_PT_UID): Likewise.
4017         (DECL_PT_UID_SET_P): Likewise.
4018         (struct tree_decl_minimal): Add pt_uid member.
4019         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
4020         (pt_solution_empty_p): Declare.
4021         (pt_solution_set): Adjust.
4022         (ipa_escaped_pt): Declare.
4023         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
4024         * gimple-pretty-print.c (pp_points_to_solution): New function.
4025         (dump_gimple_call): Dump call clobber/use information.
4026         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
4027         * tree-pass.h (TDF_ALIAS): New dump option.
4028         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
4029         * doc/invoke.texi (-fipa-pta): Update documentation.
4030
4031 2010-04-15  Richard Guenther  <rguenther@suse.de>
4032
4033         * Makefile.in (OBJS-common): Add gimple-fold.o.
4034         (gimple-fold.o): New rule.
4035         * tree.h (maybe_fold_offset_to_reference,
4036         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
4037         prototypes ...
4038         * gimple.h: ... here.
4039         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
4040         may_propagate_address_into_dereference): Move prototypes ...
4041         * gimple.h: ... here.
4042         * tree-ssa-ccp.c (get_symbol_constant_value,
4043         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
4044         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
4045         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
4046         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
4047         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
4048         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
4049         gimplify_and_update_call_from_tree): Move ...
4050         * gimple-fold.c: ... here.  New file.
4051         (ccp_fold_builtin): Rename to ...
4052         (gimple_fold_builtin): ... this.
4053         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
4054
4055 2010-04-15  Richard Guenther  <rguenther@suse.de>
4056
4057         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
4058         fit_double_type, force_fit_type_double, add_double_with_sign,
4059         neg_double, mul_double_with_sign, lshift_double, rshift_double,
4060         lrotate_double, rrotate_double, div_and_round_double): Move ...
4061         * double-int.c: ... here.
4062         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
4063         add_double, neg_double, mul_double_with_sign, mul_double,
4064         lshift_double, rshift_double, lrotate_double, rrotate_double,
4065         div_and_round_double): Move prototypes ...
4066         * double-int.h: ... here.
4067
4068 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
4069
4070         PR target/43742
4071         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
4072         matching constraints to ensure inputs match the output.
4073
4074 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
4075
4076         PR target/43742
4077         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
4078         in an input-only operand.
4079
4080 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
4081
4082         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
4083         (double_int_not, double_int_lshift, double_int_rshift): Declare.
4084         (double_int_negative_p): Convert to static inline function.
4085         * double-int.c (double_int_lshift, double_int_lshift): New functions.
4086         (double_int_negative_p): Remove.
4087         * tree.h (lshift_double, rshift_double):
4088         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
4089         * fold-const.c (fold_convert_const_int_from_real,
4090         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
4091         (lshift_double): Change type of arith argument to bool.
4092         (rshift_double): Change type of arith argument to bool. Correct
4093         comment.
4094         * expmed.c (mask_rtx, lshift_value): (Ditto.).
4095
4096 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
4097
4098         PR target/21803
4099         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
4100         at the start and end of the then/else blocks, and omit them from the
4101         conversion.
4102         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
4103         argument; all callers changed.  Pass zero to old_insns_match_p instead.
4104         (flow_find_head_matching_sequence): New function.
4105         (old_insns_match_p): Check REG_EH_REGION notes for calls.
4106         * basic-block.h (flow_find_cross_jump,
4107         flow_find_head_matching_sequence): Declare functions.
4108
4109 2010-04-14  Jason Merrill  <jason@redhat.com>
4110
4111         PR c++/36625
4112         * c-common.c (attribute_takes_identifier_p): New fn.
4113         * c-common.h: Declare it.
4114
4115 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
4116
4117         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
4118         splitter condition.
4119         (*udivmod<mode>4): Ditto.
4120
4121 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
4122
4123         * config/i386/i386.md (maxmin_int): Rename code attribute from
4124         maxminiprefix and update all users.
4125         (maxmin_float): Ditto from maxminfprefix.
4126         (logic): Ditto from logicprefix.
4127         (absneg_mnemonic): Ditto from absnegprefix.
4128         * config/i386/mmx.md: Update all users of maxminiprefix,
4129         maxminfprefix and logicprefix for rename.
4130         * config/i386/sse.md: Ditto.
4131         * config/i386/sync.md (sync_<code><mode>): Update for
4132         logicprefix rename.
4133
4134 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4135
4136         PR 42966
4137         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
4138         warnings converted to errors.
4139
4140 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
4141
4142         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
4143         used insn_type variable.
4144         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
4145         to avoid set-but-not-used warning.
4146
4147 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
4148
4149         * df-core.c (df_ref_debug): Change format string placeholder
4150         from 0x%x to %#x.
4151         * dwarf2asm.c (dw2_asm_output_data_raw,
4152         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
4153         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
4154         * dwarf2out.c (output_cfi, output_cfi_directive,
4155         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
4156         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
4157         Ditto.
4158         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
4159         * print-rtl.c (print_rtx): Ditto.
4160
4161 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
4162
4163         PR middle-end/42694
4164         * builtins.c (expand_builtin_pow_root): New function to expand pow
4165         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
4166         series of sqrt and cbrt calls under -ffast-math.
4167         (expand_builtin_pow): Call it.
4168
4169 2010-04-14  Michael Matz  <matz@suse.de>
4170
4171         PR tree-optimization/42963
4172         * tree-cfg.c (touched_switch_bbs): New static variable.
4173         (group_case_labels_stmt): New function broken out from ...
4174         (group_case_labels): ... here, use the above.
4175         (start_recording_case_labels): Allocate touched_switch_bbs.
4176         (end_recording_case_labels): Deallocate it, call
4177         group_case_labels_stmt.
4178         (gimple_redirect_edge_and_branch): Remember index of affected BB.
4179
4180 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
4181
4182         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
4183         from insn template.
4184
4185 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
4186
4187         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
4188
4189 2010-04-13  Jan Hubicka  <jh@suse.cz>
4190
4191         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
4192         of optimized out static functions.
4193         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
4194         cost computation.  Also sanity check for overflows.
4195         (update_caller_keys): Update cgraph_edge_badness call; properly
4196         update fibheap and sanity check that it is up to date.
4197         (add_new_edges_to_heap): Update cgraph_edge_badness.
4198         (cgraph_decide_inlining_of_small_function): Likewise;
4199         add sanity checking that badness in heap is up to date;
4200         improve dumping of reason; Update badness of calls to the
4201         offline copy of function currently inlined; dump badness
4202         of functions not inlined because of unit growth limits.
4203
4204 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
4205
4206         PR middle-end/32628
4207         * c-common.c (pointer_int_sum): Disregard overflow that occured only
4208         because of sign-extension change when converting to sizetype here...
4209         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
4210
4211         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
4212         the folding to constants.  Remove redundant final conversion.
4213         (fold_binary) <associate>: Do not associate if the re-association of
4214         constants alone overflows.
4215         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
4216         to the end of the list.
4217         (multiple_of_p) <COND_EXPR>: New case.
4218
4219 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4220
4221         * opt-functions.awk (opt_sanitized_name): New.
4222         (opt_enum): New.
4223         * optc-gen.awk: Use it
4224         * opth-gen.awk: Use it.
4225
4226 2010-04-13  Martin Jambor  <mjambor@suse.cz>
4227
4228         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
4229         (sra_modify_assign): Delete stmts loading dead data even if racc has no
4230         children.  Call replace_uses_with_default_def_ssa_name to handle
4231         SSA_NAES on lhs.
4232
4233 2010-04-13  Michael Matz  <matz@suse.de>
4234
4235         PR middle-end/43730
4236         * builtins.c (expand_builtin_interclass_mathfn): Also create
4237         a register if the predicate doesn't match.
4238
4239 2010-04-13  Diego Novillo  <dnovillo@google.com>
4240
4241         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
4242         * c-pch.c: Include timevar.h.
4243         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
4244         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
4245         * ggc-common.c: Include timevar.h.
4246         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
4247         * timevar.def (TV_PCH_SAVE): Define.
4248         (TV_PCH_CPP_SAVE): Define.
4249         (TV_PCH_PTR_REALLOC): Define.
4250         (TV_PCH_PTR_SORT): Define.
4251         (TV_PCH_RESTORE): Define.
4252         (TV_PCH_CPP_RESTORE): Define.
4253
4254 2010-04-13  Michael Matz  <matz@suse.de>
4255
4256         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
4257         into MINUS_EXPRs.
4258         (can_reassociate_p): New function.
4259         (break_up_subtract_bb, reassociate_bb): Use it.
4260
4261 2010-04-13  Richard Guenther  <rguenther@suse.de>
4262
4263         PR bootstrap/43737
4264         * builtins.c (c_readstr): Fix assert.
4265
4266 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
4267
4268         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
4269         when generating cltd insn.
4270
4271         (*ashl<mode>3_1): Remove special handling for register operand 2.
4272         (*ashlsi3_1_zext): Ditto.
4273         (*ashlhi3_1): Ditto.
4274         (*ashlhi3_1_lea): Ditto.
4275         (*ashlqi3_1): Ditto.
4276         (*ashlqi3_1_lea): Ditto.
4277         (*<shiftrt_insn><mode>3_1): Ditto.
4278         (*<shiftrt_insn>si3_1_zext): Ditto.
4279         (*<shiftrt_insn>qi3_1_slp): Ditto.
4280         (*<rotate_insn><mode>3_1): Ditto.
4281         (*<rotate_insn>si3_1_zext): Ditto.
4282         (*<rotate_insn>qi3_1_slp): Ditto.
4283
4284 2010-04-13  Richard Guenther  <rguenther@suse.de>
4285
4286         * tree-ssa-structalias.c (callused_id): Remove.
4287         (call_stmt_vars): New.
4288         (get_call_vi): Likewise.
4289         (lookup_call_use_vi): Likewise.
4290         (lookup_call_clobber_vi): Likewise.
4291         (get_call_use_vi): Likewise.
4292         (get_call_clobber_vi): Likewise.
4293         (make_transitive_closure_constraints): Likewise.
4294         (handle_const_call): Adjust to do per-call call-used handling.
4295         (handle_pure_call): Likewise.
4296         (find_what_var_points_to): Remove general callused handling.
4297         (init_base_vars): Likewise.
4298         (init_alias_vars): Initialize call_stmt_vars.
4299         (compute_points_to_sets): Process call-used and call-clobbered
4300         vars for call statements.
4301         (delete_points_to_sets): Free call_stmt_vars.
4302
4303 2010-04-13  Richard Guenther  <rguenther@suse.de>
4304
4305         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
4306         Only add RW dependence for dependence distance zero.
4307         Adjust maximal vectorization factor according to dependences.
4308         Move alignment handling ...
4309         (vect_find_same_alignment_drs): ... here.  New function.
4310         (vect_analyze_data_ref_dependences): Adjust.
4311         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
4312         (vect_analyze_data_refs): Adjust minimal vectorization factor
4313         according to data references.
4314         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
4315         dependences before determining the vectorization factor.
4316         Analyze alignment after determining the vectorization factor.
4317         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
4318         dependences before alignment.
4319         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
4320         Adjust prototype.
4321         (vect_analyze_data_refs): Likewise.
4322         (MAX_VECTORIZATION_FACTOR): New define.
4323
4324 2010-04-13  Duncan Sands  <baldrick@free.fr>
4325
4326         * except.h (lang_eh_type_covers): Remove.
4327         * except.c (lang_eh_type_covers): Likewise.
4328
4329 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4330             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4331
4332         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
4333         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
4334         UNITS_PER_LONG where it is ABI relevant.
4335         (s390_return_addr_rtx): Likewise.
4336         (s390_back_chain_rtx): Likewise.
4337         (s390_frame_area): Likewise.
4338         (s390_frame_info): Likewise.
4339         (s390_initial_elimination_offset): Likewise.
4340         (save_gprs): Likewise.
4341         (s390_emit_prologue): Likewise.
4342         (s390_emit_epilogue): Likewise.
4343         (s390_function_arg_advance): Likewise.
4344         (s390_function_arg): Likewise.
4345         (s390_va_start): Likewise.
4346         (s390_gimplify_va_arg): Likewise.
4347         (s390_function_profiler): Likewise.
4348         (s390_optimize_prologue): Likewise.
4349         (s390_rtx_costs): Likewise.
4350         (s390_secondary_reload): Likewise.
4351         (s390_promote_function_mode): Likewise.
4352         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
4353         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
4354         registers available.
4355         (s390_unwind_word_mode): New function.
4356         (s390_function_value): Split 64 bit values into register pair if
4357         used as return value.
4358         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
4359         function call parameters.  Handle parallels.
4360         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
4361         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
4362         (DWARF_CIE_DATA_ALIGNMENT): New macro.
4363         (s390_expand_setmem): Remove unused variable src_addr.
4364         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
4365         deal with 64 bit registers.
4366         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
4367         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
4368         (UNITS_PER_LONG): New macro.
4369         * libjava/include/s390-signal.h: Define extended ucontext
4370         structure containing the upper halfs of the 64 bit registers.
4371
4372 2010-04-13  Simon Baldwin  <simonb@google.com>
4373
4374         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
4375
4376 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
4377
4378         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
4379         rvalue on the RHS if the LHS is of a non-renamable type.
4380         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
4381
4382 2010-04-13  Matthias Klose  <doko@ubuntu.com>
4383
4384         * gcc.c (cc1_options): Handle -iplugindir before processing
4385         the cc1 spec. Only add -iplugindir once.
4386         (cpp_unique_options): Add -iplugindir option if -fplugin* options
4387         found.
4388         * common.opt (iplugindir): Remove `Separate' property, initialize.
4389         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
4390         option.
4391         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
4392         (distclean): Remove plugin dir.
4393         * doc/invoke.texi: Document -iplugindir.
4394
4395 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
4396
4397         * doc/plugins.texi (Loading Plugins): Document short
4398         -fplugin=foo option.
4399         (Plugin API): Mention default_plugin_dir_name function.
4400
4401         * gcc.c (find_file_spec_function): Add new declaration.
4402         (static_spec_func): Use it for "find-file".
4403         (find_file_spec_function): Add new function.
4404         (cc1_options): Add -iplugindir option if -fplugin* options found.
4405
4406         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
4407
4408         * plugin.c (add_new_plugin): Updated comment, and handle short
4409         plugin name.
4410         (default_plugin_dir_name): Added new function.
4411
4412         * common.opt (iplugindir): New option to set the plugin directory.
4413
4414 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
4415
4416         * config/i386/i386.md (any_rotate): New code iterator.
4417         (rotate_insn): New code attribute.
4418         (rotate): Ditto.
4419         (SWIM124): New mode iterator.
4420         (<rotate_insn>ti3): New expander.
4421         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
4422         any_rotate code iterator.
4423         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
4424         using any_rotate code iterator and SWIM124 mode iterator.
4425         (ix86_rotlti3): New insn_and_split pattern.
4426         (ix86_rotrti3): Ditto.
4427         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
4428         ix86_rotl{di,ti}3 patterns.
4429         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
4430         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
4431         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
4432         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
4433         code iterator and SWI mode iterator.
4434         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
4435         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
4436         code iterator.
4437         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
4438         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
4439         (bswap rotatert splitter): Add splitter.
4440         (bswap splitter): Macroize splitter using any_rotate code iterator.
4441         Add insn predicate to split only for TARGET_USE_XCHGB or when
4442         optimizing function for size.
4443
4444 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
4445
4446         * config/pa/pa.c (emit_move_sequence): Remove use of
4447         deleted variable flag_argument_noalias.
4448
4449 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4450
4451         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
4452         configurations.
4453         Add to unsupported targets list.
4454         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
4455         sparc*-sun-solaris2.[567]* from target lists.
4456         * configure: Regenerate.
4457         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
4458         removal.
4459         Remove Solaris 7 patch references.
4460         (Specific, sparc-sun-solaris2.7): Removed.
4461         (sparc-sun-solaris2*): Update Solaris 7 example.
4462         (sparc64-*-solaris2*): Likewise.
4463
4464 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4465
4466         * config.build (alpha*-dec-osf4*): Remove.
4467         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
4468         of obsolete configurations.
4469         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
4470         support.
4471         * config/alpha/t-osf4: Renamed to ...
4472         * config/alpha/t-osf5: ... this.
4473         * config/alpha/osf.h: Renamed to ...
4474         * config/alpha/osf5.h: ... this.
4475         Merged old osf5.h contents.
4476         Update comments.
4477         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
4478         (EXTRA_SPECS): Removed.
4479         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
4480         reflect removal of Tru64 UNIX V4.0/V5.0 support.
4481         Document that.
4482
4483 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4484
4485         * doc/contrib.texi (Contributors, Rainer Orth): Update.
4486
4487 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
4488
4489         PR/43702
4490         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
4491         __thiscall convention.
4492
4493 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
4494
4495         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
4496         orig_base.
4497         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
4498
4499 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
4500
4501         * function.c (assign_parms_initialize_all): Add unused attribute
4502         to fntype.
4503
4504 2010-04-12  Richard Guenther  <rguenther@suse.de>
4505
4506         * gsstruct.def (GSS_CALL): New.
4507         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
4508         * gimple.h: Include tree-ssa-alias.h.
4509         (struct gimple_statement_call): New.
4510         (union gimple_statement_struct_d): Add gimple_call member.
4511         (gimple_call_reset_alias_info): Declare.
4512         (gimple_call_use_set): New function.
4513         (gimple_call_clobber_set): Likewise.
4514         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
4515         * gimple.c (gimple_call_reset_alias_info): New function.
4516         (gimple_build_call_1): Call it.
4517         * lto-streamer-in.c (input_gimple_stmt): Likewise.
4518         * tree-inline.c (remap_gimple_stmt): Likewise.
4519         (expand_call_inline): Remove callused handling.
4520         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
4521         * tree-dfa.c (dump_variable): Likewise.
4522         * tree-parloops.c (parallelize_loops): Likewise.
4523         * tree-ssa.c (init_tree_ssa): Likewise.
4524         (delete_tree_ssa): Likewise.
4525         * tree-flow-inline.h (is_call_used): Remove.
4526         * tree-flow.h (struct gimple_df): Remove callused member.
4527         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
4528         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
4529         (ref_maybe_used_by_call_p_1): Simplify.
4530         (call_may_clobber_ref_p_1): Likewise.
4531         * tree-ssa-structalias.c (compute_points_to_sets): Set
4532         the call stmt used and clobbered sets.
4533         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
4534         (find_tail_calls): Verify the tail call.
4535
4536 2010-04-12  Richard Guenther  <rguenther@suse.de>
4537
4538         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
4539         single-iteration always-inline inlining.
4540         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
4541         (cgraph_decide_inlining): Do not handle always-inline specially.
4542         (try_inline): Remove always-inline cycle detection special case.
4543         Do not recurse on always-inlines.
4544         (cgraph_early_inlining): Do not iterate if not optimizing.
4545         (cgraph_gate_early_inlining): remove.
4546         (pass_early_inline): Run unconditionally.
4547         (gate_cgraph_decide_inlining): New function.
4548         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
4549         not inlining or optimizing.
4550         (cgraph_decide_inlining_of_small_functions): Also consider
4551         always-inline functions.
4552         (cgraph_default_inline_p): Return true for nodes which should
4553         disregard inline limits.
4554         (estimate_function_body_sizes): Assume zero size and time for
4555         nodes which are marked as disregarding inline limits.
4556         (cgraph_decide_recursive_inlining): Do not perform recursive
4557         inlining on always-inline nodes.
4558
4559 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
4560
4561         PR bootstrap/43699
4562         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
4563         for exprs satisfying handled_component_p.
4564
4565 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
4566
4567         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
4568         non-constant aggregate elements.
4569
4570         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
4571         is a real initialization.
4572
4573 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
4574
4575         PR c/36774
4576         * c-decl.c (start_function): Move forward check for nested function.
4577
4578 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
4579
4580         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
4581         * config/sh/sh.c: Include reload.h.
4582         (sh_legitimize_reload_address): New.
4583         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
4584         sh_legitimize_reload_address.
4585
4586 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
4587
4588         * config/sh/sh.md (*movqi_pop): New insn pattern.
4589         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
4590
4591 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
4592
4593         * config/i386/i386.md (any_shiftrt): New code iterator.
4594         (shiftrt_insn): New code attribute.
4595         (shiftrt): Ditto.
4596         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
4597         using any_shiftrt code iterator.
4598         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
4599         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
4600         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
4601         pattern from corresponding peephole2 patterns.
4602         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
4603         using any_shiftrt code iterator.
4604         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
4605         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
4606         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
4607         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
4608         *{ashr,lshr}<mode>3_cmp_zext.
4609         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
4610
4611 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
4612
4613         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
4614         scratch register.
4615         (*lshr<mode>3_cconly): Ditto.
4616
4617 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
4618
4619         * config/i386/i386.md (lshr<mode>3): Macroize expander from
4620         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
4621         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
4622         pattern from *lshr{di,ti}3_1 and corresponding splitters using
4623         DWI mode iterator.
4624         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
4625         from corresponding peephole2 patterns.
4626         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
4627         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
4628         and *lshrdi3_1_rex64 using SWI mode iterator.
4629         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
4630         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
4631         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
4632         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
4633         and *lshrdi3_cmp_rex64 using SWI mode iterator.
4634         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
4635         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
4636         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
4637         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
4638         SWI mode iterator.
4639
4640 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
4641
4642         * config/i386/i386.md (ashr<mode>3): Macroize expander from
4643         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
4644         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
4645         pattern from *ashr{di,ti}3_1 and corresponding splitters using
4646         DWI mode iterator.
4647         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
4648         from corresponding peephole2 patterns.
4649         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
4650         (ashrsi3_cvt): Rename from ashrsi3_31.
4651         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
4652         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
4653         and x86_64_shift_adj_3 using SWI48 mode iterator.
4654         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
4655         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
4656         and *ashrdi3_1_rex64 using SWI mode iterator.
4657         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
4658         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
4659         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
4660         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
4661         and *ashrdi3_cmp_rex64 using SWI mode iterator.
4662         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
4663         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
4664         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
4665         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
4666         SWI mode iterator.
4667         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
4668         * config/i386/i386.c (ix86_split_ashr): Update for renamed
4669         x86_shift<mode>_adj_3 expanders.
4670
4671 2010-04-10  Wei Guozhi  <carrot@google.com>
4672
4673         PR target/42601
4674         * config/arm/arm.c (arm_pic_static_addr): New function.
4675         (legitimize_pic_address): Call arm_pic_static_addr when it detects
4676         a static symbol.
4677         (arm_output_addr_const_extra): Output expression for new pattern.
4678         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
4679
4680 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
4681
4682         * ira-costs.c (record_reg_classes): Ignore alternatives that are
4683         not enabled.
4684
4685         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
4686         * web.c: Include "insn-config.h" and "recog.h".
4687         (union_match_dups): New function.
4688         (web_main): Call it.
4689         (union_defs): Don't try to recognize match_dups.
4690
4691         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
4692         if doing so would replace the entire pattern.
4693
4694 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
4695
4696         PR target/43707
4697         PR target/43709
4698         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
4699         and splitter pattern.  Change splitter operand 1 predicate to
4700         nonmemory_operand.
4701
4702 2010-04-09  Martin Jambor  <mjambor@suse.cz>
4703
4704         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
4705         lattices are addresses of CONST_DECLs with the same initial value.
4706         (ipcp_print_all_lattices): Print values of CONST_DECLs.
4707         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
4708
4709 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
4710             Bernd Schmidt  <bernds@codesourcery.com>
4711
4712         * loop-invariant.c (replace_uses): New static function.
4713         (move_invariant_reg): Use it to ensure we can replace the uses.
4714
4715 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
4716
4717         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
4718         function template.
4719         (picochip_override_options): Enable section anchors only above -O1.
4720         (picochip_reorg): Fixed a couple of build warnings.
4721
4722 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4723
4724         * configure.ac (plugin -rdynamic test): Log result.
4725         * configure: Regenerate.
4726         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
4727         (RDYNAMIC_SPEC): Define.
4728         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
4729
4730 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4731
4732         * configure.ac: Determine Sun ld version numbers.
4733         (comdat_group): Restrict GNU ld version checks to gld.
4734         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
4735         (enable_comdat): Support --enable-comdat.
4736         * configure: Regenerate.
4737         * doc/install.texi (Configuration): Document --enable-comdat.
4738
4739 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4740
4741         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
4742         * config/sol2-gld.h: ... here.
4743         * config.gcc (sparc*-*-solaris2*): Reflect this.
4744         (i[34567]86-*-solaris2*): Use it.
4745
4746 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
4747
4748         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
4749         setup_clocks_p.
4750         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
4751
4752 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4753
4754         PR 42965
4755         * diagnostic.c (diagnostic_initialize): Initialize
4756         some_warnings_are_errors.
4757         (diagnostic_finish): New.
4758         (diagnostic_action_after_output): Call it before exiting.
4759         (diagnostic_report_diagnostic): Do not print message here. Set
4760         some_warnings_are_errors.
4761         * diagnostic.h (diagnostic_context): Delete
4762         issue_warnings_are_errors_message. Add some_warnings_are_errors.
4763         (diagnostic_finish): Declare.
4764         * toplev.c (toplev_main): Call it before exit.
4765
4766 2010-04-09  Jason Merrill  <jason@redhat.com>
4767
4768         PR c++/42623
4769         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
4770         for incomplete type.
4771
4772         PR c++/41788
4773         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
4774         based on a warning flag.
4775
4776 2010-04-09  Richard Guenther  <rguenther@suse.de>
4777
4778         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
4779
4780 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
4781
4782         PR bootstrap/43684
4783         * varasm.c (default_assemble_visibility): Wrap vars that are
4784         set, but unused, by targets without GAS.
4785         * config/rs6000/rs6000.c: (paired_emit_vector_compare):
4786         Remove set, but unused, vars.
4787         (rs6000_legitimize_tls_address): Likewise.
4788         (altivec_expand_dst_builtin): Likewise.
4789         * config/darwin.c (machopic_classify_symbol): Likewise.
4790         (machopic_indirection_name): Likewise.
4791
4792 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
4793
4794         * config/i386/i386.md (DWI): New mode iterator.
4795         (S): New mode attribute.
4796         (shift_operand): Ditto.
4797         (shift_immediate_operand): Ditto.
4798         (ashl_input_operand): Ditto.
4799         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
4800         using SDWIM mode iterator.
4801         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
4802         pattern from *ashl{di,ti}3_1 and corresponding splitters using
4803         DWI mode iterator.
4804         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
4805         from corresponding peephole2 patterns.
4806         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
4807         and x86_64_shift_adj_1 using SWI48 mode iterator.
4808         (x86_shift<mode>_adj_2): Ditto.
4809         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
4810         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
4811         using SWI48 mode iterator.
4812         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
4813         *ashldi3_cmp_rex64 using SWI mode iterator.
4814         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
4815         *ashldi3_cconly_rex64 using SWI mode iterator.
4816         * config/i386/i386.c (ix86_split_ashl): Update for renamed
4817         x86_shift<mode>_adj_{1,2}.
4818         (ix86_split_ashr): Ditto.
4819         (ix86_split_lshr): Ditto.
4820
4821 2010-04-09  Richard Guenther  <rguenther@suse.de>
4822
4823         * target.h (builtin_conversion): Pass in input and output types.
4824         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
4825         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
4826         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
4827         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
4828
4829         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
4830         Handle AVX modes.
4831         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
4832
4833 2010-04-09  Richard Guenther  <rguenther@suse.de>
4834
4835         PR target/43152
4836         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
4837
4838 2010-04-09  Richard Guenther  <rguenther@suse.de>
4839
4840         * tree-vectorizer.h (struct _stmt_vec_info): Document
4841         that vectype is the type of the LHS.
4842         (supportable_widening_operation, supportable_narrowing_operation):
4843         Get both input and output vector types as arguments.
4844         (vect_is_simple_use_1): Declare.
4845         (get_same_sized_vectype): Likewise.
4846         * tree-vect-loop.c (vect_determine_vectorization_factor):
4847         Set STMT_VINFO_VECTYPE to the vector type of the def.
4848         (vectorizable_reduction): Adjust.
4849         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
4850         Adjust.  Specify the output vector type.
4851         (vect_pattern_recog_1): Adjust.
4852         * tree-vect-stmts.c (get_same_sized_vectype): New function.
4853         (vectorizable_call): Adjust.
4854         (vectorizable_conversion): Likewise.
4855         (vectorizable_operation): Likewise.
4856         (vectorizable_type_demotion): Likewise.
4857         (vectorizable_type_promotion): Likewise.
4858         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
4859         the def.
4860         (vect_is_simple_use_1): New function.
4861         (supportable_widening_operation): Get both input and output
4862         vector types.
4863         (supportable_narrowing_operation): Likewise.
4864         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
4865
4866 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
4867
4868         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
4869         __thiscall and _thiscall as predefined macros.
4870         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
4871         thiscall attribute handling.
4872         (ix86_comp_type_attributes): Likewise.
4873         (ix86_function_regparm): Likewise.
4874         (ix86_return_pops_args): Likewise.
4875         (init_cumulative_args): Likewise.
4876         (find_drap_reg): Likewise.
4877         (ix86_static_chain): Likewise.
4878         (x86_this_parameter): Likewise.
4879         (x86_output_mi_thunk): Likewise.
4880         (ix86_attribute_table): Add description for thiscall attribute.
4881         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
4882         * doc/extend.texi: Add documentation for thiscall.
4883
4884 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4885
4886         PR c++/28584
4887         * c.opt (Wint-to-pointer-cast): Available in C++.
4888         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
4889
4890 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4891
4892         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
4893         * calls.c (expand_call): Pass the function type to aggregate_value_p.
4894         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
4895         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
4896         function type instead.  Reorder and simplify checks.
4897
4898         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
4899
4900 2010-04-08  Jing Yu  <jingyu@google.com>
4901             Zdenek Dvorak  <ook@ucw.cz>
4902
4903         PR tree-optimization/42720
4904         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
4905         loop unswitch conditions here from ...
4906         (tree_unswitch_single_loop): ... here.
4907
4908 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
4909
4910         * tree-if-conv.c: Fix comments and simplify logic.
4911
4912 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
4913
4914         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
4915         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
4916         (main_tree_if_conversion): Update call to tree_if_conversion.
4917
4918 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4919
4920         PR 42485
4921         * doc/invoke.texi (-b,-V): Delete.
4922         * doc/tm.texi: Do not mention -b.
4923         * gcc.c (display_help): Delete -b and -V.
4924         (process_command): Delete -b and -V.
4925         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
4926
4927 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
4928             Wolfgang Gellerich  <gellerich@de.ibm.com>
4929
4930         Implement target hook for loop unrolling
4931         * target.h (loop_unroll_adjust): Add a new target hook function.
4932         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
4933         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
4934         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
4935         (s390_loop_unroll_adjust): Implement the new target hook for s390.
4936         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
4937         target hook.
4938         (decide_unroll_stupid): Likewise.
4939
4940 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4941
4942         PR target/43643
4943         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
4944
4945 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4946
4947         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
4948         (Specific, *-*-solaris2*): Likewise.
4949         Don't prefer Sun as over GNU as.
4950
4951 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
4952
4953         * config/s390/s390.c (override_options): Adjust the z10 defaults
4954         for max-unroll-times, max-completely-peeled-insns
4955         and max-completely-peel-times.
4956
4957 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4958
4959         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
4960         instructions for z10.
4961         (s390_expand_setmem): Likewise.
4962         (s390_expand_cmpmem): Likewise.
4963
4964 2010-04-08  Richard Guenther  <rguenther@suse.de>
4965
4966         PR tree-optimization/43679
4967         * tree-ssa-pre.c (eliminate): Only propagate copies.
4968
4969 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
4970
4971         PR bootstrap/43681
4972         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
4973         set but not used variable warning.
4974
4975 2010-04-08  Wei Guozhi  <carrot@google.com>
4976
4977         PR target/41653
4978         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
4979         (arm_size_rtx_costs): Call the new function when optimized for size.
4980
4981 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
4982
4983         PR debug/43670
4984         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
4985         op0 is not a MEM, just return NULL instead of assertion
4986         failure.
4987         (discover_nonconstant_array_refs): Don't walk debug stmts.
4988
4989 2010-04-08  Doug Kwan  <dougkwan@google.com>
4990
4991         * configure.ac: Recognize gold and do not use its version number
4992         to test ld features.
4993         * configure: Regenerate.
4994
4995 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
4996
4997         PR middle-end/40815
4998         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
4999         (negate_value): Move code to push elements to broken_up_substracts ...
5000         (eliminate_plus_minus_pair): ... here.  Push operands that have no
5001         negative pair to plus_negates.
5002         (repropagate_negates, init_reassoc, fini_reassoc): Update.
5003
5004 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5005
5006         * doc/install.texi (Configuration): Move description of
5007         --enable-lto, --with-libelf*, --enable-gold from Java section to
5008         general section.
5009
5010         * doc/generic.texi (Working with declarations)
5011         (Function Properties, C and C++ Trees): Fix typos.
5012         * doc/sourcebuild.texi (Top Level): Likewise.
5013
5014 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
5015
5016         PR c/18624
5017         * tree.h (DECL_READ_P): Define.
5018         (struct tree_decl_common): Add decl_read_flag.
5019         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
5020         a set but not used warning.
5021         (merge_decls): Merge DECL_READ_P flag.
5022         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
5023         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
5024         * c-common.c (handle_used_attribute, handle_unused_attribute):
5025         Likewise.
5026         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
5027         New prototypes.
5028         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
5029         New functions.
5030         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
5031         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
5032         c_parser_binary_expression, c_parser_cast_expression,
5033         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
5034         Call default_function_array_read_conversion instead of
5035         default_function_array_conversion where needed.
5036         (c_parser_unary_expression, c_parser_conditional_expression,
5037         c_parser_postfix_expression_after_primary, c_parser_initelt):
5038         Likewise.  Call mark_exp_read where needed.
5039         (c_parser_statement_after_labels, c_parser_asm_operands,
5040         c_parser_typeof_specifier, c_parser_sizeof_expression,
5041         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
5042         where needed.
5043         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
5044         New.
5045         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
5046         (warn_unused_but_set_parameter): Default to warn_unused
5047         && extra_warnings.
5048         * doc/invoke.texi: Document -Wunused-but-set-variable and
5049         -Wunused-but-set-parameter.
5050
5051         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
5052         used count variable.
5053         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
5054         when operandN variables aren't used in the body of the expander
5055         or splitter.
5056         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
5057         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
5058         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
5059         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
5060         FOR_EACH_IMM_USE_ON_STMT): Likewise.
5061         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
5062         * tree.c (PROCESS_ARG): Likewise.
5063
5064 2010-04-07  Simon Baldwin  <simonb@google.com>
5065
5066         * diagnostic.h (diagnostic_override_option_index): New macro to
5067         set a diagnostic's option_index.
5068         * c-tree.h (c_cpp_error): Add warning reason argument.
5069         * opts.c (_warning_as_error_callback): New.
5070         (register_warning_as_error_callback): Store callback for
5071         warnings enabled via enable_warning_as_error.
5072         (enable_warning_as_error): Call callback, minor code tidy.
5073         * opts.h (register_warning_as_error_callback): Declare.
5074         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
5075         response to -Werror=.
5076         (c_common_init_options): Register warning_as_error_callback in opts.c.
5077         * common.opt: Add -Wno-cpp option.
5078         * c-common.c (struct reason_option_codes_t): Map cpp warning
5079         reason codes to gcc option indexes.
5080         * (c_option_controlling_cpp_error): New function, lookup the gcc
5081         option index for a cpp warning reason code.
5082         * (c_cpp_error): Add warning reason argument, call
5083         c_option_controlling_cpp_error for diagnostic_override_option_index.
5084         * doc/invoke.texi: Document -Wno-cpp.
5085
5086 2010-04-07  Richard Guenther  <rguenther@suse.de>
5087
5088         * ipa-reference.c (mark_load): Use get_base_address.
5089         (mark_store): Likewise.
5090
5091         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
5092         inserting GIMPLE_NOPs into the IL.
5093         * tree-ssa-structalias.c (get_constraint_for_component_ref):
5094         Explicitly strip handled components and indirect references.
5095
5096         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
5097         folding address expressions.
5098         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
5099         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
5100         operand_equal_p to compare decls.
5101         (ptr_deref_may_alias_decl_p): Likewise.
5102         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
5103         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
5104         Handle reversed comparison ops.
5105         * tree-sra.c (asm_visit_addr): Use get_base_address.
5106         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
5107         * ipa-reference.c (mark_address): Use get_base_address.
5108
5109 2010-04-07  Richard Guenther  <rguenther@suse.de>
5110
5111         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
5112         Propagate constants everywhere.
5113
5114 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
5115
5116         PR debug/43516
5117         * tree.c (MAX_INT_CACHED_PREC): Define.
5118         (nonstandard_integer_type_cache): New array.
5119         (build_nonstandard_integer_type): Cache results for precision
5120         <= MAX_INT_CACHED_PREC.
5121
5122 2010-04-07  Richard Guenther  <rguenther@suse.de>
5123
5124         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
5125         -fargument-noalias-global, -fargument-noalias-anything): Remove.
5126         * common.opt: Likewise.
5127         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
5128         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
5129         (nonoverlapping_memrefs_p): Likewise.
5130         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
5131         * opts.c (common_handle_option): Handle OPT_fargument_alias,
5132         OPT_fargument_noalias, OPT_fargument_noalias_anything and
5133         OPT_fargument_noalias_global for backward compatibility.
5134
5135 2010-04-07  Richard Guenther  <rguenther@suse.de>
5136
5137         PR tree-optimization/43270
5138         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
5139         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
5140         * tree-ssa-pre.c (phi_translate_1): Adjust.
5141         (fully_constant_expression): Split out vn_reference handling to ...
5142         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
5143         Fold reads from constant strings.
5144         (vn_reference_lookup): Handle fully constant references.
5145         (vn_reference_lookup_pieces): Likewise.
5146         * Makefile.in (expmed.o-warn): Add -Wno-error.
5147
5148 2010-04-07  Martin Jambor  <mjambor@suse.cz>
5149
5150         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
5151
5152 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
5153
5154         PR driver/41594
5155         * gcc.c: Add -static-libstdc++ to list of recognized options.
5156
5157 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5158
5159         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
5160
5161 2010-04-07  Richard Guenther  <rguenther@suse.de>
5162
5163         PR middle-end/42617
5164         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
5165         bases build simple mem attributes to retain points-to information.
5166
5167 2010-04-07  Richard Guenther  <rguenther@suse.de>
5168
5169         PR middle-end/42617
5170         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
5171         preserve points-to related information.
5172
5173 2010-04-07  Richard Guenther  <rguenther@suse.de>
5174
5175         PR middle-end/42617
5176         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
5177         discard plain indirect references.
5178         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
5179         * tree.c (tree_nop_conversion): Likewise.
5180
5181 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
5182
5183         PR debug/43628
5184         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
5185
5186 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
5187
5188         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
5189         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
5190
5191 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
5192
5193         * tree-if-conv.c: Fix indentation and comments.
5194
5195 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
5196
5197         * tree-if-conv.c: Sort static functions in topological order.
5198
5199 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
5200
5201         * tree-if-conv.c: Fix indentation and comments.
5202
5203 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
5204
5205         PR middle-end/43519
5206         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
5207         lang_hooks.types.type_for_size instead of
5208         build_nonstandard_integer_type.
5209         When converting an unsigned type to signed, double its precision.
5210         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
5211         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
5212         (graphite_create_new_loop_guard): When ub + 1 wraps around,
5213         use lb <= ub.
5214
5215 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
5216
5217         PR middle-end/43519
5218         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
5219         POINTER_PLUS_EXPR for pointer types.
5220
5221 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
5222
5223         PR middle-end/43519
5224         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
5225         * graphite-clast-to-gimple.c: Include langhooks.h.
5226         (max_signed_precision_type): New.
5227         (max_precision_type): Takes two types as arguments.
5228         (precision_for_value): New.
5229         (precision_for_interval): New.
5230         (gcc_type_for_interval): New.
5231         (gcc_type_for_value): New.
5232         (gcc_type_for_clast_term): New.
5233         (gcc_type_for_clast_red): New.
5234         (gcc_type_for_clast_bin): New.
5235         (gcc_type_for_clast_expr): Split up into several functions.
5236         (gcc_type_for_clast_eq): Rewritten.
5237         (compute_bounds_for_level): New.
5238         (compute_type_for_level_1): New.
5239         (compute_type_for_level): New.
5240         (gcc_type_for_cloog_iv): Removed.
5241         (gcc_type_for_iv_of_clast_loop): Rewritten.
5242         (graphite_create_new_loop): Compute the lower and upper bound types
5243         with gcc_type_for_clast_expr.
5244         (graphite_create_new_loop_guard): Same.
5245         (find_cloog_iv_in_expr): Removed.
5246         (compute_cloog_iv_types_1): Removed.
5247         (compute_cloog_iv_types): Removed.
5248         (gloog): Do not call compute_cloog_iv_types.
5249         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
5250         GBB_CLOOG_IV_TYPES.
5251         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
5252         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
5253         (GBB_CLOOG_IV_TYPES): Removed.
5254
5255 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
5256
5257         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
5258         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
5259         (detect_commutative_reduction): Same.
5260
5261 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
5262
5263         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
5264         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
5265         argument.
5266         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
5267         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
5268         (rewrite_commutative_reductions_out_of_ssa): Same.
5269         * passes.c (execute_function_todo): Call verify_ssa for every pass
5270         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
5271         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
5272         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
5273         with an extra argument.
5274         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
5275         verify_ssa only when the extra argument is true.
5276         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
5277         with an extra argument.
5278         (tree_transform_and_unroll_loop): Same.
5279
5280 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
5281
5282         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
5283         for all the passes of the LNO having LOOP_CLOSED_SSA.
5284         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
5285         * tree-loop-distribution.c (pass_loop_distribution): Same.
5286         * tree-pass.h (TODO_verify_loops): Removed.
5287         * tree-ssa-loop.c (pass_tree_loop_init): Same.
5288         (pass_lim): Same.
5289         (pass_tree_unswitch): Same.
5290         (pass_predcom): Same.
5291         (pass_vectorize): Same.
5292         (pass_linear_transform): Same.
5293         (pass_graphite_transforms): Same.
5294         (pass_iv_canon): Same.
5295         (pass_complete_unroll): Same.
5296         (pass_complete_unrolli): Same.
5297         (pass_parallelize_loops): Same.
5298         (pass_loop_prefetch): Same.
5299         (pass_iv_optimize): Same.
5300
5301 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
5302
5303         PR middle-end/32824
5304         * passes.c (init_optimization_passes): Move pass_lim before
5305         pass_copy_prop and pass_dce_loop.
5306
5307 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
5308
5309         PR target/43667
5310         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
5311         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
5312         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
5313         MULTI_* defines for 4 argument vpermil2p* builtins.
5314
5315 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
5316
5317         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
5318         * config/i386/i386.c (x86_maybe_negate_const_int): New.
5319         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
5320         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
5321         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
5322         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
5323         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
5324         Use x86_maybe_negate_const_int to output insn mnemonic.
5325         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
5326         check from instruction predicate.  Update comments.
5327         * config/i386/sync.md (sync_add<mode>): Use
5328         x86_maybe_negate_const_int to output insn mnemonic.
5329
5330 2010-04-06  Jan Hubicka  <jh@suse.cz>
5331
5332         PR tree-optimization/42906
5333         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
5334         IGNORE_SELF argument.  Set visited_control_parents for fully
5335         processed BBs.
5336         (find_obviously_necessary_stmts): Update call of
5337         mark_control_dependent_edges_necessary.
5338         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
5339
5340 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
5341
5342         * config/i386/i386.md: Remove comment about 'e' and 'E'
5343         operand modifier.
5344
5345 2010-04-06  Richard Guenther  <rguenther@suse.de>
5346
5347         PR tree-optimization/43627
5348         * tree-vrp.c (extract_range_from_unary_expr): Widenings
5349         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
5350         not varying.
5351
5352 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
5353
5354         * BASE-VER: Change to 4.6.0.
5355
5356         PR target/43638
5357         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
5358         handling.
5359
5360 2010-04-06  Richard Guenther  <rguenther@suse.de>
5361
5362         PR middle-end/43661
5363         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
5364
5365 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5366
5367         * doc/invoke.texi (Optimize Options): Document that LTO
5368         won't remove object access purely due to incompatible
5369         declarations.
5370
5371 2010-04-04  Matthias Klose  <doko@ubuntu.com>
5372
5373         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
5374         Initialize variable.
5375
5376 2010-04-03  Richard Guenther  <rguenther@suse.de>
5377
5378         PR middle-end/42509
5379         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
5380         require a non-NULL MEM_OFFSET.
5381
5382 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
5383
5384         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
5385         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
5386         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
5387         config/alpha/predicates.md, config/arm/arm.md,
5388         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
5389         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
5390         config/darwin9.h, config/darwin.c, config/darwin.h,
5391         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
5392         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
5393         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
5394         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
5395         config/mips/mips.md, config/mn10300/mn10300.c,
5396         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
5397         config/rs6000/aix.h, config/rs6000/dfp.md,
5398         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
5399         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
5400         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
5401         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
5402         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
5403         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
5404         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
5405         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
5406         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
5407         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
5408         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
5409         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
5410         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
5411         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
5412         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
5413         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
5414         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
5415         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
5416         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
5417         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
5418         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
5419         opt-functions.awk, opth-gen.awk, params.def, passes.c,
5420         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
5421         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
5422         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
5423         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
5424         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
5425         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
5426         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
5427         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
5428         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
5429         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
5430         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
5431         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
5432         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
5433         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
5434
5435 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5436
5437         PR other/43620
5438         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
5439         * aclocal.m4: Regenerate.
5440
5441 2010-04-02  Richard Guenther  <rguenther@suse.de>
5442
5443         PR tree-optimization/43629
5444         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
5445         if we have seen a constant value.
5446
5447 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
5448
5449         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
5450
5451 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
5452
5453         PR target/43469
5454         * arm.c (legitimize_tls_address): Adjust call to
5455         gen_tls_load_dot_plus_four.
5456         (arm_note_pic_base): New function.
5457         (arm_cannot_copy_insn_p): Use it.
5458         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
5459         constraint.
5460
5461 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5462
5463         PR bootstrap/43531
5464
5465         Revert:
5466         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5467
5468         * Makefile.in ($(out_object_file)): Depend on
5469         gt-$(basename $(notdir $(out_file))).h.
5470
5471 2010-04-01  Ralf Corsépius <ralf.corsepius@rtems.org>
5472
5473         * config.gcc (lm32-*-rtems*): Add t-lm32.
5474
5475 2010-04-01  Joel Sherrill <joel.sherrill@oarcorp.com>
5476
5477         * config.gcc: Add lm32-*-rtems*.
5478         * config/lm32/rtems.h: New file.
5479
5480 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
5481
5482         PR target/42609
5483         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
5484
5485 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
5486
5487         * dwarf2out.c (output_compilation_unit_header): For
5488         -gdwarf-4 use version 4 instead of version 3.
5489         (output_line_info): For version 4 and above emit additional
5490         maximum ops per insn header field.
5491         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
5492
5493         * dwarf2out.c (is_c_family, is_java): Remove.
5494         (lower_bound_default): New function.
5495         (add_bound_info, gen_descr_array_type_die): Use it.
5496
5497 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
5498
5499         PR debug/43325
5500         * dwarf2out.c (gen_variable_die): Allow debug info for variable
5501         re-declaration when it happens in a function.
5502
5503 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
5504
5505         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
5506         (cgraph_remove_function_insertion_hook): Same.
5507         (cgraph_call_function_insertion_hooks): Same.
5508
5509 2010-04-01  Richard Guenther  <rguenther@suse.de>
5510
5511         PR middle-end/43614
5512         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
5513         and TREE_THIS_VOLATILE.
5514         (copy_ref_info): Likewise.
5515         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
5516         * tree.c (build6_stat): Ignore side-effects of all but arg5
5517         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
5518         TARGET_MEM_REF.
5519
5520 2010-04-01  Richard Guenther  <rguenther@suse.de>
5521
5522         PR tree-optimization/43607
5523         * ipa-type-escape.c (check_call): Do not access non-existing
5524         arguments.
5525
5526 2010-04-01  Richard Guenther  <rguenther@suse.de>
5527
5528         PR middle-end/43602
5529         Revert
5530         2010-03-30  Seongbae Park <seongbae.park@gmail.com>
5531                     Jack Howarth <howarth@bromo.med.uc.edu>
5532
5533         * tree-profile.c (tree_init_ic_make_global_vars): Make static
5534         variables TLS.
5535
5536 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5537
5538         * doc/install.texi (Prerequisites): Document libelf usability on
5539         IRIX 5/6 and Solaris 2.
5540         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
5541         Update GNU as, GNU ld requirements.
5542         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
5543         Document Sun Studio compiler download.
5544         Update and simplify as, ld recommendations.
5545         (Specific, *-*-solaris2.7): Note obsoletion, removal.
5546
5547 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5548
5549         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
5550         with_tune_32 to pentium4.
5551
5552 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
5553
5554         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
5555
5556 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5557
5558         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
5559         obsoletion, removal.
5560         Update IDO URL.
5561         Document GNU as requirement.
5562         Update configure requirements.
5563         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
5564         Recomment IRIX 6.5.18+.
5565         Document IDF/IDL requirement.
5566         Document GNU as requirement.
5567         Document GNU ld bootstrap failure.
5568         Remove freeware.sgi.com reference.
5569
5570 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5571
5572         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
5573         UNIX V4.0, V5.0 obsoletion, removal.
5574         Remove --with-gc=simple reference.
5575         Update VM requirements during bootstrap.
5576         Remove -oldas bootstrap description.
5577         Update binutils reference.
5578         Remove comparison failure note.
5579
5580 2010-03-31  Richard Guenther  <rguenther@suse.de>
5581             Zdenek Dvorak  <ook@ucw.cz>
5582             Sebastian Pop  <sebastian.pop@amd.com>
5583
5584         PR middle-end/43464
5585         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
5586         with multiple arguments.
5587         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
5588
5589 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
5590
5591         * graphite-dependences.c (print_pddr): Call print_pdr with an
5592         extra argument.
5593         * graphite-poly.c (debug_pdr): Add an extra argument for the
5594         verbosity level.
5595         (print_pdr): Same.
5596         (print_pbb_domain): Same.
5597         (print_pbb): Same.
5598         (print_scop_context): Same.
5599         (print_scop): Same.
5600         (print_cloog): Same.
5601         (debug_pbb_domain): Same.
5602         (debug_pbb): Same.
5603         (print_pdrs): Same.
5604         (debug_pdrs): Same.
5605         (debug_scop_context): Same.
5606         (debug_scop): Same.
5607         (debug_cloog): Same.
5608         (print_scop_params): Same.
5609         (debug_scop_params): Same.
5610         (print_iteration_domain): Same.
5611         (print_iteration_domains): Same.
5612         (debug_iteration_domain): Same.
5613         (debug_iteration_domains): Same.
5614         (print_scattering_function): Same.
5615         (print_scattering_functions): Same.
5616         (debug_scattering_function): Same.
5617         (debug_scattering_functions): Same.
5618         * graphite-poly.h (debug_pdr): Update declaration.
5619         (print_pdr): Same.
5620         (print_pbb_domain): Same.
5621         (print_pbb): Same.
5622         (print_scop_context): Same.
5623         (print_scop): Same.
5624         (print_cloog): Same.
5625         (debug_pbb_domain): Same.
5626         (debug_pbb): Same.
5627         (print_pdrs): Same.
5628         (debug_pdrs): Same.
5629         (debug_scop_context): Same.
5630         (debug_scop): Same.
5631         (debug_cloog): Same.
5632         (print_scop_params): Same.
5633         (debug_scop_params): Same.
5634         (print_iteration_domain): Same.
5635         (print_iteration_domains): Same.
5636         (debug_iteration_domain): Same.
5637         (debug_iteration_domains): Same.
5638         (print_scattering_function): Same.
5639         (print_scattering_functions): Same.
5640         (debug_scattering_function): Same.
5641         (debug_scattering_functions): Same.
5642
5643 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
5644
5645         * graphite-poly.c (print_scattering_function_1): New.
5646         (print_scattering_function): Call it.
5647         (print_scop_params): Remove spaces at the end of lines.
5648         (print_cloog): New.
5649         (debug_cloog): New.
5650         * graphite-poly.h (print_cloog): Declared.
5651         (debug_cloog): Declared.
5652
5653 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
5654
5655         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
5656         in loop->header.
5657         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
5658         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
5659         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
5660         to switch between adding the IV bump in loop->latch or in loop->header.
5661
5662 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
5663
5664         * graphite-poly.c (print_scattering_function): Pretty print following
5665         the scoplib format.
5666         (print_pdr): Same.
5667         (print_pbb_domain): Same.
5668         (dump_gbb_cases): Same.
5669         (dump_gbb_conditions): Same.
5670         (print_pdrs): Same.
5671         (print_pbb): Same.
5672         (print_scop_params): Same.
5673         (print_scop_context): Same.
5674         (print_scop): Same.
5675         (print_pbb_body): New.
5676         (lst_indent_to): New.
5677         (print_lst): Start new lines with a #.
5678         * graphite-poly.h (pbb_bb): New.
5679         (pbb_index): Use pbb_bb.
5680         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
5681         disjuncts.
5682         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
5683
5684 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
5685
5686         * dwarf2out.c (size_of_die): For -gdwarf-4 use
5687         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
5688         and 0 instead of 1 for dw_val_class_flag.
5689         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
5690         dw_val_class_range_list, dw_val_class_loc_list,
5691         dw_val_class_lineptr and dw_val_class_macptr, use
5692         DW_FORM_flag_present for dw_val_class_flag and
5693         DW_FORM_exprloc for dw_val_class_loc.
5694         (output_die): For -gdwarf-4 print dw_val_class_loc
5695         size as uleb128 instead of 1 or 2 bytes and don't print
5696         anything for dw_val_class_flag.
5697
5698         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
5699         instead of cselib_lookup following by tweaking locs->setting_insn.
5700
5701         PR bootstrap/43596
5702         * cselib.c (cselib_process_insn): Clear cselib_current_insn
5703         even before returning from label, setjmp call or volatile asm
5704         handling.
5705
5706 2010-03-31  Richard Guenther  <rguenther@suse.de>
5707
5708         PR middle-end/43600
5709         * cgraphunit.c (cgraph_output_in_order): Do not allocate
5710         temporary data on stack.
5711
5712 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5713
5714         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
5715         (PUSHSECTION_ASM_OP): Remove.
5716         (POPSECTION_ASM_OP): Remove.
5717         (PUSHSECTION_FORMAT): Remove.
5718         * config/sol2.h (PUSHSECTION_FORMAT): Define.
5719         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
5720         * config/sol2.c (solaris_output_init_fini): Use it.
5721
5722 2010-03-31  Jie Zhang  <jie@codesourcery.com>
5723
5724         PR 43574
5725         * opt-functions.awk (var_type_struct): Use signed char type
5726         for simple variables.
5727
5728 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5729
5730         * config/sol2.c: Include output.h.
5731         (solaris_assemble_visibility): New function.
5732         * config/t-sol2 (sol2.o): Add output.h dependency.
5733         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
5734         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
5735         Redefine.
5736
5737 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
5738
5739         PR target/43580
5740         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
5741         V2SImode or XFmode on PRE_DEC.
5742
5743         PR debug/43557
5744         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
5745         BLKmode.
5746
5747 2010-03-31  Jie Zhang  <jie@codesourcery.com>
5748
5749         PR 43562
5750         * reload.h (caller_save_initialized_p): Declare.
5751         * toplev.c (backend_init_target): Don't call
5752         init_caller_save but set caller_save_initialized_p to false.
5753         * caller-save.c (caller_save_initialized_p): Define.
5754         (init_caller_save): Check caller_save_initialized_p.
5755         * ira.c (ira): Call init_caller_save if flag_caller_saves.
5756
5757 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5758
5759         PR target/39048
5760         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
5761         and soft-fp/t-softfp to tmake_file.
5762         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
5763         (LIBGCC2_TF_CEXT): Define.
5764         (TF_SIZE): Define.
5765
5766 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
5767
5768         PR debug/42977
5769         * cselib.c (n_useless_values): Document handling of debug locs.
5770         (n_useless_debug_values, n_debug_values): New variables.
5771         (new_elt_loc_list): Don't add to debug values, keep count.
5772         (promote_debug_loc): New.
5773         (cselib_reset_table): Zero new variables.
5774         (entry_and_rtx_equal_p): Promote debug locs.
5775         (discard_useless_locs): Increment n_useless_debug_values for
5776         debug values.
5777         (remove_useless_values): Adjust n_useless_values and n_debug_values
5778         with n_useless_debug_values.
5779         (add_mem_for_addr): Promote debug locs.
5780         (cselib_lookup_mem): Likewise.
5781         (cselib_lookup_addr): Renamed to...
5782         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
5783         (cselib_log_lookup): ... this.  Turn into...
5784         (cselib_lookup_addr): ... new wrapper.
5785         (cselib_lookup_from_insn): New.
5786         (cselib_invalidate_regno): Increment n_useless_debug_values for
5787         debug values.
5788         (cselib_invalidate_mem): Likewise.
5789         (cselib_process_insn): Take n_deleted and n_debug_values into
5790         account to guard remove_useless_value call.
5791         (cselib_finish): Zero n_useless_debug_values.
5792         * cselib.h (cselib_lookup_from_insn): Declare.
5793         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
5794         (sched_analyze_2): Likewise.
5795
5796 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
5797
5798         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
5799         functions.
5800         (adjust_mems): Replace narrowing SUBREG of expression containing
5801         just PLUS, MINUS, MULT and ASHIFT of registers and constants
5802         with operations in the narrower mode.
5803
5804         PR debug/43593
5805         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
5806         regs_invalidated_by_call instead all call_used_reg_set registers.
5807
5808 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
5809
5810         PR middle-end/43430
5811         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
5812         pointer comparisons with types_compatible_p.
5813         * tree-vect-stmts.c (vectorizable_call): Same.
5814         (vectorizable_condition): Same.
5815
5816 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5817
5818         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
5819         stack check if the mask would be zero.
5820
5821 2010-03-30  Seongbae Park <seongbae.park@gmail.com>
5822             Jack Howarth <howarth@bromo.med.uc.edu>
5823
5824         * tree-profile.c (tree_init_ic_make_global_vars): Make static
5825         variables TLS.
5826
5827 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
5828
5829         PR other/25232
5830         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
5831         and __unordtf2.
5832         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
5833         Include ___unordxf2 and ___unordtf2.
5834         * config/i386/libgcc-glibc.ver: Do not define inheritance from
5835         GCC_4.4.0 here.
5836
5837 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
5838
5839         * config/lm32/t-lm32: New file.
5840         * config.gcc: Use the above file when targetting lm32.
5841
5842 2010-03-28  Duncan Sands  <baldrick@free.fr>
5843
5844         * Makefile.in (PLUGIN_HEADERS): Add except.h.
5845
5846 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
5847
5848         PR middle-end/43431
5849         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
5850         Improve vectorization cost model diagnostic.
5851
5852 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
5853
5854         PR middle-end/43436
5855         * tree-vect-data-refs.c (vect_analyze_data_refs): When
5856         compute_data_dependences_for_loop returns false, early exit
5857         and output an extra diagnostic for the failed data reference
5858         analysis.
5859
5860 2010-03-29  Richard Guenther  <rguenther@suse.de>
5861
5862         PR tree-optimization/43560
5863         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
5864         (can_sm_ref_p): Treat stores to readonly locations as trapping.
5865
5866 2010-03-29  Jie Zhang  <jie@codesourcery.com>
5867
5868         PR 43564
5869         * toplev.c (process_options): Set optimization_default_node
5870         and optimization_current_node.
5871         * opts.c (decode_options): Don't set optimization_default_node
5872         and optimization_current_node.
5873
5874 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
5875
5876         * config/rtems.h: Abandon -qrtems_debug.
5877
5878 2010-03-28  Jan Hubicka  <jh@suse.cz>
5879
5880         PR tree-optimization/43505
5881         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
5882         map should not be copied.
5883
5884 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5885
5886         PR middle-end/41674
5887         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
5888         cdtors, set DECL_PRESERVE_P.
5889         * ipa.c (cgraph_externally_visible_p): Return true if declaration
5890         should be preseved.
5891
5892 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
5893
5894         PR tree-optimization/43528
5895         * stor-layout.c (place_field): Check that constant fits into
5896         unsigned HWI when skipping calculation of MS bitfield layout.
5897
5898 2010-03-27  Jan Hubicka  <jh@suse.cz>
5899
5900         PR middle-end/43391
5901         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
5902         notice_global_symbol work.
5903
5904 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
5905
5906         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
5907         instead of dwarf2out_decl.
5908         (struct var_loc_node): Remove section_label field.
5909         (dwarf2out_function_decl): New function.
5910         (dwarf2out_var_location): Don't set section_label field.
5911         (dwarf2out_begin_function): Don't empty decl_loc_table here.
5912
5913 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
5914
5915         PR tree-optimization/43544
5916         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
5917         First argument for builtin vectorized function hook is now a
5918         tree to be able to distinguish between machine specific and
5919         standard builtins.
5920         * targhooks.c (default_builtin_vectorized_function): Ditto.
5921         * targhooks.h (default_builtin_vectorized_function): Ditto.
5922         * target.h (struct gcc_target): Ditto.
5923         * tree-vect-stmts.c (vectorizable_function): Ditto.
5924         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
5925         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
5926         Ditto.
5927
5928 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
5929
5930         PR c/43381
5931         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
5932         nested binding iff it is a FUNCTION_DECL.
5933         (store_parm_decls_newstyle): Pass nested=true to bind for
5934         FUNCTION_DECLs amongst parameters.
5935
5936 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
5937
5938         * var-tracking.c (vt_expand_loc_callback): Don't run
5939         cselib_expand_value_rtx_cb in dummy mode if
5940         cselib_dummy_expand_value_rtx_cb returned false.
5941
5942         * var-tracking.c (emit_note_insn_var_location): For one part
5943         notes with offset 0, don't add EXPR_LIST around the location.
5944         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
5945         add_location_or_const_value_attribute): Adjust for that change.
5946
5947         PR debug/43540
5948         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
5949         into first operand and location into second.
5950         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
5951         dw_cfi_oprnd_loc for DW_CFA_expression.
5952         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
5953         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
5954         assume first argument is regnum and second argument is location.
5955
5956 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
5957
5958         PR target/42113
5959         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
5960         of scratch register to DImode.  Split to DImode comparison operator.
5961         Use SImode subreg of scratch register in the multiplication.
5962         (*cmp_sadd_sidi): Ditto.
5963         (*cmp_ssub_si): Ditto.
5964         (*cmp_ssub_sidi): Ditto.
5965
5966 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
5967
5968         PR target/43524
5969         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
5970         Remove invalid assert and wrong comment.
5971
5972 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
5973
5974         PR debug/43516
5975         * flags.h (final_insns_dump_p): New extern.
5976         * final.c (final_insns_dump_p): New variable.
5977         (rest_of_clean_state): Set it before -fdump-final-insns=
5978         dumping, clear afterwards.
5979         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
5980         MEM_ALIAS_SET on MEMs.
5981
5982 2010-03-26  David S. Miller  <davem@davemloft.net>
5983
5984         * configure.ac: Fix sparc GOTDATA_OP bug check.
5985         * configure: Rebuild.
5986
5987 2010-03-26  Alan Modra  <amodra@gmail.com>
5988
5989         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
5990
5991 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5992
5993         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
5994         TLS_SECTION_ASM_FLAG.
5995
5996 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
5997
5998         PR bootstrap/43511
5999         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
6000         Clear first_function_block_is_cold.
6001
6002         PR c/43385
6003         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
6004         argument if the argument is truth_value_p.
6005
6006 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
6007
6008         * config/rs6000/constraints.md: Update copyright year for my changes.
6009
6010         PR target/43484
6011         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
6012         used in reg+reg addressing, swap registers.
6013
6014 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
6015
6016         PR debug/43293
6017         * target.h (struct gcc_target): Add code_end hook.
6018         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
6019         if not yet defined.
6020         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
6021         * toplev.c (compile_file): Call targetm.asm_out.code_end
6022         hook before unwind info/debug info output.
6023         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
6024         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
6025         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
6026         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
6027         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
6028         * config/i386/i386.c (ix86_file_end): Renamed to...
6029         (ix86_code_end): ... this.  Make static.  Don't call
6030         file_end_indicate_exec_stack.  Emit unwind info using
6031         final_start_function/final_end_function.
6032         (darwin_x86_file_end): Remove.
6033         (TARGET_ASM_CODE_END): Define.
6034         * config/i386/i386.h (TARGET_ASM_FILE_END,
6035         NEED_INDICATE_EXEC_STACK): Don't define.
6036         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
6037         (TARGET_ASM_FILE_END): Define to darwin_file_end.
6038         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
6039         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
6040
6041         PR target/43498
6042         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
6043         at the beginning and final_end_function at the end.
6044         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
6045
6046 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6047
6048         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
6049         and Sun as TLS syntax.
6050         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
6051         * configure: Regenerate.
6052         * config.in: Regenerate.
6053         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
6054         (default_elf_asm_named_section): Use it.
6055         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
6056         (i386_output_dwarf_dtprel): Likewise.
6057         (output_addr_const_extra): Likewise.
6058         (output_pic_addr_const): Lowercase @GOTTPOFF.
6059         (output_addr_const_extra): Likewise.
6060         (output_pic_addr_const): Lowercase @GOTNTPOFF.
6061         (output_addr_const_extra): Likewise.
6062         (output_pic_addr_const): Lowercase @INDNTPOFF.
6063         (output_addr_const_extra): Likewise.
6064         (output_pic_addr_const): Lowercase @NTPOFF.
6065         (output_addr_const_extra): Likewise.
6066         (output_pic_addr_const): Lowercase @TPOFF.
6067         (output_addr_const_extra): Likewise.
6068         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
6069         (*tls_global_dynamic_64): Likewise.
6070         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
6071         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
6072
6073         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
6074         (ASM_OUTPUT_TLS_COMMON): Use it.
6075         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
6076
6077         PR target/38118
6078         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
6079         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
6080         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
6081         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
6082         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
6083         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
6084
6085 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6086
6087         * config/i386/i386.c (override_options): Don't accept
6088         -mtls-dialect=sun any longer.
6089         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
6090         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
6091         (*tls_local_dynamic_base_32_sun): Likewise.
6092         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
6093
6094 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
6095
6096         PR debug/43508
6097         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
6098         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
6099
6100         PR debug/43479
6101         * ira.c (adjust_cleared_regs): New function.
6102         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
6103
6104         PR debug/19192
6105         PR debug/43479
6106         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
6107         from gimple_block.
6108         * expr.c (expand_expr_real): Restore previous
6109         curr_insn_source_location and curr_insn_block after
6110         expand_expr_real_1 call.
6111         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
6112         instead of expand_expr_real_1.
6113
6114 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
6115
6116         PR rtl-optimization/43413
6117         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
6118         hard regs too.
6119
6120 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
6121
6122         PR target/43348
6123         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
6124         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
6125
6126 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
6127
6128         * config/i386/i386.c (ix86_target_string): Add -mfma.
6129         Fix a typo in comment.
6130
6131 2010-03-22  Mike Stump  <mikestump@comcast.net>
6132
6133         PR target/23071
6134         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
6135         Don't overly align based upon packed packed fields.
6136
6137 2010-03-22  Jason Merrill  <jason@redhat.com>
6138
6139         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
6140         Use () rather than [], and move before the element type.
6141
6142 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6143
6144         * doc/configfiles.texi (Configuration Files): Removed
6145         fixinc/Makefile*, intl/Makefile.*.
6146         * doc/makefile.texi: Fixed markup. Abstract from version
6147         control system used.
6148         (Makefile): Removed obsolete gcc/java/parse.y example.
6149         * doc/sourcebuild.texi: Likewise.
6150         (Top Level): Added config, gnattools, libdecnumber, libgcc,
6151         libgomp, libssp.  Removed fastjar.
6152         (Miscellaneous Docs): Clarify location.
6153         Added COPYING3, COPYING3.LIB.
6154         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
6155
6156 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6157
6158         PR target/38085
6159         * config/i386/i386.c (x86_function_profiler)
6160         [!NO_PROFILE_COUNTERS]: Fix typo.
6161         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
6162         instead of callq.
6163
6164 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
6165             Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6166
6167         * doc/sourcebuild.texi (Test Directives): Split into six
6168         subsections, with most of the current text in new subsections
6169         Directives, Selectors, and Final Actions.
6170         (Directives): Split list of test directives into multiple
6171         subsubsections.
6172         (Selectors): Describe use and syntax of selectors.
6173         (Effective-Target Keywords): Describe all existing keywords.
6174         (Add Options): Describe features for dg-add-options.
6175         (Require Support): Describe variants of dg-require-support.
6176         (Final Actions): Describe commands to use in dg-final.
6177
6178 2010-03-22  Michael Matz  <matz@suse.de>
6179
6180         PR middle-end/43475
6181         * recog.c (validate_replace_rtx_group): Replace also in
6182         REG_EQUAL and REG_EQUIV notes.
6183
6184 2010-03-22  Richard Guenther  <rguenther@suse.de>
6185
6186         PR tree-optimization/43390
6187         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
6188         sure vector extracts are type correct.
6189
6190 2010-03-22  Richard Guenther  <rguenther@suse.de>
6191
6192         PR middle-end/40106
6193         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
6194         x * sqrt (x) even when optimizing for size if the target
6195         has native support for sqrt.
6196
6197 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
6198
6199         * varasm.c (make_decl_rtl_for_debug): Also clear
6200         flag_mudflap for the duration of make_decl_rtl call.
6201
6202         PR debug/43443
6203         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
6204         locs from preserved VALUEs.
6205
6206 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6207
6208         PR middle-end/42718
6209         * pa.md (movmemsi): Set align to one if zero.
6210         (movmemdi): Likewise.
6211
6212 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
6213
6214         PR target/42321
6215         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
6216         with their corresponding prologue pushes.
6217
6218 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
6219
6220         PR target/43156
6221         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
6222         at the begining or end.
6223         (spu_expand_epilogue): Likewise.
6224
6225 2010-03-20  Richard Guenther  <rguenther@suse.de>
6226
6227         PR rtl-optimization/43438
6228         * combine.c (make_extraction): Properly zero-/sign-extend an
6229         extraction of the low part of a CONST_INT.  Also handle
6230         CONST_DOUBLE.
6231
6232 2010-03-19  Mike Stump  <mikestump@comcast.net>
6233
6234         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
6235         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
6236         (override_options): Use SUBTARGET32_DEFAULT_CPU.
6237
6238 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
6239
6240         PR c/43211
6241         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
6242         an error.
6243
6244 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
6245
6246         PR rtl-optimization/42258
6247         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
6248         use that may match DEF.
6249
6250         PR target/40697
6251         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
6252         the cost of loading the constant rather than assuming
6253         COSTS_N_INSNS (1).
6254         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
6255         outer code is AND, do the same tests as the andsi3 expander and
6256         return COSTS_N_INSNS (1) if and is cheap.
6257
6258         * optabs.c (avoid_expensive_constant): Fix formatting.
6259
6260 2010-03-19  Michael Matz  <matz@suse.de>
6261
6262         PR c++/43116
6263         * attribs.c (decl_attributes): When rebuilding a function pointer
6264         type use the same qualifiers as the original pointer type.
6265
6266 2010-03-19  Martin Jambor  <mjambor@suse.cz>
6267
6268         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
6269         and is_gimple_ip_invariant_address.
6270
6271 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6272
6273         Revert
6274         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6275
6276         * config/arm/arm.c (arm_override_options): Turn off
6277         flag_dwarf2_cfi_asm for AAPCS variants.
6278
6279 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6280
6281         PR target/43399
6282         * config/arm/arm.c (emit_multi_reg_push): Update comments.
6283         Use PRE_MODIFY instead of PRE_DEC.
6284         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
6285         (vfp_emit_fstmd): Likewise.
6286
6287 2010-03-19  Michael Matz  <matz@suse.de>
6288
6289         PR target/43305
6290         * builtins.c (expand_builtin_interclass_mathfn,
6291         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
6292         if that fails.
6293
6294 2010-03-19  Richard Guenther  <rguenther@suse.de>
6295
6296         PR tree-optimization/43415
6297         * tree-ssa-pre.c (phi_translate): Split out worker to ...
6298         (phi_translate_1): ... this.
6299         (phi_translate): Move all caching here.  Cache all NARY
6300         and REFERENCE translations.
6301
6302 2010-03-19  David S. Miller  <davem@davemloft.net>
6303
6304         With help from Eric Botcazou.
6305         * config/sparc/sparc.c: Include dwarf2out.h.
6306         (emit_pic_helper): Delete.
6307         (pic_helper_symbol_name): Delete.
6308         (pic_helper_emitted_p): Delete.
6309         (pic_helper_needed): New.
6310         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
6311         (get_pc_thunk_name): New.
6312         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
6313         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
6314         Set pic_helper_needed to true.  Don't call emit_pic_helper.
6315         (sparc_expand_prologue): Update load_pic_register call.
6316         (sparc_output_mi_thunk): Likewise.
6317         (sparc_file_end): Emit a hidden comdat symbol for the PIC
6318         thunk if possible.  Output CFI information as needed.
6319
6320 2010-03-18  Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6321             Jack Howarth <howarth@bromo.med.uc.edu>
6322
6323         PR target/36399
6324         * config/i386/i386.h: Fix ABI on darwin x86-32.
6325
6326 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
6327
6328         * tree.h: Declare make_decl_rtl_for_debug.
6329         * varasm.c (make_decl_rtl_for_debug): New.
6330         * dwarf2out.c (rtl_for_decl_location): Call it.
6331         * cfgexpand.c (expand_debug_expr): Call it.
6332
6333 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
6334
6335         PR bootstrap/43399
6336         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
6337         mem_mode.
6338
6339         PR bootstrap/43403
6340         * var-tracking.c (vt_init_cfa_base): Do nothing if
6341         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
6342
6343 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
6344
6345         PR debug/42873
6346         * var-tracking.c (canonicalize_vars_star): New.
6347         (dataflow_post_merge_adjust): Use it.
6348
6349 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
6350
6351         PR debug/43058
6352         * var-tracking.c (non_suitable_const): New function.
6353         (add_uses): For DEBUG_INSNs with constants, don't record any
6354         value, instead just the constant value itself.
6355         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
6356         is not VAR_LOC_UNKNOWN_P, set var to the constant.
6357         (emit_notes_in_bb): Likewise.
6358         (emit_note_insn_var_location): For onepart variables if
6359         cur_loc is a VOIDmode constant, use DECL_MODE.
6360
6361 2010-03-18  Martin Jambor  <mjambor@suse.cz>
6362
6363         PR middle-end/42450
6364         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
6365         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
6366         all non-clones.  Moved call redirection...
6367         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
6368         (cgraph_materialize_all_clones): Dispose of all
6369         combined_args_to_skip bitmaps.
6370         (verify_cgraph_node): Do not check for edges pointing to wrong
6371         nodes in inline clones.
6372         * tree-inline.c (copy_bb): Call
6373         cgraph_redirect_edge_call_stmt_to_callee.
6374         * ipa.c (cgraph_remove_unreachable_nodes): Call
6375         cgraph_node_remove_callees even when there are used clones.
6376
6377 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
6378
6379         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
6380
6381 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
6382
6383         PR target/43383
6384         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
6385         for 32bit.
6386
6387 2010-03-18  Michael Matz  <matz@suse.de>
6388
6389         PR middle-end/43419
6390         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
6391         into sqrt(x) if we need to preserve signed zeros.
6392
6393 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
6394             Eric Botcazou  <ebotcazou@adacore.com>
6395
6396         PR rtl-optimization/43360
6397         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
6398         note if we don't know its invariant status.
6399
6400 2010-03-18  Michael Matz  <matz@suse.de>
6401
6402         PR tree-optimization/43402
6403         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
6404         PHI chains of ssa names registered for update.
6405
6406 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
6407
6408         PR target/42427
6409         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
6410         non-offsettable and pre_modify update addressing.
6411         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
6412         and "2" alternatives "#".
6413         (*movdd_softfloat32): Make all alternatives "#";
6414         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
6415         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
6416         (*movdf_softfloat32): Make all alternatives "#";
6417         (movdi): Use the new DIFD mode iterator to create a common splitter
6418         for movdi, movdf and movdd patterns.
6419
6420 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
6421
6422         * common.opt (dumpdir): Remove redundant tab.
6423
6424 2010-03-17  Martin Jambor  <mjambor@suse.cz>
6425
6426         PR tree-optimization/43347
6427         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
6428         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
6429
6430 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
6431
6432         PR rtl-optimization/42216
6433         * regrename.c (create_new_chain): New function, broken out from...
6434         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
6435         appending a use to an empty chain.
6436         (build_def_use): Remove previous changes that convert OP_INOUT to
6437         OP_OUT operands; instead detect the case where an OP_INOUT operand
6438         uses a previously untracked register and create an empty chain for it.
6439
6440 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6441
6442         * doc/extend.texi (Function Attributes): Rewrite unfinished
6443         sentence in ms_abi documentation.
6444
6445 2010-03-17  Alan Modra  <amodra@gmail.com>
6446
6447         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
6448         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
6449         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
6450         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
6451
6452 2010-03-16  Richard Henderson  <rth@redhat.com>
6453
6454         PR middle-end/43365
6455         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
6456         (lower_try_finally): Save and restore eh_seq around the expansion
6457         of the try-finally.
6458
6459 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
6460
6461         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
6462         statements before splitting block.
6463
6464 2010-03-16  Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6465
6466         * doc/sourcebuild.texi (Testsuites): Fix markup.
6467         Use pathnames relative to gcc/testsuite.
6468         (Test Directives): Move description of how timeout is determined.
6469         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
6470         (C Tests): Correct gcc.misc-tests directory.
6471         Framework tests now live in gcc.test-framework.
6472
6473 2010-03-16  Richard Guenther  <rguenther@suse.de>
6474
6475         PR middle-end/43379
6476         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
6477         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
6478
6479 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
6480             Alexandre Oliva  <aoliva@redhat.com>
6481
6482         PR tree-optimization/42917
6483         * lambda-code.c (remove_iv): Skip debug statements.
6484         (lambda_loopnest_to_gcc_loopnest): Likewise.
6485         (not_interesting_stmt): Debug statements are not interesting.
6486
6487 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
6488
6489         PR debug/43051
6490         PR debug/43092
6491         * cselib.c (cselib_preserve_constants,
6492         cfa_base_preserved_val): New static variables.
6493         (preserve_only_constants): New function.
6494         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
6495         clear its REG_VALUES.  If cselib_preserve_constants, don't
6496         empty the whole hash table, but preserve there VALUEs with constants,
6497         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
6498         (cselib_preserve_cfa_base_value): New function.
6499         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
6500         (cselib_init): Change argument to int bitfield.  Set
6501         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
6502         is in it.
6503         (cselib_finish): Clear cselib_preserve_constants and
6504         cfa_base_preserved_val.
6505         * cselib.h (enum cselib_record_what): New enum.
6506         (cselib_init): Change argument to int.
6507         (cselib_preserve_cfa_base_value): New prototype.
6508         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
6509         * dse.c (dse_step1): Likewise.
6510         * cfgcleanup.c (thread_jump): Likewise.
6511         * sched-deps.c (sched_analyze): Likewise.
6512         * gcse.c (local_cprop_pass): Likewise.
6513         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
6514         If FN is non-NULL, call the callback always and whenever it returns
6515         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
6516         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
6517         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
6518         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
6519         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
6520         * var-tracking.c: Include recog.h.
6521         (bb_stack_adjust_offset): Remove.
6522         (vt_stack_adjustments): Don't call it, instead just gather the
6523         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
6524         (adjust_stack_reference): Remove.
6525         (compute_cfa_pointer): New function.
6526         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
6527         (struct adjust_mem_data): New type.
6528         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
6529         functions.
6530         (get_address_mode): New function.
6531         (replace_expr_with_values): Use it.
6532         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
6533         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
6534         (adjust_sets): Remove.
6535         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
6536         Use get_address_mode.
6537         (get_adjusted_src): Remove.
6538         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
6539         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
6540         (add_with_sets): Don't call adjust_sets.
6541         (fp_setter, vt_init_cfa_base): New functions.
6542         (vt_initialize): Change return type to bool.  Move most of pool etc.
6543         initialization to the beginning of the function from end.  Pass
6544         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
6545         If !frame_pointer_needed, call vt_stack_adjustment before mos
6546         vector is filled, call vt_init_cfa_base if argp/framep has been
6547         eliminated to sp.  If frame_pointer_needed and argp/framep has
6548         been eliminated to hard frame pointer, set
6549         hard_frame_pointer_adjustment and call vt_init_cfa_base after
6550         encountering fp setter in the prologue.  For MO_ADJUST, call
6551         log_op_type before pusing the op into mos vector, not afterwards.
6552         Call adjust_insn before cselib_process_insn/add_with_sets,
6553         call cancel_changes (0) afterwards.
6554         (variable_tracking_main_1): Adjust for vt_initialize calling
6555         vt_stack_adjustments and returning whether it succeeded or not.
6556
6557 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
6558
6559         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
6560         debug statements.
6561
6562 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
6563
6564         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
6565         has been set.
6566         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
6567         drap_reg has not been set.
6568
6569 2010-03-15  Michael Matz  <matz@suse.de>
6570
6571         PR middle-end/43300
6572         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
6573         use it to expand block copies.
6574         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
6575         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
6576         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
6577
6578 2010-03-15  Richard Guenther  <rguenther@suse.de>
6579
6580         PR tree-optimization/43367
6581         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
6582         elimination check.
6583
6584 2010-03-15  Richard Guenther  <rguenther@suse.de>
6585
6586         PR tree-optimization/43317
6587         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
6588
6589 2010-03-15  Martin Jambor  <mjambor@suse.cz>
6590
6591         PR tree-optimization/43141
6592         * tree-sra.c (create_abstract_origin): New function.
6593         (modify_function): Call create_abstract_origin.
6594
6595 2010-03-15  Chris Demetriou  <cgd@google.com>
6596
6597         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
6598         wasn't copied.
6599
6600 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
6601
6602         PR middle-end/43354
6603         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
6604         call insert_out_of_ssa_copy for default definitions.
6605
6606 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
6607
6608         * graphite-clast-to-gimple.c (my_long_long): Defined.
6609         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
6610         * graphite-sese-to-poly.c (my_long_long): Defined.
6611         (scop_ivs_can_be_represented): Use it.
6612
6613 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
6614
6615         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
6616         graphite-max-bbs-per-function, and loop-block-tile-size.
6617         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
6618         with "maximum".
6619         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
6620
6621 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
6622
6623         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
6624         forward declaration.
6625         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
6626         (add_upper_bounds_from_estimated_nit): New.
6627         (build_loop_iteration_domains): Use it.
6628
6629 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
6630
6631         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
6632
6633 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
6634
6635         PR middle-end/43306
6636         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
6637         should be an INTEGER_CST.  Also handle CASE_CONVERT.
6638
6639 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
6640
6641         * graphite.c (graphite_initialize): To bound the number of bbs per
6642         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
6643         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
6644         * doc/invoke.texi: Document it.
6645
6646 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
6647
6648         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
6649         * graphite-sese-to-poly.h (build_poly_scop): Same.
6650
6651 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
6652
6653         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
6654         the number of parameters in the scop.  Use as an upper bound
6655         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
6656         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
6657         * doc/invoke.texi: Document it.
6658
6659 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
6660
6661         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
6662         * doc/c-tree.texi: Remove.
6663         * doc/generic.texi: Merge c-tree.texi here.
6664         * doc/gccint.texi (Trees): Remove menu entry.
6665         (c-tree.texi): Remove @include.
6666         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
6667         * doc/languages.texi (Reading RTL): Ditto.
6668
6669 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
6670
6671         PR target/42869
6672         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
6673
6674 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
6675
6676         PR middle-end/42431
6677         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
6678         code added to work around reload clobbering CONST insns.
6679
6680 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
6681
6682         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
6683         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
6684         (cselib_preserve_only_values): Remove retain argument, don't
6685         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
6686         * cselib.h (cselib_preserve_only_values): Remove retain argument.
6687         * var-tracking.c (micro_operation): Move insn field before union.
6688         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
6689         (struct variable_tracking_info_def): Remove n_mos field, change
6690         mos into a vector of micro_operations.
6691         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
6692         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
6693         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
6694         changing into a vector.
6695         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
6696         come before all other uops generated by add_stores.
6697         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
6698         argument removal.
6699         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
6700         a vector.  Run just one pass over the bbs instead of separate counting
6701         and computation phase.
6702         (vt_finalize): Free VTI (bb)->mos vector instead of array.
6703
6704         PR debug/43329
6705         * tree-inline.c (remap_decls): Put old_var rather than origin_var
6706         into *nonlocalized_list vector.
6707         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
6708         even if origin is non-NULL.
6709         (gen_variable_die): Likewise.
6710         (process_scope_var): Don't change origin.
6711         (gen_decl_die): Likewise.
6712         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
6713         before adding new edges instead of after it, fix moving over
6714         debug stmts.
6715
6716 2010-03-11  David S. Miller  <davem@davemloft.net>
6717
6718         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
6719         of four.
6720         * configure: Rebuild.
6721
6722 2010-03-11  Martin Jambor  <mjambor@suse.cz>
6723
6724         PR tree-optimization/43257
6725         * tree.c (assign_assembler_name_if_neeeded): New function.
6726         (free_lang_data_in_cgraph): Assembler name assignment moved to the
6727         above new function.
6728         * tree.h (assign_assembler_name_if_neeeded): Declare.
6729         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
6730         the function if needed.
6731
6732 2010-03-11  Chris Demetriou  <cgd@google.com>
6733
6734         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
6735         include/stdint-gcc.h, and include/stdint.h world-readable.
6736
6737 2010-03-11  Richard Guenther  <rguenther@suse.de>
6738
6739         PR tree-optimization/43255
6740         * tree-vrp.c (process_assert_insertions_for): Do not insert
6741         asserts for trivial conditions.
6742
6743 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6744
6745         PR tree-optimization/43280
6746         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
6747         generation.  Move calculation of size out of the if branch.
6748         (find_bswap): Modify compare number generation.
6749
6750 2010-03-11  Richard Guenther  <rguenther@suse.de>
6751
6752         PR lto/43200
6753         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
6754         (input_gimple_stmt): Fixup handled component types during
6755         operand read.  Also fix up decls in ADDR_EXPRs.
6756
6757 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
6758
6759         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
6760         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
6761
6762 2010-03-10  Jan Hubicka  <jh@suse.cz>
6763
6764         PR c/43288
6765         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
6766         * varasm.c (get_variable_section): Don't do that here...
6767         (make_decl_rtl): ... and here.
6768         (do_assemble_alias): Produce decl RTL.
6769         (assemble_alias): Likewise.
6770
6771 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
6772
6773         PR debug/43290
6774         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
6775         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
6776         of fde->vdrap_reg.
6777         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
6778         (based_loc_descr): Only express drap or vdrap regno based expressions
6779         using DW_OP_fbreg when not optimizing.
6780         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
6781         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
6782         REG_CFA_SET_VDRAP note.
6783
6784 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
6785
6786         PR tree-optimization/43236
6787         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
6788         error in calculation of base address in reverse iteration case.
6789         (generate_builtin): Take number of latch executions if the statement
6790         is in the latch.
6791
6792 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
6793
6794         PR middle-end/42859
6795         * tree-eh.c: Include pointer-set.h.
6796         (lower_eh_dispatch): Filter out duplicate case labels and
6797         remove the unneeded edge when the label is unused.  Return
6798         true when some edges are removed.
6799         (execute_lower_eh_dispatch): When any lowering resulted in
6800         removing an edge, also delete unreachable blocks.
6801
6802 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
6803
6804         PR bootstrap/43287
6805         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
6806         UNSPEC_MACHOPIC_OFFSET.
6807
6808 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
6809
6810         PR target/43294
6811         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
6812         (m68k_delegitimize_address): New function.
6813
6814 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
6815
6816         PR debug/43299
6817         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
6818
6819         PR debug/43299
6820         * var-tracking.c (adjust_sets): New function.
6821         (count_with_sets, add_with_sets): Use it.
6822         (get_adjusted_src): New inline function.
6823         (add_stores): Use it.
6824
6825         PR debug/43304
6826         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
6827         call cselib_dummy_expand_value_rtx_cb instead of
6828         cselib_expand_value_rtx_cb.
6829
6830         PR debug/43293
6831         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
6832         * config/i386/i386.c: Include debug.h and dwarf2out.h.
6833         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
6834         and .cfi_endproc around the pic thunks.
6835         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
6836         all queued unwind info register saves are saved before the call.
6837         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
6838         considered as sp-=4 for unwind info and the pop as sp+=4 which
6839         also clobbers dest, but doesn't actually restore it.
6840
6841         PR debug/43290
6842         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
6843         RTX_FRAME_RELATED_P.
6844
6845 2010-03-09  Jie Zhang  <jie@codesourcery.com>
6846
6847         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
6848         whitespaces in output template.
6849
6850 2010-03-09  Jie Zhang  <jie@codesourcery.com>
6851
6852         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
6853         out array boundary.
6854
6855 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
6856
6857         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
6858         builtins.exp in a separate job.
6859
6860 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
6861
6862         * graphite-sese-to-poly.c (add_param_constraints): Use
6863         lower_bound_in_type and upper_bound_in_type.
6864
6865 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
6866
6867         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
6868         instead of unsigned_type_node.
6869
6870 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
6871             Reza Yazdani  <reza.yazdani@amd.com>
6872
6873         PR middle-end/43065
6874         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
6875         on pointer type parameters.
6876
6877 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
6878
6879         PR middle-end/42644
6880         PR middle-end/42130
6881         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
6882         handle conversions from pointer to integers.
6883         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
6884         induction variable, to be able to work with code generated by CLooG.
6885         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
6886         (build_poly_scop): Bail out if we cannot codegen a loop.
6887
6888 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
6889
6890         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
6891         code generation with gloog_error.
6892
6893 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
6894
6895         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
6896         Call fold_convert on all the returned values.
6897         (expand_scalar_variables_expr): Pass to
6898         expand_scalar_variables_ssa_name the type of the resulting expression.
6899
6900 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
6901
6902         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
6903         ppl_min_for_le_pointset.
6904         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
6905         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
6906
6907 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
6908
6909         * graphite-dependences.c (map_into_dep_poly): Removed.
6910         (dependence_polyhedron_1): Use combine_context_id_scat.
6911
6912 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
6913
6914         * graphite-poly.h (struct poly_scattering): Add layout documentation.
6915         (struct poly_bb): Same.
6916         (combine_context_id_scat): New.
6917
6918 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
6919
6920         PR middle-end/42326
6921         * sese.c (name_defined_in_loop_p): Return false for default
6922         definitions.
6923
6924 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
6925
6926         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
6927         and clean up the logic.
6928
6929 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
6930
6931         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
6932         early return.
6933
6934 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
6935
6936         * var-tracking.c (remove_cselib_value_chains): Define only for
6937         ENABLE_CHECKING.
6938         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
6939         delete_slot_part, emit_notes_for_differences_1): Don't call
6940         remove_cselib_value_chains here.
6941         (set_slot_part, emit_notes_for_differences_2): Don't call
6942         add_cselib_value_chains here.
6943         (preserved_values): New vector.
6944         (preserve_value): New function.
6945         (add_uses, add_stores, vt_add_function_parameters): Use it
6946         instead of cselib_preserve_value.
6947         (changed_values_stack): New vector.
6948         (check_changed_vars_0): New function.
6949         (check_changed_vars_1, check_changed_vars_2): Use it.
6950         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
6951         changed_values_stack VALUEs.
6952         (vt_emit_notes): For all preserved_values call
6953         add_cselib_value_chains.  If ENABLE_CHECKING call
6954         remove_cselib_value_chains before verifying value_chains is empty.
6955         Initialize and free changed_values_stack.
6956         (vt_initialize): Initialize preserved_values.
6957         (vt_finalize): Free preserved_values.
6958
6959 2010-03-08  Richard Guenther  <rguenther@suse.de>
6960
6961         PR tree-optimization/43269
6962         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
6963         region detection.
6964
6965 2010-03-08  Martin Jambor  <mjambor@suse.cz>
6966
6967         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
6968         (ipa_is_param_called): Removed.
6969         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
6970         (ipa_print_node_params): Do not print the called flag.
6971         (ipa_write_node_info): Do not stream the called flag.
6972         (ipa_read_node_info): Likewise.
6973
6974 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
6975
6976         PR debug/43176
6977         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
6978         * cselib.c (struct expand_value_data): Add dummy field.
6979         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
6980         dummy to false.
6981         (cselib_dummy_expand_value_rtx_cb): New function.
6982         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
6983         any rtl.
6984         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
6985         * var-tracking.c: Include pointer-set.h.
6986         (variable): Change n_var_parts to char from int.  Add
6987         cur_loc_changed and in_changed_variables fields.
6988         (variable_canonicalize): Remove.
6989         (shared_var_p): New inline function.
6990         (unshare_variable): Maintain cur_loc_changed and
6991         in_changed_variables fields.  If var was in changed_variables,
6992         replace it there with new_var.  Just copy cur_loc instead of
6993         resetting it to something else.
6994         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
6995         (dataflow_set_union): Don't call variable_canonicalize.
6996         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
6997         of their DEBUG_EXPR_TREE_DECLs.
6998         (canonicalize_loc_order_check): Verify that cur_loc is NULL
6999         and in_changed_variables and cur_loc_changed is false.
7000         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
7001         and cur_loc_changed.  Don't update cur_loc here.
7002         (variable_merge_over_src): Don't call variable_canonicalize.
7003         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
7004         removing loc that is equal to cur_loc, clear cur_loc,
7005         set cur_loc_changed and ensure variable_was_changed is called.
7006         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
7007         compare pointers in cur_loc check, if it is equal to loc,
7008         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
7009         (variable_different_p): Remove compare_current_location argument,
7010         don't compare cur_loc.
7011         (dataflow_set_different_1): Adjust variable_different_p caller.
7012         (variable_was_changed): If dv had some var in changed_variables
7013         already, reset in_changed_variables flag for it and propagate
7014         cur_loc_changed over to the new variable.  On empty var
7015         always set cur_loc_changed.  Set in_changed_variables on whatever
7016         var is added to changed_variables.
7017         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
7018         Use shared_var_p.  When removing loc that is equal to cur_loc,
7019         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
7020         end, don't set it to something else, just call variable_was_changed.
7021         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
7022         loc being removed, clear cur_loc and set cur_loc_changed.
7023         Set cur_loc_changed if all locations have been removed.
7024         (struct expand_loc_callback_data): New type.
7025         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
7026         allocated.  Always create SUBREGs if simplify_subreg failed.
7027         Prefer to use cur_loc, when that fails and still in
7028         changed_variables (and seen first time) recompute it.  Set
7029         cur_loc_changed of variables which had to change cur_loc and
7030         compute elcd->cur_loc_changed if any of the subexpressions used
7031         had to change cur_loc.
7032         (vt_expand_loc): Adjust to pass arguments in
7033         expand_loc_callback_data structure.
7034         (vt_expand_loc_dummy): New function.
7035         (emitted_notes): New variable.
7036         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
7037         that weren't used for any other decl in current
7038         emit_notes_for_changes call call vt_expand_loc_dummy to update
7039         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
7040         first loc_chain location if NULL before.  Always use just
7041         cur_loc instead of first loc_chain location.  When cur_loc_changed
7042         is false, when not --enable-checking=rtl just don't emit any note.
7043         When rtl checking, compute the note and assert it is the same
7044         as previous note.  Clear cur_loc_changed and in_changed_variables
7045         at the end before removing from changed_variables.
7046         (check_changed_vars_3): New function.
7047         (emit_notes_for_changes): Traverse changed_vars to call
7048         check_changed_vars_3 on each changed var.
7049         (emit_notes_for_differences_1): Clear cur_loc_changed and
7050         in_changed_variables.  Recompute cur_loc of new_var.
7051         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
7052         (vt_emit_notes): Initialize and destroy emitted_notes.
7053
7054 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
7055
7056         PR rtl-optimization/42220
7057         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
7058         Use verify_reg_tracked to determine if we should use OP_OUT rather
7059         than OP_INOUT.
7060         (build_def_use): If we see an in-out operand for a register that we
7061         know nothing about, treat is an output if possible, fail the block if
7062         not.
7063
7064 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
7065
7066         PR debug/42897
7067         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
7068         permanently.
7069
7070 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
7071
7072         PR debug/42897
7073         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
7074         uses of relevant DEFs that are dead outside the loop too.
7075
7076 2010-03-06  Alexandre Oliva <aoliva@redhat.com>
7077
7078         * var-tracking.c (dataflow_set_merge): Swap src and src2.
7079         Reverted:
7080         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
7081         PR debug/41371
7082         * var-tracking.c (values_to_unmark): New variable.
7083         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
7084         values_to_unmark vector.  Moved body to...
7085         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
7086         instead queue it into values_to_unmark vector.
7087         (vt_find_locations): Free values_to_unmark vector.
7088
7089 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
7090
7091         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
7092         (site.exp): Export them when plugins are enabled.
7093
7094 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
7095
7096         PR middle-end/42326
7097         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
7098         that contain scevs.
7099         (chrec_fold_multiply): Same.
7100
7101 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
7102
7103         PR c/43248
7104         * c-decl.c (build_compound_literal): Return early if init is
7105         an error_mark_node.
7106
7107 2010-03-04  Martin Jambor  <mjambor@suse.cz>
7108
7109         PR tree-optimization/43164
7110         PR tree-optimization/43191
7111         * tree-sra.c (type_consists_of_records_p): Reject records with
7112         zero-size bit-fields at the end.
7113
7114 2010-03-04  Mike Stump  <mikestump@comcast.net>
7115
7116         * Makefile.in (TAGS): Remove *.y.
7117
7118 2010-03-04  Richard Guenther  <rguenther@suse.de>
7119
7120         PR tree-optimization/40761
7121         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
7122         in reverse order.
7123         (my_rev_post_order_compute): New function.
7124         (init_pre): Call it.
7125
7126 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
7127
7128         PR middle-end/43209
7129         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
7130         decrease the cost of an IV candidate when the cost is infinite.
7131
7132 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7133
7134         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
7135         Use '3DNow!' for the extension of that name, ensure normal space
7136         after the string.
7137         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
7138
7139 2010-03-03  Jeff Law  <law@redhat.com>
7140
7141         * PR middle-end/32693
7142         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
7143         than gen_rtx_SUBREG.
7144         (extract_bit_field_1): Likewise.
7145
7146 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
7147
7148         * doc/sourcebuild.texi (Test directives): Document that arguments
7149         include-opts and exclude-opts are now optional for dg-skip-if,
7150         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
7151
7152 2010-03-03  Jason Merrill  <jason@redhat.com>
7153
7154         PR c++/12909
7155         * cgraph.h (varpool_node): Add extra_name field.
7156         * varpool.c (varpool_extra_name_alias): New.
7157         (varpool_assemble_decl): Emit extra name aliases.
7158         (varpool_mark_needed_node): Look past an extra name alias.
7159         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
7160         * lto-streamer-in.c (lto_input_tree): Read it.
7161         * lto-streamer-out.c (output_unreferenced_globals): Write it.
7162
7163 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
7164
7165         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
7166         (sparc*-*-solaris2*): ...this.
7167
7168 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
7169
7170         PR debug/43229
7171         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
7172         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
7173         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
7174         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
7175
7176         PR debug/43237
7177         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
7178         fallthrough to default handling, just with want_address 0 instead of 2.
7179         For single element lists, add_AT_loc directly, otherwise create an
7180         artificial variable DIE and stick location list to it.
7181
7182         PR debug/43177
7183         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
7184         (VAL_EXPR_HAS_REVERSE): Define.
7185         (reverse_op): New function.
7186         (add_stores): For reversible operations add an extra MO_VAL_USE.
7187
7188 2010-03-02  Jason Merrill  <jason@redhat.com>
7189
7190         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
7191
7192 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
7193
7194         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
7195         (sparc64-*-linux*): Likewise.
7196         (sparc64-*-solaris2*): Include assembler files before linker ones.
7197         (sparc-*-solaris2*): Simplify and reorder to match previous case.
7198         * config/sparc/gas.h: Delete.
7199         * config/sparc/sol2-64.h: Add copyright notice.
7200         * config/sparc/sol2-gas-bi.h: Likewise.
7201         * config/sparc/sol2-gld.h: Likewise.
7202         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
7203         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
7204         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
7205         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
7206         (sparc_elf_asm_named_section): Rename into...
7207         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
7208
7209 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
7210
7211         * config/alpha/alpha.c (override_options): Fix -mtune error message.
7212
7213 2010-03-02  Jeff Law  <law@redhat.com>
7214
7215         PR middle-end/42431
7216         * reload1.c (rtx_p, substitute_stack): Declare.
7217         (substitute): Record addresses of changed rtxs.
7218         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
7219         Restore the original rtx when complete.
7220         (reload): Free subsitute_stack when complete.
7221
7222 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
7223
7224         * doc/gccint.texi (menu): Add Testsuites as a chapter.
7225         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
7226         new chapter.
7227         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
7228         LTO Testing, gcov Testing, profopt Testing, compat Testing,
7229         Torture Tests): Change from subsection to section.
7230
7231 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
7232             Steven Bosscher  <steven@gcc.gnu.org>
7233
7234         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
7235         instead of bb.
7236
7237 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
7238
7239         PR middle-end/42640
7240         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
7241         the assignment from the new induction variable to the assignment
7242         of the value from the original loop PHI function.
7243
7244 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
7245             Daniel Jacobowitz  <dan@codesourcery.com>
7246
7247         * doc/sourcebuild.texi (Test directives): Clarify options to
7248         dg-skip-if.
7249
7250 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7251
7252         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
7253         Disable cfi directives unless GCC and gas agree on using read-only
7254         .eh_frame sections for 64-bit.
7255         * configure: Regenerate.
7256
7257 2010-03-01  Richard Guenther  <rguenther@suse.de>
7258
7259         PR tree-optimization/43220
7260         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
7261         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
7262
7263 2010-03-01  Richard Guenther  <rguenther@suse.de>
7264             Martin Jambor  <mjambor@suse.cz>
7265
7266         PR middle-end/41250
7267         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
7268         gimplified parameters.
7269
7270 2010-03-01  Christian Bruel  <christian.bruel@st.com>
7271
7272         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
7273
7274 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
7275
7276         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
7277
7278 2010-03-01  Richard Guenther  <rguenther@suse.de>
7279
7280         PR middle-end/43213
7281         * expr.c (expand_assignment): Use the alias-oracle to tell
7282         if the rhs aliases the result decl.
7283
7284 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7285
7286         PR pch/14940
7287         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
7288         to sol_gt_pch_get_address.
7289         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
7290         64-bit, SPARC and x86.
7291         (sol_gt_pch_get_address): New function.
7292
7293 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
7294
7295         * toplev.h (inform_n, error_n): Declare.
7296         * diagnostic.c (inform_n, error_n): New function.
7297
7298 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
7299
7300         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
7301         has no rtl yet when processing local_decls, queue it and recheck
7302         if deferred stack allocation hasn't assigned it rtl.
7303
7304 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
7305
7306         * config/sh/sh.c (unspec_bbr_uid): New.
7307         (gen_block_redirect): Use it instead of INSN_UID.
7308         (gen_far_branch): Likewise.
7309
7310 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
7311
7312         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
7313         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
7314
7315 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7316
7317         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
7318         (Warning Options): -Wno-conversion-null is valid for
7319         Objective-C++ as well.
7320         * doc/tm.texi (Named Address Spaces): Likewise.
7321         * doc/plugins.texi (Plugins): Replace TABs with spaces.
7322         * doc/tree-ssa.texi (Tree SSA): Likewise.
7323
7324 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
7325
7326         PR bootstrap/43202
7327         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
7328         by default.  Don't set the default arch for
7329         i[34567]86-*-darwin*|x86_64-*-darwin*.
7330
7331 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
7332
7333         PR bootstrap/43202
7334         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
7335         default.  Set the default 32bit/64bit archs with $with_arch
7336         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
7337
7338 2010-02-27  Richard Guenther  <rguenther@suse.de>
7339
7340         PR tree-optimization/43186
7341         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
7342         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
7343         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
7344         unroller iterations.
7345
7346 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
7347
7348         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
7349         required and i[34567]86-*-* targets don't support 64bit ISA.
7350
7351 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
7352
7353         PR ada/43096
7354         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
7355         the same alias set.
7356
7357 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
7358
7359         * config.gcc: Set the default arch at least to Prescott for
7360         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
7361         if SSE math is enabled.
7362
7363 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7364
7365         * diagnostic.c (diagnostic_initialize): Update.
7366         (diagnostic_report_diagnostic): Test inhibit_notes_p for
7367         informative notes.
7368         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
7369         (diagnostic_inhibit_notes): New.
7370         * toplev.c (process_options): inhibit notes with -fcompare-debug.
7371
7372 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7373
7374         PR c/20631
7375         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
7376         * doc/standards.texi: Likewise.
7377         * doc/extend.texi: Likewise.
7378         * doc/trouble.texi: Likewise.
7379         * doc/cppopts.texi: Likewise.
7380         * doc/install.texi: Likewise.
7381         * c.opt (std=c90,std=gnu90): New options.
7382         * c-opts.c (c_common_handle_option): Handle them.
7383
7384 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7385
7386         PR c/24577
7387         * c-decl.c (undeclared_variable): Use an informative note.
7388
7389 2010-02-26  Richard Guenther  <rguenther@suse.de>
7390
7391         PR tree-optimization/43186
7392         * gimple.h (gimple_fold): Remove.
7393         * gimple.c (gimple_fold): Remove.  Inline into single user ...
7394         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
7395         Try harder for conditions.
7396
7397 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
7398
7399         PR debug/43190
7400         * function.c (used_types_insert): Don't skip through named pointer
7401         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
7402         and it is different from the main variant's type.
7403
7404 2010-02-26  Nick Clifton  <nickc@redhat.com>
7405
7406         * config/rx/rx.md (sminsi3): Remove bogus alternative.
7407
7408 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
7409
7410         * config.gcc: Support --with-fpmath=sse for x86.
7411
7412         * config/i386/ssemath.h: New.
7413
7414         * doc/install.texi (--with-fpmath=sse): Documented.
7415
7416 2010-02-26  Richard Guenther  <rguenther@suse.de>
7417
7418         PR tree-optimization/43188
7419         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
7420         vector types of over-aligned element type.
7421
7422 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
7423
7424         PR target/43175
7425         * config/i386/i386.c (expand_vec_perm_blend): Use correct
7426         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
7427
7428 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
7429
7430         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
7431
7432 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
7433
7434         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
7435         * var-tracking.c: Include diagnostic.h.
7436         (debug_dv): New function.
7437         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
7438
7439         PR debug/43160
7440         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
7441         (add_value_chain, add_value_chains, remove_value_chain,
7442         remove_value_chains): Handle DEBUG_EXPRs.
7443         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
7444
7445         PR debug/43161
7446         * regcprop.c (struct queued_debug_insn_change): New type.
7447         (struct value_data_entry): Add debug_insn_changes field.
7448         (struct value_data): Add n_debug_insn_changes field.
7449         (debug_insn_changes_pool): New variable.
7450         (free_debug_insn_changes, apply_debug_insn_changes,
7451         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
7452         (kill_value_one_regno): Call free_debug_insn_changes if needed.
7453         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
7454         fields.
7455         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
7456         changes for them.
7457         (copyprop_hardreg_forward_1): Don't call apply_change_group for
7458         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
7459         changes, call cprop_find_used_regs via note_stores.
7460         (copyprop_hardreg_forward): When copying vd from predecessor
7461         which has any queued DEBUG_INSN changes, make sure the pointers are
7462         cleared.  At the end call df_analyze and then if there are any
7463         DEBUG_INSN changes queued at the end of some basic block for still
7464         live registers, apply them.
7465         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
7466
7467 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
7468
7469         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
7470         (arm*-*-*): Ditto.
7471
7472 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
7473
7474         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
7475         targets.  Set the default with_cpu/with_arch from arch/cpu.
7476         Allow x86-64 and native for with_cpu/with_arch.
7477
7478 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
7479
7480         * ebitmap.c: Change calls to verify_popcount with calls to
7481         sbitmap_verify_popcount.
7482         (ebitmap_clear_bit): Fixed map->cacheindex test and
7483         map>cache update when bit clearing results in an empty
7484         element.
7485
7486 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
7487
7488         PR target/43154
7489         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
7490         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
7491         and support both V2DF and V2DI modes.
7492         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
7493         support both V2DF and V2DI modes.
7494         (general): Delete trailing whitespace from a few patterns.
7495
7496         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7497         V2DF/V2DI interleave high/low builtins.
7498
7499         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
7500         new VSX builtins.
7501
7502         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
7503         interleave high/low functions.
7504
7505 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
7506
7507         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
7508         #pragma extern_prefix.
7509
7510 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
7511
7512         PR debug/43166
7513         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
7514         BLKmode, assert op0 is a MEM and just adjust its mode.
7515
7516         PR debug/43165
7517         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
7518         if bitpos isn't multiple of mode's bitsize.
7519
7520 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7521
7522         * c.opt (-ftemplate-depth=): New.
7523         (-ftemplate-depth-): Deprecate.
7524         * optc-gen.awk: Handle -ftemplate-depth=.
7525         * opth-gen.awk: Likewise.
7526         * c-opts.c (c_common_handle_option): Likewise.
7527         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
7528
7529 2010-02-24  Jason Merrill  <jason@redhat.com>
7530
7531         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
7532
7533 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7534
7535         * cfg.c (alloc_aux_for_block): Remove inline.
7536         (alloc_aux_for_edge): Likewise.
7537
7538 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7539
7540         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
7541
7542 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7543
7544         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
7545         * config/i386/sol2-gas.h: New file.
7546         * config.gcc (i[34567]86-*-solaris2*): Use it.
7547
7548 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7549
7550         PR c/43128
7551         * c-typeck.c (ep_convert_and_check): New.
7552         (build_conditional_expr): Use it.
7553         (build_binary_op): Likewise.
7554
7555 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
7556
7557         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
7558
7559         PR debug/43150
7560         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
7561         bounds even for -O+.
7562         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
7563         expr needs to have DECL_NAME set.
7564
7565 2010-02-24  Nick Clifton  <nickc@redhat.com>
7566
7567         * config/mep/mep.c: Include gimple.h.
7568         (mep_function_uses_sp): Delete unused function.
7569         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
7570         parameters.  Use unsigned integers to count args.  Return a
7571         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
7572
7573 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
7574
7575         PR target/43107
7576         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
7577         greater or equal to nelt instead of 2 * nelt.
7578         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
7579         with nelt - 1.
7580
7581 2010-02-23  Jason Merrill  <jason@redhat.com>
7582
7583         PR debug/42800
7584         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
7585         in cfun->local_decls even if they have register types.
7586
7587         PR c++/42837
7588         * stor-layout.c (place_field): Don't warn about unnecessary
7589         DECL_PACKED if the type is packed.
7590
7591 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
7592
7593         PR target/43139
7594         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
7595         GOTOFF relocs, even when the base reg isn't pic pointer.
7596
7597 2010-02-23  Michael Matz  <matz@suse.de>
7598
7599         PR debug/43077
7600         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
7601         (expand_gimple_basic_block): Generate and use debug temps if there
7602         are debug uses left after the last real use of TERed ssa names.
7603         Unlink debug immediate uses when they are expanded.
7604
7605 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7606
7607         PR 43123
7608         * config/i386/i386.c (override_options): Reorganise to provide
7609         better error messages.
7610
7611 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
7612
7613         PR middle-end/43083
7614         * graphite-scop-detection.c (create_single_exit_edge): Move
7615         the call to find_single_exit_edge to....
7616         (create_sese_edges): ...here.  Don't handle multiple edges
7617         exiting the function.
7618         (build_graphite_scops): Don't handle multiple edges
7619         exiting the function.
7620
7621 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
7622
7623         PR middle-end/43097
7624         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
7625         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
7626
7627 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
7628
7629         PR middle-end/43026
7630         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
7631
7632 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7633
7634         PR c++/43126
7635         * c-typeck.c (convert_arguments): Print declaration location.
7636         * c-common.c (validate_nargs): Rename as
7637         builtin_function_validate_nargs.
7638         (check_builtin_function_arguments): Update.
7639
7640 2010-02-22  Richard Guenther  <rguenther@suse.de>
7641
7642         PR lto/43045
7643         * tree-inline.c (declare_return_variable): Use the type of
7644         the call stmt lhs if available.
7645
7646 2010-02-22  Duncan Sands  <baldrick@free.fr>
7647
7648         * passes.c (register_pass): Always consider all pass lists when
7649         ref_pass_instance_number is zero.
7650
7651 2010-02-22  Richard Guenther  <rguenther@suse.de>
7652
7653         PR tree-optimization/42749
7654         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
7655         parameter.  Do arithmetic in the original type.
7656         (update_accumulator_with_ops): Likewise.
7657         (adjust_accumulator_values): Adjust.
7658
7659 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7660
7661         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
7662         (QI to BLKmode splitter): New splitter.
7663
7664 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
7665
7666         * config/i386/i386.c (initial_ix86_tune_features): Turn on
7667         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
7668
7669 2010-02-22  Richard Guenther  <rguenther@suse.de>
7670
7671         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
7672
7673 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
7674
7675         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
7676         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
7677         ($(T)crti.o, $(T)crtn.o): Remove rules.
7678
7679 2010-02-21  Tobias Burnus  <burnus@net-b.de>
7680
7681         PR fortran/35259
7682         * doc/invoke.texi (-fassociative-math): Document that this
7683         option is automatically enabled for Fortran.
7684
7685 2010-02-20  David S. Miller  <davem@davemloft.net>
7686
7687         * configure.ac: Test if linker and assembler properly support
7688         GOTDATA_OP relocations.
7689         * configure: Rebuild.
7690         * config.in: Likewise.
7691         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
7692         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
7693         (movsi_high_pic): Likewise.
7694         (movdi_lo_sum_pic): Likewise.
7695         (movdi_high_pic): Likewise.
7696         (movsi_pic_gotdata_op): New pattern.
7697         (movdi_pic_gotdata_op): Likewise.
7698         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
7699         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
7700
7701 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
7702
7703         PR target/43067
7704         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
7705         attribute to ssemul.
7706         (xop_mulv2div2di3_high): Ditto.
7707
7708 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7709
7710         PR c++/35669
7711         * c.opt (Wconversion-null): New option.
7712         * doc/invoke.texi (Wconversion-null): Document.
7713
7714 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7715
7716         * common.opt (Wlarger-than-): Add Undocumented.
7717
7718 2010-02-19  Mike Stump  <mikestump@comcast.net>
7719
7720         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
7721
7722 2010-02-19  Jason Merrill  <jason@redhat.com>
7723
7724         PR target/40332
7725         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
7726         * configure: Likewise.
7727
7728 2010-02-20  Alan Modra  <amodra@gmail.com>
7729
7730         PR middle-end/42344
7731         * cgraph.h (cgraph_make_decl_local): Declare.
7732         * cgraph.c (cgraph_make_decl_local): New function.
7733         (cgraph_make_node_local): Use it.
7734         * cgraphunit.c (cgraph_function_versioning): Likewise.
7735         * ipa.c (function_and_variable_visibility): Likewise.
7736
7737 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
7738
7739         PR bootstrap/43121
7740         * except.c (sjlj_emit_function_enter): Don't call
7741         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
7742         directly.
7743         * rtl.h (add_reg_br_prob_note): Remove prototype.
7744
7745 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7746
7747         PR 41779
7748         * c-common.c (conversion_warning): Remove widening conversions
7749         before checking the conversion of integers to reals.
7750
7751 2010-02-19  Mike Stump  <mikestump@comcast.net>
7752
7753         PR middle-end/43125
7754         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
7755
7756         PR objc/43061
7757         * cgraphunit.c (process_function_and_variable_attributes): Check
7758         DECL_PRESERVE_P instead of looking up attribute "used".
7759         * ipa-pure-const.c (check_decl): Likewise.
7760         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
7761         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
7762         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
7763         instead of attribute "used".
7764         * config/sol2-c.c (solaris_pragma_init): Likewise.
7765         (solaris_pragma_fini): Likewise.
7766
7767 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
7768
7769         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
7770         Use XCNEW instead of xcalloc.
7771         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
7772         XNEW instead of xmalloc.
7773         (get_fields): Use XNEWVEC instead of xmalloc.
7774
7775         PR debug/43084
7776         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
7777         populate vars array.
7778         (create_new_general_access): For debug stmts just reset value.
7779         (get_stmt_accesses): For accesses within debug stmts just record them
7780         using add_access_to_acc_sites instead of preventing the peeling or
7781         counting them as accesses.
7782
7783         PR middle-end/42233
7784         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
7785
7786 2010-02-19  Richard Guenther  <rguenther@suse.de>
7787
7788         PR tree-optimization/42916
7789         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
7790         instructions.
7791
7792 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
7793
7794         * configure.ac: Replace all uses of changequote in macro arguments
7795         with proper quoting.
7796
7797 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
7798
7799         PR middle-end/42233
7800         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
7801
7802 2010-02-19  Richard Guenther  <rguenther@suse.de>
7803
7804         PR tree-optimization/42944
7805         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
7806         test for aliasing with errno.
7807
7808 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
7809
7810         PR middle-end/42233
7811         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
7812         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
7813         * dojump.c: Include output.h.
7814         (inv): New inline function.
7815         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
7816         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
7817         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
7818         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
7819         argument, pass it down to other calls.
7820         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
7821         add REG_BR_PROB note to the conditional jump.
7822         * cfgexpand.c (add_reg_br_prob_note): Removed.
7823         (expand_gimple_cond): Don't call it, add the probability
7824         as last argument to jumpif_1/jumpifnot_1.
7825         * Makefile.in (dojump.o): Depend on output.h.
7826         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
7827         callers.
7828         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
7829         * stmt.c (do_jump_if_equal): Likewise.
7830         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
7831         * loop-unswitch.c (compare_and_jump_seq): Likewise.
7832         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
7833         Likewise.
7834         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
7835         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
7836         jumpifnot_1 callers.
7837         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
7838         callers.
7839         (store_expr): Adjust jumpifnot caller.
7840         (store_constructor): Adjust jumpif caller.
7841
7842         PR middle-end/42233
7843         * gimplify.c (gimple_boolify): For __builtin_expect call
7844         gimple_boolify also on its first argument.
7845
7846 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
7847
7848         * configure.ac (gnu-unique-object): Wrap regexps using [] in
7849         changequote block.
7850         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
7851         * configure: Regenerated.
7852
7853 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7854
7855         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
7856         lang_hooks.types_compatible_p instead of comptypes.
7857
7858 2010-02-18  Sebastian Huber <sebastian.huber@embedded-brains.de>
7859
7860         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
7861         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
7862         if __prefer_thumb__ is defined.
7863
7864 2010-02-18  Martin Jambor  <mjambor@suse.cz>
7865
7866         PR tree-optimization/43066
7867         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
7868         array with zero-sized element type.
7869
7870 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
7871
7872         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
7873         rtx, allocate struct var_loc_node here and return it to the
7874         caller, and only if it is actually needed.
7875         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
7876         move it earlier and return immediately if it returns NULL.
7877
7878 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
7879
7880         * config/sparc/gas.h: New file.  Restore
7881         TARGET_ASM_NAMED_SECTION to its ELF default.
7882         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
7883         check !HAVE_GNU_AS.
7884         * config/sparc/sparc.c (sparc_elf_asm_named_section):
7885         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
7886         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
7887         after sparc/sysv4.h.
7888
7889 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
7890
7891         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
7892
7893 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
7894
7895         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
7896         patterns from predicated pattern.
7897
7898 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
7899
7900         PR target/43103
7901         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
7902         for insn mnemonic suffix.
7903
7904 2010-02-17  Richard Guenther  <rguenther@suse.de>
7905
7906         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
7907         to loop PHI nodes.
7908
7909 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
7910
7911         PR debug/42918
7912         * caller-save.c (save_call_clobbered_regs): If BB ends with
7913         a DEBUG_INSN, move any notes in between last real insn and the last
7914         DEBUG_INSN after the last DEBUG_INSN.
7915
7916 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
7917
7918         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
7919         Fix return type.  Fix argument type.  Explain meaning of return value.
7920
7921 2010-02-16  Richard Guenther  <rguenther@suse.de>
7922
7923         PR tree-optimization/41043
7924         * tree-vrp.c  (vrp_var_may_overflow): Only ask SCEV for real loops.
7925         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
7926         statements ...
7927         (vrp_visit_phi_node): ... but only for loop PHI nodes.
7928
7929 2010-02-16  Ira Rosen  <irar@il.ibm.com>
7930
7931         PR tree-optimization/43074
7932         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
7933         * tree-vect-loop.c (vect_analyze_loop_operations): Add
7934         vectorizable cycles in hybrid SLP check.
7935         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
7936
7937 2010-02-16  Richard Guenther  <rguenther@suse.de>
7938
7939         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
7940         (true_dependence): If memrefs_conflict_p computes must-alias
7941         trust it.  Move TBAA check after offset-based disambiguation.
7942         (canon_true_dependence): Likewise.
7943
7944 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
7945
7946         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
7947         * doc/invoke.texi: Document it.
7948         * var-tracking.c: Include toplev.h and params.h.
7949         (vt_find_locations): Return bool indicating success.  Compute
7950         hash sizes unconditionally.  Check new parameter, report.
7951         (variable_tracking_main_1): Check vt_find_locations results and
7952         retry.  Renamed from...
7953         (variable_tracking_main): ... this.  New wrapper to preserve
7954         flag_var_tracking_assignments.
7955         * Makefile.in (var-tracking.o): Adjust dependencies.
7956
7957 2010-02-16  Jack Howarth <howarth@bromo.med.uc.edu>
7958             Jakub Jelinek <jakub@redhat.com>
7959
7960         PR target/42854
7961         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
7962         if weak_import attribute is present.
7963         * config/darwin.c (machopic_select_section): Likewise.
7964
7965 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
7966
7967         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
7968         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
7969         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
7970         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
7971
7972         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
7973         types.
7974
7975         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
7976         Fix argument types.
7977
7978         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
7979         Rewrite text to refer to the names.
7980
7981 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
7982
7983         * config/i386/i386-builtin-types.def
7984         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
7985         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
7986         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
7987         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
7988         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
7989         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
7990         IX86_BUILTIN_VPERMIL2PS256.
7991         (MULTI_ARG_4_DF2_DI_I): Defined.
7992         (MULTI_ARG_4_DF2_DI_I1): Defined.
7993         (MULTI_ARG_4_SF2_SI_I): Defined.
7994         (MULTI_ARG_4_SF2_SI_I1): Defined.
7995         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
7996         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
7997         __builtin_ia32_vpermil2ps256.
7998         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
7999         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
8000         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
8001         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
8002         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
8003         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
8004         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
8005         CODE_FOR_xop_vpermil2v8sf3.
8006         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
8007         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
8008         * config/i386/xopintrin.h (_mm_permute2_pd): New.
8009         (_mm256_permute2_pd): New.
8010         (_mm_permute2_ps): New.
8011         (_mm256_permute2_ps): New.
8012
8013 2010-02-15  Nick Clifton  <nickc@redhat.com>
8014
8015         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
8016         boolean parameters.  Use emit_jump_insn when emitting a pop
8017         instruction containing a return insn.
8018         (push): Use 'true' rather than '1' as second parameter to F.
8019         (h8300_expand_prologue): Likewise.
8020         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
8021         (h8300_expand_epilogue): Likewise.
8022
8023 2010-02-15  Richard Guenther  <rguenther@suse.de>
8024
8025         PR middle-end/43068
8026         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
8027         if that is zero.
8028
8029 2010-02-15  Nick Clifton  <nickc@redhat.com>
8030
8031         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
8032         delta.
8033
8034 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
8035
8036         * intl.c (fake_ngettext): New function.
8037         * intl.h (fake_ngettext): Declare.
8038         (ngettext): Define macro.
8039         * collect2.c (notice_translated): New function.
8040         (main): Use notice_translated and ngettext.
8041         * collect2.h (notice_translated): Declare.
8042
8043 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
8044
8045         * reorg.c (delete_computation): Comment fixes.
8046         * caller-save.c (setup_save_areas): Idem.
8047         * sel-sched-dump.c (dump_lv_set): Idem.
8048         * rtl.def: Idem.
8049
8050 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8051
8052         * config/s390/s390.c (s390_sched_init): New function.
8053         (TARGET_SCHED_INIT): Target hook defined.
8054
8055 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
8056             Jack Howarth  <howarth@bromo.med.uc.edu>
8057             Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
8058
8059         PR target/42982
8060         Partial revert of unintended change in fix for PR41605.
8061         * config/darwin.h: Fix typo.
8062         * config/darwin9.h: Same.
8063
8064 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
8065
8066         * c-pch.c (pch_init): Clear v.
8067
8068 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
8069
8070         PR middle-end/42930
8071         * graphite-scop-detection.c (graphite_can_represent_scev): Call
8072         graphite_can_represent_init for MULT_EXPR.
8073
8074 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
8075
8076         PR middle-end/42914
8077         PR middle-end/42530
8078         * graphite-sese-to-poly.c (remove_phi): New.
8079         (translate_scalar_reduction_to_array): Call remove_phi.
8080
8081 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
8082
8083         PR middle-end/42771
8084         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
8085         * graphite-clast-to-gimple.h (gloog): Update declaration.
8086         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
8087         * graphite-poly.h (struct poly_bb): Add missing comments.
8088         (struct scop): Add poly_scop_p field.
8089         (POLY_SCOP_P): New.
8090         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
8091         * graphite.c (graphite_transform_loops): Build the polyhedral
8092         representation for each scop before code generation.
8093         * sese.c (rename_variables_in_operand): Removed.
8094         (rename_variables_in_expr): Return the renamed expression.
8095         (rename_sese_parameters): New.
8096         * sese.h (rename_sese_parameters): Declared.
8097
8098 2010-02-11  Richard Guenther  <rguenther@suse.de>
8099
8100         PR tree-optimization/42998
8101         * tree-ssa-pre.c (create_expression_by_pieces): Treat
8102         POINTER_PLUS_EXPR properly.
8103
8104 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
8105             Changpeng Fang  <changpeng.fang@amd.com>
8106
8107         PR middle-end/40886
8108         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
8109         the cost of an IV candidate when the IV is used in a test against zero.
8110
8111         * gcc.dg/tree-ssa/ivopts-3.c: New.
8112
8113 2010-02-11  Richard Guenther  <rguenther@suse.de>
8114
8115         PR lto/41664
8116         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
8117         pointer-vs-decl case by swapping refs.  Handle some cases
8118         of pointer-vs-decl disambiguations more conservatively.
8119         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
8120         to false after expanding.
8121
8122 2010-02-11  Richard Guenther  <rguenther@suse.de>
8123
8124         PR driver/43021
8125         * gcc.c (process_command): Handle LTO file@offset case more
8126         appropriately.
8127
8128 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
8129
8130         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
8131         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
8132         of DEBUG_INSNs.
8133         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
8134
8135         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
8136         if MEM's mode size isn't DWARF2_ADDR_SIZE.
8137         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
8138         Optimize eq/ne comparisons when both arguments are known to be
8139         zero-extended.
8140         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
8141         Don't mask operands unnecessarily if they are known to be already
8142         zero-extended.
8143
8144 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
8145
8146         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
8147         instead of loop.
8148
8149 2010-02-10  Richard Guenther  <rguenther@suse.de>
8150
8151         PR tree-optimization/43017
8152         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
8153         for wrapping signed arithmetic.
8154
8155 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
8156
8157         PR debug/43010
8158         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
8159         if no debug info should be emitted for it.
8160
8161 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
8162
8163         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
8164         note when flag_exceptions is set.
8165
8166 2010-02-10  Duncan Sands  <baldrick@free.fr>
8167
8168         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
8169
8170 2010-02-10  Richard Guenther  <rguenther@suse.de>
8171
8172         PR c/43007
8173         * tree.c (get_unwidened): Handle constants.
8174         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
8175
8176 2010-02-10  Martin Jambor  <mjambor@suse.cz>
8177
8178         PR lto/42985
8179         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
8180         check for variable argument counts independently.
8181
8182 2010-02-10  Christian Bruel  <christian.bruel@st.com>
8183
8184         PR target/42841
8185         * config/sh/sh.c (find_barrier): Increase length for non delayed
8186         conditional branches.
8187
8188 2010-02-10  Christian Bruel  <christian.bruel@st.com>
8189
8190         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
8191
8192 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
8193
8194         * builtins.c (set_builtin_user_assembler_name): Also handle
8195         ffs if int is smaller than word.
8196
8197 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
8198
8199         PR middle-end/42973
8200         * ira-conflicts.c (get_dup): Remove.
8201         (process_reg_shuffles): Add new parameter.  Use it as an
8202         additional guard for copy generation.
8203         (add_insn_allocno_copies): Rewrite.
8204
8205 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
8206
8207         * common.opt (fsched2-use-traces): Preserved for backward
8208         compatibility.
8209         * doc/invoke.texi: Remove the documentation about option
8210         -fsched2-use-traces.
8211         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
8212         flag_sched2_use_traces.
8213         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
8214         the backward compatibility flag section.
8215
8216 2010-02-09  Richard Guenther  <rguenther@suse.de>
8217
8218         PR tree-optimization/43008
8219         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
8220         make HEAP variables initialized from global memory if they
8221         are not known builtin functions.
8222         (find_func_aliases): Adjust.
8223
8224 2010-02-09  Richard Guenther  <rguenther@suse.de>
8225
8226         PR tree-optimization/43000
8227         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
8228         arithmetic manually.
8229
8230 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
8231
8232         PR tree-optimization/42931
8233         * tree-loop-linear.c (try_interchange_loops): Don't call
8234         double_int_mul if estimated_loop_iterations failed.
8235
8236 2010-02-08  Martin Jambor  <mjambor@suse.cz>
8237
8238         PR middle-end/42898
8239         * tree-sra.c (build_accesses_from_assign): Do not mark in
8240         should_scalarize_away_bitmap if stmt has volatile ops.
8241         (sra_modify_assign): Do not process assigns piecemeal if if stmt
8242         has volatile ops.
8243
8244 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
8245
8246         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
8247
8248 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
8249
8250         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
8251         before the pattern.
8252
8253 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
8254
8255         PR middle-end/42946
8256         * df-core.c (df_finish_pass): Change type of saved_flags to int.
8257
8258 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
8259
8260         PR middle-end/42988
8261         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
8262         to unknown_dependence.
8263         (graphite_legal_transform_dr): Handle the unknown_dependence.
8264         (graphite_carried_dependence_level_k): Same.
8265
8266 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
8267
8268         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
8269
8270 2010-02-07  Richard Guenther  <rguenther@suse.de>
8271
8272         PR middle-end/42991
8273         * expr.c (get_inner_reference): Always initialize *pbitsize.
8274
8275 2010-02-07  Richard Guenther  <rguenther@suse.de>
8276
8277         PR middle-end/42956
8278         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
8279         new ARRAY_REFs on variable size element or minimal index arrays.
8280         Complete.
8281         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
8282         gimple_fold_indirect_ref.
8283
8284 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
8285
8286         PR target/42957
8287         * arm.c (arm_override_options): Just return if the user has specified
8288         an invalid fpu name.
8289
8290 2010-02-03  Jason Merrill  <jason@redhat.com>
8291
8292         PR c++/42870
8293         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
8294         i386_pe_maybe_record_exported_symbol.
8295
8296 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
8297
8298         PR target/42924
8299         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
8300         (pa_delegitimize_address): New function.
8301
8302 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
8303
8304         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
8305         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
8306
8307 2010-02-05  Richard Guenther  <rguenther@suse.de>
8308
8309         PR lto/42762
8310         * lto-streamer-in.c (get_resolution): Deal with references
8311         to undefined functions.
8312
8313 2010-02-05  Richard Guenther  <rguenther@suse.de>
8314
8315         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
8316         (fold_const_aggregate_ref): Likewise.
8317         (ccp_fold_stmt): Substitute loads.
8318         (maybe_fold_reference): Verify types before substituting.
8319         Unshare properly.
8320         (fold_gimple_assign): Unshare properly.
8321         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
8322
8323 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
8324
8325         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
8326         for rs6000_gen_cell_microcode.
8327
8328 2010-02-04  Richard Guenther  <rguenther@suse.de>
8329
8330         PR rtl-optimization/42952
8331         * dse.c (const_or_frame_p): Remove MEM handling.
8332
8333 2010-02-04  Nick Clifton  <nickc@redhat.com>
8334
8335         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
8336         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
8337         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
8338         (mn10300_asm_output_mi_thunk): New function.
8339         (mn10300_can_output_mu_thunk): New function.
8340         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
8341         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
8342         (FUNCTION_ARG): Delete incorrect comment.
8343
8344 2010-02-03  Jason Merrill  <jason@redhat.com>
8345
8346         PR c++/40138
8347         * fold-const.c (operand_equal_p): Handle erroneous types.
8348
8349 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
8350
8351         * config/h8300/h8300.md (can_delay): Fix attibute condition.
8352
8353 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
8354
8355         PR rtl-optimization/42941
8356         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
8357         of xmalloc.
8358
8359 2010-02-03  Jason Merrill  <jason@redhat.com>
8360
8361         PR c++/35652
8362         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
8363
8364 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
8365
8366         PR debug/42896
8367         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
8368         (cselib_reset_table): Renamed from...
8369         (cselib_reset_table_with_next_value): ... this.
8370         (cselib_get_next_uid): Renamed from...
8371         (cselib_get_next_unknown_value): ... this.
8372         * cselib.c (next_uid): Renamed from...
8373         (next_unknown_value): ... this.
8374         (cselib_clear_table): Adjust.
8375         (cselib_reset_table): Adjust.  Renamed from...
8376         (cselib_reset_table_with_next_value): ... this.
8377         (cselib_get_next_uid): Adjust.  Renamed from...
8378         (cselib_get_next_unknown_value): ... this.
8379         (get_value_hash): Use hash.
8380         (cselib_hash_rtx): Likewise.
8381         (new_cselib_val): Adjust.  Set and dump uid.
8382         (cselib_lookup_mem): Pass next_uid as hash.
8383         (cselib_subst_to_values): Likewise.
8384         (cselib_log_lookup): Dump uid.
8385         (cselib_lookup): Pass next_uid as hash.  Adjust.
8386         (cselib_process_insn): Adjust.
8387         (cselib_init): Initialize next_uid.
8388         (cselib_finish): Adjust.
8389         (dump_cselib_table): Likewise.
8390         * dse.c (canon_address): Dump value uid.
8391         * print-rtl.c (print_rtx): Print value uid.
8392         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
8393         (dvuid): New type.
8394         (dv_uid): New function, sort of renamed from...
8395         (dv_htab_hash): ... this, reimplemented in terms of it and...
8396         (dv_uid2hash): ... this.  New.
8397         (variable_htab_eq): Drop excess assertions.
8398         (tie_break_pointers): Removed.
8399         (canon_value_cmp): Compare uids.
8400         (variable_post_merge_New_vals): Print uids.
8401         (vt_add_function_parameters): Adjust.
8402         (vt_initialize): Reset table.  Adjust.
8403
8404 2010-02-03  Richard Guenther  <rguenther@suse.de>
8405
8406         PR tree-optimization/42944
8407         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
8408         (call_may_clobber_ref_p_1): Likewise.  Properly handle
8409         malloc and calloc clobbering errno.
8410
8411 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
8412
8413         * doc/invoke.texi: Fix name of sched1 dump.
8414
8415         * opts.c (decode_options): Set flag_tree_switch_conversion
8416         only conditionally on optimize >= 2.
8417
8418         * gcse.c: Assorted comment fixes in pass description.
8419
8420 2010-02-03  Anthony Green  <green@moxielogic.com>
8421
8422         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
8423         nop padding in order to maintain alignment of storage location of
8424         target function address.
8425         (moxie_trampoline_init): Store target function address at newly
8426         aligned location.
8427         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
8428         to 32.
8429         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
8430
8431 2010-02-03  Richard Guenther  <rguenther@suse.de>
8432
8433         PR middle-end/42927
8434         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
8435
8436 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8437
8438         * config.gcc: Reenable check for obsolete targets.
8439         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
8440         mips-sgi-irix6.[0-4]*.
8441
8442 2010-02-02  Nick Clifton  <nickc@redhat.com>
8443
8444         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
8445         constant size of 4 as being the same as 0.
8446         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
8447         can take values in the range 0..4.
8448
8449 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
8450
8451         PR java/41991
8452         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
8453         as _darwin10_Unwind_FindEnclosingFunction().
8454         * libgcc-libsystem.ver: New.
8455
8456 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
8457
8458         PR target/41399
8459         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
8460         implicitly set registers.
8461
8462 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
8463
8464         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
8465         (arm_override_options): Allow automatic selection of the thread
8466         pointer register if thumb2.
8467         (legitimize_pic_address): Improve code sequences for Thumb2.
8468         (arm_call_tls_get_addr): Likewise.
8469         (legitimize_tls_address): Likewise.
8470         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
8471         (pic_load_addr_32bit): ... this.  New named pattern.
8472         * thumb2.md (pic_load_addr_thumb2): Delete.
8473         (pic_load_dot_plus_four): Delete.
8474         (tls_load_dot_plus_four): New named pattern.
8475
8476 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8477
8478         PR libgomp/29986
8479         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
8480         Document fix for TLS bug.
8481
8482 2010-01-31  Richard Guenther  <rguenther@suse.de>
8483
8484         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
8485         conservatively correct.
8486
8487 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8488
8489         PR target/42850
8490         Revert:
8491         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8492
8493         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
8494
8495 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8496
8497         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
8498
8499 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
8500
8501         * config.gcc: Adjust order of makefile fragments for mingw targets.
8502
8503 2010-01-31  Richard Guenther  <rguenther@suse.de>
8504
8505         PR middle-end/42898
8506         * gimplify.c (gimplify_init_constructor): For volatile LHS
8507         initialize a temporary.
8508
8509 2010-01-31  Matthias Klose  <doko@ubuntu.com>
8510
8511         * configure.ac: Fix __stack_chk_fail check for cross builds configured
8512         --with-headers
8513         * configure: Regenerate.
8514
8515 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
8516
8517         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
8518         the same alias set and their sizes different constantness.
8519         (aliasing_component_refs_p): Revert 2009-10-24 change.
8520
8521 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8522
8523         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
8524         unused.
8525
8526 2010-01-29  Richard Guenther  <rguenther@suse.de>
8527
8528         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
8529         Assert we successfully updated the call.
8530
8531 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
8532
8533         PR rtl-optimization/42889
8534         * df.h (df_set_bb_dirty_nonlr): New prototype.
8535         * df-core.c (df_set_bb_dirty_nonlr): New function.
8536         * df-scan.c (df_insn_rescan): Call it instead of
8537         df_set_bb_dirty for DEBUG_INSNs.
8538
8539 2010-01-29  Richard Guenther  <rguenther@suse.de>
8540
8541         PR middle-end/37448
8542         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
8543         quadratic behavior in most cases.
8544
8545 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
8546
8547         PR target/42891
8548         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
8549         in the call to gen_x86_movsicc_0_m1.
8550
8551 2010-01-28  Richard Guenther  <rguenther@suse.de>
8552
8553         PR tree-optimization/42871
8554         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
8555
8556 2010-01-28  Richard Guenther  <rguenther@suse.de>
8557
8558         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
8559         into call arguments.
8560
8561 2010-01-28  Richard Guenther  <rguenther@suse.de>
8562
8563         PR middle-end/42883
8564         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
8565         the forwarder if the destination is an EH landing pad.
8566
8567 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
8568
8569         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
8570         block list passed to gimple_duplicate_sese_tail.
8571         (parallelize_loops): Avoid parallelization when the function
8572         has_nonlocal_label.
8573         Avoid parallelization when the preheader is IRREDUCIBLE.
8574         Try to optimize when estimated_loop_iterations_int is unresolved.
8575         Add the loop's location to the dump file.
8576         * tree-cfg.c (add_phi_args_after_redirect): Remove.
8577         (gimple_duplicate_sese_tail): Remove the check for the latch.
8578         Redirect nexits to the exit block.
8579         Remove handling of the incoming edges to the latch.
8580         Redirect the backedge from the copied latch to the exit bb.
8581
8582 2010-01-28  Michael Matz  <matz@suse.de>
8583
8584         PR target/42881
8585         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
8586         Wrap force_reg into a sequence, emit it before user.
8587
8588 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
8589
8590         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
8591         (arm_rev): New.
8592         (arm_legacy_rev): Likewise.
8593         (thumb_legacy_rev): Likewise.
8594
8595 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
8596
8597         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
8598         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
8599         on MEM's address failed, try avoid_constant_pool_reference and
8600         recurse if it returned something different.
8601         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
8602         address, try avoid_constant_pool_reference and recurse if it
8603         returned something different.
8604         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
8605         address and avoid_constant_pool_reference returned something
8606         different, don't set have_address.
8607
8608 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
8609
8610         PR debug/42861
8611         * var-tracking.c (val_store): Add modified argument, obey it.
8612         Adjust callers.
8613         (count_uses): Move down logging of main.
8614         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
8615         don't need resolution.
8616         (emit_notes_in_bb): Likewise.
8617
8618 2010-01-27  Richard Guenther  <rguenther@suse.de>
8619
8620         PR middle-end/42878
8621         * tree-inline.c (remap_decl): Delay remapping of SSA name
8622         default definitions until we need them.
8623
8624 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
8625
8626         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
8627         (rs6000_delegitimize_address): New function.
8628
8629         * config/s390/s390.c (s390_delegitimize_address): Call
8630         delegitimize_mem_from_attrs.
8631
8632         PR middle-end/42874
8633         * tree-inline.c (cannot_copy_type_1): Removed.
8634         (copy_forbidden): Don't forbid copying of functions containing
8635         records/unions with variable length fields.
8636
8637 2010-01-27  Christian Bruel  <christian.bruel@st.com>
8638
8639         Revert:
8640         PR target/42841
8641         * config/sh/sh.c (find_barrier): Increase length for non delayed
8642         conditional branches.
8643
8644 2010-01-27  Matthias Klose  <doko@ubuntu.com>
8645
8646         * configure.ac (gnu-unique-object): Fix ldd version check.
8647         * configure: Regenerate.
8648
8649 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8650
8651         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
8652         HAVE_GNU_AS value.
8653         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
8654         Test for HAVE_GNU_AS value.
8655
8656 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8657
8658         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
8659         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
8660         INT64_TYPE): Define.
8661         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
8662         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
8663         INT_LEAST64_TYPE): Define.
8664         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
8665         UINT_LEAST64_TYPE): Define.
8666         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
8667         INT_FAST64_TYPE): Define.
8668         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
8669         UINT_FAST64_TYPE): Define.
8670         (INTMAX_TYPE, UINTMAX_TYPE): Define.
8671         (INTPTR_TYPE, UINTPTR_TYPE): Define.
8672         (SIG_ATOMIC_TYPE): Define.
8673
8674 2010-01-26  Richard Guenther  <rguenther@suse.de>
8675
8676         * df-scan.c (df_scan_set_bb_info): Remove assert.
8677         (df_insn_rescan_debug_internal): Merge asserts.
8678         (df_install_ref): Likewise.
8679         (df_mark_reg): Use bitmap_set_range.
8680         (df_hard_reg_used_p): Remove assert.
8681         (df_hard_reg_used_count): Likewise.
8682
8683 2010-01-26  Richard Guenther  <rguenther@suse.de>
8684
8685         PR rtl-optimization/42685
8686         * web.c (web_main): Ignore DEBUG_INSNs.
8687
8688 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
8689
8690         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
8691
8692         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
8693         Fix types of fndecl and arglist parameters.
8694
8695 2010-01-26  Richard Guenther  <rguenther@suse.de>
8696
8697         PR middle-end/42806
8698         * tree-eh.c (unsplit_eh): Skip debug insns.
8699
8700 2010-01-26  Richard Guenther  <rguenther@suse.de>
8701
8702         PR tree-optimization/42250
8703         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
8704
8705 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
8706
8707         PR fortran/42866
8708         * omp-low.c (expand_omp_sections): Only use single_pred if
8709         l2_bb is single_pred_p.
8710
8711 2010-01-25  Christian Bruel  <christian.bruel@st.com>
8712
8713         PR target/42841
8714         * config/sh/sh.c (find_barrier): Increase length for non delayed
8715         conditional branches.
8716         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
8717
8718 2010-01-24  David S. Miller  <davem@davemloft.net>
8719
8720         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
8721         define if not using GAS.
8722         * config/sparc/sparc.c (sparc_elf_asm_named_section):
8723         Likewise.  Delete SECTION_MERGE code, which is only applicable
8724         when using GAS.
8725
8726 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
8727
8728         PR c++/42748
8729         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
8730         mangling of va_list in system headers.
8731
8732 2010-01-23  Toon Moene  <toon@moene.org>
8733
8734         * tree-predcom.c (combine_chains): Return NULL, not false.
8735
8736 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
8737
8738         * tree-loop-distribution.c (distribute_loop): Fix declaration and
8739         initialization of variable res to agree with return type.
8740
8741 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
8742
8743         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
8744         * tree-sra.c: Add include of expr.h.
8745
8746 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
8747
8748         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
8749         insert the debug stmt on the single non-EH edge from the stmt.
8750
8751 2010-01-22  Richard Henderson  <rth@redhat.com>
8752
8753         PR tree-opt/42833
8754         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
8755         the RHS until after generate_subtree_copies has insertted its
8756         code before the current statement.
8757
8758 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
8759
8760         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
8761
8762         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
8763
8764 2010-01-21  Martin Jambor  <mjambor@suse.cz>
8765
8766         PR tree-optimization/42585
8767         * tree-sra.c (struct access): New field grp_total_scalarization.
8768         (dump_access): Dump the new field.
8769         (should_scalarize_away_bitmap): New variable.
8770         (cannot_scalarize_away_bitmap): Likewise.
8771         (sra_initialize): Allocate new bitmaps.
8772         (sra_deinitialize): Free new bitmaps.
8773         (create_access_1): New function.
8774         (create_access): Parts moved to create_access_1.
8775         (type_consists_of_records_p): New function.
8776         (completely_scalarize_record): Likewise.
8777         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
8778         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
8779         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
8780         access.
8781         (analyze_all_variable_accesses): Completely scalarize small eligible
8782         records.
8783
8784 2010-01-21  Martin Jambor  <mjambor@suse.cz>
8785
8786         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
8787
8788 2010-01-21  Andrew Haley  <aph@redhat.com>
8789
8790         * gcc.c (process_command): Move lang_specific_driver before
8791         setting cc_libexec_prefix.
8792
8793 2010-01-21  Richard Guenther  <rguenther@suse.de>
8794
8795         PR middle-end/19988
8796         * fold-const.c (negate_expr_p): Pretend only negative
8797         real constants are easily negatable.
8798
8799 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
8800             Jason Merrill  <jason@redhat.com>
8801
8802         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
8803         (TYPE_TRANSPARENT_AGGR): this, for union and record.
8804         * calls.c (initialize argument_information): Handle it.
8805         * c-common.c (handle_transparent_union_attribute): Use new name.
8806         * c-decl.c (finish_struct): Ditto.
8807         * c-typeck.c (type_lists_compatible_p): Ditto.
8808         (convert_for_assignment): Use new name and also handle record.
8809         * function.c (aggregate_value_p): Handle it.
8810         (pass_by_reference): Ditto.
8811         (assign_parm_data_types): Ditto.
8812         * print-tree.c (print_node): Ditto.
8813         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
8814         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
8815         * tree.c (first_field): New fn.
8816
8817 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
8818
8819         PR target/42818
8820         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
8821         even when linking statically, for now.
8822
8823 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
8824
8825         PR debug/42715
8826         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
8827         without a cselib val.
8828         (count_uses): Accept MO_VAL_SET with no val on stores.
8829         (add_stores): Likewise.
8830
8831 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
8832
8833         * var-tracking.c (check_value_val): Add a compile time assertion.
8834         (dv_is_decl_p): Simplify.
8835         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
8836         gcc_assert if ENABLE_CHECKING.
8837
8838 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
8839
8840         PR debug/42782
8841         * var-tracking.c: Include tree-flow.h.
8842         (mem_dies_at_call): New.
8843         (dataflow_set_preserve_mem_locs): Use it.
8844         (dataflow_set_remove_mem_locs): Likewise.
8845         (dump_var): Renamed from dump_variable.  Adjust all callers.
8846         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
8847         * Makefile.in (var-tracking.o): Adjust deps.
8848
8849 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
8850
8851         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
8852
8853 2010-01-20  Richard Guenther  <rguenther@suse.de>
8854
8855         PR tree-optimization/42717
8856         * tree-ssa-dce.c (get_live_post_dom): Remove.
8857         (forward_edge_to_pdom): Take an arbitrary edge to copy
8858         degenerate PHI args from.
8859         (remove_dead_stmt): Use the first post-dominator even if it
8860         does not contain live statements as redirection destination.
8861
8862 2010-01-20  Richard Guenther  <rguenther@suse.de>
8863
8864         * tree-inline.c (estimate_num_insns): Handle EH builtins.
8865
8866 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
8867
8868         * sel-sched.c (create_speculation_check): Remove set but not used
8869         variable twin.
8870         (try_transformation_cache): Remove set but not used variable ds.
8871         (calculate_privileged_insns): Remove set but not used variables
8872         cur_insn and min_spec_insn.
8873         (find_best_expr): Remove set but not used variable avail_n.
8874         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
8875         variable e.
8876         * cgraphunit.c (assemble_thunk): Remove set but not used variable
8877         false_label.
8878         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
8879         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
8880         new_scop_exit_edge.
8881
8882 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
8883
8884         PR bootstrap/42786
8885         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
8886         cpu types.  Add support for *-sse3 cpu types.
8887         (x86_64-*-*): Ditto.
8888
8889 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
8890
8891         PR middle-end/42803
8892         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
8893         argument, call initializer_constant_valid_p_1 instead of
8894         initializer_constant_valid_p, pass CACHE to it, return NULL
8895         immediately if first call returns NULL.
8896         (initializer_constant_valid_p_1): New function.
8897         (initializer_constant_valid_p): Use it.
8898
8899 2010-01-20  Thomas Quinot  <quinot@adacore.com>
8900
8901         * tree.def (PLACEHOLDER_EXPR): Fix comment.
8902
8903 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
8904
8905         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
8906         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
8907         (loc_list_from_tree): Don't handle unsigned division.  Handle
8908         signed modulo using DW_OP_{over,over,div,mul,minus}.
8909         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
8910         modulo instead of signed.
8911
8912 2010-01-20  DJ Delorie  <dj@redhat.com>
8913
8914         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
8915         (Fpa): Pass it
8916         (h8300_emit_stack_adjustment): Propogate it.
8917         (push): Pass it.
8918         (h8300_expand_prologue): Likewise.
8919         (h8300_expand_epilogue): Likewise.
8920
8921 2010-01-19  Michael Matz  <matz@suse.de>
8922
8923         PR tree-optimization/41783
8924         * tree-data-ref.c (toplevel): Include flags.h.
8925         (dump_data_dependence_relation):  Also dump the inputs if the
8926         result will be unknown.
8927         (split_constant_offset_1): Look through some conversions.
8928         * tree-predcom.c (determine_roots_comp): Restart a new chain if
8929         the offset from last element is too large.
8930         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
8931         (reassociate_to_the_same_stmt): Handle vector registers.
8932         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
8933         (e.g. conversions).
8934         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
8935         wide_prolog_niters argument, emit widening instructions.
8936         (vect_do_peeling_for_alignment): Adjust caller, use widened
8937         variant of the iteration cound.
8938         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
8939
8940 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8941
8942         PR target/38697
8943         * config/arm/neon-testgen.m (emit_automatics): New parameter
8944         features. Adjust for Fixed_return_reg feature.
8945         (test_intrinsic): Call emit_automatics with new feature.
8946         * config/arm/neon.ml: Update copyright years.
8947         (features): New Fixed_return_reg feature.
8948         (ops): Update feature for Vget_low.
8949
8950 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
8951
8952         PR tree-optimization/42719
8953         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
8954         stmt uses.
8955
8956         PR debug/42728
8957         * fwprop.c (all_uses_available_at): Return false if def_set dest
8958         is a REG that is used in def_insn.
8959
8960 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
8961
8962         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
8963
8964         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
8965         Add argument names.
8966
8967         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
8968
8969         * target.h (struct gcc_target) <secondary_reload>: Change type
8970         of last argument to secondary_reload_info *.
8971
8972 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
8973
8974         PR target/42774
8975         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
8976         memory references with unaligned offsets.  Remove CQImode handling.
8977         (unaligned_memory_operand): Return 1 for memory references with
8978         unaligned offsets.  Remove CQImode handling.
8979
8980 2010-01-18  Richard Guenther  <rguenther@suse.de>
8981
8982         PR middle-end/39954
8983         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
8984         builtin calls.
8985
8986 2010-01-18  Richard Guenther  <rguenther@suse.de>
8987
8988         PR tree-optimization/42781
8989         * tree-ssa-structalias.c (find_what_var_points_to): Skip
8990         restrict processing only if the original variable was artificial.
8991
8992 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
8993
8994         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
8995         find number of popped argument bytes.
8996
8997         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
8998         Fix the text that describes the return value for invalid insns.
8999
9000         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
9001
9002         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
9003         Clarify what 'cost of the -dependence' is.  Fix quoting.
9004
9005         * toplev.c (default_get_pch_validity): Rename argument to "sz".
9006         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
9007
9008 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
9009
9010         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
9011         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
9012
9013 2010-01-17  Richard Guenther  <rguenther@suse.de>
9014
9015         PR middle-end/42248
9016         * function.c (split_complex_args): Take a VEC to modify.
9017         (assign_parms_augmented_arg_list): Build a VEC instead of
9018         a chain of PARM_DECLs.
9019         (assign_parms_unsplit_complex): Take a VEC of arguments.
9020         Do not fixup unmodified parms.
9021         (assign_parms): Deal with the VEC.
9022         (gimplify_parameters): Likewise.
9023
9024 2010-01-17  Richard Guenther  <rguenther@suse.de>
9025
9026         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
9027         node existence check.
9028         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
9029         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
9030         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
9031         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
9032         (gimple_execute_on_growing_pred): Likewise.
9033
9034 2010-01-17  Richard Guenther  <rguenther@suse.de>
9035
9036         PR tree-optimization/42773
9037         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
9038         (compute_antic_aux): Likewise.
9039         (compute_partial_antic_aux): Likewise.
9040
9041 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
9042
9043         PR debug/42767
9044         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
9045         and US_TRUNCATE.
9046
9047 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
9048
9049         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
9050         appearance.
9051
9052         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
9053         Fix markup for strict argument.
9054
9055         (TARGET_SCHED_REORDER2): Fix argument types.
9056
9057         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
9058         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
9059
9060         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
9061         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
9062
9063         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
9064         Add argument name.
9065
9066         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
9067         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
9068         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
9069         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
9070         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
9071
9072         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
9073
9074         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
9075
9076         (TARGET_ASM_RELOC_RW_MASK): Add return type.
9077         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
9078
9079         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
9080
9081         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
9082         Use prototype.
9083
9084         (TARGET_ASM_NAMED_SECTION): Fix argument list.
9085
9086         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
9087         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
9088
9089         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
9090
9091         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
9092
9093         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
9094         referring to it.  Fix language.
9095
9096         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
9097
9098         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
9099
9100         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
9101
9102         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
9103
9104         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
9105         '@var{stream}.  Remove stray 'and'.
9106
9107         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
9108
9109         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
9110
9111         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
9112
9113         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
9114         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
9115
9116         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
9117         Fix description of return value.
9118         Rename argument "sz" to "len."
9119
9120         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
9121         Clarify meaning of 'true' return value.
9122
9123         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
9124
9125         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
9126         rep_mode versus mode_rep.
9127
9128         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
9129
9130         (TARGET_BUILTIN_DECL): Fix name.
9131
9132         (TARGET_COMMUTATIVE_P): Fix type of first argument.
9133
9134         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
9135
9136         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
9137
9138         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
9139
9140         (TARGET_RELAXED_ORDERING): Use @deftypevr.
9141
9142         (TARGET_GET_DRAP_RTX): Note that this is a hook.
9143         Clarify language.
9144
9145         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
9146         Rename argument tm_fn to md_fn.
9147
9148         (TARGET_OPTION_PRINT): Fix argument list.
9149
9150 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
9151
9152         PR target/42664
9153         * config/i386/i386.c (ix86_fixup_binary_operands):
9154         Revert FMA4 fixup of operands.
9155
9156 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9157
9158         PR gcc/42525
9159         * Makefile.in (write_entries_to_file, install-plugin):
9160         Use \012 instead of \n with tr.
9161
9162 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
9163
9164         * configure.ac (HAVE_AS_REF): New C macro.
9165         * configure: Regenerate.
9166         * config.in: Likewise.
9167         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
9168         if HAVE_AS_REF.
9169         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
9170         if HAVE_AS_REF.
9171
9172 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
9173
9174         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
9175
9176         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
9177
9178         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
9179
9180         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
9181
9182         (TARGET_IN_SMALL_DATA_P): Fix argument type.
9183
9184         (TARGET_BINDS_LOCAL_P): Fix argument type.
9185
9186         (TARGET_ASM_FILE_END): Use prototype.
9187
9188         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
9189
9190         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
9191
9192         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
9193
9194         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
9195
9196         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
9197         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
9198
9199         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
9200         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
9201
9202         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
9203         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
9204         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
9205         (TARGET_ADDR_SPACE_CONVERT): Likewise.
9206
9207         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
9208
9209         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
9210
9211         (TARGET_INIT_BUILTINS): Use prototype.
9212
9213         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
9214         Put 'const char *' in braces.  Fix parameter types.
9215         (TARGET_INVALID_CONVERSION): Fix parameter types.
9216         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
9217         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
9218
9219         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
9220         Fix argument type.
9221
9222         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
9223
9224         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
9225
9226 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
9227
9228         * doc/tm.texi (TARGET_HELP): Fix return type.
9229
9230         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
9231         in braces.  Fix argument types.
9232
9233         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
9234
9235         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
9236
9237         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
9238
9239         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
9240         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
9241
9242         (TARGET_MANGLE_TYPE): Fix argument types.
9243
9244         (TARGET_IRA_COVER_CLASSES): Use prototype.
9245
9246         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
9247
9248         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
9249
9250         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
9251
9252         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
9253
9254         (TARGET_CALLEE_COPIES): Fix argument types.
9255
9256         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
9257
9258         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
9259
9260         (TARGET_FUNCTION_VALUE): Fix argument types.
9261
9262         (TARGET_RETURN_IN_MSB): Fix argument type.
9263
9264         (TARGET_RETURN_IN_MEMORY): Fix argument types.
9265
9266         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
9267
9268         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
9269
9270         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
9271         agree with return type.
9272
9273         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
9274
9275 2010-01-15  Jing Yu  <jingyu@google.com>
9276
9277         PR rtl-optimization/42691
9278         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
9279         a pseudo to a constant and are merged, and adjust comments.
9280
9281 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
9282
9283         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
9284
9285 2010-01-15  Richard Guenther  <rguenther@suse.de>
9286
9287         PR middle-end/42739
9288         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
9289         labels of computed or non-local gotos to the destination.
9290         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
9291         landing pad label is the first label.
9292
9293 2010-01-15  Richard Guenther  <rguenther@suse.de>
9294
9295         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
9296
9297 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
9298
9299         PR target/42747
9300         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
9301         to allow generation of the xssqrtdp instruction on power7.
9302         (sqrtdf2_fpr): Ditto.
9303
9304 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
9305
9306         PR middle-end/42674
9307         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
9308         functions with noreturn attribute.
9309
9310         PR c++/42608
9311         * varasm.c (declare_weak): Add weak attribute to decl if it
9312         doesn't have one already.
9313         (assemble_external): Only add decls to weak_decls if they also
9314         have weak attribute.
9315
9316 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
9317
9318         * var-tracking.c (var_reg_delete): Don't delete the association
9319         between REGs and values or one-part variables if the register
9320         isn't clobbered.
9321
9322 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
9323
9324         PR debug/42657
9325         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
9326         because its first operand is a non-localized variable.
9327
9328 2010-01-14  Martin Jambor  <mjambor@suse.cz>
9329
9330         PR tree-optimization/42706
9331         * tree-sra.c (encountered_recursive_call): New variable.
9332         (encountered_unchangable_recursive_call): Likewise.
9333         (sra_initialize): Initialize both new variables.
9334         (callsite_has_enough_arguments_p): New function.
9335         (scan_function): Call decl and flags check only for IPA-SRA, check
9336         whether there is a recursive call and whether it has enough arguments.
9337         (all_callers_have_enough_arguments_p): New function.
9338         (convert_callers): Look for recursive calls only when
9339         encountered_recursive_call is set.
9340         (ipa_early_sra): Bail out either if
9341         !all_callers_have_enough_arguments_p or
9342         encountered_unchangable_recursive_call.
9343
9344 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
9345
9346         * sel-sched.c: Add 2010 to copyright years.
9347         * sel-sched-ir.c: Likewise.
9348         * sel-sched-ir.h: Likewise.
9349
9350 2010-01-14  Martin Jambor  <mjambor@suse.cz>
9351
9352         PR tree-optimization/42714
9353         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
9354         constructors specially.
9355
9356 2010-01-14  Andi Kleen  <ak@linux.intel.com>
9357
9358         * config/i386/drivers-i386.c (detect_caches_intel):
9359         Add l2sizekb parameter and fill in.
9360         (host_detect_local_cpu): Add l2sizekb, fill in.
9361         Add Atom small cache heuristic.
9362
9363 2010-01-14  Andi Kleen  <ak@linux.intel.com>
9364
9365         * config/i386/drivers-i386.c (detect_caches_cpuid4):
9366         Add level3 parameter and fill in.
9367         (detect_caches_intel): Handle level3 cache.
9368
9369 2010-01-14  Andi Kleen  <ak@linux.intel.com>
9370
9371         * config/i386/drivers-i386.c (host_detect_local_cpu):
9372         Fix core duo detection.
9373
9374 2010-01-14  Andi Kleen  <ak@linux.intel.com>
9375
9376         * config/i386/drivers-i386.c (host_detect_local_cpu):
9377         Fix Atom detection.
9378
9379 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
9380
9381         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
9382         (rs6000_variable_issue_1): this.  Use...
9383         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
9384
9385 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
9386
9387         * sel-sched-ir.c (sel_restore_other_notes): Rename to
9388         sel_restore_notes.  Update all callers.  Call reemit_notes
9389         for all insns.
9390
9391 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
9392
9393         PR rtl-optimization/42246
9394         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
9395         loops.
9396
9397 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
9398
9399         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
9400         all successors is the same as number of successors in current region.
9401
9402 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
9403
9404         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
9405         to rename is not separable.  Otherwise check that its LHS is not NULL.
9406
9407 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
9408
9409         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
9410
9411 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
9412
9413         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
9414         available registers when failed to discover LHS register class.
9415         Fix indentation.  Update comment.
9416
9417 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
9418             Alexander Monakov  <amonakov@ispras.ru>
9419
9420         PR rtl-optimization/42389
9421         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
9422         to can_issue_more.
9423         (advance_state_on_fence): Likewise.
9424         (sel_target_adjust_priority): Print debug output only when
9425         sched_verbose >= 4, not 2.
9426         (get_expr_cost): Do not issue all unique insns on the next cycle.
9427         (fill_insns): Initialize can_issue_more from the value saved
9428         with the fence.
9429         * sel-sched-ir.c (flist_add): New parameter issue_more.
9430         Init FENCE_ISSUE_MORE with it.
9431         (merge_fences): Likewise.
9432         (init_fences): Update call to flist_add.
9433         (add_to_fences, add_clean_fence_to_fences)
9434         (add_dirty_fence_to_fences): Likewise.
9435         (move_fence_to_fences): Update call to merge_fences.
9436         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
9437         sched groups.
9438         * sel-sched-ir.h (struct _fence): New field issue_more.
9439         (FENCE_ISSUE_MORE): New accessor macro.
9440
9441 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
9442
9443         PR rtl-optimization/42388
9444         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
9445         that have no predecessors nor successors.  Do not call move_bb_info
9446         for empty blocks outside of current region.
9447
9448 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
9449
9450         PR rtl-optimization/42294
9451         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
9452         * sel-sched.c (move_exprs_to_boundary): Transitively add all
9453         originators' originators.
9454
9455 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
9456
9457         PR rtl-optimization/39453
9458         PR rtl-optimization/42246
9459         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
9460         for pipelining_p.
9461         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
9462
9463 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
9464             Alexander Monakov  <amonakov@ispras.ru>
9465
9466         PR middle-end/42245
9467         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
9468         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
9469         argument.  Update all callers.
9470         (tidy_control_flow): ... and here.  Recompute topological order
9471         of basic blocks in region if necessary.
9472         (sel_redirect_edge_and_branch): Change return type.  Return true
9473         if topological order might have been invalidated.
9474         (purge_empty_blocks): Export and move from...
9475         * sel-sched.c (purge_empty_blocks): ... here.
9476         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
9477         (maybe_tidy_empty_bb): Delete prototype.
9478         (purge_empty_blocks): Declare.
9479
9480 2010-01-14  Andrey Belevantsev <abel@ispras.ru>
9481
9482         PR rtl-optimization/42249
9483         * sel-sched.c (try_replace_dest_reg): When chosen register
9484         and original register is the same, do not bail out early, but
9485         still check all original insns for validity of replacing destination
9486         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
9487         in this case.
9488
9489 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
9490
9491         PR c/42721
9492         Port from no-undefined-overflow branch:
9493         2009-03-09  Richard Guenther  <rguenther@suse.de>
9494
9495         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
9496
9497 2010-01-14  Richard Guenther  <rguenther@suse.de>
9498
9499         PR lto/42665
9500         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
9501
9502 2010-01-14  Ira Rosen  <irar@il.ibm.com>
9503
9504         PR tree-optimization/42709
9505         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
9506         as scalar type in creation of constant vector operand.
9507
9508 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9509
9510         PR testsuite/42414
9511         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
9512         (check-parallel-%): Match `testsuite' directory component only
9513         at the end.
9514
9515 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
9516
9517         PR translation/39521
9518         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
9519         strings with _().
9520
9521 2010-01-13  Richard Guenther  <rguenther@suse.de>
9522
9523         PR tree-optimization/42730
9524         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
9525         offset zero.
9526
9527 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
9528
9529         PR target/pr42542
9530         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
9531         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
9532         them signed.
9533
9534 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
9535
9536         * config/bfin/libgcc-bfin.ver: Regenerate based on current
9537         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
9538         ___umulsi3_highpart.
9539
9540         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
9541         rather than schedule_insns if the pass is enabled.
9542
9543 2010-01-13  Martin Jambor  <mjambor@suse.cz>
9544
9545         PR tree-optimization/42704
9546         * tree-sra.c (sra_modify_assign): Do not delete assignments to
9547         SSA_NAMEs.
9548
9549 2010-01-13  Martin Jambor  <mjambor@suse.cz>
9550
9551         PR tree-optimization/42703
9552         * tree-sra.c (analyze_access_subtree): Check that we can build a
9553         reference to the original data within the aggregate.
9554
9555 2010-01-13  Richard Guenther  <rguenther@suse.de>
9556
9557         PR tree-optimization/42705
9558         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
9559
9560 2010-01-13  Richard Guenther  <rguenther@suse.de>
9561
9562         PR middle-end/42716
9563         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
9564
9565 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
9566
9567         PR debug/41371
9568         * var-tracking.c (values_to_unmark): New variable.
9569         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
9570         values_to_unmark vector.  Moved body to...
9571         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
9572         instead queue it into values_to_unmark vector.
9573         (vt_find_locations): Free values_to_unmark vector.
9574
9575 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
9576
9577         * config/s390/s390.c (override_options): Set
9578         default of max-pending-list-length to 256
9579
9580 2010-01-13  Richard Guenther  <rguenther@suse.de>
9581
9582         PR lto/42678
9583         * tree-pass.h (PROP_gimple_lcx): New.
9584         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
9585         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
9586         before the final cleanup_eh.
9587         (dump_properties): Dump PROP_gimple_lcx.
9588         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
9589         (tree_lower_complex_O0): Remove.
9590         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
9591         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
9592         tree_lower_complex, schedule TODO_update_ssa.
9593         * lto-streamer-out.c (output_function): Stream the functions
9594         properties.
9595         * lto-streamer-in.c (input_function): Likewise.
9596         (lto_read_body): Do not override them here.
9597
9598 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
9599
9600         PR c/42708
9601         * c-typeck.c (build_c_cast): Fold value cast to union type before
9602         wrapping it in a CONSTRUCTOR.
9603
9604 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
9605
9606         PR rtl-optimization/42699
9607         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
9608         involved.
9609
9610 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9611
9612         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
9613         SUBTARGET_WARN_UNUSED_SPEC): Move ...
9614         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
9615         SUBTARGET_WARN_UNUSED_SPEC): ... here
9616         * config/mips/iris5.h (LIBGCC_SPEC): Define.
9617
9618 2010-01-12  Julian Brown  <julian@codesourcery.com>
9619
9620         * config/arm/neon-schedgen.ml (Utils): Don't try to
9621         open missing module.
9622         (find_with_result): New.
9623
9624 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
9625
9626         PR debug/42662
9627         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
9628         sharing when canonicalizing ({lt,ge}u (plus a b) b).
9629
9630         PR tree-optimization/42645
9631         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
9632         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
9633         decl_map, set processing_debug_stmt to -1 and return name without
9634         any remapping.
9635
9636 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
9637
9638         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
9639         binutils version, and reword target configuration description.
9640
9641 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
9642
9643         * config/avr/avr.h (LINKER_NAME): Remove.
9644
9645 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
9646
9647         PR target/42416
9648         * config/rs6000/rs6000.c (rs6000_override_options): On targets
9649         that support VSX, warn for -mno-altivec if vsx is not disabled,
9650         and disable vsx.
9651
9652 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
9653             Shujing Zhao  <pearly.zhao@oracle.com>
9654
9655         PR translation/42469
9656         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
9657         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
9658         character between option name and help text.
9659         * c.opt (imultilib): Likewise.
9660
9661 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
9662
9663         * lto-streamer-out.c (output_unreferenced_globals): Output static
9664         variables.
9665
9666 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
9667
9668         PR rtl-optimization/42621
9669         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
9670         optimizing for size.
9671         (duplicate_computed_gotos): Remove now-redundant check.
9672
9673 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
9674
9675         PR target/37454
9676         * configure.ac: Save and restore LDFLAGS and LIBS
9677         * configure: Regenerate.
9678
9679 2010-01-10  Richard Guenther  <rguenther@suse.de>
9680
9681         PR middle-end/42667
9682         * builtins.c (fold_builtin_strlen): Add type argument and
9683         convert the resulting length to it.
9684         (fold_builtin_1): Adjust.
9685
9686 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
9687
9688         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
9689         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
9690         1 insn.
9691         (num_insns_constant_wide): Adjust for that change.
9692
9693 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
9694
9695         PR debug/42631
9696         * web.c (union_defs): Add used argument, to combine uses of
9697         uninitialized regs.
9698         (entry_register): Adjust type and tests of used argument.
9699         (web_main): Widen used for new use.  Pass it to union_defs.
9700         * df.h (union_defs): Adjust prototype.
9701
9702 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
9703
9704         PR debug/42630
9705         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
9706         uses in new incoming argument.  Free body.
9707         (reset_debug_uses_in_loop): New.
9708         (analyze_insn_to_expand_var): Call the latter if the former found
9709         anything.  Fix whitespace.  Reject invalid dest overlaps before
9710         going through all insns in the loop.
9711
9712 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
9713
9714         PR debug/42629
9715         * haifa-sched.c (dying_use_p): Debug insns don't count.
9716
9717 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
9718
9719         PR middle-end/42363
9720         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
9721         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
9722         (verify_gimple_call): Reject LHS in noreturn calls.
9723
9724 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
9725
9726         PR debug/42604
9727         PR debug/42395
9728         * tree-vect-loop-manip.c (adjust_info): New type.
9729         (adjust_vec): New pointer to vector.
9730         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
9731         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
9732         (slpeel_update_phis_for_duplicate_loop): Use them.
9733         (slpeel_update_phi_nodes_for_guard1): Likewise.
9734         (slpeel_update_phi_nodes_for_guard2): Likewise.
9735         (slpeel_tree_peel_loop_to_edge): Likewise.
9736         (vect_update_ivs_after_vectorizer): Likewise.
9737
9738 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
9739
9740         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
9741         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
9742
9743 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
9744
9745         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
9746         bogus uninitialized warning.
9747
9748 2010-01-09  Richard Guenther  <rguenther@suse.de>
9749
9750         PR middle-end/42512
9751         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
9752         the evolution is compatible with the initial condition.
9753
9754 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
9755
9756         * gcc.c (process_command): Update copyright notice dates.
9757         * gcov.c (print_version): Likewise.
9758         * gcov-dump.c (print_version): Likewise.
9759         * mips-tfile.c (main): Likewise.
9760         * mips-tdump.c (main): Likewise.
9761
9762 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
9763
9764         PR target/41885
9765         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
9766         (rotlhi3): Delete.
9767         (rotlhi3_8): Delete.
9768         (rotlsi3): Delete.
9769         (rotlsi3_8): Delete.
9770         (rotlsi3_16): Delete.
9771         (rotlsi3_24): Delete.
9772         (rotl<mode>3): New.
9773         (*rotw<mode>3): New.
9774         (*rotb<mode>3): New.
9775         * config/avr/avr.c (avr_rotate_bytes): New function.
9776         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
9777
9778 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
9779
9780         PR target/37454
9781         * configure.ac: Modify -rdynamic check.
9782         * configure: Regenerate.
9783
9784 2010-01-08  DJ Delorie  <dj@redhat.com>
9785
9786         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
9787         register popping order.
9788
9789 2010-01-08  Richard Guenther  <rguenther@suse.de>
9790
9791         PR lto/42528
9792         * c.opt (fsigned-char): Also let LTO handle this option.
9793         (funsigned-char): Likewise.
9794
9795 2010-01-07  Richard Guenther  <rguenther@suse.de>
9796
9797         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
9798         (gimple_op): Likewise.
9799         (gimple_op_ptr): Likewise.
9800         (gimple_assign_set_lhs): Remove gcc_assert.
9801         (gimple_assign_set_rhs1): Likewise.
9802         (gimple_assign_set_rhs2): Likewise.
9803         (gimple_call_set_lhs): Likewise.
9804         (gimple_call_set_fn): Likewise.
9805         (gimple_call_set_fndecl): Likewise.
9806         (gimple_call_fndecl): Likewise.
9807         (gimple_call_return_type): Likewise.
9808         (gimple_call_set_chain): Likewise.
9809         (gimple_call_num_args): Likewise.
9810         (gimple_call_set_arg): Likewise.
9811         (gimple_cond_set_code): Likewise.
9812         (gimple_cond_set_lhs): Likewise.
9813         (gimple_cond_set_rhs): Likewise.
9814         (gimple_cond_set_true_label): Likewise.
9815         (gimple_cond_set_false_label): Likewise.
9816         (gimple_label_set_label): Likewise.
9817         (gimple_goto_set_dest): Likewise.
9818         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
9819         (gimple_debug_bind_get_value): Likewise.
9820         (gimple_debug_bind_get_value_ptr): Likewise.
9821         (gimple_debug_bind_set_var): Likewise.
9822         (gimple_debug_bind_set_value): Likewise.
9823         (gimple_debug_bind_reset_value): Likewise.
9824         (gimple_debug_bind_has_value_p): Likewise.
9825         (gimple_return_retval_ptr): Remove gcc_assert.
9826         (gimple_return_retval): Likewise.
9827         (gimple_return_set_retval): Likewise.
9828         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
9829         (safe_referenced_var_iterator): Remove.
9830         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
9831         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
9832         (fill_referenced_var_vec): Remove.
9833         (first_readonly_imm_use): Remove redundant gcc_assert.
9834         (phi_arg_index_from_use): Combine gcc_asserts.
9835         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
9836         (first_imm_use_stmt): Remove redundant gcc_assert.
9837         * tree-cfg.c (verify_gimple_call): Verify function and chain
9838         operands.  Verify arguments.
9839         (verify_types_in_gimple_stmt): Verify condition code and labels.
9840
9841 2010-01-07  Richard Guenther  <rguenther@suse.de>
9842
9843         PR tree-optimization/42641
9844         * sese.c (rename_map_elt_info): Use the SSA name version, do
9845         not hash pointers.
9846
9847 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
9848
9849         PR tree-optimization/42625
9850         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
9851         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
9852
9853 2010-01-07  Duncan Sands  <baldrick@free.fr>
9854
9855         * Makefile.in (PLUGIN_HEADERS): Add version.h.
9856
9857 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
9858
9859         PR target/42511
9860         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
9861         note itself is not function_invariant_p.
9862
9863 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
9864
9865         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
9866         Do not add the DF_NOTE problem.
9867         * store-motion.c (execute_rtl_store_motion): Likewise.
9868
9869 2010-01-07  Martin Jambor  <mjambor@suse.cz>
9870
9871         PR tree-optimization/42157
9872         * tree-sra.c (compare_access_positions): Stabilize sort if both
9873         accesses have integer types, return zero immediately if they are the
9874         same.
9875
9876 2010-01-06  Richard Henderson  <rth@redhat.com>
9877
9878         PR middle-end/41883
9879         * haifa-sched.c (add_to_note_list): Merge into ...
9880         (concat_note_lists): ... here, and ...
9881         (unlink_other_notes, rm_other_notes): Merge into...
9882         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
9883         NOTE_INSN_EPILOGUE_BEG.
9884
9885 2010-01-06  Richard Guenther  <rguenther@suse.de>
9886
9887         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
9888         not inline regular functions into always-inline functions.
9889
9890 2010-01-06  Nick Clifton  <nickc@redhat.com>
9891
9892         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
9893         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
9894         used together.
9895         (OVERRIDE_OPTIONS): Delete.
9896         (OPTIMIZATION_OPTIONS): Define.
9897         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
9898         * config/rx/rx.c (rx_handle_option): Issue an error message if
9899         -mcpu=rx200 and -fpu are used together.
9900         (rx_set_optimization_options): New function.  Issue an error
9901         message if an optimization attribute attempts to reset the FPU/
9902         math optimization pairing.
9903         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
9904         * config/rx/rx.opt: Set the default to 32-bit doubles.
9905         * config/rx/t-rx: Add multilibs for -nofpu option.
9906         * doc/invoke.texi: Update documentation of RX options.
9907
9908 2010-01-06  Richard Guenther  <rguenther@suse.de>
9909
9910         * tree-ssa-pre.c (name_to_id): New global.
9911         (alloc_expression_id): Simplify SSA name handling.
9912         (lookup_expression_id): Likewise.
9913         (init_pre): Zero name_to_id.
9914         (fini_pre): Free it.
9915
9916 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
9917
9918         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
9919
9920 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
9921
9922         PR target/42542
9923         * config/i386/sse.md (smaxv2di3): New.
9924         (umaxv2di3): Likewise.
9925         (sminv2di3): Likewise.
9926         (uminv2di3): Likewise.
9927
9928 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
9929
9930         PR target/42564
9931         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
9932         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
9933         (legitimize_tls_address): Likewise.
9934         (sparc_tls_referenced_p): Likewise.
9935         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
9936         and adjust calls to legitimize_pic_address.
9937         (legitimate_constant_p) Use sparc_tls_referenced_p.
9938         (legitimate_pic_operand_p): Likewise.
9939         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
9940         (sparc_tls_symbol_ref_1): Delete.
9941         (sparc_tls_referenced_p): Make static, recognize specific patterns.
9942         (legitimize_tls_address): Make static, handle CONST patterns.
9943         (legitimize_pic_address): Make static, remove unused parameter and
9944         adjust recursive calls.
9945         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
9946         and adjust call to legitimize_pic_address.
9947         (sparc_output_mi_thunk): Likewise.
9948
9949 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
9950             H.J. Lu  <hongjiu.lu@intel.com>
9951
9952         PR target/42542
9953         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
9954         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
9955         operands to make them signed.
9956
9957         Revert:
9958         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
9959
9960         PR target/42542
9961         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
9962         GTU to GT for V4SI and V2DI.
9963
9964         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
9965         (umin<mode>3): Removed.
9966         (uminv8hi3): New.
9967         (uminv4si3): Likewise.
9968
9969 2010-01-05  Martin Jambor  <mjambor@suse.cz>
9970
9971         PR tree-optimization/42462
9972         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
9973         current_function_decl to helper functions and macros.
9974
9975 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9976
9977         PR bootstrap/41771
9978         * flags.h: Don't include real.h.
9979         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
9980         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
9981         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
9982         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
9983         * dominance.c: Update copyright.
9984         * gimple.c (walk_gimple_op): Remove inline.
9985         * tree-ssa-reassoc.c: Include real.h.
9986         * Makefile.in (FLAGS_H): Remove $(REAL_H).
9987         (tree-ssa-reassoc.o): Depend on $(REAL_H).
9988
9989 2010-01-05  Nick Clifton  <nickc@redhat.com>
9990
9991         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
9992         register to push into the stack frame when the accumulator has to
9993         be saved during interrupts.
9994
9995 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
9996
9997         * doc/invoke.texi: Remove the documentation about option
9998         -Wunreachable-code.
9999         * common.opt (Wunreachable-code):  Preserved for backward
10000         compatibility.
10001         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
10002         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
10003         the backward compatibility flag section.
10004
10005 2010-01-05  Richard Guenther  <rguenther@suse.de>
10006
10007         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
10008
10009 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
10010
10011         PR other/42611
10012         * cfgexpand.c (expand_one_var): Diagnose too large variables.
10013
10014         PR tree-optimization/42508
10015         * tree-sra.c (convert_callers): Check for recursive call
10016         by comparing cgraph nodes instead of decls.
10017         (modify_function): Call ipa_modify_formal_parameters also
10018         on all same_body aliases.
10019
10020         * cgraphunit.c (cgraph_materialize_all_clones): Compare
10021         cgraph nodes when checking for same_body aliases.
10022
10023 2010-01-05  Richard Guenther  <rguenther@suse.de>
10024
10025         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
10026         allocation and lookup.
10027         (get_or_alloc_expr_for_constant): Likewise.
10028         (phi_translate): Sink allocation.
10029
10030 2010-01-04  Richard Guenther  <rguenther@suse.de>
10031
10032         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
10033         a new entry only if needed.
10034         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
10035         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
10036         hashtable lookup.
10037         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
10038         the result array.
10039         (phi_translate): Handle CONSTANTs early.
10040
10041 2010-01-04  Martin Jambor  <mjambor@suse.cz>
10042
10043         PR tree-optimization/42398
10044         * tree-sra.c (struct access): Removed flag grp_different_types.
10045         (dump_access): Do not dump the removed flag.
10046         (sort_and_splice_var_accesses): Do not set the removed flag.
10047         (sra_modify_expr): Check for type compatibility directly.
10048
10049 2010-01-04  Martin Jambor  <mjambor@suse.cz>
10050
10051         PR tree-optimization/42366
10052         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
10053         edges with variable number of parameters.
10054         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
10055         flag instead of asserting it.
10056         (ipa_read_node_info): Read uses_analysis_done flag.
10057
10058 2010-01-04  Richard Guenther  <rguenther@suse.de>
10059
10060         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
10061         iterative_hash_* as intended.
10062         (vn_reference_compute_hash): Likewise.  Simplify hashing
10063         SSA names.
10064         (vn_reference_lookup_2): Likewise.
10065         (vn_nary_op_compute_hash): Likewise.
10066         (vn_phi_compute_hash): Likewise.
10067         (expressions_equal_p): Remove strange code.
10068         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
10069         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
10070         (bitmap_insert_into_set_1): Take value-id as parameter.
10071         (add_to_value): Pass it.
10072         (bitmap_insert_into_set): Likewise.
10073         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
10074
10075 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
10076
10077         PR driver/42442
10078         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
10079         (do_self_spec): For switches with SWITCH_IGNORE set set also
10080         SWITCH_IGNORE_PERMANENTLY.
10081         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
10082         of SWITCH_IGNORE.
10083
10084 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
10085
10086         * lto-streamer-out.c (output_unreferenced_globals): Output the full
10087         tree of an unreferenced global var.
10088
10089 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
10090
10091         PR target/42542
10092         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
10093         GTU to GT for V4SI and V2DI.
10094
10095         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
10096         (umin<mode>3): Removed.
10097         (uminv8hi3): New.
10098         (uminv4si3): Likewise.
10099
10100 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
10101
10102         PR lto/42581
10103         * collect2.c (main): Turn on trace in collect2 if -v is passed
10104         to gcc with LTO.
10105
10106 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
10107
10108         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
10109         description of expression operand.
10110
10111 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
10112
10113         * configure.ac: Add install-html to target_list for Make-hooks.
10114         * configure: Regenerate.
10115         * fortran/Make-lang.in (F95_HTMLFILES): New.
10116         (fortran.html): Use it.
10117         (fortran.install-html): New.
10118         * Makefile.in (install-html): Add lang.install-html.
10119         * java/Make-lang.in (JAVA_HTMLFILES): New.
10120         (java.html): Use it.
10121         (java.install-html): New.
10122         * objc/Make-lang.in (objc.install-html): New.
10123         * objcp/Make-lang.in (obj-c++.install-html): New.
10124         * cp/Make-lang.in (c++.install-html): New.
10125         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
10126         * lto/Make-lang.in (lto.install-html): New.
10127
10128 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
10129
10130         PR lto/42520
10131         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
10132
10133 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
10134
10135         PR rtl-optimization/41862
10136         * store-motion.c (store_killed_in_insn, compute_store_table,
10137         remove_reachable_equiv_notes, replace_store_insn,
10138         build_store_vectors): Ignore all DEBUG_INSNs.
10139
10140 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
10141
10142         PR lto/41564
10143         * common.opt: Add dumpdir.
10144
10145         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
10146         isn't specified.
10147         (option_map): Add --dumpdir.
10148
10149         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
10150
10151         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
10152
10153         * opts.c (decode_options): Try dump_dir_name first if
10154         dump_base_name isn't an absolute path.
10155         (common_handle_option): Handle OPT_dumpdir.
10156
10157         * toplev.c (dump_dir_name): New.
10158         (print_switch_values): Also ignore -dumpdir.
10159
10160         * toplev.h (dump_dir_name): New.
10161
10162 2010-01-03  Richard Guenther  <rguenther@suse.de>
10163
10164         PR tree-optimization/42589
10165         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
10166         double-word expansion of bswap32.
10167
10168 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
10169
10170         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
10171         with BLOCK_FOR_INSN.
10172         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
10173         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
10174         noce_process_if_block): Likewise.
10175         * gcse.c (compute_local_properties, insert_expr_in_table,
10176         insert_set_in_table, canon_list_insert, find_avail_set,
10177         pre_insert_copy_insn): Likewise.
10178
10179         * basic-block.h (BLOCK_NUM): Move from here...
10180         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
10181
10182 2010-01-03  Richard Guenther  <rguenther@suse.de>
10183
10184         PR tree-optimization/42438
10185         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
10186         contains_may_not_return_call flag.
10187         (BB_MAY_NOTRETURN): New.
10188         (valid_in_sets): Trapping nary operations are not valid
10189         in blocks that may not return.
10190         (insert_into_preds_of_block): Remove check for trapping expressions.
10191         (compute_avail): Compute also BB_MAY_NOTRETURN.
10192
10193 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
10194
10195         * doc/invoke.texi: Add 2010 to copyright years.
10196
10197 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
10198
10199         * config/sparc/sparc.c: Fix formatting nits.
10200
10201 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
10202             Alexander Monakov  <amonakov@ispras.ru>
10203
10204         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
10205
10206 2010-01-02  Richard Guenther  <rguenther@suse.de>
10207
10208         PR middle-end/42577
10209         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
10210         (simplify_switch_using_ranges): Mark to be removed edges
10211         as non-executable.
10212
10213 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10214
10215         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
10216
10217         * collect2.c (scan_libraries): Add missing argument in call to
10218         scan_prog_file.
10219
10220 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
10221
10222         PR target/42448
10223         * config/alpha/predicates.md (aligned_memory_operand): Return false
10224         for CQImode.
10225         (unaligned_memory_operand): Return true for CQImode.
10226         * config/alpha/alpha.c (get_aligned_mem): Assert that location
10227         doesn not cross aligned SImode word boundary.
10228
10229 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
10230
10231         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
10232         Remove.
10233         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
10234         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
10235
10236 2010-01-02  Richard Guenther  <rguenther@suse.de>
10237
10238         PR lto/41597
10239         * toplev.c (compile_file): Emit LTO marker properly.  Change
10240         it to __gnu_lto_v1.
10241         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
10242
10243 2010-01-01  Richard Guenther  <rguenther@suse.de>
10244
10245         PR debug/42455
10246         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
10247
10248 2010-01-01  Richard Guenther  <rguenther@suse.de>
10249
10250         PR c/42570
10251         * c-decl.c (grokdeclarator): For zero-size arrays force
10252         structural equality checks as layout_type does.
10253
10254 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
10255
10256         * builtins.c: Update copyright to 2010.
10257
10258 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
10259
10260         PR lto/42531
10261         * lto-streamer-out.c (produce_asm): Revert the last change.
10262         (copy_function): Likewise.
10263
10264         * lto-streamer.c (lto_get_section_name): Skip any leading
10265         asterisk in name.
10266
10267 2010-01-01  Richard Guenther  <rguenther@suse.de>
10268
10269         PR middle-end/42559
10270         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
10271         for LABEL_DECLs.
10272
10273 \f
10274 Copyright (C) 2010 Free Software Foundation, Inc.
10275
10276 Copying and distribution of this file, with or without modification,
10277 are permitted in any medium without royalty provided the copyright
10278 notice and this notice are preserved.