OSDN Git Service

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