OSDN Git Service

* bitmap.c (bitmap_descriptor): Add search_iter.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-06-02  Jan Hubicka  <jh@suse.cz>
2
3         * bitmap.c (bitmap_descriptor): Add search_iter.
4         (bitmap_find_bit): Increment it.
5         (print_statistics): Print it.
6
7 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
8
9         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
10         instead of gimple_build_call_vec.  Delete unnecessary local variable.
11
12 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
13
14         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
15         change from yesterday.
16
17 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
18
19         * c-ada-spec.c: Clean up redundant includes.
20
21 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
22
23         * gimplify.c: Do not include except.h and optabs.h.
24         (gimplify_body): Do not initialize RTL profiling.
25         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
26         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
27         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
28         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
29         langhooks.h.
30
31         * tree-pretty-print.h: Include pretty-print.h.
32         * gimple-pretty-print.h: Include pretty-print.h.
33
34         * tree-pretty-print.c: Do not include diagnostic.h.
35         * tree-vrp.c: Likewise.
36         * tree-tailcall.c: Likewise
37         * tree-scalar-evolution.c: Likewise
38         * tree-ssa-dse.c: Likewise
39         * tree-chrec.c: Likewise
40         * tree-ssa-sccvn.c: Likewise
41         * tree-ssa-copyrename.c: Likewise
42         * tree-nomudflap.c: Likewise
43         * tree-call-cdce.c: Likewise
44         * tree-stdarg.c: Likewise
45         * tree-ssa-math-opts.c: Likewise
46         * tree-nrv.c: Likewise
47         * tree-ssa-sink.c: Likewise
48         * tree-browser.c: Likewise
49         * tree-ssa-loop-ivcanon.c: Likewise
50         * tree-ssa-loop.c: Likewise
51         * tree-parloops.c: Likewise
52         * tree-ssa-address.c: Likewise
53         * tree-ssa-ifcombine.c: Likewise
54         * tree-if-conv.c: Likewise
55         * tree-data-ref.c: Likewise
56         * tree-affine.c: Likewise
57         * tree-ssa-phiopt.c: Likewise
58         * tree-ssa-coalesce.c: Likewise
59         * tree-ssa-pre.c: Likewise
60         * tree-ssa-live.c: Likewise
61         * tree-predcom.c: Likewise
62         * tree-ssa-forwprop.c: Likewise
63         * tree-ssa-dce.c: Likewise
64         * tree-ssa-ter.c: Likewise
65         * tree-ssa-loop-prefetch.c: Likewise
66         * tree-optimize.c: Likewise
67         * tree-ssa-phiprop.c: Likewise
68         * tree-object-size.c: Likewise
69         * tree-outof-ssa.c: Likewise
70         * tree-ssa-structalias.c: Likewise
71         * tree-switch-conversion.c: Likewise
72         * tree-ssa-reassoc.c: Likewise
73         * tree-ssa-operands.c: Likewise
74         * tree-vectorizer.c: Likewise
75         * tree-vect-data-refs.c: Likewise
76         * tree-vect-generic.c: Likewise
77         * tree-vect-stmts.c: Likewise
78         * tree-vect-patterns.c: Likewise
79         * tree-vect-slp.c: Likewise
80         * tree-vect-loop.c: Likewise
81         * tree-ssa-loop-ivopts.c: Likewise
82         * tree-ssa-loop-im.c: Likewise
83         * tree-ssa-loop-niter.c: Likewise
84         * tree-ssa-loop-unswitch.c: Likewise
85         * tree-ssa-loop-manip.c: Likewise
86         * tree-ssa-loop-ch.c: Likewise
87         * tree-dump.c: Likewise
88         * tree-complex.c: Likewise
89
90         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
91         * tree-ssa-uninit.c: Likewise
92         * tree-ssa-threadupdate.c: Likewise
93         * tree-ssa-uncprop.c: Likewise
94         * tree-ssa-ccp.c: Likewise
95         * tree-ssa-dom.c: Likewise
96         * tree-ssa-propagate.c: Likewise
97         * tree-ssa-alias.c: Likewise
98         * tree-dfa.c: Likewise
99         * tree-cfgcleanup.c: Likewise
100         * tree-sra.c: Likewise
101         * tree-ssa-copy.c: Likewise
102         * tree-ssa.c: Likewise
103         * tree-profile.c: Likewise
104         * tree-cfg.c: Likewise
105         * tree-ssa-threadedge.c: Likewise
106         * tree-vect-loop-manip.c: Likewise
107
108         * tree-inline.c: Do not include diagnostic.h and expr.h.
109         Include rtl.h.
110         (copy_decl_for_dup_finish): Do not use NULL_RTX.
111
112         * tree-loop-linear.c: Do not include diagnostic.h, expr.h,
113         and optabs.h.
114         * tree-loop-distribution.c: Likewise.
115
116 2010-06-01  Jan Hubicka  <jh@suse.cz>
117
118         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
119
120 2010-06-01  Jan Hubicka  <jh@suse.cz>
121
122         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
123         remove return value.
124         (split_bbs_on_noreturn_calls) .... here.
125         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
126         * tree-flow.h (fixup_noreturn_call): New.
127
128 2010-06-01  Jan Hubicka  <jh@suse.cz>
129
130         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
131
132 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
133
134         * tree.h (build_nt_call_list): Delete.
135         * tree.c (build_nt_call_list): Delete.
136
137 2010-06-01  Jan Hubicka  <jh@suse.cz>
138
139         * fwprop.c: Make emit-rtl.h include last.
140         * rtlanal.c: Include emit-rtl.h.
141         * genautomata.c: Output emit-rtl include into insn-automata.c
142         * df-scan.c: Include emit-rtl.h.
143         * haifa-sched.c: Indlude emit-rtl.h.
144         * mode-switching.c: Indlude emit-rtl.h.
145         * graph.c: Indlude emit-rtl.h.
146         * sel-sched.c: Include emit-rtl.h.
147         * sel-sched-ir.c: Include emit-rtl.h.
148         * ira-build.c: Include emit-rtl.h.
149         * emit-rtl.c: (first_insn, last_insn): Remove defines.
150         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
151         Move to emit-rtl.h.
152         (set_new_first_and_last_insn, get_last_insn_anywhere, get_first_nonnote_insn,
153         get_last_nonnote_insn, try_split, make_call_insn_raw, add_insn_after,
154         add_insn_before, remove_insn, delete_insns_since, reorder_insns_nobb,
155         emit_insn_after_1, emit_debug_insn_before, emit_insn, start_sequence,
156         push_to_sequence, push_to_sequence2, push_topmost_sequence, end_sequence,
157         copy_insn): Use accessor functions.
158         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
159          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
160         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
161         mem_expr_equal_p): Move here from rtl.h
162         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
163         Move here from emit-rtl.c; make inline.
164         * cfglayout.h: Include emit-rtl.h
165         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
166          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
167         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
168         mem_expr_equal_p, get_insns, set_first-insn, get_last_insn, set_last_insn,
169         get_max_uid): Move to emit-rtl.h.
170         * reg-stack.c: Include emit-rtl.h
171         * dce.c: Likewise.
172
173 2010-06-01  Jan Hubicka  <jh@suse.cz>
174
175         * cgraph.h (tree_function_versioning): Update prototype.
176         (cgraph_function_versioning): Update prototype.
177         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
178         bitmap.
179         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy. 
180         (cgraph_materialize_clone, save_inline_function_body): Update use of
181         tree_function_versioning.
182         * tree-inline.c (copy_bb): Look for previous copied block to link after;
183         fix debug output.
184         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
185         (copy_body): Likewise.
186         (expand_call_inline): Update use of copy_body.
187         (tree_function_versioning): Update use of copy body; accept
188         blocks_to_copy and new_entry.
189
190 2010-06-01  Jan Hubicka  <jh@suse.cz>
191
192         * gegenrtl.c: Remove unnecesary prototypes.
193         (gendecl): Remove.
194         (gendef): Produce static inline.
195         (gencode): Remove.
196         (main): Do not decode parameters; generate header only.
197         * Makefile.in (genrtl.c): Remove.
198
199 2010-06-01  Jan Hubicka  <jh@suse.cz>
200
201         * tree-switch-conversion.c (build_one_array): Make it readonly.
202
203 2010-06-01  Richard Guenther  <rguenther@suse.de>
204
205         * optabs.c (init_optabs): Guard all accesses to reinit.
206         * ipa-pure-const.c (propagate): Fix another typo.
207         * opts.c (common_handle_option): Split assignment to bool.
208         * c-opts.c (c_common_handle_option): Likewise.
209
210 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
211             Matthew Gingell  <gingell@adacore.com>
212
213         * doc/invoke.texi: Mention -fdump-ada-spec.
214         * tree-dump.c (dump_files): Add ada-spec.
215         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
216         * tree-pass.h (tree_dump_index): Add TDI_ada.
217         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
218         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
219         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
220         * c-decl.c: Include c-ada-spec.h.
221         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
222         functions.
223         (c_write_global_declarations): Add handling of -fdump-ada-spec.
224         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
225         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
226         * c-ada-spec.h, c-ada-spec.c: New files.
227
228 2010-06-01  Richard Guenther  <rguenther@suse.de>
229
230         PR lto/43853
231         * ipa-pure-const.c (get_function_state): Hand back varying state
232         if we do not have one.
233         (has_function_state): New function.
234         (duplicate_node_data): Adjust.
235         (remove_node_data): Likewise.
236         (pure_const_write_summary): Likewise.
237         (propagate): Likewise.  Fix typo.
238
239 2010-06-01  Jan Hubicka  <jh@suse.cz>
240
241         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
242         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
243         (execute_all_ipa_transforms): Do not play with the states.
244
245 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
246
247         * config/arm/t-linux-androideabi: New.
248         * config.gcc (arm*-*-linux-androideabi): Include multilib configuration.
249
250 2010-06-01  Jan Hubicka  <jh@suse.cz>
251
252         * tree-inline.c (estimate_num_insns): For stdarg functions look
253         into call statement to count cost of argument passing.
254
255 2010-06-01  Kai Tietz
256
257         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
258         argument for fprintf.
259         (ix86_output_addr_diff_elt): Likewise.
260         (x86_function_profiler): Likewise.
261         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix
262         for x64 no-underscore.
263         (LPREFIX): Likewise.
264         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
265
266 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
267
268         PR target/44338
269         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
270         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
271         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
272         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
273         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
274         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
275         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
276         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
277         TARGET_FUSED_MADD.
278
279 2010-05-31  Jan Hubicka  <jh@suse.cz>
280
281         * tree.h (tree_range_check_failed): Declare noreturn.
282
283 2010-05-31  Jan Hubicka  <jh@suse.cz>
284
285         * gimple.c (gimple_call_builtin_p): New function.
286         * gimple.h (gimple_call_builtin_p): Declare.
287         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
288         to exit.
289         (execute_warn_function_return): BUILT_IN_RETURN is return.
290         (split_critical_edges): Return edges are not critical.
291         (is_ctrl_altering_stmt): Builtin_in_return is altering.
292         (gimple_verify_flow_info): Handle built_in_return.
293         (execute_warn_function_return): Handle built_in_return.
294         * ipa-pure-const.c (check_call): Ignore builtin_return.
295
296 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
297
298         PR middle-end/44337
299         * expr.c (expand_assignment): Don't store anything for out-of-bounds
300         array accesses with non-MEM.
301
302         PR tree-optimization/44182
303         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
304         newly needs to end a bb is followed by debug stmts, instead return
305         true from the function at the end.
306         (maybe_move_debug_stmts_to_successors): New function.
307         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
308
309 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
310
311         PR target/44161
312         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle
313         flag_pic.
314
315 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
316
317         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
318         for nested functions in non-optimized compilation.
319
320 2010-05-31  Richard Guenther  <rguenther@suse.de>
321
322         * tree-ssa-structalias.c (find_func_aliases): Handle
323         BUILT_IN_RETURN.
324
325 2010-05-30  Jan Hubicka  <jh@suse.cz>
326
327         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
328
329 2010-05-30  Richard Guenther  <rguenther@suse.de>
330
331         PR lto/42975
332         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
333         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
334         no longer needed.
335
336 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
337
338         * config/darwin.c (output_objc_section_asm_op): Add comment.
339         (name_needs_quotes): Add '_' to list of valid comment chars.
340         (machopic_output_function_base_name): Remove unneeded quotes.
341         (darwin_encode_section_info): Adjust asm whitespace.
342         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
343         (ASM_OUTPUT_LOCAL): Ditto.
344         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
345         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
346         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
347         
348 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
349
350         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
351         RS6000_OUTPUT_BASENAME unconditionally.
352         (rs6000_output_function_epilogue): Likewise.
353
354 2010-05-30  Jan Hubicka  <jh@suse.cz>
355
356         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
357         nodes.
358
359 2010-05-30  Richard Guenther  <rguenther@suse.de>
360
361         * tree-cfg.c (verify_gimple_assign_single): Implement
362         verification for COND_EXPR rhs.
363
364 2010-05-30  Jan Hubicka  <jh@suse.cz>
365
366         * cgraph.h (cgraph_dump_file): Declare.
367         * cgraphunit.c (cgraph_dump_file): Export.
368         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less
369         verbose.
370
371 2010-05-30  Jan Hubicka  <jh@suse.cz>
372
373         * dwarf2out.c (reference_to_unused,
374         premark_types_used_by_global_vars_helper): Avoid creation of new
375         varpool nodes.
376
377 2010-05-30  Jan Hubicka  <jh@suse.cz>
378
379         * cgraph.h (cgraph_node_cannot_return,
380         cgraph_edge_cannot_lead_to_return): New functions.
381         * cgraph.c (cgraph_node_cannot_return,
382         cgraph_edge_cannot_lead_to_return): Use them.
383         * ipa-pure-const.c (pure_const_names): New static var.
384         (check_call): Handle calls not leading to return.
385         (pure_const_read_summary): Dump info read.
386         (propagate): Dump info about propagation process; ignore side
387         effects of functions not leading to exit; fix handling of
388         pure functions.
389
390 2010-05-30  Jan Hubicka  <jh@suse.cz>
391
392         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
393         for tail call epilogues.
394
395 2010-05-30  Jan Hubicka  <jh@suse.cz>
396
397         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
398         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
399         dump files.
400
401 2010-05-29  Jan Hubicka  <jh@suse.cz>
402
403         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
404         node; remove references in node we no longer keep in cgrpah but need
405         body of.
406
407 2010-05-29  Jan Hubicka  <jh@suse.cz>
408
409         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
410
411 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
412
413         PR target/44165
414         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
415
416 2010-05-29  Jan Hubicka  <jh@suse.cz>
417
418         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
419         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
420         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
421         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
422         debug_names_replaced_by, debug_update_ssa): Likewise.   
423         * sbitmap.c (debug_sbitmap): Likewise.
424         * genrecog.c (debug_decision, debug_decision_list): Likewise.
425         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
426         debug_tree_chain): Likewise.
427         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
428         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
429         * optabs.c  (debug_optab_libfuncs): Likewise.
430         (verify_loop_closed_ssa): Likewise.
431         * value-prof.c (verify_histograms): Likewise.
432         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
433         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
434         * cfghooks.c (verify_flow_info): Likewise.
435         * fold-const.c (debug_fold_checksum): Likewise.
436         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
437         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
438         Likewise.
439         * omega.c (debug_omega_problem): Likewise.
440         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
441         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
442         * dominance.c (verify_dominators, debug_dominance_info,
443         debug_dominance_tree): Likewise.
444         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
445         * df_regno_debug, df_ref_debug,
446         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
447         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
448         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
449         * sel-sched.c (debug_state): Likewise.
450         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
451         Likewise.
452         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
453         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
454         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
455         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
456         Likewise.
457         * c-pretty-print.c (debug_c_tree): Likewise.
458         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
459         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
460         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
461         * ebitmap.c (debug_ebitmap): Likewise.
462         * function.c (debug_find_var_in_block_tree): Likewise.
463         * print-rtl.c (debug_rtx): Likewise.
464         (debug_rtx_count): Likewise.
465         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
466         * stor-layout.c (debug_rli): Likewise.
467         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
468         * tree-data-ref.c (debug_data_references,
469         debug_data_dependence_relations, debug_data_reference,
470         debug_data_dependence_relation, debug_rdg_vertex,
471         debug_rdg_component, debug_rdg): Likewise.
472         * tree-affine.c (debug_aff): Likewise.
473         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
474         Likewise.
475         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
476         * emit-rtl.c (verify_rtl_sharing): Likewise.
477         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
478         debug_value_expressions): Likewise.
479         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
480         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
481         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
482         * cfglayout.c (verify_insn_chain): Likewise.
483         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
484         debug_clast_stmt, debug_generated_program): Likewise.
485         * ggc-page.c (debug_print_page_list): Likewise.
486         * tree-ssa-ter.c (debug_ter): Likewise.
487         * graphite-dependences.c (debug_pddr): Likewise.
488         * sched-deps.c (debug_ds): Likewise.
489         * tree-ssa.c (verify_ssa): Likewise.
490         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
491         debug_scattering_functions, debug_iteration_domains, debug_pdr,
492         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
493         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
494         * tree-inline.c (debug_find_tree): Likewise.
495         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
496         debug_ppl_powerset_matrix): Likewise.
497         * var-tracking.c (debug_dv): Likewise.
498         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
499         * cfgloop.c (verify_loop_structure): Likewise.
500         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
501         * c-common.c (verify_sequence_points): Likewise.
502         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
503         debug_candidates, debug_rgn_dependencies): Likewise.
504         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
505         * debug_constraint_graph, debug_solution_for_var,
506         debug_sa_points_to_info): Likewise.
507         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
508         Likewie.
509         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
510         debug_loops, debug_loop, debug_loop_num): Likewise.
511         * passes.c (debug_pass): Likewise.
512         (dump_properties): Likewise; add cfglayout property.
513         (debug_properties): Likewise.
514         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
515         * varpool.c (debug_varpool): Likewise.
516         * regcprop.c (debug_value_data): Likewise.
517         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
518         debug_immediate_uses_for): Likewise.
519
520 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
521
522         PR bootstrap/44315
523         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
524         Filter out insn-flags.h.
525
526 2010-05-29  Jan Hubicka  <jh@suse.cz>
527
528         * cgraph.h (struct varpool_node_set_def,
529         struct cgraph_node_set_def): Remove unused AUX pointer.
530         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
531         VEC_empty macro.
532
533 2010-05-29  Jan Hubicka  <jh@suse.cz>
534
535         PR middle-end/44324
536         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
537
538 2010-05-29  Richard Guenther  <rguenther@suse.de>
539
540         * lto-streamer.c (cached_bp): New global variable.
541         (bitpack_create): Return the cached bitpack, if available.
542         (bitpack_delete): Clear and cache the bitpack, if appropriate.
543         (bp_pack_value): Remove redundant asserts.
544
545 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
546
547         PR middle-end/44306
548         * tree-if-conv.c (is_true_predicate): New.
549         (is_predicated): Use is_true_predicate.
550         (add_to_predicate_list): Same.  Do not use unshare_expr.
551         (add_to_dst_predicate_list): Same.
552
553 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
554
555         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
556         field on edges.
557         (predicate_bbs): Same.
558         (clean_predicate_lists): Same.
559         (find_phi_replacement_condition): Do not AND the predicate from
560         edge->aux.
561
562 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
563
564         PR bootstrap/44315
565         * Makefile.in (build/gencondmd.o): Add a missing `\'.
566
567 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
568
569         PR target/44261
570         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
571         (negdf2): Adjust expander pattern and use negdf2_slow.
572         (negsf2): Likewise.
573
574 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
575
576         * basic-block.h (struct control_flow_graph): Move last_label_uid field
577         up.
578         * df.h (struct df_base_ref): Move regno field up.
579         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
580         * expr.h (struct separate_ops): Move location field up.
581         * optabs.h (struct optab_d): Move libcall_basename field down.
582         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
583         * config/i386/i386.h (struct machine_function): Convert call_abi field
584         into a bitfield.  Move cfa field to the end of the structure.
585
586 2010-05-29  Jan Hubicka  <jh@suse.cz>
587
588         * varpool.c (varpool_get_node): Fix lookup.
589
590 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
591
592         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
593         RTL specific prototypes with #ifdef RTX_CODE.
594         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
595         * config/spu/t-spu-elf: Fix dependencies.
596
597         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
598
599 2010-05-29  Mike Stump  <mikestump@comcast.net>
600
601         PR bootstrap/44315
602         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
603         TM_H when building to avoid dependency loops.
604
605 2010-05-29  Jan Hubicka  <jh@suse.cz>
606
607         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
608         refs and body; not the whole node for masters of materialized
609         clones.
610
611 2010-05-29  Mike Stump  <mikestump@comcast.net>
612
613         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
614
615 2010-05-29  Jan Hubicka  <jh@suse.cz>
616
617         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
618         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
619         use of clone_function_name.
620         * cgraph.h (cgraph_create_virtual_clone, 
621         cgraph_function_versioning): update prototypes.
622         (clone_function_name): Declare.
623         * ipa-cp.c (ipcp_insert_stage): Update call of
624         cgraph_create_virtual_clone.
625         * omp-low.c (create_omp_child_function_name): Use
626         cgraph_create_virtual_clone.
627         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
628         (cgraph_function_versioning): Take SUFFIX argument; produce new name
629         and make decl local.
630
631 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
632
633         * vec.h: Include statistics.h
634         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
635         with VEC_H.
636
637 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
638
639         * c-lex.c: Do not include c-tree.h.
640         * c-pretty-print.c: Likewise.
641         * c-opts.c: Likewise.
642         * c-gimplify.c: Likewise.
643         * c-common.c: Likewise.
644         * c-dump.c: Likewise.  Include c-common.h.
645
646 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
647
648         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
649         before including diagnostic-core.h.
650         (c_cpp_error): New prototype moved from c-tree.h.
651         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
652         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
653         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
654         (c_cpp_error): Prototype moved to c-common.h.
655         * Makefile.in: Update dependency for C_COMMON_H.
656
657 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
658
659         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
660         * c-common.c (c_register_addr_space): Remove here.
661         * c-decl.c (c_register_addr_space): Re-add here.
662
663 2010-05-28  Mike Stump  <mikestump@comcast.net>
664
665         * config/darwin-c.c: Remove c-tree.h include.
666
667 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
668
669         * gcc.c: Include diagnostic.h.
670         (error_count): Remove.  All users changed to use errorcount.
671         (programname): Remove.  All users changed to use progname.
672         (fancy_abort, internal_error, fatal_error, error, warning, inform,
673         fnotice): Remove.
674         (execute): Don't include "Internal error" and bug reporting
675         information in argument of internal_error call.
676         (process_command): Don't increment error_count after calling
677         perror_with_name.
678         (input_filename): Rename to gcc_input_filename.  All users
679         changed.
680         (main): Call diagnostic_initialize.  Register delete_temp_files
681         with atexit.  Use seen_error to test for errors.
682         * gcc.h: Include diagnostic-core.h.
683         (fatal_error, error, warning): Remove.
684         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
685         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
686         (gcc.o): Update dependencies.
687
688 2010-05-28  Jeff Law  <law@redhat.com>
689
690         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
691         functions.
692         * ira.h (ira_bad_reload_regno): Declare
693         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
694
695         * ira-color.c (update_curr_costs): Free updated hard reg costs.
696         (ira_reassign_conflict_allocnos): Remove bogus asserts.
697         (allocno_reload_assign): Likewise.
698
699 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
700
701         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
702         build1_stat.
703
704 2010-05-28  Richard Guenther  <rguenther@suse.de>
705
706         PR lto/44312
707         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
708         Stream fixed-point constants mode.
709         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
710         and TYPE_PRECISION.
711         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
712         Stream fixed-point constants mode.
713         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
714         and TYPE_PRECISION.
715
716 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
717
718         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
719         only place it was called from.
720         (number_of_latch_executions): Do not return chrec_dont_know when the
721         may_be_zero is a runtime condition: instead, return a COND_EXPR
722         including the may_be_zero condition.
723         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
724         of nb_iterations.
725         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
726         COND_EXPRs.
727
728 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
729
730         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
731         generate COND_EXPRs for degenerate_phi_result.
732
733 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
734
735         PR middle-end/44293
736         * tree-if-conv.c (if_convertible_loop_p): Check the
737         if-convertibility of phi nodes in non predicated BBs.
738
739 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
740
741         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
742
743 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
744
745         PR driver/15303
746         * gcc.c (inform, warning, inform): New functions.
747         (fatal_ice): Rename to internal_error; change cmsgid parameter to
748         gmsgid.  All callers changed.
749         (notice): Rename to fnotice; add parameter fp.  All callers
750         changed.
751         (fatal_error): Rename to fatal_signal.  All users changed.
752         (fatal): Rename to fatal_error; change cmsgid parameter to
753         gmsgid.  All callers changed.
754         (process_command): Use warning instead of error for warnings.
755         (end_going_arg): Don't use _() around argument of error.
756         (do_spec_1): Use inform for message from %n specs.  Use warning
757         instead of error for warnings.
758         (main): Use inform for comparison messages.  Use warning for
759         message about unused linker input.
760         (error): Increment error_count.  Print "error: ".
761         * gcc.h (fatal): Change to fatal_error.
762         (warning): Declare.
763         * config/darwin-driver.c (darwin_default_min_version): Use warning
764         instead of fprintf for warnings.
765         * cppspec.c (lang_specific_driver): Use fatal_error instead of
766         fatal.
767
768 2010-05-28  Julian Brown  <julian@codesourcery.com>
769
770         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
771         (*thumb2_addsi3_compare0_scratch): New.
772         * config/arm/constraints.md (Pv): New.
773         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
774         for ARM mode only.
775         (*addsi3_compare0_scratch): Likewise.
776
777 2010-05-28  Jan Hubicka  <jh@suse.cz>
778
779         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
780         check.
781         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
782         only on local statics.
783
784 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
785
786         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
787
788 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
789
790         PR bootstrap/44314
791         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
792         (OPTION_GLIBC): Define.
793
794 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
795
796         PR debug/41048
797         * dwarf2out.c (double_int_type_size_in_bits): New function.
798         (round_up_to_align): Change first argument and return value to
799         double_int.
800         (field_byte_offset): Work internally on double_ints.
801
802         PR target/43636
803         * builtins.c (expand_movstr): Use a temporary pseudo instead
804         of target even when target is not NULL and not const0_rtx, but
805         fails movstr predicate.
806         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
807
808 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
809
810         * final.c (rest_of_clean_state): Use %m in errors instead of
811         strerror (errno).
812         * gengtype.c (read_input_list, close_output_files): Use xstrerror
813         instead of strerror.
814         * toplev.c (process_options): Use %m in errors instead of strerror
815         (errno).
816         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
817         (errno).
818
819 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
820
821         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
822         (ix86_canonical_va_list_type): Make static.  Add declaration.
823         (ix86_enum_va_list): Make static.  Reindent.
824         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
825         (ix86_canonical_va_list_type): Ditto.
826         (ix86_enum_va_list): Ditto.
827
828 2010-05-28  Richard Guenther  <rguenther@suse.de>
829
830         * lto-wrapper.c (run_gcc): With -save-temps generate a
831         user-visible ltrans filename.  Fixup ltrans unit numbering.
832
833 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
834
835         * c-common.c (c_common_nodes_and_builtins): Replace use
836         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
837         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
838         to ix86_enum_va_list.
839         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
840         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
841         (TARGET_ENUM_VA_LIST_P): Add hook description.
842         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
843         * target.h (gcc_target): Add enum_va_list hook.
844
845         PR bootstrap/44299
846         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
847         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
848         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
849
850 2010-05-28  Alan Modra  <amodra@gmail.com>
851
852         PR target/44266
853         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
854         emit_library_call machinery to set up __tls_get_addr calls.
855
856 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
857
858         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
859
860 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
861
862         Revert fix for PR c++/44188
863         * c-common.c (is_typedef_decl): Revert the moving of  this
864         definition ...
865         * tree.c (is_typedef_decl): ... here.
866         (typdef_variant_p): Revert the moving of this  definition
867         here from gcc/cp/tree.c.
868         * c-common.h (is_typedef_decl): Revert the moving of this
869         declaration ...
870         * tree.h (is_typedef_decl): ... here.
871         (typedef_variant_p): Revert the moving of this  declaration here
872         from gcc/cp/cp-tree.h
873         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
874         (gen_tagged_type_die): Revert the splitting out of ...
875         (gen_type_die_with_usage): ... this function. Revert the anonymous
876         tagged type handling.
877         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
878         typedefs naming anonymous tagged types.
879
880 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
881
882         * config/rs6000/rs6000-modes.def (PSImode): Delete.
883
884 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
885
886         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
887         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
888         throughout.
889         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
890         "xer" to "ca".
891         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
892         XER_REGS to CA_REGS throughout.
893         * config/rs6000/rs6000.h: Same.
894         (ADDITIONAL_REGISTER_NAMES): Add "xer".
895         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
896         that mode_iterator "P" is the size for arithmetic carries as well.
897         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
898
899 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
900
901         PR bootstrap/44255
902         * combine.c (struct rtx_subst_pair): Define unconditionally.
903         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
904         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
905         Call make_compound_operation on pair->to.
906         (propagate_for_debug): Don't call make_compound_operation here.
907         Always use simplify_replace_fn_rtx.
908
909 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
910
911         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
912         * config/xtensa/xtensa.c (override_options): Check
913           TARGET_FORCE_NO_PIC and set flag_pic.
914         * config/xtensa/xtensa.opt: Document -mforce-no-pic
915
916 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
917
918         PR bootstrap/44299
919         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
920         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
921
922 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
923
924         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
925         toplev.h.
926         * diagnostic.c: Don't include toplev.h.
927         (progname): Define.  Moved from toplev.c.
928         (seen_error): New function.
929         * diagnostic.h: Include diagnostic-core.h.
930         (diagnostic_t, emit_diagnostic): Don't declare here.
931         * toplev.c (progname): Move to toplev.c.
932         (emit_debug_global_declarations, compile_file, finalize,
933         do_compile, toplev_main): Use seen_error.
934         * toplev.h: Include diagnostic-core.h.
935         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
936         internal_error, warning, warning_at, error, error_n, error_at,
937         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
938         verbatim, fnotice, progname): Move to diagnostic-core.h.
939         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
940         (expand_builtin_expect): Use seen_error.
941         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
942         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
943         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
944         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
945         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
946         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
947         errorcount for errors.
948         * c-opts.c (c_common_finish): Use seen_error.
949         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
950         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
951         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
952         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
953         (get_coverage_counts): Use seen_error.
954         * dwarf2out.c (dwarf2out_finish): Use seen_error.
955         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
956         gimplify_body): Use seen_error.
957         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
958         * ipa-pure-const.c (gate_pure_const): Use seen_error.
959         * ipa-reference.c (gate_reference): Use seen_error.
960         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
961         * lambda-code.c: Include diagnostic-core.h instead of
962         diagnostic.h.
963         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
964         * lto-compress.c: Include diagnostic-core.h instead of
965         diagnostic.h.
966         * lto-section-in.c: Include diagnostic-core.h instead of
967         diagnostic.h.
968         * lto-streamer-out.c: Include diagnostic-core.h instead of
969         diagnostic.h.
970         * lto-streamer.c: Include diagnostic-core.h instead of
971         diagnostic.h.
972         (gate_lto_out): Use seen_error.
973         * matrix-reorg.c: Include diagnostic-core.h instead of
974         diagnostic.h.
975         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
976         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
977         (gate_expand_omp, lower_omp_1): Use seen_error.
978         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
979         (rest_of_decl_compilation, rest_of_type_compilation,
980         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
981         * tree-cfg.c (label_to_block_fn): Use seen_error.
982         * tree-inline.c (optimize_inline_calls): Use seen_error.
983         * tree-mudflap.c (mudflap_finish_file): Use
984         seen_error.
985         * tree-optimize.c (gate_all_optimizations,
986         gate_all_early_local_passes, gate_all_early_optimizations): Use
987         seen_error.
988         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
989         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
990         (varpool_remove_unreferenced_decls,
991         varpool_assemble_pending_decls): Use seen_error.
992         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
993         (TOPLEV_H, DIAGNOSTIC_H): Update.
994         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
995         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
996         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
997         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
998         coverage.o, lambda-code.o): Update dependencies.
999
1000 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
1001
1002         PR c++/44188
1003         * c-common.c (is_typedef_decl): Move this definition ...
1004         * tree.c (is_typedef_decl): ... here.
1005         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
1006         * c-common.h (is_typedef_decl): Move this declaration ...
1007         * tree.h (is_typedef_decl): ... here.
1008         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
1009         * dwarf2out.c (is_naming_typedef_decl): New function.
1010         (gen_tagged_type_die): Split out of ...
1011         (gen_type_die_with_usage): ... this function. When an anonymous
1012         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
1013         is emitted for the typedef.
1014         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
1015         anonymous tagged types.
1016
1017 2010-05-27  Jason Merrill  <jason@redhat.com>
1018
1019         * print-tree.c (debug_vec_tree): New fn.
1020         (print_vec_tree): New fn.
1021         * tree.h: Declare them.
1022         * gdbinit.in (pvt): New command.
1023
1024         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
1025
1026         * gdbinit.in (pdd): New command.
1027
1028 2010-05-27  Jan Hubicka  <jh@suse.cz>
1029
1030         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
1031         (update_caller_keys): Return early if there are no callers;
1032         only update fibheap when decresing the key.
1033         (update_callee_keys): Avoid recursion.
1034         (decide_inlining_of_small_functions): When badness does not match;
1035         re-insert into fibheap.
1036
1037 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
1038
1039         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
1040         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
1041         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
1042         (ALL_HOST_OBJS): Now a union of the above two.
1043         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
1044         all files in ALL_HOST_FRONTEND_OBJS.
1045         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
1046
1047         * c-common.c: Pretend to be a backend file by undefining
1048         IN_GCC_FRONTEND (still need rtl.h here).
1049
1050 2010-05-27  Jan Hubicka  <jh@suse.cz>
1051
1052         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
1053         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
1054
1055 2010-05-27  Jan Hubicka  <jh@suse.cz>
1056
1057         * sched-ebb.c: Rename struct deps to struct deps_desc.
1058         * ddg.c: Likewise.
1059         * sel-sched-ir.c: Likewise.
1060         * sched-deps.c: Likewise.
1061         * sched-int.h: Likewise.
1062         * sched-rgn.c: Likewise.
1063
1064 2010-05-27  Jon Beniston <jon@beniston.com>
1065
1066         PR 43726
1067         * config/lm32/lm32.h: Remove definition of 
1068         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
1069
1070 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
1071
1072         PR lto/44230
1073         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
1074
1075 2010-05-27  Richard Guenther  <rguenther@suse.de>
1076
1077         PR tree-optimization/44284
1078         * tree-vect-stmts.c (vectorizable_assignment): Handle
1079         sign-changing conversions as simple copy.
1080
1081 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
1082
1083         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
1084         Bionic C library.
1085         (__gthread_active_p): Check for pthread_create if compiling against
1086         Bionic C library.
1087
1088 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
1089
1090         Support compilation for Android platform.  Reimplement -mandroid.
1091
1092         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
1093         (*android*): Set ANDROID_DEFAULT.
1094         (arm*-*-linux*): Include linux-android.h.
1095         (arm*-*-eabi*): Don't include previous -mandroid implementation.
1096         * config/arm/eabi.h: Remove, move Android-specific parts ...
1097         * config/linux-android.h: ... here.  New file.
1098         * config/arm/eabi.opt: Rename to ...
1099         * config/linux-android.opt: ... this.
1100         (mandroid): Allow -mno-android option.  Initialize based on
1101         ANDROID_DEFAULT.
1102         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
1103         Move logic to corresponding LINUX_TARGET_* macros.
1104         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
1105         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
1106         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
1107         Android definitions.
1108         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
1109         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
1110         Document.
1111
1112 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
1113
1114         Add support for Bionic C library
1115
1116         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
1117         macro.
1118         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
1119         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
1120
1121         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
1122         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
1123         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
1124         to support multiple C libraries.  Handle Bionic.
1125         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
1126         (BIONIC_DYNAMIC_LINKER64): Define.
1127         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
1128         Update.
1129         (TARGET_HAS_SINCOS): Enable for Bionic.
1130
1131         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
1132         the last option specified on command line take effect.
1133         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
1134         (mbionic): New.
1135         (mglibc, muclibc): Update.
1136
1137         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
1138         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
1139         DEFAULT_LIBC.
1140
1141         * doc/invoke.texi (-mglibc, -muclibc): Update.
1142         (-mbionic): Document.
1143
1144 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1145
1146         * c-common.h (c_register_addr_space): Add prototype.
1147         (ADDR_SPACE_KEYWORD): Remove.
1148         * c-common.c (c_register_addr_space): New function.
1149         (c_addr_space_name): Reimplement.
1150         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
1151
1152         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
1153         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
1154
1155         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
1156         Remove TARGET_ADDR_SPACE_KEYWORDS.
1157
1158 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
1159
1160         * input.c: New file.
1161         * input.h (main_input_filename): Move declaration to toplev.h.
1162         * toplev.c (input_location, line_table): Move to input.c
1163         * toplev.h (main_input_filename): Move declaration from input.h.
1164         * tree.c (expand_location): Move to input.c.
1165         * Makefile.in (OBJS-common): Add input.o.
1166         (input.o): Add dependencies.
1167
1168 2010-05-27  Richard Guenther  <rguenther@suse.de>
1169
1170         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
1171         for non-existant files.
1172         (fork_execute): Mark args_name file as deleted.
1173
1174 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
1175
1176         PR bootstrp/44287
1177         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
1178         (narrow_signed_type): Likewise.
1179
1180 2010-05-26  Jan Hubicka  <jh@suse.cz>
1181
1182         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
1183         edge only when checking is enabled; check using former_clone_of;
1184         check inline clones too.
1185         (cgraph_materialize_clone): Record former_clone_of pointer.
1186         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
1187         combining redirections; dump args_to_skip bitmap
1188         (cgraph_materialize_all_clones): Do no redirection here.
1189         * ipa-inline.c (inline_transform): Do redirection here.
1190         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
1191         cheking only).
1192
1193 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
1194
1195         * config/avr/avr-c.c: Do not include regs.h.
1196         Include cpplib.h for cpp_define and tree.h for c-common.h.
1197         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
1198         * config/avr/t-avr: Fix dependencies for avr-c.o.
1199
1200 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
1201
1202         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
1203         string instead of SYMBOL_REF rtx.
1204         * rtl.h (set_stack_check_libfunc): Move prototype from here...
1205         * libfuncs.h: ...to here.  Adjust for explow.c change.
1206
1207 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
1208
1209         * pretty-print.c: Don't include ggc.h.
1210         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
1211         (identifier_to_locale): Use them for allocation.
1212         * pretty-print.h (identifier_to_locale_alloc,
1213         identifier_to_locale_free): Declare.
1214         * toplev.c (alloc_for_identifier_to_locale): New.
1215         (general_init): Set identifier_to_locale_alloc and
1216         identifier_to_locale_free.
1217         * Makefile.in (pretty-print.o): Update dependencies.
1218
1219 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
1220
1221         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
1222         pointer types if they have different alignment or mode.
1223
1224 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
1225
1226         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
1227         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
1228         * config/sparc/sparc-protos.h (function_value): Remove declaration.
1229         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
1230         sparc_function_value_regno_p): New functions.
1231         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1232         TARGET_FUNCTION_VALUE_REGNO_P): Define.
1233         (function_value): Rename to...
1234         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
1235         argument to 'outgoing'.
1236         (function_arg_record_value, function_arg_union_value,
1237         function_arg_vector_value): Update comment.
1238
1239 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
1240
1241         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
1242         (fde_needed_for_eh_p): New predicate.
1243         (output_call_frame_info): Use it throughout to decide whether FDEs
1244         are needed for EH purpose.
1245         (dwarf2out_begin_prologue): Reorder assignments.
1246
1247 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
1248
1249         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
1250         special case loop->header.
1251         (is_predicated): New.
1252         (if_convertible_loop_p): Call it.
1253
1254 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
1255
1256         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
1257         iterator in parameter.  Do not generate code during the analysis.
1258         (tree_if_convert_cond_stmt): Removed.
1259         (tree_if_convert_stmt): Removed.
1260         (predicate_bbs): New.
1261         (if_convertible_loop_p): Call predicate_bbs.
1262         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
1263         now contains all the analysis part.
1264
1265 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
1266
1267         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
1268         statements in the analysis part.
1269         (tree_if_convert_stmt): Update comment.
1270         (remove_conditions_and_labels): New.
1271         (combine_blocks): Call remove_conditions_and_labels.
1272         (tree_if_conversion): Update comment.
1273
1274 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
1275
1276         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
1277         than 2 predecessors or more than 2 successors.
1278
1279 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
1280
1281         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
1282         of loops in which the data dependence analysis fails.
1283
1284 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
1285
1286         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
1287         CDI_POST_DOMINATORS.
1288         (tree_if_conversion): Same.
1289
1290 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
1291
1292         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
1293
1294 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
1295
1296         * tree-if-conv.c: Update copyright years.  Fix comments.
1297         Fix indentation.
1298
1299 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
1300
1301         * builtin-types.def (BT_INT128): New primitive type.
1302         (BT_UINT128): Likewise.
1303         * c-common.c (c_common_r): Add __int128 keyword.
1304         (c_common_type_for_size): Handle __int128.
1305         (c_common_type_for_mode): Likewise.
1306         (c_common_signed_or_unsigned_type): Likewise.
1307         (c_common_nodes_and_builtins): Add builtin type
1308         if target supports 128-bit integer scalar.
1309         * c-common.h (enum rid): Add RID_INT128.
1310         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
1311         if target supports 128-bit integer scalar.
1312         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
1313         (finish_declspecs): Likewise.
1314         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
1315         (c_token_starts_declspecs): Likewise.
1316         (c_parser_declspecs): Likewise.
1317         (c_parser_attributes): Likewise.
1318         (c_parser_objc_selector): Likewise.
1319         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
1320         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
1321         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
1322         * tree.c (make_or_reuse_type): Likewise.
1323         (make_unsigned_type): Likewise.
1324         (build_common_tree_nodes_2): Likewise.
1325         * tree.h (enum integer_type_kind): Add itk_int128 and
1326         itk_unsigned_int128.
1327         (int128_integer_type_node): New define.
1328         (int128_unsigned_type_node): New define.
1329         * doc/extend.texi: Add documentation about __int128 type.
1330
1331 2010-05-26  Richard Guenther  <rguenther@suse.de>
1332
1333         * tree-ssa-sccvn.c (copy_nary): Adjust.
1334         (copy_phis): Rename to ...
1335         (copy_phi): ... this.  Adjust.
1336         (copy_references): Rename to ...
1337         (copy_reference): ... this.  Adjust.
1338         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
1339         result into the valid table.
1340
1341 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
1342
1343         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
1344         insn-config.h, insn-codes.h, recog.h, and optabs.h.
1345
1346 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1347
1348         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
1349
1350 2010-05-26  Richard Guenther  <rguenther@suse.de>
1351
1352         * opts.c (common_handle_option): Handle OPT_Ofast.
1353
1354 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
1355
1356         * diagnostic.c: Don't include opts.h.
1357         (permissive_error_option): Define.
1358         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
1359         for classify_diagnostic.  Don't use memset for
1360         classify_diagnostic.  Initialize new and recently added fields.
1361         (diagnostic_classify_diagnostic): Use context->n_opts instead of
1362         N_OPTS.
1363         (diagnostic_report_diagnostic): Pass context parameter to
1364         diagnostic_report_warnings_p.  Use option_enabled and option_name
1365         hooks from context.
1366         (emit_diagnostic): Use permissive_error_option.
1367         (permerror): Likewise.
1368         * diagnostic.h: Don't include options.h.
1369         (struct diagnostic_context): Add n_opts, opt_permissive,
1370         inhibit_warnings, warn_system_headers, option_enabled and
1371         option_name fields.  Change classify_diagnostic to a pointer.
1372         * opts-diagnostic.h: New file.
1373         * opts.c: Include opts-diagnostic.h.
1374         (common_handle_option): Set global_dc fields for -Wfatal-errors,
1375         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
1376         (option_name): New function.
1377         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
1378         (c_common_handle_option): Set global_dc->permissive for
1379         -fpermissive.
1380         * c-common.c (c_cpp_error): Save and restore
1381         global_dc->warn_system_headers, not variable warn_system_headers.
1382         * toplev.c: Include opts-diagnostic.h.
1383         (general_init): Update call to diagnostic_initialize.  Set
1384         global_dc->show_column, global_dc->option_enabled and
1385         global_dc->option_name.
1386         (process_options): Don't set global_dc fields here.
1387         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
1388         (diagnostic.o, opts.o, toplev.o): Update dependencies.
1389
1390 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
1391
1392         * config/picochip/picochip.md (movsi): Split a movsi from a
1393         const after reload.
1394
1395 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1396
1397         * ggc-zone.c: Update copyright year.
1398         (poison_region): Mark memory for Valgrind as undefined before
1399         memset () call and inaccessible afterwards.
1400         (ggc_pch_total_size): Change type of i to int.
1401
1402 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1403
1404         * ggc-common.c (ggc_free_overhead): Allow empty slot.
1405
1406 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1407
1408         * ggc-common.c: Update copyright year.
1409         (ggc_rlimit_bound): Remove prototype.  Compile only if
1410         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
1411         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
1412         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
1413         (ggc_min_heapsize_heuristic): Likewise.
1414
1415 2010-05-26  Richard Guenther  <rguenther@suse.de>
1416
1417         PR rtl-optimization/44164
1418         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
1419         no-common access-path disambiguation.
1420         (indirect_ref_may_alias_decl_p): Adjust.
1421         (indirect_refs_may_alias_p): Likewise.
1422         (refs_may_alias_p_1): Likewise.
1423
1424 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
1425
1426         * c-typeck.c: Do not include expr.h.
1427
1428 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
1429
1430         * rtl.h (decl_default_tls_model): Move prototype from here...
1431         * output.h: ...to here.
1432         * c-decl.c: Do not include rtl.h.
1433         * c-pragma.c: Likewise.
1434         * c-parser.c: Likewise.
1435         * c-gimplify.c: Likewise.  And also not hard-reg-set.
1436         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
1437         FIXME note for it.  Add a FIXME note for expr.h.
1438         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
1439         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
1440         defined.
1441
1442 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
1443
1444         PR target/44199
1445         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
1446         or total_size is larger than red zone size for non-V4 ABI, emit a
1447         stack_tie resp. frame_tie insn before stack pointer restore.
1448         * config/rs6000/rs6000.md (frame_tie): New insn.
1449
1450 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
1451
1452         * function.h (struct function): Add can_throw_non_call_exceptions bit.
1453         * lto-streamer-in.c (input_function): Stream it in.
1454         * lto-streamer-out.c (output_function): Stream it out.
1455         * function.c (allocate_struct_function): Set it.
1456         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
1457         for flag_non_call_exceptions.
1458         * cfgbuild.c (control_flow_insn_p): Likewise.
1459         (make_edges): Likewise.
1460         * cfgexpand.c (expand_stack_alignment): Likewise.
1461         * combine.c (distribute_notes): Likewise.
1462         * cse.c (cse_extended_basic_block): Likewise.
1463         * except.c (insn_could_throw_p): Likewise.
1464         * gcse.c (simple_mem): Likewise.
1465         * ipa-pure-const.c (check_call): Likewise.
1466         (check_stmt ): Likewise.
1467         * lower-subreg.c (lower-subreg.c): Likewise.
1468         * optabs.c (emit_libcall_block): Likewise.
1469         (prepare_cmp_insn): Likewise.
1470         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
1471         * postreload.c (rest_of_handle_postreload): Likewise.
1472         * reload1.c (reload_as_needed): Likewise.
1473         (emit_input_reload_insns): Likewise.
1474         (emit_output_reload_insns): Likewise.
1475         (fixup_abnormal_edges): Likewise.
1476         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
1477         * store-motion.c (find_moveable_store): Likewise.
1478         * tree-eh.c (stmt_could_throw_p): Likewise.
1479         (tree_could_throw_p): Likewise.
1480         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
1481         * config/arm/arm.c (arm_expand_prologue): Likewise.
1482         (thumb1_expand_prologue): Likewise.
1483         * config/rx/rx.md (cbranchsf4): Likewise.
1484         (cmpsf): Likewise.
1485         * config/s390/s390.c (s390_emit_prologue): Likewise.
1486         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
1487         (inline_forbidden_into_p): New predicate.
1488         (expand_call_inline): Use it to forbid inlining.
1489         (tree_can_inline_p): Likewise.
1490
1491 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
1492
1493         * config/i386/i386-c.c: Do not include rtl.h.
1494         * config/i386/t-i386: Update dependencies.
1495
1496 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
1497
1498         * attribs.c: Do not include rtl.h.
1499         * Makefile.in: Update dependencies.
1500
1501 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
1502
1503         * double-int.h (double_int_and): New.
1504         * combine.c (try_combine): Clean up, use double_int_* and
1505         immed_double_int_const functions.
1506
1507 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1508
1509         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
1510         stderr to /dev/null instead of grep -q.
1511         * configure: Regenerate.
1512
1513 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
1514
1515         * Makefile.in (EXCEPT_H): Fix typo.
1516
1517 2010-05-25  Vladimir Makarov <vmakarov@redhat.com>
1518
1519         * ira-build.c (update_conflict_hard_reg_costs): New.
1520         (ira_build): Call update_conflict_hard_reg_costs.
1521
1522 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
1523
1524         PR debug/41371
1525         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
1526         ENABLE_CHECKING.
1527         (intersect_loc_chains): Walk the s2var's loc_chain together
1528         with s1node chain as long as the locations are equal, don't
1529         call find_loc_in_1pdv in that case.
1530
1531         PR debug/42801
1532         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
1533         (copy_bind_expr): ... instead of here.
1534         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
1535         if the block hasn't been remapped.
1536         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
1537         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
1538
1539 2010-05-25  Richard Guenther  <rguenther@suse.de>
1540
1541         PR middle-end/44069
1542         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
1543         out-of-bounds array accesses.
1544
1545 2010-05-25  Richard Guenther  <rguenther@suse.de>
1546
1547         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
1548         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
1549         (run_gcc): Re-organize to make cleanup easier.
1550
1551 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1552
1553         * config/s390/s390.c (optimization_options): Fix and move the
1554         flag_prefetch_loop_arrays override ...
1555         (override_options): ... here.
1556
1557 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
1558
1559         * diagnostic.c: Don't include plugin.h.
1560         (diagnostic_report_diagnostic): Don't handle plugins specially
1561         here.  Pass context to internal_error callback.
1562         * diagnostic.h (struct diagnostic_context): Add context parameter
1563         to internal_error callback.
1564         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
1565         * plugin.h (struct diagnostic_context): Declare.
1566         (warn_if_plugins, plugins_internal_error_function): Declare.
1567         * toplev.c (general_init): Set global_dc->internal_error.
1568         * Makefile.in (diagnostic.o): Update dependencies.
1569
1570 2010-05-25 Iain Sandoe  <iains@gcc.gnu.org>
1571
1572         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
1573         * config/rs6000/t-darwin64: New.
1574         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
1575         build crt2.
1576
1577 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
1578
1579         PR 44203
1580         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
1581         match the original (and intended) behaviour before r159557.  This
1582         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
1583         in two ways.
1584
1585 2010-05-25  Richard Guenther  <rguenther@suse.de>
1586
1587         * doc/invoke.texi: Document -Ofast.
1588         * target.h (struct gcc_target): Add handle_ofast.
1589         * target-def.h (TARGET_HANDLE_OFAST): Add.
1590         (TARGET_INITIALIZER): Adjust.
1591         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
1592         * common.opt (Ofast): Add.
1593
1594 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
1595
1596         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
1597         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
1598
1599 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
1600
1601         PR target/43610
1602         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
1603         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
1604         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
1605         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
1606
1607 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
1608
1609         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
1610         DW_OP_minus with negated offset instead of DW_OP_plus.
1611         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
1612
1613 2010-05-25  Wei Guozhi  <carrot@google.com>
1614
1615         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
1616         tst instruction and a new alternative.
1617         * config/arm/constraints.md (Pu): New constraint.
1618
1619 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
1620
1621         * function.c (assign_stack_local_1): Initialize variable
1622         to avoid warning when bootstrapping at -O3.
1623
1624 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
1625
1626         * configure.ac (all_lang_makefiles): Remove everything related to it.
1627         * configure: Regenerate.
1628         * Makefile.in: Fix reference to ada Make-lang.in.
1629         Remove support for LANG_MAKEFILES.
1630
1631 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
1632             Sandra Loosemore  <sandra@codesourcery.com>
1633
1634         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
1635         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
1636         description.  Add arm_neon_fp16_ok.
1637         (Add Options): Add arm_neon and arm_neon_fp16.
1638
1639 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
1640
1641         * diagnostic.c: Don't include flags.h.
1642         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
1643         context parameters.  Check flags in the context passed as a parameter.
1644         (diagnostic_build_prefix): Add context parameter.  Check
1645         show_column flag in context.
1646         (diagnostic_action_after_output): Check fatal_errors flag in context.
1647         (diagnostic_report_current_module): Check show_column flag in context.
1648         (default_diagnostic_starter): Update call to
1649         diagnostic_build_prefix.
1650         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
1651         (emit_diagnostic): Pass context to permissive_error_kind.
1652         (permerror): Pass context to permissive_error_kind.
1653         * diagnostic.h (struct diagnostic_context): Add show_column,
1654         pedantic_errors, permissive and fatal_errors fields.
1655         (diagnostic_build_prefix): Update prototype.
1656         * langhooks.c
1657         * toplev.c (process_options): Set flags in global_dc from
1658         flag_show_column, flag_pedantic_errors, flag_permissive,
1659         flag_fatal_errors.
1660         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
1661         to diagnostic_build_prefix.
1662         * Makefile.in (diagnostic.o): Update dependencies.
1663
1664 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
1665
1666         * config/i386/ia32intrin.h (__crc32q): Define only if
1667         __SSE4_2__ is defined.
1668
1669 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
1670
1671         PR target/44132
1672         PR middle-end/43602
1673         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
1674         DECL_VISIBILITY_SPECIFIED.
1675         (emutls_decl): Set DECL_PRESERVE_P and copy
1676         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
1677         (emutls_finalize_control_var): New callback.
1678         (emutls_finish): Finalize emutls control variables.
1679         * toplev.c (compile_file): Move the call to emutls_finish ()
1680         before varpool_assemble_pending_decls ().
1681
1682 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
1683
1684         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
1685         added to the preprocessor condition.
1686
1687 2010-05-24  Paul Brook  <paul@codesourcery.com>
1688
1689         * gengtype-lex.l: Add HARD_REG_SET.
1690         * expr.c (expand_expr_real_1): Record writes to hard registers.
1691         * function.c (rtl_data): Add asm_clobbers.
1692         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
1693         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
1694         Use crtl->asm_clobbers.
1695
1696 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1697
1698         * doc/makefile.texi (Makefile): Mention stages 'profile'
1699         and 'feedback' for profiledbootstrap.
1700
1701 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
1702
1703         PR target/44245
1704         * config/i386/i386.c (def_builtin): Properly check
1705         OPTION_MASK_ISA_64BIT.
1706
1707 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
1708
1709         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
1710         typedefs with different but compatible types.  Allow duplicate
1711         typedefs with the same type except for pedantic non-C1X, but give
1712         warning for variably modified types.
1713         * c-typeck.c (tagged_types_tu_compatible_p,
1714         function_types_compatible_p, type_lists_compatible_p,
1715         comptypes_internal): Add parameter different_types_p; set
1716         *different_types_p for different but compatible types.  All
1717         callers changed.
1718         (comptypes_check_different_types): New.
1719         * c-tree.h (comptypes_check_different_types): Declare.
1720
1721 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
1722
1723         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
1724         * jump.c: Include basic-block.h.
1725         * profile.c: Likewise.
1726         * tree-profile.c: Likewise.
1727         * coverage.c: Likewise.
1728         * basic-block.h (optimize_function_for_size_p): Move to function.h.
1729         (optimize_function_for_speed_p): Likewise.
1730         * function.h (optimize_function_for_size_p,
1731         optimize_function_for_speed_p): Moved here from basic-block.h.
1732         * Makefile.in: Update dependencies.
1733
1734 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1735
1736         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
1737         before calling make; allow override through $MAKE.
1738         * doc/invoke.texi (Optimize Options): Document override.
1739
1740 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
1741
1742         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
1743         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1744         (rs6000_mode_dependent_address_ptr): Make static.
1745         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
1746         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
1747         Remove.
1748
1749 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
1750
1751         PR target/43869
1752         * config/i386/i386.c: Make sure that the correct regparm is passed.
1753
1754 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
1755
1756         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
1757         * sbitmap.c: ...to here to internalize sbitmap element access.
1758         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
1759         Explain why basic-block.h is included.
1760         * function.h: Include tm.h for CUMULATIVE_ARGS.
1761         * Makefile.in: Update dependencies.
1762
1763 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
1764
1765         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
1766         New core types.
1767         * sbitmap.h (struct sbitmap_def): Do not typedef here.
1768         * sbitmap.c: Include sbitmap.h.
1769         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
1770         hard-reg-set.h.  Split everything related to regsets out from here...
1771         * regset.h: ...to here.  New file.
1772         * df.h: Include regset.h and sbitmap.h.
1773         * tree-flow.h: Likewise.
1774         * cfgloop.h: Likewise.
1775         * except.h: Do not include sbitmap.h.  Include hashtab.h.
1776         * cgraph.h: Include vec.h and function.h.
1777         * reload.h (struct insn_chain): Change types of live_throughout
1778         and dead_or_set from regset_head to bitmap_head.
1779         (compute_use_by_pseudos): Be defined also if regset.h is not included.
1780         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
1781         spilled_regs from regset_head to bitmap_head to avoid dependency
1782         in regset.h.
1783         * sel-sched-ir.h: Include regset.h.
1784         * reload.c: Include df.h before reload.h.
1785         * caller-save.c: Likewise.
1786         * reload1.c: Likewise.
1787         * ira.c: Likewise.
1788         (mark_elimination): Update type of r to bitmap, consistent with
1789         DF_LR_IN.
1790         * dominance.c: Include bitmap.h.
1791         * modulo-sched.c: Include df.h.
1792         * cfganal.c: Include bitmap.h and sbitmap.h.
1793         * cfgbuild.c: Include sbitmap.h.
1794         * lcm.c: Include sbitmap.h.
1795         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
1796         * domwalk.c: Include sbitmap.h, exclude ggc.h.
1797         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
1798         * cselib.c: Include bitmap.h.
1799         * tree-optimize.c: Include regset.h.
1800         * stmt.c: Include bitmap.h.
1801         * Makefile.in: Update dependencies.
1802
1803 2010-05-22  Jan Hubicka  <jh@suse.cz>
1804
1805         * cgraph.h (struct varpool_node): Add same_comdat_group.
1806         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
1807         pointer.
1808         (output_varpool): Update call of lto_output_varpool_node.
1809         (input_varpool): Read same_comdat_group pointer.
1810         (input_varpool_1): Fixup same_comdat_group pointer.
1811         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
1812         group is needed, all are.
1813         * varpool.c (varpool_remove_node): Remove node from same comdat group
1814         linklist too.
1815         (varpool_analyze_pending_decls): Walk same comdat groups.
1816
1817 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
1818
1819         * rtl.h (union rtunion_def): Remove rt_bit member.
1820         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
1821         * print-rtl (print_rtx): Do not print the member.
1822         * gengtype.c (adjust_field_rtx_def): Do not handle it.
1823         * gengenrtl.c (type_from_format): Likewise.
1824         (accessor_from_format): Likewise.
1825
1826 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
1827
1828         * dbgcnt.c: Include toplev.h instead of errors.h.
1829         * ira-emit.c: Don't include errors.h.
1830         * ira.c: Include toplev.h instead of errors.h.
1831         * lto-compress.c: Include toplev.h instead of errors.h.
1832         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
1833         ira.o, dbgcnt.o): Update dependencies.
1834
1835 2010-05-22  Richard Guenther  <rguenther@suse.de>
1836
1837         * gimple.c (gimple_types_compatible_p): Check type qualifications
1838         before merging pointer to complete and pointer to incomplete type.
1839         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
1840         we use our own resolution algorithm.  The gold linker plugin
1841         doesn't do the job we want it to do here.
1842
1843 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
1844
1845         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
1846         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1847         (sparc_mode_dependent_address_p): New function.
1848
1849 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
1850
1851         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
1852
1853         * timevar.c: Do not include any core headers.
1854         (timevar_print): De-i18n-ize.
1855         (print_time): Likewise.
1856         * timevar.h (timevar_push, timevar_pop): Make inline functions.
1857
1858 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
1859
1860         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
1861         langhooks-def.h.
1862         (diagnostic_initialize): Initialize x_data not last_function.
1863         (diagnostic_report_current_function): Move to tree-diagnostic.c.
1864         (default_diagnostic_starter): Call
1865         diagnostic_report_current_module not
1866         diagnostic_report_current_function.
1867         (diagnostic_report_diagnostic): Initialize x_data not
1868         abstract_origin.
1869         (verbatim): Likewise.
1870         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
1871         x_data.
1872         (struct diagnostic_context): Change last_function to x_data.
1873         (diagnostic_auxiliary_data): Replace with
1874         diagnostic_context_auxiliary_data and
1875         diagnostic_info_auxiliary_data.
1876         (diagnostic_last_function_changed, diagnostic_set_last_function,
1877         diagnostic_report_current_function): Move to tree-diagnostic.h.
1878         (print_declaration, dump_generic_node, print_generic_stmt,
1879         print_generic_stmt_indented, print_generic_expr,
1880         print_generic_decl, debug_c_tree, dump_omp_clauses,
1881         print_call_name, debug_generic_expr, debug_generic_stmt,
1882         debug_tree_chain, default_tree_printer): Move to
1883         tree-pretty-print.h.
1884         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
1885         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
1886         gimple-pretty-print.h.
1887         * pretty-print.c: Don't include tree.h
1888         (pp_base_format): Don't handle %K here.
1889         (pp_base_tree_identifier): Move to tree-pretty-print.c.
1890         * pretty-print.h (text_info): Change abstract_origin to x_data.
1891         (pp_tree_identifier, pp_unsupported_tree,
1892         pp_base_tree_identifier): Move to tree-pretty-print.h.
1893         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
1894         tree-pretty-print.h: New files.
1895         * tree-pretty-print.c: Include tree-pretty-print.h.
1896         (percent_K_format): New.  Moved from pretty-print.c.
1897         (pp_base_tree_identifier): Move from pretty-print.c.
1898         * c-objc-common.c: Include tree-pretty-print.h.
1899         (c_tree_printer): Handle %K here.
1900         * langhooks.c: Include tree-diagnostic.h.
1901         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
1902         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
1903         (default_tree_printer): Handle %K using percent_K_format.
1904         (general_init): Use default_tree_diagnostic_starter.
1905         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
1906         (free_lang_data): Use default_tree_diagnostic_starter.
1907         * c-pretty-print.c: Include tree-pretty-print.h.
1908         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1909         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1910         * dwarf2out.c: Include tree-pretty-print.h.
1911         * except.c: Include tree-pretty-print.h.
1912         * gimple-pretty-print.c: Include tree-pretty-print.h and
1913         gimple-pretty-print.h.
1914         * gimplify.c: Include tree-pretty-print.h.
1915         * graphite-poly.c: Include tree-pretty-print.h and
1916         gimple-pretty-print.h.
1917         * ipa-cp.c: Include tree-pretty-print.h.
1918         * ipa-inline.c: Include gimple-pretty-print.h.
1919         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1920         * ipa-pure-const.c: Include gimple-pretty-print.h.
1921         * ipa-struct-reorg.c: Include tree-pretty-print.h and
1922         gimple-pretty-print.h.
1923         * ipa-type-escape.c: Include tree-pretty-print.h.
1924         * print-rtl.c: Include tree-pretty-print.h.
1925         * print-tree.c: Include gimple-pretty-print.h.
1926         * sese.c: Include tree-pretty-print.h.
1927         * tree-affine.c: Include tree-pretty-print.h.
1928         * tree-browser.c: Include tree-pretty-print.h.
1929         * tree-call-cdce.c: Include gimple-pretty-print.h.
1930         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1931         * tree-chrec.c: Include tree-pretty-print.h.
1932         * tree-data-ref.c: Include tree-pretty-print.h and
1933         gimple-pretty-print.h.
1934         * tree-dfa.c: Include tree-pretty-print.h.
1935         * tree-if-conv.c: Include tree-pretty-print.h and
1936         gimple-pretty-print.h.
1937         * tree-inline.c: Include tree-pretty-print.h.
1938         * tree-into-ssa.c: Include tree-pretty-print.h and
1939         gimple-pretty-print.h.
1940         * tree-nrv.c: Include tree-pretty-print.h.
1941         * tree-object-size.c: Include tree-pretty-print.h and
1942         gimple-pretty-print.h.
1943         * tree-outof-ssa.c: Include tree-pretty-print.h and
1944         gimple-pretty-print.h.
1945         * tree-parloops.c: Include tree-pretty-print.h and
1946         gimple-pretty-print.h.
1947         * tree-predcom.c: Include tree-pretty-print.h and
1948         gimple-pretty-print.h.
1949         * tree-scalar-evolution.c: Include tree-pretty-print.h and
1950         gimple-pretty-print.h.
1951         * tree-sra.c: Include tree-pretty-print.h.
1952         * tree-ssa-address.c: Include tree-pretty-print.h.
1953         * tree-ssa-alias.c: Include tree-pretty-print.h.
1954         * tree-ssa-ccp.c: Include tree-pretty-print.h and
1955         gimple-pretty-print.h.
1956         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
1957         * tree-ssa-copy.c: Include tree-pretty-print.h and
1958         gimple-pretty-print.h.
1959         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
1960         * tree-ssa-dce.c: Include tree-pretty-print.h and
1961         gimple-pretty-print.h.
1962         * tree-ssa-dom.c: Include tree-pretty-print.h and
1963         gimple-pretty-print.h.
1964         * tree-ssa-dse.c: Include gimple-pretty-print.h.
1965         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
1966         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
1967         * tree-ssa-live.c: Include tree-pretty-print.h and
1968         gimple-pretty-print.h.
1969         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
1970         gimple-pretty-print.h.
1971         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
1972         gimple-pretty-print.h.
1973         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
1974         gimple-pretty-print.h.
1975         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
1976         gimple-pretty-print.h.
1977         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
1978         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
1979         * tree-ssa-operands.c: Include tree-pretty-print.h and
1980         gimple-pretty-print.h.
1981         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
1982         gimple-pretty-print.h.
1983         * tree-ssa-pre.c: Include tree-pretty-print.h and
1984         gimple-pretty-print.h.
1985         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
1986         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
1987         gimple-pretty-print.h.
1988         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
1989         gimple-pretty-print.h.
1990         * tree-ssa-sink.c: Include gimple-pretty-print.h.
1991         * tree-ssa-ter.c: Include tree-pretty-print.h and
1992         gimple-pretty-print.h.
1993         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
1994         * tree-ssa.c: Include tree-pretty-print.h and
1995         gimple-pretty-print.h.
1996         * tree-stdarg.c: Include gimple-pretty-print.h.
1997         * tree-switch-conversion.c: Include gimple-pretty-print.h.
1998         * tree-tailcall.c: Include tree-pretty-print.h and
1999         gimple-pretty-print.h.
2000         * tree-vect-data-refs.c: Include tree-pretty-print.h and
2001         gimple-pretty-print.h.
2002         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
2003         gimple-pretty-print.h.
2004         * tree-vect-loop.c: Include tree-pretty-print.h and
2005         gimple-pretty-print.h.
2006         * tree-vect-patterns.c: Include gimple-pretty-print.h.
2007         * tree-vect-slp.c: Include tree-pretty-print.h and
2008         gimple-pretty-print.h.
2009         * tree-vect-stmts.c: Include tree-pretty-print.h and
2010         gimple-pretty-print.h.
2011         * tree-vectorizer.c: Include tree-pretty-print.h.
2012         * tree-vrp.c: Include tree-pretty-print.h and
2013         gimple-pretty-print.h.
2014         * value-prof.c: Include tree-pretty-print.h and
2015         gimple-pretty-print.h.
2016         * var-tracking.c: Include tree-pretty-print.h.
2017         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
2018         (tree-diagnostic.o): New dependencies.
2019         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
2020         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
2021         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
2022         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
2023         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
2024         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
2025         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
2026         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
2027         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
2028         tree-ssa-address.o, tree-ssa-loop-niter.o,
2029         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
2030         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
2031         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
2032         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
2033         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
2034         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
2035         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
2036         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
2037         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
2038         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
2039         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
2040         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
2041         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
2042         tree-switch-conversion.o, var-tracking.o, value-prof.o,
2043         cfgexpand.o, pretty-print.o): Update dependencies.
2044
2045 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
2046
2047         * tree-ssa-structalias.c: Remove tm_p.h from include.
2048
2049 2010-05-21  Jeff Law  <law@redhat.com>
2050
2051         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
2052
2053 2010-05-21  Jason Merrill  <jason@redhat.com>
2054
2055         * tree-eh.c (cleanup_is_dead_in): New.
2056         (lower_try_finally): Don't generate a dead cleanup region.
2057         (lower_cleanup): Likewise.
2058
2059 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
2060
2061         PR debug/44223
2062         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
2063         unchain each use from the cyclic next_regno_use chain first.
2064
2065 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
2066
2067         * real: Do not include gmp.h, mpfr.h, and mpc.h.
2068         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
2069         (real_value_negate, real_value_abs): New prototypes.
2070         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
2071         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
2072         new include file for interface between MPFR and REAL_VALUE_TYPE.
2073         * real.c: Include realmpfr.h.
2074         (real_arithmetic2): Remove legacy function.
2075         (real_value_negate): New.
2076         (real_value_abs): New.
2077         (mfpr_from_real, real_from_mpfr): Move from here...
2078         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
2079         * builtins.c: Include realmpfr.h.
2080         * fold-const.c: Include realmpfr.h.
2081         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
2082         (fold_negate_const): Likewise.
2083         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
2084         * toplev.c: Include realmpfr.h.
2085         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
2086         and real_value_negate.
2087         * fixed-value.c (check_real_for_fixed_mode): Likewise.
2088         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
2089         (vfp3_const_double_index): Likewise.
2090         (arm_print_operand): Likewise.
2091         * Makefile.in: Update dependencies.
2092
2093 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2094
2095         * config/s390/s390.c (override_options): Increase the default
2096         of max-completely-peel-times.
2097
2098 2010-05-21  Julian Brown  <julian@codesourcery.com>
2099             Mark Mitchell  <mark@codesourcery.com>
2100
2101         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
2102         sibling calls for Thumb-1.
2103         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
2104         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
2105         Thumb-2.
2106         (*call_insn, *call_value_insn): Don't use for Thumb-2.
2107         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
2108         for Thumb-2.
2109         (return): New expander.
2110         (*arm_return): New name for ARM return insn.
2111         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
2112
2113 2010-05-19  Joel Sherrill <joel.sherrill@oarcorp.com>
2114
2115         * config.gcc (sparc64-*-rtems*): New target.
2116
2117 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
2118
2119         * tree.c (build_function_decl_skip_args): Fix grammar.
2120         (build_function_type_list_1): Fix typos, adjust formatting.
2121
2122 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
2123
2124         * tree.h: Include real.h and fixed-value.h as basic datatypes.
2125         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
2126         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
2127         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
2128         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
2129         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
2130         tree-pretty-print.c, tree-loop-distribution.c,
2131         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
2132         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
2133         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
2134         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
2135         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
2136         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
2137         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
2138         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
2139         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
2140         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
2141         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
2142         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
2143         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
2144         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
2145         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
2146         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
2147         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
2148         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
2149         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
2150         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
2151         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
2152         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
2153         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
2154         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
2155         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
2156         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
2157         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
2158         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
2159         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
2160         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
2161         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
2162         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
2163         config/score/score7.c, config/score/score.c, config/arm/arm.c,
2164         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
2165         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
2166         config/bfin/bfin.c: Clean up redundant includes.
2167         * Makefile.in: Update accordingly.
2168
2169 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
2170
2171         PR middle-end/44204
2172         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
2173         statement has no arguments.
2174
2175 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
2176
2177         PR/44139
2178         * varasm.c (emutls_decl): Merge attributes to new decl.
2179
2180 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
2181
2182         PR middle-end/44101
2183         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
2184         around the uniquized constructor if its type requires a conversion.
2185
2186 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
2187
2188         PR debug/44205
2189         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
2190         at -O0 goto_locus of any of the incoming edges differs from
2191         goto_locus of outgoing edge, or gimple_location of any of the
2192         labels differs.
2193
2194 2009-09-14  Vladimir Makarov <vmakarov@redhat.com>
2195
2196         * ira.c (ira_non_ordered_class_hard_regs): Define.
2197         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
2198         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
2199         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
2200         cost of unaligned hard regs when allocating multi-reg pseudos.
2201
2202 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
2203
2204         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
2205         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
2206         for TARGET_NO_FLOAT.
2207         * config/mips/mips.c (mips_file_start): Expand conditional expression
2208         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
2209         (mips_override_options): Move -mno-float override -msoft-float and
2210         -mhard-float.
2211         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
2212         Condition(TARGET_SUPPORTS_NO_FLOAT).
2213         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
2214         __mips_no_float here.
2215         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
2216         (TARGET_SUPPORTS_NO_FLOAT): Define.
2217         * config/mips/sdemtk.opt: Delete.
2218
2219 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
2220
2221         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
2222
2223 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
2224
2225         PR target/43733
2226         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
2227         * configure: Regenerate.
2228         * config.in: Regenerate.
2229         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
2230         instead of sahf only for 64bit targets.
2231
2232 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
2233
2234         PR debug/44178
2235         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
2236         setup_ref_regs for DEBUG_INSNs.
2237
2238 2010-05-20  Jan Hubicka  <jh@suse.cz>
2239
2240         PR middle-end/44197
2241         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
2242
2243 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
2244
2245         PR bootstrap/43870
2246         * df-scan.c (df_ref_compare): Stabilize sort.
2247
2248 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
2249
2250         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
2251         argument.  Don't use DW_OP_piece if offset is non-zero,
2252         put offset into second DW_OP_bit_piece argument.
2253         (dw_sra_loc_expr): Adjust callers.  For memory expressions
2254         compute offset.
2255
2256 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
2257
2258         PR target/44202
2259         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
2260         settings for 16-bit-constant "addo" alternative.
2261
2262 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
2263
2264         * config/mips/mips-dsp.md (add<DSPV:mode>3,
2265         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
2266
2267         PR target/43764
2268         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
2269         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
2270         Use it.
2271
2272 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
2273
2274         * diagnostic.c (FLOAT, FFS): Don't undefine.
2275         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
2276         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
2277         include ordering.
2278
2279 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
2280
2281         * combine.c (propagate_for_debug): Call make_compound_operation
2282         on the source value.
2283         (try_combine): When implementing a split chosen by find_split_point,
2284         either copy i2src or set it to null.  Assert that i2src is not null
2285         before substituting into CALL_INSN_FUNCTION_USAGE.
2286
2287 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
2288
2289         * double-int.h (double_int_ior): New function.
2290         * tree.h (build_int_cst_wide_type): Remove.
2291         * tree.c (build_int_cst_wide_type): Remove.
2292         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
2293         of build_int_cst_wide_type.
2294         * stor-layout.c (set_sizetype): (Ditto.).
2295         * dojump.c (do_jump): Use build_int_cstu instead of
2296         build_int_cst_wide_type.
2297
2298 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
2299
2300         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
2301         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
2302         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
2303         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
2304         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
2305         propagate the 'data' argument to copy_tree_r.
2306         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
2307         Propagate 'data' argument to walk_tree.
2308         (copy_if_shared): New function.
2309         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
2310         (unmark_visited): New function.
2311         (unshare_body): Call copy_if_shared instead of doing it manually.
2312         (unvisit_body): Call unmark_visited instead of doing it manually.
2313
2314 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
2315
2316         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
2317         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
2318         * hooks.c: Likewise.
2319         * target-def.h (TARGET_FOLD_BUILTIN): Define to
2320         hook_tree_tree_int_treep_bool_null.
2321         * target.h (struct gcc_target): Update signature of fold_builtin
2322         field.
2323         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
2324         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
2325         instead of the call expression.
2326         (fold_builtin_call_array): Pass n and argarray directly.
2327         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
2328         consing a list.
2329         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
2330         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
2331         `i' and use it in place of `arity'.
2332         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
2333         Dereference `args' directly.
2334         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
2335
2336 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2337
2338         * doc/sourcebuild.texi (Effective-Target Keywords): Document
2339         3dnow, sse3, sse2.
2340         (Directives): Document optional dg-require-effective-target
2341         selector.
2342
2343 2010-05-19  Richard Guenther  <rguenther@suse.de>
2344
2345         PR lto/44196
2346         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
2347
2348 2010-05-19  Richard Guenther  <rguenther@suse.de>
2349
2350         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
2351         * common.opt (fwhopr=): New.
2352         * opts.c (common_handle_option): Handle OPT_fwhopr.
2353         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
2354         * collect2.c (main): Match -fwhopr*.
2355         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
2356         Execute ltrans stage in parallel when jobs is bigger than 1.
2357
2358 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2359
2360         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
2361         pentiumpro on Solaris 8/x86 with Sun as.
2362         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
2363         hidden alias bug.
2364         (gcc_cv_as_ix86_quad): Check for .quad directive.
2365         * configure: Regenerate.
2366         * config.in: Regenerate.
2367         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
2368
2369 2010-05-19  Martin Jambor  <mjambor@suse.cz>
2370
2371         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
2372         also for indirect edges.  Actual printing moved...
2373         (ipa_print_node_jump_functions_for_edge): ...here.
2374         (ipa_compute_jump_functions): Renamed to
2375         ipa_compute_jump_functions_for_edge and made static.
2376         (ipa_compute_jump_functions): New function.
2377         (make_edge_direct_to_target): Check if the number of arguments on
2378         the newly direct edge is the same as the number of parametrs of
2379         the callee.
2380         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
2381         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
2382         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
2383         analysis functions unconditionally, call the new
2384         ipa_analyze_params_uses on the node instead of every edge.
2385
2386 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
2387
2388         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
2389         to tree.
2390         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
2391         also checks for a constant int vs.  non-constant but
2392         loop-invariant steps.
2393         (find_or_create_group): Change the sort algorithm to only consider
2394         steps that are constant ints.
2395         (idx_analyze_ref): Adopt code to handle a tree instead of a
2396         HOST_WIDE_INT for step.
2397         (gather_memory_references_ref): Handle tree instead of int and be
2398         prepared to see a NULL_TREE.
2399         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
2400         prefetches if the step cannot be calculated at compile time.
2401         (issue_prefetch_ref): Issue prefetches for non-constant but
2402         loop-invariant steps.
2403
2404 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
2405
2406         Revert:
2407         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
2408
2409         * tree.h (build_call_list): Remove.
2410         * tree.c (build_call_list): Remove.
2411
2412 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
2413
2414         * tree.h (build_call_list): Remove.
2415         * tree.c (build_call_list): Remove.
2416
2417 2010-05-18  Jan Hubicka  <jh@suse.cz>
2418
2419         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
2420
2421 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
2422
2423         PR rtl-optimization/43332
2424         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
2425
2426 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
2427
2428         * tree.h (build_int_cstu): Implement as static inline.
2429         * tree.c (build_int_cstu): Remove function.
2430         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
2431         sign extended.
2432
2433 2010-05-18  Richard Guenther  <rguenther@suse.de>
2434
2435         PR lto/44143
2436         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
2437         (debug): Initialize from -save-temps.
2438         (collect_execute): Print command-line when verbose.
2439         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
2440         for ltrans invocation.  Produce -dumpbase flag again.
2441         (process_args): Remove.
2442         (main): Simplify.
2443         * collect2.c (maybe_run_lto_and_relink): Only pass object
2444         files to lto-wrapper.
2445         * gcc.c (LINK_COMMAND_SPEC): Likewise.
2446
2447 2010-05-18  Jan Hubicka  <jh@suse.cz>
2448
2449         * opts.c (decode_options): Do not disable whopr at ipa_cp.
2450         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
2451
2452 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
2453
2454         PR lto/44184
2455         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
2456         in a GIMPLE_ASM.
2457         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
2458         in a GIMPLE_ASM.
2459
2460 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
2461
2462         PR debug/41371
2463         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
2464         rtx_equal_p inline.
2465
2466 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
2467
2468         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
2469         lto-macho as lto_binary_reader.
2470
2471         * darwin.c (darwin_asm_named_section): Do not add assembler comment
2472         after .section directive; just print it before the directive instead.
2473
2474 2010-05-17  Jan Hubicka  <jh@suse.cz>
2475
2476         * cgraph.c (cgraph_create_virtual_clone): Only check
2477         versionable_function_p when not in wpa and checking is enabled.
2478         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
2479         there are no more functions to materialize.
2480
2481 2010-05-17  Jan Hubicka  <jh@suse.cz>
2482
2483         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
2484         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
2485         New functions.
2486         (output_cgraph): Call output_cgraph_opt_summary.
2487         (input_cgrpah): Call input_cgraph_opt_summary.
2488         (output_cgraph_opt_summary_p, output_node_opt_summary,
2489         input_node_opt_summary, input_cgraph_opt_section): New functions.
2490         * lto-section-in.c (lto_section_name): Add cgraphopt.
2491         * tree-inline.c (tree_function_versioning): Handle parm_num.
2492         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
2493         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
2494
2495 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
2496
2497         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
2498         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
2499         the insn to prefetch ratio heuristic to loops with known trip count.
2500
2501 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
2502
2503         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
2504         (schedule_prefetches): Do not generate a prefetch if the unroll factor
2505         is far from what is required by the prefetch.
2506
2507 2010-05-17  Jan Hubicka  <jh@suse.cz>
2508
2509         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
2510         (ipcp_estimate_growth): Likewise.
2511         (ipcp_const_param_count): Likewise.
2512         (ipcp_insert_stage): Likewise.
2513         * ipa-prop.c (visit_load_for_mod_analysis): New function.
2514         (visit_store_addr_for_mod_analysis): Set used flag.
2515         (ipa_detect_param_modifications): Set used flag for SSE params;
2516         update use of walk_stmt_load_store_addr_ops.
2517         (ipa_print_node_params): Print used flag.
2518         (ipa_write_node_info): Stream used flag.
2519         (ipa_read_node_info): Likewise.
2520         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
2521         (ipa_is_param_used): New function.
2522         (lto_ipa_fixup_call_notes): Remove unused declaration.
2523
2524 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2525
2526         PR target/44074
2527         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
2528         * configure: Regenerate.
2529         * config.in: Regenerate.
2530         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
2531         !HAVE_AS_IX86_REP_LOCK_PREFIX.
2532         Don't emit whitespace.
2533         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
2534         (*rep_movsi): Likewise.
2535         (*rep_movsi_rex64): Likewise.
2536         (*rep_movqi): Likewise.
2537         (*rep_movqi_rex64): Likewise.
2538         (*rep_stosdi_rex64): Likewise.
2539         (*rep_stossi): Likewise.
2540         (*rep_stossi_rex64): Likewise.
2541         (*rep_stosqi): Likewise.
2542         (*rep_stosqi_rex64): Likewise.
2543         (*cmpstrnqi_nz_1): Use {%;} after repz.
2544         (*cmpstrnqi_nz_rex_1): Likewise.
2545         (*cmpstrnqi_1): Likewise.
2546         (*cmpstrnqi_rex_1): Likewise.
2547         (*strlenqi_1): Use {%;} after repnz.
2548         (*strlenqi_rex_1): Likewise.
2549         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
2550         (*sync_compare_and_swap<mode>): Likewise.
2551         (sync_double_compare_and_swap<mode>): Likewise.
2552         (*sync_double_compare_and_swapdi_pic): Likewise.
2553         (sync_old_add<mode>): Likewise.
2554         (sync_add<mode>): Likewise.
2555         (sync_sub<mode>): Likewise.
2556         (sync_<code><mode>): Likewise.
2557
2558 2010-05-17  Martin Jambor  <mjambor@suse.cz>
2559
2560         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
2561         otr_token and polymorphic.
2562         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
2563         (cgraph_clone_edge): Copy the above fields.
2564         * tree.c (get_binfo_at_offset): New function.
2565         * tree.h (get_binfo_at_offset): Declare.
2566         * ipa-prop.h (enum jump_func_type): Added known_type jump function
2567         type, reordered items, updated comments.
2568         (union jump_func_value): Added base_type field, reordered fields.
2569         (enum ipa_lattice_type): Moved down in the file.
2570         (struct ipa_param_descriptor): New field polymorphic.
2571         (ipa_is_param_polymorphic): New function.
2572         * ipa-prop.c: Include gimple.h and gimple-fold.h.
2573         (ipa_print_node_jump_functions): Print known type jump functions.
2574         (compute_complex_pass_through): Renamed to...
2575         (compute_complex_assign_jump_func): this.
2576         (compute_complex_ancestor_jump_func): New function.
2577         (compute_known_type_jump_func): Likewise.
2578         (compute_scalar_jump_functions): Create known type and complex ancestor
2579         jump functions.
2580         (ipa_note_param_call): New parameter polymorphic, set the corresponding
2581         flag in the call note accordingly.
2582         (ipa_analyze_call_uses): Renamed to...
2583         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
2584         variable var only in the block where it is used.
2585         (ipa_analyze_virtual_call_uses): New function.
2586         (ipa_analyze_call_uses): Likewise.
2587         (combine_known_type_and_ancestor_jfs): Likewise.
2588         (update_jump_functions_after_inlining): Implemented handling of a
2589         number of new jump function types combination.
2590         (print_edge_addition_message): Removed.
2591         (make_edge_direct_to_target): New function.
2592         (try_make_edge_direct_simple_call): Likewise.
2593         (try_make_edge_direct_virtual_call): Likewise.
2594         (update_call_notes_after_inlining): Renamed to...
2595         (update_indirect_edges_after_inlining): this.  Moved edge creation for
2596         indirect calls to try_make_edge_direct_simple_call, also calls
2597         try_make_edge_direct_virtual_call for virtual calls.
2598         (ipa_print_node_params): Changed the header message.
2599         (ipa_write_jump_function): Stream also known type jump functions.
2600         (ipa_read_jump_function): Likewise.
2601         (ipa_write_indirect_edge_info): Stream new fields in
2602         cgraph_indirect_call_info.
2603         (ipa_read_indirect_edge_info): Likewise.
2604         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
2605         GIMPLE_FOLD_H.
2606
2607 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2608
2609         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
2610
2611 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
2612
2613         * tree.h (CALL_EXPR_ARGS): Delete.
2614         (call_expr_arglist): Delete.
2615         * tree.c (call_expr_arglist): Delete.
2616         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
2617         targetm.fold_builtin.
2618         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
2619         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
2620         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
2621         arglist parameter.  Use CALL_EXPR_ARG.
2622         (picochip_expand_builtin_3op): Likewise.
2623         (picochip_expand_builtin_2opvoid): Likewise.
2624         (picochip_expand_array_get): Likewise.
2625         (picochip_expand_array_put): Likewise.
2626         (picochip_expand_array_testport): Likewise.
2627         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
2628         rather than arglist.
2629         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
2630         CALL_EXPR_ARGS.
2631         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
2632         than TREE_VALUE and TREE_CHAIN.
2633         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
2634         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
2635         the arglist.
2636
2637 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
2638
2639         PR bootstrap/42347
2640         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
2641         to have no fallthru edge.
2642
2643         PR middle-end/44102
2644         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
2645         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
2646         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
2647         add BARRIER after previous bb if needed.
2648
2649 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
2650
2651         * tree.c (build_function_type_list_1): Remove bogus assert condition.
2652
2653 2010-05-17  Alan Modra  <amodra@gmail.com>
2654
2655         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
2656         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
2657         with copy_reg rtx param.
2658         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
2659         Correct cases where code for ABI_V4 did not initialise the reg
2660         used to access frame.  Also leave frame_reg_rtx as sp for large
2661         frames that save no regs.
2662
2663 2010-05-17  Martin Jambor  <mjambor@suse.cz>
2664
2665         PR middle-end/44133
2666         * tree-sra.c (create_access_replacement): New parameter rename, mark
2667         the replaement for renaming only when it is true.
2668         (get_access_replacement): Pass true in the rename parameter of
2669         create_access_replacement.
2670         (get_unrenamed_access_replacement): New function.
2671         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
2672         replacement declaration from it.
2673
2674 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
2675
2676         * function.c (try_fit_stack_local, add_frame_space): New static
2677         functions.
2678         (assign_stack_local_1): Use them.  Look for opportunities to use
2679         space previously wasted on alignment.
2680         * function.h (struct frame_space): New.
2681         (struct rtl_data): Add FRAME_SPACE_LIST member.
2682         * reload1.c (something_was_spilled): New static variable.
2683         (alter_reg): Set it.
2684         (reload): Test it in addition to testing if the frame size changed.
2685
2686 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
2687
2688         * config/s390/s390.c: Define sane prefetch settings and activate
2689         flag_prefetch_loop_arrays on -O3.
2690         * config/s390/s390.h: Declare that read can use write prefetch.
2691
2692 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
2693
2694         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
2695         build.
2696
2697 2010-05-16  Jan Hubicka  <jh@suse.cz>
2698
2699         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
2700         function body; do not check stdarg field of struct function.
2701
2702 2010-05-16  Jan Hubicka  <jh@suse.cz>
2703
2704         * cgraph.c (dump_cgraph_node): Dump versionable flag.
2705         * cgraph.h (cgraph_local_info): Add versionable flag.
2706         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
2707         (ipcp_versionable_function_p): Use it.
2708         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
2709         versionable flag.
2710
2711 2010-05-16  Jan Hubicka  <jh@suse.cz>
2712
2713         * cgraph.c (cgraph_clone_node): Take decl argument and insert
2714         clone into hash when it is different from orig.
2715         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
2716         * cgraph.h (cgraph_clone_node): Update prototype.
2717         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
2718         (lto_cgraph_encoder_delete): Delete body map.
2719         (lto_cgraph_encoder_size): Move to header.
2720         (lto_cgraph_encoder_encode_body_p,
2721         lto_set_cgraph_encoder_encode_body): New.
2722         (lto_output_node): Do not take written_decls argument; output clone_of
2723         pointer.
2724         (add_node_to): Add include_body_argument; call
2725         lto_set_cgraph_encoder_encode_body on master of the clone.
2726         (add_references): Update use of add_node_to.
2727         (compute_ltrans_boundary): Likewise.
2728         (output_cgraph): Do not create written_decls bitmap.
2729         (input_node): Take nodes argument; stream in clone_of correctly.
2730         (input_cgraph_1): Update use of input_node.
2731         * lto-streamer-out.c (lto_output): Use encoder info to decide
2732         what bodies to output.
2733         * ipa-inline.c (cgraph_clone_inlined_nodes,
2734         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
2735         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
2736         (lto_cgraph_encoder_size): Define here.
2737         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
2738         Declare.
2739
2740 2010-05-16  Richard Guenther  <rguenther@suse.de>
2741
2742         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
2743         -fipa-type-escape.
2744         * ipa-type-escape.c (gate_type_escape_vars): Run when
2745         -fipa-struct-reorg runs.
2746         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
2747         * common.opt (fipa-type-escape): Remove.
2748
2749 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
2750
2751         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
2752         (decode_options): Likewise.
2753         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
2754
2755 2010-05-16  Jan Hubicka  <jh@suse.cz>
2756
2757         * ipa.c (function_and_variable_visibility): Also bring local all
2758         aliases.
2759
2760 2010-05-16  Richard Guenther  <rguenther@suse.de>
2761
2762         * alias.c (nonoverlapping_memrefs_p): Remove use of
2763         IPA type-escape information.
2764
2765 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
2766
2767         * c-common.c (c_common_reswords): Add _Static_assert for C.
2768         * c-parser.c (c_token_starts_declaration,
2769         c_parser_next_token_starts_declaration,
2770         c_parser_static_assert_declaration_no_semi,
2771         c_parser_static_assert_declaration): New.
2772         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
2773         Handle static assertions if static_assert_ok.
2774         (c_parser_external_declaration, c_parser_declaration_or_fndef,
2775         c_parser_compound_statement_nostart, c_parser_label,
2776         c_parser_for_statement, c_parser_objc_methodprotolist,
2777         c_parser_omp_for_loop): All callers of
2778         c_parser_declaration_or_fndef changed.
2779         (c_parser_struct_declaration): Handle static assertions.
2780         (c_parser_compound_statement_nostart): Use
2781         c_parser_next_token_starts_declaration and
2782         c_token_starts_declaration to detect start of declarations.
2783         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
2784         Likewise.
2785
2786 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
2787
2788         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
2789         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
2790         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2791         TARGET_FUNCTION_VALUE_REGNO_P): Define.
2792         (mmix_function_outgoing_value): Rename to...
2793         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
2794         (mmix_function_value_regno_p): Make static.
2795         (mmix_libcall_value): New function.
2796         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
2797         mmix_function_value_regno_p): Remove declaration.
2798
2799 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
2800
2801         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
2802         BUILT_IN_ALLOCA if stack checking is enabled.
2803
2804 2010-05-16  Richard Guenther  <rguenther@suse.de>
2805
2806         * var-tracking.c (vars_copy_1): Inline ...
2807         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
2808         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
2809         (variable_merge_over_cur): Adjust.  Merge asserts.
2810         (variable_merge_over_src): Likewise.
2811         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
2812         (variable_post_merge_new_vals): Merge asserts.
2813         (variable_post_merge_perm_vals): Likewise.
2814         (find_mem_expr_in_1pdv): Likewise.
2815         (dataflow_set_different_value): Remove.
2816         (onepart_variable_different_p): Merge asserts.
2817         (variable_different_p): Likewise.
2818         (dataflow_set_different_1): Inline ...
2819         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
2820         (emit_notes_for_differences_1): Merge asserts.
2821
2822 2010-05-16  Richard Guenther  <rguenther@suse.de>
2823
2824         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
2825         * optabs.c (libfunc_decl_hash): Likewise.
2826         * varasm.c (emutls_decl): Likewise.
2827
2828 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
2829
2830         * c-decl.c: Don't include gimple.h.
2831         (merge_decls): Do not copy gimple_body.
2832
2833 2010-05-15  Jason Merrill  <jason@redhat.com>
2834
2835         * c.opt: Add -fnothrow-opt.
2836
2837 2010-05-15  Jan Hubicka  <jh@suse.cz>
2838
2839         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
2840         analyzed.
2841         * passes.c (ipa_write_summaries): Write all analyzed nodes.
2842
2843 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
2844
2845         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
2846         * Makefile.in: Add it.
2847         Fix all other Makefile dependencies for changes below.
2848         * tree.h: Include it instead of defining VEC primitives here.
2849         * gimple.h: Likewise.
2850         * rtl.h: Likewise.
2851         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
2852         * except.h: Include vecir.h, break dependence on tree.h.
2853
2854         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
2855         Move from here...
2856         * tree-iterator.c: ...to here.
2857         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
2858
2859         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
2860         tm_p.h.
2861         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
2862         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
2863         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
2864         tree-mudflap.h, and target.h.
2865         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
2866         predict.h, tree-inline.h, gimple.h, and langhooks.h.
2867         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
2868         Add FIXME for why gimple.h is still included (should be unnecessary
2869         since GCC 4.5 gimplification unit-at-a-time).
2870         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
2871         * c-pragma.c: Add FIXME for why function.h needs to be included just
2872         for cfun, at front-end level.
2873         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
2874         Do not include ggc.h, but include vecprim.h for VEC(char).
2875         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
2876         Explain why target.h is included.
2877         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
2878         Explain why gimple.h is included.
2879         * c-ppoutput.c: Do not include tm.h.
2880         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
2881         * c-parses.c: Explain why rtl.h is included, and that this (and only
2882         this) is also why tm.h must be included.
2883         Do not include except.h.
2884         * c-lang.c: Do not include ggc.h.
2885
2886 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
2887
2888         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
2889
2890 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
2891
2892         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
2893         unions by default if those structs and unions have no tags.  Do
2894         not condition anonymous struct and unions handling on flag_iso.
2895         Allow anonymous structs and unions for C1X.
2896         (finish_struct): Do not diagnose lack of named fields when
2897         anonymous structs and unions present for C1X.  Accept flexible
2898         array members in structure with anonymous structs or unions but no
2899         directly named fields.
2900         * doc/extend.texi (Unnamed Fields): Update.
2901
2902 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
2903
2904         * gimple.h (compare_field_offset): Rename into...
2905         (gimple_compare_field_offset): ...this.
2906         * gimple.c (compare_field_offset): Rename into...
2907         (gimple_compare_field_offset): ...this.  Compare the full access if
2908         the offset is self-referential.
2909         (gimple_types_compatible_p): Adjust for above renaming.
2910         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
2911         DECL_NONADDRESSABLE_P flag of fields before merging them.
2912
2913 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
2914
2915         * tree.h (ctor_to_list): Delete.
2916         * tree.c (ctor_to_list): Delete.
2917
2918 2010-05-15  Jan Hubicka  <jh@suse.cz>
2919
2920         * ipa-reference.c: Include toplev.h
2921         (is_proper_for_analysis): Only add to all_module_statics
2922         if it is allocated.
2923         (write_node_summary_p, stream_out_bitmap,
2924         ipa_reference_write_optimization_summary,
2925         ipa_reference_read_optimization_summary): New.
2926         (struct ipa_opt_pass_d pass_ipa_reference): Add
2927         optimization summary streaming.
2928         * lto-cgraph.c (referenced_from_this_partition_p,
2929         reachable_from_this_partition_p): New functions.
2930         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
2931         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
2932         * opts.c (decode_options): Enable ipa_reference.
2933         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
2934         * lto-streamer.h (referenced_from_this_partition_p,
2935         reachable_from_this_partition_p): Declare.
2936
2937 2010-05-15  Richard Guenther  <rguenther@suse.de>
2938
2939         PR tree-optimization/44038
2940         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
2941         taking the address of a V_C_E of a constant.
2942
2943 2010-05-14  Jan Hubicka  <jh@suse.cz>
2944
2945         * tree.h (memory_identifier_string): Remove.
2946         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
2947         (ipa_reference_global_vars_info_d): Remove statics_not_read and
2948         statics_not_written.
2949         (ipa_reference_optimization_summary_d): New structure.
2950         (ipa_reference_optimization_summary_t): New type and vector.
2951         (ipa_reference_vars_info_d): Embedd structures instead of using
2952         pointers.
2953         (reference_vars_to_consider): Remove out of GGC space.
2954         (module_statics_escape): Remove.
2955         (global_info_obstack): Rename to ...
2956         (optimization_summary_obstack): ... this one.
2957         (initialization_status_t): Remove.
2958         (memory_identifier_string): Remove.
2959         (get_reference_vars_info): Fix indenting.
2960         (set_reference_vars_info): Likewise.
2961         (get_reference_optimization_summary): New.
2962         (set_reference_optimization_summary): New.
2963         (get_global_reference_vars_info): Remove.
2964         (ipa_reference_get_read_global): Remove.
2965         (ipa_reference_get_written_global): Remove.
2966         (ipa_reference_get_not_read_global): Update.
2967         (ipa_reference_get_not_written_global): Update.
2968         (is_proper_for_analysis): Outlaw addressable.
2969         (propagate_bits): Update for new datastructures.
2970         (analyze_variable): Remove.
2971         (init_function_info): Update for new datastructures.
2972         (clean_function_local_data): Remove.
2973         (clean_function): Remove.
2974         (copy_global_bitmap): Use optimizations_summary_obstack.
2975         (duplicate_node_data): Duplicate optimization summary only.
2976         (remove_node_data): Remove optimization summary only.
2977         (generate_summary): Do not analyze variables; do not compute
2978         module_statics_escape; do not prune solutions by it.
2979         (read_write_all_from_decl): Fix typos in comments.
2980         (propagate): Doscover readonly and nonaddressable first;
2981         update for new datastructures; share global bitmaps.
2982         * ipa-reference.h (ipa_reference_get_read_global,
2983         ipa_reference_get_written_global): Remove.
2984         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
2985         * Makefile.in: Remove ipa-refereference from GT files.
2986
2987 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
2988
2989         PR debug/44112
2990         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
2991         for all SYMBOL_REF_DECLs.
2992
2993 2010-05-14  Jan Hubicka  <jh@suse.cz>
2994
2995         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
2996         (varpool_all_refs_explicit_p): New inline function.
2997         * ipa-reference.c: Update comment.
2998         (module_statics_written): Remove.
2999         (get_static_decl): Remove.
3000         (ipa_init): Do not initialize module_statics_written.
3001         (analyze_function): Likewise.
3002         (generate_summary): Likewise; do not compute module_statics_readonly
3003         and do not update variable flags.
3004         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
3005         * ipa.c: Inlucde flags.h
3006         (cgraph_local_node_p): New.
3007         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
3008         promote functions to local.
3009         (ipa_discover_readonly_nonaddressable_vars): New function.
3010         (function_and_variable_visibility): Use cgraph_local_node_p.
3011         * varpool.c (varpool_finalize_decl): Set force_output for
3012         DECL_PRESERVE_P vars.
3013
3014 2010-05-14  Jan Hubicka  <jh@suse.cz>
3015
3016         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
3017
3018 2010-05-14  Richard Guenther  <rguenther@suse.de>
3019
3020         PR tree-optimization/44119
3021         * tree-ssa-pre.c (eliminate): Properly mark replacement of
3022         a PHI node necessary.
3023
3024 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
3025
3026         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
3027
3028 2010-05-14  Jason Merrill  <jason@redhat.com>
3029
3030         PR c++/44127
3031         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
3032         (gimple_call_set_nothrow): New.
3033         * gimple.c (gimple_build_call_from_tree): Call it.
3034         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
3035
3036         PR c++/44127
3037         * gimplify.c (gimplify_seq_add_stmt): No longer static.
3038         * gimple.h: Declare it.
3039         * gimple.c (gimple_build_eh_filter): No ops.
3040
3041 2010-05-14  Jan Hubicka  <jh@suse.cz>
3042
3043         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
3044         nodes already in queue.
3045         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
3046         re-enqueueing node.
3047
3048 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
3049
3050         PR debug/44136
3051         * cfgexpand.c (expand_debug_expr): If non-memory op0
3052         has BLKmode, return NULL.
3053
3054 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
3055
3056         * config.gcc: Add support for --with-cpu option for bdver1.
3057         * config/i386/i386.h (TARGET_BDVER1): New macro.
3058         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
3059         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
3060         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
3061         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
3062         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
3063         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
3064         (processor_type): Add PROCESSOR_BDVER1.
3065         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
3066         processor_type in config/i386/i386.h.
3067         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
3068         movaps <reg, reg> instead of movapd <reg, reg> when replacing
3069         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
3070         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
3071         to emit packed xor instead of packed double/packed integer
3072         xor for SSE and AVX when moving a zero value.
3073         * config/i386/sse.md: Add check for
3074         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
3075         movapd/movdqa for SSE and AVX.
3076         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
3077         single logical operations i.e and, or and xor instead of packed double
3078         logical operations for SSE and AVX.
3079         * config/i386/i386-c.c (ix86_target_macros_internal):
3080         Add PROCESSOR_BDVER1.
3081         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
3082         (has_fma4, has_xop): New.
3083         * config/i386/i386.c (bdver1_cost): New variable.
3084         (m_BDVER1): New macro.
3085         (m_AMD_MULTIPLE): Add m_BDVER1.
3086         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
3087         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
3088         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
3089         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
3090         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
3091         x86_tune_sse_partial_reg_dependency,
3092         x86_tune_sse_unaligned_load_optimal,
3093         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
3094         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
3095         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
3096         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
3097         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
3098         Enable/disable for bdver1.
3099         (processor_target_table): Add bdver1_cost.
3100         (cpu_names): Add bdver1.
3101         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
3102          processor_alias_table.
3103         (ix86_expand_vector_move_misalign): Change.
3104         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
3105         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
3106         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
3107         of movupd/movdqu for SSE and AVX.
3108         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
3109         (ix86_tune_adjust_cost): Add code for bdver1.
3110         (standard_sse_constant_opcode): Add check for
3111         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
3112         of packed double xor for SSE and AVX.
3113
3114 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
3115
3116         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
3117         result to unsigned.
3118
3119 2010-05-14  Tristan Gingold  <gingold@adacore.com>
3120
3121         * toplev.c (default_debug_hooks): Remove this variable.
3122         (process_options): Remove assignments to default_debug_hooks.
3123
3124 2010-05-14  Martin Jambor  <mjambor@suse.cz>
3125
3126         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
3127         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
3128         * langhooks.h (struct lang_hooks_for_decls): Removed field
3129         fold_obj_type_ref.
3130         * tree.c (free_lang_data): Remove assignment to
3131         lang_hooks.fold_obj_type_ref.
3132         * tree.def (OBJ_TYPE_REF): Update comment.
3133
3134 2010-05-14  Richard Guenther  <rguenther@suse.de>
3135
3136         PR tree-optimization/44124
3137         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
3138
3139 2010-05-14  Alan Modra  <amodra@gmail.com>
3140
3141         PR target/44075
3142         * config/rs6000/rs6000.c (struct machine_function): Reorder
3143         fields for better packing.  Add lr_save_state.
3144         (rs6000_ra_ever_killed): Return lr_save_state if set.
3145         (rs6000_emit_eh_reg_restore): Set lr_save_state.
3146
3147 2010-05-13  Jan Hubicka  <jh@suse.cz>
3148
3149         * varpool.c (decide_is_variable_needed): Drop code checking
3150         TREE_SYMBOL_REFERENCED.
3151
3152 2010-05-13  Jan Hubicka  <jh@suse.cz>
3153
3154         * final.c (output_addr_const): Do not call mark_decl_referenced.
3155         * cgraphunit.c (process_function_and_variable_attributes): Use
3156         mark_needed_node dirrectly.
3157         (assemble_thunk): Do not call mark_decl_referenced.
3158
3159 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
3160
3161         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
3162
3163 2010-05-13  Jeff Law  <law@redhat.com>
3164
3165         * ira-conflicts.c (print_allocno_conflicts): New function broken out
3166         from...
3167         (print_conflicts): Call print_allocno_conflicts.
3168
3169 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
3170
3171         PR debug/44104
3172         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
3173         if it is NULL.
3174
3175 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
3176
3177         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
3178         t-mingw-w64 or t-mingw-w32 for multilib configuration.
3179         * config/i386/t-mingw-w32: New.
3180         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
3181
3182 2010-05-13  Martin Jambor  <mjambor@suse.cz>
3183
3184         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
3185         gimple-fold.c).
3186         * gimple-fold.c (get_base_binfo_for_type): New function.
3187         (gimple_get_relevant_ref_binfo): Likewise.
3188         (gimple_fold_obj_type_ref_known_binfo): Likewise.
3189         (gimple_fold_obj_type_ref): Likewise.
3190         (fold_gimple_call): Simplify condition for folding virtual calls
3191         and call gimple_fold_obj_type_ref.
3192         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
3193         (gimple_fold_obj_type_ref_known_binfo): Likewise.
3194
3195 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
3196
3197         * config/rs6000/rs6000-protos.h
3198         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
3199         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
3200         (rs6000_debug_mode_dependent_address)
3201         (rs6000_mode_dependent_address_ptr): Likewise.
3202
3203 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
3204
3205         PR debug/43983
3206         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
3207         by SRA.
3208         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
3209         * tree-sra.c (create_access_replacement): Call unshare_expr before
3210         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
3211         * dwarf2out.c: Include tree-flow.h.
3212         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
3213         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
3214         Handle DW_OP_bit_piece.
3215         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
3216         construct_piece_list, adjust_piece_list): New functions.
3217         (add_var_loc_to_decl): Handle SRA optimized variables.
3218         Adjust for var_loc_note to loc field renaming.
3219         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
3220         in VAR_LOCATION note.
3221         (new_loc_descr_op_bit_piece): New function.
3222         (dw_sra_loc_expr): New function.
3223         (dw_loc_list): Use it.  Don't handle the last range after the
3224         loop, handle it inside of the loop.  Adjust for var_loc_note
3225         to loc field renaming.
3226         (add_location_or_const_value_attribute): Only special case
3227         single entry loc lists if loc is NOTE_P.  Adjust for
3228         var_loc_note to loc field renaming.
3229         (dwarf2out_var_location): Don't set newloc->var_loc_note
3230         and newloc->next here.
3231
3232 2010-05-12  Jan Hubicka  <jh@suse.cz>
3233
3234         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
3235         flag.
3236         * cgraph.h (cgraph_only_called_directly_p,
3237         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
3238         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
3239         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
3240         (assemble
3241         * ipa.c (cgraph_remove_unreachable_nodes): Use
3242         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
3243         flags.
3244         * tree-inline.c (copy_bb): Check address_taken flag.
3245         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
3246         externally_visible flag.
3247
3248 2010-05-12  Jason Merrill  <jason@redhat.com>
3249
3250         PR bootstrap/44048
3251         PR target/44099
3252         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
3253         * sdbout.c (plain_type_1): Likewise.
3254         * dwarf2out.c (is_base_type): Likewise.
3255         (gen_type_die_with_usage): Likewise.  Generate
3256         DW_TAG_unspecified_type for any LANG_TYPE.
3257
3258 2010-05-12  Jan Hubicka  <jh@suse.cz>
3259
3260         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
3261         indrect edges too.
3262         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
3263         (cgraph_clone_edge): Update.
3264         (cgraph_node_remove_callees): Remove indirect calls too.
3265         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
3266         (cgraph_create_indirect_edge): Update prototype.
3267         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
3268         is_proper_for_analysis.
3269         (add_new_function, visited_nodes, function_insertion_hook_holder,
3270         get_local_reference_vars_info, mark_address_taken, mark_address,
3271         mark_load, mark_store, check_asm_memory_clobber, check_call,
3272         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
3273         (ipa_init): Do not initialize visited_nodes;
3274         function_insertion_hook_holder.
3275         (analyze_variable): Rewrite.
3276         (analyze_function): Rewrite.
3277         (copy_local_bitmap): Remove.
3278         (duplicate_node_dat): Do not duplicate local info.
3279         (generate_summary): Simplify to only walk cgraph.
3280         (write_node_summary_p, ipa_reference_write_summary,
3281         ipa_reference_read_summary): Remove.
3282         (propagate): Do not remove function insertion;
3283         generate summary.
3284         (pass_ipa_reference): NULLify summary handling fields.
3285         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
3286         (input_edge): Input ecf_flags.
3287         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
3288         (update_indirect_edges_after_inlining): Ignore edges with unknown
3289         param.
3290
3291 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
3292
3293         * implicit-zee.c: New file.
3294         * tree-pass.h (pass_implicit_zee): Declare.
3295         * passes.c (init_optimization_passes): Add zee pass.
3296         * common.opt (fzee): New flag.
3297         * timevar.def (TV_ZEE): Define.
3298         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
3299         and beyond.
3300         * Makefile.in (implicit-zee.o): Add new build file.
3301
3302 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
3303             Nathan Froyd  <froydnj@codesourcery.com>
3304
3305         * c-common.c (sync_resolve_params): Remove write-only variable.
3306
3307 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
3308
3309         * target.h (struct gcc_target): Add mode_dependent_address_p field.
3310         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
3311         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
3312         * targhooks.c (default_mode_dependent_address_p): New function.
3313         * targhooks.h (default_mode_dependent_address_p): Declare function.
3314         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
3315         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
3316         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
3317         target hook. Change return type to bool.
3318         * recog.h (mode_dependent_address_p): Change return type to bool.
3319
3320 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
3321             Nathan Froyd  <froydnj@codesourcery.com>
3322
3323         * tree-mudflap.c (build_function_type_0, build_function_type_1,
3324         build_function_type_2, build_function_type_3): Remove.
3325         (mudflap_init): Use build_function_type_list.
3326
3327 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
3328             Nathan Froyd  <froydnj@codesourcery.com>
3329
3330         * coverage.c (build_fn_info_value): Call build_constructor instead of
3331         build_constructor_from_list.
3332         (build_ctr_info_value): Likewise.
3333         (build_gcov_info): Likewise.
3334
3335 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
3336
3337         * tree.c (build_constructor): Compute TREE_CONSTANT for the
3338         resultant constructor.
3339         (build_constructor_single): Don't set TREE_CONSTANT.
3340         (build_constructor_from_list): Don't compute TREE_CONSTANT.
3341
3342 2010-05-12  Jan Hubicka  <jh@suse.cz>
3343
3344         * cgraph.h (struct varpool_node): Add aux.
3345         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
3346         * varpool.c (varpool_remove_node): Do not remove initializer.
3347         (varpool_reset_queue): Export.
3348         (varpool_finalize_decl): Volatile vars are forced to be output.
3349         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
3350         replaced decl.
3351         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
3352         process_references, varpool_can_remove_if_no_refs): New functions.
3353         (cgraph_remove_unreachable_nodes): Handle variables too.
3354
3355 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
3356
3357         PR target/44088
3358         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
3359
3360 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
3361
3362         PR middle-end/44085
3363         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
3364         change value of ORT_TASK.
3365         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
3366         (omp_notice_threadprivate_variable): New function.
3367         (omp_notice_variable): Call it for threadprivate variables.
3368         If enclosing ctx is a task, print enclosing task rather than
3369         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
3370         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
3371         if task has untied clause.
3372
3373         PR debug/42278
3374         * dwarf2out.c (base_type_die): Don't add name attribute here.
3375         (modified_type_die): Instead of sizetype use
3376         its underlying original type.  If a DW_TAG_base_type doesn't
3377         have name added, add __unknown__.
3378         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
3379         always call force_type_die instead.
3380
3381 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
3382
3383         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
3384         for __stack_chk_guard.
3385
3386 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
3387
3388         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
3389         don't call start_source_file debug hook here...
3390         (finish_options): ... but here, after outputting predefined and
3391         command line defines and undefs.
3392
3393         PR middle-end/44071
3394         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
3395         no fallthru edge.
3396         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
3397         optimizing away empty bb with no successors, move over its
3398         footer chain to fallthru predecessor.
3399         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
3400         (rtl_split_edge): For asm goto call patch_jump_insn even if
3401         splitting fallthru edge.
3402
3403         PR c++/44059
3404         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
3405         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
3406         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
3407         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
3408         on DW.ref.* decls.
3409
3410         PR c++/44062
3411         * c-parser.c (c_parser_expression): Mark LHS of a comma
3412         expression as read if it is a decl, handled component or
3413         COMPOUND_EXPR with that on the RHS.
3414         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
3415         if it is a decl or handled component.
3416
3417 2010-05-11  Jan Hubicka  <jh@suse.cz>
3418
3419         * lto-symtab.c (lto_symtab_free): New function.
3420         * lto-streamer.h (lto_symtab_free): Declare.
3421
3422 2010-05-11  Jan Hubicka  <jh@suse.cz>
3423
3424         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
3425         that if function is needed it is reachable.
3426         (lto_output_node): See if it the function is reachable or referenced.
3427         (output_cgraph): Update call of lto_output_node.
3428         * lto-streamer.h (reachable_from_other_partition_p): Declare.
3429
3430 2010-05-11  Jan Hubicka  <jh@suse.cz>
3431
3432         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
3433         Mark as used.
3434
3435 2010-05-11  Jan Hubicka  <jh@suse.cz>
3436
3437         PR tree-optimize/44063
3438         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
3439         queue.
3440         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
3441         limits.
3442         (estimate_function_body_sizes): Compute sizes even when disregarding.
3443
3444 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
3445
3446         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
3447
3448 2010-05-11  Jan Hubicka  <jh@suse.cz>
3449
3450         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
3451         into every boundary.
3452
3453 2010-05-11  Jan Hubicka  <jh@suse.cz>
3454
3455         * matrix-reorg.c (matrix_reorg): Rebuild edges.
3456
3457 2010-05-11  Jan Hubicka  <jh@suse.cz>
3458
3459         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
3460         lto_streamer_cache_delete): Put nodes into heap.
3461         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
3462         heap.
3463
3464 2010-05-11  Jan Hubicka  <jh@suse.cz>
3465
3466         * cgraphbuild.c (cgraph_rebuild_references): New.
3467         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
3468         out extern inlines.
3469         * cgraph.h (cgraph_rebuild_references): Declare.
3470         * tree-inline.c (tree_function_versioning): Use it.
3471         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
3472
3473 2010-05-11  Jan Hubicka  <jh@suse.cz>
3474
3475         * cgraph.c: Include ipa-utils.h
3476         (cgraph_create_virtual_clone): Update references.
3477         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
3478
3479 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
3480
3481         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
3482         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
3483         cache size.
3484
3485 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
3486
3487         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
3488
3489 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
3490
3491         * gcc.c (execute): For -### don't quote arguments that
3492         contain just alphanumerics and _/-. characters.
3493         * doc/invoke.texi: Document that change for -###.
3494
3495         PR debug/44023
3496         * df-problems.c (struct dead_debug): Add to_rescan field.
3497         (dead_debug_init): Clear to_rescan field.
3498         (dead_debug_finish): Rescan all debug insns in to_rescan
3499         bitmap and free the bitmap.
3500         (dead_debug_insert_before): Instead of rescanning debug insns
3501         immediately queue their rescanning until dead_debug_finish.
3502         (df_note_bb_compute): After dead_debug_add do continue instead
3503         of break.
3504
3505 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
3506
3507         PR debug/44028
3508         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
3509         clear also INSN_REG_USE_LIST.
3510
3511 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3512
3513         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
3514
3515 2010-05-10  Jan Hubicka  <jh@suse.cz>
3516
3517         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
3518         commited change.
3519
3520 2010-05-10  Jan Hubicka  <jh@suse.cz>
3521
3522         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
3523         Allocate encoders.
3524         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
3525         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
3526         (lto_streamer_cache_create): Init alloc pool.
3527         (lto_streamer_cache_delete): Free alloc pool.
3528         * lto-streamer.h: Include alloc pool.
3529         (lto_streamer_cache_d): Use alloc pool.
3530         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
3531
3532 2010-05-10  Jan Hubicka  <jh@suse.cz>
3533
3534         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
3535         * cgraphbuild.c: Include except.h
3536         (record_type_list, record_eh_tables): New function.
3537         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
3538
3539 2010-05-10  Jan Hubicka  <jh@suse.cz>
3540
3541         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
3542         __frame_dummy_init_array_entry, force_to_data): Attribute as used
3543         rather than unused.
3544
3545 2010-05-10  Michael Matz  <matz@suse.de>
3546
3547         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
3548         (can_reassociate_p): Use FLOAT_TYPE_P.
3549         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
3550         (vect_force_simple_reduction): ... this.
3551         * tree-parloops.c (gather_scalar_reductions): Use
3552         vect_force_simple_reduction.
3553         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
3554         vect_is_simple_reduction, add modify argument, if true rewrite
3555         "a-b" into "a+(-b)".
3556         (vect_is_simple_reduction, vect_force_simple_reduction): New
3557         functions.
3558         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
3559
3560 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
3561             Vladimir Makarov  <vmakarov@redhat.com>
3562
3563         PR rtl-optimization/44012
3564         * ira-build.c (remove_unnecessary_allocnos): Nullify
3565         regno_allocno_map of the removed allocno.
3566
3567 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3568
3569         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
3570         to /dev/null.
3571         * configure: Regenerate.
3572
3573 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3574
3575         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
3576         unused.
3577         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
3578         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
3579         support in Sun ld.
3580         * configure: Regenerate.
3581
3582 2010-05-10  Richard Guenther  <rguenther@suse.de>
3583
3584         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
3585         marked if the entry identifier is marked.
3586
3587 2010-05-10  Richard Guenther  <rguenther@suse.de>
3588
3589         * c-common.c (struct c_common_attributes): Add fnspec attribute.
3590         (handle_fnspec_attribute): New function.
3591         * gimple.h (gimple_call_return_flags): Declare.
3592         (gimple_call_arg_flags): Likewise.
3593         * gimple.c (gimple_call_arg_flags): New function.
3594         (gimple_call_return_flags): Likewise.
3595         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
3596         New argument flags.
3597         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
3598         return value flags.
3599         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
3600         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
3601         main work to ...
3602         (make_heapvar_for): ... this new function.
3603         (handle_rhs_call): Handle fnspec attribute argument specifiers.
3604         (handle_lhs_call): Likewise.
3605         (find_func_aliases): Adjust.
3606
3607 2010-05-10  Richard Guenther  <rguenther@suse.de>
3608
3609         PR tree-optimization/44050
3610         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
3611
3612 2010-05-10  Wei Guozhi  <carrot@google.com>
3613
3614         PR target/42879
3615         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
3616
3617 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
3618
3619         PR c/10676
3620         * c-typeck.c (lookup_field): Take a type directly.  Update
3621         recursive calls.
3622         (build_component_ref): Update call to lookup_field.
3623         (set_init_label): Use lookup_field to find initialized field.
3624         Handle returned list of fields like a sequence of designators.
3625
3626 2010-05-09  Richard Guenther  <rguenther@suse.de>
3627
3628         PR middle-end/44024
3629         * fold-const.c (tree_single_nonzero_warnv_p): Properly
3630         handle &FUNCTION_DECL.
3631
3632 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
3633
3634         PR c/4784
3635         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
3636         structures and unions recursively.
3637         (detect_field_duplicates): Move duplicate detection with a hash to
3638         detect_field_duplicates_hash.  Always use a hash if anonymous
3639         structures or unions are present.
3640         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
3641         give errors.
3642
3643 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
3644
3645         PR target/44046
3646         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
3647         detect Atom, Core 2 and Core i7.
3648
3649 2010-05-09  Richard Guenther  <rguenther@suse.de>
3650
3651         * gcc.c (store_arg): Handle temporary file deletion for
3652         joined arguments.
3653
3654 2010-05-09  Richard Guenther  <rguenther@suse.de>
3655
3656         PR middle-end/44043
3657         * ipa-inline.c (estimate_function_body_sizes): Return after
3658         disregarding inline limits.
3659
3660 2010-05-09  Richard Guenther  <rguenther@suse.de>
3661
3662         * gcc.c (store_arg): Revert last change.
3663
3664 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
3665
3666         PR middle-end/28685
3667         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
3668         (optimize_ops_list): Call it.
3669
3670 2010-05-08  Richard Guenther  <rguenther@suse.de>
3671
3672         PR tree-optimization/44030
3673         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
3674         NECESSARY flag if we propagate from a inserted expression.
3675
3676 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
3677
3678         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
3679         domain types as equal if they are both PLACEHOLDER_EXPRs.
3680
3681 2010-05-08  Richard Guenther  <rguenther@suse.de>
3682
3683         * lto-wrapper.c (run_gcc): Remove linker output from
3684         command line for LTRANS invocation.
3685
3686 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
3687
3688         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3689         lto-macho as lto_binary_reader.
3690         * target.h (struct gcc_target): New hooks lto_start and lto_end.
3691         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
3692         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
3693         in lto_start and lto_end calls.
3694         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
3695         magic numbers.
3696         (scan_prog_file): Update is_elf_or_coff call.
3697         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
3698
3699         * collect2.c (main): Fix enum comparison.
3700
3701         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
3702         Add prototypes.
3703         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
3704         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
3705         and TARGET_ASM_LTO_END.
3706         * darwin.c: Include obstack.h and lto-streamer.h.
3707         (lto_section_names_offset, lto_section_names_obstack,
3708         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
3709         global variables.
3710         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
3711         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
3712         to a temporary file.
3713         (darwin_asm_lto_end): New function.  Restore asm_out_file.
3714         (darwin_asm_named_section): For LTO sections, replace the name with
3715         the offset of the section name in a string table, and build this
3716         table.
3717         (darwin_file_start): Initialize global vars for LTO support.
3718         (darwin_file_end): If output to asm_out_file was redirected, append it
3719         to the proper asm_out_file here.  Add the section names section.
3720
3721 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
3722
3723         * c-pragma.c (pending_weak_d, pending_weak): New.
3724         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
3725         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
3726         handle_pragma_weak): Update the uses of pending_weaks.
3727
3728 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3729
3730         PR documentation/44016
3731         * doc/standards.texi (Standards): Link to unversioned
3732         cxx0x_status.html page.
3733
3734 2010-05-07  Iain Sandoe <iains@gcc.gnu.org>
3735
3736         PR target/43708
3737         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
3738         in addition to TREE_USED, to avoid "set but unused" warnings.
3739
3740 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
3741
3742         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
3743         (is_loop_prefetching_profitable): Do not insert prefetches
3744         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
3745         times the prefetch ahead distance.
3746
3747 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
3748
3749         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
3750         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
3751         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
3752         the unroll_factor.
3753
3754 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
3755
3756         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
3757         a diagnostic info when the insn-to-mem ratio is too small.
3758
3759 2010-05-07  Richard Guenther <rguenther@suse.de>
3760
3761         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
3762         the linker plugin.
3763         (store_arg): Queue temp_filename for deletion instead of
3764         the whole argument.
3765
3766 2010-05-07  Richard Guenther  <rguenther@suse.de>
3767
3768         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
3769         (run_gcc): Handle LTRANS phase invocation.
3770         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
3771
3772 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
3773
3774         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
3775         this is also meaningful on PARM_DECLs and RESULT_DECLs.
3776
3777 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3778
3779         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
3780
3781 2010-05-07  Richard Guenther  <rguenther@suse.de>
3782
3783         PR tree-optimization/44020
3784         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
3785         code when PRE is not yet initialized.
3786
3787 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3788
3789         * config/mips/dbxmdebug.h: Remove.
3790         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
3791
3792 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
3793
3794         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
3795         with null pointer and also warn about ordered comparison of zero with
3796         pointer if -Wextra.
3797
3798 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3799
3800         * graphite-blocking.c
3801         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
3802         * graphite-clast-to-gimple.c
3803         (clast_to_gcc_expression): Same.
3804         (precision_for_value): Same.
3805         (precision_for_interval): Same.
3806         (gcc_type_for_interval): Same.
3807         (graphite_create_new_guard): Same.
3808         (compute_bounds_for_level): Same.
3809         (graphite_create_new_loop_guard): Same.
3810         * graphite-interchange.c
3811         (build_linearized_memory_access): Same.
3812         (pdr_stride_in_loop): Same.
3813         (memory_strides_in_loop_1): Same.
3814         (memory_strides_in_loop): Same.
3815         (extend_scattering): Same.
3816         (psct_scattering_dim_for_loop_depth): Same.
3817         (pbb_number_of_iterations): Same.
3818         * graphite-poly.h
3819         (debug_iteration_domains): Same.
3820         * graphite-ppl.c
3821         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
3822         (ppl_set_inhomogeneous_gmp): Same.
3823         (ppl_strip_loop): Same.
3824         (ppl_lexico_compare_linear_expressions): Same.
3825         (ppl_read_polyhedron_matrix): Same.
3826         (ppl_max_for_le_pointset): Same.
3827         * graphite-ppl.h
3828         (ppl_read_polyhedron_matrix): Same.
3829         (tree_int_to_gmp): Same.
3830         (gmp_cst_to_tree): Same.
3831         (ppl_set_inhomogeneous): Same.
3832         (ppl_set_inhomogeneous_tree): Same.
3833         (ppl_set_coef): Same.
3834         (ppl_set_coef_tree): Same.
3835         * graphite-sese-to-poly.c
3836         (build_pbb_scattering_polyhedrons): Same.
3837         (build_scop_scattering): Same.
3838         (scan_tree_for_params_right_scev): Same.
3839         (scan_tree_for_params): Same.
3840         (find_params_in_bb): Same.
3841         (find_scop_parameters): Same.
3842         (add_upper_bounds_from_estimated_nit): Same.
3843         (build_loop_iteration_domains): Same.
3844         (add_condition_to_domain): Same.
3845         (pdr_add_memory_accesses): Same.
3846
3847 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3848
3849         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
3850         CLooG's value_* macros to their respective mpz_* counterparts.
3851         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
3852         (graphite_create_new_loop_guard): Same.
3853         * graphite-interchange.c (build_linearized_memory_access): Same.
3854         (pdr_stride_in_loop): Same.
3855         (memory_strides_in_loop_1): Same.
3856         (1st_interchange_profitable_p): Same.
3857         * graphite-poly.c (extend_scattering): Same.
3858         (psct_scattering_dim_for_loop_depth): Same.
3859         (pbb_number_of_iterations): Same.
3860         (pbb_number_of_iterations_at_time): Same.
3861         * graphite-poly.h (new_1st_loop): Same.
3862         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
3863         (oppose_constraint): Same.
3864         (insert_constraint_into_matrix): Same.
3865         (ppl_set_inhomogeneous_gmp): Same.
3866         (ppl_set_coef_gmp): Same.
3867         (ppl_strip_loop): Same.
3868         (ppl_lexico_compare_linear_expressions): Same.
3869         (ppl_max_for_le_pointset): Same.
3870         (ppl_min_for_le_pointset): Same.
3871         (ppl_build_realtion): Same.
3872         * graphite-ppl.h (gmp_cst_to_tree): Same.
3873         (ppl_set_inhomogeneous): Same.
3874         (ppl_set_inhomogeneous_tree): Same.
3875         (ppl_set_coef): Same.
3876         (ppl_set_coef_tree): Same.
3877         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
3878         (build_scop_scattering): Same.
3879         (add_value_to_dim): Same.
3880         (scan_tree_for_params_right_scev): Same.
3881         (scan_tree_for_params_int): Same.
3882         (scan_tree_for_params): Same.
3883         (find_params_in_bb): Same.
3884         (find_scop_parameters): Same.
3885         (add_upper_bounds_from_estimated_nit): Same.
3886         (build_loop_iteration_domains): Same.
3887         (create_linear_expr_from_tree): Same.
3888         (add_condition_to_domain): Same.
3889         (pdr_add_memory_accesses): Same.
3890
3891 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
3892             Jason Merrill  <jason@redhat.com>
3893
3894         * c-common.c (c_common_reswords): Add nullptr.
3895         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
3896         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
3897         (gen_type_die_with_usage): Likewise.
3898         * dbxout.c (dbxout_type): Likewise.
3899         * sdbout.c (plain_type_1): Likewise.
3900
3901 2010-05-06  Jason Merrill  <jason@redhat.com>
3902
3903         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
3904         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
3905         ret appropriately.
3906         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
3907
3908         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
3909         stripping WITH_SIZE_EXPR.
3910         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
3911         change.
3912
3913 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3914
3915         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
3916         list of obsolete configurations.
3917         Disabled check for obsolete configurations.
3918         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
3919         Removed support for previous versions.
3920         * config/mips/iris.h: Removed.
3921         * config/mips/iris5.h: Removed.
3922         * config/mips/iris6.h: Merged old iris.h contents.
3923         (TARGET_IRIX): Removed.
3924         (DRIVER_SELF_SPECS): Removed mabi=32.
3925         (IDENT_ASM_OP): Removed undef.
3926         (STARTFILE_SPEC): Removed mabi=32.
3927         (ENDFILE_SPEC): Likewise.
3928         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
3929         (MACHINE_TYPE): Update for IRIX 6.5.
3930         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
3931         TARGET_IRIX by TARGET_IRIX6.
3932         (mips_file_start): Likewise.
3933         (mips_output_external): Remove IRIX 5/6 O32 support.
3934         (mips_output_function_prologue): Likewise.
3935         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
3936         TARGET_IRIX6.
3937         (TARGET_CPU_CPP_BUILTINS): Likewise.
3938         (TARGET_IRIX): Removed.
3939         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
3940         (MULTILIB_DIRNAMES): Removed 32.
3941         (MULTILIB_OSDIRNAMES): Removed ../lib.
3942         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
3943         (Specific, mips-sgi-irix5): Document removal.
3944         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
3945         Remove references to older IRIX 6 releases and the O32 ABI.
3946
3947 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
3948
3949         PR bootstrap/43994
3950         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
3951         instead of DF_REF_REAL_REG.
3952
3953 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
3954
3955         PR target/43888
3956         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
3957         handling to still return true for x64 targets.
3958
3959 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
3960
3961         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
3962
3963 2010-05-06  Jan Hubicka  <jh@suse.cz>
3964
3965         PR tree-optimization/43791
3966         * ipa-inline.c (update_caller_keys): Remove bogus
3967         disregard_inline_limits check.
3968
3969 2010-05-06  Michael Matz  <matz@suse.de>
3970
3971         PR tree-optimization/43984
3972         * tree-ssa-pre.c (inserted_phi_names): Remove.
3973         (inserted_exprs): Change to bitmap.
3974         (create_expression_by_pieces): Set bits, don't append to vector.
3975         (insert_into_preds_of_block): Don't handle inserted_phi_names.
3976         (eliminate): Don't look at inserted_phi_names, remove deleted
3977         insns from inserted_exprs.
3978         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
3979         (init_pre, fini_pre): Allocate and free bitmaps.
3980         (execute_pre): Insert insns on edges before elimination.
3981
3982 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
3983
3984         * tree.c (initializer_zerop): Handle STRING_CST.
3985
3986 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3987
3988         PR 40989
3989         * doc/invoke.texi (Wimplicit): Document as C only.
3990         * opts.c (common_handle_option): Add argument kind.
3991         (handle_option): Rename as read_cmdline_option. Factor out code to...
3992         (handle_option): ... here. New.
3993         (handle_options): Rename as read_cmdline_options.
3994         (decode_options): Update call.
3995         (set_option): Use option index instead of option pointer. Classify
3996         diagnostics correctly.
3997         (enable_warning_as_error): Call handle_option.
3998         * opts.h (set_option): Update declaration.
3999         (handle_option): Declare.
4000         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
4001         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
4002         * c-opts.c (set_Wimplicit): Delete.
4003         (c_family_lang_mask): New static constant.
4004         (c_common_handle_option): Add argument kind. Use handle_option
4005         instead of set_Wimplicit.
4006         (c_common_post_options): warn_implicit and warn_implicit_int
4007         are disabled by default.
4008         * c-common.c (warn_implicit): Do not define here.
4009         * c-common.h (warn_implicit): Do not declare here.
4010         (c_common_handle_option): Update declaration.
4011         * lto-opts.c (lto_reissue_options): Update call to set_option.
4012
4013 2010-05-06  Richard Guenther  <rguenther@suse.de>
4014
4015         PR tree-optimization/43571
4016         * domwalk.c (walk_dominator_tree): Walk the dominator
4017         sons in more optimal order.
4018
4019 2010-05-06  Richard Guenther  <rguenther@suse.de>
4020
4021         PR tree-optimization/43934
4022         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
4023         (stmt_cost): Likewise.
4024         (extract_true_false_args_from_phi): New helper.
4025         (determine_max_movement): For PHI nodes verify we can hoist them
4026         and compute their cost.
4027         (determine_invariantness_stmt): Handle PHI nodes.
4028         (move_computations_stmt): Likewise.  Hoist PHI nodes in
4029         if-converted form using COND_EXPRs.
4030         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
4031         (tree_ssa_lim): Likewise.
4032         * tree-flow.h (tree_ssa_lim): Adjust prototype.
4033         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
4034
4035 2010-05-06  Richard Guenther  <rguenther@suse.de>
4036
4037         PR tree-optimization/43987
4038         * tree-ssa-structalias.c (could_have_pointers): For possibly
4039         address-taken variables force pointers to be recorded.
4040         (create_variable_info_for_1): Likewise.
4041         (push_fields_onto_fieldstack): Pass in wheter all fields
4042         must have pointers.
4043         (find_func_aliases): Query types instead of vars whether
4044         they contain pointers where appropriate.
4045
4046 2010-05-06  Jan Hubicka  <jh@suse.cz>
4047
4048         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
4049         (record_reference, mark_address, mark_load, mark_store): Record
4050         references.
4051         (record_references_in_initializer): Update call of record_references.
4052         (rebuild_cgraph_edges): Remove all references before rebuiding.
4053         * cgraph.c (cgraph_create_node): Clear ref list.
4054         (cgraph_remove_node): Remove references.
4055         (dump_cgraph_node): Dump references.
4056         (cgraph_clone_node): Clone references.
4057         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
4058         (struct cgraph_node, varpool_node): Add ref_lst.
4059         * ipa-ref.c: New file.
4060         * ipa-ref.h: New file.
4061         * ipa-ref-inline.h: New file.
4062         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
4063         (referenced_from_other_partition_p): New function.
4064         (lto_output_varpool_node): Take set arugment; call
4065         referenced_from_other_partition.
4066         (lto_output_ref): New.
4067         (add_references): New.
4068         (output_refs): New.
4069         (output_cgraph): Compute boundary based on references; output refs.
4070         (output_varpool): Accept cgraph_node_set argument.
4071         (input_ref): New.
4072         (input_refs): New.
4073         (input_cgraph): Call input_refs.
4074         * lto-section-in.c (lto_section_name): Add refs.
4075         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
4076         (ipa-ref.o): New file.
4077         * varpool.c (varpool_node): Clear ipa ref list.
4078         (varpool_remove_node): Remove references.
4079         (dump_varpool_node): Dump references.
4080         (varpool_assemble_decl): Only compile finalized ones.
4081         (varpool_extra_name_alias): Initialize ref list.
4082         * lto-streamer.c (lto-get_section_name): Add .refs section.
4083         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
4084         (referenced_from_other_partition_p): Declared.
4085
4086 2010-05-06  Ira Rosen  <irar@il.ibm.com>
4087
4088         PR tree-optimization/43901
4089         * tree-vect-stmts.c (vectorizable_call): Assert that vector
4090         type is not NULL if it's transformation phase, and return
4091         FALSE if it's analysis.
4092         (vectorizable_conversion, vectorizable_operation,
4093         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
4094
4095 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
4096
4097         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
4098         Delete.
4099         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
4100         New define.
4101         * config/mips/mips-protos.h
4102         (mips_small_register_classes_for_mode_p): Delete prototype.
4103
4104 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
4105
4106         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
4107         * config/arm/arm.c (multiple_operation_profitable_p,
4108         compute_offset_order): New static functions.
4109         (load_multiple_sequence, store_multiple_sequence): Use them.
4110         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
4111         memory offsets, not register numbers.
4112         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
4113
4114 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
4115
4116         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
4117         (get_pending_sizes, put_pending_size, put_pending_sizes):
4118         Update the uses of pending_sizes.
4119         * c-decl.c (store_parm_decls): Likewise.
4120         * c-tree.h (struct c_arg_info): Likewise.
4121         * tree.h: Update the prototype for get_pending_sizes and
4122         put_pending_sizes.
4123
4124 2010-05-05  Jason Merrill  <jason@redhat.com>
4125
4126         PR debug/43370
4127         * c-common.c (handle_aligned_attribute): Respect
4128         ATTR_FLAG_TYPE_IN_PLACE.
4129
4130         PR testsuite/43758
4131         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
4132         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
4133         (TARGET_INITIALIZER): Use it.
4134         * c-common.c (attribute_takes_identifier_p): Call it.
4135         * c-common.h: Update prototype.
4136         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
4137         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
4138
4139 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
4140
4141         PR debug/43950
4142         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
4143         DW_ID_down_case for Fortran compilation units.
4144
4145 2010-05-05  Jan Hubicka  <jh@suse.cz>
4146
4147         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
4148         handle aliases.
4149
4150 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
4151
4152         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
4153         a variable-sized RESULT_DECL.
4154
4155 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
4156
4157         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
4158
4159 2010-05-05  Jason Merrill  <jason@redhat.com>
4160
4161         PR c++/43787
4162         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
4163         returns GS_OK.
4164         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
4165
4166 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
4167             Jakub Jelinek  <jakub@redhat.com>
4168
4169         PR debug/43478
4170         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
4171         (dead_debug_init, dead_debug_finish): New functions.
4172         (dead_debug_add, dead_debug_insert_before): Likewise.
4173         (df_note_bb_compute): Initialize a dead_debug object, add dead
4174         debug uses to it, insert debug bind insns before death insns,
4175         reset debug insns that refer to pending uses at the end.
4176         * rtl.h (make_debug_expr_from_rtl): New prototype.
4177         * varasm.c (make_debug_expr_from_rtl): New function.
4178
4179 2010-05-05  Jan Hubicka  <jh@suse.cz>
4180
4181         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
4182         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
4183         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
4184         lto_varpool_encoder_deref, lto_varpool_encoder_size,
4185         lto_varpool_encoder_encode_initializer_p,
4186         lto_set_varpool_encoder_encode_initializer): New functions.
4187         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
4188         call output_varpool.
4189         (input_varpool_node): Do not always set analyzed.
4190         (input_cgraph_1): Return vector of cgraph nodes.
4191         (input_varpool_1): Return vector of varpools.
4192         (input_cgraph): Free the vectors.
4193         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
4194         output only initializers needed.
4195         (lto_output): Only call output_cgraph.
4196         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
4197         * lto-section-out.c (lto_new_out_decl_state): Initialize
4198         state->varpool_node_encoder.
4199         * lto-streamer.h (lto_varpool_encoder_d): New.
4200         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
4201         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
4202         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
4203         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
4204         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
4205         Declare.
4206         (output_varpool, input_varpool): Remove declarations.
4207
4208 2010-05-05  Jan Hubicka  <jh@suse.cz>
4209
4210         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
4211         with body can prevail.
4212
4213 2010-05-05  Jan Hubicka  <jh@suse.cz>
4214
4215         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
4216         size.
4217
4218 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4219
4220         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
4221
4222         * gengtype.h (erro_at_line): Constify pos argument.
4223
4224         * gengtype.c: Include hashtab.h.
4225         (enum gc_used): Document GC_MAYBE_POINTED_TO.
4226         (error_at_line): Constify pos argument.
4227         (do_typedef): Initialize p->opt field.
4228         (get_file_gtfilename): Fix comment typo.
4229         (struct walk_type_data): Constify line field.
4230         (get_output_file_for_structure): New function.
4231         (write_local_func_for_structure): Constify orig_s argument.
4232         Use get_output_file_for_structure.
4233         (write_func_for_structure): Use get_output_file_for_structure.
4234         (INDENT): New define.
4235         (dump_pair, dump_type, dump_type_list, dump_typekind)
4236         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
4237         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
4238         functions.
4239         (seen_types): New variable.
4240         (main): New variable do_dump.  Process "-d" command line option.
4241         Call dump_everything if dump requested.
4242
4243 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
4244
4245         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
4246         in a temporary instead of invoking the macro multiple times.
4247         (track_expr_p): Likewise.
4248
4249 2010-05-04  Neil Vachharajani <nvachhar@google.com>
4250
4251         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
4252         per new semantics.
4253         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
4254         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
4255         conditions for printing notes.
4256         * common.opt (-Wcoverage-mismatch): Allow negative, default to
4257         true, update documentation.
4258         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
4259
4260 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
4261
4262         PR c/43981
4263         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
4264         on dimen.
4265
4266 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
4267
4268         PR target/43799
4269         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
4270         (*sse_prologue_save_insn1): Likewise.
4271         (SSE prologue save splitter): Likewise.
4272
4273 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
4274
4275         * tree.c (free_lang_data_in_one_sizepos): New inline function.
4276         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
4277         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
4278         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
4279         all decls.  Call it on DECL_FIELD_OFFSET of fields.
4280         (find_decls_types_r): Follow DECL_VALUE_EXPR.
4281         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
4282
4283 2010-05-04  Martin Jambor  <mjambor@suse.cz>
4284
4285         * tree-sra.c (build_access_from_expr_1): The first parameter type
4286         changed to simple tree.
4287         (build_access_from_expr): Likewise, gsi parameter was eliminated.
4288         (scan_assign_result): Renamed to assignment_mod_result, enum elements
4289         renamed as well.
4290         (build_accesses_from_assign): Removed all parameters except for a
4291         simple gimple statement.  Now returns a simple bool.
4292         (scan_function): All non-analysis parts moved to separate functions
4293         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
4294         parameters and updated both callers.
4295         (sra_modify_expr): Removed parameter data.
4296         (sra_modify_function_body): New function.
4297         (perform_intra_sra): Call sra_modify_function_body to modify the
4298         function body.
4299         (replace_removed_params_ssa_names): Parameter data changed into
4300         adjustments vector.
4301         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
4302         changed the parameter dont_convert to convert with the opposite
4303         meaning.
4304         (sra_ipa_modify_assign): Parameter data changed into adjustments
4305         vector, return value changed to bool.
4306         (ipa_sra_modify_function_body): New function.
4307         (sra_ipa_reset_debug_stmts): Updated a comment.
4308         (modify_function): Use ipa_sra_modify_function_body to modify function
4309         body.
4310
4311 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
4312
4313         PR middle-end/43671
4314         * alias.c (true_dependence): Handle the same VALUE in x and mem.
4315         (canon_true_dependence): Likewise.
4316         (write_dependence_p): Likewise.
4317
4318 2010-05-04  Jan Hubicka  <jh@suse.cz>
4319
4320         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
4321         * cgraphbuild.c: Include ipa-utils.h
4322         (record_reference_ctx): New struct.
4323         (record_reference): Simplify to work on initializers; not statements.
4324         (mark_address, mark_load, mark_store): New.
4325         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
4326         walk PHI nodes too.
4327         (record_references_in_initializer): Update use of record_reference.
4328         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
4329         walk PHI nodes too.
4330
4331 2010-05-04  Jan Hubicka  <jh@suse.cz>
4332
4333         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
4334         node will be removed anyway.
4335         (lto_varpool_replace_node): Allow also unanalyzed nodes;
4336         relink aliases of node into prevailing node.
4337         * varpool.c (varpool_remove_node): Remove aliases properly;
4338         when removing node, remove all its aliases too; remove DECL_INITIAL
4339         of removed node; ggc_free the varpool node.
4340
4341 2010-05-04  Richard Guenther  <rguenther@suse.de>
4342
4343         PR tree-optimization/43879
4344         * tree-ssa-structalias.c (alias_get_name): Use
4345         DECL_ASSEMBLER_NAME if available.
4346         (create_function_info_for): Return the varinfo node.
4347         (ipa_pta_execute): Associate same-body aliases and extra names
4348         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
4349
4350 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
4351
4352         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
4353
4354 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
4355
4356         PR bootstrap/43964
4357         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
4358         only if HONOR_REG_ALLOC_ORDER is not defined.
4359
4360 2010-05-04  Richard Guenther  <rguenther@suse.de>
4361
4362         PR tree-optimization/43949
4363         * tree-vrp.c (extract_range_from_binary_expr): Only handle
4364         TRUNC_MOD_EXPR.
4365
4366 2010-04-26  Jason Merrill  <jason@redhat.com>
4367
4368         * c.opt (-fstrict-enums): New.
4369         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
4370
4371 2010-05-03  David Ung <davidu@mips.com>
4372             James E. Wilson  <wilson@codesourcery.com>
4373
4374         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
4375         emit the trap instruction before the divide for TUNE_74K.
4376
4377 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
4378
4379         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
4380         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
4381         based on the above, for new target hook.
4382
4383         * hooks.c (hook_bool_mode_true): New generic hook.
4384         * hooks.h (hook_bool_mode_true): Add prototype.
4385
4386         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
4387         target hook.
4388         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
4389         target hook, set to hook_bool_mode_false.
4390         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
4391         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
4392         with targetm.small_register_classes_for_mode_p.
4393         (find_reusable_reload): Likewise.
4394         (combine_reloads): Likewise.
4395         * reload1.c (reload_as_needed): Likewise.
4396         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
4397         * ifcvt.c (noce_process_if_block, check_cond_move_block,
4398         dead_or_predicable): Likewise.
4399         * regmove.c (optimize_reg_copy_1): Likewise.
4400         * calls.c (prepare_call_address): Likewise.
4401         (precompute_register_parameters): Likewise.
4402
4403         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
4404         hook definition.
4405         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
4406         implementation of the hook that considers all register classes
4407         small except for SH64.
4408         (sh_override_options): Use the new hook.
4409         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
4410         Add prototype.
4411
4412         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
4413         hook definition.
4414         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
4415         implementation of the hook that considers all register classes
4416         small for THUMB1.
4417         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
4418         Add prototype.
4419
4420         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
4421         hook definition.
4422         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
4423         implementation of the hook that considers all register classes
4424         small for MIPS16.
4425         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
4426         Add prototype.
4427
4428         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
4429         hook definition.
4430         * config/m32c/m32c.h: Likewise.
4431         * config/pdp11/pdp11.h: Likewise.
4432         * config/avr/avr.h: Likewise.
4433         * config/xtensa/xtensa.h: Likewise.
4434         * config/m68hc11/m68hc11.h: Likewise.
4435         * config/mn10300/mn10300.h: Likewise.
4436         * config/mcore/mcore.h: Likewise.
4437         * config/h8300/h8300.h: Likewise.
4438         * config/bfin/bfin.h: Likewise.
4439
4440         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
4441         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
4442
4443 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
4444
4445         * double-int.h (tree_to_double_int): Remove macro.
4446         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
4447         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
4448         (tree_to_double_int): New function.
4449         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
4450         Move ...
4451         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
4452
4453 2010-05-03  Richard Guenther  <rguenther@suse.de>
4454
4455         PR tree-optimization/43971
4456         * tree-ssa-structalias.c (get_constraint_for_1): Fix
4457         constraints in the !flag_delete_null_pointer_checks case.
4458
4459 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
4460
4461         PR debug/43972
4462         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
4463         result mode matches original rtl mode.
4464
4465 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
4466
4467         PR target/43888
4468         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
4469
4470 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
4471
4472         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
4473         when processing flag options.
4474
4475 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
4476
4477         * gcov-iov.c (main): Change format string placeholder
4478         from %#08x to 0x%08x.
4479         * genchecksum.c (dosum): Change format string placeholder
4480         from %#02x to 0x%02x.
4481
4482 2010-05-02  Richard Guenther  <rguenther@suse.de>
4483
4484         PR tree-optimization/43879
4485         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
4486
4487 2010-05-02  Bruno Haible  <bruno@clisp.org>
4488
4489         * doc/extend.texi (Function Attributes): Fix a typo.
4490
4491 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
4492
4493         Revert:
4494         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
4495         placeholder from 0x%x to %#x.
4496         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
4497         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
4498         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
4499         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
4500         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
4501         * config/i386/i386.c (ix86_target_string): Ditto.
4502         * config/i386/i386.c (output_pic_addr_const): Ditto.
4503         (print_operand): Ditto.
4504
4505 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
4506
4507         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
4508         placeholder from 0x%x to %#x.
4509         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
4510         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
4511         (ASM_OUTPUT_DEBUG_DATA): Ditto.
4512         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
4513         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
4514         * optc-gen.awk: Ditto.
4515         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
4516         (HOST_WIDE_INT_PRINT_HEX): Ditto.
4517         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
4518         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
4519
4520 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
4521
4522         * target.h (struct calls): Add function_value_regno_p field.
4523         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
4524         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
4525         * targhooks.c (default_function_value_regno_p): New function.
4526         * targhooks.h (default_function_value_regno_p): Declare function.
4527         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
4528         * builtins.c. (apply_result_size): (Ditto.).
4529         * combine.c. (likely_spilled_retval_p): (Ditto.).
4530         * mode-switching.c. Include 'target.h'.
4531         (create_pre_exit): Use function_value_regno_p hook.
4532         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
4533         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
4534         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
4535
4536         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
4537         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
4538         (ix86_function_value_regno_p): Declare as static, change argument
4539         type to const unsigned int.
4540         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
4541
4542 2010-05-01  Richard Guenther  <rguenther@suse.de>
4543
4544         PR tree-optimization/43949
4545         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
4546         types.
4547         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
4548
4549 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
4550
4551         * rtl.h (CONST_DOUBLE_P): Define.
4552         (rtx_to_double_int): Declare.
4553         * emit-rtl.c (rtx_to_double_int): New function.
4554         * dwarf2out.c (insert_double): New function.
4555         (loc_descriptor, add_const_value_attribute): Clean up, use
4556         rtx_to_double_int and insert_double functions.
4557
4558 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
4559
4560         * doc/extend.texi (Inline): Add missing return keyword to examples.
4561         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
4562         "command-line".
4563
4564 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
4565
4566         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
4567         the variable part of the offset as well.  Use highest_pow2_factor for
4568         all alignment checks.
4569
4570 2010-04-30  Richard Guenther  <rguenther@suse.de>
4571
4572         PR tree-optimization/43879
4573         * tree-ssa-structalias.c (type_could_have_pointers): Functions
4574         can have pointers.
4575
4576 2010-04-30  Jan Hubicka  <jh@suse.cz>
4577
4578         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
4579         varpool.
4580         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
4581
4582 2010-04-30  Jan Hubicka  <jh@suse.cz>
4583
4584         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
4585         New.
4586         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
4587         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
4588         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
4589         cgraph_node_set_needs_ltrans_p): Remove.
4590
4591 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
4592
4593         * sdbout.c: Include vec.h, do not include varray.h.
4594         (deferred_global_decls, sdbout_global_decl,
4595         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
4596         * toplev.c: Do not include varray.h.
4597         (dump_memory_report): Do not dump VARRAY statistics.
4598         * gengtype.c (open_base_file): Ignore varray.h.
4599         * Makefile.in: Update for abovementioned changes.
4600         Remove all traces of varray.c and varray.h.
4601         * varray.c: Remove file.
4602         * varray.h: Remove file.
4603
4604 2010-04-30  Jan Hubicka  <jh@suse.cz>
4605
4606         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
4607         references.
4608
4609 2010-04-30  Jan Hubicka  <jh@suse.cz>
4610
4611         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
4612         needed.
4613
4614 2010-04-30  Richard Guenther  <rguenther@suse.de>
4615
4616         * tree-ssa-structalias.c (get_constraint_for_1): Generate
4617         constraints for CONSTRUCTOR.
4618
4619 2010-04-30  Richard Guenther  <rguenther@suse.de>
4620
4621         PR lto/43946
4622         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
4623         first after all lowering passes.
4624
4625 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
4626
4627         * toplev.c: Include varray.h for statistics dumping.
4628         * tree.h: Do not declare varray_head_tag.
4629         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
4630         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
4631         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
4632         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
4633         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
4634         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
4635         c-common.c, c-common.h, reg-stack.c, basic-block.h,
4636         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
4637         include varray.h.
4638         * Makefile.in: Update for abovementioned changes.
4639
4640 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
4641
4642         PR debug/43942
4643         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
4644
4645 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
4646
4647         * config/picochip/picochip.c (picochip_legitimize_address): Define.
4648         Use this function to do machine-specific conversion.
4649         (picochip_legitimize_reload_address): Likewise.
4650         (picochip_legitimate_address_p): Check valid base register only if
4651         strict.
4652         (picochip_check_conditional_copy): Check for modw only if opnd is
4653         register.
4654         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
4655         to call the function in c.
4656         * config/picochip/picochip-protos.h
4657         (picochip_legitimize_reload_address): Define.
4658         * config/picochip/picochip.md (supported_compare1): Define.
4659
4660 2010-04-30  Jan Hubicka  <jh@suse.cz>
4661
4662         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
4663         (cgraph_global_info): Remove inlined.
4664         (LTO_cgraph_tag_names): Remove.
4665         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
4666         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
4667         simplify cgraph tags and document.
4668         (lto_output_node): Use only LTO_cgraph_unavail_node and
4669         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
4670         for_functions_valid, global info, process and output flags.
4671         (input_overwrite_node): Initialize estimated stack size and
4672         estimated growth.  Do not read flags we no longer store.
4673         (input_node): Likewise do not read info no longer stored.
4674         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
4675         flag.
4676
4677 2010-04-30  Richard Guenther  <rguenther@suse.de>
4678
4679         PR tree-optimization/43879
4680         * tree-ssa-structalias.c (get_constraint_for_1): Properly
4681         handle non-zero initializers.
4682
4683 2010-04-30  Richard Guenther  <rguenther@suse.de>
4684
4685         * builtins.c (fold_builtin_1): Delete free (0).
4686
4687 2010-04-29  Jan Hubicka  <jh@suse.cz>
4688
4689         * gengtype.c (open_base_files): Add lto-streamer.h
4690         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
4691         (pass_ipa_cp): GGC collect.
4692         * toplev. (compile_file): Do not output symbols.
4693         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
4694         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
4695         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
4696         * lto-section-in.c: Include ggc.h
4697         (lto_new_in_decl_state): Alloc in GGC.
4698         (lto_delete_in_decl_state): Likewise.
4699         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
4700         Collect.
4701
4702 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
4703
4704         PR target/42895
4705         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
4706         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
4707         (HONOR_REG_ALLOC_ORDER): Describe new macro.
4708         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
4709         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
4710         account only if HONOR_REG_ALLOC_ORDER is not defined.
4711         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
4712         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
4713
4714 2010-04-29  Jon Grant  <04@jguk.org>
4715
4716         * collect2.c (vflag): Change type from int to bool.
4717         (debug): Likewise.
4718         (helpflag): New global bool.
4719         (main): Set vflag and debug with boolean, not integer truth values.
4720         Accept new "--help" option and output usage text if found.
4721         * collect2.h (vflag): Update prototype.
4722         (debug): Likewise.
4723
4724 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
4725
4726         PR bootstrap/43936
4727         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
4728
4729 2010-04-29  Richard Guenther  <rguenther@suse.de>
4730
4731         PR bootstrap/43935
4732         * plugin.h (invoke_plugin_callbacks): Annotate arguments
4733         with ATTRIBUTE_UNUSED.
4734
4735 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
4736
4737         PR target/43921
4738         * config/i386/i386.c (get_some_local_dynamic_name): Replace
4739         INSN_P with NONDEBUG_INSN_P.
4740         (distance_non_agu_define): Likewise.
4741         (distance_agu_use): Likewise.
4742
4743 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
4744
4745         From Dominique d'Humieres <dominiq@lps.ens.fr>
4746         PR bootstrap/43858
4747         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
4748         test_set.
4749
4750 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
4751
4752         * plugin.h (invoke_plugin_callbacks): New inline function.
4753         * plugin.c (flag_plugin_added): New global flag.
4754         (add_new_plugin): Initialize above flag.
4755         (invoke_plugin_callbacks): Rename to ...
4756         (invoke_plugin_callbacks_full): ... this.
4757
4758 2010-04-28  Jan Hubicka  <jh@suse.cz>
4759
4760         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
4761         (lto_varpool_replace_node): New.
4762         (lto_symtab_resolve_symbols): Resolve varpool nodes.
4763         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
4764         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
4765         * cgraph.h (varpool_node_ptr): New type.
4766         (varpool_node_ptr): New vector.
4767         (varpool_node_set_def): New structure.
4768         (varpool_node_set): New type.
4769         (varpool_node_set): New vector.
4770         (varpool_node_set_element_def): New structure.
4771         (varpool_node_set_element, const_varpool_node_set_element): New types.
4772         (varpool_node_set_iterator): New type.
4773         (varpool_node): Add prev pointers, add used_from_other_partition,
4774         in_other_partition.
4775         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
4776         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
4777         varpool_get_node, varpool_remove_node): Declare.
4778         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
4779         varpool_node_set_size): New inlines.
4780         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
4781         * tree-pass.h (varpool_node_set_def): Forward declare.
4782         (ipa_opt_pass_d): Summary writting takes vnode sets too.
4783         (ipa_write_optimization_summaries): Update prototype.
4784         * ipa-cp.c (ipcp_write_summary): Update.
4785         * ipa-reference.c (ipa_reference_write_summary): Update.
4786         * lto-cgraph.c (lto_output_varpool_node): New static function.
4787         (output_varpool): New function.
4788         (input_varpool_node): New static function.
4789         (input_varpool_1): New function.
4790         (input_cgraph): Input varpool.
4791         * ipa-pure-const.c (pure_const_write_summary): Update.
4792         * lto-streamer-out.c (lto_output): Update, output varpool too.
4793         (write_global_stream): Kill WPA hack.
4794         (produce_asm_for_decls): Update.
4795         (output_alias_pair_p): Handle variables.
4796         (output_unreferenced_globals): Output only needed partition of varpool.
4797         * ipa-inline.c (inline_write_summary): Update.
4798         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
4799         cgraph.
4800         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
4801         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
4802         varpool_node_set_new, varpool_node_set_add,
4803         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
4804         debug_varpool_node_set): New functions.
4805         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
4806         (execute_one_pass): Process new decls too.
4807         (ipa_write_summaries_2): Pass around vsets.
4808         (ipa_write_summaries_1): Likewise.
4809         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
4810         to add.
4811         (ipa_write_optimization_summaries_1): Pass around vsets.
4812         (ipa_write_optimization_summaries): Likewise.
4813         * varpool.c (varpool_get_node): New.
4814         (varpool_node): Update doubly linked lists.
4815         (varpool_remove_node): New.
4816         (dump_varpool_node): More dumping.
4817         (varpool_enqueue_needed_node): Update doubly linked lists.
4818         (decide_is_variable_needed): Kill ltrans hack.
4819         (varpool_finalize_decl): Kill lto hack.
4820         (varpool_assemble_decl): Skip decls in other partitions.
4821         (varpool_assemble_pending_decls): Update doubly linkes lists.
4822         (varpool_empty_needed_queue): Likewise.
4823         (varpool_extra_name_alias): Likewise.
4824         * lto-streamer.c (lto_get_section_name): Add vars section.
4825         * lto-streamer.h (lto_section_type): Update.
4826         (output_varpool, input_varpool): Declare.
4827
4828 2010-04-28  Mike Stump  <mikestump@comcast.net>
4829
4830         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
4831
4832 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
4833
4834         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
4835         record or union type with RECORD_OR_UNION_TYPE_P predicate.
4836         (lto_input_ts_type_tree_pointers): Likewise.
4837         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
4838         (lto_output_ts_type_tree_pointers): Likewise.
4839
4840 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
4841
4842         Uniquization of constants at the Tree level
4843         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
4844         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
4845         bit to the end.
4846         (tree_output_constant_def): Declare.
4847         * gimplify.c (gimplify_init_constructor): When using block copy, first
4848         uniquize the constant constructor on the RHS.
4849         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
4850         DECL_IN_CONSTANT_POOL flag.
4851         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
4852         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
4853         constant pool.
4854         (assemble_variable): Deal with symbols belonging to the tree constant
4855         pool.
4856         (get_constant_section): Add ALIGN parameter and simplify.
4857         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
4858         (assemble_constant_contents): Use the expression of the VAR_DECL.
4859         (output_constant_def_contents): Use the alignment of the VAR_DECL.
4860         (tree_output_constant_def): New global function.
4861         (mark_constant): Use the expression of the VAR_DECL.
4862         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
4863         its expression.
4864         (output_object_block): Likewise and assemble the expression.
4865
4866 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
4867
4868         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
4869         hash_tree, eq_tree): New tree hash table.
4870         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
4871         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
4872         lto_orig_address_remove): Reimplement.
4873
4874 2010-04-28  Xinliang David Li  <davidxl@google.com>
4875
4876         PR c/42643
4877         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
4878         (compute_uninit_opnds_pos): New function.
4879         (is_non_loop_exit_postdominating): New function.
4880         (compute_control_dep_chain): New function.
4881         (find_pdom): New function.
4882         (convert_control_dep_chain_into_preds): New function.
4883         (find_predicates): New function.
4884         (find_control_equiv_block): New function.
4885         (collect_phi_def_edges): New function.
4886         (find_def_preds): New function.
4887         (find_dom): New function.
4888         (dump_predicates): New function.
4889         (get_cmp_code): New function.
4890         (is_value_included_in): New function.
4891         (find_matching_predicate_in_rest_chains): New function.
4892         (use_pred_not_overlap_with_undef_path_pred): New function.
4893         (is_use_properly_guarded): New function.
4894         (normalize_cond_1): New function.
4895         (is_and_or_or): New function.
4896         (normalize_cond): New function.
4897         (is_gcond_subset_of): New function.
4898         (is_subset_of_any): New function.
4899         (is_or_set_subset_of): New function.
4900         (is_and_set_subset_of): New function.
4901         (is_norm_cond_subset_of): New function.
4902         (is_pred_expr_subset_of): New function.
4903         (is_pred_chain_subset_of): New function.
4904         (is_included_in): New function.
4905         (is_superset_of): New function.
4906         (find_uninit_use): New function.
4907         (warn_uninitialized_phi): New function.
4908         (compute_possibly_undefined_names): New function.
4909         (ssa_undefined_value_p): New function.
4910         (execute_late_warn_uninitialized): New function.
4911         * tree-ssa.c (ssa_undefined_value_p): Removed.
4912         (warn_uninit): Changed to extern.
4913         (warn_uninitialized_phi): Removed.
4914         (warn_uninitialized_vars): Changed to extern.
4915         (execute_late_warn_uninitialized): Removed
4916         * tree-flow.h: Add new prototypes.
4917         * timevar.def: Add new time variable.
4918         * Makefile.in: Add new build file.
4919
4920 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
4921
4922         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
4923         type if available.
4924
4925 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4926
4927         PR target/22224
4928         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
4929
4930 2010-04-28  Martin Jambor  <mjambor@suse.cz>
4931
4932         * cgraph.h (struct cgraph_node): New field indirect_calls.
4933         (struct cgraph_indirect_call_info): New type.
4934         (struct cgraph_edge): Removed field indirect_call. New fields
4935         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
4936         (cgraph_create_indirect_edge): Declare.
4937         (cgraph_make_edge_direct): Likewise.
4938         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
4939         * ipa-prop.h (struct ipa_param_call_note): Removed.
4940         (struct ipa_node_params): Removed field param_calls.
4941         (ipa_create_all_structures_for_iinln): Declare.
4942         * cgraph.c: Described indirect edges and uids in initial comment.
4943         (cgraph_add_edge_to_call_site_hash): New function.
4944         (cgraph_edge): Search also among the indirect edges, use
4945         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
4946         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
4947         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
4948         site hash.
4949         (initialize_inline_failed): Assign a reason to indirect edges.
4950         (cgraph_create_edge_1): New function.
4951         (cgraph_create_edge): Moved some functionality to
4952         cgraph_create_edge_1.
4953         (cgraph_create_indirect_edge): New function.
4954         (cgraph_edge_remove_callee): Add an assert checking for
4955         non-indirectness.
4956         (cgraph_edge_remove_caller): Special-case indirect edges.
4957         (cgraph_remove_edge): Likewise.
4958         (cgraph_set_edge_callee): New function.
4959         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
4960         (cgraph_make_edge_direct): New function.
4961         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
4962         the declaration of the call statement matches.
4963         (cgraph_node_remove_callees): Special-case indirect edges.
4964         (cgraph_clone_edge): Likewise.
4965         (cgraph_clone_node): Clone also the indirect edges.
4966         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
4967         indirect_call, dump count of indirect_calls edges.
4968         * ipa-prop.c (iinlining_processed_edges): New variable.
4969         (ipa_note_param_call): Create indirect edges instead of
4970         creating notes.  New parameter node.
4971         (ipa_analyze_call_uses): New parameter node, pass it on to
4972         ipa_note_param_call.
4973         (ipa_analyze_stmt_uses): Likewise.
4974         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
4975         (print_edge_addition_message): Work on edges rather than on notes.
4976         (update_call_notes_after_inlining): Likewise, renamed to
4977         update_indirect_edges_after_inlining.
4978         (ipa_create_all_structures_for_iinln): New function.
4979         (ipa_free_node_params_substructures): Do not free notes.
4980         (ipa_edge_duplication_hook): Propagate bits within
4981         iinlining_processed_edges bitmap.
4982         (ipa_node_duplication_hook): Do not duplicate notes.
4983         (free_all_ipa_structures_after_ipa_cp): Renamed to
4984         ipa_free_all_structures_after_ipa_cp.
4985         (free_all_ipa_structures_after_iinln): Renamed to
4986         ipa_free_all_structures_after_iinln.
4987         (ipa_write_param_call_note): Removed.
4988         (ipa_read_param_call_note): Removed.
4989         (ipa_write_indirect_edge_info): New function.
4990         (ipa_read_indirect_edge_info): Likewise.
4991         (ipa_write_node_info): Do not stream notes, do stream information
4992         in indirect edges.
4993         (ipa_read_node_info): Likewise.
4994         (lto_ipa_fixup_call_notes): Removed.
4995         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
4996         * ipa-inline.c (pass_ipa_inline): Likewise.
4997         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
4998         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
4999         * tree-inline.c (copy_bb): Removed an unnecessary double check for
5000         is_gimple_call.
5001         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
5002         edges.
5003         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
5004         (output_cgraph): Stream also indirect edges.
5005         (lto_output_edge): Added capability to stream indirect edges.
5006         (input_edge): Likewise.
5007         (input_cgraph_1): Likewise.
5008         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
5009         of indirect edges.
5010
5011 2010-04-28  Richard Guenther  <rguenther@suse.de>
5012
5013         PR tree-optimization/43879
5014         PR tree-optimization/43909
5015         * tree-ssa-structalias.c (struct variable_info): Add
5016         only_restrict_pointers flag.
5017         (new_var_info): Initialize it.  Increment stats.total_vars here.
5018         (create_function_info_for): Do not increment stats.total_vars here.
5019         (get_function_part_constraint): Fix build with C++.
5020         (insert_into_field_list): Remove.
5021         (push_fields_onto_fieldstack): Properly merge fields.
5022         (create_variable_info_for): Split and simplify.
5023         (create_variable_info_for_1): New piece.
5024         (intra_create_variable_infos): Properly make restrict constraints
5025         from parameters.
5026
5027 2010-04-28  Richard Guenther  <rguenther@suse.de>
5028
5029         PR c++/43880
5030         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
5031
5032 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5033             Jan Hubicka <hubicka@ucw.cz>
5034
5035         * doc/invoke.texi (-Wsuggest-attribute=const,
5036         -Wsuggest-attribute=pure): Document.
5037         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
5038         (function_always_visible_to_compiler_p,
5039         suggest_attribute, warn_function_pure, warn_function_const):
5040         New functions.
5041         (check_call): Improve debug info.
5042         (analyze_function): Do not check availability.
5043         (add_new_function): Check availability.
5044         (propagate): Output warnings.
5045         (skip_function_for_local_pure_const): New function.
5046         (local_pure_const): Use it; output warnings.
5047         * common.opt (Wsuggest-attribute=const,
5048         Wsuggest-attribute=pure): New.
5049
5050 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
5051
5052         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
5053         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
5054         or DW_CFA_def_cfa_offset{,_sf}.
5055
5056 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
5057
5058         * tree.h: Fix truncated long macros.
5059
5060 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
5061
5062         * collect2.c (TARGET_64BIT): Redefine to target's default.
5063         * tlink.c: Likewise.
5064         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
5065         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
5066         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
5067         for underscoring __USER_LABEL_PREFIX__.
5068         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
5069         (SUB_LINK_ENTRY32): New.
5070         (SUB_LINK_ENTRY64): New.
5071         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
5072         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
5073         (SUB_LINK_ENTRY64): New.
5074         (SUB_LINK_ENTRY): New.
5075         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
5076         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
5077         x64 target is choosen.
5078         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
5079         * configure: Regenerated.
5080         * configure.ac (leading-mingw64-underscores): Option added.
5081
5082 2010-04-27  Jan Hubicka  <jh@suse.cz>
5083
5084         * doc/invoke.texi (-fipa-profile): Document.
5085         * opts.c (decode_options): Enable ipa-profile at -O1.
5086         * timevar.def (TV_IPA_PROFILE): Define.
5087         * common.opt (fipa-profile): Add.
5088         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
5089         flag for clones.
5090         (cgraph_propagate_frequency): Handle only local ones.
5091         * tree-pass.h (pass_ipa_profile): Declare.
5092         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
5093         (pass_ipa_profile): Use TV_IPA_PROFILE.
5094         * ipa.c (ipa_profile): New function.
5095         (gate_ipa_profile): Likewise.
5096         (pass_ipa_profile): New global variable.
5097         * passes.c (pass_ipa_profile): New.
5098
5099 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
5100
5101         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
5102
5103 2010-04-27  Martin Jambor  <mjambor@suse.cz>
5104
5105         PR middle-end/43812
5106         * ipa.c (dissolve_same_comdat_group_list): New function.
5107         (function_and_variable_visibility): Call
5108         dissolve_same_comdat_group_list when comdat group contains external or
5109         newly local nodes.
5110         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
5111         lists are circular and that they contain only DECL_ONE_ONLY nodes.
5112
5113 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
5114
5115         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
5116         (const_hash_1) <VECTOR_CST>: New case.
5117         (compare_constant) <VECTOR_CST>: Likewise.
5118         <ADDR_EXPR>: Deal with LABEL_REFs.
5119         (copy_constant) <VECTOR_CST>: New case.
5120
5121 2010-04-27  Jan Hubicka  <jh@suse.cz>
5122
5123         * cgraph.c (cgraph_propagate_frequency): New function.
5124         * cgraph.h (cgraph_propagate_frequency): Declare.
5125         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
5126         cgraph_propagate_frequency.
5127
5128 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
5129
5130         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
5131
5132 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
5133
5134         PR target/40657
5135         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
5136         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
5137         here to determine which regs to push and how much stack to reserve.
5138
5139 2010-04-27  Jie Zhang  <jie@codesourcery.com>
5140
5141         * doc/gimple.texi (gimple_statement_with_ops): Remove
5142         addresses_taken field.
5143         (gimple_statement_with_memory_ops): Likewise.
5144
5145 2010-04-27  Jan Hubicka  <jh@suse.cz>
5146
5147         * tree-inline.c (eni_inlining_weights): Remove.
5148         (estimate_num_insns): Special case more builtins.
5149
5150 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
5151
5152         PR c/32207
5153         * c-typeck.c (build_binary_op): Move forward check for comparison
5154         pointer with null pointer constant and adjust the diagnostic message.
5155
5156 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
5157
5158         PR lto/42776
5159         * configure.ac (gcc_cv_as_section_has_align): Set if installed
5160         binutils supports extended .section directive needed by LTO, or
5161         warn if older binutils found.
5162         (LTO_BINARY_READER): New AC_SUBST'd variable.
5163         (LTO_USE_LIBELF): Likewise.
5164         * gcc/config.gcc (lto_binary_reader): New target-specific configure
5165         variable.
5166         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
5167         (LTO_USE_LIBELF): Likewise.
5168         * configure: Regenerate.
5169
5170         * collect2.c (is_elf): Rename from this ...
5171         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
5172          object files in addition to ELF-formatted ones.
5173         (scan_prog_file): Caller updated.  Also allow for LTO info marker
5174         symbol to be prefixed or not by an extra underscore.
5175
5176         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
5177         * config/i386/winnt.c: Also #include lto-streamer.h
5178         (i386_pe_asm_named_section): Specify 1-byte section alignment for
5179         LTO named sections.
5180         (i386_pe_asm_output_aligned_decl_common): Add comment.
5181         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
5182
5183 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
5184
5185         PR target/43889
5186         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
5187         Add missing earlyclobber for second alternative.
5188
5189 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
5190
5191         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
5192         bits for artificial defs at the top of the block.
5193         * fwprop.c (single_def_use_enter_block): Don't call it.
5194
5195 2010-04-26  Jack Howarth <howarth@bromo.med.uc.edu>
5196
5197         PR 43715
5198         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
5199         instead of "$gcc_cv_objdump -T".
5200         Use "-undefined dynamic_lookup" on darwin.
5201         * gcc/configure: Regenerate.
5202
5203 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
5204
5205         PR c/43893
5206         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
5207
5208 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
5209
5210         * c-parser.c (struct c_token): Move location field up.
5211         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
5212         (struct c_declspecs): Convert typespec_word, storage_class, and
5213         default_int_p into bitfields.
5214         (struct c_declarator): Move loc field up.
5215
5216 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
5217
5218         * cfgloop.h (struct loop): Move can_be_parallel field up.
5219         * ipa-prop.h (struct ip_node_params): Move bitfields up.
5220         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
5221         down.
5222         (struct iv_cand): Convert pos field into a bitfield.
5223         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
5224         field up.
5225         (struct _stmt_vec_info): Shuffle fields for better packing.
5226
5227 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
5228
5229         * varasm.c (IN_NAMED_SECTION): Remove guard.
5230         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
5231         (IN_NAMED_SECTION_P): ...this.
5232         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
5233         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
5234
5235 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
5236
5237         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
5238         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
5239         of shadowing it.  Fix comments.
5240
5241 2010-04-26  Jan Hubicka  <jh@suse.cz>
5242
5243         * cgraph.c (cgraph_create_node): Set node frequency to normal.
5244         (cgraph_clone_node): Copy function frequency.
5245         * cgraph.h (node_frequency): New enum
5246         (struct cgraph_node): Add.
5247         * final.c (rest_of_clean_state): Update.
5248         * lto-cgraph.c (lto_output_node): Output node frequency.
5249         (input_overwrite_node): Input node frequency.
5250         * tre-ssa-loop-ivopts (computation_cost): Update.
5251         * lto-streamer-out.c (output_function): Do not output function
5252         frequency.
5253         * predict.c (maybe_hot_frequency_p): Update and handle functions
5254         executed once.
5255         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
5256         attribute lookup.
5257         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
5258         (compute_function_frequency): Set noreturn functions to be executed
5259         once.
5260         (choose_function_section): Update.
5261         * lto-streamer-in.c (input_function): Do not input function frequency.
5262         * function.c (allocate_struct_function): Do not initialize function
5263         frequency.
5264         * function.h (function_frequency): Remove.
5265         (struct function): Remove function frequency.
5266         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
5267         (try_update): Update.
5268         * tree-inline.c (initialize_cfun): Do not update function frequency.
5269         * passes.c (pass_init_dump_file): Update.
5270         * i386.c (ix86_compute_frame_layout): Update.
5271         (ix86_pad_returns): Update.
5272
5273 2010-04-26  Jie Zhang  <jie@codesourcery.com>
5274
5275         PR tree-optimization/43833
5276         * tree-vrp.c (range_int_cst_p): New.
5277         (range_int_cst_singleton_p): New.
5278         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
5279         when both operands are constants.  Use range_int_cst_p in
5280         BIT_IOR_EXPR case.
5281
5282 2010-04-26  Jan Hubicka  <jh@suse.cz>
5283
5284         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
5285
5286 2010-04-26  Richard Guenther  <rguenther@suse.de>
5287
5288         PR lto/43080
5289         * gimple.c (gimple_decl_printable_name): Deal gracefully
5290         with a NULL DECL_NAME.
5291
5292 2010-04-26  Richard Guenther  <rguenther@suse.de>
5293
5294         PR lto/42425
5295         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
5296         if emitting debug information and it is either a function
5297         or a namespace decl.
5298
5299 2010-04-26  Ira Rosen  <irar@il.ibm.com>
5300
5301         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
5302         determine if the statement is vectorizable, and a macro to access it.
5303         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
5304         Skip statements that can't be vectorized. If the analysis fails,
5305         mark the statement as unvectorizable if vectorizing basic block.
5306         (vect_compute_data_refs_alignment): Likewise.
5307         (vect_verify_datarefs_alignment): Skip statements marked as
5308         unvectorizable. Add print.
5309         (vect_analyze_group_access): Skip statements that can't be
5310         vectorized. If the analysis fails, mark the statement as
5311         unvectorizable if vectorizing basic block.
5312         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
5313         * tree-vect-stmts.c (vectorizable_store): Fix the number of
5314         generated stmts for SLP.
5315         (new_stmt_vec_info): Initialize the new field.
5316         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
5317         statements marked as unvectorizable.
5318
5319 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
5320
5321         * c-common.c (flag_isoc1x): New.
5322         (flag_isoc99): Update comment.
5323         * c-common.h (flag_isoc1x): New.
5324         (flag_isoc99): Update comment.
5325         * c-cppbuiltin.c (builtin_define_float_constants): Also define
5326         __<type>_DECIMAL_DIG__.
5327         * c-opts.c (set_std_c1x): New.
5328         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
5329         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
5330         * c.opt (-std=c1x, -std=gnu1x): New options.
5331         * doc/cpp.texi: Mention -std=c1x.
5332         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
5333         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
5334         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
5335         * doc/standards.texi: Mention C1X.
5336         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
5337         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
5338         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
5339         Define for C1X.
5340
5341 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
5342
5343         * config/i386/gmon-sol2.c (_mcleanup): Change format string
5344         placeholder from 0x%x to %#x.
5345         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
5346         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
5347         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
5348         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
5349         * config/i386/i386.c (ix86_target_string): Ditto.
5350         (output_pic_addr_const): Ditto.
5351         (print_operand): Ditto.
5352
5353 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
5354
5355         * combine.c (find_split_point): Add third argument.  Use it
5356         to find nested multiply-accumulate instructions.  Adjust calls.
5357         (try_combine): Adjust call to find_split_point.
5358
5359 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
5360
5361         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
5362
5363 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
5364
5365         PR tree-optimization/41442
5366         * fold-const.c (merge_truthop_with_opposite_arm): New function.
5367         (fold_binary_loc): Call it.
5368
5369 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5370
5371         * toplev.c (general_init): Set default for fdiagnostics-show-option.
5372         * opts.c (common_handle_option): Allow disabling it.
5373         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
5374
5375 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
5376
5377         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
5378         between modes if both types are integral.
5379
5380 2010-04-23  Richard Guenther  <rguenther@suse.de>
5381
5382         PR tree-optimization/43572
5383         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
5384
5385 2010-04-23  Richard Guenther  <rguenther@suse.de>
5386
5387         PR lto/43455
5388         * tree-inline.c (tree_can_inline_p): Also check compatibility
5389         of return types.
5390
5391 2010-04-23  Martin Jambor  <mjambor@suse.cz>
5392
5393         PR tree-optimization/43846
5394         * tree-sra.c (struct access): New flag grp_assignment_read.
5395         (build_accesses_from_assign): Set grp_assignment_read.
5396         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
5397         (enum mark_read_status): New type.
5398         (analyze_access_subtree): Propagate grp_assignment_read, create
5399         accesses also if both direct_read and root->grp_assignment_read.
5400
5401 2010-04-23  Martin Jambor  <mjambor@suse.cz>
5402
5403         PR middle-end/43835
5404         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
5405         function does not have type attributes.
5406
5407 2010-04-23  Richard Guenther  <rguenther@suse.de>
5408
5409         PR lto/42653
5410         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
5411         of FUNCTION_DECLs.
5412
5413 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
5414
5415         * sese.h (create_if_region_on_edge): Remove.
5416
5417         * sese.c (create_if_region_on_edge): Make static.
5418
5419         * tree-inline.c: Do not include ggc.h.
5420
5421         * expr.c: Do not include ggc.h.
5422
5423         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
5424         dependencies.
5425
5426 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
5427
5428         PR target/43744
5429         * config/sh/sh.c (find_barrier): Don't emit a constant pool
5430         in the middle of insns for casesi_worker_2.
5431
5432 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
5433
5434         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
5435
5436 2010-04-22  Ira Rosen  <irar@il.ibm.com>
5437
5438         PR tree-optimization/43842
5439         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
5440         loop unrolling in update of exit phis. Fix comment.
5441         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
5442         least two reduction statements in the loop before starting SLP
5443         analysis.
5444
5445 2010-04-22  Nick Clifton  <nickc@redhat.com>
5446
5447         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
5448
5449 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
5450
5451         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
5452         to simplify a + ~a.
5453
5454 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
5455
5456         * tree-parloops.c (loop_parallel_p): New argument
5457         parloop_obstack.  Pass it down.
5458         (parallelize_loops): New variable parloop_obstack.  Initialize it,
5459         pass it down, free it.
5460
5461         * tree-loop-linear.c (linear_transform_loops): Pass down
5462         lambda_obstack.
5463
5464         * tree-data-ref.h (lambda_compute_access_matrices): New argument
5465         of type struct obstack *.
5466
5467         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
5468         scratch_obstack.  Initialize it, pass down, free it.
5469
5470         * lambda.h (lambda_loop_new): Remove.
5471         (lambda_matrix_new, lambda_matrix_inverse)
5472         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
5473         argument of type struct obstack *.
5474
5475         * lambda-trans.c (lambda_trans_matrix_new): New argument
5476         lambda_obstack.  Pass it down, use obstack allocation for ret.
5477         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
5478         it down.
5479
5480         * lambda-mat.c (lambda_matrix_get_column)
5481         (lambda_matrix_project_to_null): Remove.
5482         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
5483         allocation for mat.
5484         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
5485         lambda_obstack.
5486
5487         * lambda-code.c (lambda_loop_new): New function.
5488         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
5489         (lambda_compute_auxillary_space, lambda_compute_target_space)
5490         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
5491         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
5492         (build_access_matrix): New argument lambda_obstack.  Use obstack
5493         allocation for am.
5494         (lambda_compute_step_signs, lambda_compute_access_matrices): New
5495         argument lambda_obstack.  Pass it down.
5496
5497 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
5498
5499         * optabs.h (expand_widening_mult): Declare.
5500
5501 2010-04-22  Richard Guenther  <rguenther@suse.de>
5502
5503         PR tree-optimization/43845
5504         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
5505         lookup the CALL_EXPR function and arguments.
5506
5507 2010-04-22  Nick Clifton  <nickc@redhat.com>
5508
5509         * config/stormy16/stormy16.c
5510         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
5511         * config/stormy16/stormy16.h: Tidy up formatting.
5512         (DONT_USE_BUILTIN_SETJMP): Remove definition.
5513         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
5514         (ineqbranchsi): Delete pattern.
5515         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
5516         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
5517         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
5518         stormy16-lib2-ucmpsi2.c.
5519
5520 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
5521
5522         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
5523         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
5524         extra set merge_set_noclobber, and use it to relax the final test
5525         slightly.
5526         * df.h (df_simulate_find_noclobber_defs): Declare.
5527         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
5528         conditional defs.
5529         (df_simulate_find_noclobber_defs): New function.
5530
5531 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
5532
5533         * config/i386/i386.md: Use {} around multi-line preparation statements.
5534
5535 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
5536
5537         * c-tree.h (push_init_level, pop_init_level, set_init_index)
5538         (process_init_element): New argument of type struct obstack *.
5539
5540         * c-typeck.c (push_init_level, pop_init_level, set_designator)
5541         (set_init_index, set_init_label, set_nonincremental_init)
5542         (set_nonincremental_init_from_string, find_init_member)
5543         (output_init_element, output_pending_init_elements)
5544         (process_init_element): New argument braced_init_obstack.  Pass it
5545         down.
5546         (push_range_stack, add_pending_init): New argument
5547         braced_init_obstack.  Use obstack allocation.
5548
5549         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
5550         braced_init_obstack.  Pass it down.
5551         (c_parser_braced_init): New variables ret, braced_init_obstack.
5552         Initialize obstack, pass it down and finally free it.
5553
5554 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
5555
5556         PR middle-end/29274
5557         * tree-pass.h (pass_optimize_widening_mul): Declare.
5558         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
5559         gate_optimize_widening_mul): New static functions.
5560         (pass_optimize_widening_mul): New.
5561         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
5562         <case MULT_EXPR>: Remove support for widening multiplies.
5563         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
5564         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
5565         simplify_gen_unary rather than directly building extensions.
5566         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
5567         WIDEN_MULT_EXPR.
5568         * expmed.c (expand_widening_mult): New function.
5569         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
5570
5571 2010-04-21  Jan Hubicka  <jh@suse.cz>
5572
5573         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
5574         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
5575         * lto-wpa-fixup.c: Remove.
5576         * Makefile.in (lto-wpa-fixup.o): Remove.
5577         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
5578         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
5579         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
5580
5581 2010-04-21  Jan Hubicka  <jh@suse.cz>
5582
5583         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
5584         add write_optimization_summary, read_optimization_summary.
5585         (ipa_write_summaries_of_cgraph_node_set): Remove.
5586         (ipa_write_optimization_summaries): Declare.
5587         (ipa_read_optimization_summaries): Declare.
5588         * ipa-cp.c (pass_ipa_cp): Update.
5589         * ipa-reference.c (pass_ipa_reference): Update.
5590         * ipa-pure-const.c (pass_ipa_pure_const): Update.
5591         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
5592         Update.
5593         * ipa-inline.c (pass_ipa_inline): Update.
5594         * ipa.c (pass_ipa_whole_program): Update.
5595         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
5596         * passes.c (ipa_write_summaries_1): Do not test wpa.
5597         (ipa_write_optimization_summaries_1): New.
5598         (ipa_write_optimization_summaries): New.
5599         (ipa_read_summaries): Do not test ltrans.
5600         (ipa_read_optimization_summaries_1): New.
5601         (ipa_read_optimization_summaries): New.
5602
5603 2010-04-21  Jan Hubicka  <jh@suse.cz>
5604
5605         * lto-cgraph.c (lto_output_node): Do not output comdat groups
5606         for boundary nodes.
5607         (output_cgraph): Do not arrange comdat groups for boundary nodes.
5608
5609 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
5610
5611         PR debug/40040
5612         * dwarf2out.c (add_name_and_src_coords_attributes): Add
5613         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
5614
5615 2010-04-21  Jan Hubicka  <jh@suse.cz>
5616
5617         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
5618
5619 2010-04-21  Jan Hubicka  <jh@suse.cz>
5620
5621         * varpool.c (decide_is_variable_needed): Variable is always needed
5622         during ltrans.
5623
5624 2010-04-21  Jan Hubicka  <jh@suse.cz>
5625
5626         * opts.c (decode_options): Enable pure-const pass for whopr.
5627
5628 2010-04-21  Jan Hubicka  <jh@suse.cz>
5629
5630         * cgraph.c (dump_cgraph_node): Dump also assembler name.
5631         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
5632         at WPA dumping.
5633         (cgraph_decide_inlining): Do not expect callee to be removed in all
5634         cases.
5635
5636 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
5637
5638         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
5639
5640 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
5641
5642         * config/i386/i386.md (x86_shrd): Add athlon_decode and
5643         amdfam10_decode attributes.
5644
5645 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
5646
5647         PR middle-end/43570
5648         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
5649         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
5650         (lower_copyprivate_clauses): Use private var in outer
5651         context instead of original var.  Make sure the types
5652         are correct for VLAs.
5653
5654 2010-04-21  Richard Guenther  <rguenther@suse.de>
5655
5656         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
5657         to non-pointer objects.
5658
5659 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
5660
5661         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
5662         last chain entry if it starts with the still current label.
5663         (add_location_or_const_value_attribute): Check that
5664         loc_list->first->next is NULL instead of comparing ->first with ->last.
5665         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
5666         to add_var_loc_to_decl.
5667
5668         * dwarf2out.c (output_call_frame_info): For dw_cie_version
5669         >= 4 add also address size and segment size fields into CIE header.
5670
5671         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
5672         long as address size is the same as sizeof (void *) and
5673         segment size is 0.
5674         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
5675         address size or segment size is unexpected, return DW_EH_PE_omit.
5676         (classify_object_over_fdes): If get_cie_encoding returned
5677         DW_EH_PE_omit, return -1.
5678         (init_object): If classify_object_over_fdes returned -1,
5679         pretend there were no FDEs at all.
5680
5681 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
5682
5683         * config/i386/i386.md (bswap<mode>2): Macroize expander from
5684         bswap{si,di}2 using SWI48 mode iterator.
5685         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
5686         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
5687         set modrm attribute of bswap insn to 0 and remove length attribute.
5688         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
5689         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
5690         set mode attribute to <MODE> and remove length attribute.
5691
5692 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
5693
5694         PR rtl-optimization/43520
5695         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
5696         zero available registers.
5697
5698 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5699
5700         * builtins.c (fold_builtin_cproj): Fold more cases.
5701
5702 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5703
5704         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
5705         (fold_builtin_1): Fold builtin cproj.
5706         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
5707         Use ATTR_CONST_NOTHROW_LIST.
5708
5709 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
5710
5711         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
5712         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
5713         ffsi2_no_cmove for !TARGET_CMOVE.
5714         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
5715         (ffssi2): Remove expander.
5716         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
5717         mode iterator.
5718         (ctz<mode>2): Ditto from ctz{si,di}2.
5719         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
5720         mode iterator.
5721         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
5722         mode iterator.
5723
5724 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
5725
5726         * dwarf2out.c (AT_linkage_name): Define.
5727         (clone_as_declaration): Handle DW_AT_linkage_name.
5728         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
5729         of DW_AT_MIPS_linkage_name.
5730         (move_linkage_attr): Likewise.
5731         (dwarf2out_finish): Likewise.
5732
5733 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
5734
5735         PR middle-end/41952
5736         * fold-const.c (fold_comparison): New folding rule.
5737
5738 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
5739
5740         * double-int.h (double_int_setbit): Declare.
5741         * double-int.c (double_int_setbit): New function.
5742         * rtl.h (immed_double_int_const): Declare.
5743         * emit-rtl.c (immed_double_int_const): New function.
5744         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
5745         and immed_double_int_const functions.
5746         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
5747         expand_copysign_bit):  (Ditto.).
5748         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
5749         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
5750         * dojump.c (prefer_and_bit_test): (Ditto.).
5751         * expr.c (convert_modes, reduce_to_bit_field_precision,
5752         const_vector_from_tree): (Ditto.).
5753         * expmed.c (mask_rtx, lshift_value): (Ditto.).
5754
5755 2010-04-20  Jan Hubicka  <jh@suse.cz>
5756
5757         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
5758         (dump_cgraph_node): Dump new flags.
5759         * cgraph.h (struct cgraph_node): Add flags
5760         reachable_from_other_partition and in_other_partition.
5761         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
5762         other partition can not be removed.
5763         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
5764         the other partition must be output; silence sanity checking on
5765         leaking functions bodies from other paritition.
5766         * lto-cgraph.c (reachable_from_other_partition_p): New function.
5767         (lto_output_node): Output new flags; do not sanity check that inline
5768         clones are output; drop lto_forced_extern_inline_p code; do not mock
5769         visibility flags at partition boundaries.
5770         (add_node_to): New function.
5771         (output_cgraph): Use it to sort functions so masters appear before
5772         clones.
5773         (input_overwrite_node): Input new flags.
5774         * passes.c (ipa_write_summaries): Do not call
5775         lto_new_extern_inline_states.
5776         * lto-section-out.c (forced_extern_inline,
5777         lto_new_extern_inline_states lto_delete_extern_inline_states,
5778         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
5779         * lto-streamer.h (lto_new_extern_inline_states,
5780         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
5781         lto_forced_extern_inline_p): Kill.
5782
5783 2010-04-20  Richard Guenther  <rguenther@suse.de>
5784
5785         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
5786         from vars that can have pointers.
5787         (process_constraint): Dump useless constraints.
5788
5789 2010-04-20  Richard Guenther  <rguenther@suse.de>
5790
5791         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
5792         (dump_sa_points_to_info): Remove asserts.
5793         (init_base_vars): nothing_id isn't an escape point nor does it
5794         have pointers.
5795
5796 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
5797
5798         * tree.h (TYPE_REF_IS_RVALUE): Define.
5799         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
5800         should_move_die_to_comdat, prune_unused_types_walk): Handle
5801         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
5802         (modified_type_die, gen_reference_type_die): Emit
5803         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
5804         if TYPE_REF_IS_RVALUE and -gdwarf-4.
5805
5806 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5807
5808         PR target/43635
5809         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
5810         calls for -fpic -m31 if they have been sibcall optimized.
5811
5812 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
5813
5814         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
5815         ar.lc fixed and call-used.
5816
5817         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
5818
5819 2010-04-19  Jan Hubicka  <jh@suse.cz>
5820
5821         * opts.c (decode_options): Disable whpr incompatible passes.
5822         * lto/lto.c (lto_1_to_1_map): Skip clones.
5823         (read_cgraph_and_symbols): Do not mark everything as needed.
5824         (do_whole_program_analysis): Do map only after optimizing;
5825         set proper cgraph_state; use passmanager.
5826
5827 2010-04-19  DJ Delorie  <dj@redhat.com>
5828
5829         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
5830         POINTER_PLUS_EXPR and fix them.
5831
5832 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
5833
5834         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
5835         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
5836         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
5837         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
5838         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
5839         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
5840         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
5841         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
5842         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
5843         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
5844         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
5845
5846 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
5847
5848         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
5849         (check_cond_move_block): Likewise.
5850         (cond_move_process_if_block): Likewise.
5851         (noce_find_if_block): Improve formatting.
5852         (find_if_header): Pass 0 to memset and tweak conditions.
5853         (cond_exec_find_if_block): Fix long lines and tweak conditions.
5854
5855 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
5856
5857         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
5858         for -gdwarf-4.
5859
5860         PR middle-end/43337
5861         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
5862         with non-local decl doesn't need chain.
5863
5864 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
5865
5866         * ira-color.c (allocno_reload_assign): Avoid accumulating
5867         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
5868
5869 2010-04-19  Martin Jambor  <mjambor@suse.cz>
5870
5871         * gimple.h (create_tmp_reg): Declare.
5872         * gimplify.c (create_tmp_reg): New function.
5873         (gimplify_return_expr): Use create_tmp_reg.
5874         (gimplify_omp_atomic): Likewise.
5875         (gimple_regimplify_operands): Likewise.
5876         * tree-dfa.c (make_rename_temp): Likewise.
5877         * tree-predcom.c (predcom_tmp_var): Likewise.
5878         (reassociate_to_the_same_stmt): Likewise.
5879         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
5880         (get_replaced_param_substitute): Likewise.
5881         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
5882         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
5883         * tree-ssa-pre.c (get_representative_for): Likewise.
5884         (create_expression_by_pieces): Likewise.
5885         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
5886         (create_tailcall_accumulator): Likewise.
5887
5888 2010-04-19  Martin Jambor  <mjambor@suse.cz>
5889
5890         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
5891         new_stmt.
5892         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
5893
5894 2010-04-19  Richard Guenther  <rguenther@suse.de>
5895
5896         PR tree-optimization/43796
5897         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
5898         from SCEV in the lattice.
5899         (vrp_visit_phi_node): Dump change.
5900
5901 2010-04-19  Richard Guenther  <rguenther@suse.de>
5902
5903         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
5904         * configure: Re-generated.
5905
5906 2010-04-19  Richard Guenther  <rguenther@suse.de>
5907
5908         PR tree-optimization/43783
5909         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
5910         constant ARRAY_REF operands two and three if possible.
5911
5912 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
5913
5914         PR target/43766
5915         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
5916
5917 2010-04-19  Jie Zhang  <jie@codesourcery.com>
5918
5919         PR target/43662
5920         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
5921
5922 2010-04-19  Ira Rosen  <irar@il.ibm.com>
5923
5924         PR tree-optimization/37027
5925         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
5926         and macro to access it.
5927         (vectorizable_reduction): Add argument.
5928         (vect_get_slp_defs): Likewise.
5929         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
5930         statements for possible use in SLP.
5931         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
5932         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
5933         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
5934         add new argument.
5935         (vectorizable_reduction): Likewise.
5936         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
5937         vect_get_slp_defs.
5938         (vectorizable_type_demotion, vectorizable_type_promotion,
5939         vectorizable_store): Likewise.
5940         (vect_analyze_stmt): Update call to vectorizable_reduction.
5941         (vect_transform_stmt): Likewise.
5942         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
5943         (vect_build_slp_tree): Fix indentation. Check that there are no loads
5944         from different interleaving chains in same node.
5945         (vect_slp_rearrange_stmts): New function.
5946         (vect_supported_load_permutation_p): Allow load permutations for
5947         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
5948         inside SLP nodes if necessary.
5949         (vect_analyze_slp_instance): Handle reductions.
5950         (vect_analyze_slp): Try to build SLP instances originating from groups
5951         of reductions.
5952         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
5953         (vect_get_constant_vectors): Create initial vectors for reductions
5954         according to reduction code. Add new argument.
5955         (vect_get_slp_defs): Add new argument, pass it to
5956         vect_get_constant_vectors.
5957         (vect_schedule_slp_instance): Remove SLP tree root statements.
5958
5959 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
5960
5961         * tree.h (ENUM_IS_SCOPED): Define.
5962         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
5963         for ENUM_IS_SCOPED enums.
5964
5965 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
5966
5967         * fold-const.c (fold_comparison): Use ssizetype.
5968         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
5969         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
5970         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
5971         * tree-object-size.c (compute_object_sizes): Use size_type_node.
5972
5973         * tree.h (initialize_sizetypes): Remove parameter.
5974         (build_common_tree_nodes): Remove second parameter.
5975         * stor-layout.c (initialize_sizetypes): Remove parameter.
5976         Always create an unsigned type.
5977         (set_sizetype): Assert that the passed type is unsigned and simplify.
5978         * tree.c (build_common_tree_nodes): Remove second parameter.
5979         Adjust call to initialize_sizetypes.
5980         * c-decl.c (c_init_decl_processing): Remove second argument in call to
5981         build_common_tree_nodes.
5982
5983 2010-04-18  Matthias Klose  <doko@ubuntu.com>
5984
5985         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
5986
5987 2010-04-18  Ira Rosen  <irar@il.ibm.com>
5988
5989         PR tree-optimization/43771
5990         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
5991         load permutation doesn't have gaps.
5992
5993 2010-04-18  Jan Hubicka  <jh@suse.cz>
5994
5995         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
5996         (sse_prologue_save_insn expander): Use new pattern.
5997         (sse_prologue_save_insn1): New pattern and splitter.
5998         (sse_prologue_save_insn): Update to deal also with 64bit aligned
5999         blocks.
6000         * i386.c (setup_incoming_varargs_64): Do not compute jump
6001         destination here.
6002         (ix86_gimplify_va_arg): Update alignment needed.
6003         (ix86_local_alignment): Do not align all local arrays to 128bit.
6004
6005 2010-04-17  Jan Hubicka  <jh@suse.cz>
6006
6007         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
6008
6009 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
6010
6011         * arm.md (negdi2): Remove redundant code to force values into a
6012         register.
6013
6014 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
6015
6016         * arm/bpabi.S: Add EABI alignment attributes to objects.
6017         * arm/bpabi-v6m.S: Likewise.
6018         * arm/crti.asm: Likewise.
6019         * arm/crtn.asm: Likewise.
6020         * arm/lib1funcs.asm: Likewise.
6021         * arm/libunwind.S: Likewise.
6022
6023 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
6024
6025         * arm-protos.h (tune_params): New structure.
6026         * arm.c (current_tune): New variable.
6027         (arm_constant_limit): Delete.
6028         (struct processors): Add pointer to the tune parameters.
6029         (arm_slowmul_tune): New tuning option.
6030         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
6031         (all_cores): Adjust to pick up the tuning model.
6032         (arm_constant_limit): New function.
6033         (arm_override_options): Select the appropriate tuning model.  Delete
6034         initialization of arm_const_limit.
6035         (arm_split_constant): Use the new constant-limit model.
6036         (arm_rtx_costs): Pick up the current tuning model.
6037         * arm.md (is_strongarm, is_xscale): Delete.
6038         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
6039         for Xscale variant architectures.
6040         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
6041
6042 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6043
6044         * config/arm/arm.c (arm_gen_constant): Remove unused variable
6045         can_shift.
6046         (arm_rtx_costs_1): Remove unused variable extra_cost.
6047         (arm_unwind_emit_set): Use variable offset.
6048         (thumb1_output_casesi): Remove unused variable flags.
6049
6050 2010-04-16  Jeff Law  <law@redhat.com>
6051
6052         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
6053         needing assignment rather than doing a two-phase assignment.  Remove
6054         unused variable 'm'.
6055
6056 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
6057
6058         PR bootstrap/43767
6059         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
6060
6061 2010-04-16  Doug Kwan  <dougkwan@google.com>
6062
6063         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
6064         (next_operand_entry_id): New static variable.
6065         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
6066         (add_to_ops_vec): Assigned unique ID to operand entry.
6067         (struct oecount_s): New field ID.
6068         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
6069         (undistribute_ops_list): Assign unique IDs to oecounts.
6070         (init_reassoc): reset next_operand_entry_id.
6071
6072 2010-04-16  Doug Kwan  <dougkwan@google.com>
6073
6074         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
6075         missing left parenthesis.
6076
6077 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
6078
6079         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
6080         *btdi_rex64 using SWI48 mode iterator.
6081         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
6082         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
6083         *jcc_btdi_mask_rex64.
6084
6085 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
6086
6087         * double-int.h (tree_to_double_int): Convert to macro.
6088         * double-int.c (tree_to_double_int): Remove.
6089
6090 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
6091
6092         PR debug/43762
6093         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
6094         with want_address 2 and in case a single element list might be
6095         possible, call it again with want_address 0.
6096
6097 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
6098
6099         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
6100         case 'W' print operands for HI mode.
6101         * config/h8300/h8300.h (Y0, Y2) : New constraints.
6102         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
6103         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
6104         * config/h8300/predicate.md (bit_register_indirect_operand): New.
6105
6106         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
6107
6108         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
6109         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
6110         #xx:3 and #xx:4 mode.
6111
6112         * config/h8300/h8300.md (inverted load with HImode dest): Add
6113         support for H8300SX.
6114
6115         * config/h8300/predicate.md (bit_operand): Allow immediate values that
6116         satisfy 'U' constraint.
6117
6118 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6119
6120         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
6121         * configure: Regenerate.
6122         * config.in: Regenerate.
6123         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
6124         works.
6125
6126 2010-04-16  Richard Guenther  <rguenther@suse.de>
6127
6128         * tree.h (struct tree_decl_minimal): Move pt_uid ...
6129         (struct tree_decl_common): ... here.
6130         (DECL_PT_UID): Adjust.
6131         (SET_DECL_PT_UID): Likewise.
6132         (DECL_PT_UID_SET_P): Likewise.
6133
6134 2010-04-16  Richard Guenther  <rguenther@suse.de>
6135
6136         PR tree-optimization/43572
6137         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
6138         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
6139         * tree-flow.h (is_call_clobbered): Remove.
6140         * tree-flow-inline.h (is_call_clobbered): Likewise.
6141         * tree-dfa.c (dump_variable): Do not dump call clobber state.
6142         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
6143         (execute_return_slot_opt): Adjust.
6144         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
6145         check for call clobbered vars here.
6146         (find_tail_calls): Move tailcall verification to the
6147         proper place.
6148
6149 2010-04-16  Diego Novillo  <dnovillo@google.com>
6150
6151         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
6152
6153 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
6154
6155         PR target/40603
6156         * config/arm/arm.md (cbranchqi4): New pattern.
6157         * config/arm/predicates.md (const0_operand,
6158         cbranchqi4_comparison_operator): New predicates.
6159
6160 2010-04-16  Richard Guenther  <rguenther@suse.de>
6161
6162         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
6163         (dump_gimple_stmt): Likewise.
6164
6165 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
6166
6167         * recog.h (struct recog_data): New field is_operator.
6168         (struct insn_operand_data): New field is_operator.
6169         * recog.c (extract_insn): Set recog_data.is_operator.
6170         * genoutput.c (output_operand_data): Emit code to set the
6171         is_operator field.
6172         * reload.c (find_reloads): Use it rather than testing for an
6173         empty constraint string.
6174
6175         PR target/41514
6176         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
6177         If the previous insn is a cbranchsi4_insn with the same arguments,
6178         omit the compare instruction.
6179
6180         * config/arm/arm.md (addsi3_cbranch): If destination is a high
6181         register, inputs must be low registers and we need a low register
6182         scratch.  Handle alternative 2 like alternative 3.
6183
6184 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
6185
6186         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
6187         don't call get_addr on both.  If one expression is a VALUE and
6188         the other a REG, check VALUE's locs if the REG isn't among them.
6189
6190 2010-04-16  Christian Bruel  <christian.bruel@st.com>
6191
6192         * config/sh/sh.h (sh_frame_pointer_required): New function.
6193         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
6194         (flag_omit_frame_pointer) Set.
6195         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
6196         (rounded_frame_size): Adjust size with outgoing_args_size.
6197         (sh_set_return_address): Must return from stack pointer.
6198         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
6199         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
6200         (ACCUMULATE_OUTGOING_ARGS): Define.
6201         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
6202         * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
6203
6204 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
6205
6206         PR target/43471
6207         * config/sh/sh.c (sh_legitimize_reload_address): Use
6208         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
6209         Remove a unneeded check for offset_base.
6210
6211 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
6212
6213         * configure: Regenerated.
6214
6215 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6216
6217         * config/s390/s390.c (s390_call_save_register_used): Switch back
6218         to HARD_REGNO_NREGS.
6219
6220 2010-04-15  Richard Guenther  <rguenther@suse.de>
6221
6222         * alias.c (alias_set_subset_of): Handle alias-set zero
6223         child properly.
6224
6225 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
6226             Julian Brown  <julian@codesourcery.com>
6227
6228         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
6229         alternatives according to use of high and low regs.
6230         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
6231         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
6232         optimizing for size on Thumb-2.
6233
6234 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
6235
6236         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
6237
6238 2010-04-15  Richard Guenther  <rguenther@suse.de>
6239
6240         * tree-ssa-structalias.c (struct variable_info): Add
6241         is_fn_info flag.
6242         (new_var_info): Initialize it.
6243         (dump_constraints): Support printing last added constraints.
6244         (debug_constraints): Adjust.
6245         (dump_constraint_graph): Likewise.
6246         (make_heapvar_for): Check for NULL cfun.
6247         (get_function_part_constraint): New function.
6248         (get_fi_for_callee): Likewise.
6249         (find_func_aliases): Properly implement IPA PTA constraints.
6250         (process_ipa_clobber): New function.
6251         (find_func_clobbers): Likewise.
6252         (insert_into_field_list_sorted): Remove.
6253         (create_function_info_for): Properly allocate vars for IPA mode.
6254         Do not use insert_into_field_list_sorted.
6255         (create_variable_info_for): Properly generate constraints for
6256         global vars in IPA mode.
6257         (dump_solution_for_var): Always dump the solution.
6258         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
6259         (find_what_var_points_to): Adjust.
6260         (pt_solution_set): Change.
6261         (pt_solution_ior_into): New function.
6262         (pt_solution_empty_p): Export.
6263         (pt_solution_includes_global): Adjust.
6264         (pt_solution_includes_1): Likewise.
6265         (pt_solutions_intersect_1): Likewise.
6266         (dump_sa_points_to_info): Check some invariants.
6267         (solve_constraints): Move constraint dumping ...
6268         (compute_points_to_sets): ... here.
6269         (ipa_pta_execute): ... and here.
6270         (compute_may_aliases): Do not re-compute points-to info
6271         locally if IPA info is available.
6272         (ipa_escaped_pt): New global var.
6273         (ipa_pta_execute): Properly implement IPA PTA.
6274         * tree-into-ssa.c (dump_decl_set): Support dumping
6275         decls not in referenced-vars.
6276         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
6277         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
6278         (dump_points_to_solution): Likewise.
6279         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
6280         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
6281         (remap_gimple_stmt): Reset call clobber/use information if necessary.
6282         (copy_decl_to_var): Copy DECL_PT_UID.
6283         (copy_result_decl_to_var): Likewise.
6284         * tree.c (make_node_stat): Initialize DECL_PT_UID.
6285         (copy_node_stat): Copy it.
6286         * tree.h (DECL_PT_UID): New macro.
6287         (SET_DECL_PT_UID): Likewise.
6288         (DECL_PT_UID_SET_P): Likewise.
6289         (struct tree_decl_minimal): Add pt_uid member.
6290         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
6291         (pt_solution_empty_p): Declare.
6292         (pt_solution_set): Adjust.
6293         (ipa_escaped_pt): Declare.
6294         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
6295         * gimple-pretty-print.c (pp_points_to_solution): New function.
6296         (dump_gimple_call): Dump call clobber/use information.
6297         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
6298         * tree-pass.h (TDF_ALIAS): New dump option.
6299         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
6300         * doc/invoke.texi (-fipa-pta): Update documentation.
6301
6302 2010-04-15  Richard Guenther  <rguenther@suse.de>
6303
6304         * Makefile.in (OBJS-common): Add gimple-fold.o.
6305         (gimple-fold.o): New rule.
6306         * tree.h (maybe_fold_offset_to_reference,
6307         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
6308         prototypes ...
6309         * gimple.h: ... here.
6310         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
6311         may_propagate_address_into_dereference): Move prototypes ...
6312         * gimple.h: ... here.
6313         * tree-ssa-ccp.c (get_symbol_constant_value,
6314         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
6315         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
6316         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
6317         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
6318         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
6319         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
6320         gimplify_and_update_call_from_tree): Move ...
6321         * gimple-fold.c: ... here.  New file.
6322         (ccp_fold_builtin): Rename to ...
6323         (gimple_fold_builtin): ... this.
6324         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
6325
6326 2010-04-15  Richard Guenther  <rguenther@suse.de>
6327
6328         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
6329         fit_double_type, force_fit_type_double, add_double_with_sign,
6330         neg_double, mul_double_with_sign, lshift_double, rshift_double,
6331         lrotate_double, rrotate_double, div_and_round_double): Move ...
6332         * double-int.c: ... here.
6333         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
6334         add_double, neg_double, mul_double_with_sign, mul_double,
6335         lshift_double, rshift_double, lrotate_double, rrotate_double,
6336         div_and_round_double): Move prototypes ...
6337         * double-int.h: ... here.
6338
6339 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
6340
6341         PR target/43742
6342         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
6343         matching constraints to ensure inputs match the output.
6344
6345 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
6346
6347         PR target/43742
6348         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
6349         in an input-only operand.
6350
6351 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
6352
6353         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
6354         (double_int_not, double_int_lshift, double_int_rshift): Declare.
6355         (double_int_negative_p): Convert to static inline function.
6356         * double-int.c (double_int_lshift, double_int_lshift): New functions.
6357         (double_int_negative_p): Remove.
6358         * tree.h (lshift_double, rshift_double):
6359         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
6360         * fold-const.c (fold_convert_const_int_from_real,
6361         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
6362         (lshift_double): Change type of arith argument to bool.
6363         (rshift_double): Change type of arith argument to bool. Correct
6364         comment.
6365         * expmed.c (mask_rtx, lshift_value): (Ditto.).
6366
6367 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
6368
6369         PR target/21803
6370         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
6371         at the start and end of the then/else blocks, and omit them from the
6372         conversion.
6373         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
6374         argument; all callers changed.  Pass zero to old_insns_match_p instead.
6375         (flow_find_head_matching_sequence): New function.
6376         (old_insns_match_p): Check REG_EH_REGION notes for calls.
6377         * basic-block.h (flow_find_cross_jump,
6378         flow_find_head_matching_sequence): Declare functions.
6379
6380 2010-04-14  Jason Merrill  <jason@redhat.com>
6381
6382         PR c++/36625
6383         * c-common.c (attribute_takes_identifier_p): New fn.
6384         * c-common.h: Declare it.
6385
6386 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
6387
6388         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
6389         splitter condition.
6390         (*udivmod<mode>4): Ditto.
6391
6392 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
6393
6394         * config/i386/i386.md (maxmin_int): Rename code attribute from
6395         maxminiprefix and update all users.
6396         (maxmin_float): Ditto from maxminfprefix.
6397         (logic): Ditto from logicprefix.
6398         (absneg_mnemonic): Ditto from absnegprefix.
6399         * config/i386/mmx.md: Update all users of maxminiprefix,
6400         maxminfprefix and logicprefix for rename.
6401         * config/i386/sse.md: Ditto.
6402         * config/i386/sync.md (sync_<code><mode>): Update for
6403         logicprefix rename.
6404
6405 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6406
6407         PR 42966
6408         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
6409         warnings converted to errors.
6410
6411 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
6412
6413         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
6414         used insn_type variable.
6415         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
6416         to avoid set-but-not-used warning.
6417
6418 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
6419
6420         * df-core.c (df_ref_debug): Change format string placeholder
6421         from 0x%x to %#x.
6422         * dwarf2asm.c (dw2_asm_output_data_raw,
6423         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
6424         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
6425         * dwarf2out.c (output_cfi, output_cfi_directive,
6426         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
6427         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
6428         Ditto.
6429         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
6430         * print-rtl.c (print_rtx): Ditto.
6431
6432 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
6433
6434         PR middle-end/42694
6435         * builtins.c (expand_builtin_pow_root): New function to expand pow
6436         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
6437         series of sqrt and cbrt calls under -ffast-math.
6438         (expand_builtin_pow): Call it.
6439
6440 2010-04-14  Michael Matz  <matz@suse.de>
6441
6442         PR tree-optimization/42963
6443         * tree-cfg.c (touched_switch_bbs): New static variable.
6444         (group_case_labels_stmt): New function broken out from ...
6445         (group_case_labels): ... here, use the above.
6446         (start_recording_case_labels): Allocate touched_switch_bbs.
6447         (end_recording_case_labels): Deallocate it, call
6448         group_case_labels_stmt.
6449         (gimple_redirect_edge_and_branch): Remember index of affected BB.
6450
6451 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
6452
6453         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
6454         from insn template.
6455
6456 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
6457
6458         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
6459
6460 2010-04-13  Jan Hubicka  <jh@suse.cz>
6461
6462         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
6463         of optimized out static functions.
6464         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
6465         cost computation.  Also sanity check for overflows.
6466         (update_caller_keys): Update cgraph_edge_badness call; properly
6467         update fibheap and sanity check that it is up to date.
6468         (add_new_edges_to_heap): Update cgraph_edge_badness.
6469         (cgraph_decide_inlining_of_small_function): Likewise;
6470         add sanity checking that badness in heap is up to date;
6471         improve dumping of reason; Update badness of calls to the
6472         offline copy of function currently inlined; dump badness
6473         of functions not inlined because of unit growth limits.
6474
6475 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
6476
6477         PR middle-end/32628
6478         * c-common.c (pointer_int_sum): Disregard overflow that occured only
6479         because of sign-extension change when converting to sizetype here...
6480         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
6481
6482         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
6483         the folding to constants.  Remove redundant final conversion.
6484         (fold_binary) <associate>: Do not associate if the re-association of
6485         constants alone overflows.
6486         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
6487         to the end of the list.
6488         (multiple_of_p) <COND_EXPR>: New case.
6489
6490 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6491
6492         * opt-functions.awk (opt_sanitized_name): New.
6493         (opt_enum): New.
6494         * optc-gen.awk: Use it
6495         * opth-gen.awk: Use it.
6496
6497 2010-04-13  Martin Jambor  <mjambor@suse.cz>
6498
6499         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
6500         (sra_modify_assign): Delete stmts loading dead data even if racc has no
6501         children.  Call replace_uses_with_default_def_ssa_name to handle
6502         SSA_NAES on lhs.
6503
6504 2010-04-13  Michael Matz  <matz@suse.de>
6505
6506         PR middle-end/43730
6507         * builtins.c (expand_builtin_interclass_mathfn): Also create
6508         a register if the predicate doesn't match.
6509
6510 2010-04-13  Diego Novillo  <dnovillo@google.com>
6511
6512         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
6513         * c-pch.c: Include timevar.h.
6514         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
6515         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
6516         * ggc-common.c: Include timevar.h.
6517         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
6518         * timevar.def (TV_PCH_SAVE): Define.
6519         (TV_PCH_CPP_SAVE): Define.
6520         (TV_PCH_PTR_REALLOC): Define.
6521         (TV_PCH_PTR_SORT): Define.
6522         (TV_PCH_RESTORE): Define.
6523         (TV_PCH_CPP_RESTORE): Define.
6524
6525 2010-04-13  Michael Matz  <matz@suse.de>
6526
6527         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
6528         into MINUS_EXPRs.
6529         (can_reassociate_p): New function.
6530         (break_up_subtract_bb, reassociate_bb): Use it.
6531
6532 2010-04-13  Richard Guenther  <rguenther@suse.de>
6533
6534         PR bootstrap/43737
6535         * builtins.c (c_readstr): Fix assert.
6536
6537 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
6538
6539         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
6540         when generating cltd insn.
6541
6542         (*ashl<mode>3_1): Remove special handling for register operand 2.
6543         (*ashlsi3_1_zext): Ditto.
6544         (*ashlhi3_1): Ditto.
6545         (*ashlhi3_1_lea): Ditto.
6546         (*ashlqi3_1): Ditto.
6547         (*ashlqi3_1_lea): Ditto.
6548         (*<shiftrt_insn><mode>3_1): Ditto.
6549         (*<shiftrt_insn>si3_1_zext): Ditto.
6550         (*<shiftrt_insn>qi3_1_slp): Ditto.
6551         (*<rotate_insn><mode>3_1): Ditto.
6552         (*<rotate_insn>si3_1_zext): Ditto.
6553         (*<rotate_insn>qi3_1_slp): Ditto.
6554
6555 2010-04-13  Richard Guenther  <rguenther@suse.de>
6556
6557         * tree-ssa-structalias.c (callused_id): Remove.
6558         (call_stmt_vars): New.
6559         (get_call_vi): Likewise.
6560         (lookup_call_use_vi): Likewise.
6561         (lookup_call_clobber_vi): Likewise.
6562         (get_call_use_vi): Likewise.
6563         (get_call_clobber_vi): Likewise.
6564         (make_transitive_closure_constraints): Likewise.
6565         (handle_const_call): Adjust to do per-call call-used handling.
6566         (handle_pure_call): Likewise.
6567         (find_what_var_points_to): Remove general callused handling.
6568         (init_base_vars): Likewise.
6569         (init_alias_vars): Initialize call_stmt_vars.
6570         (compute_points_to_sets): Process call-used and call-clobbered
6571         vars for call statements.
6572         (delete_points_to_sets): Free call_stmt_vars.
6573
6574 2010-04-13  Richard Guenther  <rguenther@suse.de>
6575
6576         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
6577         Only add RW dependence for dependence distance zero.
6578         Adjust maximal vectorization factor according to dependences.
6579         Move alignment handling ...
6580         (vect_find_same_alignment_drs): ... here.  New function.
6581         (vect_analyze_data_ref_dependences): Adjust.
6582         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
6583         (vect_analyze_data_refs): Adjust minimal vectorization factor
6584         according to data references.
6585         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
6586         dependences before determining the vectorization factor.
6587         Analyze alignment after determining the vectorization factor.
6588         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
6589         dependences before alignment.
6590         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
6591         Adjust prototype.
6592         (vect_analyze_data_refs): Likewise.
6593         (MAX_VECTORIZATION_FACTOR): New define.
6594
6595 2010-04-13  Duncan Sands  <baldrick@free.fr>
6596
6597         * except.h (lang_eh_type_covers): Remove.
6598         * except.c (lang_eh_type_covers): Likewise.
6599
6600 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6601             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6602
6603         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
6604         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
6605         UNITS_PER_LONG where it is ABI relevant.
6606         (s390_return_addr_rtx): Likewise.
6607         (s390_back_chain_rtx): Likewise.
6608         (s390_frame_area): Likewise.
6609         (s390_frame_info): Likewise.
6610         (s390_initial_elimination_offset): Likewise.
6611         (save_gprs): Likewise.
6612         (s390_emit_prologue): Likewise.
6613         (s390_emit_epilogue): Likewise.
6614         (s390_function_arg_advance): Likewise.
6615         (s390_function_arg): Likewise.
6616         (s390_va_start): Likewise.
6617         (s390_gimplify_va_arg): Likewise.
6618         (s390_function_profiler): Likewise.
6619         (s390_optimize_prologue): Likewise.
6620         (s390_rtx_costs): Likewise.
6621         (s390_secondary_reload): Likewise.
6622         (s390_promote_function_mode): Likewise.
6623         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
6624         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
6625         registers available.
6626         (s390_unwind_word_mode): New function.
6627         (s390_function_value): Split 64 bit values into register pair if
6628         used as return value.
6629         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
6630         function call parameters.  Handle parallels.
6631         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
6632         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
6633         (DWARF_CIE_DATA_ALIGNMENT): New macro.
6634         (s390_expand_setmem): Remove unused variable src_addr.
6635         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
6636         deal with 64 bit registers.
6637         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
6638         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
6639         (UNITS_PER_LONG): New macro.
6640         * libjava/include/s390-signal.h: Define extended ucontext
6641         structure containing the upper halfs of the 64 bit registers.
6642
6643 2010-04-13  Simon Baldwin  <simonb@google.com>
6644
6645         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
6646
6647 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
6648
6649         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
6650         rvalue on the RHS if the LHS is of a non-renamable type.
6651         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
6652
6653 2010-04-13  Matthias Klose  <doko@ubuntu.com>
6654
6655         * gcc.c (cc1_options): Handle -iplugindir before processing
6656         the cc1 spec. Only add -iplugindir once.
6657         (cpp_unique_options): Add -iplugindir option if -fplugin* options
6658         found.
6659         * common.opt (iplugindir): Remove `Separate' property, initialize.
6660         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
6661         option.
6662         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
6663         (distclean): Remove plugin dir.
6664         * doc/invoke.texi: Document -iplugindir.
6665
6666 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
6667
6668         * doc/plugins.texi (Loading Plugins): Document short
6669         -fplugin=foo option.
6670         (Plugin API): Mention default_plugin_dir_name function.
6671
6672         * gcc.c (find_file_spec_function): Add new declaration.
6673         (static_spec_func): Use it for "find-file".
6674         (find_file_spec_function): Add new function.
6675         (cc1_options): Add -iplugindir option if -fplugin* options found.
6676
6677         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
6678
6679         * plugin.c (add_new_plugin): Updated comment, and handle short
6680         plugin name.
6681         (default_plugin_dir_name): Added new function.
6682
6683         * common.opt (iplugindir): New option to set the plugin directory.
6684
6685 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
6686
6687         * config/i386/i386.md (any_rotate): New code iterator.
6688         (rotate_insn): New code attribute.
6689         (rotate): Ditto.
6690         (SWIM124): New mode iterator.
6691         (<rotate_insn>ti3): New expander.
6692         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
6693         any_rotate code iterator.
6694         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
6695         using any_rotate code iterator and SWIM124 mode iterator.
6696         (ix86_rotlti3): New insn_and_split pattern.
6697         (ix86_rotrti3): Ditto.
6698         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
6699         ix86_rotl{di,ti}3 patterns.
6700         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
6701         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
6702         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
6703         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
6704         code iterator and SWI mode iterator.
6705         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
6706         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
6707         code iterator.
6708         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
6709         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
6710         (bswap rotatert splitter): Add splitter.
6711         (bswap splitter): Macroize splitter using any_rotate code iterator.
6712         Add insn predicate to split only for TARGET_USE_XCHGB or when
6713         optimizing function for size.
6714
6715 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
6716
6717         * config/pa/pa.c (emit_move_sequence): Remove use of
6718         deleted variable flag_argument_noalias.
6719
6720 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6721
6722         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
6723         configurations.
6724         Add to unsupported targets list.
6725         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
6726         sparc*-sun-solaris2.[567]* from target lists.
6727         * configure: Regenerate.
6728         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
6729         removal.
6730         Remove Solaris 7 patch references.
6731         (Specific, sparc-sun-solaris2.7): Removed.
6732         (sparc-sun-solaris2*): Update Solaris 7 example.
6733         (sparc64-*-solaris2*): Likewise.
6734
6735 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6736
6737         * config.build (alpha*-dec-osf4*): Remove.
6738         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
6739         of obsolete configurations.
6740         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
6741         support.
6742         * config/alpha/t-osf4: Renamed to ...
6743         * config/alpha/t-osf5: ... this.
6744         * config/alpha/osf.h: Renamed to ...
6745         * config/alpha/osf5.h: ... this.
6746         Merged old osf5.h contents.
6747         Update comments.
6748         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
6749         (EXTRA_SPECS): Removed.
6750         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
6751         reflect removal of Tru64 UNIX V4.0/V5.0 support.
6752         Document that.
6753
6754 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6755
6756         * doc/contrib.texi (Contributors, Rainer Orth): Update.
6757
6758 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
6759
6760         PR/43702
6761         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
6762         __thiscall convention.
6763
6764 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
6765
6766         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
6767         orig_base.
6768         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
6769
6770 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
6771
6772         * function.c (assign_parms_initialize_all): Add unused attribute
6773         to fntype.
6774
6775 2010-04-12  Richard Guenther  <rguenther@suse.de>
6776
6777         * gsstruct.def (GSS_CALL): New.
6778         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
6779         * gimple.h: Include tree-ssa-alias.h.
6780         (struct gimple_statement_call): New.
6781         (union gimple_statement_struct_d): Add gimple_call member.
6782         (gimple_call_reset_alias_info): Declare.
6783         (gimple_call_use_set): New function.
6784         (gimple_call_clobber_set): Likewise.
6785         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
6786         * gimple.c (gimple_call_reset_alias_info): New function.
6787         (gimple_build_call_1): Call it.
6788         * lto-streamer-in.c (input_gimple_stmt): Likewise.
6789         * tree-inline.c (remap_gimple_stmt): Likewise.
6790         (expand_call_inline): Remove callused handling.
6791         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
6792         * tree-dfa.c (dump_variable): Likewise.
6793         * tree-parloops.c (parallelize_loops): Likewise.
6794         * tree-ssa.c (init_tree_ssa): Likewise.
6795         (delete_tree_ssa): Likewise.
6796         * tree-flow-inline.h (is_call_used): Remove.
6797         * tree-flow.h (struct gimple_df): Remove callused member.
6798         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
6799         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
6800         (ref_maybe_used_by_call_p_1): Simplify.
6801         (call_may_clobber_ref_p_1): Likewise.
6802         * tree-ssa-structalias.c (compute_points_to_sets): Set
6803         the call stmt used and clobbered sets.
6804         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
6805         (find_tail_calls): Verify the tail call.
6806
6807 2010-04-12  Richard Guenther  <rguenther@suse.de>
6808
6809         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
6810         single-iteration always-inline inlining.
6811         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
6812         (cgraph_decide_inlining): Do not handle always-inline specially.
6813         (try_inline): Remove always-inline cycle detection special case.
6814         Do not recurse on always-inlines.
6815         (cgraph_early_inlining): Do not iterate if not optimizing.
6816         (cgraph_gate_early_inlining): remove.
6817         (pass_early_inline): Run unconditionally.
6818         (gate_cgraph_decide_inlining): New function.
6819         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
6820         not inlining or optimizing.
6821         (cgraph_decide_inlining_of_small_functions): Also consider
6822         always-inline functions.
6823         (cgraph_default_inline_p): Return true for nodes which should
6824         disregard inline limits.
6825         (estimate_function_body_sizes): Assume zero size and time for
6826         nodes which are marked as disregarding inline limits.
6827         (cgraph_decide_recursive_inlining): Do not perform recursive
6828         inlining on always-inline nodes.
6829
6830 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
6831
6832         PR bootstrap/43699
6833         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
6834         for exprs satisfying handled_component_p.
6835
6836 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
6837
6838         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
6839         non-constant aggregate elements.
6840
6841         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
6842         is a real initialization.
6843
6844 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
6845
6846         PR c/36774
6847         * c-decl.c (start_function): Move forward check for nested function.
6848
6849 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
6850
6851         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
6852         * config/sh/sh.c: Include reload.h.
6853         (sh_legitimize_reload_address): New.
6854         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
6855         sh_legitimize_reload_address.
6856
6857 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
6858
6859         * config/sh/sh.md (*movqi_pop): New insn pattern.
6860         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
6861
6862 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
6863
6864         * config/i386/i386.md (any_shiftrt): New code iterator.
6865         (shiftrt_insn): New code attribute.
6866         (shiftrt): Ditto.
6867         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
6868         using any_shiftrt code iterator.
6869         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
6870         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
6871         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
6872         pattern from corresponding peephole2 patterns.
6873         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
6874         using any_shiftrt code iterator.
6875         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
6876         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
6877         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
6878         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
6879         *{ashr,lshr}<mode>3_cmp_zext.
6880         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
6881
6882 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
6883
6884         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
6885         scratch register.
6886         (*lshr<mode>3_cconly): Ditto.
6887
6888 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
6889
6890         * config/i386/i386.md (lshr<mode>3): Macroize expander from
6891         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
6892         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
6893         pattern from *lshr{di,ti}3_1 and corresponding splitters using
6894         DWI mode iterator.
6895         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
6896         from corresponding peephole2 patterns.
6897         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
6898         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
6899         and *lshrdi3_1_rex64 using SWI mode iterator.
6900         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
6901         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
6902         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
6903         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
6904         and *lshrdi3_cmp_rex64 using SWI mode iterator.
6905         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
6906         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
6907         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
6908         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
6909         SWI mode iterator.
6910
6911 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
6912
6913         * config/i386/i386.md (ashr<mode>3): Macroize expander from
6914         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
6915         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
6916         pattern from *ashr{di,ti}3_1 and corresponding splitters using
6917         DWI mode iterator.
6918         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
6919         from corresponding peephole2 patterns.
6920         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
6921         (ashrsi3_cvt): Rename from ashrsi3_31.
6922         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
6923         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
6924         and x86_64_shift_adj_3 using SWI48 mode iterator.
6925         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
6926         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
6927         and *ashrdi3_1_rex64 using SWI mode iterator.
6928         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
6929         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
6930         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
6931         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
6932         and *ashrdi3_cmp_rex64 using SWI mode iterator.
6933         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
6934         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
6935         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
6936         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
6937         SWI mode iterator.
6938         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
6939         * config/i386/i386.c (ix86_split_ashr): Update for renamed
6940         x86_shift<mode>_adj_3 expanders.
6941
6942 2010-04-10  Wei Guozhi  <carrot@google.com>
6943
6944         PR target/42601
6945         * config/arm/arm.c (arm_pic_static_addr): New function.
6946         (legitimize_pic_address): Call arm_pic_static_addr when it detects
6947         a static symbol.
6948         (arm_output_addr_const_extra): Output expression for new pattern.
6949         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
6950
6951 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
6952
6953         * ira-costs.c (record_reg_classes): Ignore alternatives that are
6954         not enabled.
6955
6956         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
6957         * web.c: Include "insn-config.h" and "recog.h".
6958         (union_match_dups): New function.
6959         (web_main): Call it.
6960         (union_defs): Don't try to recognize match_dups.
6961
6962         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
6963         if doing so would replace the entire pattern.
6964
6965 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
6966
6967         PR target/43707
6968         PR target/43709
6969         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
6970         and splitter pattern.  Change splitter operand 1 predicate to
6971         nonmemory_operand.
6972
6973 2010-04-09  Martin Jambor  <mjambor@suse.cz>
6974
6975         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
6976         lattices are addresses of CONST_DECLs with the same initial value.
6977         (ipcp_print_all_lattices): Print values of CONST_DECLs.
6978         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
6979
6980 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
6981             Bernd Schmidt  <bernds@codesourcery.com>
6982
6983         * loop-invariant.c (replace_uses): New static function.
6984         (move_invariant_reg): Use it to ensure we can replace the uses.
6985
6986 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
6987
6988         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
6989         function template.
6990         (picochip_override_options): Enable section anchors only above -O1.
6991         (picochip_reorg): Fixed a couple of build warnings.
6992
6993 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6994
6995         * configure.ac (plugin -rdynamic test): Log result.
6996         * configure: Regenerate.
6997         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
6998         (RDYNAMIC_SPEC): Define.
6999         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
7000
7001 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7002
7003         * configure.ac: Determine Sun ld version numbers.
7004         (comdat_group): Restrict GNU ld version checks to gld.
7005         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
7006         (enable_comdat): Support --enable-comdat.
7007         * configure: Regenerate.
7008         * doc/install.texi (Configuration): Document --enable-comdat.
7009
7010 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7011
7012         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
7013         * config/sol2-gld.h: ... here.
7014         * config.gcc (sparc*-*-solaris2*): Reflect this.
7015         (i[34567]86-*-solaris2*): Use it.
7016
7017 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
7018
7019         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
7020         setup_clocks_p.
7021         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
7022
7023 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7024
7025         PR 42965
7026         * diagnostic.c (diagnostic_initialize): Initialize
7027         some_warnings_are_errors.
7028         (diagnostic_finish): New.
7029         (diagnostic_action_after_output): Call it before exiting.
7030         (diagnostic_report_diagnostic): Do not print message here. Set
7031         some_warnings_are_errors.
7032         * diagnostic.h (diagnostic_context): Delete
7033         issue_warnings_are_errors_message. Add some_warnings_are_errors.
7034         (diagnostic_finish): Declare.
7035         * toplev.c (toplev_main): Call it before exit.
7036
7037 2010-04-09  Jason Merrill  <jason@redhat.com>
7038
7039         PR c++/42623
7040         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
7041         for incomplete type.
7042
7043         PR c++/41788
7044         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
7045         based on a warning flag.
7046
7047 2010-04-09  Richard Guenther  <rguenther@suse.de>
7048
7049         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
7050
7051 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
7052
7053         PR bootstrap/43684
7054         * varasm.c (default_assemble_visibility): Wrap vars that are
7055         set, but unused, by targets without GAS.
7056         * config/rs6000/rs6000.c (paired_emit_vector_compare):
7057         Remove set, but unused, vars.
7058         (rs6000_legitimize_tls_address): Likewise.
7059         (altivec_expand_dst_builtin): Likewise.
7060         * config/darwin.c (machopic_classify_symbol): Likewise.
7061         (machopic_indirection_name): Likewise.
7062
7063 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
7064
7065         * config/i386/i386.md (DWI): New mode iterator.
7066         (S): New mode attribute.
7067         (shift_operand): Ditto.
7068         (shift_immediate_operand): Ditto.
7069         (ashl_input_operand): Ditto.
7070         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
7071         using SDWIM mode iterator.
7072         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
7073         pattern from *ashl{di,ti}3_1 and corresponding splitters using
7074         DWI mode iterator.
7075         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
7076         from corresponding peephole2 patterns.
7077         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
7078         and x86_64_shift_adj_1 using SWI48 mode iterator.
7079         (x86_shift<mode>_adj_2): Ditto.
7080         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
7081         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
7082         using SWI48 mode iterator.
7083         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
7084         *ashldi3_cmp_rex64 using SWI mode iterator.
7085         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
7086         *ashldi3_cconly_rex64 using SWI mode iterator.
7087         * config/i386/i386.c (ix86_split_ashl): Update for renamed
7088         x86_shift<mode>_adj_{1,2}.
7089         (ix86_split_ashr): Ditto.
7090         (ix86_split_lshr): Ditto.
7091
7092 2010-04-09  Richard Guenther  <rguenther@suse.de>
7093
7094         * target.h (builtin_conversion): Pass in input and output types.
7095         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
7096         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
7097         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
7098         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
7099
7100         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
7101         Handle AVX modes.
7102         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
7103
7104 2010-04-09  Richard Guenther  <rguenther@suse.de>
7105
7106         PR target/43152
7107         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
7108
7109 2010-04-09  Richard Guenther  <rguenther@suse.de>
7110
7111         * tree-vectorizer.h (struct _stmt_vec_info): Document
7112         that vectype is the type of the LHS.
7113         (supportable_widening_operation, supportable_narrowing_operation):
7114         Get both input and output vector types as arguments.
7115         (vect_is_simple_use_1): Declare.
7116         (get_same_sized_vectype): Likewise.
7117         * tree-vect-loop.c (vect_determine_vectorization_factor):
7118         Set STMT_VINFO_VECTYPE to the vector type of the def.
7119         (vectorizable_reduction): Adjust.
7120         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
7121         Adjust.  Specify the output vector type.
7122         (vect_pattern_recog_1): Adjust.
7123         * tree-vect-stmts.c (get_same_sized_vectype): New function.
7124         (vectorizable_call): Adjust.
7125         (vectorizable_conversion): Likewise.
7126         (vectorizable_operation): Likewise.
7127         (vectorizable_type_demotion): Likewise.
7128         (vectorizable_type_promotion): Likewise.
7129         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
7130         the def.
7131         (vect_is_simple_use_1): New function.
7132         (supportable_widening_operation): Get both input and output
7133         vector types.
7134         (supportable_narrowing_operation): Likewise.
7135         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
7136
7137 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
7138
7139         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
7140         __thiscall and _thiscall as predefined macros.
7141         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
7142         thiscall attribute handling.
7143         (ix86_comp_type_attributes): Likewise.
7144         (ix86_function_regparm): Likewise.
7145         (ix86_return_pops_args): Likewise.
7146         (init_cumulative_args): Likewise.
7147         (find_drap_reg): Likewise.
7148         (ix86_static_chain): Likewise.
7149         (x86_this_parameter): Likewise.
7150         (x86_output_mi_thunk): Likewise.
7151         (ix86_attribute_table): Add description for thiscall attribute.
7152         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
7153         * doc/extend.texi: Add documentation for thiscall.
7154
7155 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7156
7157         PR c++/28584
7158         * c.opt (Wint-to-pointer-cast): Available in C++.
7159         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
7160
7161 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
7162
7163         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
7164         * calls.c (expand_call): Pass the function type to aggregate_value_p.
7165         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
7166         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
7167         function type instead.  Reorder and simplify checks.
7168
7169         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
7170
7171 2010-04-08  Jing Yu  <jingyu@google.com>
7172             Zdenek Dvorak  <ook@ucw.cz>
7173
7174         PR tree-optimization/42720
7175         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
7176         loop unswitch conditions here from ...
7177         (tree_unswitch_single_loop): ... here.
7178
7179 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
7180
7181         * tree-if-conv.c: Fix comments and simplify logic.
7182
7183 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
7184
7185         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
7186         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
7187         (main_tree_if_conversion): Update call to tree_if_conversion.
7188
7189 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7190
7191         PR 42485
7192         * doc/invoke.texi (-b,-V): Delete.
7193         * doc/tm.texi: Do not mention -b.
7194         * gcc.c (display_help): Delete -b and -V.
7195         (process_command): Delete -b and -V.
7196         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
7197
7198 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
7199             Wolfgang Gellerich  <gellerich@de.ibm.com>
7200
7201         Implement target hook for loop unrolling
7202         * target.h (loop_unroll_adjust): Add a new target hook function.
7203         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
7204         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
7205         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
7206         (s390_loop_unroll_adjust): Implement the new target hook for s390.
7207         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
7208         target hook.
7209         (decide_unroll_stupid): Likewise.
7210
7211 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7212
7213         PR target/43643
7214         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
7215
7216 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7217
7218         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
7219         (Specific, *-*-solaris2*): Likewise.
7220         Don't prefer Sun as over GNU as.
7221
7222 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
7223
7224         * config/s390/s390.c (override_options): Adjust the z10 defaults
7225         for max-unroll-times, max-completely-peeled-insns
7226         and max-completely-peel-times.
7227
7228 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7229
7230         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
7231         instructions for z10.
7232         (s390_expand_setmem): Likewise.
7233         (s390_expand_cmpmem): Likewise.
7234
7235 2010-04-08  Richard Guenther  <rguenther@suse.de>
7236
7237         PR tree-optimization/43679
7238         * tree-ssa-pre.c (eliminate): Only propagate copies.
7239
7240 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
7241
7242         PR bootstrap/43681
7243         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
7244         set but not used variable warning.
7245
7246 2010-04-08  Wei Guozhi  <carrot@google.com>
7247
7248         PR target/41653
7249         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
7250         (arm_size_rtx_costs): Call the new function when optimized for size.
7251
7252 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
7253
7254         PR debug/43670
7255         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
7256         op0 is not a MEM, just return NULL instead of assertion
7257         failure.
7258         (discover_nonconstant_array_refs): Don't walk debug stmts.
7259
7260 2010-04-08  Doug Kwan  <dougkwan@google.com>
7261
7262         * configure.ac: Recognize gold and do not use its version number
7263         to test ld features.
7264         * configure: Regenerate.
7265
7266 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
7267
7268         PR middle-end/40815
7269         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
7270         (negate_value): Move code to push elements to broken_up_substracts ...
7271         (eliminate_plus_minus_pair): ... here.  Push operands that have no
7272         negative pair to plus_negates.
7273         (repropagate_negates, init_reassoc, fini_reassoc): Update.
7274
7275 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7276
7277         * doc/install.texi (Configuration): Move description of
7278         --enable-lto, --with-libelf*, --enable-gold from Java section to
7279         general section.
7280
7281         * doc/generic.texi (Working with declarations)
7282         (Function Properties, C and C++ Trees): Fix typos.
7283         * doc/sourcebuild.texi (Top Level): Likewise.
7284
7285 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
7286
7287         PR c/18624
7288         * tree.h (DECL_READ_P): Define.
7289         (struct tree_decl_common): Add decl_read_flag.
7290         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
7291         a set but not used warning.
7292         (merge_decls): Merge DECL_READ_P flag.
7293         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
7294         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
7295         * c-common.c (handle_used_attribute, handle_unused_attribute):
7296         Likewise.
7297         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
7298         New prototypes.
7299         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
7300         New functions.
7301         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
7302         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
7303         c_parser_binary_expression, c_parser_cast_expression,
7304         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
7305         Call default_function_array_read_conversion instead of
7306         default_function_array_conversion where needed.
7307         (c_parser_unary_expression, c_parser_conditional_expression,
7308         c_parser_postfix_expression_after_primary, c_parser_initelt):
7309         Likewise.  Call mark_exp_read where needed.
7310         (c_parser_statement_after_labels, c_parser_asm_operands,
7311         c_parser_typeof_specifier, c_parser_sizeof_expression,
7312         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
7313         where needed.
7314         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
7315         New.
7316         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
7317         (warn_unused_but_set_parameter): Default to warn_unused
7318         && extra_warnings.
7319         * doc/invoke.texi: Document -Wunused-but-set-variable and
7320         -Wunused-but-set-parameter.
7321
7322         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
7323         used count variable.
7324         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
7325         when operandN variables aren't used in the body of the expander
7326         or splitter.
7327         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
7328         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
7329         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
7330         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
7331         FOR_EACH_IMM_USE_ON_STMT): Likewise.
7332         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
7333         * tree.c (PROCESS_ARG): Likewise.
7334
7335 2010-04-07  Simon Baldwin  <simonb@google.com>
7336
7337         * diagnostic.h (diagnostic_override_option_index): New macro to
7338         set a diagnostic's option_index.
7339         * c-tree.h (c_cpp_error): Add warning reason argument.
7340         * opts.c (_warning_as_error_callback): New.
7341         (register_warning_as_error_callback): Store callback for
7342         warnings enabled via enable_warning_as_error.
7343         (enable_warning_as_error): Call callback, minor code tidy.
7344         * opts.h (register_warning_as_error_callback): Declare.
7345         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
7346         response to -Werror=.
7347         (c_common_init_options): Register warning_as_error_callback in opts.c.
7348         * common.opt: Add -Wno-cpp option.
7349         * c-common.c (struct reason_option_codes_t): Map cpp warning
7350         reason codes to gcc option indexes.
7351         * (c_option_controlling_cpp_error): New function, lookup the gcc
7352         option index for a cpp warning reason code.
7353         * (c_cpp_error): Add warning reason argument, call
7354         c_option_controlling_cpp_error for diagnostic_override_option_index.
7355         * doc/invoke.texi: Document -Wno-cpp.
7356
7357 2010-04-07  Richard Guenther  <rguenther@suse.de>
7358
7359         * ipa-reference.c (mark_load): Use get_base_address.
7360         (mark_store): Likewise.
7361
7362         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
7363         inserting GIMPLE_NOPs into the IL.
7364         * tree-ssa-structalias.c (get_constraint_for_component_ref):
7365         Explicitly strip handled components and indirect references.
7366
7367         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
7368         folding address expressions.
7369         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
7370         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
7371         operand_equal_p to compare decls.
7372         (ptr_deref_may_alias_decl_p): Likewise.
7373         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
7374         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
7375         Handle reversed comparison ops.
7376         * tree-sra.c (asm_visit_addr): Use get_base_address.
7377         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
7378         * ipa-reference.c (mark_address): Use get_base_address.
7379
7380 2010-04-07  Richard Guenther  <rguenther@suse.de>
7381
7382         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
7383         Propagate constants everywhere.
7384
7385 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
7386
7387         PR debug/43516
7388         * tree.c (MAX_INT_CACHED_PREC): Define.
7389         (nonstandard_integer_type_cache): New array.
7390         (build_nonstandard_integer_type): Cache results for precision
7391         <= MAX_INT_CACHED_PREC.
7392
7393 2010-04-07  Richard Guenther  <rguenther@suse.de>
7394
7395         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
7396         -fargument-noalias-global, -fargument-noalias-anything): Remove.
7397         * common.opt: Likewise.
7398         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
7399         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
7400         (nonoverlapping_memrefs_p): Likewise.
7401         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
7402         * opts.c (common_handle_option): Handle OPT_fargument_alias,
7403         OPT_fargument_noalias, OPT_fargument_noalias_anything and
7404         OPT_fargument_noalias_global for backward compatibility.
7405
7406 2010-04-07  Richard Guenther  <rguenther@suse.de>
7407
7408         PR tree-optimization/43270
7409         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
7410         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
7411         * tree-ssa-pre.c (phi_translate_1): Adjust.
7412         (fully_constant_expression): Split out vn_reference handling to ...
7413         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
7414         Fold reads from constant strings.
7415         (vn_reference_lookup): Handle fully constant references.
7416         (vn_reference_lookup_pieces): Likewise.
7417         * Makefile.in (expmed.o-warn): Add -Wno-error.
7418
7419 2010-04-07  Martin Jambor  <mjambor@suse.cz>
7420
7421         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
7422
7423 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
7424
7425         PR driver/41594
7426         * gcc.c: Add -static-libstdc++ to list of recognized options.
7427
7428 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7429
7430         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
7431
7432 2010-04-07  Richard Guenther  <rguenther@suse.de>
7433
7434         PR middle-end/42617
7435         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
7436         bases build simple mem attributes to retain points-to information.
7437
7438 2010-04-07  Richard Guenther  <rguenther@suse.de>
7439
7440         PR middle-end/42617
7441         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
7442         preserve points-to related information.
7443
7444 2010-04-07  Richard Guenther  <rguenther@suse.de>
7445
7446         PR middle-end/42617
7447         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
7448         discard plain indirect references.
7449         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
7450         * tree.c (tree_nop_conversion): Likewise.
7451
7452 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
7453
7454         PR debug/43628
7455         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
7456
7457 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
7458
7459         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
7460         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
7461
7462 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
7463
7464         * tree-if-conv.c: Fix indentation and comments.
7465
7466 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
7467
7468         * tree-if-conv.c: Sort static functions in topological order.
7469
7470 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
7471
7472         * tree-if-conv.c: Fix indentation and comments.
7473
7474 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
7475
7476         PR middle-end/43519
7477         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
7478         lang_hooks.types.type_for_size instead of
7479         build_nonstandard_integer_type.
7480         When converting an unsigned type to signed, double its precision.
7481         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
7482         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
7483         (graphite_create_new_loop_guard): When ub + 1 wraps around,
7484         use lb <= ub.
7485
7486 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
7487
7488         PR middle-end/43519
7489         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
7490         POINTER_PLUS_EXPR for pointer types.
7491
7492 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
7493
7494         PR middle-end/43519
7495         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
7496         * graphite-clast-to-gimple.c: Include langhooks.h.
7497         (max_signed_precision_type): New.
7498         (max_precision_type): Takes two types as arguments.
7499         (precision_for_value): New.
7500         (precision_for_interval): New.
7501         (gcc_type_for_interval): New.
7502         (gcc_type_for_value): New.
7503         (gcc_type_for_clast_term): New.
7504         (gcc_type_for_clast_red): New.
7505         (gcc_type_for_clast_bin): New.
7506         (gcc_type_for_clast_expr): Split up into several functions.
7507         (gcc_type_for_clast_eq): Rewritten.
7508         (compute_bounds_for_level): New.
7509         (compute_type_for_level_1): New.
7510         (compute_type_for_level): New.
7511         (gcc_type_for_cloog_iv): Removed.
7512         (gcc_type_for_iv_of_clast_loop): Rewritten.
7513         (graphite_create_new_loop): Compute the lower and upper bound types
7514         with gcc_type_for_clast_expr.
7515         (graphite_create_new_loop_guard): Same.
7516         (find_cloog_iv_in_expr): Removed.
7517         (compute_cloog_iv_types_1): Removed.
7518         (compute_cloog_iv_types): Removed.
7519         (gloog): Do not call compute_cloog_iv_types.
7520         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
7521         GBB_CLOOG_IV_TYPES.
7522         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
7523         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
7524         (GBB_CLOOG_IV_TYPES): Removed.
7525
7526 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
7527
7528         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
7529         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
7530         (detect_commutative_reduction): Same.
7531
7532 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
7533
7534         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
7535         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
7536         argument.
7537         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
7538         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
7539         (rewrite_commutative_reductions_out_of_ssa): Same.
7540         * passes.c (execute_function_todo): Call verify_ssa for every pass
7541         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
7542         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
7543         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
7544         with an extra argument.
7545         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
7546         verify_ssa only when the extra argument is true.
7547         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
7548         with an extra argument.
7549         (tree_transform_and_unroll_loop): Same.
7550
7551 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
7552
7553         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
7554         for all the passes of the LNO having LOOP_CLOSED_SSA.
7555         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
7556         * tree-loop-distribution.c (pass_loop_distribution): Same.
7557         * tree-pass.h (TODO_verify_loops): Removed.
7558         * tree-ssa-loop.c (pass_tree_loop_init): Same.
7559         (pass_lim): Same.
7560         (pass_tree_unswitch): Same.
7561         (pass_predcom): Same.
7562         (pass_vectorize): Same.
7563         (pass_linear_transform): Same.
7564         (pass_graphite_transforms): Same.
7565         (pass_iv_canon): Same.
7566         (pass_complete_unroll): Same.
7567         (pass_complete_unrolli): Same.
7568         (pass_parallelize_loops): Same.
7569         (pass_loop_prefetch): Same.
7570         (pass_iv_optimize): Same.
7571
7572 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
7573
7574         PR middle-end/32824
7575         * passes.c (init_optimization_passes): Move pass_lim before
7576         pass_copy_prop and pass_dce_loop.
7577
7578 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
7579
7580         PR target/43667
7581         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
7582         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
7583         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
7584         MULTI_* defines for 4 argument vpermil2p* builtins.
7585
7586 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
7587
7588         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
7589         * config/i386/i386.c (x86_maybe_negate_const_int): New.
7590         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
7591         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
7592         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
7593         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
7594         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
7595         Use x86_maybe_negate_const_int to output insn mnemonic.
7596         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
7597         check from instruction predicate.  Update comments.
7598         * config/i386/sync.md (sync_add<mode>): Use
7599         x86_maybe_negate_const_int to output insn mnemonic.
7600
7601 2010-04-06  Jan Hubicka  <jh@suse.cz>
7602
7603         PR tree-optimization/42906
7604         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
7605         IGNORE_SELF argument.  Set visited_control_parents for fully
7606         processed BBs.
7607         (find_obviously_necessary_stmts): Update call of
7608         mark_control_dependent_edges_necessary.
7609         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
7610
7611 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
7612
7613         * config/i386/i386.md: Remove comment about 'e' and 'E'
7614         operand modifier.
7615
7616 2010-04-06  Richard Guenther  <rguenther@suse.de>
7617
7618         PR tree-optimization/43627
7619         * tree-vrp.c (extract_range_from_unary_expr): Widenings
7620         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
7621         not varying.
7622
7623 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
7624
7625         * BASE-VER: Change to 4.6.0.
7626
7627         PR target/43638
7628         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
7629         handling.
7630
7631 2010-04-06  Richard Guenther  <rguenther@suse.de>
7632
7633         PR middle-end/43661
7634         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
7635
7636 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7637
7638         * doc/invoke.texi (Optimize Options): Document that LTO
7639         won't remove object access purely due to incompatible
7640         declarations.
7641
7642 2010-04-04  Matthias Klose  <doko@ubuntu.com>
7643
7644         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
7645         Initialize variable.
7646
7647 2010-04-03  Richard Guenther  <rguenther@suse.de>
7648
7649         PR middle-end/42509
7650         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
7651         require a non-NULL MEM_OFFSET.
7652
7653 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
7654
7655         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
7656         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
7657         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
7658         config/alpha/predicates.md, config/arm/arm.md,
7659         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
7660         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
7661         config/darwin9.h, config/darwin.c, config/darwin.h,
7662         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
7663         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
7664         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
7665         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
7666         config/mips/mips.md, config/mn10300/mn10300.c,
7667         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
7668         config/rs6000/aix.h, config/rs6000/dfp.md,
7669         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
7670         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
7671         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
7672         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
7673         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
7674         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
7675         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
7676         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
7677         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
7678         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
7679         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
7680         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
7681         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
7682         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
7683         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
7684         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
7685         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
7686         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
7687         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
7688         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
7689         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
7690         opt-functions.awk, opth-gen.awk, params.def, passes.c,
7691         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
7692         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
7693         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
7694         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
7695         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
7696         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
7697         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
7698         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
7699         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
7700         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
7701         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
7702         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
7703         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
7704         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
7705
7706 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7707
7708         PR other/43620
7709         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
7710         * aclocal.m4: Regenerate.
7711
7712 2010-04-02  Richard Guenther  <rguenther@suse.de>
7713
7714         PR tree-optimization/43629
7715         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
7716         if we have seen a constant value.
7717
7718 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
7719
7720         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
7721
7722 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
7723
7724         PR target/43469
7725         * arm.c (legitimize_tls_address): Adjust call to
7726         gen_tls_load_dot_plus_four.
7727         (arm_note_pic_base): New function.
7728         (arm_cannot_copy_insn_p): Use it.
7729         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
7730         constraint.
7731
7732 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7733
7734         PR bootstrap/43531
7735
7736         Revert:
7737         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7738
7739         * Makefile.in ($(out_object_file)): Depend on
7740         gt-$(basename $(notdir $(out_file))).h.
7741
7742 2010-04-01  Ralf Corsépius <ralf.corsepius@rtems.org>
7743
7744         * config.gcc (lm32-*-rtems*): Add t-lm32.
7745
7746 2010-04-01  Joel Sherrill <joel.sherrill@oarcorp.com>
7747
7748         * config.gcc: Add lm32-*-rtems*.
7749         * config/lm32/rtems.h: New file.
7750
7751 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
7752
7753         PR target/42609
7754         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
7755
7756 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
7757
7758         * dwarf2out.c (output_compilation_unit_header): For
7759         -gdwarf-4 use version 4 instead of version 3.
7760         (output_line_info): For version 4 and above emit additional
7761         maximum ops per insn header field.
7762         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
7763
7764         * dwarf2out.c (is_c_family, is_java): Remove.
7765         (lower_bound_default): New function.
7766         (add_bound_info, gen_descr_array_type_die): Use it.
7767
7768 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
7769
7770         PR debug/43325
7771         * dwarf2out.c (gen_variable_die): Allow debug info for variable
7772         re-declaration when it happens in a function.
7773
7774 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
7775
7776         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
7777         (cgraph_remove_function_insertion_hook): Same.
7778         (cgraph_call_function_insertion_hooks): Same.
7779
7780 2010-04-01  Richard Guenther  <rguenther@suse.de>
7781
7782         PR middle-end/43614
7783         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
7784         and TREE_THIS_VOLATILE.
7785         (copy_ref_info): Likewise.
7786         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
7787         * tree.c (build6_stat): Ignore side-effects of all but arg5
7788         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
7789         TARGET_MEM_REF.
7790
7791 2010-04-01  Richard Guenther  <rguenther@suse.de>
7792
7793         PR tree-optimization/43607
7794         * ipa-type-escape.c (check_call): Do not access non-existing
7795         arguments.
7796
7797 2010-04-01  Richard Guenther  <rguenther@suse.de>
7798
7799         PR middle-end/43602
7800         Revert
7801         2010-03-30  Seongbae Park <seongbae.park@gmail.com>
7802                     Jack Howarth <howarth@bromo.med.uc.edu>
7803
7804         * tree-profile.c (tree_init_ic_make_global_vars): Make static
7805         variables TLS.
7806
7807 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7808
7809         * doc/install.texi (Prerequisites): Document libelf usability on
7810         IRIX 5/6 and Solaris 2.
7811         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
7812         Update GNU as, GNU ld requirements.
7813         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
7814         Document Sun Studio compiler download.
7815         Update and simplify as, ld recommendations.
7816         (Specific, *-*-solaris2.7): Note obsoletion, removal.
7817
7818 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7819
7820         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
7821         with_tune_32 to pentium4.
7822
7823 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
7824
7825         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
7826
7827 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7828
7829         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
7830         obsoletion, removal.
7831         Update IDO URL.
7832         Document GNU as requirement.
7833         Update configure requirements.
7834         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
7835         Recomment IRIX 6.5.18+.
7836         Document IDF/IDL requirement.
7837         Document GNU as requirement.
7838         Document GNU ld bootstrap failure.
7839         Remove freeware.sgi.com reference.
7840
7841 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7842
7843         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
7844         UNIX V4.0, V5.0 obsoletion, removal.
7845         Remove --with-gc=simple reference.
7846         Update VM requirements during bootstrap.
7847         Remove -oldas bootstrap description.
7848         Update binutils reference.
7849         Remove comparison failure note.
7850
7851 2010-03-31  Richard Guenther  <rguenther@suse.de>
7852             Zdenek Dvorak  <ook@ucw.cz>
7853             Sebastian Pop  <sebastian.pop@amd.com>
7854
7855         PR middle-end/43464
7856         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
7857         with multiple arguments.
7858         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
7859
7860 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
7861
7862         * graphite-dependences.c (print_pddr): Call print_pdr with an
7863         extra argument.
7864         * graphite-poly.c (debug_pdr): Add an extra argument for the
7865         verbosity level.
7866         (print_pdr): Same.
7867         (print_pbb_domain): Same.
7868         (print_pbb): Same.
7869         (print_scop_context): Same.
7870         (print_scop): Same.
7871         (print_cloog): Same.
7872         (debug_pbb_domain): Same.
7873         (debug_pbb): Same.
7874         (print_pdrs): Same.
7875         (debug_pdrs): Same.
7876         (debug_scop_context): Same.
7877         (debug_scop): Same.
7878         (debug_cloog): Same.
7879         (print_scop_params): Same.
7880         (debug_scop_params): Same.
7881         (print_iteration_domain): Same.
7882         (print_iteration_domains): Same.
7883         (debug_iteration_domain): Same.
7884         (debug_iteration_domains): Same.
7885         (print_scattering_function): Same.
7886         (print_scattering_functions): Same.
7887         (debug_scattering_function): Same.
7888         (debug_scattering_functions): Same.
7889         * graphite-poly.h (debug_pdr): Update declaration.
7890         (print_pdr): Same.
7891         (print_pbb_domain): Same.
7892         (print_pbb): Same.
7893         (print_scop_context): Same.
7894         (print_scop): Same.
7895         (print_cloog): Same.
7896         (debug_pbb_domain): Same.
7897         (debug_pbb): Same.
7898         (print_pdrs): Same.
7899         (debug_pdrs): Same.
7900         (debug_scop_context): Same.
7901         (debug_scop): Same.
7902         (debug_cloog): Same.
7903         (print_scop_params): Same.
7904         (debug_scop_params): Same.
7905         (print_iteration_domain): Same.
7906         (print_iteration_domains): Same.
7907         (debug_iteration_domain): Same.
7908         (debug_iteration_domains): Same.
7909         (print_scattering_function): Same.
7910         (print_scattering_functions): Same.
7911         (debug_scattering_function): Same.
7912         (debug_scattering_functions): Same.
7913
7914 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
7915
7916         * graphite-poly.c (print_scattering_function_1): New.
7917         (print_scattering_function): Call it.
7918         (print_scop_params): Remove spaces at the end of lines.
7919         (print_cloog): New.
7920         (debug_cloog): New.
7921         * graphite-poly.h (print_cloog): Declared.
7922         (debug_cloog): Declared.
7923
7924 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
7925
7926         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
7927         in loop->header.
7928         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
7929         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
7930         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
7931         to switch between adding the IV bump in loop->latch or in loop->header.
7932
7933 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
7934
7935         * graphite-poly.c (print_scattering_function): Pretty print following
7936         the scoplib format.
7937         (print_pdr): Same.
7938         (print_pbb_domain): Same.
7939         (dump_gbb_cases): Same.
7940         (dump_gbb_conditions): Same.
7941         (print_pdrs): Same.
7942         (print_pbb): Same.
7943         (print_scop_params): Same.
7944         (print_scop_context): Same.
7945         (print_scop): Same.
7946         (print_pbb_body): New.
7947         (lst_indent_to): New.
7948         (print_lst): Start new lines with a #.
7949         * graphite-poly.h (pbb_bb): New.
7950         (pbb_index): Use pbb_bb.
7951         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
7952         disjuncts.
7953         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
7954
7955 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
7956
7957         * dwarf2out.c (size_of_die): For -gdwarf-4 use
7958         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
7959         and 0 instead of 1 for dw_val_class_flag.
7960         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
7961         dw_val_class_range_list, dw_val_class_loc_list,
7962         dw_val_class_lineptr and dw_val_class_macptr, use
7963         DW_FORM_flag_present for dw_val_class_flag and
7964         DW_FORM_exprloc for dw_val_class_loc.
7965         (output_die): For -gdwarf-4 print dw_val_class_loc
7966         size as uleb128 instead of 1 or 2 bytes and don't print
7967         anything for dw_val_class_flag.
7968
7969         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
7970         instead of cselib_lookup following by tweaking locs->setting_insn.
7971
7972         PR bootstrap/43596
7973         * cselib.c (cselib_process_insn): Clear cselib_current_insn
7974         even before returning from label, setjmp call or volatile asm
7975         handling.
7976
7977 2010-03-31  Richard Guenther  <rguenther@suse.de>
7978
7979         PR middle-end/43600
7980         * cgraphunit.c (cgraph_output_in_order): Do not allocate
7981         temporary data on stack.
7982
7983 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7984
7985         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
7986         (PUSHSECTION_ASM_OP): Remove.
7987         (POPSECTION_ASM_OP): Remove.
7988         (PUSHSECTION_FORMAT): Remove.
7989         * config/sol2.h (PUSHSECTION_FORMAT): Define.
7990         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
7991         * config/sol2.c (solaris_output_init_fini): Use it.
7992
7993 2010-03-31  Jie Zhang  <jie@codesourcery.com>
7994
7995         PR 43574
7996         * opt-functions.awk (var_type_struct): Use signed char type
7997         for simple variables.
7998
7999 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8000
8001         * config/sol2.c: Include output.h.
8002         (solaris_assemble_visibility): New function.
8003         * config/t-sol2 (sol2.o): Add output.h dependency.
8004         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
8005         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
8006         Redefine.
8007
8008 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
8009
8010         PR target/43580
8011         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
8012         V2SImode or XFmode on PRE_DEC.
8013
8014         PR debug/43557
8015         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
8016         BLKmode.
8017
8018 2010-03-31  Jie Zhang  <jie@codesourcery.com>
8019
8020         PR 43562
8021         * reload.h (caller_save_initialized_p): Declare.
8022         * toplev.c (backend_init_target): Don't call
8023         init_caller_save but set caller_save_initialized_p to false.
8024         * caller-save.c (caller_save_initialized_p): Define.
8025         (init_caller_save): Check caller_save_initialized_p.
8026         * ira.c (ira): Call init_caller_save if flag_caller_saves.
8027
8028 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8029
8030         PR target/39048
8031         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
8032         and soft-fp/t-softfp to tmake_file.
8033         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
8034         (LIBGCC2_TF_CEXT): Define.
8035         (TF_SIZE): Define.
8036
8037 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
8038
8039         PR debug/42977
8040         * cselib.c (n_useless_values): Document handling of debug locs.
8041         (n_useless_debug_values, n_debug_values): New variables.
8042         (new_elt_loc_list): Don't add to debug values, keep count.
8043         (promote_debug_loc): New.
8044         (cselib_reset_table): Zero new variables.
8045         (entry_and_rtx_equal_p): Promote debug locs.
8046         (discard_useless_locs): Increment n_useless_debug_values for
8047         debug values.
8048         (remove_useless_values): Adjust n_useless_values and n_debug_values
8049         with n_useless_debug_values.
8050         (add_mem_for_addr): Promote debug locs.
8051         (cselib_lookup_mem): Likewise.
8052         (cselib_lookup_addr): Renamed to...
8053         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
8054         (cselib_log_lookup): ... this.  Turn into...
8055         (cselib_lookup_addr): ... new wrapper.
8056         (cselib_lookup_from_insn): New.
8057         (cselib_invalidate_regno): Increment n_useless_debug_values for
8058         debug values.
8059         (cselib_invalidate_mem): Likewise.
8060         (cselib_process_insn): Take n_deleted and n_debug_values into
8061         account to guard remove_useless_value call.
8062         (cselib_finish): Zero n_useless_debug_values.
8063         * cselib.h (cselib_lookup_from_insn): Declare.
8064         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
8065         (sched_analyze_2): Likewise.
8066
8067 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
8068
8069         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
8070         functions.
8071         (adjust_mems): Replace narrowing SUBREG of expression containing
8072         just PLUS, MINUS, MULT and ASHIFT of registers and constants
8073         with operations in the narrower mode.
8074
8075         PR debug/43593
8076         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
8077         regs_invalidated_by_call instead all call_used_reg_set registers.
8078
8079 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
8080
8081         PR middle-end/43430
8082         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
8083         pointer comparisons with types_compatible_p.
8084         * tree-vect-stmts.c (vectorizable_call): Same.
8085         (vectorizable_condition): Same.
8086
8087 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8088
8089         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
8090         stack check if the mask would be zero.
8091
8092 2010-03-30  Seongbae Park <seongbae.park@gmail.com>
8093             Jack Howarth <howarth@bromo.med.uc.edu>
8094
8095         * tree-profile.c (tree_init_ic_make_global_vars): Make static
8096         variables TLS.
8097
8098 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
8099
8100         PR other/25232
8101         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
8102         and __unordtf2.
8103         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
8104         Include ___unordxf2 and ___unordtf2.
8105         * config/i386/libgcc-glibc.ver: Do not define inheritance from
8106         GCC_4.4.0 here.
8107
8108 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
8109
8110         * config/lm32/t-lm32: New file.
8111         * config.gcc: Use the above file when targetting lm32.
8112
8113 2010-03-28  Duncan Sands  <baldrick@free.fr>
8114
8115         * Makefile.in (PLUGIN_HEADERS): Add except.h.
8116
8117 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
8118
8119         PR middle-end/43431
8120         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
8121         Improve vectorization cost model diagnostic.
8122
8123 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
8124
8125         PR middle-end/43436
8126         * tree-vect-data-refs.c (vect_analyze_data_refs): When
8127         compute_data_dependences_for_loop returns false, early exit
8128         and output an extra diagnostic for the failed data reference
8129         analysis.
8130
8131 2010-03-29  Richard Guenther  <rguenther@suse.de>
8132
8133         PR tree-optimization/43560
8134         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
8135         (can_sm_ref_p): Treat stores to readonly locations as trapping.
8136
8137 2010-03-29  Jie Zhang  <jie@codesourcery.com>
8138
8139         PR 43564
8140         * toplev.c (process_options): Set optimization_default_node
8141         and optimization_current_node.
8142         * opts.c (decode_options): Don't set optimization_default_node
8143         and optimization_current_node.
8144
8145 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
8146
8147         * config/rtems.h: Abandon -qrtems_debug.
8148
8149 2010-03-28  Jan Hubicka  <jh@suse.cz>
8150
8151         PR tree-optimization/43505
8152         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
8153         map should not be copied.
8154
8155 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8156
8157         PR middle-end/41674
8158         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
8159         cdtors, set DECL_PRESERVE_P.
8160         * ipa.c (cgraph_externally_visible_p): Return true if declaration
8161         should be preseved.
8162
8163 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
8164
8165         PR tree-optimization/43528
8166         * stor-layout.c (place_field): Check that constant fits into
8167         unsigned HWI when skipping calculation of MS bitfield layout.
8168
8169 2010-03-27  Jan Hubicka  <jh@suse.cz>
8170
8171         PR middle-end/43391
8172         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
8173         notice_global_symbol work.
8174
8175 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
8176
8177         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
8178         instead of dwarf2out_decl.
8179         (struct var_loc_node): Remove section_label field.
8180         (dwarf2out_function_decl): New function.
8181         (dwarf2out_var_location): Don't set section_label field.
8182         (dwarf2out_begin_function): Don't empty decl_loc_table here.
8183
8184 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
8185
8186         PR tree-optimization/43544
8187         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
8188         First argument for builtin vectorized function hook is now a
8189         tree to be able to distinguish between machine specific and
8190         standard builtins.
8191         * targhooks.c (default_builtin_vectorized_function): Ditto.
8192         * targhooks.h (default_builtin_vectorized_function): Ditto.
8193         * target.h (struct gcc_target): Ditto.
8194         * tree-vect-stmts.c (vectorizable_function): Ditto.
8195         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
8196         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
8197         Ditto.
8198
8199 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
8200
8201         PR c/43381
8202         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
8203         nested binding iff it is a FUNCTION_DECL.
8204         (store_parm_decls_newstyle): Pass nested=true to bind for
8205         FUNCTION_DECLs amongst parameters.
8206
8207 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
8208
8209         * var-tracking.c (vt_expand_loc_callback): Don't run
8210         cselib_expand_value_rtx_cb in dummy mode if
8211         cselib_dummy_expand_value_rtx_cb returned false.
8212
8213         * var-tracking.c (emit_note_insn_var_location): For one part
8214         notes with offset 0, don't add EXPR_LIST around the location.
8215         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
8216         add_location_or_const_value_attribute): Adjust for that change.
8217
8218         PR debug/43540
8219         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
8220         into first operand and location into second.
8221         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
8222         dw_cfi_oprnd_loc for DW_CFA_expression.
8223         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
8224         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
8225         assume first argument is regnum and second argument is location.
8226
8227 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
8228
8229         PR target/42113
8230         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
8231         of scratch register to DImode.  Split to DImode comparison operator.
8232         Use SImode subreg of scratch register in the multiplication.
8233         (*cmp_sadd_sidi): Ditto.
8234         (*cmp_ssub_si): Ditto.
8235         (*cmp_ssub_sidi): Ditto.
8236
8237 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
8238
8239         PR target/43524
8240         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
8241         Remove invalid assert and wrong comment.
8242
8243 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
8244
8245         PR debug/43516
8246         * flags.h (final_insns_dump_p): New extern.
8247         * final.c (final_insns_dump_p): New variable.
8248         (rest_of_clean_state): Set it before -fdump-final-insns=
8249         dumping, clear afterwards.
8250         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
8251         MEM_ALIAS_SET on MEMs.
8252
8253 2010-03-26  David S. Miller  <davem@davemloft.net>
8254
8255         * configure.ac: Fix sparc GOTDATA_OP bug check.
8256         * configure: Rebuild.
8257
8258 2010-03-26  Alan Modra  <amodra@gmail.com>
8259
8260         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
8261
8262 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8263
8264         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
8265         TLS_SECTION_ASM_FLAG.
8266
8267 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
8268
8269         PR bootstrap/43511
8270         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
8271         Clear first_function_block_is_cold.
8272
8273         PR c/43385
8274         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
8275         argument if the argument is truth_value_p.
8276
8277 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
8278
8279         * config/rs6000/constraints.md: Update copyright year for my changes.
8280
8281         PR target/43484
8282         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
8283         used in reg+reg addressing, swap registers.
8284
8285 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
8286
8287         PR debug/43293
8288         * target.h (struct gcc_target): Add code_end hook.
8289         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
8290         if not yet defined.
8291         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
8292         * toplev.c (compile_file): Call targetm.asm_out.code_end
8293         hook before unwind info/debug info output.
8294         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
8295         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
8296         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
8297         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
8298         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
8299         * config/i386/i386.c (ix86_file_end): Renamed to...
8300         (ix86_code_end): ... this.  Make static.  Don't call
8301         file_end_indicate_exec_stack.  Emit unwind info using
8302         final_start_function/final_end_function.
8303         (darwin_x86_file_end): Remove.
8304         (TARGET_ASM_CODE_END): Define.
8305         * config/i386/i386.h (TARGET_ASM_FILE_END,
8306         NEED_INDICATE_EXEC_STACK): Don't define.
8307         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
8308         (TARGET_ASM_FILE_END): Define to darwin_file_end.
8309         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
8310         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
8311
8312         PR target/43498
8313         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
8314         at the beginning and final_end_function at the end.
8315         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
8316
8317 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8318
8319         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
8320         and Sun as TLS syntax.
8321         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
8322         * configure: Regenerate.
8323         * config.in: Regenerate.
8324         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
8325         (default_elf_asm_named_section): Use it.
8326         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
8327         (i386_output_dwarf_dtprel): Likewise.
8328         (output_addr_const_extra): Likewise.
8329         (output_pic_addr_const): Lowercase @GOTTPOFF.
8330         (output_addr_const_extra): Likewise.
8331         (output_pic_addr_const): Lowercase @GOTNTPOFF.
8332         (output_addr_const_extra): Likewise.
8333         (output_pic_addr_const): Lowercase @INDNTPOFF.
8334         (output_addr_const_extra): Likewise.
8335         (output_pic_addr_const): Lowercase @NTPOFF.
8336         (output_addr_const_extra): Likewise.
8337         (output_pic_addr_const): Lowercase @TPOFF.
8338         (output_addr_const_extra): Likewise.
8339         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
8340         (*tls_global_dynamic_64): Likewise.
8341         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
8342         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
8343
8344         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
8345         (ASM_OUTPUT_TLS_COMMON): Use it.
8346         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
8347
8348         PR target/38118
8349         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
8350         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
8351         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
8352         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
8353         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
8354         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
8355
8356 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8357
8358         * config/i386/i386.c (override_options): Don't accept
8359         -mtls-dialect=sun any longer.
8360         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
8361         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
8362         (*tls_local_dynamic_base_32_sun): Likewise.
8363         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
8364
8365 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
8366
8367         PR debug/43508
8368         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
8369         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
8370
8371         PR debug/43479
8372         * ira.c (adjust_cleared_regs): New function.
8373         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
8374
8375         PR debug/19192
8376         PR debug/43479
8377         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
8378         from gimple_block.
8379         * expr.c (expand_expr_real): Restore previous
8380         curr_insn_source_location and curr_insn_block after
8381         expand_expr_real_1 call.
8382         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
8383         instead of expand_expr_real_1.
8384
8385 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
8386
8387         PR rtl-optimization/43413
8388         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
8389         hard regs too.
8390
8391 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
8392
8393         PR target/43348
8394         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
8395         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
8396
8397 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8398
8399         * config/i386/i386.c (ix86_target_string): Add -mfma.
8400         Fix a typo in comment.
8401
8402 2010-03-22  Mike Stump  <mikestump@comcast.net>
8403
8404         PR target/23071
8405         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
8406         Don't overly align based upon packed packed fields.
8407
8408 2010-03-22  Jason Merrill  <jason@redhat.com>
8409
8410         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
8411         Use () rather than [], and move before the element type.
8412
8413 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8414
8415         * doc/configfiles.texi (Configuration Files): Removed
8416         fixinc/Makefile*, intl/Makefile.*.
8417         * doc/makefile.texi: Fixed markup. Abstract from version
8418         control system used.
8419         (Makefile): Removed obsolete gcc/java/parse.y example.
8420         * doc/sourcebuild.texi: Likewise.
8421         (Top Level): Added config, gnattools, libdecnumber, libgcc,
8422         libgomp, libssp.  Removed fastjar.
8423         (Miscellaneous Docs): Clarify location.
8424         Added COPYING3, COPYING3.LIB.
8425         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
8426
8427 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8428
8429         PR target/38085
8430         * config/i386/i386.c (x86_function_profiler)
8431         [!NO_PROFILE_COUNTERS]: Fix typo.
8432         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
8433         instead of callq.
8434
8435 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
8436             Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8437
8438         * doc/sourcebuild.texi (Test Directives): Split into six
8439         subsections, with most of the current text in new subsections
8440         Directives, Selectors, and Final Actions.
8441         (Directives): Split list of test directives into multiple
8442         subsubsections.
8443         (Selectors): Describe use and syntax of selectors.
8444         (Effective-Target Keywords): Describe all existing keywords.
8445         (Add Options): Describe features for dg-add-options.
8446         (Require Support): Describe variants of dg-require-support.
8447         (Final Actions): Describe commands to use in dg-final.
8448
8449 2010-03-22  Michael Matz  <matz@suse.de>
8450
8451         PR middle-end/43475
8452         * recog.c (validate_replace_rtx_group): Replace also in
8453         REG_EQUAL and REG_EQUIV notes.
8454
8455 2010-03-22  Richard Guenther  <rguenther@suse.de>
8456
8457         PR tree-optimization/43390
8458         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
8459         sure vector extracts are type correct.
8460
8461 2010-03-22  Richard Guenther  <rguenther@suse.de>
8462
8463         PR middle-end/40106
8464         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
8465         x * sqrt (x) even when optimizing for size if the target
8466         has native support for sqrt.
8467
8468 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
8469
8470         * varasm.c (make_decl_rtl_for_debug): Also clear
8471         flag_mudflap for the duration of make_decl_rtl call.
8472
8473         PR debug/43443
8474         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
8475         locs from preserved VALUEs.
8476
8477 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8478
8479         PR middle-end/42718
8480         * pa.md (movmemsi): Set align to one if zero.
8481         (movmemdi): Likewise.
8482
8483 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
8484
8485         PR target/42321
8486         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
8487         with their corresponding prologue pushes.
8488
8489 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
8490
8491         PR target/43156
8492         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
8493         at the begining or end.
8494         (spu_expand_epilogue): Likewise.
8495
8496 2010-03-20  Richard Guenther  <rguenther@suse.de>
8497
8498         PR rtl-optimization/43438
8499         * combine.c (make_extraction): Properly zero-/sign-extend an
8500         extraction of the low part of a CONST_INT.  Also handle
8501         CONST_DOUBLE.
8502
8503 2010-03-19  Mike Stump  <mikestump@comcast.net>
8504
8505         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
8506         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
8507         (override_options): Use SUBTARGET32_DEFAULT_CPU.
8508
8509 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
8510
8511         PR c/43211
8512         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
8513         an error.
8514
8515 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
8516
8517         PR rtl-optimization/42258
8518         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
8519         use that may match DEF.
8520
8521         PR target/40697
8522         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
8523         the cost of loading the constant rather than assuming
8524         COSTS_N_INSNS (1).
8525         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
8526         outer code is AND, do the same tests as the andsi3 expander and
8527         return COSTS_N_INSNS (1) if and is cheap.
8528
8529         * optabs.c (avoid_expensive_constant): Fix formatting.
8530
8531 2010-03-19  Michael Matz  <matz@suse.de>
8532
8533         PR c++/43116
8534         * attribs.c (decl_attributes): When rebuilding a function pointer
8535         type use the same qualifiers as the original pointer type.
8536
8537 2010-03-19  Martin Jambor  <mjambor@suse.cz>
8538
8539         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
8540         and is_gimple_ip_invariant_address.
8541
8542 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8543
8544         Revert
8545         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8546
8547         * config/arm/arm.c (arm_override_options): Turn off
8548         flag_dwarf2_cfi_asm for AAPCS variants.
8549
8550 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8551
8552         PR target/43399
8553         * config/arm/arm.c (emit_multi_reg_push): Update comments.
8554         Use PRE_MODIFY instead of PRE_DEC.
8555         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
8556         (vfp_emit_fstmd): Likewise.
8557
8558 2010-03-19  Michael Matz  <matz@suse.de>
8559
8560         PR target/43305
8561         * builtins.c (expand_builtin_interclass_mathfn,
8562         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
8563         if that fails.
8564
8565 2010-03-19  Richard Guenther  <rguenther@suse.de>
8566
8567         PR tree-optimization/43415
8568         * tree-ssa-pre.c (phi_translate): Split out worker to ...
8569         (phi_translate_1): ... this.
8570         (phi_translate): Move all caching here.  Cache all NARY
8571         and REFERENCE translations.
8572
8573 2010-03-19  David S. Miller  <davem@davemloft.net>
8574
8575         With help from Eric Botcazou.
8576         * config/sparc/sparc.c: Include dwarf2out.h.
8577         (emit_pic_helper): Delete.
8578         (pic_helper_symbol_name): Delete.
8579         (pic_helper_emitted_p): Delete.
8580         (pic_helper_needed): New.
8581         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
8582         (get_pc_thunk_name): New.
8583         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
8584         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
8585         Set pic_helper_needed to true.  Don't call emit_pic_helper.
8586         (sparc_expand_prologue): Update load_pic_register call.
8587         (sparc_output_mi_thunk): Likewise.
8588         (sparc_file_end): Emit a hidden comdat symbol for the PIC
8589         thunk if possible.  Output CFI information as needed.
8590
8591 2010-03-18  Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8592             Jack Howarth <howarth@bromo.med.uc.edu>
8593
8594         PR target/36399
8595         * config/i386/i386.h: Fix ABI on darwin x86-32.
8596
8597 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
8598
8599         * tree.h: Declare make_decl_rtl_for_debug.
8600         * varasm.c (make_decl_rtl_for_debug): New.
8601         * dwarf2out.c (rtl_for_decl_location): Call it.
8602         * cfgexpand.c (expand_debug_expr): Call it.
8603
8604 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
8605
8606         PR bootstrap/43399
8607         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
8608         mem_mode.
8609
8610         PR bootstrap/43403
8611         * var-tracking.c (vt_init_cfa_base): Do nothing if
8612         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
8613
8614 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
8615
8616         PR debug/42873
8617         * var-tracking.c (canonicalize_vars_star): New.
8618         (dataflow_post_merge_adjust): Use it.
8619
8620 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
8621
8622         PR debug/43058
8623         * var-tracking.c (non_suitable_const): New function.
8624         (add_uses): For DEBUG_INSNs with constants, don't record any
8625         value, instead just the constant value itself.
8626         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
8627         is not VAR_LOC_UNKNOWN_P, set var to the constant.
8628         (emit_notes_in_bb): Likewise.
8629         (emit_note_insn_var_location): For onepart variables if
8630         cur_loc is a VOIDmode constant, use DECL_MODE.
8631
8632 2010-03-18  Martin Jambor  <mjambor@suse.cz>
8633
8634         PR middle-end/42450
8635         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
8636         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
8637         all non-clones.  Moved call redirection...
8638         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
8639         (cgraph_materialize_all_clones): Dispose of all
8640         combined_args_to_skip bitmaps.
8641         (verify_cgraph_node): Do not check for edges pointing to wrong
8642         nodes in inline clones.
8643         * tree-inline.c (copy_bb): Call
8644         cgraph_redirect_edge_call_stmt_to_callee.
8645         * ipa.c (cgraph_remove_unreachable_nodes): Call
8646         cgraph_node_remove_callees even when there are used clones.
8647
8648 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
8649
8650         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
8651
8652 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
8653
8654         PR target/43383
8655         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
8656         for 32bit.
8657
8658 2010-03-18  Michael Matz  <matz@suse.de>
8659
8660         PR middle-end/43419
8661         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
8662         into sqrt(x) if we need to preserve signed zeros.
8663
8664 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
8665             Eric Botcazou  <ebotcazou@adacore.com>
8666
8667         PR rtl-optimization/43360
8668         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
8669         note if we don't know its invariant status.
8670
8671 2010-03-18  Michael Matz  <matz@suse.de>
8672
8673         PR tree-optimization/43402
8674         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
8675         PHI chains of ssa names registered for update.
8676
8677 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
8678
8679         PR target/42427
8680         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
8681         non-offsettable and pre_modify update addressing.
8682         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
8683         and "2" alternatives "#".
8684         (*movdd_softfloat32): Make all alternatives "#";
8685         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
8686         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
8687         (*movdf_softfloat32): Make all alternatives "#";
8688         (movdi): Use the new DIFD mode iterator to create a common splitter
8689         for movdi, movdf and movdd patterns.
8690
8691 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
8692
8693         * common.opt (dumpdir): Remove redundant tab.
8694
8695 2010-03-17  Martin Jambor  <mjambor@suse.cz>
8696
8697         PR tree-optimization/43347
8698         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
8699         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
8700
8701 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
8702
8703         PR rtl-optimization/42216
8704         * regrename.c (create_new_chain): New function, broken out from...
8705         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
8706         appending a use to an empty chain.
8707         (build_def_use): Remove previous changes that convert OP_INOUT to
8708         OP_OUT operands; instead detect the case where an OP_INOUT operand
8709         uses a previously untracked register and create an empty chain for it.
8710
8711 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8712
8713         * doc/extend.texi (Function Attributes): Rewrite unfinished
8714         sentence in ms_abi documentation.
8715
8716 2010-03-17  Alan Modra  <amodra@gmail.com>
8717
8718         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
8719         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
8720         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
8721         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
8722
8723 2010-03-16  Richard Henderson  <rth@redhat.com>
8724
8725         PR middle-end/43365
8726         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
8727         (lower_try_finally): Save and restore eh_seq around the expansion
8728         of the try-finally.
8729
8730 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
8731
8732         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
8733         statements before splitting block.
8734
8735 2010-03-16  Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8736
8737         * doc/sourcebuild.texi (Testsuites): Fix markup.
8738         Use pathnames relative to gcc/testsuite.
8739         (Test Directives): Move description of how timeout is determined.
8740         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
8741         (C Tests): Correct gcc.misc-tests directory.
8742         Framework tests now live in gcc.test-framework.
8743
8744 2010-03-16  Richard Guenther  <rguenther@suse.de>
8745
8746         PR middle-end/43379
8747         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
8748         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
8749
8750 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
8751             Alexandre Oliva  <aoliva@redhat.com>
8752
8753         PR tree-optimization/42917
8754         * lambda-code.c (remove_iv): Skip debug statements.
8755         (lambda_loopnest_to_gcc_loopnest): Likewise.
8756         (not_interesting_stmt): Debug statements are not interesting.
8757
8758 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
8759
8760         PR debug/43051
8761         PR debug/43092
8762         * cselib.c (cselib_preserve_constants,
8763         cfa_base_preserved_val): New static variables.
8764         (preserve_only_constants): New function.
8765         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
8766         clear its REG_VALUES.  If cselib_preserve_constants, don't
8767         empty the whole hash table, but preserve there VALUEs with constants,
8768         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
8769         (cselib_preserve_cfa_base_value): New function.
8770         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
8771         (cselib_init): Change argument to int bitfield.  Set
8772         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
8773         is in it.
8774         (cselib_finish): Clear cselib_preserve_constants and
8775         cfa_base_preserved_val.
8776         * cselib.h (enum cselib_record_what): New enum.
8777         (cselib_init): Change argument to int.
8778         (cselib_preserve_cfa_base_value): New prototype.
8779         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
8780         * dse.c (dse_step1): Likewise.
8781         * cfgcleanup.c (thread_jump): Likewise.
8782         * sched-deps.c (sched_analyze): Likewise.
8783         * gcse.c (local_cprop_pass): Likewise.
8784         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
8785         If FN is non-NULL, call the callback always and whenever it returns
8786         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
8787         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
8788         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
8789         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
8790         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
8791         * var-tracking.c: Include recog.h.
8792         (bb_stack_adjust_offset): Remove.
8793         (vt_stack_adjustments): Don't call it, instead just gather the
8794         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
8795         (adjust_stack_reference): Remove.
8796         (compute_cfa_pointer): New function.
8797         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
8798         (struct adjust_mem_data): New type.
8799         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
8800         functions.
8801         (get_address_mode): New function.
8802         (replace_expr_with_values): Use it.
8803         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
8804         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
8805         (adjust_sets): Remove.
8806         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
8807         Use get_address_mode.
8808         (get_adjusted_src): Remove.
8809         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
8810         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
8811         (add_with_sets): Don't call adjust_sets.
8812         (fp_setter, vt_init_cfa_base): New functions.
8813         (vt_initialize): Change return type to bool.  Move most of pool etc.
8814         initialization to the beginning of the function from end.  Pass
8815         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
8816         If !frame_pointer_needed, call vt_stack_adjustment before mos
8817         vector is filled, call vt_init_cfa_base if argp/framep has been
8818         eliminated to sp.  If frame_pointer_needed and argp/framep has
8819         been eliminated to hard frame pointer, set
8820         hard_frame_pointer_adjustment and call vt_init_cfa_base after
8821         encountering fp setter in the prologue.  For MO_ADJUST, call
8822         log_op_type before pusing the op into mos vector, not afterwards.
8823         Call adjust_insn before cselib_process_insn/add_with_sets,
8824         call cancel_changes (0) afterwards.
8825         (variable_tracking_main_1): Adjust for vt_initialize calling
8826         vt_stack_adjustments and returning whether it succeeded or not.
8827
8828 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
8829
8830         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
8831         debug statements.
8832
8833 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
8834
8835         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
8836         has been set.
8837         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
8838         drap_reg has not been set.
8839
8840 2010-03-15  Michael Matz  <matz@suse.de>
8841
8842         PR middle-end/43300
8843         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
8844         use it to expand block copies.
8845         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
8846         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
8847         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
8848
8849 2010-03-15  Richard Guenther  <rguenther@suse.de>
8850
8851         PR tree-optimization/43367
8852         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
8853         elimination check.
8854
8855 2010-03-15  Richard Guenther  <rguenther@suse.de>
8856
8857         PR tree-optimization/43317
8858         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
8859
8860 2010-03-15  Martin Jambor  <mjambor@suse.cz>
8861
8862         PR tree-optimization/43141
8863         * tree-sra.c (create_abstract_origin): New function.
8864         (modify_function): Call create_abstract_origin.
8865
8866 2010-03-15  Chris Demetriou  <cgd@google.com>
8867
8868         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
8869         wasn't copied.
8870
8871 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8872
8873         PR middle-end/43354
8874         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
8875         call insert_out_of_ssa_copy for default definitions.
8876
8877 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8878
8879         * graphite-clast-to-gimple.c (my_long_long): Defined.
8880         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
8881         * graphite-sese-to-poly.c (my_long_long): Defined.
8882         (scop_ivs_can_be_represented): Use it.
8883
8884 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8885
8886         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
8887         graphite-max-bbs-per-function, and loop-block-tile-size.
8888         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
8889         with "maximum".
8890         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
8891
8892 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8893
8894         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
8895         forward declaration.
8896         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
8897         (add_upper_bounds_from_estimated_nit): New.
8898         (build_loop_iteration_domains): Use it.
8899
8900 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8901
8902         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
8903
8904 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8905
8906         PR middle-end/43306
8907         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
8908         should be an INTEGER_CST.  Also handle CASE_CONVERT.
8909
8910 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8911
8912         * graphite.c (graphite_initialize): To bound the number of bbs per
8913         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
8914         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
8915         * doc/invoke.texi: Document it.
8916
8917 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8918
8919         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
8920         * graphite-sese-to-poly.h (build_poly_scop): Same.
8921
8922 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8923
8924         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
8925         the number of parameters in the scop.  Use as an upper bound
8926         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
8927         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
8928         * doc/invoke.texi: Document it.
8929
8930 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
8931
8932         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
8933         * doc/c-tree.texi: Remove.
8934         * doc/generic.texi: Merge c-tree.texi here.
8935         * doc/gccint.texi (Trees): Remove menu entry.
8936         (c-tree.texi): Remove @include.
8937         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
8938         * doc/languages.texi (Reading RTL): Ditto.
8939
8940 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
8941
8942         PR target/42869
8943         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
8944
8945 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
8946
8947         PR middle-end/42431
8948         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
8949         code added to work around reload clobbering CONST insns.
8950
8951 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
8952
8953         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
8954         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
8955         (cselib_preserve_only_values): Remove retain argument, don't
8956         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
8957         * cselib.h (cselib_preserve_only_values): Remove retain argument.
8958         * var-tracking.c (micro_operation): Move insn field before union.
8959         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
8960         (struct variable_tracking_info_def): Remove n_mos field, change
8961         mos into a vector of micro_operations.
8962         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
8963         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
8964         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
8965         changing into a vector.
8966         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
8967         come before all other uops generated by add_stores.
8968         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
8969         argument removal.
8970         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
8971         a vector.  Run just one pass over the bbs instead of separate counting
8972         and computation phase.
8973         (vt_finalize): Free VTI (bb)->mos vector instead of array.
8974
8975         PR debug/43329
8976         * tree-inline.c (remap_decls): Put old_var rather than origin_var
8977         into *nonlocalized_list vector.
8978         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
8979         even if origin is non-NULL.
8980         (gen_variable_die): Likewise.
8981         (process_scope_var): Don't change origin.
8982         (gen_decl_die): Likewise.
8983         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
8984         before adding new edges instead of after it, fix moving over
8985         debug stmts.
8986
8987 2010-03-11  David S. Miller  <davem@davemloft.net>
8988
8989         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
8990         of four.
8991         * configure: Rebuild.
8992
8993 2010-03-11  Martin Jambor  <mjambor@suse.cz>
8994
8995         PR tree-optimization/43257
8996         * tree.c (assign_assembler_name_if_neeeded): New function.
8997         (free_lang_data_in_cgraph): Assembler name assignment moved to the
8998         above new function.
8999         * tree.h (assign_assembler_name_if_neeeded): Declare.
9000         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
9001         the function if needed.
9002
9003 2010-03-11  Chris Demetriou  <cgd@google.com>
9004
9005         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
9006         include/stdint-gcc.h, and include/stdint.h world-readable.
9007
9008 2010-03-11  Richard Guenther  <rguenther@suse.de>
9009
9010         PR tree-optimization/43255
9011         * tree-vrp.c (process_assert_insertions_for): Do not insert
9012         asserts for trivial conditions.
9013
9014 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9015
9016         PR tree-optimization/43280
9017         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
9018         generation.  Move calculation of size out of the if branch.
9019         (find_bswap): Modify compare number generation.
9020
9021 2010-03-11  Richard Guenther  <rguenther@suse.de>
9022
9023         PR lto/43200
9024         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
9025         (input_gimple_stmt): Fixup handled component types during
9026         operand read.  Also fix up decls in ADDR_EXPRs.
9027
9028 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
9029
9030         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
9031         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
9032
9033 2010-03-10  Jan Hubicka  <jh@suse.cz>
9034
9035         PR c/43288
9036         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
9037         * varasm.c (get_variable_section): Don't do that here...
9038         (make_decl_rtl): ... and here.
9039         (do_assemble_alias): Produce decl RTL.
9040         (assemble_alias): Likewise.
9041
9042 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
9043
9044         PR debug/43290
9045         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
9046         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
9047         of fde->vdrap_reg.
9048         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
9049         (based_loc_descr): Only express drap or vdrap regno based expressions
9050         using DW_OP_fbreg when not optimizing.
9051         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
9052         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
9053         REG_CFA_SET_VDRAP note.
9054
9055 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
9056
9057         PR tree-optimization/43236
9058         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
9059         error in calculation of base address in reverse iteration case.
9060         (generate_builtin): Take number of latch executions if the statement
9061         is in the latch.
9062
9063 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
9064
9065         PR middle-end/42859
9066         * tree-eh.c: Include pointer-set.h.
9067         (lower_eh_dispatch): Filter out duplicate case labels and
9068         remove the unneeded edge when the label is unused.  Return
9069         true when some edges are removed.
9070         (execute_lower_eh_dispatch): When any lowering resulted in
9071         removing an edge, also delete unreachable blocks.
9072
9073 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
9074
9075         PR bootstrap/43287
9076         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9077         UNSPEC_MACHOPIC_OFFSET.
9078
9079 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
9080
9081         PR target/43294
9082         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
9083         (m68k_delegitimize_address): New function.
9084
9085 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
9086
9087         PR debug/43299
9088         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
9089
9090         PR debug/43299
9091         * var-tracking.c (adjust_sets): New function.
9092         (count_with_sets, add_with_sets): Use it.
9093         (get_adjusted_src): New inline function.
9094         (add_stores): Use it.
9095
9096         PR debug/43304
9097         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
9098         call cselib_dummy_expand_value_rtx_cb instead of
9099         cselib_expand_value_rtx_cb.
9100
9101         PR debug/43293
9102         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
9103         * config/i386/i386.c: Include debug.h and dwarf2out.h.
9104         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
9105         and .cfi_endproc around the pic thunks.
9106         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
9107         all queued unwind info register saves are saved before the call.
9108         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
9109         considered as sp-=4 for unwind info and the pop as sp+=4 which
9110         also clobbers dest, but doesn't actually restore it.
9111
9112         PR debug/43290
9113         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
9114         RTX_FRAME_RELATED_P.
9115
9116 2010-03-09  Jie Zhang  <jie@codesourcery.com>
9117
9118         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
9119         whitespaces in output template.
9120
9121 2010-03-09  Jie Zhang  <jie@codesourcery.com>
9122
9123         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
9124         out array boundary.
9125
9126 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
9127
9128         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
9129         builtins.exp in a separate job.
9130
9131 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
9132
9133         * graphite-sese-to-poly.c (add_param_constraints): Use
9134         lower_bound_in_type and upper_bound_in_type.
9135
9136 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
9137
9138         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
9139         instead of unsigned_type_node.
9140
9141 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
9142             Reza Yazdani  <reza.yazdani@amd.com>
9143
9144         PR middle-end/43065
9145         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
9146         on pointer type parameters.
9147
9148 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
9149
9150         PR middle-end/42644
9151         PR middle-end/42130
9152         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
9153         handle conversions from pointer to integers.
9154         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
9155         induction variable, to be able to work with code generated by CLooG.
9156         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
9157         (build_poly_scop): Bail out if we cannot codegen a loop.
9158
9159 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
9160
9161         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
9162         code generation with gloog_error.
9163
9164 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
9165
9166         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
9167         Call fold_convert on all the returned values.
9168         (expand_scalar_variables_expr): Pass to
9169         expand_scalar_variables_ssa_name the type of the resulting expression.
9170
9171 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
9172
9173         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
9174         ppl_min_for_le_pointset.
9175         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
9176         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
9177
9178 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
9179
9180         * graphite-dependences.c (map_into_dep_poly): Removed.
9181         (dependence_polyhedron_1): Use combine_context_id_scat.
9182
9183 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
9184
9185         * graphite-poly.h (struct poly_scattering): Add layout documentation.
9186         (struct poly_bb): Same.
9187         (combine_context_id_scat): New.
9188
9189 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
9190
9191         PR middle-end/42326
9192         * sese.c (name_defined_in_loop_p): Return false for default
9193         definitions.
9194
9195 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
9196
9197         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
9198         and clean up the logic.
9199
9200 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
9201
9202         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
9203         early return.
9204
9205 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
9206
9207         * var-tracking.c (remove_cselib_value_chains): Define only for
9208         ENABLE_CHECKING.
9209         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
9210         delete_slot_part, emit_notes_for_differences_1): Don't call
9211         remove_cselib_value_chains here.
9212         (set_slot_part, emit_notes_for_differences_2): Don't call
9213         add_cselib_value_chains here.
9214         (preserved_values): New vector.
9215         (preserve_value): New function.
9216         (add_uses, add_stores, vt_add_function_parameters): Use it
9217         instead of cselib_preserve_value.
9218         (changed_values_stack): New vector.
9219         (check_changed_vars_0): New function.
9220         (check_changed_vars_1, check_changed_vars_2): Use it.
9221         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
9222         changed_values_stack VALUEs.
9223         (vt_emit_notes): For all preserved_values call
9224         add_cselib_value_chains.  If ENABLE_CHECKING call
9225         remove_cselib_value_chains before verifying value_chains is empty.
9226         Initialize and free changed_values_stack.
9227         (vt_initialize): Initialize preserved_values.
9228         (vt_finalize): Free preserved_values.
9229
9230 2010-03-08  Richard Guenther  <rguenther@suse.de>
9231
9232         PR tree-optimization/43269
9233         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
9234         region detection.
9235
9236 2010-03-08  Martin Jambor  <mjambor@suse.cz>
9237
9238         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
9239         (ipa_is_param_called): Removed.
9240         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
9241         (ipa_print_node_params): Do not print the called flag.
9242         (ipa_write_node_info): Do not stream the called flag.
9243         (ipa_read_node_info): Likewise.
9244
9245 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
9246
9247         PR debug/43176
9248         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
9249         * cselib.c (struct expand_value_data): Add dummy field.
9250         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
9251         dummy to false.
9252         (cselib_dummy_expand_value_rtx_cb): New function.
9253         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
9254         any rtl.
9255         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
9256         * var-tracking.c: Include pointer-set.h.
9257         (variable): Change n_var_parts to char from int.  Add
9258         cur_loc_changed and in_changed_variables fields.
9259         (variable_canonicalize): Remove.
9260         (shared_var_p): New inline function.
9261         (unshare_variable): Maintain cur_loc_changed and
9262         in_changed_variables fields.  If var was in changed_variables,
9263         replace it there with new_var.  Just copy cur_loc instead of
9264         resetting it to something else.
9265         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
9266         (dataflow_set_union): Don't call variable_canonicalize.
9267         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
9268         of their DEBUG_EXPR_TREE_DECLs.
9269         (canonicalize_loc_order_check): Verify that cur_loc is NULL
9270         and in_changed_variables and cur_loc_changed is false.
9271         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
9272         and cur_loc_changed.  Don't update cur_loc here.
9273         (variable_merge_over_src): Don't call variable_canonicalize.
9274         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
9275         removing loc that is equal to cur_loc, clear cur_loc,
9276         set cur_loc_changed and ensure variable_was_changed is called.
9277         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
9278         compare pointers in cur_loc check, if it is equal to loc,
9279         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
9280         (variable_different_p): Remove compare_current_location argument,
9281         don't compare cur_loc.
9282         (dataflow_set_different_1): Adjust variable_different_p caller.
9283         (variable_was_changed): If dv had some var in changed_variables
9284         already, reset in_changed_variables flag for it and propagate
9285         cur_loc_changed over to the new variable.  On empty var
9286         always set cur_loc_changed.  Set in_changed_variables on whatever
9287         var is added to changed_variables.
9288         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
9289         Use shared_var_p.  When removing loc that is equal to cur_loc,
9290         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
9291         end, don't set it to something else, just call variable_was_changed.
9292         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
9293         loc being removed, clear cur_loc and set cur_loc_changed.
9294         Set cur_loc_changed if all locations have been removed.
9295         (struct expand_loc_callback_data): New type.
9296         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
9297         allocated.  Always create SUBREGs if simplify_subreg failed.
9298         Prefer to use cur_loc, when that fails and still in
9299         changed_variables (and seen first time) recompute it.  Set
9300         cur_loc_changed of variables which had to change cur_loc and
9301         compute elcd->cur_loc_changed if any of the subexpressions used
9302         had to change cur_loc.
9303         (vt_expand_loc): Adjust to pass arguments in
9304         expand_loc_callback_data structure.
9305         (vt_expand_loc_dummy): New function.
9306         (emitted_notes): New variable.
9307         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
9308         that weren't used for any other decl in current
9309         emit_notes_for_changes call call vt_expand_loc_dummy to update
9310         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
9311         first loc_chain location if NULL before.  Always use just
9312         cur_loc instead of first loc_chain location.  When cur_loc_changed
9313         is false, when not --enable-checking=rtl just don't emit any note.
9314         When rtl checking, compute the note and assert it is the same
9315         as previous note.  Clear cur_loc_changed and in_changed_variables
9316         at the end before removing from changed_variables.
9317         (check_changed_vars_3): New function.
9318         (emit_notes_for_changes): Traverse changed_vars to call
9319         check_changed_vars_3 on each changed var.
9320         (emit_notes_for_differences_1): Clear cur_loc_changed and
9321         in_changed_variables.  Recompute cur_loc of new_var.
9322         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
9323         (vt_emit_notes): Initialize and destroy emitted_notes.
9324
9325 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
9326
9327         PR rtl-optimization/42220
9328         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
9329         Use verify_reg_tracked to determine if we should use OP_OUT rather
9330         than OP_INOUT.
9331         (build_def_use): If we see an in-out operand for a register that we
9332         know nothing about, treat is an output if possible, fail the block if
9333         not.
9334
9335 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
9336
9337         PR debug/42897
9338         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
9339         permanently.
9340
9341 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
9342
9343         PR debug/42897
9344         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
9345         uses of relevant DEFs that are dead outside the loop too.
9346
9347 2010-03-06  Alexandre Oliva <aoliva@redhat.com>
9348
9349         * var-tracking.c (dataflow_set_merge): Swap src and src2.
9350         Reverted:
9351         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
9352         PR debug/41371
9353         * var-tracking.c (values_to_unmark): New variable.
9354         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
9355         values_to_unmark vector.  Moved body to...
9356         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
9357         instead queue it into values_to_unmark vector.
9358         (vt_find_locations): Free values_to_unmark vector.
9359
9360 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
9361
9362         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
9363         (site.exp): Export them when plugins are enabled.
9364
9365 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
9366
9367         PR middle-end/42326
9368         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
9369         that contain scevs.
9370         (chrec_fold_multiply): Same.
9371
9372 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
9373
9374         PR c/43248
9375         * c-decl.c (build_compound_literal): Return early if init is
9376         an error_mark_node.
9377
9378 2010-03-04  Martin Jambor  <mjambor@suse.cz>
9379
9380         PR tree-optimization/43164
9381         PR tree-optimization/43191
9382         * tree-sra.c (type_consists_of_records_p): Reject records with
9383         zero-size bit-fields at the end.
9384
9385 2010-03-04  Mike Stump  <mikestump@comcast.net>
9386
9387         * Makefile.in (TAGS): Remove *.y.
9388
9389 2010-03-04  Richard Guenther  <rguenther@suse.de>
9390
9391         PR tree-optimization/40761
9392         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
9393         in reverse order.
9394         (my_rev_post_order_compute): New function.
9395         (init_pre): Call it.
9396
9397 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
9398
9399         PR middle-end/43209
9400         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
9401         decrease the cost of an IV candidate when the cost is infinite.
9402
9403 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9404
9405         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
9406         Use '3DNow!' for the extension of that name, ensure normal space
9407         after the string.
9408         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
9409
9410 2010-03-03  Jeff Law  <law@redhat.com>
9411
9412         * PR middle-end/32693
9413         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
9414         than gen_rtx_SUBREG.
9415         (extract_bit_field_1): Likewise.
9416
9417 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
9418
9419         * doc/sourcebuild.texi (Test directives): Document that arguments
9420         include-opts and exclude-opts are now optional for dg-skip-if,
9421         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
9422
9423 2010-03-03  Jason Merrill  <jason@redhat.com>
9424
9425         PR c++/12909
9426         * cgraph.h (varpool_node): Add extra_name field.
9427         * varpool.c (varpool_extra_name_alias): New.
9428         (varpool_assemble_decl): Emit extra name aliases.
9429         (varpool_mark_needed_node): Look past an extra name alias.
9430         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
9431         * lto-streamer-in.c (lto_input_tree): Read it.
9432         * lto-streamer-out.c (output_unreferenced_globals): Write it.
9433
9434 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
9435
9436         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
9437         (sparc*-*-solaris2*): ...this.
9438
9439 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
9440
9441         PR debug/43229
9442         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
9443         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
9444         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
9445         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
9446
9447         PR debug/43237
9448         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
9449         fallthrough to default handling, just with want_address 0 instead of 2.
9450         For single element lists, add_AT_loc directly, otherwise create an
9451         artificial variable DIE and stick location list to it.
9452
9453         PR debug/43177
9454         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
9455         (VAL_EXPR_HAS_REVERSE): Define.
9456         (reverse_op): New function.
9457         (add_stores): For reversible operations add an extra MO_VAL_USE.
9458
9459 2010-03-02  Jason Merrill  <jason@redhat.com>
9460
9461         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
9462
9463 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
9464
9465         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
9466         (sparc64-*-linux*): Likewise.
9467         (sparc64-*-solaris2*): Include assembler files before linker ones.
9468         (sparc-*-solaris2*): Simplify and reorder to match previous case.
9469         * config/sparc/gas.h: Delete.
9470         * config/sparc/sol2-64.h: Add copyright notice.
9471         * config/sparc/sol2-gas-bi.h: Likewise.
9472         * config/sparc/sol2-gld.h: Likewise.
9473         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
9474         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
9475         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
9476         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
9477         (sparc_elf_asm_named_section): Rename into...
9478         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
9479
9480 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
9481
9482         * config/alpha/alpha.c (override_options): Fix -mtune error message.
9483
9484 2010-03-02  Jeff Law  <law@redhat.com>
9485
9486         PR middle-end/42431
9487         * reload1.c (rtx_p, substitute_stack): Declare.
9488         (substitute): Record addresses of changed rtxs.
9489         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
9490         Restore the original rtx when complete.
9491         (reload): Free subsitute_stack when complete.
9492
9493 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
9494
9495         * doc/gccint.texi (menu): Add Testsuites as a chapter.
9496         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
9497         new chapter.
9498         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
9499         LTO Testing, gcov Testing, profopt Testing, compat Testing,
9500         Torture Tests): Change from subsection to section.
9501
9502 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
9503             Steven Bosscher  <steven@gcc.gnu.org>
9504
9505         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
9506         instead of bb.
9507
9508 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
9509
9510         PR middle-end/42640
9511         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
9512         the assignment from the new induction variable to the assignment
9513         of the value from the original loop PHI function.
9514
9515 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
9516             Daniel Jacobowitz  <dan@codesourcery.com>
9517
9518         * doc/sourcebuild.texi (Test directives): Clarify options to
9519         dg-skip-if.
9520
9521 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9522
9523         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
9524         Disable cfi directives unless GCC and gas agree on using read-only
9525         .eh_frame sections for 64-bit.
9526         * configure: Regenerate.
9527
9528 2010-03-01  Richard Guenther  <rguenther@suse.de>
9529
9530         PR tree-optimization/43220
9531         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
9532         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
9533
9534 2010-03-01  Richard Guenther  <rguenther@suse.de>
9535             Martin Jambor  <mjambor@suse.cz>
9536
9537         PR middle-end/41250
9538         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
9539         gimplified parameters.
9540
9541 2010-03-01  Christian Bruel  <christian.bruel@st.com>
9542
9543         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
9544
9545 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
9546
9547         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
9548
9549 2010-03-01  Richard Guenther  <rguenther@suse.de>
9550
9551         PR middle-end/43213
9552         * expr.c (expand_assignment): Use the alias-oracle to tell
9553         if the rhs aliases the result decl.
9554
9555 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9556
9557         PR pch/14940
9558         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
9559         to sol_gt_pch_get_address.
9560         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
9561         64-bit, SPARC and x86.
9562         (sol_gt_pch_get_address): New function.
9563
9564 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
9565
9566         * toplev.h (inform_n, error_n): Declare.
9567         * diagnostic.c (inform_n, error_n): New function.
9568
9569 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
9570
9571         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
9572         has no rtl yet when processing local_decls, queue it and recheck
9573         if deferred stack allocation hasn't assigned it rtl.
9574
9575 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
9576
9577         * config/sh/sh.c (unspec_bbr_uid): New.
9578         (gen_block_redirect): Use it instead of INSN_UID.
9579         (gen_far_branch): Likewise.
9580
9581 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
9582
9583         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
9584         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
9585
9586 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9587
9588         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
9589         (Warning Options): -Wno-conversion-null is valid for
9590         Objective-C++ as well.
9591         * doc/tm.texi (Named Address Spaces): Likewise.
9592         * doc/plugins.texi (Plugins): Replace TABs with spaces.
9593         * doc/tree-ssa.texi (Tree SSA): Likewise.
9594
9595 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
9596
9597         PR bootstrap/43202
9598         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
9599         by default.  Don't set the default arch for
9600         i[34567]86-*-darwin*|x86_64-*-darwin*.
9601
9602 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
9603
9604         PR bootstrap/43202
9605         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
9606         default.  Set the default 32bit/64bit archs with $with_arch
9607         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
9608
9609 2010-02-27  Richard Guenther  <rguenther@suse.de>
9610
9611         PR tree-optimization/43186
9612         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
9613         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
9614         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
9615         unroller iterations.
9616
9617 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
9618
9619         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
9620         required and i[34567]86-*-* targets don't support 64bit ISA.
9621
9622 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
9623
9624         PR ada/43096
9625         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
9626         the same alias set.
9627
9628 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
9629
9630         * config.gcc: Set the default arch at least to Prescott for
9631         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
9632         if SSE math is enabled.
9633
9634 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9635
9636         * diagnostic.c (diagnostic_initialize): Update.
9637         (diagnostic_report_diagnostic): Test inhibit_notes_p for
9638         informative notes.
9639         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
9640         (diagnostic_inhibit_notes): New.
9641         * toplev.c (process_options): inhibit notes with -fcompare-debug.
9642
9643 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9644
9645         PR c/20631
9646         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
9647         * doc/standards.texi: Likewise.
9648         * doc/extend.texi: Likewise.
9649         * doc/trouble.texi: Likewise.
9650         * doc/cppopts.texi: Likewise.
9651         * doc/install.texi: Likewise.
9652         * c.opt (std=c90,std=gnu90): New options.
9653         * c-opts.c (c_common_handle_option): Handle them.
9654
9655 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9656
9657         PR c/24577
9658         * c-decl.c (undeclared_variable): Use an informative note.
9659
9660 2010-02-26  Richard Guenther  <rguenther@suse.de>
9661
9662         PR tree-optimization/43186
9663         * gimple.h (gimple_fold): Remove.
9664         * gimple.c (gimple_fold): Remove.  Inline into single user ...
9665         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
9666         Try harder for conditions.
9667
9668 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
9669
9670         PR debug/43190
9671         * function.c (used_types_insert): Don't skip through named pointer
9672         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
9673         and it is different from the main variant's type.
9674
9675 2010-02-26  Nick Clifton  <nickc@redhat.com>
9676
9677         * config/rx/rx.md (sminsi3): Remove bogus alternative.
9678
9679 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
9680
9681         * config.gcc: Support --with-fpmath=sse for x86.
9682
9683         * config/i386/ssemath.h: New.
9684
9685         * doc/install.texi (--with-fpmath=sse): Documented.
9686
9687 2010-02-26  Richard Guenther  <rguenther@suse.de>
9688
9689         PR tree-optimization/43188
9690         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
9691         vector types of over-aligned element type.
9692
9693 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
9694
9695         PR target/43175
9696         * config/i386/i386.c (expand_vec_perm_blend): Use correct
9697         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
9698
9699 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9700
9701         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
9702
9703 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
9704
9705         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
9706         * var-tracking.c: Include diagnostic.h.
9707         (debug_dv): New function.
9708         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
9709
9710         PR debug/43160
9711         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
9712         (add_value_chain, add_value_chains, remove_value_chain,
9713         remove_value_chains): Handle DEBUG_EXPRs.
9714         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
9715
9716         PR debug/43161
9717         * regcprop.c (struct queued_debug_insn_change): New type.
9718         (struct value_data_entry): Add debug_insn_changes field.
9719         (struct value_data): Add n_debug_insn_changes field.
9720         (debug_insn_changes_pool): New variable.
9721         (free_debug_insn_changes, apply_debug_insn_changes,
9722         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
9723         (kill_value_one_regno): Call free_debug_insn_changes if needed.
9724         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
9725         fields.
9726         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
9727         changes for them.
9728         (copyprop_hardreg_forward_1): Don't call apply_change_group for
9729         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
9730         changes, call cprop_find_used_regs via note_stores.
9731         (copyprop_hardreg_forward): When copying vd from predecessor
9732         which has any queued DEBUG_INSN changes, make sure the pointers are
9733         cleared.  At the end call df_analyze and then if there are any
9734         DEBUG_INSN changes queued at the end of some basic block for still
9735         live registers, apply them.
9736         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
9737
9738 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
9739
9740         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
9741         (arm*-*-*): Ditto.
9742
9743 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
9744
9745         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
9746         targets.  Set the default with_cpu/with_arch from arch/cpu.
9747         Allow x86-64 and native for with_cpu/with_arch.
9748
9749 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
9750
9751         * ebitmap.c: Change calls to verify_popcount with calls to
9752         sbitmap_verify_popcount.
9753         (ebitmap_clear_bit): Fixed map->cacheindex test and
9754         map>cache update when bit clearing results in an empty
9755         element.
9756
9757 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
9758
9759         PR target/43154
9760         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
9761         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
9762         and support both V2DF and V2DI modes.
9763         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
9764         support both V2DF and V2DI modes.
9765         (general): Delete trailing whitespace from a few patterns.
9766
9767         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9768         V2DF/V2DI interleave high/low builtins.
9769
9770         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
9771         new VSX builtins.
9772
9773         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
9774         interleave high/low functions.
9775
9776 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
9777
9778         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
9779         #pragma extern_prefix.
9780
9781 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
9782
9783         PR debug/43166
9784         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
9785         BLKmode, assert op0 is a MEM and just adjust its mode.
9786
9787         PR debug/43165
9788         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
9789         if bitpos isn't multiple of mode's bitsize.
9790
9791 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9792
9793         * c.opt (-ftemplate-depth=): New.
9794         (-ftemplate-depth-): Deprecate.
9795         * optc-gen.awk: Handle -ftemplate-depth=.
9796         * opth-gen.awk: Likewise.
9797         * c-opts.c (c_common_handle_option): Likewise.
9798         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
9799
9800 2010-02-24  Jason Merrill  <jason@redhat.com>
9801
9802         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
9803
9804 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9805
9806         * cfg.c (alloc_aux_for_block): Remove inline.
9807         (alloc_aux_for_edge): Likewise.
9808
9809 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9810
9811         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
9812
9813 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9814
9815         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
9816         * config/i386/sol2-gas.h: New file.
9817         * config.gcc (i[34567]86-*-solaris2*): Use it.
9818
9819 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9820
9821         PR c/43128
9822         * c-typeck.c (ep_convert_and_check): New.
9823         (build_conditional_expr): Use it.
9824         (build_binary_op): Likewise.
9825
9826 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
9827
9828         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
9829
9830         PR debug/43150
9831         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
9832         bounds even for -O+.
9833         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
9834         expr needs to have DECL_NAME set.
9835
9836 2010-02-24  Nick Clifton  <nickc@redhat.com>
9837
9838         * config/mep/mep.c: Include gimple.h.
9839         (mep_function_uses_sp): Delete unused function.
9840         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
9841         parameters.  Use unsigned integers to count args.  Return a
9842         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
9843
9844 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
9845
9846         PR target/43107
9847         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
9848         greater or equal to nelt instead of 2 * nelt.
9849         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
9850         with nelt - 1.
9851
9852 2010-02-23  Jason Merrill  <jason@redhat.com>
9853
9854         PR debug/42800
9855         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
9856         in cfun->local_decls even if they have register types.
9857
9858         PR c++/42837
9859         * stor-layout.c (place_field): Don't warn about unnecessary
9860         DECL_PACKED if the type is packed.
9861
9862 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
9863
9864         PR target/43139
9865         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
9866         GOTOFF relocs, even when the base reg isn't pic pointer.
9867
9868 2010-02-23  Michael Matz  <matz@suse.de>
9869
9870         PR debug/43077
9871         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
9872         (expand_gimple_basic_block): Generate and use debug temps if there
9873         are debug uses left after the last real use of TERed ssa names.
9874         Unlink debug immediate uses when they are expanded.
9875
9876 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9877
9878         PR 43123
9879         * config/i386/i386.c (override_options): Reorganise to provide
9880         better error messages.
9881
9882 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
9883
9884         PR middle-end/43083
9885         * graphite-scop-detection.c (create_single_exit_edge): Move
9886         the call to find_single_exit_edge to....
9887         (create_sese_edges): ...here.  Don't handle multiple edges
9888         exiting the function.
9889         (build_graphite_scops): Don't handle multiple edges
9890         exiting the function.
9891
9892 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
9893
9894         PR middle-end/43097
9895         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
9896         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
9897
9898 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
9899
9900         PR middle-end/43026
9901         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
9902
9903 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9904
9905         PR c++/43126
9906         * c-typeck.c (convert_arguments): Print declaration location.
9907         * c-common.c (validate_nargs): Rename as
9908         builtin_function_validate_nargs.
9909         (check_builtin_function_arguments): Update.
9910
9911 2010-02-22  Richard Guenther  <rguenther@suse.de>
9912
9913         PR lto/43045
9914         * tree-inline.c (declare_return_variable): Use the type of
9915         the call stmt lhs if available.
9916
9917 2010-02-22  Duncan Sands  <baldrick@free.fr>
9918
9919         * passes.c (register_pass): Always consider all pass lists when
9920         ref_pass_instance_number is zero.
9921
9922 2010-02-22  Richard Guenther  <rguenther@suse.de>
9923
9924         PR tree-optimization/42749
9925         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
9926         parameter.  Do arithmetic in the original type.
9927         (update_accumulator_with_ops): Likewise.
9928         (adjust_accumulator_values): Adjust.
9929
9930 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9931
9932         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
9933         (QI to BLKmode splitter): New splitter.
9934
9935 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
9936
9937         * config/i386/i386.c (initial_ix86_tune_features): Turn on
9938         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
9939
9940 2010-02-22  Richard Guenther  <rguenther@suse.de>
9941
9942         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
9943
9944 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
9945
9946         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
9947         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
9948         ($(T)crti.o, $(T)crtn.o): Remove rules.
9949
9950 2010-02-21  Tobias Burnus  <burnus@net-b.de>
9951
9952         PR fortran/35259
9953         * doc/invoke.texi (-fassociative-math): Document that this
9954         option is automatically enabled for Fortran.
9955
9956 2010-02-20  David S. Miller  <davem@davemloft.net>
9957
9958         * configure.ac: Test if linker and assembler properly support
9959         GOTDATA_OP relocations.
9960         * configure: Rebuild.
9961         * config.in: Likewise.
9962         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
9963         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
9964         (movsi_high_pic): Likewise.
9965         (movdi_lo_sum_pic): Likewise.
9966         (movdi_high_pic): Likewise.
9967         (movsi_pic_gotdata_op): New pattern.
9968         (movdi_pic_gotdata_op): Likewise.
9969         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
9970         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
9971
9972 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
9973
9974         PR target/43067
9975         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
9976         attribute to ssemul.
9977         (xop_mulv2div2di3_high): Ditto.
9978
9979 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9980
9981         PR c++/35669
9982         * c.opt (Wconversion-null): New option.
9983         * doc/invoke.texi (Wconversion-null): Document.
9984
9985 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9986
9987         * common.opt (Wlarger-than-): Add Undocumented.
9988
9989 2010-02-19  Mike Stump  <mikestump@comcast.net>
9990
9991         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
9992
9993 2010-02-19  Jason Merrill  <jason@redhat.com>
9994
9995         PR target/40332
9996         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
9997         * configure: Likewise.
9998
9999 2010-02-20  Alan Modra  <amodra@gmail.com>
10000
10001         PR middle-end/42344
10002         * cgraph.h (cgraph_make_decl_local): Declare.
10003         * cgraph.c (cgraph_make_decl_local): New function.
10004         (cgraph_make_node_local): Use it.
10005         * cgraphunit.c (cgraph_function_versioning): Likewise.
10006         * ipa.c (function_and_variable_visibility): Likewise.
10007
10008 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
10009
10010         PR bootstrap/43121
10011         * except.c (sjlj_emit_function_enter): Don't call
10012         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
10013         directly.
10014         * rtl.h (add_reg_br_prob_note): Remove prototype.
10015
10016 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10017
10018         PR 41779
10019         * c-common.c (conversion_warning): Remove widening conversions
10020         before checking the conversion of integers to reals.
10021
10022 2010-02-19  Mike Stump  <mikestump@comcast.net>
10023
10024         PR middle-end/43125
10025         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
10026
10027         PR objc/43061
10028         * cgraphunit.c (process_function_and_variable_attributes): Check
10029         DECL_PRESERVE_P instead of looking up attribute "used".
10030         * ipa-pure-const.c (check_decl): Likewise.
10031         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
10032         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
10033         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
10034         instead of attribute "used".
10035         * config/sol2-c.c (solaris_pragma_init): Likewise.
10036         (solaris_pragma_fini): Likewise.
10037
10038 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
10039
10040         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
10041         Use XCNEW instead of xcalloc.
10042         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
10043         XNEW instead of xmalloc.
10044         (get_fields): Use XNEWVEC instead of xmalloc.
10045
10046         PR debug/43084
10047         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
10048         populate vars array.
10049         (create_new_general_access): For debug stmts just reset value.
10050         (get_stmt_accesses): For accesses within debug stmts just record them
10051         using add_access_to_acc_sites instead of preventing the peeling or
10052         counting them as accesses.
10053
10054         PR middle-end/42233
10055         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
10056
10057 2010-02-19  Richard Guenther  <rguenther@suse.de>
10058
10059         PR tree-optimization/42916
10060         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
10061         instructions.
10062
10063 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
10064
10065         * configure.ac: Replace all uses of changequote in macro arguments
10066         with proper quoting.
10067
10068 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
10069
10070         PR middle-end/42233
10071         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
10072
10073 2010-02-19  Richard Guenther  <rguenther@suse.de>
10074
10075         PR tree-optimization/42944
10076         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
10077         test for aliasing with errno.
10078
10079 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
10080
10081         PR middle-end/42233
10082         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
10083         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
10084         * dojump.c: Include output.h.
10085         (inv): New inline function.
10086         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
10087         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
10088         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
10089         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
10090         argument, pass it down to other calls.
10091         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
10092         add REG_BR_PROB note to the conditional jump.
10093         * cfgexpand.c (add_reg_br_prob_note): Removed.
10094         (expand_gimple_cond): Don't call it, add the probability
10095         as last argument to jumpif_1/jumpifnot_1.
10096         * Makefile.in (dojump.o): Depend on output.h.
10097         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
10098         callers.
10099         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
10100         * stmt.c (do_jump_if_equal): Likewise.
10101         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
10102         * loop-unswitch.c (compare_and_jump_seq): Likewise.
10103         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
10104         Likewise.
10105         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
10106         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
10107         jumpifnot_1 callers.
10108         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
10109         callers.
10110         (store_expr): Adjust jumpifnot caller.
10111         (store_constructor): Adjust jumpif caller.
10112
10113         PR middle-end/42233
10114         * gimplify.c (gimple_boolify): For __builtin_expect call
10115         gimple_boolify also on its first argument.
10116
10117 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
10118
10119         * configure.ac (gnu-unique-object): Wrap regexps using [] in
10120         changequote block.
10121         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
10122         * configure: Regenerated.
10123
10124 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10125
10126         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
10127         lang_hooks.types_compatible_p instead of comptypes.
10128
10129 2010-02-18  Sebastian Huber <sebastian.huber@embedded-brains.de>
10130
10131         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
10132         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
10133         if __prefer_thumb__ is defined.
10134
10135 2010-02-18  Martin Jambor  <mjambor@suse.cz>
10136
10137         PR tree-optimization/43066
10138         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
10139         array with zero-sized element type.
10140
10141 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
10142
10143         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
10144         rtx, allocate struct var_loc_node here and return it to the
10145         caller, and only if it is actually needed.
10146         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
10147         move it earlier and return immediately if it returns NULL.
10148
10149 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
10150
10151         * config/sparc/gas.h: New file.  Restore
10152         TARGET_ASM_NAMED_SECTION to its ELF default.
10153         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
10154         check !HAVE_GNU_AS.
10155         * config/sparc/sparc.c (sparc_elf_asm_named_section):
10156         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
10157         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
10158         after sparc/sysv4.h.
10159
10160 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
10161
10162         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
10163
10164 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
10165
10166         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
10167         patterns from predicated pattern.
10168
10169 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
10170
10171         PR target/43103
10172         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
10173         for insn mnemonic suffix.
10174
10175 2010-02-17  Richard Guenther  <rguenther@suse.de>
10176
10177         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
10178         to loop PHI nodes.
10179
10180 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
10181
10182         PR debug/42918
10183         * caller-save.c (save_call_clobbered_regs): If BB ends with
10184         a DEBUG_INSN, move any notes in between last real insn and the last
10185         DEBUG_INSN after the last DEBUG_INSN.
10186
10187 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
10188
10189         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
10190         Fix return type.  Fix argument type.  Explain meaning of return value.
10191
10192 2010-02-16  Richard Guenther  <rguenther@suse.de>
10193
10194         PR tree-optimization/41043
10195         * tree-vrp.c  (vrp_var_may_overflow): Only ask SCEV for real loops.
10196         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
10197         statements ...
10198         (vrp_visit_phi_node): ... but only for loop PHI nodes.
10199
10200 2010-02-16  Ira Rosen  <irar@il.ibm.com>
10201
10202         PR tree-optimization/43074
10203         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
10204         * tree-vect-loop.c (vect_analyze_loop_operations): Add
10205         vectorizable cycles in hybrid SLP check.
10206         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
10207
10208 2010-02-16  Richard Guenther  <rguenther@suse.de>
10209
10210         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
10211         (true_dependence): If memrefs_conflict_p computes must-alias
10212         trust it.  Move TBAA check after offset-based disambiguation.
10213         (canon_true_dependence): Likewise.
10214
10215 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
10216
10217         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
10218         * doc/invoke.texi: Document it.
10219         * var-tracking.c: Include toplev.h and params.h.
10220         (vt_find_locations): Return bool indicating success.  Compute
10221         hash sizes unconditionally.  Check new parameter, report.
10222         (variable_tracking_main_1): Check vt_find_locations results and
10223         retry.  Renamed from...
10224         (variable_tracking_main): ... this.  New wrapper to preserve
10225         flag_var_tracking_assignments.
10226         * Makefile.in (var-tracking.o): Adjust dependencies.
10227
10228 2010-02-16  Jack Howarth <howarth@bromo.med.uc.edu>
10229             Jakub Jelinek <jakub@redhat.com>
10230
10231         PR target/42854
10232         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
10233         if weak_import attribute is present.
10234         * config/darwin.c (machopic_select_section): Likewise.
10235
10236 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
10237
10238         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
10239         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
10240         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
10241         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
10242
10243         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
10244         types.
10245
10246         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
10247         Fix argument types.
10248
10249         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
10250         Rewrite text to refer to the names.
10251
10252 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
10253
10254         * config/i386/i386-builtin-types.def
10255         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
10256         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
10257         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
10258         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
10259         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
10260         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
10261         IX86_BUILTIN_VPERMIL2PS256.
10262         (MULTI_ARG_4_DF2_DI_I): Defined.
10263         (MULTI_ARG_4_DF2_DI_I1): Defined.
10264         (MULTI_ARG_4_SF2_SI_I): Defined.
10265         (MULTI_ARG_4_SF2_SI_I1): Defined.
10266         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
10267         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
10268         __builtin_ia32_vpermil2ps256.
10269         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
10270         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
10271         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
10272         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
10273         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
10274         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
10275         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
10276         CODE_FOR_xop_vpermil2v8sf3.
10277         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
10278         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
10279         * config/i386/xopintrin.h (_mm_permute2_pd): New.
10280         (_mm256_permute2_pd): New.
10281         (_mm_permute2_ps): New.
10282         (_mm256_permute2_ps): New.
10283
10284 2010-02-15  Nick Clifton  <nickc@redhat.com>
10285
10286         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
10287         boolean parameters.  Use emit_jump_insn when emitting a pop
10288         instruction containing a return insn.
10289         (push): Use 'true' rather than '1' as second parameter to F.
10290         (h8300_expand_prologue): Likewise.
10291         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
10292         (h8300_expand_epilogue): Likewise.
10293
10294 2010-02-15  Richard Guenther  <rguenther@suse.de>
10295
10296         PR middle-end/43068
10297         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
10298         if that is zero.
10299
10300 2010-02-15  Nick Clifton  <nickc@redhat.com>
10301
10302         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
10303         delta.
10304
10305 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
10306
10307         * intl.c (fake_ngettext): New function.
10308         * intl.h (fake_ngettext): Declare.
10309         (ngettext): Define macro.
10310         * collect2.c (notice_translated): New function.
10311         (main): Use notice_translated and ngettext.
10312         * collect2.h (notice_translated): Declare.
10313
10314 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
10315
10316         * reorg.c (delete_computation): Comment fixes.
10317         * caller-save.c (setup_save_areas): Idem.
10318         * sel-sched-dump.c (dump_lv_set): Idem.
10319         * rtl.def: Idem.
10320
10321 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10322
10323         * config/s390/s390.c (s390_sched_init): New function.
10324         (TARGET_SCHED_INIT): Target hook defined.
10325
10326 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
10327             Jack Howarth  <howarth@bromo.med.uc.edu>
10328             Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10329
10330         PR target/42982
10331         Partial revert of unintended change in fix for PR41605.
10332         * config/darwin.h: Fix typo.
10333         * config/darwin9.h: Same.
10334
10335 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
10336
10337         * c-pch.c (pch_init): Clear v.
10338
10339 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
10340
10341         PR middle-end/42930
10342         * graphite-scop-detection.c (graphite_can_represent_scev): Call
10343         graphite_can_represent_init for MULT_EXPR.
10344
10345 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
10346
10347         PR middle-end/42914
10348         PR middle-end/42530
10349         * graphite-sese-to-poly.c (remove_phi): New.
10350         (translate_scalar_reduction_to_array): Call remove_phi.
10351
10352 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
10353
10354         PR middle-end/42771
10355         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
10356         * graphite-clast-to-gimple.h (gloog): Update declaration.
10357         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
10358         * graphite-poly.h (struct poly_bb): Add missing comments.
10359         (struct scop): Add poly_scop_p field.
10360         (POLY_SCOP_P): New.
10361         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
10362         * graphite.c (graphite_transform_loops): Build the polyhedral
10363         representation for each scop before code generation.
10364         * sese.c (rename_variables_in_operand): Removed.
10365         (rename_variables_in_expr): Return the renamed expression.
10366         (rename_sese_parameters): New.
10367         * sese.h (rename_sese_parameters): Declared.
10368
10369 2010-02-11  Richard Guenther  <rguenther@suse.de>
10370
10371         PR tree-optimization/42998
10372         * tree-ssa-pre.c (create_expression_by_pieces): Treat
10373         POINTER_PLUS_EXPR properly.
10374
10375 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
10376             Changpeng Fang  <changpeng.fang@amd.com>
10377
10378         PR middle-end/40886
10379         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
10380         the cost of an IV candidate when the IV is used in a test against zero.
10381
10382         * gcc.dg/tree-ssa/ivopts-3.c: New.
10383
10384 2010-02-11  Richard Guenther  <rguenther@suse.de>
10385
10386         PR lto/41664
10387         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
10388         pointer-vs-decl case by swapping refs.  Handle some cases
10389         of pointer-vs-decl disambiguations more conservatively.
10390         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
10391         to false after expanding.
10392
10393 2010-02-11  Richard Guenther  <rguenther@suse.de>
10394
10395         PR driver/43021
10396         * gcc.c (process_command): Handle LTO file@offset case more
10397         appropriately.
10398
10399 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
10400
10401         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
10402         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
10403         of DEBUG_INSNs.
10404         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
10405
10406         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
10407         if MEM's mode size isn't DWARF2_ADDR_SIZE.
10408         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
10409         Optimize eq/ne comparisons when both arguments are known to be
10410         zero-extended.
10411         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
10412         Don't mask operands unnecessarily if they are known to be already
10413         zero-extended.
10414
10415 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
10416
10417         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
10418         instead of loop.
10419
10420 2010-02-10  Richard Guenther  <rguenther@suse.de>
10421
10422         PR tree-optimization/43017
10423         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
10424         for wrapping signed arithmetic.
10425
10426 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
10427
10428         PR debug/43010
10429         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
10430         if no debug info should be emitted for it.
10431
10432 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
10433
10434         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
10435         note when flag_exceptions is set.
10436
10437 2010-02-10  Duncan Sands  <baldrick@free.fr>
10438
10439         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
10440
10441 2010-02-10  Richard Guenther  <rguenther@suse.de>
10442
10443         PR c/43007
10444         * tree.c (get_unwidened): Handle constants.
10445         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
10446
10447 2010-02-10  Martin Jambor  <mjambor@suse.cz>
10448
10449         PR lto/42985
10450         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
10451         check for variable argument counts independently.
10452
10453 2010-02-10  Christian Bruel  <christian.bruel@st.com>
10454
10455         PR target/42841
10456         * config/sh/sh.c (find_barrier): Increase length for non delayed
10457         conditional branches.
10458
10459 2010-02-10  Christian Bruel  <christian.bruel@st.com>
10460
10461         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
10462
10463 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
10464
10465         * builtins.c (set_builtin_user_assembler_name): Also handle
10466         ffs if int is smaller than word.
10467
10468 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
10469
10470         PR middle-end/42973
10471         * ira-conflicts.c (get_dup): Remove.
10472         (process_reg_shuffles): Add new parameter.  Use it as an
10473         additional guard for copy generation.
10474         (add_insn_allocno_copies): Rewrite.
10475
10476 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
10477
10478         * common.opt (fsched2-use-traces): Preserved for backward
10479         compatibility.
10480         * doc/invoke.texi: Remove the documentation about option
10481         -fsched2-use-traces.
10482         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
10483         flag_sched2_use_traces.
10484         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
10485         the backward compatibility flag section.
10486
10487 2010-02-09  Richard Guenther  <rguenther@suse.de>
10488
10489         PR tree-optimization/43008
10490         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
10491         make HEAP variables initialized from global memory if they
10492         are not known builtin functions.
10493         (find_func_aliases): Adjust.
10494
10495 2010-02-09  Richard Guenther  <rguenther@suse.de>
10496
10497         PR tree-optimization/43000
10498         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
10499         arithmetic manually.
10500
10501 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
10502
10503         PR tree-optimization/42931
10504         * tree-loop-linear.c (try_interchange_loops): Don't call
10505         double_int_mul if estimated_loop_iterations failed.
10506
10507 2010-02-08  Martin Jambor  <mjambor@suse.cz>
10508
10509         PR middle-end/42898
10510         * tree-sra.c (build_accesses_from_assign): Do not mark in
10511         should_scalarize_away_bitmap if stmt has volatile ops.
10512         (sra_modify_assign): Do not process assigns piecemeal if if stmt
10513         has volatile ops.
10514
10515 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
10516
10517         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
10518
10519 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
10520
10521         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
10522         before the pattern.
10523
10524 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
10525
10526         PR middle-end/42946
10527         * df-core.c (df_finish_pass): Change type of saved_flags to int.
10528
10529 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
10530
10531         PR middle-end/42988
10532         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
10533         to unknown_dependence.
10534         (graphite_legal_transform_dr): Handle the unknown_dependence.
10535         (graphite_carried_dependence_level_k): Same.
10536
10537 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
10538
10539         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
10540
10541 2010-02-07  Richard Guenther  <rguenther@suse.de>
10542
10543         PR middle-end/42991
10544         * expr.c (get_inner_reference): Always initialize *pbitsize.
10545
10546 2010-02-07  Richard Guenther  <rguenther@suse.de>
10547
10548         PR middle-end/42956
10549         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
10550         new ARRAY_REFs on variable size element or minimal index arrays.
10551         Complete.
10552         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
10553         gimple_fold_indirect_ref.
10554
10555 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
10556
10557         PR target/42957
10558         * arm.c (arm_override_options): Just return if the user has specified
10559         an invalid fpu name.
10560
10561 2010-02-03  Jason Merrill  <jason@redhat.com>
10562
10563         PR c++/42870
10564         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
10565         i386_pe_maybe_record_exported_symbol.
10566
10567 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
10568
10569         PR target/42924
10570         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
10571         (pa_delegitimize_address): New function.
10572
10573 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
10574
10575         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
10576         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
10577
10578 2010-02-05  Richard Guenther  <rguenther@suse.de>
10579
10580         PR lto/42762
10581         * lto-streamer-in.c (get_resolution): Deal with references
10582         to undefined functions.
10583
10584 2010-02-05  Richard Guenther  <rguenther@suse.de>
10585
10586         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
10587         (fold_const_aggregate_ref): Likewise.
10588         (ccp_fold_stmt): Substitute loads.
10589         (maybe_fold_reference): Verify types before substituting.
10590         Unshare properly.
10591         (fold_gimple_assign): Unshare properly.
10592         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
10593
10594 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
10595
10596         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
10597         for rs6000_gen_cell_microcode.
10598
10599 2010-02-04  Richard Guenther  <rguenther@suse.de>
10600
10601         PR rtl-optimization/42952
10602         * dse.c (const_or_frame_p): Remove MEM handling.
10603
10604 2010-02-04  Nick Clifton  <nickc@redhat.com>
10605
10606         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
10607         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
10608         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
10609         (mn10300_asm_output_mi_thunk): New function.
10610         (mn10300_can_output_mu_thunk): New function.
10611         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
10612         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
10613         (FUNCTION_ARG): Delete incorrect comment.
10614
10615 2010-02-03  Jason Merrill  <jason@redhat.com>
10616
10617         PR c++/40138
10618         * fold-const.c (operand_equal_p): Handle erroneous types.
10619
10620 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
10621
10622         * config/h8300/h8300.md (can_delay): Fix attibute condition.
10623
10624 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
10625
10626         PR rtl-optimization/42941
10627         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
10628         of xmalloc.
10629
10630 2010-02-03  Jason Merrill  <jason@redhat.com>
10631
10632         PR c++/35652
10633         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
10634
10635 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
10636
10637         PR debug/42896
10638         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
10639         (cselib_reset_table): Renamed from...
10640         (cselib_reset_table_with_next_value): ... this.
10641         (cselib_get_next_uid): Renamed from...
10642         (cselib_get_next_unknown_value): ... this.
10643         * cselib.c (next_uid): Renamed from...
10644         (next_unknown_value): ... this.
10645         (cselib_clear_table): Adjust.
10646         (cselib_reset_table): Adjust.  Renamed from...
10647         (cselib_reset_table_with_next_value): ... this.
10648         (cselib_get_next_uid): Adjust.  Renamed from...
10649         (cselib_get_next_unknown_value): ... this.
10650         (get_value_hash): Use hash.
10651         (cselib_hash_rtx): Likewise.
10652         (new_cselib_val): Adjust.  Set and dump uid.
10653         (cselib_lookup_mem): Pass next_uid as hash.
10654         (cselib_subst_to_values): Likewise.
10655         (cselib_log_lookup): Dump uid.
10656         (cselib_lookup): Pass next_uid as hash.  Adjust.
10657         (cselib_process_insn): Adjust.
10658         (cselib_init): Initialize next_uid.
10659         (cselib_finish): Adjust.
10660         (dump_cselib_table): Likewise.
10661         * dse.c (canon_address): Dump value uid.
10662         * print-rtl.c (print_rtx): Print value uid.
10663         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
10664         (dvuid): New type.
10665         (dv_uid): New function, sort of renamed from...
10666         (dv_htab_hash): ... this, reimplemented in terms of it and...
10667         (dv_uid2hash): ... this.  New.
10668         (variable_htab_eq): Drop excess assertions.
10669         (tie_break_pointers): Removed.
10670         (canon_value_cmp): Compare uids.
10671         (variable_post_merge_New_vals): Print uids.
10672         (vt_add_function_parameters): Adjust.
10673         (vt_initialize): Reset table.  Adjust.
10674
10675 2010-02-03  Richard Guenther  <rguenther@suse.de>
10676
10677         PR tree-optimization/42944
10678         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
10679         (call_may_clobber_ref_p_1): Likewise.  Properly handle
10680         malloc and calloc clobbering errno.
10681
10682 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
10683
10684         * doc/invoke.texi: Fix name of sched1 dump.
10685
10686         * opts.c (decode_options): Set flag_tree_switch_conversion
10687         only conditionally on optimize >= 2.
10688
10689         * gcse.c: Assorted comment fixes in pass description.
10690
10691 2010-02-03  Anthony Green  <green@moxielogic.com>
10692
10693         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
10694         nop padding in order to maintain alignment of storage location of
10695         target function address.
10696         (moxie_trampoline_init): Store target function address at newly
10697         aligned location.
10698         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
10699         to 32.
10700         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
10701
10702 2010-02-03  Richard Guenther  <rguenther@suse.de>
10703
10704         PR middle-end/42927
10705         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
10706
10707 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10708
10709         * config.gcc: Reenable check for obsolete targets.
10710         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
10711         mips-sgi-irix6.[0-4]*.
10712
10713 2010-02-02  Nick Clifton  <nickc@redhat.com>
10714
10715         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
10716         constant size of 4 as being the same as 0.
10717         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
10718         can take values in the range 0..4.
10719
10720 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
10721
10722         PR java/41991
10723         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
10724         as _darwin10_Unwind_FindEnclosingFunction().
10725         * libgcc-libsystem.ver: New.
10726
10727 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
10728
10729         PR target/41399
10730         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
10731         implicitly set registers.
10732
10733 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
10734
10735         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
10736         (arm_override_options): Allow automatic selection of the thread
10737         pointer register if thumb2.
10738         (legitimize_pic_address): Improve code sequences for Thumb2.
10739         (arm_call_tls_get_addr): Likewise.
10740         (legitimize_tls_address): Likewise.
10741         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
10742         (pic_load_addr_32bit): ... this.  New named pattern.
10743         * thumb2.md (pic_load_addr_thumb2): Delete.
10744         (pic_load_dot_plus_four): Delete.
10745         (tls_load_dot_plus_four): New named pattern.
10746
10747 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10748
10749         PR libgomp/29986
10750         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
10751         Document fix for TLS bug.
10752
10753 2010-01-31  Richard Guenther  <rguenther@suse.de>
10754
10755         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
10756         conservatively correct.
10757
10758 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10759
10760         PR target/42850
10761         Revert:
10762         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10763
10764         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
10765
10766 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10767
10768         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
10769
10770 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
10771
10772         * config.gcc: Adjust order of makefile fragments for mingw targets.
10773
10774 2010-01-31  Richard Guenther  <rguenther@suse.de>
10775
10776         PR middle-end/42898
10777         * gimplify.c (gimplify_init_constructor): For volatile LHS
10778         initialize a temporary.
10779
10780 2010-01-31  Matthias Klose  <doko@ubuntu.com>
10781
10782         * configure.ac: Fix __stack_chk_fail check for cross builds configured
10783         --with-headers
10784         * configure: Regenerate.
10785
10786 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
10787
10788         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
10789         the same alias set and their sizes different constantness.
10790         (aliasing_component_refs_p): Revert 2009-10-24 change.
10791
10792 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10793
10794         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
10795         unused.
10796
10797 2010-01-29  Richard Guenther  <rguenther@suse.de>
10798
10799         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
10800         Assert we successfully updated the call.
10801
10802 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
10803
10804         PR rtl-optimization/42889
10805         * df.h (df_set_bb_dirty_nonlr): New prototype.
10806         * df-core.c (df_set_bb_dirty_nonlr): New function.
10807         * df-scan.c (df_insn_rescan): Call it instead of
10808         df_set_bb_dirty for DEBUG_INSNs.
10809
10810 2010-01-29  Richard Guenther  <rguenther@suse.de>
10811
10812         PR middle-end/37448
10813         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
10814         quadratic behavior in most cases.
10815
10816 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
10817
10818         PR target/42891
10819         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
10820         in the call to gen_x86_movsicc_0_m1.
10821
10822 2010-01-28  Richard Guenther  <rguenther@suse.de>
10823
10824         PR tree-optimization/42871
10825         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
10826
10827 2010-01-28  Richard Guenther  <rguenther@suse.de>
10828
10829         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
10830         into call arguments.
10831
10832 2010-01-28  Richard Guenther  <rguenther@suse.de>
10833
10834         PR middle-end/42883
10835         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
10836         the forwarder if the destination is an EH landing pad.
10837
10838 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
10839
10840         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
10841         block list passed to gimple_duplicate_sese_tail.
10842         (parallelize_loops): Avoid parallelization when the function
10843         has_nonlocal_label.
10844         Avoid parallelization when the preheader is IRREDUCIBLE.
10845         Try to optimize when estimated_loop_iterations_int is unresolved.
10846         Add the loop's location to the dump file.
10847         * tree-cfg.c (add_phi_args_after_redirect): Remove.
10848         (gimple_duplicate_sese_tail): Remove the check for the latch.
10849         Redirect nexits to the exit block.
10850         Remove handling of the incoming edges to the latch.
10851         Redirect the backedge from the copied latch to the exit bb.
10852
10853 2010-01-28  Michael Matz  <matz@suse.de>
10854
10855         PR target/42881
10856         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
10857         Wrap force_reg into a sequence, emit it before user.
10858
10859 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
10860
10861         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
10862         (arm_rev): New.
10863         (arm_legacy_rev): Likewise.
10864         (thumb_legacy_rev): Likewise.
10865
10866 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
10867
10868         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
10869         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
10870         on MEM's address failed, try avoid_constant_pool_reference and
10871         recurse if it returned something different.
10872         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
10873         address, try avoid_constant_pool_reference and recurse if it
10874         returned something different.
10875         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
10876         address and avoid_constant_pool_reference returned something
10877         different, don't set have_address.
10878
10879 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
10880
10881         PR debug/42861
10882         * var-tracking.c (val_store): Add modified argument, obey it.
10883         Adjust callers.
10884         (count_uses): Move down logging of main.
10885         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
10886         don't need resolution.
10887         (emit_notes_in_bb): Likewise.
10888
10889 2010-01-27  Richard Guenther  <rguenther@suse.de>
10890
10891         PR middle-end/42878
10892         * tree-inline.c (remap_decl): Delay remapping of SSA name
10893         default definitions until we need them.
10894
10895 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
10896
10897         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
10898         (rs6000_delegitimize_address): New function.
10899
10900         * config/s390/s390.c (s390_delegitimize_address): Call
10901         delegitimize_mem_from_attrs.
10902
10903         PR middle-end/42874
10904         * tree-inline.c (cannot_copy_type_1): Removed.
10905         (copy_forbidden): Don't forbid copying of functions containing
10906         records/unions with variable length fields.
10907
10908 2010-01-27  Christian Bruel  <christian.bruel@st.com>
10909
10910         Revert:
10911         PR target/42841
10912         * config/sh/sh.c (find_barrier): Increase length for non delayed
10913         conditional branches.
10914
10915 2010-01-27  Matthias Klose  <doko@ubuntu.com>
10916
10917         * configure.ac (gnu-unique-object): Fix ldd version check.
10918         * configure: Regenerate.
10919
10920 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10921
10922         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
10923         HAVE_GNU_AS value.
10924         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
10925         Test for HAVE_GNU_AS value.
10926
10927 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10928
10929         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
10930         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
10931         INT64_TYPE): Define.
10932         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
10933         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
10934         INT_LEAST64_TYPE): Define.
10935         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
10936         UINT_LEAST64_TYPE): Define.
10937         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
10938         INT_FAST64_TYPE): Define.
10939         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
10940         UINT_FAST64_TYPE): Define.
10941         (INTMAX_TYPE, UINTMAX_TYPE): Define.
10942         (INTPTR_TYPE, UINTPTR_TYPE): Define.
10943         (SIG_ATOMIC_TYPE): Define.
10944
10945 2010-01-26  Richard Guenther  <rguenther@suse.de>
10946
10947         * df-scan.c (df_scan_set_bb_info): Remove assert.
10948         (df_insn_rescan_debug_internal): Merge asserts.
10949         (df_install_ref): Likewise.
10950         (df_mark_reg): Use bitmap_set_range.
10951         (df_hard_reg_used_p): Remove assert.
10952         (df_hard_reg_used_count): Likewise.
10953
10954 2010-01-26  Richard Guenther  <rguenther@suse.de>
10955
10956         PR rtl-optimization/42685
10957         * web.c (web_main): Ignore DEBUG_INSNs.
10958
10959 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
10960
10961         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
10962
10963         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
10964         Fix types of fndecl and arglist parameters.
10965
10966 2010-01-26  Richard Guenther  <rguenther@suse.de>
10967
10968         PR middle-end/42806
10969         * tree-eh.c (unsplit_eh): Skip debug insns.
10970
10971 2010-01-26  Richard Guenther  <rguenther@suse.de>
10972
10973         PR tree-optimization/42250
10974         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
10975
10976 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
10977
10978         PR fortran/42866
10979         * omp-low.c (expand_omp_sections): Only use single_pred if
10980         l2_bb is single_pred_p.
10981
10982 2010-01-25  Christian Bruel  <christian.bruel@st.com>
10983
10984         PR target/42841
10985         * config/sh/sh.c (find_barrier): Increase length for non delayed
10986         conditional branches.
10987         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
10988
10989 2010-01-24  David S. Miller  <davem@davemloft.net>
10990
10991         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
10992         define if not using GAS.
10993         * config/sparc/sparc.c (sparc_elf_asm_named_section):
10994         Likewise.  Delete SECTION_MERGE code, which is only applicable
10995         when using GAS.
10996
10997 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
10998
10999         PR c++/42748
11000         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
11001         mangling of va_list in system headers.
11002
11003 2010-01-23  Toon Moene  <toon@moene.org>
11004
11005         * tree-predcom.c (combine_chains): Return NULL, not false.
11006
11007 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
11008
11009         * tree-loop-distribution.c (distribute_loop): Fix declaration and
11010         initialization of variable res to agree with return type.
11011
11012 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
11013
11014         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
11015         * tree-sra.c: Add include of expr.h.
11016
11017 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
11018
11019         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
11020         insert the debug stmt on the single non-EH edge from the stmt.
11021
11022 2010-01-22  Richard Henderson  <rth@redhat.com>
11023
11024         PR tree-opt/42833
11025         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
11026         the RHS until after generate_subtree_copies has insertted its
11027         code before the current statement.
11028
11029 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
11030
11031         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
11032
11033         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
11034
11035 2010-01-21  Martin Jambor  <mjambor@suse.cz>
11036
11037         PR tree-optimization/42585
11038         * tree-sra.c (struct access): New field grp_total_scalarization.
11039         (dump_access): Dump the new field.
11040         (should_scalarize_away_bitmap): New variable.
11041         (cannot_scalarize_away_bitmap): Likewise.
11042         (sra_initialize): Allocate new bitmaps.
11043         (sra_deinitialize): Free new bitmaps.
11044         (create_access_1): New function.
11045         (create_access): Parts moved to create_access_1.
11046         (type_consists_of_records_p): New function.
11047         (completely_scalarize_record): Likewise.
11048         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
11049         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
11050         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
11051         access.
11052         (analyze_all_variable_accesses): Completely scalarize small eligible
11053         records.
11054
11055 2010-01-21  Martin Jambor  <mjambor@suse.cz>
11056
11057         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
11058
11059 2010-01-21  Andrew Haley  <aph@redhat.com>
11060
11061         * gcc.c (process_command): Move lang_specific_driver before
11062         setting cc_libexec_prefix.
11063
11064 2010-01-21  Richard Guenther  <rguenther@suse.de>
11065
11066         PR middle-end/19988
11067         * fold-const.c (negate_expr_p): Pretend only negative
11068         real constants are easily negatable.
11069
11070 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
11071             Jason Merrill  <jason@redhat.com>
11072
11073         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
11074         (TYPE_TRANSPARENT_AGGR): this, for union and record.
11075         * calls.c (initialize argument_information): Handle it.
11076         * c-common.c (handle_transparent_union_attribute): Use new name.
11077         * c-decl.c (finish_struct): Ditto.
11078         * c-typeck.c (type_lists_compatible_p): Ditto.
11079         (convert_for_assignment): Use new name and also handle record.
11080         * function.c (aggregate_value_p): Handle it.
11081         (pass_by_reference): Ditto.
11082         (assign_parm_data_types): Ditto.
11083         * print-tree.c (print_node): Ditto.
11084         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
11085         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
11086         * tree.c (first_field): New fn.
11087
11088 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
11089
11090         PR target/42818
11091         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
11092         even when linking statically, for now.
11093
11094 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
11095
11096         PR debug/42715
11097         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
11098         without a cselib val.
11099         (count_uses): Accept MO_VAL_SET with no val on stores.
11100         (add_stores): Likewise.
11101
11102 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
11103
11104         * var-tracking.c (check_value_val): Add a compile time assertion.
11105         (dv_is_decl_p): Simplify.
11106         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
11107         gcc_assert if ENABLE_CHECKING.
11108
11109 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
11110
11111         PR debug/42782
11112         * var-tracking.c: Include tree-flow.h.
11113         (mem_dies_at_call): New.
11114         (dataflow_set_preserve_mem_locs): Use it.
11115         (dataflow_set_remove_mem_locs): Likewise.
11116         (dump_var): Renamed from dump_variable.  Adjust all callers.
11117         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
11118         * Makefile.in (var-tracking.o): Adjust deps.
11119
11120 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
11121
11122         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
11123
11124 2010-01-20  Richard Guenther  <rguenther@suse.de>
11125
11126         PR tree-optimization/42717
11127         * tree-ssa-dce.c (get_live_post_dom): Remove.
11128         (forward_edge_to_pdom): Take an arbitrary edge to copy
11129         degenerate PHI args from.
11130         (remove_dead_stmt): Use the first post-dominator even if it
11131         does not contain live statements as redirection destination.
11132
11133 2010-01-20  Richard Guenther  <rguenther@suse.de>
11134
11135         * tree-inline.c (estimate_num_insns): Handle EH builtins.
11136
11137 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
11138
11139         * sel-sched.c (create_speculation_check): Remove set but not used
11140         variable twin.
11141         (try_transformation_cache): Remove set but not used variable ds.
11142         (calculate_privileged_insns): Remove set but not used variables
11143         cur_insn and min_spec_insn.
11144         (find_best_expr): Remove set but not used variable avail_n.
11145         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
11146         variable e.
11147         * cgraphunit.c (assemble_thunk): Remove set but not used variable
11148         false_label.
11149         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
11150         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
11151         new_scop_exit_edge.
11152
11153 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
11154
11155         PR bootstrap/42786
11156         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
11157         cpu types.  Add support for *-sse3 cpu types.
11158         (x86_64-*-*): Ditto.
11159
11160 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
11161
11162         PR middle-end/42803
11163         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
11164         argument, call initializer_constant_valid_p_1 instead of
11165         initializer_constant_valid_p, pass CACHE to it, return NULL
11166         immediately if first call returns NULL.
11167         (initializer_constant_valid_p_1): New function.
11168         (initializer_constant_valid_p): Use it.
11169
11170 2010-01-20  Thomas Quinot  <quinot@adacore.com>
11171
11172         * tree.def (PLACEHOLDER_EXPR): Fix comment.
11173
11174 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
11175
11176         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
11177         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
11178         (loc_list_from_tree): Don't handle unsigned division.  Handle
11179         signed modulo using DW_OP_{over,over,div,mul,minus}.
11180         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
11181         modulo instead of signed.
11182
11183 2010-01-20  DJ Delorie  <dj@redhat.com>
11184
11185         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
11186         (Fpa): Pass it
11187         (h8300_emit_stack_adjustment): Propogate it.
11188         (push): Pass it.
11189         (h8300_expand_prologue): Likewise.
11190         (h8300_expand_epilogue): Likewise.
11191
11192 2010-01-19  Michael Matz  <matz@suse.de>
11193
11194         PR tree-optimization/41783
11195         * tree-data-ref.c (toplevel): Include flags.h.
11196         (dump_data_dependence_relation):  Also dump the inputs if the
11197         result will be unknown.
11198         (split_constant_offset_1): Look through some conversions.
11199         * tree-predcom.c (determine_roots_comp): Restart a new chain if
11200         the offset from last element is too large.
11201         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
11202         (reassociate_to_the_same_stmt): Handle vector registers.
11203         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
11204         (e.g. conversions).
11205         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
11206         wide_prolog_niters argument, emit widening instructions.
11207         (vect_do_peeling_for_alignment): Adjust caller, use widened
11208         variant of the iteration cound.
11209         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
11210
11211 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11212
11213         PR target/38697
11214         * config/arm/neon-testgen.m (emit_automatics): New parameter
11215         features. Adjust for Fixed_return_reg feature.
11216         (test_intrinsic): Call emit_automatics with new feature.
11217         * config/arm/neon.ml: Update copyright years.
11218         (features): New Fixed_return_reg feature.
11219         (ops): Update feature for Vget_low.
11220
11221 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
11222
11223         PR tree-optimization/42719
11224         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
11225         stmt uses.
11226
11227         PR debug/42728
11228         * fwprop.c (all_uses_available_at): Return false if def_set dest
11229         is a REG that is used in def_insn.
11230
11231 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
11232
11233         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
11234
11235         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
11236         Add argument names.
11237
11238         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
11239
11240         * target.h (struct gcc_target) <secondary_reload>: Change type
11241         of last argument to secondary_reload_info *.
11242
11243 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
11244
11245         PR target/42774
11246         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
11247         memory references with unaligned offsets.  Remove CQImode handling.
11248         (unaligned_memory_operand): Return 1 for memory references with
11249         unaligned offsets.  Remove CQImode handling.
11250
11251 2010-01-18  Richard Guenther  <rguenther@suse.de>
11252
11253         PR middle-end/39954
11254         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
11255         builtin calls.
11256
11257 2010-01-18  Richard Guenther  <rguenther@suse.de>
11258
11259         PR tree-optimization/42781
11260         * tree-ssa-structalias.c (find_what_var_points_to): Skip
11261         restrict processing only if the original variable was artificial.
11262
11263 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
11264
11265         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
11266         find number of popped argument bytes.
11267
11268         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
11269         Fix the text that describes the return value for invalid insns.
11270
11271         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
11272
11273         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
11274         Clarify what 'cost of the -dependence' is.  Fix quoting.
11275
11276         * toplev.c (default_get_pch_validity): Rename argument to "sz".
11277         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
11278
11279 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
11280
11281         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
11282         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
11283
11284 2010-01-17  Richard Guenther  <rguenther@suse.de>
11285
11286         PR middle-end/42248
11287         * function.c (split_complex_args): Take a VEC to modify.
11288         (assign_parms_augmented_arg_list): Build a VEC instead of
11289         a chain of PARM_DECLs.
11290         (assign_parms_unsplit_complex): Take a VEC of arguments.
11291         Do not fixup unmodified parms.
11292         (assign_parms): Deal with the VEC.
11293         (gimplify_parameters): Likewise.
11294
11295 2010-01-17  Richard Guenther  <rguenther@suse.de>
11296
11297         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
11298         node existence check.
11299         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
11300         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
11301         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
11302         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
11303         (gimple_execute_on_growing_pred): Likewise.
11304
11305 2010-01-17  Richard Guenther  <rguenther@suse.de>
11306
11307         PR tree-optimization/42773
11308         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
11309         (compute_antic_aux): Likewise.
11310         (compute_partial_antic_aux): Likewise.
11311
11312 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
11313
11314         PR debug/42767
11315         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
11316         and US_TRUNCATE.
11317
11318 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
11319
11320         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
11321         appearance.
11322
11323         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
11324         Fix markup for strict argument.
11325
11326         (TARGET_SCHED_REORDER2): Fix argument types.
11327
11328         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
11329         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
11330
11331         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
11332         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
11333
11334         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
11335         Add argument name.
11336
11337         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
11338         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
11339         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
11340         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
11341         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
11342
11343         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
11344
11345         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
11346
11347         (TARGET_ASM_RELOC_RW_MASK): Add return type.
11348         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
11349
11350         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
11351
11352         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
11353         Use prototype.
11354
11355         (TARGET_ASM_NAMED_SECTION): Fix argument list.
11356
11357         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
11358         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
11359
11360         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
11361
11362         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
11363
11364         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
11365         referring to it.  Fix language.
11366
11367         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
11368
11369         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
11370
11371         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
11372
11373         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
11374
11375         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
11376         '@var{stream}.  Remove stray 'and'.
11377
11378         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
11379
11380         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
11381
11382         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
11383
11384         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
11385         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
11386
11387         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
11388         Fix description of return value.
11389         Rename argument "sz" to "len."
11390
11391         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
11392         Clarify meaning of 'true' return value.
11393
11394         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
11395
11396         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
11397         rep_mode versus mode_rep.
11398
11399         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
11400
11401         (TARGET_BUILTIN_DECL): Fix name.
11402
11403         (TARGET_COMMUTATIVE_P): Fix type of first argument.
11404
11405         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
11406
11407         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
11408
11409         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
11410
11411         (TARGET_RELAXED_ORDERING): Use @deftypevr.
11412
11413         (TARGET_GET_DRAP_RTX): Note that this is a hook.
11414         Clarify language.
11415
11416         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
11417         Rename argument tm_fn to md_fn.
11418
11419         (TARGET_OPTION_PRINT): Fix argument list.
11420
11421 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
11422
11423         PR target/42664
11424         * config/i386/i386.c (ix86_fixup_binary_operands):
11425         Revert FMA4 fixup of operands.
11426
11427 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11428
11429         PR gcc/42525
11430         * Makefile.in (write_entries_to_file, install-plugin):
11431         Use \012 instead of \n with tr.
11432
11433 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
11434
11435         * configure.ac (HAVE_AS_REF): New C macro.
11436         * configure: Regenerate.
11437         * config.in: Likewise.
11438         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
11439         if HAVE_AS_REF.
11440         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
11441         if HAVE_AS_REF.
11442
11443 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
11444
11445         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
11446
11447         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
11448
11449         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
11450
11451         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
11452
11453         (TARGET_IN_SMALL_DATA_P): Fix argument type.
11454
11455         (TARGET_BINDS_LOCAL_P): Fix argument type.
11456
11457         (TARGET_ASM_FILE_END): Use prototype.
11458
11459         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
11460
11461         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
11462
11463         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
11464
11465         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
11466
11467         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
11468         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
11469
11470         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
11471         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
11472
11473         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
11474         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
11475         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
11476         (TARGET_ADDR_SPACE_CONVERT): Likewise.
11477
11478         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
11479
11480         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
11481
11482         (TARGET_INIT_BUILTINS): Use prototype.
11483
11484         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
11485         Put 'const char *' in braces.  Fix parameter types.
11486         (TARGET_INVALID_CONVERSION): Fix parameter types.
11487         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
11488         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
11489
11490         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
11491         Fix argument type.
11492
11493         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
11494
11495         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
11496
11497 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
11498
11499         * doc/tm.texi (TARGET_HELP): Fix return type.
11500
11501         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
11502         in braces.  Fix argument types.
11503
11504         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
11505
11506         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
11507
11508         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
11509
11510         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
11511         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
11512
11513         (TARGET_MANGLE_TYPE): Fix argument types.
11514
11515         (TARGET_IRA_COVER_CLASSES): Use prototype.
11516
11517         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
11518
11519         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
11520
11521         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
11522
11523         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
11524
11525         (TARGET_CALLEE_COPIES): Fix argument types.
11526
11527         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
11528
11529         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
11530
11531         (TARGET_FUNCTION_VALUE): Fix argument types.
11532
11533         (TARGET_RETURN_IN_MSB): Fix argument type.
11534
11535         (TARGET_RETURN_IN_MEMORY): Fix argument types.
11536
11537         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
11538
11539         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
11540
11541         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
11542         agree with return type.
11543
11544         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
11545
11546 2010-01-15  Jing Yu  <jingyu@google.com>
11547
11548         PR rtl-optimization/42691
11549         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
11550         a pseudo to a constant and are merged, and adjust comments.
11551
11552 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
11553
11554         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
11555
11556 2010-01-15  Richard Guenther  <rguenther@suse.de>
11557
11558         PR middle-end/42739
11559         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
11560         labels of computed or non-local gotos to the destination.
11561         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
11562         landing pad label is the first label.
11563
11564 2010-01-15  Richard Guenther  <rguenther@suse.de>
11565
11566         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
11567
11568 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
11569
11570         PR target/42747
11571         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
11572         to allow generation of the xssqrtdp instruction on power7.
11573         (sqrtdf2_fpr): Ditto.
11574
11575 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
11576
11577         PR middle-end/42674
11578         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
11579         functions with noreturn attribute.
11580
11581         PR c++/42608
11582         * varasm.c (declare_weak): Add weak attribute to decl if it
11583         doesn't have one already.
11584         (assemble_external): Only add decls to weak_decls if they also
11585         have weak attribute.
11586
11587 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
11588
11589         * var-tracking.c (var_reg_delete): Don't delete the association
11590         between REGs and values or one-part variables if the register
11591         isn't clobbered.
11592
11593 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
11594
11595         PR debug/42657
11596         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
11597         because its first operand is a non-localized variable.
11598
11599 2010-01-14  Martin Jambor  <mjambor@suse.cz>
11600
11601         PR tree-optimization/42706
11602         * tree-sra.c (encountered_recursive_call): New variable.
11603         (encountered_unchangable_recursive_call): Likewise.
11604         (sra_initialize): Initialize both new variables.
11605         (callsite_has_enough_arguments_p): New function.
11606         (scan_function): Call decl and flags check only for IPA-SRA, check
11607         whether there is a recursive call and whether it has enough arguments.
11608         (all_callers_have_enough_arguments_p): New function.
11609         (convert_callers): Look for recursive calls only when
11610         encountered_recursive_call is set.
11611         (ipa_early_sra): Bail out either if
11612         !all_callers_have_enough_arguments_p or
11613         encountered_unchangable_recursive_call.
11614
11615 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11616
11617         * sel-sched.c: Add 2010 to copyright years.
11618         * sel-sched-ir.c: Likewise.
11619         * sel-sched-ir.h: Likewise.
11620
11621 2010-01-14  Martin Jambor  <mjambor@suse.cz>
11622
11623         PR tree-optimization/42714
11624         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
11625         constructors specially.
11626
11627 2010-01-14  Andi Kleen  <ak@linux.intel.com>
11628
11629         * config/i386/drivers-i386.c (detect_caches_intel):
11630         Add l2sizekb parameter and fill in.
11631         (host_detect_local_cpu): Add l2sizekb, fill in.
11632         Add Atom small cache heuristic.
11633
11634 2010-01-14  Andi Kleen  <ak@linux.intel.com>
11635
11636         * config/i386/drivers-i386.c (detect_caches_cpuid4):
11637         Add level3 parameter and fill in.
11638         (detect_caches_intel): Handle level3 cache.
11639
11640 2010-01-14  Andi Kleen  <ak@linux.intel.com>
11641
11642         * config/i386/drivers-i386.c (host_detect_local_cpu):
11643         Fix core duo detection.
11644
11645 2010-01-14  Andi Kleen  <ak@linux.intel.com>
11646
11647         * config/i386/drivers-i386.c (host_detect_local_cpu):
11648         Fix Atom detection.
11649
11650 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11651
11652         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
11653         (rs6000_variable_issue_1): this.  Use...
11654         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
11655
11656 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11657
11658         * sel-sched-ir.c (sel_restore_other_notes): Rename to
11659         sel_restore_notes.  Update all callers.  Call reemit_notes
11660         for all insns.
11661
11662 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
11663
11664         PR rtl-optimization/42246
11665         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
11666         loops.
11667
11668 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
11669
11670         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
11671         all successors is the same as number of successors in current region.
11672
11673 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11674
11675         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
11676         to rename is not separable.  Otherwise check that its LHS is not NULL.
11677
11678 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11679
11680         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
11681
11682 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11683
11684         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
11685         available registers when failed to discover LHS register class.
11686         Fix indentation.  Update comment.
11687
11688 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
11689             Alexander Monakov  <amonakov@ispras.ru>
11690
11691         PR rtl-optimization/42389
11692         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
11693         to can_issue_more.
11694         (advance_state_on_fence): Likewise.
11695         (sel_target_adjust_priority): Print debug output only when
11696         sched_verbose >= 4, not 2.
11697         (get_expr_cost): Do not issue all unique insns on the next cycle.
11698         (fill_insns): Initialize can_issue_more from the value saved
11699         with the fence.
11700         * sel-sched-ir.c (flist_add): New parameter issue_more.
11701         Init FENCE_ISSUE_MORE with it.
11702         (merge_fences): Likewise.
11703         (init_fences): Update call to flist_add.
11704         (add_to_fences, add_clean_fence_to_fences)
11705         (add_dirty_fence_to_fences): Likewise.
11706         (move_fence_to_fences): Update call to merge_fences.
11707         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
11708         sched groups.
11709         * sel-sched-ir.h (struct _fence): New field issue_more.
11710         (FENCE_ISSUE_MORE): New accessor macro.
11711
11712 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
11713
11714         PR rtl-optimization/42388
11715         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
11716         that have no predecessors nor successors.  Do not call move_bb_info
11717         for empty blocks outside of current region.
11718
11719 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11720
11721         PR rtl-optimization/42294
11722         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
11723         * sel-sched.c (move_exprs_to_boundary): Transitively add all
11724         originators' originators.
11725
11726 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11727
11728         PR rtl-optimization/39453
11729         PR rtl-optimization/42246
11730         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
11731         for pipelining_p.
11732         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
11733
11734 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
11735             Alexander Monakov  <amonakov@ispras.ru>
11736
11737         PR middle-end/42245
11738         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
11739         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
11740         argument.  Update all callers.
11741         (tidy_control_flow): ... and here.  Recompute topological order
11742         of basic blocks in region if necessary.
11743         (sel_redirect_edge_and_branch): Change return type.  Return true
11744         if topological order might have been invalidated.
11745         (purge_empty_blocks): Export and move from...
11746         * sel-sched.c (purge_empty_blocks): ... here.
11747         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
11748         (maybe_tidy_empty_bb): Delete prototype.
11749         (purge_empty_blocks): Declare.
11750
11751 2010-01-14  Andrey Belevantsev <abel@ispras.ru>
11752
11753         PR rtl-optimization/42249
11754         * sel-sched.c (try_replace_dest_reg): When chosen register
11755         and original register is the same, do not bail out early, but
11756         still check all original insns for validity of replacing destination
11757         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
11758         in this case.
11759
11760 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
11761
11762         PR c/42721
11763         Port from no-undefined-overflow branch:
11764         2009-03-09  Richard Guenther  <rguenther@suse.de>
11765
11766         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
11767
11768 2010-01-14  Richard Guenther  <rguenther@suse.de>
11769
11770         PR lto/42665
11771         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
11772
11773 2010-01-14  Ira Rosen  <irar@il.ibm.com>
11774
11775         PR tree-optimization/42709
11776         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
11777         as scalar type in creation of constant vector operand.
11778
11779 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11780
11781         PR testsuite/42414
11782         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
11783         (check-parallel-%): Match `testsuite' directory component only
11784         at the end.
11785
11786 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
11787
11788         PR translation/39521
11789         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
11790         strings with _().
11791
11792 2010-01-13  Richard Guenther  <rguenther@suse.de>
11793
11794         PR tree-optimization/42730
11795         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
11796         offset zero.
11797
11798 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
11799
11800         PR target/pr42542
11801         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
11802         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
11803         them signed.
11804
11805 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
11806
11807         * config/bfin/libgcc-bfin.ver: Regenerate based on current
11808         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
11809         ___umulsi3_highpart.
11810
11811         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
11812         rather than schedule_insns if the pass is enabled.
11813
11814 2010-01-13  Martin Jambor  <mjambor@suse.cz>
11815
11816         PR tree-optimization/42704
11817         * tree-sra.c (sra_modify_assign): Do not delete assignments to
11818         SSA_NAMEs.
11819
11820 2010-01-13  Martin Jambor  <mjambor@suse.cz>
11821
11822         PR tree-optimization/42703
11823         * tree-sra.c (analyze_access_subtree): Check that we can build a
11824         reference to the original data within the aggregate.
11825
11826 2010-01-13  Richard Guenther  <rguenther@suse.de>
11827
11828         PR tree-optimization/42705
11829         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
11830
11831 2010-01-13  Richard Guenther  <rguenther@suse.de>
11832
11833         PR middle-end/42716
11834         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
11835
11836 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
11837
11838         PR debug/41371
11839         * var-tracking.c (values_to_unmark): New variable.
11840         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
11841         values_to_unmark vector.  Moved body to...
11842         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
11843         instead queue it into values_to_unmark vector.
11844         (vt_find_locations): Free values_to_unmark vector.
11845
11846 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
11847
11848         * config/s390/s390.c (override_options): Set
11849         default of max-pending-list-length to 256
11850
11851 2010-01-13  Richard Guenther  <rguenther@suse.de>
11852
11853         PR lto/42678
11854         * tree-pass.h (PROP_gimple_lcx): New.
11855         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
11856         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
11857         before the final cleanup_eh.
11858         (dump_properties): Dump PROP_gimple_lcx.
11859         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
11860         (tree_lower_complex_O0): Remove.
11861         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
11862         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
11863         tree_lower_complex, schedule TODO_update_ssa.
11864         * lto-streamer-out.c (output_function): Stream the functions
11865         properties.
11866         * lto-streamer-in.c (input_function): Likewise.
11867         (lto_read_body): Do not override them here.
11868
11869 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
11870
11871         PR c/42708
11872         * c-typeck.c (build_c_cast): Fold value cast to union type before
11873         wrapping it in a CONSTRUCTOR.
11874
11875 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
11876
11877         PR rtl-optimization/42699
11878         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
11879         involved.
11880
11881 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11882
11883         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
11884         SUBTARGET_WARN_UNUSED_SPEC): Move ...
11885         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
11886         SUBTARGET_WARN_UNUSED_SPEC): ... here
11887         * config/mips/iris5.h (LIBGCC_SPEC): Define.
11888
11889 2010-01-12  Julian Brown  <julian@codesourcery.com>
11890
11891         * config/arm/neon-schedgen.ml (Utils): Don't try to
11892         open missing module.
11893         (find_with_result): New.
11894
11895 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
11896
11897         PR debug/42662
11898         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
11899         sharing when canonicalizing ({lt,ge}u (plus a b) b).
11900
11901         PR tree-optimization/42645
11902         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
11903         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
11904         decl_map, set processing_debug_stmt to -1 and return name without
11905         any remapping.
11906
11907 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
11908
11909         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
11910         binutils version, and reword target configuration description.
11911
11912 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
11913
11914         * config/avr/avr.h (LINKER_NAME): Remove.
11915
11916 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
11917
11918         PR target/42416
11919         * config/rs6000/rs6000.c (rs6000_override_options): On targets
11920         that support VSX, warn for -mno-altivec if vsx is not disabled,
11921         and disable vsx.
11922
11923 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
11924             Shujing Zhao  <pearly.zhao@oracle.com>
11925
11926         PR translation/42469
11927         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
11928         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
11929         character between option name and help text.
11930         * c.opt (imultilib): Likewise.
11931
11932 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
11933
11934         * lto-streamer-out.c (output_unreferenced_globals): Output static
11935         variables.
11936
11937 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
11938
11939         PR rtl-optimization/42621
11940         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
11941         optimizing for size.
11942         (duplicate_computed_gotos): Remove now-redundant check.
11943
11944 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
11945
11946         PR target/37454
11947         * configure.ac: Save and restore LDFLAGS and LIBS
11948         * configure: Regenerate.
11949
11950 2010-01-10  Richard Guenther  <rguenther@suse.de>
11951
11952         PR middle-end/42667
11953         * builtins.c (fold_builtin_strlen): Add type argument and
11954         convert the resulting length to it.
11955         (fold_builtin_1): Adjust.
11956
11957 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
11958
11959         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
11960         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
11961         1 insn.
11962         (num_insns_constant_wide): Adjust for that change.
11963
11964 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
11965
11966         PR debug/42631
11967         * web.c (union_defs): Add used argument, to combine uses of
11968         uninitialized regs.
11969         (entry_register): Adjust type and tests of used argument.
11970         (web_main): Widen used for new use.  Pass it to union_defs.
11971         * df.h (union_defs): Adjust prototype.
11972
11973 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
11974
11975         PR debug/42630
11976         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
11977         uses in new incoming argument.  Free body.
11978         (reset_debug_uses_in_loop): New.
11979         (analyze_insn_to_expand_var): Call the latter if the former found
11980         anything.  Fix whitespace.  Reject invalid dest overlaps before
11981         going through all insns in the loop.
11982
11983 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
11984
11985         PR debug/42629
11986         * haifa-sched.c (dying_use_p): Debug insns don't count.
11987
11988 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
11989
11990         PR middle-end/42363
11991         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
11992         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
11993         (verify_gimple_call): Reject LHS in noreturn calls.
11994
11995 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
11996
11997         PR debug/42604
11998         PR debug/42395
11999         * tree-vect-loop-manip.c (adjust_info): New type.
12000         (adjust_vec): New pointer to vector.
12001         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
12002         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
12003         (slpeel_update_phis_for_duplicate_loop): Use them.
12004         (slpeel_update_phi_nodes_for_guard1): Likewise.
12005         (slpeel_update_phi_nodes_for_guard2): Likewise.
12006         (slpeel_tree_peel_loop_to_edge): Likewise.
12007         (vect_update_ivs_after_vectorizer): Likewise.
12008
12009 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
12010
12011         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
12012         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
12013
12014 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
12015
12016         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
12017         bogus uninitialized warning.
12018
12019 2010-01-09  Richard Guenther  <rguenther@suse.de>
12020
12021         PR middle-end/42512
12022         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
12023         the evolution is compatible with the initial condition.
12024
12025 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
12026
12027         * gcc.c (process_command): Update copyright notice dates.
12028         * gcov.c (print_version): Likewise.
12029         * gcov-dump.c (print_version): Likewise.
12030         * mips-tfile.c (main): Likewise.
12031         * mips-tdump.c (main): Likewise.
12032
12033 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
12034
12035         PR target/41885
12036         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
12037         (rotlhi3): Delete.
12038         (rotlhi3_8): Delete.
12039         (rotlsi3): Delete.
12040         (rotlsi3_8): Delete.
12041         (rotlsi3_16): Delete.
12042         (rotlsi3_24): Delete.
12043         (rotl<mode>3): New.
12044         (*rotw<mode>3): New.
12045         (*rotb<mode>3): New.
12046         * config/avr/avr.c (avr_rotate_bytes): New function.
12047         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
12048
12049 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
12050
12051         PR target/37454
12052         * configure.ac: Modify -rdynamic check.
12053         * configure: Regenerate.
12054
12055 2010-01-08  DJ Delorie  <dj@redhat.com>
12056
12057         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
12058         register popping order.
12059
12060 2010-01-08  Richard Guenther  <rguenther@suse.de>
12061
12062         PR lto/42528
12063         * c.opt (fsigned-char): Also let LTO handle this option.
12064         (funsigned-char): Likewise.
12065
12066 2010-01-07  Richard Guenther  <rguenther@suse.de>
12067
12068         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
12069         (gimple_op): Likewise.
12070         (gimple_op_ptr): Likewise.
12071         (gimple_assign_set_lhs): Remove gcc_assert.
12072         (gimple_assign_set_rhs1): Likewise.
12073         (gimple_assign_set_rhs2): Likewise.
12074         (gimple_call_set_lhs): Likewise.
12075         (gimple_call_set_fn): Likewise.
12076         (gimple_call_set_fndecl): Likewise.
12077         (gimple_call_fndecl): Likewise.
12078         (gimple_call_return_type): Likewise.
12079         (gimple_call_set_chain): Likewise.
12080         (gimple_call_num_args): Likewise.
12081         (gimple_call_set_arg): Likewise.
12082         (gimple_cond_set_code): Likewise.
12083         (gimple_cond_set_lhs): Likewise.
12084         (gimple_cond_set_rhs): Likewise.
12085         (gimple_cond_set_true_label): Likewise.
12086         (gimple_cond_set_false_label): Likewise.
12087         (gimple_label_set_label): Likewise.
12088         (gimple_goto_set_dest): Likewise.
12089         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
12090         (gimple_debug_bind_get_value): Likewise.
12091         (gimple_debug_bind_get_value_ptr): Likewise.
12092         (gimple_debug_bind_set_var): Likewise.
12093         (gimple_debug_bind_set_value): Likewise.
12094         (gimple_debug_bind_reset_value): Likewise.
12095         (gimple_debug_bind_has_value_p): Likewise.
12096         (gimple_return_retval_ptr): Remove gcc_assert.
12097         (gimple_return_retval): Likewise.
12098         (gimple_return_set_retval): Likewise.
12099         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
12100         (safe_referenced_var_iterator): Remove.
12101         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
12102         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
12103         (fill_referenced_var_vec): Remove.
12104         (first_readonly_imm_use): Remove redundant gcc_assert.
12105         (phi_arg_index_from_use): Combine gcc_asserts.
12106         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
12107         (first_imm_use_stmt): Remove redundant gcc_assert.
12108         * tree-cfg.c (verify_gimple_call): Verify function and chain
12109         operands.  Verify arguments.
12110         (verify_types_in_gimple_stmt): Verify condition code and labels.
12111
12112 2010-01-07  Richard Guenther  <rguenther@suse.de>
12113
12114         PR tree-optimization/42641
12115         * sese.c (rename_map_elt_info): Use the SSA name version, do
12116         not hash pointers.
12117
12118 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
12119
12120         PR tree-optimization/42625
12121         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
12122         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
12123
12124 2010-01-07  Duncan Sands  <baldrick@free.fr>
12125
12126         * Makefile.in (PLUGIN_HEADERS): Add version.h.
12127
12128 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
12129
12130         PR target/42511
12131         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
12132         note itself is not function_invariant_p.
12133
12134 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
12135
12136         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
12137         Do not add the DF_NOTE problem.
12138         * store-motion.c (execute_rtl_store_motion): Likewise.
12139
12140 2010-01-07  Martin Jambor  <mjambor@suse.cz>
12141
12142         PR tree-optimization/42157
12143         * tree-sra.c (compare_access_positions): Stabilize sort if both
12144         accesses have integer types, return zero immediately if they are the
12145         same.
12146
12147 2010-01-06  Richard Henderson  <rth@redhat.com>
12148
12149         PR middle-end/41883
12150         * haifa-sched.c (add_to_note_list): Merge into ...
12151         (concat_note_lists): ... here, and ...
12152         (unlink_other_notes, rm_other_notes): Merge into...
12153         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
12154         NOTE_INSN_EPILOGUE_BEG.
12155
12156 2010-01-06  Richard Guenther  <rguenther@suse.de>
12157
12158         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
12159         not inline regular functions into always-inline functions.
12160
12161 2010-01-06  Nick Clifton  <nickc@redhat.com>
12162
12163         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
12164         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
12165         used together.
12166         (OVERRIDE_OPTIONS): Delete.
12167         (OPTIMIZATION_OPTIONS): Define.
12168         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
12169         * config/rx/rx.c (rx_handle_option): Issue an error message if
12170         -mcpu=rx200 and -fpu are used together.
12171         (rx_set_optimization_options): New function.  Issue an error
12172         message if an optimization attribute attempts to reset the FPU/
12173         math optimization pairing.
12174         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
12175         * config/rx/rx.opt: Set the default to 32-bit doubles.
12176         * config/rx/t-rx: Add multilibs for -nofpu option.
12177         * doc/invoke.texi: Update documentation of RX options.
12178
12179 2010-01-06  Richard Guenther  <rguenther@suse.de>
12180
12181         * tree-ssa-pre.c (name_to_id): New global.
12182         (alloc_expression_id): Simplify SSA name handling.
12183         (lookup_expression_id): Likewise.
12184         (init_pre): Zero name_to_id.
12185         (fini_pre): Free it.
12186
12187 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
12188
12189         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
12190
12191 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
12192
12193         PR target/42542
12194         * config/i386/sse.md (smaxv2di3): New.
12195         (umaxv2di3): Likewise.
12196         (sminv2di3): Likewise.
12197         (uminv2di3): Likewise.
12198
12199 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
12200
12201         PR target/42564
12202         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
12203         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
12204         (legitimize_tls_address): Likewise.
12205         (sparc_tls_referenced_p): Likewise.
12206         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
12207         and adjust calls to legitimize_pic_address.
12208         (legitimate_constant_p) Use sparc_tls_referenced_p.
12209         (legitimate_pic_operand_p): Likewise.
12210         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
12211         (sparc_tls_symbol_ref_1): Delete.
12212         (sparc_tls_referenced_p): Make static, recognize specific patterns.
12213         (legitimize_tls_address): Make static, handle CONST patterns.
12214         (legitimize_pic_address): Make static, remove unused parameter and
12215         adjust recursive calls.
12216         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
12217         and adjust call to legitimize_pic_address.
12218         (sparc_output_mi_thunk): Likewise.
12219
12220 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
12221             H.J. Lu  <hongjiu.lu@intel.com>
12222
12223         PR target/42542
12224         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
12225         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
12226         operands to make them signed.
12227
12228         Revert:
12229         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
12230
12231         PR target/42542
12232         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
12233         GTU to GT for V4SI and V2DI.
12234
12235         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
12236         (umin<mode>3): Removed.
12237         (uminv8hi3): New.
12238         (uminv4si3): Likewise.
12239
12240 2010-01-05  Martin Jambor  <mjambor@suse.cz>
12241
12242         PR tree-optimization/42462
12243         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
12244         current_function_decl to helper functions and macros.
12245
12246 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12247
12248         PR bootstrap/41771
12249         * flags.h: Don't include real.h.
12250         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
12251         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
12252         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
12253         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
12254         * dominance.c: Update copyright.
12255         * gimple.c (walk_gimple_op): Remove inline.
12256         * tree-ssa-reassoc.c: Include real.h.
12257         * Makefile.in (FLAGS_H): Remove $(REAL_H).
12258         (tree-ssa-reassoc.o): Depend on $(REAL_H).
12259
12260 2010-01-05  Nick Clifton  <nickc@redhat.com>
12261
12262         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
12263         register to push into the stack frame when the accumulator has to
12264         be saved during interrupts.
12265
12266 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
12267
12268         * doc/invoke.texi: Remove the documentation about option
12269         -Wunreachable-code.
12270         * common.opt (Wunreachable-code):  Preserved for backward
12271         compatibility.
12272         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
12273         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
12274         the backward compatibility flag section.
12275
12276 2010-01-05  Richard Guenther  <rguenther@suse.de>
12277
12278         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
12279
12280 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
12281
12282         PR other/42611
12283         * cfgexpand.c (expand_one_var): Diagnose too large variables.
12284
12285         PR tree-optimization/42508
12286         * tree-sra.c (convert_callers): Check for recursive call
12287         by comparing cgraph nodes instead of decls.
12288         (modify_function): Call ipa_modify_formal_parameters also
12289         on all same_body aliases.
12290
12291         * cgraphunit.c (cgraph_materialize_all_clones): Compare
12292         cgraph nodes when checking for same_body aliases.
12293
12294 2010-01-05  Richard Guenther  <rguenther@suse.de>
12295
12296         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
12297         allocation and lookup.
12298         (get_or_alloc_expr_for_constant): Likewise.
12299         (phi_translate): Sink allocation.
12300
12301 2010-01-04  Richard Guenther  <rguenther@suse.de>
12302
12303         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
12304         a new entry only if needed.
12305         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
12306         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
12307         hashtable lookup.
12308         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
12309         the result array.
12310         (phi_translate): Handle CONSTANTs early.
12311
12312 2010-01-04  Martin Jambor  <mjambor@suse.cz>
12313
12314         PR tree-optimization/42398
12315         * tree-sra.c (struct access): Removed flag grp_different_types.
12316         (dump_access): Do not dump the removed flag.
12317         (sort_and_splice_var_accesses): Do not set the removed flag.
12318         (sra_modify_expr): Check for type compatibility directly.
12319
12320 2010-01-04  Martin Jambor  <mjambor@suse.cz>
12321
12322         PR tree-optimization/42366
12323         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
12324         edges with variable number of parameters.
12325         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
12326         flag instead of asserting it.
12327         (ipa_read_node_info): Read uses_analysis_done flag.
12328
12329 2010-01-04  Richard Guenther  <rguenther@suse.de>
12330
12331         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
12332         iterative_hash_* as intended.
12333         (vn_reference_compute_hash): Likewise.  Simplify hashing
12334         SSA names.
12335         (vn_reference_lookup_2): Likewise.
12336         (vn_nary_op_compute_hash): Likewise.
12337         (vn_phi_compute_hash): Likewise.
12338         (expressions_equal_p): Remove strange code.
12339         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
12340         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
12341         (bitmap_insert_into_set_1): Take value-id as parameter.
12342         (add_to_value): Pass it.
12343         (bitmap_insert_into_set): Likewise.
12344         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
12345
12346 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
12347
12348         PR driver/42442
12349         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
12350         (do_self_spec): For switches with SWITCH_IGNORE set set also
12351         SWITCH_IGNORE_PERMANENTLY.
12352         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
12353         of SWITCH_IGNORE.
12354
12355 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
12356
12357         * lto-streamer-out.c (output_unreferenced_globals): Output the full
12358         tree of an unreferenced global var.
12359
12360 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
12361
12362         PR target/42542
12363         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
12364         GTU to GT for V4SI and V2DI.
12365
12366         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
12367         (umin<mode>3): Removed.
12368         (uminv8hi3): New.
12369         (uminv4si3): Likewise.
12370
12371 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
12372
12373         PR lto/42581
12374         * collect2.c (main): Turn on trace in collect2 if -v is passed
12375         to gcc with LTO.
12376
12377 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
12378
12379         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
12380         description of expression operand.
12381
12382 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
12383
12384         * configure.ac: Add install-html to target_list for Make-hooks.
12385         * configure: Regenerate.
12386         * fortran/Make-lang.in (F95_HTMLFILES): New.
12387         (fortran.html): Use it.
12388         (fortran.install-html): New.
12389         * Makefile.in (install-html): Add lang.install-html.
12390         * java/Make-lang.in (JAVA_HTMLFILES): New.
12391         (java.html): Use it.
12392         (java.install-html): New.
12393         * objc/Make-lang.in (objc.install-html): New.
12394         * objcp/Make-lang.in (obj-c++.install-html): New.
12395         * cp/Make-lang.in (c++.install-html): New.
12396         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
12397         * lto/Make-lang.in (lto.install-html): New.
12398
12399 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
12400
12401         PR lto/42520
12402         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
12403
12404 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
12405
12406         PR rtl-optimization/41862
12407         * store-motion.c (store_killed_in_insn, compute_store_table,
12408         remove_reachable_equiv_notes, replace_store_insn,
12409         build_store_vectors): Ignore all DEBUG_INSNs.
12410
12411 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
12412
12413         PR lto/41564
12414         * common.opt: Add dumpdir.
12415
12416         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
12417         isn't specified.
12418         (option_map): Add --dumpdir.
12419
12420         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
12421
12422         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
12423
12424         * opts.c (decode_options): Try dump_dir_name first if
12425         dump_base_name isn't an absolute path.
12426         (common_handle_option): Handle OPT_dumpdir.
12427
12428         * toplev.c (dump_dir_name): New.
12429         (print_switch_values): Also ignore -dumpdir.
12430
12431         * toplev.h (dump_dir_name): New.
12432
12433 2010-01-03  Richard Guenther  <rguenther@suse.de>
12434
12435         PR tree-optimization/42589
12436         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
12437         double-word expansion of bswap32.
12438
12439 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
12440
12441         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
12442         with BLOCK_FOR_INSN.
12443         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
12444         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
12445         noce_process_if_block): Likewise.
12446         * gcse.c (compute_local_properties, insert_expr_in_table,
12447         insert_set_in_table, canon_list_insert, find_avail_set,
12448         pre_insert_copy_insn): Likewise.
12449
12450         * basic-block.h (BLOCK_NUM): Move from here...
12451         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
12452
12453 2010-01-03  Richard Guenther  <rguenther@suse.de>
12454
12455         PR tree-optimization/42438
12456         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
12457         contains_may_not_return_call flag.
12458         (BB_MAY_NOTRETURN): New.
12459         (valid_in_sets): Trapping nary operations are not valid
12460         in blocks that may not return.
12461         (insert_into_preds_of_block): Remove check for trapping expressions.
12462         (compute_avail): Compute also BB_MAY_NOTRETURN.
12463
12464 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
12465
12466         * doc/invoke.texi: Add 2010 to copyright years.
12467
12468 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
12469
12470         * config/sparc/sparc.c: Fix formatting nits.
12471
12472 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
12473             Alexander Monakov  <amonakov@ispras.ru>
12474
12475         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
12476
12477 2010-01-02  Richard Guenther  <rguenther@suse.de>
12478
12479         PR middle-end/42577
12480         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
12481         (simplify_switch_using_ranges): Mark to be removed edges
12482         as non-executable.
12483
12484 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12485
12486         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
12487
12488         * collect2.c (scan_libraries): Add missing argument in call to
12489         scan_prog_file.
12490
12491 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
12492
12493         PR target/42448
12494         * config/alpha/predicates.md (aligned_memory_operand): Return false
12495         for CQImode.
12496         (unaligned_memory_operand): Return true for CQImode.
12497         * config/alpha/alpha.c (get_aligned_mem): Assert that location
12498         doesn not cross aligned SImode word boundary.
12499
12500 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
12501
12502         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
12503         Remove.
12504         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
12505         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
12506
12507 2010-01-02  Richard Guenther  <rguenther@suse.de>
12508
12509         PR lto/41597
12510         * toplev.c (compile_file): Emit LTO marker properly.  Change
12511         it to __gnu_lto_v1.
12512         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
12513
12514 2010-01-01  Richard Guenther  <rguenther@suse.de>
12515
12516         PR debug/42455
12517         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
12518
12519 2010-01-01  Richard Guenther  <rguenther@suse.de>
12520
12521         PR c/42570
12522         * c-decl.c (grokdeclarator): For zero-size arrays force
12523         structural equality checks as layout_type does.
12524
12525 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
12526
12527         * builtins.c: Update copyright to 2010.
12528
12529 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
12530
12531         PR lto/42531
12532         * lto-streamer-out.c (produce_asm): Revert the last change.
12533         (copy_function): Likewise.
12534
12535         * lto-streamer.c (lto_get_section_name): Skip any leading
12536         asterisk in name.
12537
12538 2010-01-01  Richard Guenther  <rguenther@suse.de>
12539
12540         PR middle-end/42559
12541         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
12542         for LABEL_DECLs.
12543
12544 \f
12545 Copyright (C) 2010 Free Software Foundation, Inc.
12546
12547 Copying and distribution of this file, with or without modification,
12548 are permitted in any medium without royalty provided the copyright
12549 notice and this notice are preserved.