OSDN Git Service

* ipa.c: Include pointer-set.h
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-07-08  Jan Hubicka  <jh@suse.cz>
2
3         * ipa.c: Include pointer-set.h
4         (cgraph_externally_visible_p): New attribute ALIASED;
5         when in LTO, hidden symbols are local unless they are aliased.
6         (function_and_variable_visibility): Compute aliased nodes;
7         handle LTO and hidden symbol on functions and vars.
8         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
9         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
10
11 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
12
13         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
14         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
16         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
17         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
18         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
19         (ix86_gen_probe_stack_range): Likewise.
20         (override_options): Set them.
21         (ix86_target_stack_probe): New function.
22         (ix86_compute_frame_layout): Force use of push instructions to
23         save registers if stack checking with probes is enabled.
24         (get_scratch_register_on_entry): New function.
25         (release_scratch_register_on_entry): Likewise.
26         (ix86_adjust_stack_and_probe): Likewise.
27         (output_adjust_stack_and_probe): Likewise.
28         (ix86_emit_probe_stack_range): Likewise.
29         (output_probe_stack_range): Likewise.
30         (ix86_expand_prologue): Emit stack checking code if static built-in
31         stack checking is enabled.
32         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
33         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
34         (output_adjust_stack_and_probe): Likewise.
35         (output_probe_stack_range): Likewise.
36         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
37         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
38         TARGET_STACK_PROBE.
39         (allocate_stack_worker_64): Likewise.
40         (allocate_stack): Likewise.
41         (adjust_stack_and_probe): New insn.
42         (probe_stack_range): Likewise.
43
44 2010-07-08  Richard Guenther  <rguenther@suse.de>
45
46         PR tree-optimization/44831
47         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
48         a MEM_REF preserving TBAA info of the original dereference.
49         Dereference the original pointer if the address is not
50         invariant.
51         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
52         at least one invariant address that we are going to dereference.
53
54 2010-07-08  Richard Guenther  <rguenther@suse.de>
55
56         PR tree-optimization/44861
57         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
58         information when building MEM_REFs.
59         (vectorizable_load): Likewise.
60         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
61
62 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
63
64         * config/sol2-c.c: Do not include diagnostic-core.h.
65
66 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
67
68         PR bootstrap/44768
69         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
70         with respect to current_function_decl. Pass decl of the function.
71         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
72         * ipa-inline.c (compute_inline_parameters): Pass decl to
73         estimated_stack_frame_size.
74
75 2010-07-08  Richard Guenther  <rguenther@suse.de>
76
77         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
78         New function.
79         (valueize_refs): Call it.
80
81 2010-07-08  Richard Guenther  <rguenther@suse.de>
82
83         PR rtl-optimization/44838
84         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
85         SSA form do not use pointer equivalence.
86
87 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
88
89         * dwarf2out.c (AT_linkage_name): Delete.
90         (add_linkage_attr): New function.
91         (add_linkage_name): Call it to emit the linkage attribute.
92         (dwarf2out_finish): Likewise.
93         (move_linkage_attr): Explicitly accept both attribute variants.
94
95 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
96
97         * toplev.h: Do not include diagnostic-core.h.
98         Include diagnostic-core.h in every file that includes toplev.h.
99         * c-tree.h: Do not include toplev.h.
100         * pretty-print.h: Update comment.
101         * Makefile.in: Update dependencies.
102         * alias.c: Include diagnostic-core.h in every file that includes
103         toplev.h.
104         * attribs.c: Likewise.
105         * auto-inc-dec.c: Likewise.
106         * bb-reorder.c: Likewise.
107         * bt-load.c: Likewise.
108         * caller-save.c: Likewise.
109         * calls.c: Likewise.
110         * cfg.c: Likewise.
111         * cfganal.c: Likewise.
112         * cfgbuild.c: Likewise.
113         * cfgcleanup.c: Likewise.
114         * cfghooks.c: Likewise.
115         * cfgloop.c: Likewise.
116         * combine.c: Likewise.
117         * config/alpha/alpha.c: Likewise.
118         * config/arc/arc.c: Likewise.
119         * config/arm/arm.c: Likewise.
120         * config/arm/pe.c: Likewise.
121         * config/avr/avr.c: Likewise.
122         * config/bfin/bfin.c: Likewise.
123         * config/cris/cris.c: Likewise.
124         * config/crx/crx.c: Likewise.
125         * config/darwin-c.c: Likewise.
126         * config/darwin.c: Likewise.
127         * config/fr30/fr30.c: Likewise.
128         * config/frv/frv.c: Likewise.
129         * config/h8300/h8300.c: Likewise.
130         * config/host-darwin.c: Likewise.
131         * config/i386/i386.c: Likewise.
132         * config/i386/netware.c: Likewise.
133         * config/i386/nwld.c: Likewise.
134         * config/i386/winnt-cxx.c: Likewise.
135         * config/i386/winnt-stubs.c: Likewise.
136         * config/i386/winnt.c: Likewise.
137         * config/ia64/ia64-c.c: Likewise.
138         * config/ia64/ia64.c: Likewise.
139         * config/iq2000/iq2000.c: Likewise.
140         * config/lm32/lm32.c: Likewise.
141         * config/m32c/m32c-pragma.c: Likewise.
142         * config/m32c/m32c.c: Likewise.
143         * config/m32r/m32r.c: Likewise.
144         * config/m68hc11/m68hc11.c: Likewise.
145         * config/m68k/m68k.c: Likewise.
146         * config/mcore/mcore.c: Likewise.
147         * config/mep/mep-pragma.c: Likewise.
148         * config/mep/mep.c: Likewise.
149         * config/mmix/mmix.c: Likewise.
150         * config/mn10300/mn10300.c: Likewise.
151         * config/moxie/moxie.c: Likewise.
152         * config/pa/pa.c: Likewise.
153         * config/pdp11/pdp11.c: Likewise.
154         * config/picochip/picochip.c: Likewise.
155         * config/rs6000/rs6000-c.c: Likewise.
156         * config/rs6000/rs6000.c: Likewise.
157         * config/rx/rx.c: Likewise.
158         * config/s390/s390.c: Likewise.
159         * config/score/score.c: Likewise.
160         * config/score/score3.c: Likewise.
161         * config/score/score7.c: Likewise.
162         * config/sh/sh.c: Likewise.
163         * config/sh/symbian-base.c: Likewise.
164         * config/sh/symbian-c.c: Likewise.
165         * config/sh/symbian-cxx.c: Likewise.
166         * config/sol2-c.c: Likewise.
167         * config/sol2.c: Likewise.
168         * config/sparc/sparc.c: Likewise.
169         * config/spu/spu.c: Likewise.
170         * config/stormy16/stormy16.c: Likewise.
171         * config/v850/v850-c.c: Likewise.
172         * config/v850/v850.c: Likewise.
173         * config/vax/vax.c: Likewise.
174         * config/vxworks.c: Likewise.
175         * config/xtensa/xtensa.c: Likewise.
176         * convert.c: Likewise.
177         * cse.c: Likewise.
178         * cselib.c: Likewise.
179         * dbgcnt.c: Likewise.
180         * dbxout.c: Likewise.
181         * ddg.c: Likewise.
182         * dominance.c: Likewise.
183         * emit-rtl.c: Likewise.
184         * explow.c: Likewise.
185         * expmed.c: Likewise.
186         * fixed-value.c: Likewise.
187         * fold-const.c: Likewise.
188         * fwprop.c: Likewise.
189         * gcse.c: Likewise.
190         * ggc-common.c: Likewise.
191         * ggc-page.c: Likewise.
192         * ggc-zone.c: Likewise.
193         * gimple-low.c: Likewise.
194         * gimplify.c: Likewise.
195         * graph.c: Likewise.
196         * haifa-sched.c: Likewise.
197         * ifcvt.c: Likewise.
198         * implicit-zee.c: Likewise.
199         * integrate.c: Likewise.
200         * ira-build.c: Likewise.
201         * ira-color.c: Likewise.
202         * ira-conflicts.c: Likewise.
203         * ira-costs.c: Likewise.
204         * ira-lives.c: Likewise.
205         * ira.c: Likewise.
206         * lists.c: Likewise.
207         * loop-doloop.c: Likewise.
208         * loop-iv.c: Likewise.
209         * lto-opts.c: Likewise.
210         * lto-symtab.c: Likewise.
211         * main.c: Likewise.
212         * modulo-sched.c: Likewise.
213         * optabs.c: Likewise.
214         * params.c: Likewise.
215         * plugin.c: Likewise.
216         * postreload-gcse.c: Likewise.
217         * postreload.c: Likewise.
218         * predict.c: Likewise.
219         * profile.c: Likewise.
220         * real.c: Likewise.
221         * regcprop.c: Likewise.
222         * reginfo.c: Likewise.
223         * regmove.c: Likewise.
224         * reorg.c: Likewise.
225         * resource.c: Likewise.
226         * rtl.c: Likewise.
227         * rtlanal.c: Likewise.
228         * sched-deps.c: Likewise.
229         * sched-ebb.c: Likewise.
230         * sched-rgn.c: Likewise.
231         * sdbout.c: Likewise.
232         * sel-sched-dump.c: Likewise.
233         * sel-sched-ir.c: Likewise.
234         * simplify-rtx.c: Likewise.
235         * stmt.c: Likewise.
236         * stor-layout.c: Likewise.
237         * store-motion.c: Likewise.
238         * targhooks.c: Likewise.
239         * tree-cfg.c: Likewise.
240         * tree-cfgcleanup.c: Likewise.
241         * tree-dump.c: Likewise.
242         * tree-eh.c: Likewise.
243         * tree-inline.c: Likewise.
244         * tree-nomudflap.c: Likewise.
245         * tree-object-size.c: Likewise.
246         * tree-optimize.c: Likewise.
247         * tree-outof-ssa.c: Likewise.
248         * tree-phinodes.c: Likewise.
249         * tree-profile.c: Likewise.
250         * tree-ssa-ccp.c: Likewise.
251         * tree-ssa-coalesce.c: Likewise.
252         * tree-ssa-live.c: Likewise.
253         * tree-ssa-loop-niter.c: Likewise.
254         * tree-ssa-loop-prefetch.c: Likewise.
255         * tree-ssa-loop.c: Likewise.
256         * tree-ssa-structalias.c: Likewise.
257         * tree-ssa-uninit.c: Likewise.
258         * tree-ssa.c: Likewise.
259         * tree-vect-data-refs.c: Likewise.
260         * tree-vect-loop-manip.c: Likewise.
261         * tree-vect-loop.c: Likewise.
262         * tree-vect-patterns.c: Likewise.
263         * tree-vect-stmts.c: Likewise.
264         * tree-vrp.c: Likewise.
265         * varasm.c: Likewise.
266         * vec.c: Likewise.
267         * web.c: Likewise.
268         * xcoffout.c: Likewise.
269
270 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
271
272         * gengtype.c (write_field_root): New function.
273         (write_root): Use it.
274
275 2010-07-07  Wei Guozhi  <carrot@google.com>
276
277         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
278         of lowest bits to lshift/compare): Add a missing line.
279
280 2010-07-07  Wei Guozhi  <carrot@google.com>
281
282         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
283         of lowest bits to lshift/compare): New.
284
285 2010-07-07  Tom Tromey  <tromey@redhat.com>
286
287         * doc/tm.texi: Update.
288         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
289         Add @hook.
290         * target.def (want_debug_pub_sections): New hook.
291         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
292         * dwarf2out.c (add_pubname_string): Check
293         targetm.want_debug_pub_sections.
294         (add_pubname): Likewise.
295         (add_pubtype): Likewise.
296
297 2010-07-07  Jie Zhang  <jie@codesourcery.com>
298
299         * genautomata.c (output_automata_list_min_issue_delay_code):
300         Correctly decompress min_issue_delay.
301
302 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
303
304         PR rtl-optimization/44404
305         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
306         possible, use reg_overlap_mentioned_p instead.
307
308 2010-07-07  Duncan Sands  <baldrick@free.fr>
309
310         PR middle-end/41355
311         * tree.c (build_function_type_skip_args): Copy the original type using
312         build_distinct_type_copy rather than copy_node.
313
314 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
315
316         PR target/44850
317         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
318         revision 161876.
319         (ix86_expand_prologue): Likewise.
320         (ix86_handle_fndecl_attribute): Likewise.
321         (ix86_asm_declare_function_name): Likewise.
322         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
323         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
324         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
325         * config/i386/i386-protos.h (ix86_asm_declare_function_name):
326         Likewise.
327         * doc/extend.texi: Likewise.
328
329 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
330
331         PR target/44844
332         * config/i386/i386.md (rdrand<mode>): Changed to expand to
333         retry if the carry flag isn't valid.
334         (rdrand<mode>_1): New.
335
336 2010-07-07  Richard Guenther  <rguenther@suse.de>
337
338         PR middle-end/44790
339         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
340         for expanding the constant offset for MEM_REFs.
341
342 2010-07-07  Richard Guenther  <rguenther@suse.de>
343
344         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
345         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
346         * gimple.h (is_gimple_operand): Remove.
347         * gimple.c (is_gimple_operand): Likewise.
348         (walk_gimple_op): Fix wi->val_only setting for calls.
349         * tree-cfg.c (verify_gimple_call): Fix argument validation.
350         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
351         invalid gimple calls.
352
353 2010-07-06  Jan Hubicka  <jh@suse.cz>
354
355         * lto-cgraph.c (output_cgraph): Add missing declaration.
356
357 2010-07-06  Jan Hubicka  <jh@suse.cz>
358
359         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
360         partition.
361
362 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
363
364         * doc/gimple.texi (GIMPLE_DEBUG): Document.
365         * doc/rtl.texi (Debug Information): New node.
366         (NOTE_INSN_VAR_LOCATION): Document.
367         (debug_insn): Likewise.
368         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
369
370 2010-07-07  Jan Hubicka  <jh@suse.cz>
371
372         With parts by Richard Guenther
373
374         PR middle-end/44813
375         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
376         for functions passed by reference.
377         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
378         in memory when passed by reference.
379         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
380         beggining.
381         * ipa-split.c (split_function): Cleanup way return value is passed;
382         handle SSA DECL_BY_REFERENCE retvals.
383         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
384         DECL_BY_REFERENCE is set.
385         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
386         find_what_p_points_to): Handle RESULT_DECL.
387         * tree-inline.c (declare_return_variable): Get new entry_block argument;
388         when passing by reference ensure that RESULT_DECL is gimple_val.
389         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
390         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
391
392 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
393
394         PR rtl-optimization/44787
395         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
396         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
397
398 2010-07-06  Jan Hubicka  <jh@suse.cz>
399
400         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
401         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
402         with body can prevail.
403         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
404         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
405         * cgraph.c (cgraph_get_node_or_alias): New function.
406         * cgraph.h (cgraph_get_node_or_alias): Declare.
407
408 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
409
410         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
411         support.
412         (ix86_expand_prologue): Likewise.
413         (ix86_handle_fndecl_attribute): Likewise.
414         (ix86_asm_declare_function_name): New function for
415         ASM_DECLARE_FUNCTION_NAME.
416         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
417         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
418         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
419         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
420         * doc/extend.texi: Adjust documentation about ms_hook_prologue
421         attribute.
422
423 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
424
425         * config/i386/i386.md (immediate_operand): New mode attribute.
426         
427         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
428         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
429         using P mode iterator.
430         (pro_epilogue_adjust_stack_di_2): Rename from
431         pro_epilogue_adjust_stack_rex64_2.
432
433         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
434
435 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
436
437         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
438         through gen_mov_insv_1 function pointer.
439         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
440         gen_truncxf<mode>2 through gen_truncxf function pointer.
441         (remainder<mode>3): Ditto.
442         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
443         (allocate_stack): Call gen_allocate_stack_worker_64 or
444         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
445         function pointer.
446         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
447         function pointer.
448
449 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
450
451         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
452         operand constraint instead of <r><i>m.
453
454 2010-07-06  Richard Guenther  <rguenther@suse.de>
455
456         PR middle-end/44828
457         * convert.c (convert_to_integer): Watch out for overflowing
458         MULT_EXPR as well.
459
460 2010-07-05  Jan Hubicka  <jh@suse.cz>
461
462         * lto-streamer.c (write_symbol_vec): Rename to ...
463         (write_symbol) ... this one; write only symbol given and when
464         present in cache. Sanity check that what is defined is present
465         in cgraph/varpool with body/finalized decl.
466         (write_symbols_of_kind): Remove.
467         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
468         pairs to produce symtab.
469         (produce_asm_for_decls): Update call of produce_symtab; don't do so
470         when doing WPA streaming.
471
472 2010-07-05  Jan Hubicka  <jh@suse.cz>
473
474         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
475         function is still available to fold into.
476
477 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
478
479         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
480         * function.h (struct_function): Change type of local_decls field
481         to a VEC.
482         (add_local_decl): New function.
483         (FOR_EACH_LOCAL_DECL): New macro.
484         * cfgexpand.c (init_vars_expansion): Adjust for new type of
485         cfun->local_decls.
486         (estimated_stack_frame_size): Likewise.
487         (expand_used_vars): Likewise.
488         * cgraphbuild.c (build_cgraph_edges): Likewise.
489         * function.c (instantiate_decls_1): Likewise.
490         * ipa-struct-reorg.c (build_data_structure): Likewise.
491         * ipa-type-escape.c (analyze_function): Likewise.
492         * lto-streamer-in.c (input_function): Likewise.
493         * lto-streamer-out.c (output_function): Likewise.
494         * tree-ssa-live.c (remove_unused_locals): Likewise.
495         * tree.c (free_lang_data_in_decl): Likewise.
496         (find_decls_types_in_node): Likewise.
497         * omp-low.c (remove_exit_barrier): Likewise.
498         (expand_omp_taskreg): Likewise.
499         (list2chain): Rename to...
500         (vec2chain): ...this.  Adjust.
501         * cgraphunit.c (assemble_thunk): Call add_local_decl.
502         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
503         * gimple-low.c (record_vars_into): Likewise.
504         * tree-inline.c (remap_decls): Likewise.
505         (declare_return_variable): Likewise.
506         (declare_inline_vars): Likewise.
507         (copy_forbidden): Adjust for new type of cfun->local_decls.
508         (add_local_variables): New function.
509         (expand_call_inline): Call it.
510         (tree_function_versioning): Likewise.
511
512 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
513
514         AVX Programming Reference (June, 2010)
515         * config/i386/cpuid.h (bit_F16C): New.
516         (bit_RDRND): Likewise.
517         (bit_FSGSBASE): Likewise.
518
519         * config/i386/i386-builtin-types.def: Add
520         "DEF_FUNCTION_TYPE (UINT16)", function types for
521         float16 <-> float conversions and
522         "DEF_FUNCTION_TYPE (VOID, UINT64)".
523
524         * config/i386/i386-c.c (ix86_target_macros_internal): Support
525         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
526         OPTION_MASK_ISA_F16C.
527
528         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
529         (OPTION_MASK_ISA_RDRND_SET): Likewise.
530         (OPTION_MASK_ISA_F16C_SET): Likewise.
531         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
532         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
533         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
534         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
535         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
536         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
537         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
538         (override_options): Handle them.
539         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
540         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
541         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
542         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
543         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
544         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
545         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
546         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
547         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
548         (bdesc_args): Likewise.
549         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
550         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
551         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
552         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
553         Handle non-memory store.
554
555         * config/i386/i386.h (TARGET_FSGSBASE): New.
556         (TARGET_RDRND): Likewise.
557         (TARGET_F12C): Likewise.
558
559         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
560         (UNSPEC_VCVTPS2PH): Likewise.
561         (UNSPECV_RDFSBASE): Likewise.
562         (UNSPECV_RDGSBASE): Likewise.
563         (UNSPECV_WRFSBASE): Likewise.
564         (UNSPECV_WRGSBASE): Likewise.
565         (UNSPECV_RDRAND): Likewise.
566         (rdfsbase<mode>): Likewise.
567         (rdgsbase<mode>): Likewise.
568         (wrfsbase<mode>): Likewise.
569         (wrgsbase<mode>): Likewise.
570         (rdrand<mode>): Likewise.
571
572         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
573
574         * config/i386/immintrin.h (_rdrand_u16): New.
575         (_rdrand_u32): Likewise.
576         (_readfsbase_u32): Likewise.
577         (_readfsbase_u64): Likewise.
578         (_readgsbase_u32): Likewise.
579         (_readgsbase_u64): Likewise.
580         (_writefsbase_u32): Likewise.
581         (_writefsbase_u64): Likewise.
582         (_writegsbase_u32): Likewise.
583         (_writegsbase_u64): Likewise.
584         (_rdrand_u64): Likewise.
585         (_cvtsh_ss): Likewise.
586         (_mm_cvtph_ps): Likewise.
587         (_mm256_cvtph_ps): Likewise.
588         (_cvtss_sh): Likewise.
589         (_mm_cvtps_ph): Likewise.
590         (_mm256_cvtps_ph): Likewise.
591
592         * config/i386/sse.md (vcvtph2ps): New.
593         (*vcvtph2ps_load): Likewise.
594         (vcvtph2ps256): Likewise.
595         (vcvtps2ph): Likewise.
596         (*vcvtps2ph): Likewise.
597         (*vcvtps2ph_store): Likewise.
598         (vcvtps2ph256): Likewise.
599
600         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
601
602         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
603
604 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
605
606         PR bootstrap/44512
607         * genenums.c (main): Output include of insn-constants.h
608         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
609
610 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
611
612         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
613         (override_options): Initialize it.
614         (ix86_expand_prologue): Use it.
615
616 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
617
618         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
619
620 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
621
622         * double-int.h (fit_double_type): Remove declaration.
623         * double-int.c (fit_double_type): Remove function.
624         * tree.h (int_fits_type_p): Adjust prototype.
625         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
626         instead of fit_double_type.
627         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
628         instead of fit_double_type and build_int_cst_wide.
629         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
630         instead of fit_double_type and build_int_cst_wide.
631         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
632         of fit_double_type.
633
634 2010-07-05  Jan Hubicka  <jh@suse.cz>
635
636         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
637         in_other_partition.
638         * lto-cgraph.c (referenced_from_other_partition_p,
639         reachable_from_other_partition_p): Use in_other_partition flags.
640         (output_node, output_varpool_node): COMDAT nodes always have private
641         copies and thus are never used from other partition.
642
643 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
644
645         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
646         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
647         * config/ia64/ia64.c Include reload.h.
648         (ia64_memory_move_cost): New function.
649         (TARGET_MEMORY_MOVE_COST): Define.
650         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
651         memory_move_cost.
652
653 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
654
655         PR middle-end/42505
656         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
657         comments about cost model.
658         (try_add_cand_for):  Add second strategy for choosing initial set
659         based on original IVs, controlled by ORIGINALP argument.
660         (get_initial_solution): Add ORIGINALP argument.
661         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
662         (find_optimal_iv_set): Try two different strategies for choosing
663         the IV set, and return the one with lower cost.
664
665 2010-07-05  Richard Guenther  <rguenther@suse.de>
666
667         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
668
669 2010-07-05  Richard Guenther  <rguenther@suse.de>
670
671         * tree.c (reference_alias_ptr_type): New function.
672         * tree.h (reference_alias_ptr_type): Declare.
673         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
674         allow non-TARGET_MEM_REF new refs.
675         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
676         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
677         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
678         (create_mem_ref): Get alias pointer type.  Adjust calls to
679         create_mem_ref_raw.
680         (maybe_fold_tmr): Likewise.
681         * tree-flow.h (create_mem_ref): Adjust prototype.
682
683 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
684
685         PR c++/44808
686         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
687         *from_p is VAR_DECL.
688
689 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
690
691         * tree.h (build_call_list): Remove.
692         * tree.c (build_call_list): Remove.
693
694 2010-07-05  Richard Guenther  <rguenther@suse.de>
695
696         * double-int.h (double_int_sub): Declare.
697         * double-int.c (double_int_sub): New function.
698         * dwarf2out.c (field_byte_offset): Use it.
699         * fixed-value.c (do_fixed_add): Likewise.
700         (do_fixed_multiply): Likewise.
701         (do_fixed_divide): Likewise.
702         * tree-predcom.c (add_ref_to_chain): Likewise.
703         (determine_roots_comp): Likewise.
704         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
705
706 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
707
708         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
709         implementations.
710
711 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
712
713         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
714         * arm-modes.def (CC_NOTB): Don't define.
715         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
716         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
717         (LTUGEU): New code_iterator.
718         (cnb, optab): New corresponding code_attrs.
719         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
720         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
721         using LTUGEU.
722         (addsi3_carryin_shift_<optab>): Likewise.
723         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
724         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
725         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
726         (subsi3_compare): Renamed from subsi3_compare0_c.
727         Change CC_NOTB to CC.
728         (arm_subsi3_insn): Allow constants for operand 0.
729         (compare_scc peephole for eq case): New.
730         (compare_scc splitters): Change CC_NOTB to CC.
731
732 2010-07-05  Richard Guenther  <rguenther@suse.de>
733
734         * tree-ssa-loop-im.c (for_each_index): Do not handle
735         ALIGN_INDIRECT_REF.
736         (gen_lsm_tmp_name): Likewise.
737         * tree-dump.c (dequeue_and_dump): Likewise.
738         * tree-pretty-print.c (dump_generic_node): Likewise.
739         (op_code_prio): Likewise.
740         (op_symbol_code): Likewise.
741         * tree.c (staticp): Likewise.
742         (build1_stat): Likewise.
743         * tree.h (INDIRECT_REF_P): Likewise.
744         * fold-const.c (maybe_lvalue_p): Likewise.
745         (operand_equal_p): Likewise.
746         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
747         (ao_ref_init_from_vn_reference): Likewise.
748         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
749         (find_interesting_uses_address): Likewise.
750         * dwarf2out.c (loc_list_from_tree): Likewise.
751         * gimplify.c (gimplify_expr): Likewise.
752         * tree-eh.c (tree_could_trap_p): Likewise.
753         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
754         * cfgexpand.c (expand_debug_expr): Likewise.
755         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
756         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
757         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
758         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
759         * tree-ssa-operands.c (get_expr_operands): Likewise.
760         * expr.c (safe_from_p): Likewise.
761         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
762         * tree-vect-data-refs.c (vect_setup_realignment): Build
763         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
764         * tree-vect-stmts.c (vectorizable_load): Likewise.
765         * tree.def (ALIGN_INDIRECT_REF): Remove.
766
767 2010-07-05  Richard Guenther  <rguenther@suse.de>
768
769         PR tree-optimization/44784
770         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
771         for inserted stmts.
772         (find_or_generate_expression): Fix SCCVN insertion check.
773
774 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
775
776         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
777         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
778         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
779         directives.
780
781 2010-07-05  Ira Rosen  <irar@il.ibm.com>
782
783         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
784         statements that are not vectorized.
785         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
786         in INSIDE_COST.
787
788 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
789
790         PR bootstrap/44820
791         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
792
793 2010-07-05  Richard Guenther  <rguenther@suse.de>
794
795         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
796         RESULT_DECLs properly.
797
798 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
799
800         PR rtl-optimization/44695
801         * config/i386/i386.md (extract_code): Removed.
802         (<u>divmodqi4): Likewise.
803         (divmodqi4): New.
804         (udivmodqi4): Likewise.
805         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
806         (udivmodhiqi3): Likewise.
807
808 2010-07-04  Jan Hubicka  <jh@suse.cz>
809
810         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
811
812 2010-07-04  Jan Hubicka  <jh@suse.cz>
813
814         * cgraphunit.c (init_cgraph): Only initialize dump file if it
815         is not already initialized.
816
817 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
818
819         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
820         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
821         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
822         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
823         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
824         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
825         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
826         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
827         (sync_new_nand_optab): Redefine as macros.
828         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
829         Delete.
830         (direct_optab_index): New enum.
831         (direct_optab_d): New structure.
832         (direct_optab): New typedef.
833         (direct_optab_table): Declare.
834         (direct_optab_handler, set_direct_optab_handler): New functions.
835         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
836         (sync_lock_release_optab): New macros.
837         * optabs.c (direct_optab_table): New variable.
838         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
839         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
840         cmpstr_optab and cmpstrn_optab.
841         (emit_conditional_move): Likewise for movcc_optab.
842         (can_conditionally_move_p): Likewise for movcc_gen_code.
843         (init_insn_codes): Clear direct_optab_table.
844         (init_optabs): Don't initialize the new "direct optabs" here.
845         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
846         vcond_gen_code.
847         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
848         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
849         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
850         (expand_sync_operation): Likewise other sync_*_optabs.
851         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
852         to sync_compare_and_swap_optab.
853         (expand_sync_lock_test_and_set): Use direct_optab_handler for
854         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
855         to the names of both.
856         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
857         cmpstr_optab and cmpstrn_optab.
858         (expand_builtin_lock_release): Likewise sync_lock_release.
859         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
860         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
861         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
862         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
863         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
864         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
865         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
866         (sync_lock_test_and_set, sync_lock_release): Delete.
867         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
868         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
869         * genopinit.c (optabs): Use set_direct_optab_handler for the new
870         macro optabs.
871         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
872         the "optab" local variable.  Use direct_optab_handler for optab and
873         sync_compare_and_swap_optab.
874         * reload1.c (reload_in_optab, reload_out_optab): Delete.
875         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
876         reload_in_optab and reload_out_optab.
877         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
878         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
879         * config/pa/pa.c (pa_secondary_reload): Likewise.
880         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
881         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
882         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
883         (VMSupportsCS8_builtin): Likewise.
884
885 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
886
887         * optabs.h (optab_handlers): Change type of insn_code to int.
888         (optab_handler, set_optab_handler, convert_optab_handler)
889         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
890         CODE_FOR_nothing".
891         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
892         (init_insn_codes): Zero both the above arrays.
893         (init_optabs): Never call init_insn_codes first time around.
894
895 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
896
897         * optabs.h (optab_handler, convert_optab_handler): Turn into
898         inline functions that return an insn code.
899         (set_optab_handler, set_convert_optab_handler): New functions.
900         * builtins.c: Replace optab_handler(X)->insn_code with
901         optab_handler or set_optab_handler thoughout.  Likewise
902         convert_optab_handler(X)->insn_code with convert_optab_handler
903         and set_convert_optab_handler.
904         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
905         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
906         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
907         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
908         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
909         config/spu/spu.c: Likewise.
910
911 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
912
913         PR target/44531
914         * config.gcc (sh*-*-*): Use regular expressions instead of
915         the 'i' modifier for sed substitutions.
916
917 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
918
919         * gimple.c (gimple_body): Comments added.
920
921 2010-07-04  Richard Guenther  <rguenther@suse.de>
922
923         PR middle-end/44809
924         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
925         of an INDIRECT_REF.
926
927 2010-07-04  Richard Guenther  <rguenther@suse.de>
928
929         PR tree-optimization/44479
930         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
931         extra SSA name copy statements which preserves points-to
932         information.
933         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
934         Copy points-to information for all pointers.  Properly handle
935         MEM_REFs.
936         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
937         copy statements.
938         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
939         dependency.
940
941 2010-07-04  Richard Guenther  <rguenther@suse.de>
942
943         PR middle-end/44785
944         * tree-inline.c (initialize_inlined_parameters): Do not
945         re-use pointer-map slot over remap_type call.
946
947 2010-07-04  Richard Guenther  <rguenther@suse.de>
948
949         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
950
951 2010-07-04  Richard Guenther  <rguenther@suse.de>
952
953         PR tree-optimization/44656
954         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
955         again after value-replacing in the defintions lhs.
956
957 2010-07-04  Ira Rosen  <irar@il.ibm.com>
958             Revital Eres  <eres@il.ibm.com>
959
960         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
961         Document new arguments.
962         * doc/tm.texi: Regenerate.
963         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
964         Handle unaligned store.
965         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
966         * target.def (builtin_vectorization_cost): Add new arguments.
967         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
968         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
969         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
970         (vect_vfa_segment_size): Fix indentation.
971         * tree-vectorizer.h (struct _vect_peel_info): New.
972         (struct _vect_peel_extended_info): New.
973         (struct _loop_vec_info): Add new field for peeling hash table and a
974         macro for its access.
975         (VECT_MAX_COST): Define.
976         (vect_get_load_cost): Declare.
977         (vect_get_store_cost, vect_get_known_peeling_cost,
978         vect_get_single_scalar_iteraion_cost): Likewise.
979         (vect_supportable_dr_alignment): Add new argument.
980         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
981         field.
982         (destroy_loop_vec_info): Free peeling hash table.
983         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
984         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
985         vect_analyze_slp. Fix indentation.
986         (vect_get_single_scalar_iteraion_cost): New function.
987         (vect_get_known_peeling_cost): Likewise.
988         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
989         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
990         statement. Move outside cost calculation inside unknown peeling case.
991         Call vect_get_known_peeling_cost for known amount of peeling.
992         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
993         reference to the print message of forced alignment.
994         (vect_verify_datarefs_alignment): Update call to
995         vect_supportable_dr_alignment.
996         (vect_get_data_access_cost): New function.
997         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
998         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
999         vect_peeling_hash_choose_best_peeling): Likewise.
1000         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
1001         to store all the accesses in the loop and find best possible access to
1002         align using peeling for known alignment case. For unknown alignment
1003         check if stores are preferred or if peeling is worthy.
1004         (vect_find_same_alignment_drs): Analyze pairs of loads too.
1005         (vect_supportable_dr_alignment): Add new argument and check aligned
1006         accesses according to it.
1007         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
1008         (cost_for_stmt): Call vect_get_stmt_cost.
1009         (vect_model_simple_cost): Likewise.
1010         (vect_model_store_cost): Call vect_get_stmt_cost. Call
1011         vect_get_store_cost to calculate the cost of the statement.
1012         (vect_get_store_cost): New function.
1013         (vect_model_load_cost): Call vect_get_stmt_cost. Call
1014         vect_get_load_cost to calculate the cost of the statement.
1015         (vect_get_load_cost): New function.
1016         (vectorizable_store): Update call to vect_supportable_dr_alignment.
1017         (vectorizable_load): Likewise.
1018         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
1019         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
1020         arguments. Handle unaligned store.
1021         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
1022         (rs6000_builtin_support_vector_misalignment): Return true for word and
1023         double word alignments for VSX.
1024         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
1025         vect_supportable_dr_alignment and builtin_vectorization_cost.
1026
1027 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1028
1029         PR target/44597
1030         * config/pa/predicates.md (prefetch_cc_operand): Remove.
1031         (prefetch_nocc_operand): Likewise.
1032         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
1033         (prefetch_20): New insn.
1034         (prefetch_cc): Remove.
1035         (prefetch_nocc): Likewise.
1036
1037 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1038
1039         * expr.c (vector_mode_valid_p): Move to c-common.c.
1040         * expr.h (vector_mode_valid_p): Do not declare here.
1041         * system.h: Poison GCC_EXPR_H in front-ends.
1042         * Makefile.in: Update dependencies.
1043
1044 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1045
1046         PR target/44705
1047         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
1048
1049 2010-07-03  Jan Hubicka  <jh@suse.cz>
1050
1051         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
1052         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
1053         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
1054         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
1055         Likewise.
1056
1057         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
1058         Update timevars.V
1059         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
1060         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
1061         TV_IPA_LTO_DECL_OUT): New.
1062         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
1063
1064 2010-07-03  Jan Hubicka  <jh@suse.cz>
1065
1066         * ipa-inline.c (update_edge_key): Break out from ...
1067         update_callers_keys): ... here;
1068         (update_callee_keys): Update only the edges from caller to callee.
1069         (update_all_calle_keys): Do what update_calle_keys did.
1070         (decide_inlining_of_small_functions): Avoid recomputing of all
1071         callees when badness increase.
1072
1073 2010-07-03  Jie Zhang  <jie@codesourcery.com>
1074
1075         * config/arm/arm.c (arm_attr_length_move_neon): New.
1076         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
1077         * config/arm/neon.md (define_mode_attr V_slen): Remove.
1078         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
1079         to compute length attribute.
1080
1081 2010-07-03  Jie Zhang  <jie@codesourcery.com>
1082
1083         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
1084         as predicate for operand 1 and remove its constraint.
1085         * config/arm/predicates.md (vfp_register_operand): New.
1086         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
1087         (*push_fp_multi): Likewise.
1088
1089 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
1090
1091         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
1092
1093 2010-07-03  Jan Hubicka  <jh@suse.cz>
1094
1095         * config/i386/i386.c (override_options): Revert accidental commit.
1096
1097 2010-07-02  Le-Chun Wu  <lcwu@google.com>
1098
1099         PR c++/44128
1100         * doc/invoke.texi: Update documentation of -Wshadow.
1101
1102 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
1103             Julian Brown  <julian@codesourcery.com>
1104             Sandra Loosemore <sandra@codesourcery.com>
1105
1106         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
1107         comparisons.  Adjust to take both operands.
1108         (arm_select_cc_mode): Handle DImode comparisons.
1109         (arm_gen_compare_reg): Generate a scratch register for DImode
1110         comparisons which require one.  Use xor for Thumb equality checks.
1111         (arm_const_double_by_immediates): New.
1112         (arm_print_operand): Allow 'Q' and 'R' for constants.
1113         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
1114         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
1115         arm_canonicalize_comparison.
1116         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
1117         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
1118         prototype.
1119         (arm_const_double_by_immediates): Declare.
1120         * config/arm/constraints.md (Di): New constraint.
1121         * config/arm/predicates.md (arm_immediate_di_operand)
1122         (arm_di_operand, cmpdi_operand): New.
1123         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
1124         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
1125         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
1126         (cstoredi4): Handle non-Cirrus also.
1127
1128 2010-07-02  Julian Brown  <julian@codesourcery.com>
1129             Sandra Loosemore <sandra@codesourcery.com>
1130
1131         PR target/43703
1132         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
1133         (smax<mode>3): Disable for NEON float modes when
1134         flag_unsafe_math_optimizations is false.
1135         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
1136         (*mul<mode>3_neon)
1137         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
1138         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
1139         for NEON float modes when flag_unsafe_math_optimizations is false.
1140         (quad_halves_<code>v4sf): Only enable if
1141         flag_unsafe_math_optimizations is true.
1142         * doc/invoke.texi (ARM Options): Add note about floating point
1143         vectorization requiring -funsafe-math-optimizations.
1144
1145 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
1146             Julian Brown  <julian@codesourcery.com>
1147
1148         * config/arm/neon.md (UNSPEC_VABA): Delete.
1149         (UNSPEC_VABAL): Delete.
1150         (UNSPEC_VABS): Delete.
1151         (UNSPEC_VMUL_N): Delete.
1152         (adddi3_neon): New.
1153         (subdi3_neon): New.
1154         (mul<mode>3add<mode>_neon): Make the pattern named.
1155         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
1156         (neon_vadd<mode>): Replace with define_expand, and move the remaining
1157         unspec parts...
1158         (neon_vadd<mode>_unspec): ...to this.
1159         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
1160         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
1161         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
1162         (neon_vaba<mode>): Rewrite in terms of vabd.
1163         (neon_vabal<mode>): Rewrite in terms of vabdl.
1164         (neon_vabs<mode>): Rewrite without unspec.
1165         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
1166         (*arm_subdi3): Likewise.
1167         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
1168         No_op attribute to disable assembly output checks.
1169         * config/arm/arm_neon.h: Regenerated.
1170         * doc/arm-neon-intrinsics.texi: Regenerated.
1171
1172 2010-07-02  Jan Hubicka  <jh@suse.cz>
1173
1174         * ipa-split.c (split_function): For aggregate values, set the return
1175         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
1176         *<retval> = fncall.part ().
1177         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
1178
1179 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
1180
1181         * config/arm/neon.md (UNSPEC_VAND): Delete.
1182         (UNSPEC_VBIC): Delete.
1183         (UNSPEC_VCLZ): Delete.
1184         (UNSPEC_VCNT): Delete.
1185         (UNSPEC_VEOR): Delete.
1186         (UNSPEC_VORN): Delete.
1187         (UNSPEC_VORR): Delete.
1188         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
1189         core registers too.
1190         (anddi3_neon): Likewise.
1191         (orndi3_neon): Likewise.
1192         (bicdi3_neon): Likewise.
1193         (xordi3_neon): Likewise.
1194         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
1195         rid of unspec and handle unused operand.
1196         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
1197         * config/arm/predicates.md (imm_for_neon_logic_operand):
1198         Require TARGET_NEON.
1199         (imm_for_neon_inv_logic_operand): Likewise.
1200         * config/arm/arm.md (define_split for logical_binary_operator):
1201         Disable for NEON registers.
1202         (anddi3): Add new define_expand, and rename the insn.  Disable
1203         this insn for NEON, where anddi3_neon now applies.
1204         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
1205         (iordi3): As for anddi3.
1206         (xordi3): Likewise.
1207         * config/arm/neon.ml (Vand): Split DImode variants and mark them
1208         as No_op to disable testing for exact instruction match.
1209         (Vorr): Likewise.
1210         (Veor): Likewise.
1211         (Vbic): Likewise.
1212         (Vorn): Likewise.
1213         * config/arm/arm_neon.h: Regenerated.
1214         * doc/arm-neon-intrinsics.texi: Regenerated.
1215
1216 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
1217
1218         * expr.h (emit_stack_probe): Declare.
1219         * explow.c (emit_stack_probe): Make global.
1220         (anti_adjust_stack_and_probe): Fix comments.
1221         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
1222         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1223         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1224         * config/sparc/sparc.c: Include except.h.
1225         (sparc_emit_probe_stack_range): New function.
1226         (output_probe_stack_range): Likewise.
1227         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
1228         built-in stack checking is enabled.
1229         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
1230         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
1231         (probe_stack_range): New insn.
1232
1233 2010-07-02  Richard Guenther  <rguenther@suse.de>
1234
1235         PR target/43958
1236         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
1237         for argument alignment.
1238
1239 2010-07-02  Jan Hubicka  <jh@suse.cz>
1240
1241         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
1242         walk backwards from entry_bb to check only those basic block of header
1243         that might lead to execution of split part.
1244         (consider_split) ... here.
1245         (find_return_bb): Allow assignment in return BB.
1246         (find_retval): New.
1247         (split_function): Fix name of cloned function; take care of updating
1248         return value in return_bb containing move.
1249
1250 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
1251
1252         PR target/44771
1253         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
1254         used variable insn.
1255
1256 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
1257
1258         * implicit-zee.c (combine_reaching_defs): Fix long lines.
1259         (is_set_with_extension_DI): Delete.
1260         (struct zero_extend_info): New structure.
1261         (add_removable_zero_extend): New function.
1262         (find_removable_zero_extends): Use note_stores to find SETs.
1263         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
1264
1265 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
1266
1267         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
1268         is_miss_rate_acceptable. Pull total_positions computation
1269         out of the loops.  Early return if miss_positions exceeds
1270         the acceptable threshold.
1271         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
1272         is_miss_rate_acceptable after renaming of compute_miss_rate.
1273
1274 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
1275
1276         PR middle-end/44576
1277         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
1278         of 1000) for miss rate if the address diference is greater than or
1279         equal to the cache line size (the two reference will never hit the
1280         same cache line).
1281
1282 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
1283
1284         PR target/42835
1285         * config/arm/arm-modes.def (CC_NOTB): New mode.
1286         * config/arm/arm.c (get_arm_condition_code): Handle it.
1287         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
1288         * config/arm/arm.md (subsi3_compare0_c): New pattern.
1289         (compare_scc): Now a define_and_split.  Add a number of extra
1290         splitters before it.
1291
1292         PR target/42172
1293         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
1294         and ZERO_EXTEND.
1295         (arm_rtx_costs_1): Likewise.
1296         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
1297         * config/arm/arm.md (is_arch6): New attribute.
1298         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
1299         extendqisi2): Tighten the code somewhat, avoiding invalid
1300         RTL to occur in the expander patterns.
1301         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
1302         (thumb1_zero_extendhisi2_v6): Delete.
1303         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
1304         (thumb1_extendhisi2_v6): Delete.
1305         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
1306         (thumb1_extendqisi2_v6): Delete.
1307         (zero_extendhisi2 for register input splitter): New.
1308         (zero_extendqisi2 for register input splitter): New.
1309         (thumb1_extendhisi2 for register input splitter): New.
1310         (extendhisi2 for register input splitter): New.
1311         (extendqisi2 for register input splitter): New.
1312         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
1313         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
1314         and add support for a register alternative requiring a split.
1315         (thumb1_zero_extendqisi2): Likewise.
1316         (arm_zero_extendqisi2): Likewise.
1317         (arm_extendhisi2): Likewise.
1318         (arm_extendqisi2): Likewise.
1319
1320 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
1321
1322         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
1323         instead of an unspec.
1324         (neon_expand_vector_init): Likewise.
1325         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
1326         (UNSPEC_VDUP_LANE): Delete.
1327         (UNSPEC VDUP_N): Delete.
1328         (UNSPEC_VGET_HIGH): Delete.
1329         (UNSPEC_VGET_LANE): Delete.
1330         (UNSPEC_VGET_LOW): Delete.
1331         (UNSPEC_VMVN): Delete.
1332         (UNSPEC_VSET_LANE): Delete.
1333         (V_double_vector_mode): New.
1334         (vec_set<mode>_internal): Make code emitted match that for the
1335         corresponding intrinsics.
1336         (vec_setv2di_internal): Likewise.
1337         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
1338         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
1339         (neon_vset_lane<mode>): Combine double and quad patterns and
1340         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
1341         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
1342         (neon_vdup_n<mode>): Rewrite RTL without unspec.
1343         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
1344         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
1345         with neon_vdup_lanev2di, adjusting the pattern from the latter
1346         to be predicable for consistency.
1347         (neon_vdup_lane<mode>_internal): New.
1348         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
1349         to avoid using an unspec.
1350         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
1351         (neon_vdup_lanev2di): Turn into a define_expand.
1352         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
1353         (neon_vget_high<mode>): Replace with....
1354         (neon_vget_highv16qi): New pattern using canonical RTL.
1355         (neon_vget_highv8hi): Likewise.
1356         (neon_vget_highv4si): Likewise.
1357         (neon_vget_highv4sf): Likewise.
1358         (neon_vget_highv2di): Likewise.
1359         (neon_vget_low<mode>): Replace with....
1360         (neon_vget_lowv16qi): New pattern using canonical RTL.
1361         (neon_vget_lowv8hi): Likewise.
1362         (neon_vget_lowv4si): Likewise.
1363         (neon_vget_lowv4sf): Likewise.
1364         (neon_vget_lowv2di): Likewise.
1365
1366         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
1367         test for this emitting vmov.
1368         (Vset_lane): Likewise.
1369         (Vdup_n): Likewise.
1370         (Vmov_n): Likewise.
1371
1372         * doc/arm-neon-intrinsics.texi: Regenerated.
1373
1374 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
1375
1376         * config/arm/neon.md (vec_extractv2di): Correct error in register
1377         numbering to reconcile with neon_vget_lanev2di.
1378
1379 2010-07-02  Richard Guenther  <rguenther@suse.de>
1380
1381         * tree-ssa-structalias.c (pt_solution_set_var): New function.
1382         * tree-ssa-alias.h (pt_solution_set_var): Declare.
1383         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
1384         points-to information.
1385
1386 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
1387
1388         * config/s390/s390.c (override_options): Adopt prefetching
1389         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
1390
1391 2010-07-02  Jan Hubicka  <jh@suse.cz>
1392
1393         * df-problems.c (df_kill_notes): Do not collect dead  notes.
1394         (df_set_note): Just call add_reg_note.
1395         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
1396         df_create_unused_note): Do not deal with lists of old notes.
1397         (df_note_bb_compute): Likewise.
1398
1399 2010-07-02  Richard Guenther  <rguenther@suse.de>
1400
1401         * tree-ssa-structalias.c (find_func_aliases): Handle
1402         pointer alignment via BIT_AND_EXPR.
1403         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
1404
1405 2010-07-02  Richard Guenther  <rguenther@suse.de>
1406
1407         * tree-data-ref.c (initialize_data_dependence_relation): Handle
1408         mismatching number of dimensions properly.
1409
1410 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1411
1412         PR target/44707
1413         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
1414         (lo_sum (high ...) ...) patterns generated by earlier passes.
1415
1416 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1417
1418         * doc/install.texi (Prerequisites): Document Perl requirement on
1419         Solaris 2.
1420         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
1421
1422 2010-07-02  Richard Guenther  <rguenther@suse.de>
1423
1424         PR middle-end/44777
1425         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
1426
1427 2010-07-02  Jan Hubicka  <jh@suse.cz>
1428
1429         PR middle-end/44706
1430         * predict.c (predict_paths_for_bb): Handle case when control dependence
1431         BB has only abnormal edges.
1432
1433 2010-07-02  Richard Guenther  <rguenther@suse.de>
1434
1435         PR tree-optimization/44748
1436         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
1437         the embedded conversion in MEM_REFs.
1438
1439 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
1440
1441         * reload.c: Include toplev.h.
1442         * recog.c:  Likewise.
1443         * Makefile.in: Adjust dependencies.
1444
1445 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
1446
1447         PR debug/44694
1448         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
1449         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
1450
1451 2010-07-01  Richard Guenther  <rguenther@suse.de>
1452
1453         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
1454         types for offsets.
1455
1456 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
1457
1458         PR target/44732
1459         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
1460         Fix argument types.
1461
1462 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
1463
1464         PR target/44727
1465         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
1466         Make sure operand 0 dies.
1467
1468 2010-07-01  Richard Guenther  <rguenther@suse.de>
1469
1470         PR middle-end/42834
1471         PR middle-end/44468
1472         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
1473         * doc/generic.texi (References to storage): Document MEM_REF.
1474         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
1475         (print_call_name): Likewise.
1476         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
1477         (build_simple_mem_ref_loc): New function.
1478         (mem_ref_offset): Likewise.
1479         * tree.h (build_simple_mem_ref_loc): Declare.
1480         (build_simple_mem_ref): Define.
1481         (mem_ref_offset): Declare.
1482         * fold-const.c: Include tree-flow.h.
1483         (operand_equal_p): Handle MEM_REF.
1484         (build_fold_addr_expr_with_type_loc): Likewise.
1485         (fold_comparison): Likewise.
1486         (fold_unary_loc): Fold
1487         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
1488         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
1489         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
1490         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
1491         (ptr_deref_may_alias_ref_p_1): Likewise.
1492         (ao_ref_base_alias_set): Properly differentiate base object for
1493         offset and TBAA.
1494         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
1495         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
1496         (indirect_refs_may_alias_p): Likewise.
1497         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
1498         chasing code.
1499         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
1500         (call_may_clobber_ref_p_1): Likewise.
1501         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
1502         * expr.c (expand_assignment): Handle MEM_REF.
1503         (store_expr): Handle MEM_REFs from STRING_CSTs.
1504         (store_field): If expanding a MEM_REF of a non-addressable
1505         decl use bitfield operations.
1506         (get_inner_reference): Handle MEM_REF.
1507         (expand_expr_addr_expr_1): Likewise.
1508         (expand_expr_real_1): Likewise.
1509         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
1510         * alias.c (ao_ref_from_mem): Handle MEM_REF.
1511         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
1512         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
1513         (dr_analyze_indices): Likewise.
1514         (dr_analyze_alias): Likewise.
1515         (object_address_invariant_in_loop_p): Likewise.
1516         * gimplify.c (mark_addressable): Handle MEM_REF.
1517         (gimplify_cond_expr): Build MEM_REFs.
1518         (gimplify_modify_expr_to_memcpy): Likewise.
1519         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
1520         (gimple_fold_indirect_ref): Adjust.
1521         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
1522         * tree.def (MEM_REF): New tree code.
1523         * tree-dfa.c: Include toplev.h.
1524         (get_ref_base_and_extent): Handle MEM_REF.
1525         (get_addr_base_and_unit_offset): New function.
1526         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
1527         * gimple-fold.c (may_propagate_address_into_dereference): Handle
1528         MEM_REF.
1529         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
1530         accesses if the array has just one dimension.  Remove always true
1531         parameter.  Do not require type compatibility here.
1532         (maybe_fold_offset_to_component_ref): Remove.
1533         (maybe_fold_stmt_indirect): Remove.
1534         (maybe_fold_reference): Remove INDIRECT_REF handling.
1535         Fold back to non-MEM_REF.
1536         (maybe_fold_offset_to_address): Simplify.  Deal with type
1537         mismatches here.
1538         (maybe_fold_reference): Likewise.
1539         (maybe_fold_stmt_addition): Likewise.  Also handle
1540         &ARRAY + I in addition to &ARRAY[0] + I.
1541         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
1542         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
1543         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
1544         * tree-ssa.c (useless_type_conversion_p): Make most pointer
1545         conversions useless.
1546         (warn_uninitialized_var): Handle MEM_REF.
1547         (maybe_rewrite_mem_ref_base): New function.
1548         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
1549         to SSA form.
1550         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
1551         INDIRECT_REF handling.
1552         (copy_tree_body_r): Handle MEM_REF.
1553         * gimple.c (is_gimple_addressable): Adjust.
1554         (is_gimple_address): Likewise.
1555         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
1556         invariant base are invariant.
1557         (is_gimple_min_lval): Adjust.
1558         (is_gimple_mem_ref_addr): New function.
1559         (get_base_address): Handle MEM_REF.
1560         (count_ptr_derefs): Likewise.
1561         (get_base_loadstore): Likewise.
1562         * gimple.h (is_gimple_mem_ref_addr): Declare.
1563         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
1564         * tree-cfg.c (verify_address): New function, split out from ...
1565         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
1566         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
1567         INDIRECT_REFs.
1568         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
1569         INDIRECT_REF.  Allow conversions.
1570         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
1571         a register does not change its size.
1572         (verify_types_in_gimple_reference): Verify MEM_REF.
1573         (verify_gimple_assign_single): Disallow INDIRECT_REF.
1574         Handle MEM_REF.
1575         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
1576         New.
1577         (mark_address_taken): Handle MEM_REF.
1578         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
1579         (get_asm_expr_operands): Pass opf_not_non_addressable.
1580         (get_expr_operands): Handle opf_[not_]non_addressable.
1581         Handle MEM_REF.  Remove INDIRECT_REF handling.
1582         * tree-vrp.c: (check_array_ref): Handle MEM_REF.
1583         (search_for_addr_array): Likewise.
1584         (check_array_bounds): Likewise.
1585         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
1586         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
1587         (ref_always_accessed_p): Likewise.
1588         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
1589         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
1590         Handle MEM_REF.
1591         * cgraphbuild.c (mark_load): Properly check for NULL result
1592         from get_base_address.
1593         (mark_store): Likewise.
1594         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
1595         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
1596         handling for MEM_REF.
1597         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
1598         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
1599         * builtins.c (stabilize_va_list_loc): Use the function ABI
1600         valist type if we couldn't canonicalize the argument type.
1601         Always dereference with the canonical va-list type.
1602         (maybe_emit_free_warning): Handle MEM_REF.
1603         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
1604         memmove to memcpy.
1605         * builtins.c (fold_builtin_memory_op): Use ref-all types
1606         for all memcpy foldings.
1607         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
1608         (build_outer_var_ref): Likewise.
1609         (scan_omp_1_op): Likewise.
1610         (lower_rec_input_clauses): Likewise.
1611         (lower_lastprivate_clauses): Likewise.
1612         (lower_reduction_clauses): Likewise.
1613         (lower_copyprivate_clauses): Likewise.
1614         (expand_omp_atomic_pipeline): Likewise.
1615         (expand_omp_atomic_mutex): Likewise.
1616         (create_task_copyfn): Likewise.
1617         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
1618         Remove old union trick.  Initialize constant offsets.
1619         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
1620         INDIRECT_REF.  Init base_alias_set properly.
1621         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
1622         (vn_reference_fold_indirect): Adjust for MEM_REFs.
1623         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
1624         for ARRAY_REFs.
1625         (may_insert): Remove.
1626         (visit_reference_op_load): Do not test may_insert.
1627         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
1628         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
1629         a field to store the constant offset this op applies.
1630         (run_scc_vn): Adjust prototype.
1631         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
1632         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
1633         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
1634         bother about volatile qualifiers on pointers.
1635         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
1636         * tree-ssa-loop-ivopts.c
1637         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
1638         (strip_offset_1): Likewise.
1639         (find_interesting_uses_address): Replace INDIRECT_REF handling with
1640         MEM_REF handling.
1641         (get_computation_cost_at): Likewise.
1642         * ipa-pure-const.c (check_op): Handle MEM_REF.
1643         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
1644         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
1645         and constants.
1646         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
1647         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
1648         (eliminate_local_variables_1): Likewise.
1649         (create_call_for_reduction_1): Likewise.
1650         (create_loads_for_reductions): Likewise.
1651         (create_loads_and_stores_for_name): Likewise.
1652         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
1653         (ssa_accessed_in_tree): Handle MEM_REF.
1654         (ssa_accessed_in_assign_rhs): Likewise.
1655         (update_type_size): Likewise.
1656         (analyze_accesses_for_call_stmt): Likewise.
1657         (analyze_accesses_for_assign_stmt): Likewise.
1658         (transform_access_sites): Likewise.
1659         (transform_allocation_sites): Likewise.
1660         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
1661         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
1662         not handle INDIRECT_REF.
1663         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
1664         (cond_store_replacement): Likewise.
1665         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
1666         MEM_REF, no not handle INDIRECT_REFs.
1667         (insert_into_preds_of_block): Properly initialize avail.
1668         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
1669         for ARRAY_REFs.  Properly handle reference lookups that
1670         require a bit re-interpretation.
1671         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
1672         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
1673         (build_ref_for_offset_1): Remove.
1674         (build_ref_for_offset): Build MEM_REFs.
1675         (gate_intra_sra): Disable for now.
1676         (sra_ipa_modify_expr): Handle MEM_REF.
1677         (ipa_early_sra_gate): Disable for now.
1678         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
1679         MEM_REF handling.
1680         (disqualify_base_of_expr): Likewise.
1681         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
1682         MEM_REF handling.
1683         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
1684         Use mem_ref_offset.  Remove bogus folding.
1685         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
1686         (make_fancy_name_1): Add support for MEM_REF.
1687         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
1688         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
1689         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
1690         (compute_complex_ancestor_jump_func): Likewise.
1691         (ipa_analyze_virtual_call_uses): Likewise.
1692         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
1693         INDIRECT_REF folding with more generalized MEM_REF folding.
1694         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
1695         (forward_propagate_addr_into_variable_array_index): Also handle
1696         &ARRAY + I in addition to &ARRAY[0] + I.
1697         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
1698         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
1699         creates assignments with overlap.
1700         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
1701         (get_frame_field): Likewise.
1702         (get_nonlocal_debug_decl): Likewise.
1703         (convert_nonlocal_reference_op): Likewise.
1704         (struct nesting_info): Add mem_refs pointer-set.
1705         (create_nesting_tree): Allocate it.
1706         (convert_local_reference_op): Insert to be folded mem-refs.
1707         (fold_mem_refs): New function.
1708         (finalize_nesting_tree_1): Perform defered folding of mem-refs
1709         (free_nesting_tree): Free the pointer-set.
1710         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
1711         (vectorizable_load): Likewise.
1712         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
1713         (propagate_with_phi): Likewise.
1714         * tree-object-size.c (addr_object_size): Handle MEM_REFs
1715         instead of INDIRECT_REFs.
1716         (compute_object_offset): Handle MEM_REF.
1717         (plus_stmt_object_size): Handle MEM_REF.
1718         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
1719         for &MEM_REF.
1720         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
1721         (symbol_marked_for_renaming): Likewise.
1722         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
1723         (fold-const.o): Add $(TREE_FLOW_H).
1724         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
1725         (find_func_clobbers): Likewise.
1726         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
1727         (decompose_access): Likewise.
1728         (replace_field_acc): Likewise.
1729         (replace_field_access_stmt): Likewise.
1730         (insert_new_var_in_stmt): Likewise.
1731         (get_stmt_accesses): Likewise.
1732         (reorg_structs_drive): Disable.
1733         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
1734         (ix86_canonical_va_list_type): Likewise.
1735
1736 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
1737
1738         PR other/44566
1739         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
1740         * target.def (struct gcc_target): Replace enum reg_class with
1741         reg_class_t in hook argument / return types.
1742         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
1743         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
1744         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
1745         * targhooks.h (default_branch_target_register_class): Likewise.
1746         (default_ira_cover_classes, default_secondary_reload): Likewise.
1747         (default_memory_move_cost, default_register_move_cost): Likewise.
1748         * targhooks.c (default_branch_target_register_class): Likewise.
1749         (default_ira_cover_classes, default_secondary_reload): Likewise.
1750         (default_memory_move_cost, default_register_move_cost): Likewise.
1751         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
1752         * bt-load.c (branch_target_load_optimize): Likewise.
1753         * ira.c (setup_cover_and_important_classes): Likewise.
1754         * ira-costs.c (copy_cost): Likewise.
1755         * reload1.c (emit_input_reload_insns): Likewise.
1756         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
1757         * config/frv/frv.c (frv_secondary_reload): Likewise.
1758         * config/s390/s390.c (s390_secondary_reload): Likewise.
1759         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
1760         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
1761         (ix86_register_move_cost): Likewise.
1762         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
1763         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
1764         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
1765         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
1766         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
1767         (rs6000_ira_cover_classes): Likewise.
1768         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
1769         * config/picochip/picochip-protos.h (picochip_secondary_reload):
1770         Likewise.
1771         * config/pa/pa.c (pa_secondary_reload): Likewise.
1772         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
1773         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
1774         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
1775         * doc/tm.texi: Regenerate.
1776
1777 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
1778
1779         PR bootstrrap/44726
1780         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
1781         use.
1782         (build_alias_set_optimal_p): Likewise.
1783         (build_base_obj_set_for_drs): Likewise.
1784
1785 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
1786
1787         * target.def: Remove comment about licensing problems of function
1788         declarations.
1789
1790         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
1791         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
1792         * doc/tm.texi: Regenerate.
1793
1794         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
1795         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
1796
1797         * target.def (enum_va_list_p): Use DEFHOOK.
1798         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
1799         Rename ptype to ptree.
1800         * doc/tm.texi: Regenerate.
1801
1802         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
1803         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
1804         * doc/tm.texi: Regenerate.
1805
1806         * target.def (memory_move_cost): Use DEFHOOK.
1807         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
1808         Rename regclass AKA class to rclass.
1809         * doc/tm.texi: Regenerate.
1810
1811         * target.def (pragma_parse): Use DEFHOOK.
1812         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
1813         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
1814         * doc/tm.texi: Regenerate.
1815
1816         * target.def (pass_by_reference): Use DEFHOOK.
1817         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
1818         * doc/tm.texi: Regenerate.
1819
1820         * target.def (resolve_overloaded_builtin): Rename params to arglist.
1821         Use DEFHOOK.
1822         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
1823         * doc/tm.texi: Regenerate.
1824
1825         * target.def (return_pops_args): Use DEFHOOK.
1826         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
1827         Rename stack-size to size.
1828         * doc/tm.texi: Regenerate.
1829
1830         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
1831         last-sched_cycle to last_clock, cur_cycle to clock.
1832         * doc/tm.texi.in: Use @hook.
1833         * doc/tm.texi: Regenerate.
1834
1835         * target.def (print_operand, print_operand_address): Update comment.
1836         (print_operand_punct_valid_p): Likewise.
1837
1838 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1839
1840         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
1841         to rtl.h.
1842         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
1843         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
1844         * rtl-error.h: New.
1845         * regrename.c: Do not include toplev.h. Include rtl-error.h.
1846         * rtl-error.c: Likewise.
1847         * reload.c: Likewise.
1848         * recog.c:  Likewise.
1849         * sel-sched.c: Likewise.
1850         * function.c: Likewise.
1851         * reg-stack.c: Likewise.
1852         * cfgrtl.c: Likewise.
1853         * reload1.c: Likewise.
1854         * final.c: Include rtl-error.
1855         * Makefile.in: Adjust dependencies.
1856
1857 2010-06-30  Jan Hubicka  <jh@suse.cz>
1858
1859         PR middle-end/PR44706
1860         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
1861         to return the value.
1862
1863 2010-06-30  Michael Matz  <matz@suse.de>
1864
1865         PR bootstrap/44699
1866         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
1867         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
1868         a gimple reg, attach the original VDEF to the last store in the
1869         sequence.
1870
1871 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
1872
1873         PR other/44034
1874         * config/darwin.c (darwin_override_options): Use renamed
1875         targetm.asm_out.emit_unwind_label.
1876
1877 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
1878
1879         PR tree-optimization/39799
1880         * tree-inline.c (remap_ssa_name): Initialize variable only if
1881         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
1882
1883 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
1884
1885         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
1886
1887 2010-06-30  Richard Guenther  <rguenther@suse.de>
1888
1889         PR target/44722
1890         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
1891         against oscillation with reverse peephole2.
1892
1893 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
1894
1895         PR target/44721
1896         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
1897         Fix last commit.
1898
1899 2010-06-30  Nick Clifton  <nickc@redhat.com>
1900
1901         * config/rx/rx-modes.def: New file.
1902         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
1903         (CC_REGNUM): Define.
1904         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
1905         register.
1906         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
1907         (SELECT_CC_MODE): Define.
1908         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
1909         (reg:CC CC_REG) instead of (cc0).
1910         (attr "cc"): Delete.
1911         (cbranchsi4): Do not split compare and branch here. Instead move
1912         it to...
1913         (cbranchsi4_<code>): ... here.  New patterns.
1914         (cmpsi): Call rx-compare_redundant to find out if it is necessary
1915         to emit the compare instruction.
1916         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
1917         cc_status flags.
1918         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
1919         FIRST_PSEUDO_REGNUM.
1920         (rx_expand_prologue, rx_expand_epilogue): Likewise.
1921         (rx_notice_update_cc): Delete.
1922         (rx_cc_modes_compatible): New function.
1923         (flags_needed_for_conditional): New function.
1924         (flags_from_mode): New function.
1925         (rx_compare_redundant): New function - scans backwards through
1926         insn list to find out if condition flags are already set correctly.
1927         (TARGET_CC_MODES_COMPATIBLE): Define.
1928         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
1929
1930         * config/rx/rx.h (BRANCH_COST): Define.
1931         (REGISTER_MOVE_COST): Define.
1932         * config/rx/predicates (rx_source_operand): Allow all constant types.
1933         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
1934         (tstsi4): New pattern.
1935         * config/rx/rx.c (rx_memory_move_cost): Define.
1936         (TARGET_MEMORY_MOVE_COST): Define.
1937
1938 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1939
1940         * tree.h (block_may_fallthru): Declare here.
1941         * tree-flow.h (block_may_fallthru): Do not declare here.
1942         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
1943         bitmap.h
1944         * Makefile.in (c-typeck.o): Update dependencies.
1945
1946 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
1947
1948         PR debug/44694
1949         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
1950         * cselib.c (cfa_base_preserved_regno): New static variable.
1951         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
1952         of REGNO (cfa_base_preserved_val->locs->loc).
1953         (cselib_preserve_cfa_base_value): Add regno argument, set
1954         cfa_base_preserved_regno to it.
1955         (cselib_invalidate_regno): Allow removal of registers other than
1956         cfa_base_preserved_regno from cfa_base_preserved_val.
1957         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
1958         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
1959         of MEM addresses, if not on LHS.
1960         (reverse_op): Don't add reverse ops for cfa_base_rtx.
1961         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
1962
1963 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
1964
1965         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
1966         static variables.
1967         (peep2_buf_position): New static function.
1968         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
1969         peephole2_optimize): Use it.
1970         (peep2_attempt, peep2_update_life): New static functions, broken out
1971         of peephole2_optimize.
1972         (peep2_fill_buffer): New static function.
1973         (peephole2_optimize): Change the main loop to try to fill the buffer
1974         with the maximum number of insns before matching them against
1975         peepholes.  Use a forward scan.  Remove special case for targets with
1976         conditional execution.
1977         * genrecog.c (change_state): Delete dead code.
1978         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
1979         Rewrite so as not to expect the second insn to have had a peephole
1980         applied yet.
1981
1982 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
1983
1984         * genhooks.c (emit_findices): Cast field precision to int.
1985         (emit_documentation): Likewise.
1986
1987 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
1988
1989         PR tree-optimization/43801
1990         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
1991         if old_decl was DECL_ONE_ONLY.
1992
1993         PR debug/44668
1994         * dwarf2out.c (add_accessibility_attribute): New function.
1995         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
1996         instead of adding DW_AT_accessibility manually.
1997         (gen_enumeration_type_die, gen_struct_or_union_type_die,
1998         gen_typedef_die): Use it.
1999
2000 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
2001
2002         * vmsdbgout.c (full_name): Just output the file name if not native.
2003
2004 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
2005
2006         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
2007         (funcnam_table): New static table.
2008         (funcnum_table): New static table.
2009         (write_rtnbeg): Write value saved in funcnum_table.
2010         (write_rtnend): Write value saved in funcnum_table.
2011         (vmsdbgout_begin_function): Save current function info in
2012         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
2013         (vmsdbgout_finish): Iterate over funcnum_table.
2014
2015 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
2016
2017         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
2018         (vmsdbgout_type_decl): Declare
2019         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
2020         (FUNC_EPILOGUE_LABEL): New macro
2021         (vmsdbgout_begin_epilogue): New function.
2022         (vmsdbgout_type_decl): New function.
2023
2024 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
2025
2026         * vmsdbg.h: Update copyright.
2027
2028 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
2029
2030         * vmsdbg.h (DST_K_TBG): New DST constant.
2031         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
2032         (write_modbeg): Cast module_language to avoid warning.
2033         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
2034
2035 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
2036
2037         PR other/44034
2038         * target.def, doc/tm.texi.in, genhooks.c: New files.
2039         * target.h: Instead of defining individual hook members,
2040         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
2041         include target.def.
2042         * target-def.h: Instead of defining individual hook initializers,
2043         include target-hooks-def.h.
2044         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
2045         targetm.live_on_entry -> targetm.extra_live_on_entry
2046         targetm.sched.md_finish ->targetm.sched.finish
2047         targetm.sched.md_init -> targetm.sched.init
2048         targetm.sched.md_init_global -> targetm.sched.init_global
2049         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
2050         targetm.asm_out.except_table_label ->
2051           targetm.asm_out.emit_except_table_label
2052         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
2053         targetm.target_help -> targetm.help
2054         targetm.vectorize.builtin_support_vector_misalignment ->
2055           targetm.vectorize.support_vector_misalignment
2056         targetm.file_start_app_off -> targetm.asm_file_start_app_off
2057         targetm.file_start_file_directive ->
2058          targetm.asm_file_start_file_directive
2059         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
2060         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
2061         * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
2062         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
2063           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
2064         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
2065           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
2066         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
2067         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
2068         * Makefile.in (TARGET_H): Depend on target.def.
2069         (TARGET_DEF_H): Depend on target-hooks-def.h.
2070         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
2071         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
2072         * doc/tm.texi: Regenerate.
2073
2074         * Makefile.in (s-tm-texi): Remove stray tab / rule.
2075
2076         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
2077         (targetm.sched.init): Likewise.
2078
2079 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
2080
2081         PR bootstrap/44713
2082         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
2083         (function_arg_advance_32): Const-ify TYPE parameter.
2084         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
2085         (ix86_function_arg_advance): Change type of NAMED to bool.
2086         (function_arg_32): Const-ify CUM and TYPE parameters.
2087         (function_arg_64): Likewise.  Change type of NAMED to bool.
2088         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
2089         to bool.
2090         (ix86_function_arg): Change type of NAMED to bool.
2091         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
2092         last argument as a bool.
2093
2094 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
2095
2096         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
2097         (OVERRIDE_OPTIONS): Add note of obsolescence.
2098         Replace references with references to TARGET_OPTION_OVERRIDE.
2099         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
2100          the macro).
2101         * targhooks.c (default_target_option_override): New function.
2102         * targhooks.h (default_target_option_override): Declare.
2103         * target.h (struct gcc_target): Add override member to
2104         target_option member.
2105         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
2106         targetm.target_option.override call.
2107         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
2108         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
2109
2110 2010-06-29  Jan Hubicka  <jh@suse.cz>
2111
2112         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
2113
2114 2010-06-29  Jan Hubicka  <jh@suse.cz>
2115
2116         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
2117         unreachable.
2118         (rebuild_frequencies): New function.
2119         * predict.h (rebuild_frequencies): Declare.
2120         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
2121         entry block and edge reaching new_entry.
2122         (tree_function_versioning): When doing partial cloning, rebuild
2123         frequencies when done.
2124         * passes.c (execute_function_todo): Use rebild_frequencies.
2125
2126 2010-06-29  Richard Guenther  <rguenther@suse.de>
2127
2128         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
2129         * tree-flow.h (enum noalias_state): Remove.
2130         (struct var_ann_d): Remove noalias_state member.
2131
2132 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
2133
2134         PR target/43902
2135         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
2136         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
2137         (maddhidi4): Likewise.
2138
2139         Revert parts of the change for PR25130.
2140         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
2141         MEM_ALIAS_SET.
2142
2143 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
2144
2145         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
2146         targetm.calls.function_incoming_arg, and
2147         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
2148         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
2149         * target.h (struct gcc_target): Add function_arg_advance,
2150         function_arg, and function_incoming_arg fields.
2151         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
2152         (TARGET_FUNCTION_INCOMING_ARG): Define.
2153         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
2154         and TARGET_FUNCTION_INCOMING_ARG.
2155         * targhooks.h (default_function_arg_advance): Declare.
2156         (default_function_arg, default_function_incoming_arg): Declare.
2157         * targhooks.c (default_function_arg_advance): New function.
2158         (default_function_arg, default_function_incoming_arg): New function.
2159         * config/i386/i386.c (function_arg_advance): Rename to...
2160         (ix86_function_arg_advance): ...this.  Make static.
2161         (function_arg): Rename to...
2162         (ix86_function_arg): ...this.  Make static.
2163         (TARGET_FUNCTION_ARG_ADVANCE): Define.
2164         (TARGET_FUNCTION_ARG): Define.
2165         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
2166         (FUNCTION_ARG): Delete.
2167         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
2168         (function_arg): Delete prototype.
2169
2170 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
2171
2172         * reginfo.c (init_reg_sets_1): Adjust comments.
2173         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
2174         * calls.c (prepare_call_address): Likewise.
2175         (emit_call_1): Use targetm.calls.return_pops_args.
2176         (expand_call): Likewise.
2177         * function.c (assign_parms): Likewise.
2178         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
2179         * target.h (struct gcc_target) [struct calls]: Add
2180         return_pops_args field.
2181         * targhooks.h (default_return_pops_args): Declare.
2182         * targhooks.c (default_return_pops_args): Define.
2183         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
2184         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
2185         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
2186         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
2187         documentation.
2188         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
2189         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
2190         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
2191         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
2192         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
2193         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
2194         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
2195         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
2196         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
2197         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
2198         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
2199         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
2200         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
2201         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
2202         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
2203         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
2204         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
2205         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
2206         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
2207         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
2208         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
2209         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
2210         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
2211         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
2212         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
2213         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
2214         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
2215         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
2216         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
2217         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
2218         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
2219         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
2220         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
2221         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
2222         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
2223         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
2224         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
2225         * config/i386/i386.c (ix86_return_pops_args): Make static.
2226         Constify arguments.
2227         (TARGET_RETURN_POPS_ARGS): Define.
2228         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
2229         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
2230         (TARGET_RETURN_POPS_ARGS): Define.
2231         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
2232         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
2233         (TARGET_RETURN_POPS_ARGS): Define.
2234
2235 2010-06-29  Richard Guenther  <rguenther@suse.de>
2236
2237         PR middle-end/44667
2238         * tree-inline.c (initialize_inlined_parameters): Make sure
2239         to remap the inlined parameter variable substitutions types.
2240
2241 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
2242
2243         PR rtl-optimization/44659
2244         * combine.c (make_compound_operation) <SUBREG>: Do not return the
2245         result of force_to_mode if it partially re-expanded the compound.
2246
2247 2010-06-28  Jan Hubicka  <jh@suse.cz>
2248
2249         PR middle-end/44671
2250         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
2251         RESULT_DECL.
2252
2253 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
2254
2255         * double-int.h (force_fit_type_double): Remove declaration.
2256         * double-int.c (force_fit_type_double): Move to tree.c.
2257         * tree.h (force_fit_type_double): Declare.
2258         * tree.h (force_fit_type_double): Moved from double-int.c. Use
2259         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
2260         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
2261         * convert.c (convert_to_pointer): Adjust call to
2262         force_fit_type_double.
2263         * tree-vrp.c (extract_range_from_assert,
2264         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
2265         * fold-const.c: Update comment.
2266         (int_const_binop, fold_convert_const_int_from_int,
2267         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
2268         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
2269         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
2270         round_up_loc): Adjust call to force_fit_type_double.
2271
2272 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
2273
2274         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
2275
2276 2010-06-28  Martin Jambor  <mjambor@suse.cz>
2277
2278         * tree-sra.c (convert_callers): New parameter, change fndecls of
2279         recursive calls.
2280         (modify_function): Pass the old decl to convert_callers.
2281
2282 2010-06-28  Martin Jambor  <mjambor@suse.cz>
2283
2284         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
2285         ipa_check_create_node_params and ipa_initialize_node_params with
2286         checking asserts they are not necessary.
2287
2288 2010-06-28  Jan Hubicka  <jh@suse.cz>
2289
2290         PR tree-optimization/44687
2291         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
2292
2293 2010-06-28  Martin Jambor  <mjambor@suse.cz>
2294
2295         PR c++/44535
2296         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
2297         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
2298         instead of BINFO_BASE_BINFO.
2299
2300 2010-06-28  Michael Matz  <matz@suse.de>
2301
2302         PR middle-end/44592
2303         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
2304         proper VDEF chain for intermediate stores in the sequence.
2305
2306 2010-06-28  Jan Hubicka  <jh@suse.cz>
2307
2308         PR tree-optimization/44357
2309         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
2310         uninlinable functions.
2311
2312 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
2313
2314         * config.gcc (powerpc*-*-*): Handle titan.
2315         * config/rs6000/rs6000.c (titan_cost): New costs.
2316         (rs6000_override_options): Add "titan" to processor_target_table.
2317         Add Titan to branch alignment logic.
2318         Correctly set rs6000_cost for titan.
2319         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
2320         * config/rs6000/titan.md: New file.
2321         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
2322
2323 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
2324
2325         * tree-browser.c (TB_history_stack): Convert to a VEC.
2326         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
2327         (TB_history_prev): Likewise.
2328
2329 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
2330
2331         * vec.h (vec_heap_free): Add parentheses around free.
2332
2333 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
2334
2335         * system.h: Poison GCC_EXCEPT_H for front-end files.
2336
2337         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
2338         langhook.
2339         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
2340         Define to NULL by default.
2341         * except.h: Define GCC_EXCEPT_H.
2342         (doing_eh): Remove prototype.
2343         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
2344         (lang_protect_cleanup_actions): Remove.
2345         * except.c (lang_protect_cleanup_actions): Remove.
2346         (doing_eh): Remove.
2347         (gen_eh_region): Don't check doing_eh here.
2348         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
2349         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
2350         instead of lang_protect_cleanup_actions.
2351         * omp-low.c (maybe_catch_exception): Likewise.
2352         * Makefile.in: Update dependencies.
2353
2354 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
2355
2356         * cgraph.h (struct varpool_node): new used_from_object_file flag.
2357         (struct cgraph_local_info): new used_from_object_file flag.
2358         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
2359         (cgraph_clone_node): initialize used_from_object_file.
2360         (cgraph_create_virtual_clone): initialize used_from_object_file.
2361         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
2362         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
2363         when compiling with -fwhole-program.
2364         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
2365         internal resolver.
2366         * ipa.c (function_and_variable_visibility): Set externally_visible
2367         flag of varpool_node if used_from_object_file flag is set.
2368         (cgraph_externally_visible_p): check used_from_object_file flag.
2369         * doc/invoke.texi (-fwhole-program option): Change description of
2370         externally_visible attribute accordingly.
2371         * doc/extend.texi (externally_visible): Ditto.
2372
2373 2010-06-27  Jan Hubicka  <jh@suse.cz>
2374
2375         * params.def (max-inline-insns-auto): Default to 40.
2376         * doc/invoke.texi (max-inline-insns-auto): Document the change.
2377
2378 2010-06-27  Jan Hubicka  <jh@suse.cz>
2379
2380         PR middle-end/44671
2381         PR middle-end/44686
2382         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
2383         signature change.
2384         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
2385         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
2386
2387 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
2388
2389         * target.h (struct gcc_target): Add register_move_cost field.
2390         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
2391         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
2392         * targhooks.c (default_register_move_cost): New function.
2393         * targhooks.h (default_register_move_cost): Declare function.
2394         * defaults.h (REGISTER_MOVE_COST): Delete.
2395         * ira-int.h (ira_register_move_cost): Update comment.
2396         * ira.c: (ira_register_move_cost): Update comment.
2397         * reload.h (register_move_cost): Declare.
2398         * reginfo.c (register_move_cost): New function.
2399         (move_cost): Update comment.
2400         (init_move_cost, memory_move_secondary_cost): Replace
2401         REGISTER_MOVE_COST with register_move_cost.
2402         * postreload.c (reload_cse_simplify_set): (Ditto.).
2403         * reload.c (find_valid_class, find_reloads): (Ditto.).
2404         * reload1.c (choose_reload_regs): (Ditto.).
2405         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
2406         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
2407         * doc/md.texi (can_create_pseudo_p): Update documentation.
2408
2409         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
2410         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
2411         * config/i386/i386.h (ix86_memory_move_cost): Make static.
2412         (TARGET_MEMORY_MOVE_COST): Define.
2413
2414         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
2415         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
2416         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
2417         (TARGET_MEMORY_MOVE_COST): Define.
2418
2419 2010-06-27  Richard Guenther  <rguenther@suse.de>
2420
2421         PR tree-optimization/44683
2422         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
2423         false edge from the inverted condition.
2424
2425 2010-06-27  Richard Guenther  <rguenther@suse.de>
2426
2427         PR middle-end/44684
2428         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
2429         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
2430         for register LHS.  Or non-store assignments.
2431
2432 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
2433
2434         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
2435         (sparc_emit_set_const64): Likewise.  Remove disabled code.
2436         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
2437         (sparc_emit_set_const64): Likewise.
2438
2439 2010-06-26  Catherine Moore  <clm@codesourcery.com>
2440
2441         * config/mips/mips.md (alu_type): New attribute.
2442         (type): Infer type from alu_type.
2443         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
2444         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
2445         *subsi3_extended, negsi2, negdi2, *low<mode>,
2446         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
2447         xor<mode>3, *nor<mode>3,
2448         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
2449         *zero_extendhi_truncqi):  Set alu_type instead of type.
2450
2451 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
2452
2453         * config/alpha/alpha.c (alpha_need_linkage): Adjust
2454         splay_tree_new_ggc call.
2455         (alpha_use_linkage): Likewise.
2456
2457 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
2458
2459         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
2460         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
2461         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
2462         (static_specs): Remove switches_need_spaces.
2463         (process_command, do_self_spec): Hardcode handling "-o" instead of
2464         checking switches_need_spaces.
2465         * system.h (SWITCHES_NEED_SPACES): Poison.
2466
2467 2010-06-26  Richard Guenther  <rguenther@suse.de>
2468
2469         PR tree-optimization/44393
2470         * tree-loop-distribution.c (generate_loops_for_partition): Fix
2471         stmt removal and VOP renaming.
2472         (generate_memset_zero): Remove redundant stmt updating.
2473         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
2474         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
2475
2476 2010-06-26  Jan Hubicka  <jh@suse.cz>
2477
2478         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
2479         edges comming from header are equivalent.
2480         (visit_bb): Handle PHIs correctly.
2481         * tree-inline.c (copy_phis_for_bb): Be able to copy
2482         PHI from entry edge.
2483         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
2484
2485 2010-06-26  Richard Guenther  <rguenther@suse.de>
2486
2487         PR middle-end/44674
2488         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
2489         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
2490
2491 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
2492
2493         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
2494         add_infile, alloc_switch): New.
2495         (process_command): Remove variable lang_n_infiles.  Process
2496         options in a single pass.  Use new functions for allocating
2497         infiles and switches arrays.  Properly skip operands of
2498         -Xpreprocessor and -Xassembler.
2499
2500 2010-06-26  Jan Hubicka  <jh@suse.cz>
2501
2502         PR middle-end/44671
2503         * cgraphunit.c (cgraph_function_versioning): Remove wrong
2504         cgraph_make_decl_local call; fix typo copying RTL data.
2505
2506 2010-06-25  DJ Delorie  <dj@redhat.com>
2507
2508         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
2509         (m32c_output_aligned_common): Likewise.
2510         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
2511         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
2512         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
2513         (m32c_register_pragmas): Register it.
2514         * config/m32c/m32c.c (m32c_get_pragma_address): New.
2515         (m32c_insert_attributes): Set #pragma address decls volatile.
2516         (pragma_entry_eq): New.
2517         (pragma_entry_hash): New.
2518         (m32c_note_pragma_address): New.
2519         (m32c_get_pragma_address): New.
2520         (m32c_output_aligned_common): New.
2521         * doc/extend.texi: Document the new pragma.
2522
2523         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
2524         also.
2525         * config/m32c/predicates.md (m32c_any_operand): Check the code
2526         instead of memory_operand so as to allow matching volatile MEMs.
2527         (m32c_nonimmediate_operand): Likewise.
2528         (mra_operand): Allow volatiles.
2529
2530 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
2531
2532         PR debug/44610
2533         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
2534         address if the offset is unknown.
2535
2536 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
2537
2538         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
2539         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
2540         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
2541         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
2542         to ia64_start_function. Invoke it.
2543         * config/ia64/ia64.c (ia64_start_function): Call new function
2544         dwarf2out_vms_debug_main_pointer.
2545
2546 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
2547
2548         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
2549         statements computing the true predicate.
2550
2551 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
2552
2553         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
2554         to boolean_true_node.
2555         (reset_bb_predicate): New.
2556         (predicate_bbs): Call reset_bb_predicate.
2557
2558 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
2559
2560         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
2561         (tree_if_conversion): Returns true when something has been changed.
2562         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
2563         changed something.
2564
2565 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
2566
2567         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
2568         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
2569         * tree-if-conv.c: Include dbgcnt.h.
2570         (tree_if_conversion): Use if_conversion_tree to count the number of
2571         if-convertible loops.
2572
2573 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
2574
2575         * common.opt (fprefetch-loop-arrays): Re-define
2576         -fprefetch-loop-arrays as a tri-state option with the initial
2577         value of -1.
2578         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
2579         pass only when flag_prefetch_loop_arrays > 0.
2580         * toplev.c (process_options): Note that, with tri-states,
2581         flag_prefetch_loop_arrays>0 means prefetching is enabled.
2582         * config/i386/i386.c (override_options): Enable prefetching at -O3
2583         for a set of CPUs that sw prefetching is helpful.
2584         (software_prefetching_beneficial_p): New.  Return TRUE if software
2585         prefetching is beneficial for the given CPU.
2586
2587 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
2588
2589         PR rtl-optimization/44326
2590         * implicit-zee.c (find_removable_zero_extends): Replace
2591         INSN_P with NONDEBUG_INSN_P.
2592
2593 2010-06-25  Martin Jambor  <mjambor@suse.cz>
2594
2595         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
2596         (struct ipa_node_params): Removed the modification_analysis_done flag.
2597         (ipa_is_param_modified): Removed.
2598         (ipa_analyze_node): Declare.
2599         (ipa_compute_jump_functions): Remove declaration.
2600         (ipa_count_arguments): Likewise.
2601         (ipa_detect_param_modifications): Likewise.
2602         (ipa_analyze_params_uses): Likewise.
2603         * ipa-prop.c (struct param_analysis_info): New type.
2604         (visit_store_addr_for_mod_analysis): Removed.
2605         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
2606         moved down in the file.
2607         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
2608         (ipa_count_arguments): Made static.
2609         (mark_modified): New function.
2610         (is_parm_modified_before_call): New function.
2611         (compute_pass_through_member_ptrs): New parameter parms_info, call
2612         is_parm_modified_before_call instead of ipa_is_param_modified.
2613         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
2614         it to compute_pass_through_member_ptrs.
2615         (ipa_compute_jump_functions): New parameter parms_info, pass it to
2616         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
2617         on the callee if it is analyzed.  Made static.
2618         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
2619         is_parm_modified_before_call instead of ipa_is_param_modified.
2620         (ipa_analyze_call_uses): New parameter parms_info, pass it to
2621         ipa_analyze_indirect_call_uses.
2622         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
2623         ipa_analyze_call_uses.
2624         (ipa_analyze_params_uses): New parameter parms_info, pass it to
2625         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
2626         (ipa_analyze_node): New function.
2627         (ipa_print_node_params): Do not dump the modified flag.
2628         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
2629         it.  Do not stream the modified parameter flag.
2630         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
2631         it.  Do not stream the modified parameter flag.
2632         * ipa-cp.c (ipcp_analyze_node): Removed.
2633         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
2634         with only a call to ipa_analyze_node.
2635         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
2636         node with only a call to ipa_analyze_node.
2637
2638 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2639
2640         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
2641
2642 2010-06-25  Jan Hubicka  <jh@suse.cz>
2643
2644         * tree-pass.h (pass_split_functions): Declare.
2645         * opts.c (decode_options): Enable function splitting at -O2
2646         * timevar.def (TV_IPA_FNSPLIT): New macro.
2647         * ipa-split.c: New file.
2648         * common.opt (-fpartial-inlining): New flag.
2649         * Makefile.in (ipa-split.o): New object file.
2650         * passes.c (init_optimization_passes): Add ipa-split.
2651         * params.def (partial-inlining-entry-probability): New parameters.
2652         * doc/invoke.texi (-fpartial-inlining): New.
2653
2654 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2655
2656         PR 44665
2657         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
2658         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
2659         (gimplify_expr): Likewise.
2660
2661 2010-06-25  Martin Jambor  <mjambor@suse.cz>
2662
2663         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
2664         statements instead of bailing out on them.
2665         (ipa_analyze_indirect_call_uses): Do not require that loads from the
2666         parameter are in the same BB as the condition.  Update comments.
2667
2668 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
2669
2670         PR middle-end/43866
2671         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
2672         true or always false, return NULL_TREE.
2673         (tree_unswitch_single_loop): Optimize conditions even when reaching
2674         max-unswitch-level parameter.  If num > 0, optimize first all conditions
2675         using entry checks, then do still reachable block discovery and consider
2676         only conditions in still reachable basic blocks in the loop.
2677
2678         PR tree-optimization/44539
2679         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
2680         the call doesn't have LHS, but has VDEF.
2681
2682 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
2683
2684         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
2685         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
2686         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
2687         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
2688         * system.h (MODIFY_TARGET_NAME): Poison.
2689
2690 2010-06-25  Alan Modra  <amodra@gmail.com>
2691
2692         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
2693         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
2694         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
2695         CMODEL_LARGE as default.
2696         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
2697         (offsettable_ok_by_alignment): Delete.
2698         (rs6000_emit_move): Remove mcmodel=medium optimization.
2699
2700 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
2701
2702         With large parts from Jim Wilson:
2703         PR target/43902
2704         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
2705         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
2706         * optabs.c (optab_for_tree_code): Likewise.
2707         (expand_widen_pattern_expr): Likewise.
2708         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
2709         out of execute_optimize_widening_mul.
2710         (convert_plusminus_to_widen): New function.
2711         (execute_optimize_widening_mul): Use the two new functions.
2712         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
2713         Remove code to generate widening multiply-accumulate.  Add support
2714         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
2715         * gimple-pretty-print.c (dump_ternary_rhs): New function.
2716         (dump_gimple_assign): Call it when appropriate.
2717         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
2718         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
2719         (expand_gimple_stmt_1): Likewise.
2720         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
2721         WIDEN_MULT_MINUS_EXPR.
2722         * tree-ssa-operands.c (get_expr_operands): Likewise.
2723         * tree-inline.c (estimate_operator_cost): Likewise.
2724         * gimple.c (extract_ops_from_tree_1): Renamed from
2725         extract_ops_from_tree.  Add new arg for a third operand; fill it.
2726         (gimple_build_assign_stat): Support operations with three operands.
2727         (gimple_build_assign_with_ops_stat): Likewise.
2728         (gimple_assign_set_rhs_from_tree): Likewise.
2729         (gimple_assign_set_rhs_with_ops_1): Renamed from
2730         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
2731         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
2732         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
2733         WIDEN_MULT_MINUS_EXPR.
2734         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
2735         (extract_ops_from_tree_1): Adjust declaration.
2736         (gimple_assign_set_rhs_with_ops_1): Likewise.
2737         (gimple_build_assign_with_ops): Pass NULL for last operand.
2738         (gimple_build_assign_with_ops3): New macro.
2739         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
2740         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
2741         functions.
2742         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
2743         (verify_gimple_assign): Call it.
2744         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
2745         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
2746         functions for dealing with three-operand statements.
2747         * tree.c (commutative_ternary_tree_code): New function.
2748         * tree.h (commutative_ternary_tree_code): Declare it.
2749         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
2750         ternary statements.
2751         (gimple_assign_nonzero_warnv_p): Likewise.
2752         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
2753         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
2754         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
2755         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
2756         (struct hashtable_expr): New member ternary in the union.
2757         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
2758         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
2759         (iterative_hash_hashable_expr): Likewise.
2760         (print_expr_hash_elt): Handle EXPR_TERNARY.
2761         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
2762         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
2763         statements.  Handle GIMPLE_TERNARY_RHS.
2764
2765 2010-06-25  Jan Hubicka  <jh@suse.cz>
2766
2767         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
2768
2769 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
2770
2771         PR c/44517
2772         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
2773         parameters are not good.
2774         (c_parser_parameter_declaration): Error unknown type name if the type
2775         name can't start declaration specifiers.
2776
2777 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
2778
2779         * gcc.c (translate_options): Don't mention +e in comment.
2780         (process_command): Don't handle +e specially.
2781
2782 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
2783
2784         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
2785
2786         * ira-build.c (merge_hard_reg_conflicts): New function.
2787         (create_cap_allocno, copy_info_to_removed_store_destinations,
2788         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
2789         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
2790         (remove_unnecessary_allocnos, remove_low_level_allocnos)
2791         copy_nifo_to_removed_store_destination): Use them.
2792         * ira-lives.c (make_hard_regno_born): New function, split out of
2793         make_regno_born.
2794         (make_allocno_born): Likewise.
2795         (make_hard_regno_dead): New function, split out of make_regno_dead.
2796         (make_allocno_dead): Likewise.
2797         (inc_register_pressure): New function, split out of set_allocno_live.
2798         (dec_register_pressure): New function, split out of clear_allocno_live.
2799         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
2800         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
2801         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
2802         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
2803         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
2804         mark_pseudo_regno_live.
2805         (process_bb_node_lives): Use mark_pseudo_regno_live,
2806         make_hard_regno_born and make_allocno_dead.
2807         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
2808         set_allocno_live, clear_allocno_live): Delete functions.
2809
2810         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
2811         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
2812         functions.
2813         (ira_flattening): Use ira_parent_allocno.
2814         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
2815         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
2816
2817         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
2818         statement.
2819
2820         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
2821         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
2822         minmax_set_iter_cond, minmax_set_iter_next,
2823         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
2824         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
2825         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
2826         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
2827         uses changed.
2828
2829         * ira-int.h (struct live_range, live_range_t): Renamed from struct
2830         ira_allocno_live_range and allocno_live_range_t; all uses changed.
2831         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
2832         All uses changed.
2833
2834 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
2835
2836         * thumb2.md (thumb2_tlobits_cbranch): Delete.
2837         (peephole2 to convert zero_extract/compare of single bit to
2838          lshift/compare): New.
2839
2840 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
2841
2842         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
2843         recursive call and call to 'int_const_binop'.
2844         (build_range_check, fold_cond_expr_with_comparison, unextend,
2845         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
2846         multiple_of_p): Adjust call to const_binop.
2847
2848 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
2849
2850         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
2851         determine size of XFmode operand.
2852         (XFmode extended DFmode push splitter): Ditto.
2853         (XFmode extended SFmode push splitter): Ditto.
2854
2855 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
2856
2857         PR target/44588
2858         * config/i386/i386.md (extract_code): New.
2859         (<u>divmodqi4): Likewise.
2860         (divmodhiqi3): Likewise.
2861         (udivmodhiqi3): Likewise.
2862         (<u>divqi3): Remvoved.
2863
2864 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
2865
2866         PR middle-end/44492
2867         * recog.h (struct recog_data): Add is_asm field.
2868         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
2869         present in constraints of inline-asm operand and memory operand
2870         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
2871         (extract_insn): Initialize recog_data.is_asm.
2872         * doc/md.texi (Constraints): Document operand side-effect rules.
2873
2874 2010-06-24  Andi Kleen  <ak@linux.intel.com>
2875
2876         * c-parser.c (c_parser_conditional_expression): Call
2877         warn_for_omitted_condop.
2878         * doc/invoke.texi: Document omitted condop warning.
2879
2880 2010-06-24  Nick Clifton<nickc@redhat.com>
2881
2882         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
2883         insn in the sequence is a jump insn before setting its label.
2884
2885 2010-06-24  Alan Modra  <amodra@gmail.com>
2886
2887         * collect2.c (main): Match exactly --version and --help.
2888
2889 2010-06-24  DJ Delorie  <dj@redhat.com>
2890
2891         * config/m32c/m32c-pragma.c: Don't include rtl.h.
2892
2893 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
2894
2895         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
2896         using X87MODEF mode iterator.
2897         (pushsf splitter): Macroize splitter using P mode iterator.
2898         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
2899         mode iterator.
2900
2901         (*movxf_internal): Rename from *movxf_integer.
2902         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
2903         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
2904         (*movdf_internal): Rename from *movdf_integer.
2905         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
2906         (*movsf_internal): Rename from *movdf_1.
2907
2908 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
2909
2910         * coretypes.h: (gimple_seq_node_d, gimple_seq_node)
2911         (const_gimple_seq_node): Removed typedefs.
2912
2913         * gimple.h: (gimple_seq_node_d, gimple_seq_node)
2914         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
2915
2916 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
2917
2918         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
2919         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
2920         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
2921         and CODE_FOR_vec_extract_lo_v4df.
2922
2923         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
2924         Changed to define_insn_and_split.
2925         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
2926         (vec_extract_lo_v16hi): Likewise.
2927         (vec_extract_lo_v32qi): Likewise.
2928         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
2929         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
2930
2931 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
2932
2933         PR target/44640
2934         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
2935         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
2936         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
2937         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
2938         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
2939
2940         PR target/44640
2941         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
2942
2943         PR other/44644
2944         * df-core.c (struct df): Rename to df_d.
2945         * df.h (struct df): Likewise.
2946         * dse.h (struct df): Remove forward declaration.
2947         * recog.h (struct insn_data): Rename to:
2948         (struct_insn_data_d).  Adjusted all users.
2949
2950 2010-06-23  Arnaud Charlet  <charlet@adacore.com
2951
2952         PR ada/22220
2953         * doc/install.texi: Update requirements to build GNAT.
2954
2955 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
2956
2957         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
2958         enum type.
2959         (m68k_sched_attr_opx_type): Remove unreachable return.
2960         (m68k_sched_attr_opy_type): Likewise.
2961         (m68k_sched_attr_size): Likewise.
2962         (sched_get_opxy_mem_type): Likewise.
2963         (m68k_sched_attr_op_mem): Likewise.
2964
2965 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
2966
2967         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
2968         new statement and adjust VDEF only if necessary.  Remove superfluous
2969         call to maybe_clean_or_replace_eh_stmt.
2970         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
2971         copy the flags.
2972         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
2973         * tree-inline.c (copy_bb): ...and not there.
2974
2975 2010-06-22  Cary Coutant  <ccoutant@google.com>
2976
2977         * dwarf2out.c (is_nested_in_subprogram): New function.
2978         (should_move_die_to_comdat): Use it.
2979         (copy_ancestor_tree): Don't mark DIEs here.
2980         (copy_decls_walk): Start walk from root of newly-added tree;
2981         mark DIEs here instead.
2982
2983 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
2984
2985         * config/i386/i386.md (unit): Also check sseishft1.
2986
2987 2010-06-22  Jan Hubicka  <jh@suse.cz>
2988
2989         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
2990         enabled.
2991
2992 2010-06-22  Jan Hubicka  <jh@suse.cz>
2993
2994         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
2995         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
2996         Return true if something changed.
2997         * df.h (df_confluence_function_n): Return bool.
2998         * df-core.c (df_worklist_propagate_forward,
2999         df_worklist_propagate_backward): Track changes and ages.
3000         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
3001         track ages.
3002         * dse.c (dse_confluence_n): Return always true.
3003
3004 2010-06-22  Jan Hubicka  <jh@suse.cz>
3005
3006         * bitmap.c (bitmap_clear_bit): Micro optimize.
3007
3008 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
3009
3010         * config/i386/i386.md (SWI1248x): New mode iterator.
3011         (SWI48x): Ditto.
3012         (SWI12): Ditto.
3013         (SWI24): Ditto.
3014
3015         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
3016         SWI1248x mode iterator.
3017         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
3018         using SWI124 mode iterator.
3019         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
3020         mode iterator.
3021         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
3022         *pushdi2_prologue_rex64 using P mode iterator.
3023         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
3024         using SWI48 mode iterator.
3025         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
3026         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
3027         using SWI1248x mode iterator.
3028         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
3029         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
3030         SWI48 mode iterator.
3031         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
3032         iterator.
3033         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
3034         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
3035         SWI12 mode iterator.
3036         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
3037         SWI12 mode iterator.
3038         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
3039         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
3040         SWI24 mode iterator.
3041         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
3042         SWI48 mode iterator.
3043         (mov<mode>_insn_1): New expander.
3044         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
3045         using SWI48x mode iterator.
3046
3047         (*movoi_internal_avx): Rename from *movoi_internal.
3048         (*movti_internal_rex64): Rename from *movti_rex64.
3049         (*movti_internal_sse): Rename from *movti_sse.
3050         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
3051         (*movdi_internal): Rename from *movdi_2.
3052         (*movsi_internal): Rename from *movsi_1.
3053         (*movhi_internal): Rename from *movhi_1.
3054         (*movqi_internal): Rename from *movqi_1.
3055
3056         (insv): Update the call to gen_movsi_insv_1 for rename.
3057         * config/i386/i386.c (promote_duplicated_reg): Ditto.
3058
3059 2010-06-22  Jan Hubicka  <jh@suse.cz>
3060
3061         * passes.c (execute_function_todo): Move call of statistics_fini_pass
3062         to ...
3063         (execute_todo) ... this one.
3064
3065 2010-06-22  Alan Modra  <amodra@gmail.com>
3066
3067         PR target/44364
3068         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3069         * caller-save.c (insert_restore, insert_save): Use non-validate
3070         form of adjust_address.
3071
3072 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3073
3074         PR target/39690
3075         * config/pa/pa.c (override_options): Disable
3076         -freorder-blocks-and-partition.
3077
3078 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
3079
3080         PR target/44615
3081         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
3082
3083         * config/i386/i386.md (type): Add sseishft1
3084
3085         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
3086         (ppro_insn_load): Likewise.
3087         (ppro_insn_store): Likewise.
3088         (ppro_insn_both): Likewise.
3089
3090         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
3091         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
3092         for type.
3093         (*vec_extractv2di_1_avx): Likewise.
3094         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
3095         type.  Remove atom_unit.
3096         (*vec_extractv2di_1_sse2): Likewise.
3097
3098 2010-06-21  DJ Delorie  <dj@redhat.com>
3099
3100         * diagnostic.h (diagnostic_classification_change_t): New.
3101         (diagnostic_context): Add history and push/pop list.
3102         (diagnostic_push_diagnostics): Declare.
3103         (diagnostic_pop_diagnostics): Declare.
3104         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
3105         from pragmas in a history chain instead of the global table.
3106         (diagnostic_push_diagnostics): New.
3107         (diagnostic_pop_diagnostics): New.
3108         (diagnostic_report_diagnostic): Scan history chain to find state
3109         of diagnostics as of the diagnostic location.
3110         * opts.c (set_option): Pass UNKNOWN_LOCATION to
3111         diagnostic_classify_diagnostic.
3112         (enable_warning_as_error): Likewise.
3113         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
3114         use in the history chain.
3115         * doc/extend.texi: Document pragma GCC diagnostic changes.
3116
3117 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
3118
3119         * dwarf2out.c (add_linkage_name): New function.  Don't add
3120         anything to DW_TAG_member DIEs.
3121         (add_name_and_src_coords_attributes): Use it.
3122         (gen_variable_die): Call it for C++ static data members if
3123         specification is DW_TAG_member.
3124
3125         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
3126         C++ char16_t and char32_t.
3127
3128         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
3129         * genattrtab.c: Include vecprim.h.
3130         (cached_attrs, cached_attr_count, attrs_seen_once,
3131         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
3132         attrs_cached_after): New variables.
3133         (find_attrs_to_cache): New function.
3134         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
3135         (write_test_expr): Add attrs_cached argument, return it too,
3136         attempt to cache non-const attributes used more than once in
3137         a single case handling.
3138         (write_attr_get): Use find_attrs_to_cache, for caching candidates
3139         emit cached_* variables.  Adjust write_attr_set callers.
3140         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
3141         to find attributes that should be cached in this block.  Adjust
3142         write_test_expr callers.
3143         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
3144         callers.
3145         (make_automaton_attrs): Adjust write_test_expr caller.
3146
3147         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
3148         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
3149         (make_automaton_attrs): If find_tune_attr returns non-NULL,
3150         write separate internal_dfa_insn_code_* and insn_default_latency_*
3151         functions for each attribute's value and emit init_sched_attrs
3152         function and function pointers.
3153         * genattr.c (const_attrs, reservations): New variables.
3154         (gen_attr): Add const attributes to const_attrs vector.
3155         (check_tune_attr, find_tune_attr): New functions.
3156         (main): Add reservations to reservations vector.  If find_tune_attr
3157         returns true, add prototype for init_sched_attrs and make
3158         internal_dfa_insn_code and insn_default_latency function pointers,
3159         otherwise define init_sched_attrs as dummy macro.
3160         * cfgexpand.c: Include insn-attr.h.
3161         (gimple_expand_cfg): Call init_sched_attrs.
3162
3163         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
3164
3165         PR target/44575
3166         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
3167         va_arg from a set of register save slots into a temporary,
3168         if the container is bigger than type size, do the copying
3169         using smaller mode or using memcpy.
3170
3171         PR bootstrap/44426
3172         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
3173         prototype.
3174         (sel_print_to_dot): Remove macro.
3175         (sel_print): Likewise.  New prototype.
3176         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
3177         (sel_print): New function.
3178
3179 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3180
3181         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
3182         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
3183
3184 2010-06-21  Nick Clifton  <nickc@redhat.com>
3185
3186         * config/rx/rx.h (PTRDIFF_TYPE): Define.
3187         (SMALL_REGISTER_CLASS): Define (to zero).
3188         (PRINT_OPERAND): Delete.
3189         (PRINT_OPERAND_ADDRESS): Delete.
3190         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
3191         (rx_print_operand_address): Delete prototype.
3192         * config/rx/rx.c (rx_print_operand): Make static.
3193         Allow %H and %L to handle CONST_DOUBLEs.
3194         (rx_print_operand_address): Make static.
3195         (rx_gen_move_template): Rename local variable 'template' to
3196         out_template.
3197         (rx_function_arg): Do not pass unknown sized objects in registers.
3198         (TARGET_PRINT_OPERAND): Define.
3199         (TARGET_PRINT_OPERAND_ADDRESS): Define.
3200
3201 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
3202
3203         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
3204
3205 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
3206
3207         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
3208         stack-alignment for simple leaf-functions.
3209
3210 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
3211
3212         * doc/install.texi: Document bootstrap-lto.
3213
3214 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
3215
3216         PR debug/44248
3217         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
3218         (input_function): Drop them here, if VTA is disabled.
3219
3220 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
3221
3222         PR target/44546
3223         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
3224         New predicate.
3225         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
3226         ix86_swapped_fp_comparsion_operator instead of
3227         ix86_fp_comparison_operator.
3228
3229         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
3230         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
3231         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
3232         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
3233         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
3234         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
3235
3236 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
3237
3238         PR other/32998
3239         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
3240         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
3241         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
3242         (decode_cmdline_option): Update for this return value.  Set
3243         orig_option_with_args_text field.  Set arg field for unknown
3244         options.  Make static.
3245         (decode_cmdline_options_to_array): New.
3246         (prune_options): Update handling of find_opt return value.
3247         * opts.c (read_cmdline_option): Take decoded option.  Return void.
3248         (read_cmdline_options): Take decoded options.
3249         (decode_options): Add parameters for decoded options.  Use
3250         decode_cmdline_options_to_array.  Use decoded options for -O
3251         scan.  Use integral_argument for -O parameters.  Update call to
3252         read_cmdline_options.
3253         (enable_warning_as_error): Update handling of find_opt return value.
3254         * opts.h: Update comment on unknown options.
3255         (struct cl_decoded_option): Update comments on opt_index and arg.
3256         Add orig_option_with_args_text.
3257         (decode_cmdline_option): Remove.
3258         (decode_cmdline_options_to_array): Declare.
3259         (decode_options): Update prototype.
3260         * toplev.c (save_argv): Remove.
3261         (save_decoded_options, save_decoded_options_count): New.
3262         (read_integral_parameter): Remove.
3263         (print_switch_values): Use decoded options.
3264         (toplev_main): Don't set save_argv.  Update call to decode_options.
3265         * toplev.h (read_integral_parameter): Remove.
3266         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
3267
3268 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
3269
3270         PR target/44072
3271         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
3272         immediate.
3273         * constraints.md (Pw, Px): New constraints.
3274         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
3275
3276 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
3277
3278         * config/i386/sse.md (fma4modesuffixf4): Removed.
3279         (ssemodesuffixf2s): Likewise.
3280         (ssemodesuffixf4): Likewise.
3281         (ssemodesuffixf2c): Likewise.
3282         (ssescalarmodesuffix2s): Likewise.
3283         (avxmodesuffixf2c): Likewise.
3284         (ssemodesuffix): New.
3285         (ssescalarmodesuffix): Likewise.
3286         Update patterns with ssemodesuffix and ssescalarmodesuffix.
3287
3288 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
3289
3290         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
3291
3292 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
3293
3294         * stor-layout.c (debug_rli): Remove unused local variables.
3295
3296 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
3297
3298         PR rtl-optimization/40900
3299         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
3300         original expression for later reuse.
3301         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
3302         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
3303
3304 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
3305
3306         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
3307         double_int_fits_in_uhwi_p): Implement as static inline.
3308         (double_int_xor): New inline function.
3309         (double_int_lrotate, double_int_rrotate, double_int_max,
3310         double_int_umax, double_int_smax, double_int_min, double_int_umin,
3311         double_int_smin): Declare.
3312         (lrotate_double, rrotate_double): Remove declaration.
3313         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
3314         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
3315         (double_int_lrotate, double_int_rrotate, double_int_max,
3316         double_int_umax, double_int_smax, double_int_min, double_int_umin,
3317         double_int_smin): New function.
3318         * fold-const.c (int_const_binop): Clean up, use double_int_*
3319         functions.
3320         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
3321         double_int_* and immed_double_int_const functions.
3322
3323 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
3324
3325         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
3326         * function.c (types_used_by_cur_var_decl): Likewise.
3327         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
3328
3329 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
3330
3331         * tree.h (record_layout_info): Change type of pending_statics field
3332         to a VEC.
3333         * stor-layout.c (start_record_layout): Store NULL into
3334         pending_statics.
3335         (debug_rli): Call debug_vec_tree instead of debug_tree.
3336         (place_field): Likewise.
3337         (finish_record_layout): Likewise.
3338
3339 2010-06-18  Alan Modra  <amodra@gmail.com>
3340
3341         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
3342
3343 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3344
3345         PR target/43740
3346         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
3347         for SET source operand from SET destination operand.
3348
3349 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
3350
3351         PR rtl-optimization/39871
3352         * reload1.c (init_eliminable_invariants): For flag_pic, disable
3353         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
3354         (function_invariant_p): Rule out a plus of frame or arg pointer with
3355         a SYMBOL_REF.
3356         * ira.c (find_reg_equiv_invariant_const): Likewise.
3357
3358 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
3359
3360         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
3361         print_operand_address and puts to output the operand for CONST.
3362
3363 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
3364
3365         PR debug/44572
3366         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
3367         hook.
3368
3369 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
3370
3371         * v850-protos.h (print_operand): Delete.
3372         (print_operand_address): Delete.
3373         * v850.h (PRINT_OPERAND): Delete.
3374         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3375         (PRINT_OPERAND_ADDRESS): Delete.
3376         * v850.c (print_operand_address): Rename to...
3377         (v850_print_operand_address): ...this.  Make static. Call
3378         v850_print_operand.
3379         (print_operand): Rename to...
3380         (v850_print_operand): ...this.  Make static.  Call
3381         v850_print_operand_address.
3382         (v850_print_operand_punct_valid_p): New function.
3383         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3384         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3385
3386 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
3387
3388         * config/sh/sh-protos.h (print_operand): Delete.
3389         (print_operand_address): Delete.
3390         * config/sh/sh.h (PRINT_OPERAND): Delete.
3391         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3392         (PRINT_OPERAND_ADDRESS): Delete.
3393         * config/sh/sh.c (sh_print_operand_address): Make static.
3394         (sh_print_operand): Make static.  Call sh_print_operand_address
3395         and sh_print_operand.
3396         (sh_print_operand_punct_valid_p): New function.
3397         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3398         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3399
3400 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
3401
3402         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
3403         (mcore_print_operand_address): Delete.
3404         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
3405         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3406         (PRINT_OPERAND_ADDRESS): Delete.
3407         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
3408         (mcore_print_operand): Make static.
3409         (mcore_print_operand_punct_valid_p): New function.
3410         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
3411         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3412
3413 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
3414
3415         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
3416         (print_operand_address): Delete.
3417         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
3418         (PRINT_OPERAND_ADDRESS): Delete.
3419         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
3420         static.
3421         (m68hc11_print_operand): Make static.
3422         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3423
3424 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
3425
3426         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
3427         (m32r_print_operand_address): Delete.
3428         * config/m32r/m32r.h (m32r_punct_chars): Delete.
3429         (PRINT_OPERAND): Delete.
3430         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3431         (PRINT_OPERAND_ADDRESS): Delete.
3432         * config/m32r/m32r.c (m32r_punct_chars): Make static.
3433         (m32r_print_operand_address): Make static.
3434         (m32r_print_operand): Make static.
3435         (m32r_print_operand_punct_valid_p): New function.
3436         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3437         (TARGET_PRINT_OPERAND_ADDRESS): Define.
3438
3439 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
3440
3441         * config/iq2000/iq2000-protos.h (print_operand): Delete.
3442         (print_operand_address): Delete.
3443         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
3444         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3445         (PRINT_OPERAND_ADDRESS): Delete.
3446         (iq2000_print_operand_punct): Delete.
3447         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
3448         (iq2000_print_operand_address): Make static.
3449         (iq2000_print_operand): Make static.
3450         (iq2000_print_operand_punct_valid_p): New function.
3451         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3452         (TARGET_PRINT_OPERAND_ADDRESS): Define.
3453
3454 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
3455
3456         * config/frv/frv-protos.h (frv_print_operand): Delete.
3457         (frv_print_operand_address): Delete.
3458         * config/frv/frv.h (PRINT_OPERAND): Delete.
3459         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3460         (PRINT_OPERAND_ADDRESS): Delete.
3461         * config/frv/frv.c (frv_print_operand_address): Make static.
3462         (frv_print_operand): Make static.
3463         (frv_print_operand_punct_valid_p): New function.
3464         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3465         (TARGET_PRINT_OPERAND_ADDRESS): Define.
3466
3467 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
3468
3469         * tree.h (vec_member): Declare.
3470         * tree.c (vec_member): Define.
3471
3472 2010-06-17  Richard Guenther  <rguenther@suse.de>
3473
3474         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
3475         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
3476
3477 2010-06-17  Richard Guenther  <rguenther@suse.de>
3478
3479         * tree-inline.c (declare_return_variable): Remove bogus code.
3480
3481 2010-06-17  Richard Guenther  <rguenther@suse.de>
3482
3483         * gimplify.c (gimplify_bind_expr): Always promote complex
3484         and vector variables to registers if possible.
3485
3486 2010-06-17  Richard Guenther  <rguenther@suse.de>
3487
3488         * expr.c (get_inner_reference): Use double_int for bit_offset
3489         calculation.
3490
3491 2010-06-16  DJ Delorie  <dj@redhat.com>
3492
3493         * common.opt (-fstrict-volatile-bitfields): new.
3494         * doc/invoke.texi: Document it.
3495         * fold-const.c (optimize_bit_field_compare): For volatile
3496         bitfields, use the field's type to determine the mode, not the
3497         field's size.
3498         * expr.c (expand_assignment): Likewise.
3499         (get_inner_reference): Likewise.
3500         (expand_expr_real_1): Likewise.
3501         * expmed.c (store_fixed_bit_field): Likewise.
3502         (extract_bit_field_1): Likewise.
3503         (extract_fixed_bit_field): Likewise.
3504
3505 2010-06-16  Richard Guenther  <rguenther@suse.de>
3506
3507         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
3508
3509 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
3510
3511         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
3512         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
3513         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
3514         * debug.c: Likewise.
3515         * sdbout.c: Likewise.
3516         * vmsdbgout.c: Likewise.
3517         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
3518         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
3519         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
3520         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
3521         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
3522         * dwarf2out.c (dw_fde_struct): New fields
3523         dw_fde_vms_{end,begin}_prologue.
3524         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
3525         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
3526         (dwarf2out_vms_end_prologue): New function.
3527         (dwarf2out_vms_begin_epilogue): New function.
3528         (dw_val_struct): New value dw_val_class_vms_delta.
3529         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
3530         begin_epilogue for VMS.
3531         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
3532         new static functions.
3533         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
3534         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
3535         static functions.
3536         (print_die): New case dw_val_class_vms_delta.
3537         (attr_checksum): Likewise.
3538         (same_dw_val_p: Likewise.
3539         (size_of_die): Likewise.
3540         (value_format): Likewise.
3541         (output_die): Likewise.
3542         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
3543         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
3544         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
3545         dwarf2out_cfi_begin_epilogue
3546         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
3547
3548 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
3549
3550         * config/cris/cris-protos.h (cris_print_operand): Delete.
3551         (cris_print_operand_address): Delete.
3552         * config/cris/cris.h (PRINT_OPERAND): Delete.
3553         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3554         (PRINT_OPERAND_ADDRESS): Delete.
3555         * config/cris/cris.c (cris_print_operand_address): Make static.
3556         (cris_print_operand): Make static.
3557         (cris_print_operand_punct_valid_p): New function.
3558         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3559         (TARGET_PRINT_OPERAND_ADDRESS): Define.
3560
3561 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
3562
3563         * config/arm/arm-protos.h (arm_print_operand): Delete.
3564         (arm_print_operand_address): Delete.
3565         * config/arm/arm.h (PRINT_OPERAND): Delete.
3566         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3567         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
3568         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
3569         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
3570         (arm_print_operand): Make static.
3571         (arm_print_operand_punct_valid_p): New function.
3572         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3573         (TARGET_PRINT_OPERAND_ADDRESS): Define.
3574
3575 2010-06-16  Nick Clifton  <nickc@redhat.com>
3576
3577         * config/rx/constraints.md (NEGint4): New constraint.
3578         * config/rx/rx.md (attr cc): Add set_zsc.
3579         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
3580         initialised.
3581         (cmpsf): Likewise.
3582         (call_internal): Clobber the cc0 register.
3583         (call_value_internal): Likewise.
3584         (cstoresi4): Likewise.
3585         (movsieq): Likewise.
3586         (movsine): Likewise.
3587         (addsi3): Add alternative to handle small negative constants.
3588         (sunsi3): Likewise.
3589         (addsi3): Do not set the O bit in the cc0 register.
3590         (adddi3): Likewise.
3591         (subsi3): Likewise.
3592         (subdi3): Likewise.
3593         (andsi3): Reorder alternatives to prefer shorter forms.
3594         (mulsi3): Likewise.
3595         (iorsi3): Likewise.
3596         (negsi2): Note that the cc0 flags are set.
3597         (rotlsi3): Note that only the Z and S bits are set in cc0.
3598         (lshrsi3): Likewise.
3599         (ashlsi3): Likewise.
3600         (subsf3): Use %Q for the MEM operand.
3601         (fix_truncsfsi2): Likewise.
3602         (floatsisf2): Likewise.
3603         (bitset): Remove early clobber from destination.
3604         (bitset_in_memory): Likewise.
3605         (lrintsf2): Clobber the cc0 register.
3606         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
3607         (rx_print_operand): Handle %N.
3608
3609 2010-06-16  Jan Hubicka  <jh@suse.cz>
3610
3611         * df-core.c (df_compact_blocks): Free problem_temps vector.
3612
3613 2010-06-16  Martin Jambor  <mjambor@suse.cz>
3614
3615         PR tree-optimization/43905
3616         * tree-sra.c: Include tree-inline.h.
3617         (create_abstract_origin): Removed.
3618         (modify_function): Version the call graph node instead of creating
3619         abstract origins and dealing with same_body aliases.
3620         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
3621         function is versionable.
3622         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
3623
3624 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
3625
3626         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
3627         (CHOOSE_DYNAMIC_LINKER): Update.
3628
3629 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
3630
3631         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
3632         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
3633         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
3634         *prefetch_3dnow_rex.
3635
3636 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
3637
3638         * target.h (struct asm_out):Add declare_constant_name field.
3639         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
3640         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
3641         * output.h (default_asm_declare_constant_name): Declare.
3642         (assemble_label): Update prototype.
3643         * varasm.c (assemble_constant_contents): Use
3644         targetm.asm_out.declare_constant_name target hook.
3645         (assemble_label): Add 'file' argument.
3646         (default_asm_declare_constant_name): New function.
3647         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
3648         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
3649         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
3650
3651         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
3652         * config/darwin.c (darwin_asm_declare_constant_name): New function.
3653         (machopic_output_indirection): Update assemble_label argument list.
3654         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
3655         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
3656
3657 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
3658
3659         PR middle-end/44391
3660         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
3661         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
3662
3663 2010-06-15  Richard Guenther  <rguenther@suse.de>
3664
3665         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
3666
3667 2010-06-15  Paul Brook  <paul@codesourcery.com>
3668
3669         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
3670         hard-float ABI.
3671
3672 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
3673
3674         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
3675         don't get a vector type for output.
3676
3677 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
3678
3679         PR fortran/44536
3680         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
3681         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
3682         (LANG_HOOKS_DECLS): Add it.
3683         * gimplify.c (omp_notice_variable): Call
3684         lang_hooks.decls.omp_report_decl.
3685
3686 2010-06-15  Martin Jambor  <mjambor@suse.cz>
3687
3688         PR lto/44464
3689         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
3690         on the newly dead SSA name.
3691
3692 2010-06-15  Alan Modra  <amodra@gmail.com>
3693
3694         * doc/invoke.texi: Add mcmodel to powerpc options.
3695         * configure.ac: Add HAVE_LD_LARGE_TOC test.
3696         * configure: Regenerate.
3697         * config.in: Regenerate.
3698         * config/rs6000/linux64.opt (mcmodel): New.
3699         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
3700         (TARGET_CMODEL, SET_CMODEL): Define.
3701         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
3702         select CMODEL_MEDIUM default.
3703         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
3704         (TARGET_CMODEL): Define default.
3705         * config/rs6000/rs6000.c (cmodel): New variable.
3706         (rs6000_explicit_options): Add cmodel field.
3707         (rs6000_handle_option): Handle -mcmodel.
3708         (create_TOC_reference): Add largetoc_reg param.  Generate high,
3709         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
3710         (rs6000_delegitimize_address): Recognise new toc reference rtl
3711         and minimal-toc rtl.
3712         (rs6000_legitimize_reload_address): Handle new toc references.
3713         (print_operand_address): Handle legitimate_constant_pool_address_p
3714         match before lo_sum.
3715         (rs6000_eliminate_indexed_memrefs): Tidy.
3716         (rs6000_emit_move): Tweak threshold for inlining constants.
3717         Keep rs6000_emit_allocate_stack large stack frame offsets
3718         loaded into r0 inline.
3719         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
3720         (tocrel_base, tocrel_offset): New variables.
3721         (toc_relative_expr_p): Set them here.
3722         (print_operand_address): Skip over any offset on constant pool address.
3723         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
3724         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
3725         (offsettable_ok_by_alignment): New function.
3726         (rs6000_emit_move): Address suitably aligned local symbol_refs
3727         relative to the toc pointer for -mcmodel=medium.
3728         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
3729         strict param.  Allow lo_sum version of addressing.  Verify reg
3730         used for -mminimal-toc and -mcmodel != small.  Update all callers.
3731         * config/rs6000/constraints.md: Update for above change.
3732         * config/rs6000/predicates.md: Likewise.
3733         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
3734         code.
3735         (tls_gd): Split for -mcmodel=medium/large.
3736         (tls_gd_high, tls_gd_low): New.
3737         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
3738         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
3739         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
3740         (largetoc_high, largetoc_low): New.
3741         (cmptf_internal2): Add clobber.
3742         * config/rs6000/rs6000-protos.h: Update.
3743
3744 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
3745
3746         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
3747         true if no prefetch is going to be generated for a given group.
3748         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
3749         estimate the prefetch_count.
3750         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
3751         prefetch count by considering the unroll_factor and prefetch_mod
3752         for is_loop_prefetching_profitable.
3753
3754 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
3755
3756         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
3757         anything if the argument is not a MEM.
3758
3759 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
3760
3761         PR debug/43650
3762         PR debug/44181
3763         PR debug/44247
3764         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
3765         debug stmts.
3766         (canonicalize_loop_ivs): Likewise.
3767
3768 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
3769
3770         PR debug/43656
3771         * haifa-sched.c (setup_insn_reg_pressure_info,
3772         update_register_pressure): Reject debug insns.
3773         (ready_sort): Don't setup reg pressure for debug insns.
3774         (schedule_insn): Don't update reg pressure for debug insns.
3775
3776 2010-06-14  Richard Guenther  <rguenther@suse.de>
3777
3778         * lto-streamer.c (cached_bp): Remove.
3779         (bitpack_delete): Likewise.
3780         (bitpack_create): Likewise.
3781         (bp_get_next_word): Likewise.
3782         (bp_pack_value, bp_unpack_value): Move ...
3783         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
3784         Re-implement.
3785         (struct bitpack_d): Likewise.
3786         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
3787         New inline functions.
3788         * lto-streamer-out.c (lto_output_bitpack): Remove.
3789         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
3790         (pack_value_fields): Adjust.
3791         (lto_write_tree): Likewise.
3792         (output_gimple_stmt): Likewise.
3793         (output_function): Likewise.
3794         * lto-streamer-in.c (input_gimple_stmt): Adjust.
3795         (input_function): Likewise.
3796         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
3797         (lto_input_bitpack): Remove.
3798         (lto_materialize_tree): Adjust.
3799         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
3800         * lto-cgraph.c (lto_output_edge): Adjust.
3801         (lto_output_node): Likewise.
3802         (lto_output_varpool_node): Likewise.
3803         (lto_output_ref): Likewise.
3804         (input_node): Likewise.
3805         (input_varpool_node): Likewise.
3806         (input_ref): Likewise.
3807         (input_edge): Likewise.
3808         (output_node_opt_summary): Likewise.
3809         (input_node_opt_summary): Likewise.
3810         * ipa-pure-const.c (pure_const_write_summary): Likewise.
3811         (pure_const_read_summary): Likewise.
3812         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
3813         (ipa_read_indirect_edge_info): Likewise.
3814         (ipa_write_node_info): Likewise.
3815         (ipa_read_node_info): Likewise.
3816
3817 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
3818
3819         PR target/44534
3820         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
3821         (vec_extract_lo_v16hi): Likewise.
3822         (vec_extract_lo_v32qi): Likewise.
3823
3824 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
3825
3826         PR bootstrap/44426
3827         * tree.h (build_call_expr): Don't define as vararg macro, instead
3828         add a prototype.
3829         * builtins.c (build_call_nofold): Remove.
3830         (expand_builtin_int_roundingfn, expand_builtin_pow,
3831         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
3832         expand_builtin_memset_args, expand_builtin_strcmp,
3833         expand_builtin_strncmp, expand_builtin_memory_chk): Use
3834         build_call_nofold_loc instead of build_call_nofold.
3835         (build_call_expr): New function.
3836
3837         PR tree-optimization/44508
3838         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
3839         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
3840         don't eliminate trivially dead stmts.
3841         * tree-vrp.c (vrp_finalize): Pass false as last argument
3842         to substitute_and_fold.
3843         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
3844         to substitute_and_fold.
3845         * tree-ssa-ccp.c (ccp_finalize): Likewise.
3846
3847         PR bootstrap/44509
3848         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
3849
3850 2010-06-14  Ira Rosen  <irar@il.ibm.com>
3851
3852         PR tree-optimization/44507
3853         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
3854         to build initial vector for BIT_AND_EXPR.
3855         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3856
3857 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
3858
3859         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
3860         adjust z10prop set_attr.
3861
3862 2010-06-13  Jan Hubicka  <jh@suse.cz>
3863
3864         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
3865         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
3866         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
3867         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
3868         datastructure checks into checking asserts.
3869         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
3870         * tree-ssa-sccvn.c (VN_INFO): Likewise.
3871         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
3872         df_ref_create_structure): Likewise.
3873         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
3874         pool_free): Use gcc_checking_assert.
3875         * alias.c (get_alias_set): Likewise.
3876         * var-tracking.c (variable_htab_free, shared_hash_copy,
3877         canonicalize_values_mark, variable_merge_over_cur): Likewise.
3878         * lto-streamer.c (bp_unpack_value): Likewise.
3879
3880 2010-06-13  Richard Guenther  <rguenther@suse.de>
3881
3882         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
3883         Do not stream but initialize TYPE_CANONICAL to NULL.
3884         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
3885         * gimple.c (gimple_types_compatible_p): Disregard
3886         TYPE_STRUCTURAL_EQUALITY_P.
3887         (gimple_register_type): Use TYPE_CANONICAL as cache.
3888         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
3889         before registering common types.
3890         * config/i386/i386.c (ix86_function_arg_boundary): Do not
3891         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
3892         * tree.h (TYPE_CANONICAL): Clarify documentation.
3893
3894 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
3895
3896         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
3897         LIBCALL_VALUE): Remove macros.
3898         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
3899         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3900         TARGET_FUNCTION_VALUE_REGNO_P): Define.
3901         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
3902         (ia64_function_value): Make static. Handle receiving the function
3903         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
3904
3905 2010-06-12  Jan Hubicka  <jh@suse.cz>
3906
3907         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
3908         at correct place.
3909
3910 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
3911
3912         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
3913
3914 2010-06-12  Jan Hubicka  <jh@suse.cz>
3915
3916         * df-core.c (df_clear_bb_info): New function.
3917         (df_set_blocks): bb_info is always allocated.
3918         (df_get_bb_info): Use block_info_elt_size.
3919         (df_set_bb_info): Likewise.
3920         (df_compact_blocks): Update for new block_info.
3921         (grow_bb_info): New function.
3922         * df-problems.c (df_grow_bb_info): Move to df-core.c
3923         (df_rd_set_bb_info): Remove.
3924         (df_rd_free_bb_info): Do not free block pool.
3925         (df_rd_alloc): Do not create pool, use check for
3926         obstack presence instead of NULL pointer for new blocks.
3927         (df_rd_free): DO not free alloc pool; clear block_info.
3928         (problem_RD): Add size of block info structure.
3929         (df_lr_set_bb_info): Remove.
3930         (df_lr_free_bb_info): Do not free block pool.
3931         (df_lr_alloc): Do not create pool, use check for
3932         obstack presence instead of NULL pointer for new blocks.
3933         (df_lr_free): DO not free alloc pool; clear block_info.
3934         (problem_LR): Add size of block info structure.
3935         (df_live_set_bb_info): Remove.
3936         (df_live_free_bb_info): Do not free block pool.
3937         (df_live_alloc): Do not create pool, use check for
3938         obstack presence instead of NULL pointer for new blocks.
3939         (df_live_free): DO not free alloc pool; clear block_info.
3940         (problem_LIVE): Add size of block info structure.
3941         (problem_CHAIN): Add size of block info structure.
3942         (df_byte_lr_set_bb_info): Remove.
3943         (df_byte_lr_free_bb_info): Do not free block pool.
3944         (df_byte_lr_alloc): Do not create pool, use check for
3945         obstack presence instead of NULL pointer for new blocks.
3946         (df_byte_lr_free): DO not free alloc pool; clear block_info.
3947         (problem_BYTE_LR): Add size of block info structure.
3948         (problem_NOTE): Add size of block info structure.
3949         (df_byte_MD_set_bb_info): Remove.
3950         (df_byte_MD_free_bb_info): Do not free block pool.
3951         (df_byte_MD_alloc): Do not create pool, use check for
3952         obstack presence instead of NULL pointer for new blocks.
3953         (df_byte_MD_free): DO not free alloc pool; clear block_info.
3954         (problem_BD): Add size of block info structure.
3955         * df-scan.c (df_scan_free_internal): Free block pool.
3956         (df_scan_set_bb_info): Remove.
3957         (df_scan_free_bb_info): Check for artificial_defs instead
3958         of bb_info being non-NULL.
3959         (df_scan_alloc): DO not create df_scan_block pool.
3960         (problem_SCAN): Set size of block info.
3961         (df_bb_refs_record): Do not allocate bb_info.
3962         * df.h (df_problem): Add block_info_elt_size.
3963         (struct dataflow): Change block_info to void *.
3964         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
3965         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
3966         in-line structures.
3967
3968 2010-06-12  Jan Hubicka  <jh@suse.cz>
3969
3970         PR tree-optimize/44485
3971         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
3972         containing use of return value of noreturn function.
3973
3974 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
3975
3976         * targhooks.c (default_function_value): Don't use
3977         FUNCTION_OUTGOING_VALUE.
3978         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
3979         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
3980
3981 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
3982
3983         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
3984         Add crtfastmath.o to extra_parts.
3985         * config/mips/crtfastmath.c: New.
3986         * config/mips/linux.h (ENDFILE_SPEC): New.
3987
3988 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
3989
3990         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
3991         old_type in parameter.
3992         (gcc_type_for_value): Update call to gcc_type_for_interval.
3993         (compute_type_for_level_1): Renamed compute_type_for_level.
3994         Update call to gcc_type_for_interval.
3995
3996 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
3997
3998         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
3999         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
4000
4001 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
4002
4003         * opts-common.c: Include options.h.
4004         (integral_argument): Move from opts.c.
4005         (decode_cmdline_option): New.  Based on read_cmdline_option.
4006         * opts.c (integral_argument): Move to opts-common.c.
4007         (read_cmdline_option): Move most contents to
4008         decode_cmdline_option.  Use %qs in diagnostics.
4009         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
4010         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
4011         decode_cmdline_option): New.
4012
4013 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
4014
4015         PR target/44481
4016         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
4017         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
4018         (partiysi2_cmp): Ditto.
4019         (*partiyhi2_cmp): Ditto.
4020         (*parityqi2_cmp): Remove.
4021
4022 2010-06-11  Jan Hubicka  <jh@suse.cz>
4023
4024         * bitmap.h (bmp_iter_next_bit): New.
4025         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
4026
4027 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
4028             Eric Botcazou  <ebotcazou@adacore.com>
4029
4030         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
4031         computed cost.
4032
4033 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
4034
4035         * config/i386/i386.md (unspec): New define_c_enum.
4036         (unspecv): Ditto.
4037
4038 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
4039
4040         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
4041
4042 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
4043
4044         PR middle-end/44483
4045         * tree-if-conv.c (bb_predicate_s): New struct.
4046         (bb_predicate_p): New.
4047         (bb_has_predicate): New.
4048         (bb_predicate): New.
4049         (set_bb_predicate): New.
4050         (bb_predicate_gimplified_stmts): New.
4051         (set_bb_predicate_gimplified_stmts): New.
4052         (add_bb_predicate_gimplified_stmts): New.
4053         (init_bb_predicate): New.
4054         (free_bb_predicate): New.
4055         (is_predicated): Use bb_predicate.
4056         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
4057         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
4058         before processing their successors.
4059         (clean_predicate_lists): Removed.
4060         (find_phi_replacement_condition): Use bb_predicate.
4061         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
4062         computations.
4063         (insert_gimplified_predicates): New.
4064         (combine_blocks): Call insert_gimplified_predicates.
4065         (tree_if_conversion): Call free_bb_predicate instead of
4066         clean_predicate_lists.
4067
4068 2010-10-11  Paul Brook  <paul@codesourcery.com>
4069
4070         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
4071         * config/arm/arm.c (all_architectures): Change v7e-m default to
4072         cortexm4.
4073         * config/arm/arm-cores.def: Add cortex-m4.
4074         * config/arm/arm-tune.md: Regenerate.
4075
4076 2010-06-11  Jan Hubicka  <jh@suse.cz>
4077
4078         * ipa-pure-const.c (special_builtlin_state): New function.
4079         (check_call): Use it instead of special casign BUILT_IN_RETURN.
4080         (propagate_pure_const): Use it.
4081
4082 2010-06-11  Jan Hubicka  <jh@suse.cz>
4083
4084         * df-problems.c (df_live_scratch): Convert to bitmap_head.
4085         (df_live_alloc): Initialize df_live_scratch when initializing
4086         problem_data.
4087         (df_live_transfer_function): Update uses of df_live_scratch.
4088         (df_live_free): Free problem_data; clear df_live_scratch before
4089         releasing the obstack.
4090         (df_md_free): Free problem data.
4091
4092 2010-06-11  Jan Hubicka  <jh@suse.cz>
4093
4094         * doc/invoke.texi (Wsuggest-attribute): Document.
4095         (Wmissing-noreturn): Remove.
4096         * ipa-pure-const.c (warn_function_noreturn): New function.
4097         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
4098         warn_missing_noreturn.
4099         * common.opt (Wsuggest-attribute=noreturn): New.
4100         * tree-flow.h (warn_function_noreturn): Declare.
4101         * tree-cfg.c (execute_warn_function_noreturn): Use
4102         warn_function_noreturn.
4103         (gate_warn_function_noreturn): New.
4104         (pass_warn_function_noreturn): Update.
4105
4106 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4107
4108         * c-typeck.c (handle_warn_cast_qual): Add loc
4109         parameter. Improve warning message.
4110         (build_c_cast): Pass location to handle_warn_cast_qual.
4111
4112 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
4113
4114         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
4115         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
4116         insn mnemonic.
4117         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
4118
4119 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
4120
4121         Fix bootstap on mips
4122         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
4123         be naming typedefs.
4124
4125 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
4126
4127         * system.h (helper_const_non_const_cast): New inline for
4128         gcc version <= 4.0.
4129         (CONST_CAST2): For gcc version <= 4.0 use
4130         new helper to do const/non-const casting.
4131
4132 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4133
4134         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
4135         * Makefile.in (OBJS-common): Include insn-enums.o.
4136         (insn-enums.o): New rule.
4137         (simple_generated_c): Add insn-enums.c.
4138         (build/genenums.o): New rule.
4139         (genprogmd): Add "enums".
4140         * genconstants.c (print_enum_type): Declare a C string array
4141         for each enum.
4142         * genenums.c: New file.
4143         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
4144         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
4145         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
4146
4147 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4148
4149         * doc/md.texi (define_enum_attr): Document.
4150         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
4151         * read-md.h (lookup_enum_type): Declare.
4152         * read-md.c (lookup_enum_type): New function.
4153         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
4154         * genattrtab.c (attr_desc): Add an enum_name field.
4155         (evaluate_eq_attr): Take the associated attribute as argument.
4156         Get the enum prefix from the enum_name field, if defined.
4157         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
4158         (simplify_test_exp): Pass attr to evaluate_eq_attr.
4159         (add_attr_value): New function, split out from...
4160         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
4161         (write_test_expr): Pass attr to evaluate_eq_attr.
4162         (write_attr_get): Use the enum_name as the enum tag, if defined.
4163         (write_attr_valueq): Use the enum_name as a prefix, if defined.
4164         (find_attr): Initialize enum_name.
4165         (main): Handle DEFINE_ENUM_ATTR.
4166         * gensupport.c (process_rtx): Likewise.
4167         * config/mips/mips.h (mips_tune_attr): Delete.
4168         * config/mips/mips.md (cpu): Use define_attr_enum.
4169
4170 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4171
4172         * doc/md.texi (define_c_enum, define_enum): Document.
4173         * read-md.h (md_constant): Add a parent_enum field.
4174         (enum_value, enum_type): New structures.
4175         (upcase_string, traverse_enum_types): Declare.
4176         * read-md.c (enum_types): New variable.
4177         (upcase_string, add_constant): New functions.
4178         (handle_constants): Don't create the hash table here.
4179         Use add_constant.
4180         (traverse_md_constants): Don't check for a null md_constants.
4181         (decimal_string, handle_enum, traverse_enum_types): New functions.
4182         (read_md_files): Initialize md_constants and md_enums.
4183         * genconstants.c (print_md_constant): Ignore info argument.
4184         Only print constants that belong to no enum.
4185         (print_enum_type): New function.
4186         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
4187         for each defined enum type.
4188         * config/mips/mips.md (processor): New define_enum.
4189         (unspec): New define_c_enum.
4190         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
4191         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
4192         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
4193         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
4194         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
4195         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
4196         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
4197         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
4198         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
4199         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
4200         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
4201         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
4202         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
4203         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
4204         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
4205         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
4206         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
4207         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
4208         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
4209         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
4210         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
4211         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
4212         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
4213         (UNSPEC_RDDSP): Move to mips-dsp.md.
4214         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
4215         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
4216         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
4217         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
4218         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
4219         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
4220         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
4221         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
4222         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
4223         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
4224         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
4225         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
4226         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
4227         Moved to mips-dspr2.md.
4228         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
4229         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
4230         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
4231         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
4232         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
4233         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
4234         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
4235         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
4236         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
4237         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
4238         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
4239         UNSPEC_LOONGSON_PSADBH)
4240         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
4241         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
4242         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
4243         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
4244         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
4245         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
4246         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
4247         (cpu): Update comment.
4248         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
4249         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
4250         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
4251         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
4252         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
4253         UNSPEC_LOONGSON_PCMPEQ)
4254         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
4255         UNSPEC_LOONGSON_PINSR_0)
4256         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
4257         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
4258         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
4259         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
4260         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
4261         UNSPEC_LOONGSON_PSADBH)
4262         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
4263         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
4264         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
4265         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
4266         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
4267         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
4268         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
4269         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
4270         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
4271         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
4272         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
4273         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
4274         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
4275         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
4276         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
4277         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
4278         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
4279         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
4280         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
4281         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
4282         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
4283         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
4284         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
4285         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
4286         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
4287         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
4288         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
4289         (UNSPEC_RDDSP): Moved from mips.md.
4290         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
4291         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
4292         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
4293         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
4294         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
4295         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
4296         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
4297         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
4298         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
4299         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
4300         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
4301         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
4302         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
4303         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
4304         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
4305         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
4306         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
4307         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
4308         (UNSPEC_SCC): Moved from mips.md.
4309         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
4310         "processor_type" to "processor".
4311         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
4312         * config/mips/mips.h (processor_type): Delete.
4313         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
4314         "processor_type" to "processor".
4315
4316 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4317
4318         * configure.ac (tm_include_list): Add insn-constants.h.
4319         * configure: Regenerate.
4320         * Makefile.in (GTM_H): Move insn-constants.h here from...
4321         (TM_H): ...here.
4322         * mkconfig.sh: Remove special handling for insn-constants.h.
4323
4324 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4325
4326         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
4327         (BUILD_MD): ...this new variable.
4328         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
4329         that include the old contents of simple_generated_h and
4330         simple_generated_c.
4331         (simple_generated_h, simple_generated_c): Include them.  Add
4332         insn-constants.h.
4333         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
4334         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
4335         Remove these dependencies from the main rule and include
4336         insn-conditions.md in the command line only if it appears
4337         in the dependency list.
4338         (insn-constants.h, s-constants): Delete.
4339         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
4340         or gensupport.h.
4341         (build/genmddeps.o): Likewise.
4342         (genprogrtl): New variable that contains everything from genprogmd
4343         except mddeps and constants.
4344         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
4345         depend on $(BUILD_MD)
4346         (genprog): New variable.  Make these programs depend on
4347         $(BUILD_ERRORS).
4348         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
4349         (main): Use read_md_files instead of init_rtx_reader_args.
4350         * genconstants.c: As for genmddeps.c.
4351         * read-md.h (read_skip_construct): Declare.
4352         * read-md.c (read_skip_construct): New function.
4353         (handle_file): Allow a null handle_directive, skipping the
4354         construct if so.
4355         (parse_include): Update the comment accordingly.
4356
4357 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4358
4359         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
4360         * genmddeps.c: Include read-md.h.
4361         (main): Call init_rtx_reader_args instead of init_md_reader_args.
4362         * genattr.c (main): Likewise.
4363         * genattrtab.c (main): Likewise.
4364         * genautomata.c (main): Likewise.
4365         * gencodes.c (main): Likewise.
4366         * genconditions.c (main): Likewise.
4367         * genconfig.c (main): Likewise.
4368         * genconstants.c (main): Likewise.
4369         * genemit.c (main): Likewise.
4370         * genextract.c (main): Likewise.
4371         * genflags.c (main): Likewise.
4372         * genopinit.c (main): Likewise.
4373         * genoutput.c (main): Likewise.
4374         * genpeep.c (main): Likewise.
4375         * genrecog.c (main): Likewise.
4376         * genpreds.c (main): Likewise.
4377         * gensupport.h (in_fname): Move to read-md.h.
4378         (init_md_reader_args_cb): Rename to...
4379         (init_rtx_reader_args_cb): ...this and return a bool.
4380         (init_md_reader_args): Rename to...
4381         (init_rtx_reader_args): ...this and return a bool.
4382         (include_callback): Move to read-md.h.
4383         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
4384         (file_name_list, first_dir_md_include): Move to read-md.c
4385         (first_bracket_include): Delete unused variable.
4386         (last_dir_md_include): Move to read-md.c.
4387         (process_include): Delete, moving code to read-md.c:handle_include.
4388         (process_rtx): Don't handle INCLUDE.
4389         (save_string): Delete.
4390         (rtx_handle_directive): New function.
4391         (init_md_reader_args_cb): Rename to...
4392         (init_rtx_reader_args_cb): ...this and return a boolean success value.
4393         Use read_md_args.
4394         (init_md_reader_args): Rename to...
4395         (init_rtx_reader_args): ...this and return a boolean success value.
4396         * rtl.def (INCLUDE): Delete.
4397         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
4398         argument.
4399         * read-rtl.c (read_conditions): Don't gobble ')' here.
4400         (read_mapping): Likewise.
4401         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
4402         Handle top-level non-rtx constructs here rather than in read_rtx_1.
4403         Store the whole queue in *X.  Remove call to init_md_reader.
4404         (read_rtx_1): Rename to...
4405         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
4406         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
4407         here.
4408         (read_nested_rtx): New function.  Handle (nil) here rather than
4409         in read_rtx_code.
4410         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
4411         gobble ')' here.
4412         * read-md.h (directive_handler_t): New type.
4413         (in_fname, include_callback): Moved from read-md.h.
4414         (read_constants, init_md_reader): Delete.
4415         (read_md_files): Declare.
4416         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
4417         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
4418         from gensupport.c.
4419         (read_constants): Rename to...
4420         (handle_constants): ...this.  Don't gobble ')' here.
4421         (handle_include, handle_file, handle_toplevel_file)
4422         (parse_include): New functions, mostly taken from gensupport.c.
4423         (init_md_reader): Subsume into...
4424         (read_md_files): ...this new function.
4425
4426 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4427
4428         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
4429         (unread_char): Decrement read_md_lineno after putting back '\n'.
4430         * read-md.c (fatal_with_file_and_line): Push back any characters
4431         that we decide not to add to the context.
4432         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
4433         fatal_expected_char in cases where '/' ends a line (for example).
4434         (read_name): Don't increment read_md_lineno here.
4435         (read_escape): Likewise.
4436         (read_quoted_string): Likewise.
4437         (read_braced_string): Likewise.
4438
4439 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4440
4441         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
4442         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
4443         * genconstants.c: Include read-md.h.
4444         * read-rtl.c (md_constants): Move to read-md.c.
4445         (md_name): Move to read-md.h.
4446         (initialize_iterators): Use leading_string_hash instead of def_hash
4447         and leading_string_eq_p instead of def_name_eq_p.
4448         (read_name): Move to read-md.c.
4449         (def_hash, def_name_eq_p): Delete.
4450         (read_constants, traverse_md_constants): Move to read-md.c.
4451         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
4452         * read-md.h: Include hashtab.h.
4453         (md_name): Moved from read-rtl.c.
4454         (md_constant): Moved from read-md.h.
4455         (leading_string_hash, leading_string_eq_p, read_name)
4456         (read_constants, traverse_md_constants): Declare.
4457         * read-md.c (md_constants): Moved from read-rtl.c.
4458         (leading_string_hash, leading_string_eq_p): New functions.
4459         (read_name, read_constants, traverse_md_constants): Moved from
4460         read-rtl.c.
4461
4462 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4463
4464         * read-rtl.c (md_name): New structure.
4465         (read_name): Take an md_name instead of a buffer pointer.
4466         Use the "string" field instead of strcpy when expanding constants.
4467         (read_constants): Remove the tmp_char argument.  Update the calls
4468         to read_name, using two local name buffers instead of the tmp_char
4469         argument.  Merge the constant-creation code.
4470         (read_conditions): Remove the tmp_char argument.  Update the calls
4471         to read_name, using a local name buffer instead of the tmp_char
4472         argument.
4473         (read_mapping): Replace tmp_char variable with a local name buffer.
4474         Update the calls to read_name.
4475         (read_rtx_1): Likewise.  Update the calls to read_constants and
4476         read_conditions.
4477
4478 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4479
4480         * Makefile.in (build/read-md.o): Depend on errors.h.
4481         * read-md.h (error_with_line): Declare.
4482         * read-md.c: Include errors.h.
4483         (message_with_line_1): New function, extracted from...
4484         (message_with_line): ...here.
4485         (error_with_line): New function.
4486         * genattrtab.c: If a call to message_with_line is followed by
4487         "have_error = 1;", replace both statements with a call to
4488         error_with_line.
4489         * genoutput.c: Likewise.
4490         * genpreds.c: Likewise.
4491         * genrecog.c: If a call to message_with_line is followed by
4492         "error_count++;", replace both statements with a call to
4493         error_with_line.
4494         (errorcount): Delete.
4495         (main): Don't check it.
4496         * gensupport.c: If a call to message_with_line is followed by
4497         "errors = 1;", replace both statements with a call to error_with_line.
4498         (errors): Delete.
4499         (process_define_cond_exec): Check have_error instead of errors.
4500         (init_md_reader_args_cb): Likewise.  Don't set errors.
4501
4502 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4503
4504         * read-md.h (read_md_file): Declare.
4505         (read_char, unread_char): New functions.
4506         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
4507         (read_quoted_string, read_string): Remove FILE * argument.
4508         * read-md.c (read_md_file): New variable.
4509         (read_md_filename, read_md_lineno): Update comments and remove
4510         unnecessary initialization.
4511         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
4512         (read_escape, read_quoted_string, read_braced_string, read_string):
4513         Remove FILE * argument.  Update calls accordingly, using read_char
4514         and unread_char instead of getc and ungetc.
4515         * rtl.h (read_rtx): Remove FILE * argument.
4516         * read-rtl.c (iterator_group): Remove FILE * argument from
4517         "find_builtin".
4518         (iterator_traverse_data): Remove "infile" field.
4519         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
4520         (add_mapping, read_name, read_constants, read_conditions)
4521         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
4522         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
4523         Remove file arguments from all calls, using read_char and unread_char
4524         instead of getc and ungetc.
4525         * gensupport.c (process_include): Preserve read_md_file around
4526         the include.  Set read_md_file to the handle of the included file.
4527         Update call to read_rtx.
4528         (init_md_reader_args_cb): Set read_md_file to the handle of the file
4529         and remove local FILE *.  Update calls to read_rtx.
4530
4531 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4532
4533         * read-md.h (read_rtx_lineno): Rename to...
4534         (read_md_lineno): ...this.
4535         (read_rtx_filename): Rename to...
4536         (read_md_filename): ...this.
4537         (copy_rtx_ptr_loc): Rename to...
4538         (copy_md_ptr_loc): ...this.
4539         (print_rtx_ptr_loc): Rename to...
4540         (print_md_ptr_loc): ...this.
4541         * read-md.c: Likewise.  Update references after renaming.
4542         (string_obstack): Replace RTL with MD in comment.
4543         (set_rtx_ptr_loc): Rename to...
4544         (set_md_ptr_loc): ...this.
4545         (get_rtx_ptr_loc): Rename to...
4546         (get_md_ptr_loc): ...this.
4547         * genconditions.c: Update references after renaming.
4548         * genemit.c: Likewise.
4549         * genoutput.c: Likewise.
4550         * genpreds.c: Likewise.
4551         * gensupport.c: Likewise.
4552         * read-rtl.c: Likewise.
4553
4554 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4555
4556         * Makefile.in (READ_MD_H): New variable.
4557         (BUILD_RTL): Add build/read-md.o.
4558         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
4559         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
4560         (build/genattrtab.o, build/genconditions.o build/genemit.o)
4561         (build/genextract.o, build/genflags.o, build/genoutput.o)
4562         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
4563         (build/read-md.o): New rule.
4564         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
4565         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
4566         * coretypes.h: ...here.
4567         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
4568         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
4569         * genattr.c: Include read-md.h.
4570         * genattrtab.c: Likewise.
4571         * genconditions.c: Likewise.
4572         * genemit.c: Likewise.
4573         * genextract.c: Likewise.
4574         * genflags.c: Likewise.
4575         * genoutput.c: Likewise.
4576         * genpreds.c: Likewise.
4577         * genrecog.c: Likewise.
4578         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
4579         (join_c_conditions, print_c_condition, read_rtx_filename)
4580         (read_rtx_lineno): Move to read-md.h.
4581         * read-rtl.c: Include read-md.h.
4582         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
4583         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
4584         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
4585         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
4586         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
4587         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
4588         (read_braced_string, read_string): Move to read-md.c.
4589         (read_rtx): Move some initialization to init_md_reader and call
4590         init_md_reader here.
4591         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
4592         Move to read-md.h.
4593         * gensupport.c: Include read-md.h.
4594         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
4595         * read-md.h, read-md.c: New files.
4596
4597 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
4598
4599         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
4600         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
4601         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
4602         * config/moxie/moxie.c (moxie_function_value): Make static.
4603         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
4604         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
4605
4606 2010-06-10  Martin Jambor  <mjambor@suse.cz>
4607
4608         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
4609         * dbgcnt.def (tree_sra): New counter.
4610         * tree-sra.c: Include dbgcnt.h.
4611         (gate_intra_sra): Check tree_sra debug counter.
4612
4613 2010-06-10  Martin Jambor  <mjambor@suse.cz>
4614
4615         PR tree-optimization/44258
4616         * tree-sra.c (build_access_subtree): Return false iff there is a
4617         partial overlap.
4618         (build_access_trees): Likewise.
4619         (analyze_all_variable_accesses): Disqualify candidates if
4620         build_access_trees returns true for them.
4621
4622 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
4623
4624         PR debug/41371
4625         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
4626         tail-recurse into canonical node.  Fast-forward over
4627         non-canonical VALUEs.
4628
4629 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
4630
4631         PR boostrap/44470
4632         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
4633         (*addsi_1_zext) <TYPE_LEA>: Likewise.
4634         (add lea splitter): Likewise.
4635         (add_zext lea splitter): Likewise.
4636
4637 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
4638
4639         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
4640
4641 2010-06-10  Jan Hubicka  <jh@suse.cz>
4642
4643         * df-problems.c (df_live_problem_data): Add live_bitmaps.
4644         (df_live_alloc): Initialize problem data and live_osbtacks.
4645         (df_live_finalize): Remove obstack, problem data; do not
4646         clear all bitmaps.
4647         (df_live_top_dump, df_live_bottom_dump): Do not dump old
4648         data when not allocated.
4649         (df_live_verify_solution_start): Do not allocate problem data.
4650         (df_live_verify_solution_end): Check if out is allocated.
4651         (struct df_md_problem_data): New structure.
4652         (df_md_alloc): Allocate problem data.
4653         (df_md_free): Free problem data; do not clear bitmaps.
4654
4655 2010-06-10  Jan Beulich  <jbeulich@novell.com>
4656
4657         PR bootstrap/37304
4658         * configure.ac: Replace $() with ${} when intending to expand
4659         variables rather than invoking commands.
4660         * configure: Re-generate.
4661
4662 2010-06-10  Jan Hubicka  <jh@suse.cz>
4663
4664         PR rtl-optimization/44460
4665         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
4666         TYPE_NEEDS_CONSTRUCTING sanity check.
4667
4668 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
4669
4670         * doc/include/fdl.texi: Move to GFDL version 1.3.
4671
4672         * doc/cpp.texi: Move to GFDL version 1.3.
4673         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
4674         * doc/gccint.texi: Move to GFDL version 1.3.
4675         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
4676         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
4677         * doc/invoke.texi: Move to GFDL version 1.3.
4678
4679 2010-06-09  Jan Hubicka  <jh@suse.cz>
4680
4681         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
4682         Break out from ...
4683         (propagate) ... here; swap the order.
4684
4685 2010-06-09  Jan Hubicka  <jh@suse.cz>
4686
4687         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
4688         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
4689         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
4690         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
4691
4692 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
4693
4694         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
4695         Do not the gather memory reference in the outer loop if the step
4696         is not a constant.
4697
4698 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
4699
4700         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
4701         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
4702         8 to 4.  Minor change of the related comments.
4703
4704 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
4705
4706         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
4707         the scev analysis when the variable is not used outside the loop
4708         in a close phi node: call compute_overall_effect_of_inner_loop.
4709
4710 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
4711
4712         * graphite-sese-to-poly.c (single_pred_cond): Renamed
4713         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
4714         (build_sese_conditions_before): Renamed call to single_pred_cond.
4715         (build_sese_conditions_after): Same.
4716
4717 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
4718
4719         * graphite-poly.h: Fix comments and indentation.
4720         * graphite-sese-to-poly.c: Same.
4721         (build_sese_conditions_before): Compute stmt and gbb only when needed.
4722         * tree-chrec.c: Fix comments and indentation.
4723         (tree-ssa-loop-niter.c): Same.
4724
4725 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
4726
4727         PR rtl-optimization/42461
4728         * dce.c (deletable_insn_p): Return true for const or pure calls again.
4729         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
4730
4731 2010-06-09  Jan Hubicka  <jh@suse.cz>
4732
4733         * bitmap.c (bitmap_and): Walk array forward.
4734         (bitmap_and_compl_into): Likewise.
4735         (bitmap_xor): Likewise.
4736         (bitmap_xor_into):  Likewise.
4737         (bitmap_equal_p): Likewise.
4738         (bitmap_intersect_p): Likewise.
4739         (bitmap_intersect_compl_p): Likewise.
4740         (bitmap_ior_and_into): Likewise.
4741         (bitmap_elt_copy): Likewise.
4742         (bitmap_and_compl): Likewise.
4743         (bitmap_elt_ior): Likewise.
4744
4745 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
4746
4747         * opts-common.c (prune_options): Ensure replacement argv array
4748         is correctly terminated by a NULL entry.
4749
4750 2010-06-09  Jan Hubicka  <jh@suse.cz>
4751
4752         * cgraph.h (varpool_first_static_initializer,
4753         varpool_next_static_initializer): Make checking only when
4754         checking enabled.
4755         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
4756         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
4757         gcc_assert to gcc_checking_assert.
4758         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
4759         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
4760         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
4761         op_iter_init_phiuse, op_iter_init_phidef,
4762         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
4763         gcc_checking_assert.
4764         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
4765         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
4766         partition_is_global, live_on_entry, live_on_exit,
4767         live_merge_and_clear): Likewise.
4768         * system.h (gcc_checking_assert): New macro.
4769         * gimple.h (set_bb_seq): Use gcc_checking_assert.
4770
4771 2010-06-09  Jason Merrill  <jason@redhat.com>
4772
4773         * Makefile.in (TAGS): Collect tags info from c-family.
4774
4775 2010-06-09  Jan Hubicka  <jh@suse.cz>
4776
4777         * gimple.h (gcc_gimple_checking_assert): New macro.
4778         (gimple_set_def_ops, gimple_set_use_ops,
4779         gimple_set_vuse, gimple_set_vdef,
4780         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
4781         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
4782         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
4783         gimple_asm_output_op, gimple_asm_output_op_ptr,
4784         gimple_asm_set_output_op, gimple_asm_clobber_op,
4785         gimple_asm_set_clobber_op, gimple_asm_label_op,
4786         gimple_asm_set_label_op, gimple_try_set_kind,
4787         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
4788         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
4789         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
4790         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
4791         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
4792         gimple_omp_for_set_initial, gimple_omp_for_final,
4793         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
4794         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
4795         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
4796         conditional with ENABLE_GIMPLE_CHECKING.
4797         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
4798
4799 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
4800
4801         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
4802         (get_computation_cost_at): Use it.
4803         (determine_use_iv_cost_condition): Likewise.
4804         (determine_iv_cost): Likewise.
4805
4806 2010-06-09  Richard Guenther  <rguenther@suse.de>
4807
4808         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
4809         replace constants.
4810
4811 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
4812
4813         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
4814
4815 2010-06-09  Martin Jambor  <mjambor@suse.cz>
4816
4817         PR tree-optimization/44423
4818         * tree-sra.c (dump_access): Dump also grp_assignment_read.
4819         (analyze_access_subtree): Pass negative allow_replacements to children
4820         if the current type is scalar.
4821
4822 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
4823
4824         PR testsuite/42843
4825         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
4826         * doc/plugins.texi (Plugin license check): Update information
4827         on type of plugin_is_GPL_compatible.
4828         * Makefile.in (PLUGINCC): Define as $(COMPILER).
4829         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
4830
4831 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
4832
4833         * config/arm/arm.c (thumb2_reorg): New function.
4834         (arm_reorg): Call it.
4835         * config/arm/thumb2.md (define_peephole2 for flag clobbering
4836         arithmetic operations): Delete.
4837
4838 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
4839
4840         PR target/44067
4841         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
4842         e500v2 target.
4843
4844 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
4845
4846         PR plugins/44459
4847         * gcc-plugin.h: Encapsulate all declarations in extern "C".
4848
4849 2010-06-08  Jan Hubicka  <jh@suse.cz>
4850
4851         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
4852         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
4853
4854 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
4855
4856         PR tree-optimization/39874
4857         PR middle-end/28685
4858         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
4859         Declare.
4860         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
4861         same_bool_result_p): New.
4862         (and_var_with_comparison, and_var_with_comparison_1,
4863         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
4864         (or_var_with_comparison, or_var_with_comparison_1,
4865         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
4866         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
4867         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
4868         of combine_comparisons.
4869         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
4870
4871 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
4872
4873         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
4874         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
4875         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
4876         pdp11_function_value_regno_p): New functions.
4877         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4878         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4879
4880 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
4881
4882         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
4883         Thumb-2 in the MINUS case.
4884
4885 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4886
4887         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
4888
4889         * doc/gty.texi (GTY Options): Document typed GC allocation and
4890         variable_size GTY option.
4891
4892         * ggc-internal.h: New.
4893
4894         * ggc.h: Update copyright year.
4895         (digit_string): Move to stringpool.c.
4896         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
4897         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
4898         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
4899         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
4900         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
4901         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
4902         (ggc_force_collect, ggc_get_size, ggc_statistics)
4903         (ggc_print_common_statistics): Move to ggc-internal.h.
4904         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
4905         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
4906         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
4907         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
4908         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
4909         (ggc_alloc_zone_pass_stat): Remove.
4910         (ggc_internal_alloc_stat, ggc_internal_alloc)
4911         (ggc_internal_cleared_alloc_stat): New.
4912         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
4913         (ggc_internal_vec_alloc_stat)
4914         (ggc_internal_cleared_vec_alloc_stat)
4915         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
4916         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
4917         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
4918         (ggc_cleared_alloc_ptr_array_two_args): New.
4919         (htab_create_ggc, splay_tree_new_ggc): Redefine.
4920         (ggc_splay_alloc): Change the type of the first argument to
4921         enum gt_types_enum.
4922         (ggc_alloc_string): Make macro.
4923         (ggc_alloc_string_stat): New.
4924         (ggc_strdup): Redefine.
4925         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
4926         (ggc_alloc_rtvec_sized): New.
4927         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
4928         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
4929         (ggc_internal_cleared_alloc_zone_stat)
4930         (ggc_internal_zone_alloc_stat)
4931         (ggc_internal_zone_cleared_alloc_stat)
4932         (ggc_internal_zone_vec_alloc_stat)
4933         (ggc_alloc_zone_rtx_def_stat)
4934         (ggc_alloc_zone_tree_node_stat)
4935         (ggc_alloc_zone_cleared_tree_node_stat)
4936         (ggc_alloc_cleared_gimple_statement_d_stat): New.
4937
4938         * ggc-common.c: Include ggc-internal.h.
4939         (ggc_internal_cleared_alloc_stat): Rename from
4940         ggc_alloc_cleared_stat.
4941         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
4942         (ggc_calloc): Remove.
4943         (ggc_cleared_alloc_htab_ignore_args): New.
4944         (ggc_cleared_alloc_ptr_array_two_args): New.
4945         (ggc_splay_alloc): Add obj_type parameter.
4946         (init_ggc_heuristics): Formatting fixes.
4947
4948         * ggc-none.c: Update copyright year.
4949         (ggc_alloc_stat): Rename to ggc_alloc_stat.
4950         (ggc_alloc_cleared_stat): Rename to
4951         ggc_internal_cleared_alloc_stat.
4952         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
4953
4954         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
4955         Remove references to ggc_alloc in comments.
4956         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
4957         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
4958         (new_ggc_zone, destroy_ggc_zone): Remove.
4959         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
4960
4961         * ggc-zone.c: Include ggc-internal.h.  Remove references to
4962         ggc_alloc in comments.
4963         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
4964         (ggc_internal_alloc_zone_pass_stat): New.
4965         (ggc_internal_cleared_alloc_zone_stat): New.
4966         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
4967         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
4968         (new_ggc_zone, destroy_ggc_zone): Remove.
4969
4970         * stringpool.c: Update copyright year.  Include ggc-internal.h
4971         (digit_vector): Make static.
4972         (digit_string): Moved from ggc.h.
4973         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
4974         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
4975
4976         * Makefile.in (GGC_INTERNAL_H): New.
4977         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
4978         $(GGC_INTERNAL_H) to dependencies.
4979
4980         * gentype.c: Update copyright year.
4981         (walk_type): Accept variable_size GTY option.
4982         (USED_BY_TYPED_GC_P): New macro.
4983         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
4984         whitespace at the end of strings.
4985         (get_type_specifier, variable_size_p): New functions.
4986         (alloc_quantity, alloc_zone): New enums.
4987         (write_typed_alloc_def): New function.
4988         (write_typed_struct_alloc_def): Likewise.
4989         (write_typed_typed_typedef_alloc_def): Likewise.
4990         (write_typed_alloc_defns): Likewise.
4991         (output_typename, write_splay_tree_allocator_def): Likewise.
4992         (write_splay_tree_allocators): Likewise.
4993         (main): Call write_typed_alloc_defns and
4994         write_splay_tree_allocators.
4995
4996         * lto-streamer.h (lto_file_decl_data_ptr): New.
4997
4998         * passes.c (order): Define using cgraph_node_ptr.
4999
5000         * strinpool.c (struct string_pool_data): Declare nested_ptr using
5001         ht_identifier_ptr.
5002
5003         * gimple.h (union gimple_statement_d): Likewise.
5004
5005         * rtl.h (struct rtx_def): Likewise.
5006         (struct rtvec_def): Likewise.
5007
5008         * tree.h (union tree_node): Likewise.
5009
5010         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
5011
5012         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
5013
5014         * tree-scalar-evolution.c (scev_initialize): Likewise.
5015
5016         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
5017
5018         * dwarf2asm.c (dw2_force_const_mem): Likewise.
5019
5020         * omp-low.c (lower_omp_critical): Likewise.
5021
5022         * bitmap.h (struct bitmap_head_def): Update comment to not
5023         reference ggc_alloc.
5024
5025         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
5026
5027         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
5028
5029         * ipa-prop.c (duplicate_ggc_array): Rename to
5030         duplicate_ipa_jump_func_array.  Use typed GC allocation.
5031         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
5032
5033         * gimple.c (gimple_alloc_stat): Use
5034         ggc_alloc_cleared_gimple_statement_d_stat.
5035
5036         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
5037
5038         * tree.c (make_node_stat): Use
5039         ggc_alloc_zone_cleared_tree_node_stat.
5040         (make_tree_vec_stat): Likewise.
5041         (build_vl_exp_stat): Likewise.
5042         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
5043         (make_tree_binfo_stat): Likewise.
5044         (tree_cons_stat): Likewise.
5045
5046         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
5047         (shallow_copy_rtx_stat): Likewise.
5048         (make_node_stat): Likewise.
5049
5050         * lto-symtab.c: Fix comment.
5051
5052         * tree-cfg.c (create_bb): Update comment to not reference
5053         ggc_alloc_cleared.
5054         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
5055
5056         * varpool.c (varpool_node): Use typed GC allocation.
5057         (varpool_extra_name_alias): Likewise.
5058
5059         * varasm.c (emutls_decl): Likewise.
5060         (get_unnamed_section): Likewise.
5061         (get_noswitch_section): Likewise.
5062         (get_section): Likewise.
5063         (get_block_for_section): Likewise.
5064         (build_constant_desc): Likewise.
5065         (create_constant_pool): Likewise.
5066         (force_const_mem): Likewise.
5067
5068         * tree.c (build_vl_exp_stat): Likewise.
5069         (build_real): Likewise.
5070         (build_string): Likewise.
5071         (decl_debug_expr_insert): Likewise.
5072         (decl_value_expr_insert): Likewise.
5073         (type_hash_add): Likewise.
5074         (build_omp_clause): Likewise.
5075
5076         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
5077
5078         * tree-ssa.c (init_tree_ssa): Likewise.
5079
5080         * tree-ssa-structalias.c (heapvar_insert): Likewise.
5081
5082         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
5083
5084         * tree-ssa-loop-niter.c (record_estimate): Likewise.
5085
5086         * tree-ssa-alias.c (get_ptr_info): Likewise.
5087
5088         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
5089
5090         * tree-phinodes.c (allocate_phi_node): Likewise.
5091
5092         * tree-iterator.c (tsi_link_before): Likewise.
5093         (tsi_link_after): Likewise.
5094
5095         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
5096
5097         * tree-dfa.c (create_var_ann): Likewise.
5098
5099         * tree-cfg.c (create_bb): Likewise.
5100
5101         * toplev.c (alloc_for_identifier_to_locale): Likewise.
5102         (general_init): Likewise.
5103
5104         * stringpool.c (stringpool_ggc_alloc): Likewise.
5105         (gt_pch_save_stringpool): Likewise.
5106
5107         * sese.c (if_region_set_false_region): Likewise.
5108
5109         * passes.c (do_per_function_toporder): Likewise.
5110
5111         * optabs.c (set_optab_libfunc): Likewise.
5112         (set_conv_libfunc): Likewise.
5113
5114         * lto-symtab.c (lto_symtab_register_decl): Likewise.
5115
5116         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
5117         (input_eh_region): Likewise.
5118         (input_eh_lp): Likewise.
5119         (make_new_block): Likewise.
5120         (unpack_ts_real_cst_value_fields): Likewise.
5121
5122         * lto-section-in.c (lto_new_in_decl_state): Likewise.
5123
5124         * lto-cgraph.c (input_node_opt_summary): Likewise.
5125
5126         * loop-init.c (loop_optimizer_init): Likewise.
5127
5128         * lambda.h (lambda_vector_new): Likewise.
5129
5130         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
5131
5132         * ira.c (update_equiv_regs): Likewise.
5133
5134         * ipa.c (cgraph_node_set_new): Likewise.
5135         (cgraph_node_set_add): Likewise.
5136         (varpool_node_set_new): Likewise.
5137         (varpool_node_set_add): Likewise.
5138
5139         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
5140         (duplicate_ipa_jump_func_array): Likewise.
5141         (ipa_read_node_info): Likewise.
5142
5143         * ipa-cp.c (ipcp_create_replace_map): Likewise.
5144
5145         * integrate.c (get_hard_reg_initial_val): Likewise.
5146
5147         * gimple.c (gimple_alloc_stat): Likewise.
5148         (gimple_build_omp_for): Likewise.
5149         (gimple_seq_alloc): Likewise.
5150         (gimple_copy): Likewise.
5151
5152         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
5153         (gsi_insert_after_without_update): Likewise.
5154
5155         * function.c (add_frame_space): Likewise.
5156         (insert_temp_slot_address): Likewise.
5157         (assign_stack_temp_for_type): Likewise.
5158         (allocate_struct_function): Likewise.
5159         (types_used_by_var_decl_insert): Likewise.
5160
5161         * except.c (init_eh_for_function): Likewise.
5162         (gen_eh_region): Likewise.
5163         (gen_eh_region_catch): Likewise.
5164         (gen_eh_landing_pad): Likewise.
5165         (add_call_site): Likewise.
5166
5167         * emit-rtl.c (get_mem_attrs): Likewise.
5168         (get_reg_attrs): Likewise.
5169         (start_sequence): Likewise.
5170         (init_emit): Likewise.
5171
5172         * dwarf2out.c (new_cfi): Likewise.
5173         (queue_reg_save): Likewise.
5174         (dwarf2out_frame_init): Likewise.
5175         (new_loc_descr): Likewise.
5176         (find_AT_string): Likewise.
5177         (new_die): Likewise.
5178         (add_var_loc_to_decl): Likewise.
5179         (clone_die): Likewise.
5180         (clone_as_declaration): Likewise.
5181         (break_out_comdat_types): Likewise.
5182         (new_loc_list): Likewise.
5183         (loc_descriptor): Likewise.
5184         (add_loc_descr_to_each): Likewise.
5185         (add_const_value_attribute): Likewise.
5186         (tree_add_const_value_attribute): Likewise.
5187         (add_comp_dir_attribute): Likewise.
5188         (add_name_and_src_coords_attributes): Likewise.
5189         (lookup_filename): Likewise.
5190         (store_vcall_insn): Likewise.
5191         (dwarf2out_init): Likewise.
5192
5193         * dbxout.c (dbxout_init): Likewise.
5194
5195         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
5196
5197         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
5198
5199         * config/score/score7.c (score7_output_external): Likewise.
5200
5201         * config/score/score3.c (score3_output_external): Likewise.
5202
5203         * config/s390/s390.c (s390_init_machine_status): Likewise.
5204
5205         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
5206         (rs6000_init_machine_status): Likewise.
5207         (output_toc): Likewise.
5208
5209         * config/pa/pa.c (pa_init_machine_status): Likewise.
5210         (get_deferred_plabel): Likewise.
5211
5212         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
5213
5214         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
5215
5216         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
5217
5218         * config/mep/mep.c (mep_init_machine_status): Likewise.
5219         (mep_note_pragma_flag): Likewise.
5220
5221         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
5222
5223         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
5224
5225         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
5226
5227         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
5228         (i386_pe_maybe_record_exported_symbol): Likewise.
5229
5230         * config/i386/i386.c (get_dllimport_decl): Likewise.
5231         (ix86_init_machine_status): Likewise.
5232         (assign_386_stack_local): Likewise.
5233
5234         * config/frv/frv.c (frv_init_machine_status): Likewise.
5235
5236         * config/darwin.c (machopic_indirection_name): Likewise.
5237
5238         * config/cris/cris.c (cris_init_machine_status): Likewise.
5239
5240         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
5241
5242         * config/avr/avr.c (avr_init_machine_status): Likewise.
5243
5244         * config/arm/arm.c (arm_init_machine_status): Likewise.
5245
5246         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
5247         (alpha_need_linkage): Likewise.
5248         (alpha_use_linkage): Likewise.
5249
5250         * cgraph.c (cgraph_allocate_node): Likewise.
5251         (cgraph_create_edge_1): Likewise.
5252         (cgraph_create_indirect_edge): Likewise.
5253         (cgraph_add_asm_node): Likewise.
5254
5255         * cfgrtl.c (init_rtl_bb_info): Likewise.
5256
5257         * cfgloop.c (alloc_loop): Likewise.
5258         (rescan_loop_exit): Likewise.
5259
5260         * cfg.c (init_flow): Likewise.
5261         (alloc_block): Likewise.
5262         (unchecked_make_edge): Likewise.
5263
5264         * c-parser.c (c_parse_init): Likewise.
5265         (c_parse_file): Likewise.
5266
5267         * c-decl.c (bind): Likewise.
5268         (record_inline_static): Likewise.
5269         (push_scope): Likewise.
5270         (make_label): Likewise.
5271         (lookup_label_for_goto): Likewise.
5272         (finish_struct): Likewise.
5273         (finish_enum): Likewise.
5274         (c_push_function_context): Likewise.
5275
5276         * bitmap.c (bitmap_element_allocate): Likewise.
5277         (bitmap_gc_alloc_stat): Likewise.
5278
5279         * alias.c (record_alias_subset): Likewise.
5280         (init_alias_analysis): Likewise.
5281
5282 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
5283
5284         * fold-const.c (fold_comparison): Remove redundant parenthesis.
5285         * tree-inline.c (expand_call_inline): Pass translated return value of
5286         cgraph_inline_failed_string to diagnostic function.
5287
5288 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
5289             Shujing Zhao  <pearly.zhao@oracle.com>
5290
5291         PR c/37724
5292         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
5293         implicit bad conversions is initialization.
5294         (error_init): Use gmsgid instead of msgid for argument name and change
5295         the call for error.
5296         (pedwarn_init): Use gmsgid instead of msgid for argument name and
5297         change the call for pedwarn.
5298         (warning_init): Use gmsgid instead of msgid for argument name and
5299         change the call for warning.
5300
5301 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
5302
5303         * config/mips/mips-protos.h (mips_print_operand): Delete.
5304         (mips_print_operand_address): Delete.
5305         * config/mips/mips.h (mips_print_operand_punct): Delete.
5306         (PRINT_OPERAND): Delete.
5307         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5308         (PRINT_OPERAND_ADDRESS): Delete.
5309         * config/mips/mips.c (mips_print_operand_punct): Make static.
5310         (mips_print_operand_address): Make static.
5311         (mips_print_operand): Make static.  Call
5312         mips_print_operand_punct_valid_p.
5313         (mips_print_operand_punct_valid_p): New function.
5314         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5315         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5316
5317 2010-06-07  Jan Hubicka  <jh@suse.cz>
5318
5319         PR middle-end/44454
5320         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
5321         are allocated.
5322
5323 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
5324
5325         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
5326         name of RECORD.
5327
5328 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5329
5330         * doc/sourcebuild.texi (Effective-Target Keywords, Other
5331         attributes): Document gas.
5332
5333 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
5334
5335         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
5336         <TYPE_LEA>: Split instruction.
5337         <default>: Remove alternative 2 handling.
5338         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
5339         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
5340         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
5341
5342         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
5343         (ashift_zext lea splitter): Use DImode for multiplication.
5344
5345         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
5346         to generate addition.
5347
5348 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
5349
5350         * common.opt (fira-verbose): Use Var.
5351         (fpcc-struct-return): Use Init instead of VarExists.
5352         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
5353         toplev.c.
5354         * flags.h (flag_signed_char, flag_short_enums,
5355         flag_pcc_struct_return, flag_ira_verbose,
5356         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
5357         * toplev.c (flag_detailed_statistics, flag_signed_char,
5358         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
5359         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
5360         * toplev.h (flag_crossjumping, flag_if_conversion,
5361         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
5362         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
5363         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
5364         flag_cprop_registers, time_report, flag_ira_loop_pressure,
5365         flag_ira_coalesce, flag_ira_move_spills,
5366         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
5367
5368 2010-06-07  Jan Hubicka  <jh@suse.cz>
5369
5370         * df-core.c (df_analyze_problem): Do verification after allocation.
5371
5372         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
5373         (df_lr_alloc): Initialize problem data; move bitmaps to
5374         lr_bitmaps obstack.
5375         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
5376         (df_lr_verify_solution_start): Do not initialize problem data;
5377         allocate bitmaps in lr_bitmaps.
5378         (df_lr_verify_solution_end): Do not free problem data.
5379
5380 2010-06-07  Jan Hubicka  <jh@suse.cz>
5381
5382         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
5383         if caller is noreturn.
5384         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
5385         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
5386         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
5387         * ipa-pure-const.c (check_decl): Add IPA parameter.
5388         (state_from_flags): New function.
5389         (better_state, worse_state): New functions.
5390         (check_call): When in IPA mode, do not care about callees.
5391         (check_load, check_store): Update.
5392         (check_ipa_load, check_ipa_store): New.
5393         (check_stmt): When in IPA mode, use IPA checkers.
5394         (analyze_function): Use state_from_flags.
5395         (propagate): Check indirect edges and references.
5396
5397 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
5398
5399         PR rtl-optimization/44404
5400         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
5401         of count_occurrences to see if it's safe to modify mem_insn.
5402
5403 2010-06-07  Richard Guenther  <rguenther@suse.de>
5404
5405         * gimplify.c (gimplify_cleanup_point_expr): For empty body
5406         and EH-only cleanup drop the cleanup instead of inserting it
5407         unconditionally.
5408
5409 2010-06-07  Ira Rosen  <irar@il.ibm.com>
5410
5411         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
5412         documentation.
5413         * targhooks.c (default_builtin_vectorization_cost): New function.
5414         * targhooks.h (default_builtin_vectorization_cost): Declare.
5415         * target.h (enum vect_cost_for_stmt): Define.
5416         (builtin_vectorization_cost): Change argument and comment.
5417         * tree-vectorizer.h: Remove cost model macros.
5418         * tree-vect-loop.c: Include target.h.
5419         (vect_get_cost): New function.
5420         (vect_estimate_min_profitable_iters): Replace cost model macros with
5421         calls to vect_get_cost.
5422         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
5423         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
5424         default implementation.
5425         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
5426         calls to target hook builtin_vectorization_cost.
5427         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
5428         Likewise.
5429         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
5430         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
5431         implementation to return costs.
5432         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
5433         * config/spu/spu.h: Remove vectorizer cost model macros.
5434         * config/i386/i386.h: Likewise.
5435         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
5436         a call to target hook builtin_vectorization_cost.
5437
5438 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
5439
5440         PR target/44319
5441         * config/i386/i386.c (override_options): Turn zee pass on for level 2
5442         and above and defer till target is known.
5443         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
5444         turn off otherwise.
5445
5446 2010-05-25  Jan Hubicka  <jh@suse.cz>
5447
5448         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
5449         (df_compact_blocks): Likewise.
5450         * df.h (struct df): Turn hardware_regs_used,
5451         regular_block_artificial_uses, eh_block_artificial_uses,
5452         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
5453         bitmap_head.
5454         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
5455         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
5456         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
5457         df_scan_blocks, df_insn_delete, df_insn_rescan,
5458         df_insn_rescan_debug_internal, df_insn_rescan_all,
5459         df_process_deferred_rescans, df_process_deferred_rescans,
5460         df_notes_rescan, df_get_call_refs, df_get_call_refs,
5461         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
5462         df_record_entry_block_defs, df_record_exit_block_uses,
5463         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
5464         df_scan_verify): Update.
5465
5466 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
5467
5468         PR c++/44188
5469         * c-common.c (is_typedef_decl): Move this definition ...
5470         * tree.c (is_typedef_decl): ... here.
5471         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
5472         * c-common.h (is_typedef_decl): Move this declaration ...
5473         * tree.h (is_typedef_decl): ... here.
5474         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
5475         * dwarf2out.c (is_naming_typedef_decl): New function.
5476         (gen_tagged_type_die): Split out of ...
5477         (gen_type_die_with_usage): ... this function. When an anonymous
5478         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
5479         is emitted for the typedef.
5480         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
5481         anonymous tagged types.
5482
5483 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5484
5485         PR c/20000
5486         * c-decl.c (grokdeclarator): Delete warning.
5487
5488 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
5489
5490         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
5491         newly built CALL_EXPR.
5492         * tree-profile.c (tree_profiling): Don't profile functions produced
5493         for built-in stuff.
5494
5495 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
5496
5497         PR bootstrap/44427
5498         PR bootstrap/44428
5499         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
5500         endianness-independent.
5501
5502 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
5503
5504         * c-common.c: Move to c-family/.
5505         * c-common.def: Likewise.
5506         * c-common.h: Likewise.
5507         * c-cppbuiltin.c: Likewise.
5508         * c-dump.c: Likewise.
5509         * c-format.c: Likewise.
5510         * c-format.h : Likewise.
5511         * c-gimplify.c: Likewise.
5512         * c-lex.c: Likewise.
5513         * c-omp.c: Likewise.
5514         * c.opt: Likewise.
5515         * c-opts.c: Likewise.
5516         * c-pch.c: Likewise.
5517         * c-ppoutput.c: Likewise.
5518         * c-pragma.c: Likewise.
5519         * c-pragma.h: Likewise.
5520         * c-pretty-print.c: Likewise.
5521         * c-pretty-print.h: Likewise.
5522         * c-semantics.c: Likewise.
5523         * stub-objc.c: Likewise.
5524
5525         * gengtype.c (get_file_langdir): Special-case files in c-family/.
5526         (get_output_file_with_visibility): Fix name for c-common.h.
5527         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
5528
5529         * c-tree.h: Update include path for moved files.
5530         * c-lang.c: Likewise.
5531         * c-lang.h: Likewise.
5532         * c-parser.c: Likewise.
5533         * c-convert.c: Likewise.
5534         * c-decl.c: Likewise.
5535         * c-objc-common.c: Likewise.
5536         * configure.ac: Make sure c-family/ exists in the build directory.
5537         * configure: Regenerate.
5538         * Makefile.in: Update paths for moved files.  Regroup files per
5539         location and update dependencies.  Move generated_files down after
5540         ALL_GTFILES_H.
5541
5542         * config/spu/spu-c.c: Update paths for moved files.
5543         * config/mep/mep-pragma.c: Likewise.
5544         * config/darwin-c.c: Likewise.
5545         * config/i386/msformat-c.c: Likewise.
5546         * config/i386/i386-c.c: Likewise.
5547         * config/avr/avr-c.c: Likewise.
5548         * config/sol2-c.c: Likewise.
5549         * config/ia64/ia64-c.c: Likewise.
5550         * config/rs6000/rs6000-c.c: Likewise.
5551         * config/arm/arm.c: Likewise.
5552         * config/arm/arm-c.c: Likewise.
5553         * config/h8300/h8300.c: Likewise.
5554         * config/v850/v850-c.c: Likewise.
5555
5556         * config/t-darwin: Fix dependencies for moved files.
5557         * config/t-sol2: Fix dependencies for moved files.
5558         * config/mep/t-mep: Fix dependencies for moved files.
5559         * config/ia64/t-ia64: Fix dependencies for moved files.
5560         * config/rs6000/t-rs6000: Fix dependencies for moved files.
5561         * config/v850/t-v850: Fix dependencies for moved files.
5562         * config/v850/t-v850e: Fix dependencies for moved files.
5563
5564         * config/m32c/m32c-pragma.c
5565
5566         * po/exgettext: Look in c-family/ also.
5567
5568 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
5569
5570         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
5571         (mark_control_dependent_edges_necessary): Call it instead of marking
5572         the last statement manually.
5573         (propagate_necessity): Likewise.
5574
5575 2010-06-05  Jan Hubicka  <jh@suse.cz>
5576
5577         * basic-block.h (compute_dominance_frontiers): Updated.
5578         (compute_idf): Likewise.
5579
5580         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
5581         for dominance frontiers.
5582         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
5583         (insert_updated_phi_nodes_for): Likewise.
5584         (update_ssa): Likewise.
5585         * cfganal.c (compute_dominance_frontiers_1): Likewise.
5586         (compute_dominance_frontiers): Likewise.
5587         (compute_idf): Likewise.
5588         * df-problems.c (df_md_local_compute): Likewise.
5589
5590 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
5591
5592         * target.h (struct gcc_target): Add memory_move_cost field.
5593         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
5594         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
5595         * targhooks.c (default_memory_move_cost): New function.
5596         * targhooks.h (default_memory_move_cost): Declare function.
5597         * reload.h (memory_move_cost): Declare.
5598         (memory_move_secondary_cost): Change type of 'in' argument to bool.
5599         * reginfo.c (memory_move_cost): New function.
5600         (memory_move_secondary_cost): Change type of 'in' argument to bool.
5601         * ira.h (ira_memory_move_cost): Update comment.
5602         * ira.c: (ira_memory_move_cost): Update comment.
5603         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
5604         with memory_move_cost.
5605         * postreload.c (reload_cse_simplify_set): (Ditto.).
5606         * reload1.c (choose_reload_regs): (Ditto.).
5607         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
5608         (MEMORY_MOVE_COST):  Revise documentation.
5609
5610         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
5611         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
5612         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
5613         type of 'in' argument to bool.
5614         (TARGET_MEMORY_MOVE_COST): Define.
5615
5616 2010-06-05  Jan Hubicka  <jh@suse.cz>
5617
5618         * ipa-pure-const.c (propagate): Fix typo in handling of functions
5619         that cannot return.  Be more careful when merging the results with
5620         previously known ones.
5621
5622 2010-06-05  Matthias Klose  <doko@ubuntu.com>
5623
5624         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
5625         function to add the -iplugindir option.
5626         (find_plugindir_spec_function): Add new declaration and function.
5627         (static_spec_func): Use it for "find-plugindir".
5628
5629 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
5630
5631         PR c++/44361
5632         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
5633         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
5634         statement expression.
5635
5636 2010-06-05  Jan Hubicka  <jh@suse.cz>
5637
5638         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
5639         (df_rd_problem_data): Convert sparse_invalidated_by_call,
5640         dense_invalidated_by_call to bitmap head.
5641         (df_rd_alloc, df_rd_bb_local_compute_process_def,
5642         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
5643         df_rd_start_dump, df_lr_verify_transfer_functions,
5644         df_live_verify_transfer_functions, df_chain_create_bb,
5645         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
5646         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
5647         df_simulate_one_insn_forwards, df_md_alloc,
5648         df_md_bb_local_compute_process_def,
5649         df_md_bb_local_compute_process_def, df_md_local_compute,
5650         df_md_transfer_function df_md_free): Update.
5651
5652 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
5653
5654         PR c/44322
5655         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
5656         target type for ADDR_EXPR; require no changes to qualifiers except
5657         for function types.
5658         * c-tree.h (c_build_type_variant): Remove.
5659
5660 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
5661
5662         * genautomata.c (get_excl_set): Do work per element, not per char.
5663         (check_presence_pattern_sets): Similar.
5664         (check_absence_pattern_sets): Similar.
5665
5666 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
5667
5668         * genautomata.c (curr_state_pass_num): Delete.
5669         (min_issue_delay_pass_states): Delete.
5670         (min_issue_delay): Delete.
5671         (initiate_min_issue_delay_pass_states): Delete.
5672         (output_min_issue_delay_table): Compute min_issue_delay_vect
5673         using a breadth-first search variant.
5674         (output_tables): Don't call initiate_min_issue_delay_pass_states.
5675
5676 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
5677
5678         PR boostrap/44421
5679         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
5680         (df_byte_lr_bb_local_compute): Likewise.
5681
5682 2010-06-03  Jason Merrill  <jason@redhat.com>
5683
5684         Implement noexcept operator (5.3.7)
5685         * c-common.c (c_common_reswords): Add noexcept.
5686         * c-common.h (enum rid): Add RID_NOEXCEPT.
5687
5688 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
5689
5690         * config/darwin-driver.c (darwin_default_min_version): Use
5691         GCC-specific formats in diagnostics.
5692         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
5693         diagnostics.
5694         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
5695         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
5696         eval_spec_function, handle_braces, process_brace_body, main,
5697         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
5698         getenv_spec_function, compare_version_strings,
5699         version_compare_spec_function): Use GCC-specific formats in
5700         diagnostics.
5701
5702 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
5703
5704         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
5705         that operand 0 and operand 1 are equal.
5706         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
5707         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
5708         and operand 1 are equal.
5709         <default>: Ditto.  Remove ??? comment.
5710         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
5711         and operand 1 are equal.
5712         <default>: Ditto.  Remove ??? comment.
5713         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
5714         are equal.
5715         (*add<mode>_4) <default>: Ditto.
5716         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
5717
5718 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
5719
5720         * config/i386/i386-protos.h (ix86_print_operand): Declare.
5721         * config/i386/i386.c (ix86_print_operand): Make non-static.
5722         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
5723         * output.h (output_operand): Declare.
5724         * final.c (output_operand): Make non-static.
5725
5726 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
5727
5728         PR rtl-optimization/44013
5729         * sched-deps.c (add_dependence_list_and_free): Don't free lists
5730         when processing debug insns.
5731
5732         PR debug/41371
5733         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
5734         recursing.  Check that recursion is bounded.  Rename inner var
5735         to avoid hiding incoming argument.
5736
5737 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
5738
5739         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
5740         operands[2] == 255.
5741         (*addqi_3): Ditto.
5742         (*addqi_4): Ditto.
5743         (*addqi_5): Ditto.
5744         (*addqi_ext_1_rex64): Ditto.
5745         (*addqi_ext_1): Ditto.
5746
5747         (*addqi_4): Check for incdec_operand in QImode.
5748
5749         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
5750         using SWI mode iterator.
5751         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
5752         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
5753         mode iterator.
5754         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
5755         using SWI mode iterator.
5756
5757 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5758
5759         PR c/25880
5760         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
5761         * c-format.c (gcc_diag_flag_specs): Add hash.
5762         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
5763         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
5764         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
5765         pp_c_cv_qualifiers. Handle qualifiers spelling here.
5766         (pp_c_type_qualifier_list): Call the function above.
5767         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
5768         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
5769         (WARN_FOR_QUALIFIERS): New macro.
5770         (convert_for_assignment): Use it.
5771
5772 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
5773
5774         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
5775
5776 2010-06-04  Jan Hubicka  <jh@suse.cz>
5777
5778         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
5779         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
5780         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
5781         DF_BYTE_LR_OUT): Update for embedded bitmaps.
5782         * fwprop.c (single_def_use_enter_block): Likewise.
5783         * ddg.c (create_ddg_dep_from_intra_loop_link,
5784         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
5785         * loop-iv.c (latch_dominating_def): Likewise.
5786         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
5787         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
5788         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
5789         df_rd_transfer_function, df_rd_top_dump,
5790         df_rd_bottom_dump): Update.
5791         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
5792         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
5793         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
5794         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
5795         df_lr_verify_solution_start, df_lr_verify_solution_end,
5796         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
5797         df_live_free_bb_info, df_live_alloc, df_live_reset,
5798         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
5799         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
5800         df_live_verify_solution_start, df_live_verify_solution_end,
5801         df_live_verify_transfer_functions, df_chain_create_bb,
5802         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
5803         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
5804         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
5805         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
5806         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
5807         df_byte_lr_transfer_function, df_byte_lr_top_dump,
5808         df_byte_lr_bottom_dump, df_create_unused_note,
5809         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
5810         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
5811         df_md_transfer_function, df_md_init, df_md_confluence_0,
5812         df_md_confluence_n,
5813         df_md_top_dump, df_md_bottom_dump): Update.
5814         (struct df_lr_problem_data): Embedd bitmap headers.
5815
5816 2010-06-04  Jan Hubicka  <jh@suse.cz>
5817
5818         * dce.c (dce_process_block): Do not re-scan already marked
5819         instructions.
5820
5821 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
5822
5823         PR rtl-optimization/39871
5824         PR rtl-optimization/40615
5825         PR rtl-optimization/42500
5826         PR rtl-optimization/42502
5827         * ira.c (init_reg_equiv_memory_loc: New function.
5828         (ira): Call it twice.
5829         * reload.h (calculate_elim_costs_all_insns): Declare.
5830         * ira-costs.c: Include "reload.h".
5831         (regno_equiv_gains): New static variable.
5832         (init_costs): Allocate it.
5833         (finish_costs): Free it.
5834         (ira_costs): Call calculate_elim_costs_all_insns.
5835         (find_costs_and_classes): Take estimated elimination costs
5836         into account.
5837         (ira_adjust_equiv_reg_cost): New function.
5838         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
5839         * reload1.c (init_eliminable_invariants, free_reg_equiv,
5840         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
5841         (elim_bb): New static variable.
5842         (reload): Move code out of here into init_eliminable_invariants and
5843         free_reg_equiv.  Call them.
5844         (calculate_elim_costs_all_insns): New function.
5845         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
5846         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
5847         but call note_reg_elim_costly if we turned a valid memory address
5848         into an invalid one.
5849         * Makefile.in (ira-costs.o): Depend on reload.h.
5850
5851 2010-06-04  Julian Brown  <julian@codesourcery.com>
5852
5853         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
5854         for pool ranges.
5855
5856 2010-06-04  Richard Guenther  <rguenther@suse.de>
5857
5858         PR lto/41584
5859         * cgraph.h (struct varpool_node): Add lto_file_data field.
5860         * lto-cgraph.c (input_varpool_node): Initialize it.
5861
5862 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
5863
5864         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
5865         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
5866         predicate in "type" attribute calculation.
5867         (*addsi_1_zext): Ditto.
5868         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
5869         (*addsi_2_zext): Ditto.
5870         (*add<mode>_3): Ditto.
5871         (*addsi_3_zext): Ditto.
5872         (*add<mode>_5): Ditto.
5873
5874 2010-06-03  Jan Hubicka  <jh@suse.cz>
5875
5876         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
5877         of bitmap_bit_p.
5878         * cfganal.c (compute_dominance_frontiers_1): Likewise.
5879
5880 2010-06-03  Jan Hubicka  <jh@suse.cz>
5881
5882         * df-problems.c (df_create_unused_note, df_note_bb_compute):
5883         micro-optimize the checks when to add new note.
5884
5885 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
5886
5887         * final.c (output_asm_insn): Call
5888         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
5889         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
5890         (output_address): Call targetm.asm_out.print_operand_address.
5891         Update comments.
5892         * target.h (struct gcc_target): Add print_operand,
5893         print_operand_address, and print_operand_punct_valid_p fields.
5894         * targhooks.h (default_print_operand): Declare.
5895         (default_print_operand_address): Declare.
5896         (default_print_operand_punct_valid_p): Declare.
5897         * targhooks.c (default_print_operand): Define.
5898         (default_print_operand_address): Define.
5899         (default_print_operand_punct_valid_p): Define.
5900         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
5901         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
5902         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
5903         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
5904         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
5905         * vmsdbgout.c (addr_const_to_string): Update comment.
5906         * config/i386/i386.c (print_operand): Rename to...
5907         (ix86_print_operand): ...this.  Make static.
5908         (print_operand_address): Rename to...
5909         (ix86_print_operand_address): ...this.  Make static.  Call
5910         ix86_print_operand instead of PRINT_OPERAND.
5911         (ix86_print_operand_punct_valid_p): New function.
5912         (TARGET_PRINT_OPERAND): Define.
5913         (TARGET_PRINT_OPERAND_ADDRESS): Define.
5914         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5915         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
5916         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5917         (PRINT_OPERAND): Delete.
5918         (PRINT_OPERAND_ADDRESS): Delete.
5919         * config/i386/i386-protos.h (print_operand): Delete prototype.
5920         (print_operand_address): Delete prototype.
5921
5922 2010-06-03  Richard Guenther  <rguenther@suse.de>
5923
5924         PR tree-optimization/44403
5925         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
5926         Preserve pointer qualifiers.
5927         (vect_create_data_ref_ptr): Likewise.
5928
5929 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
5930
5931         PR c++/44294
5932         * defaults.h (MAX_FIXED_MODE_SIZE): New.
5933
5934         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
5935
5936 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
5937
5938         PR debug/44375
5939         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
5940         return false if merging the bbs would lead to goto_locus
5941         location being lost from the IL.
5942
5943 2010-06-03  Jan Hubicka  <jh@suse.cz>
5944             Jakub Jelinek  <jakub@redhat.com>
5945
5946         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
5947         set->regs[i] is NULL or has just one entry.
5948
5949 2010-06-03  Jan Hubicka  <jh@suse.cz>
5950
5951         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
5952         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
5953
5954 2010-06-03  Paul Brook  <paul@codesourcery.com>
5955
5956         * config/arm/arm.c (FL_TUNE): Define.
5957         (arm_default_cpu, arm_cpu_select): Remove.
5958         (all_cores): Populate core field.
5959         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
5960         (arm_find_cpu): New function.
5961         (arm_handle_option): Lookup cpu/architecture names.
5962         (arm_override_options): Cleanup mcpu/march/mtune handling.
5963         (arm_file_start): Ditto.
5964
5965 2010-06-03  Alan Modra  <amodra@gmail.com>
5966
5967         PR target/44169
5968         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
5969         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
5970         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
5971         (rs6000_emit_load_toc_table): Likewise.
5972
5973 2010-06-02  Jan Hubicka  <jh@suse.cz>
5974
5975         * passes.c (init_optimization_passes): Put ipa reference
5976         after ipa pure-const.
5977
5978 2010-06-02  Jan Hubicka  <jh@suse.cz>
5979
5980         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
5981         calls_read_all and calls_write_all.
5982         (get_reference_optimization_summary): Fix formatting.
5983         (is_proper_for_analysis): Check that decl is not readonly.
5984         (propagate_bits): Check CONST/PURE/noreturn flags.
5985         (ipa_init): Move all_module_statics to optimization_summary_obstack.
5986         (analyze_function): Ignore indirect edges.
5987         (copy_global_bitmap): For all module statics, do nothing.
5988         (generate_summary): Do not print calls_read_all/calls_write_all.
5989         (read_write_all_from_decl): Take node as argument; check
5990         cgraph_node_cannot_return.
5991         (propagate): Reorganize read_all/write_all computation;
5992         check indirect edges; check ecf flags; use all_module_statics
5993         in the results; do not free all_module_statics.
5994         (stream_out_bitmap): Handle all_module_statics.
5995         (ipa_reference_write_optimization_summary): Likewise; use
5996         varpool/cgraph encoders to get boundaries.
5997         (ipa_reference_read_optimization_summary): Read in all_module_statics;
5998         use it when possible.
5999
6000 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
6001
6002         PR target/44218
6003         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
6004         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
6005
6006         * doc/extend.texi (powerpc builtins): Document vec_recip,
6007         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
6008
6009         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
6010         (rs6000_emit_swrsqrt): Ditto.
6011         (rs6000_emit_swdivsf): Delete.
6012         (rs6000_emit_swdivdf): Ditto.
6013         (rs6000_emit_swrsqrtsf): Ditto.
6014
6015         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
6016         describe the reciprocal estimate support for each type.
6017         (recip_options): Map -mrecip=<opt> into option bits.
6018         (gen_2arg_fn_t): New typedef for binary rtx gen function.
6019         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
6020         reciprocal estimate instructions.
6021         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
6022         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
6023         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
6024         cost information if -mdebug=cost or -mdebug=reg.
6025         (rs6000_override_options): Set -mrecip-precision for power6, and
6026         power7 machines.  If -mvsx or -mdfp, enable various options that
6027         came in previous instruction set ISAs, unless the option was
6028         explicitly disabled by the command line option.  Parse
6029         -mrecip=<opt> options.
6030         (rs6000_builtin_vectorized_function): Add support for vectorizing
6031         the reciprocal estimate builtins and expansions.
6032         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
6033         (bdesc_2arg): Add reciprocal estimate builtins.
6034         (bdesc_1arg): Add reciprocal square root estimate builtins.
6035         (rs6000_expand_builtin): Rewrite to use a switch statement,
6036         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
6037         (rs6000_init_builtins): Create declarations for reciprocal
6038         estimate builtins.
6039         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
6040         sized, prefer traditional floating point registers, if integer
6041         vector types, prefer altivec registers.  Don't actually look at
6042         the memory address any more.
6043         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
6044         builtins.
6045         (rs6000_load_constant_and_splat): New helper function to load up
6046         the constant for reciprocal estimate instructions.
6047         (rs6000_emit_madd): New helper function for generating
6048         multiply/add type instructions, based on the current switches.
6049         (rs6000_emit_msub): Ditto.
6050         (rs6000_emit_mnsub): Ditto.
6051         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
6052         replace a divide with a reciprocal estimate and fixup, adding
6053         support for machines with high precision and vectors.
6054         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
6055         low precision machines.
6056         (rs6000_emit_swdiv): New common function to be called to replace a
6057         division with reciprocal estimate and fixup.
6058         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
6059         for double and vector types.  Add support for high precision machines.
6060
6061         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
6062         the reciprocal estimate instructions can be generated.
6063         (TARGET_FRE): Ditto.
6064         (TARGET_FRSQRTES): Ditto.
6065         (TARGET_FRSQRTE): Ditto.
6066         (RS6000_RECIP_*): New macros for reciprocal estimate support.
6067
6068         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
6069         square root estimate on vectors.
6070         (re<mode>2): New insn for reciprocal division estimate on vectors.
6071
6072         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
6073         New builtin.
6074         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
6075         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
6076         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
6077         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
6078         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
6079         (RS6000_BUILTIN_RSQRT): Ditto.
6080         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
6081         floating point builtin.
6082
6083         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
6084         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
6085         __RECIP_PRECISION__ based on the command line switches.
6086         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
6087
6088         * config/rs6000/rs6000.opt (-mrecip): Document add support for
6089         replacing division instructions with reciprocal estimate and fixup.
6090         (-mrecip=<opt>): New option.
6091         (-mrecip-precision): Ditto.
6092
6093         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
6094         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
6095         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
6096         precision scalar.
6097
6098         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
6099         (UNSPEC_VREFP): Ditto.
6100         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
6101         conterparts with regard to support of -mno-fused-madd and -ffast-math.
6102         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
6103         reciprocal estimate instructions to be generated.
6104         (altivec_vrefp): Ditto.
6105
6106         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
6107         estimate support.
6108         (rreg): New mode attribute for reciprocal estimate support.
6109         (recip<mode>3): New insn for division using reciprocal estimate
6110         and fixup builtins.
6111         (divide define_split): New define_split to convert floating point
6112         division to use reciprocal estimate if the user used the
6113         appropriate options and the split is run when we can add new
6114         pseudo registers for the fixup.
6115         (rsqrt<mode>2): New insn for reciprocal square root support.
6116         (recipsf3): Move into recip<mode>3.
6117         (recipdf3): Ditto.
6118         (fres): Use TARGET_FRES.
6119         (rsqrtsf2): Move into rsqrt<mode>2.
6120         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
6121         (copysignsf3): Add support for VSX.
6122         (fred): Use TARGET_FRE.
6123         (fred_fpr): Ditto.
6124         (rsqrtdf_internal1): New function for frsqrte instruciton.
6125
6126         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
6127         (vec_rsqrt): Ditto.
6128
6129 2010-06-03  Richard Guenther  <rguenther@suse.de>
6130
6131         PR middle-end/44291
6132         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
6133         (set_user_assembler_libfunc): Likewise.
6134
6135 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
6136
6137         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
6138         defaults.h.
6139         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
6140         to defaults.h
6141         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
6142         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
6143         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
6144         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
6145         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
6146         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
6147         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
6148         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
6149         * defaults.h: Updated for above mentioned changes.
6150
6151 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
6152
6153         * c-common.c: Remove header include of tm_p.h.
6154         * Makefile.in (c-common.o): Remove TM_P_H dependency.
6155
6156 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
6157
6158         * tree.h (struct tree_decl_map): New type.
6159         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
6160         (tree_decl_map_hash): New prototype.
6161         (debug_expr_for_decl, value_expr_for_decl): Change into
6162         tree_decl_map hashtab from tree_map.
6163         (init_ttree): Adjust initialization.
6164         (tree_decl_map_hash): New function.
6165         (decl_debug_expr_lookup, decl_debug_expr_insert,
6166         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
6167
6168 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6169
6170         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
6171         linker emulations.
6172         * configure: Regenerate.
6173         * config.in: Regenerate.
6174
6175         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
6176         (X86_64_EMULATION): Define.
6177         (TARGET_LD_EMULATION): Use them.
6178
6179         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
6180         (SPARC64_EMULATION): Define.
6181         (LINK_ARCH_SPEC): Use them.
6182
6183 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
6184
6185         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
6186         smallest_mode_for_size for computing the precision types of new
6187         graphite IVs.  Do not call lang_hooks.types.type_for_size.
6188
6189 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
6190
6191         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
6192         information.
6193         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
6194
6195 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
6196
6197         PR middle-end/44363
6198         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
6199         return false instead.
6200
6201 2010-06-02  Jan Hubicka  <jh@suse.cz>
6202
6203         PR middle-end/44295
6204         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
6205         create new cgraph node to check callee.
6206
6207 2010-06-02  Richard Guenther  <rguenther@suse.de>
6208
6209         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
6210
6211 2010-06-02  Richard Guenther  <rguenther@suse.de>
6212
6213         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
6214         (lto_wrapper_cleanup): ... this.  Do not exit.
6215         (fatal): Adjust.  Exit here.
6216         (fatal_perror): Likewise.
6217         (fatal_signal): New function.
6218         (main): Set up signal handlers to cleanup temporary files.
6219         * Makefile.in (lto-wrapper.o): Adjust dependencies.
6220
6221 2010-06-02  Richard Guenther  <rguenther@suse.de>
6222
6223         PR tree-optimization/44377
6224         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
6225
6226 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6227
6228         * config/s390/2097.md (z10_fhex): Remove insn reservation.
6229         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
6230         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
6231         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
6232         instruction.
6233         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
6234
6235 2010-06-02  Jan Hubicka  <jh@suse.cz>
6236
6237         * bitmap.c (bitmap_descriptor): Add search_iter.
6238         (bitmap_find_bit): Increment it.
6239         (print_statistics): Print it.
6240
6241 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
6242
6243         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
6244         instead of gimple_build_call_vec.  Delete unnecessary local variable.
6245
6246 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
6247
6248         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
6249         change from yesterday.
6250
6251 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
6252
6253         * c-ada-spec.c: Clean up redundant includes.
6254
6255 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
6256
6257         * gimplify.c: Do not include except.h and optabs.h.
6258         (gimplify_body): Do not initialize RTL profiling.
6259         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
6260         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
6261         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
6262         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
6263         langhooks.h.
6264
6265         * tree-pretty-print.h: Include pretty-print.h.
6266         * gimple-pretty-print.h: Include pretty-print.h.
6267
6268         * tree-pretty-print.c: Do not include diagnostic.h.
6269         * tree-vrp.c: Likewise.
6270         * tree-tailcall.c: Likewise
6271         * tree-scalar-evolution.c: Likewise
6272         * tree-ssa-dse.c: Likewise
6273         * tree-chrec.c: Likewise
6274         * tree-ssa-sccvn.c: Likewise
6275         * tree-ssa-copyrename.c: Likewise
6276         * tree-nomudflap.c: Likewise
6277         * tree-call-cdce.c: Likewise
6278         * tree-stdarg.c: Likewise
6279         * tree-ssa-math-opts.c: Likewise
6280         * tree-nrv.c: Likewise
6281         * tree-ssa-sink.c: Likewise
6282         * tree-browser.c: Likewise
6283         * tree-ssa-loop-ivcanon.c: Likewise
6284         * tree-ssa-loop.c: Likewise
6285         * tree-parloops.c: Likewise
6286         * tree-ssa-address.c: Likewise
6287         * tree-ssa-ifcombine.c: Likewise
6288         * tree-if-conv.c: Likewise
6289         * tree-data-ref.c: Likewise
6290         * tree-affine.c: Likewise
6291         * tree-ssa-phiopt.c: Likewise
6292         * tree-ssa-coalesce.c: Likewise
6293         * tree-ssa-pre.c: Likewise
6294         * tree-ssa-live.c: Likewise
6295         * tree-predcom.c: Likewise
6296         * tree-ssa-forwprop.c: Likewise
6297         * tree-ssa-dce.c: Likewise
6298         * tree-ssa-ter.c: Likewise
6299         * tree-ssa-loop-prefetch.c: Likewise
6300         * tree-optimize.c: Likewise
6301         * tree-ssa-phiprop.c: Likewise
6302         * tree-object-size.c: Likewise
6303         * tree-outof-ssa.c: Likewise
6304         * tree-ssa-structalias.c: Likewise
6305         * tree-switch-conversion.c: Likewise
6306         * tree-ssa-reassoc.c: Likewise
6307         * tree-ssa-operands.c: Likewise
6308         * tree-vectorizer.c: Likewise
6309         * tree-vect-data-refs.c: Likewise
6310         * tree-vect-generic.c: Likewise
6311         * tree-vect-stmts.c: Likewise
6312         * tree-vect-patterns.c: Likewise
6313         * tree-vect-slp.c: Likewise
6314         * tree-vect-loop.c: Likewise
6315         * tree-ssa-loop-ivopts.c: Likewise
6316         * tree-ssa-loop-im.c: Likewise
6317         * tree-ssa-loop-niter.c: Likewise
6318         * tree-ssa-loop-unswitch.c: Likewise
6319         * tree-ssa-loop-manip.c: Likewise
6320         * tree-ssa-loop-ch.c: Likewise
6321         * tree-dump.c: Likewise
6322         * tree-complex.c: Likewise
6323
6324         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
6325         * tree-ssa-uninit.c: Likewise
6326         * tree-ssa-threadupdate.c: Likewise
6327         * tree-ssa-uncprop.c: Likewise
6328         * tree-ssa-ccp.c: Likewise
6329         * tree-ssa-dom.c: Likewise
6330         * tree-ssa-propagate.c: Likewise
6331         * tree-ssa-alias.c: Likewise
6332         * tree-dfa.c: Likewise
6333         * tree-cfgcleanup.c: Likewise
6334         * tree-sra.c: Likewise
6335         * tree-ssa-copy.c: Likewise
6336         * tree-ssa.c: Likewise
6337         * tree-profile.c: Likewise
6338         * tree-cfg.c: Likewise
6339         * tree-ssa-threadedge.c: Likewise
6340         * tree-vect-loop-manip.c: Likewise
6341
6342         * tree-inline.c: Do not include diagnostic.h and expr.h.
6343         Include rtl.h.
6344         (copy_decl_for_dup_finish): Do not use NULL_RTX.
6345
6346         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
6347         * tree-loop-distribution.c: Likewise.
6348
6349 2010-06-01  Jan Hubicka  <jh@suse.cz>
6350
6351         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
6352
6353 2010-06-01  Jan Hubicka  <jh@suse.cz>
6354
6355         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
6356         remove return value.
6357         (split_bbs_on_noreturn_calls) .... here.
6358         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
6359         * tree-flow.h (fixup_noreturn_call): New.
6360
6361 2010-06-01  Jan Hubicka  <jh@suse.cz>
6362
6363         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
6364
6365 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
6366
6367         * tree.h (build_nt_call_list): Delete.
6368         * tree.c (build_nt_call_list): Delete.
6369
6370 2010-06-01  Jan Hubicka  <jh@suse.cz>
6371
6372         * fwprop.c: Make emit-rtl.h include last.
6373         * rtlanal.c: Include emit-rtl.h.
6374         * genautomata.c: Output emit-rtl include into insn-automata.c
6375         * df-scan.c: Include emit-rtl.h.
6376         * haifa-sched.c: Indlude emit-rtl.h.
6377         * mode-switching.c: Indlude emit-rtl.h.
6378         * graph.c: Indlude emit-rtl.h.
6379         * sel-sched.c: Include emit-rtl.h.
6380         * sel-sched-ir.c: Include emit-rtl.h.
6381         * ira-build.c: Include emit-rtl.h.
6382         * emit-rtl.c: (first_insn, last_insn): Remove defines.
6383         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
6384         Move to emit-rtl.h.
6385         (set_new_first_and_last_insn, get_last_insn_anywhere,
6386         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
6387         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
6388         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
6389         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
6390         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
6391         Use accessor functions.
6392         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
6393          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
6394         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
6395         mem_expr_equal_p): Move here from rtl.h.
6396         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
6397         Move here from emit-rtl.c; make inline.
6398         * cfglayout.h: Include emit-rtl.h.
6399         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
6400          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
6401         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
6402         mem_expr_equal_p, get_insns, set_first-insn,
6403         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
6404         * reg-stack.c: Include emit-rtl.h.
6405         * dce.c: Likewise.
6406
6407 2010-06-01  Jan Hubicka  <jh@suse.cz>
6408
6409         * cgraph.h (tree_function_versioning): Update prototype.
6410         (cgraph_function_versioning): Update prototype.
6411         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
6412         bitmap.
6413         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
6414         (cgraph_materialize_clone, save_inline_function_body): Update use of
6415         tree_function_versioning.
6416         * tree-inline.c (copy_bb): Look for previous copied block to link
6417         after; fix debug output.
6418         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
6419         (copy_body): Likewise.
6420         (expand_call_inline): Update use of copy_body.
6421         (tree_function_versioning): Update use of copy body; accept
6422         blocks_to_copy and new_entry.
6423
6424 2010-06-01  Jan Hubicka  <jh@suse.cz>
6425
6426         * gegenrtl.c: Remove unnecesary prototypes.
6427         (gendecl): Remove.
6428         (gendef): Produce static inline.
6429         (gencode): Remove.
6430         (main): Do not decode parameters; generate header only.
6431         * Makefile.in (genrtl.c): Remove.
6432
6433 2010-06-01  Jan Hubicka  <jh@suse.cz>
6434
6435         * tree-switch-conversion.c (build_one_array): Make it readonly.
6436
6437 2010-06-01  Richard Guenther  <rguenther@suse.de>
6438
6439         * optabs.c (init_optabs): Guard all accesses to reinit.
6440         * ipa-pure-const.c (propagate): Fix another typo.
6441         * opts.c (common_handle_option): Split assignment to bool.
6442         * c-opts.c (c_common_handle_option): Likewise.
6443
6444 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
6445             Matthew Gingell  <gingell@adacore.com>
6446
6447         * doc/invoke.texi: Mention -fdump-ada-spec.
6448         * tree-dump.c (dump_files): Add ada-spec.
6449         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
6450         * tree-pass.h (tree_dump_index): Add TDI_ada.
6451         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
6452         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
6453         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
6454         * c-decl.c: Include c-ada-spec.h.
6455         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
6456         functions.
6457         (c_write_global_declarations): Add handling of -fdump-ada-spec.
6458         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
6459         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
6460         * c-ada-spec.h, c-ada-spec.c: New files.
6461
6462 2010-06-01  Richard Guenther  <rguenther@suse.de>
6463
6464         PR lto/43853
6465         * ipa-pure-const.c (get_function_state): Hand back varying state
6466         if we do not have one.
6467         (has_function_state): New function.
6468         (duplicate_node_data): Adjust.
6469         (remove_node_data): Likewise.
6470         (pure_const_write_summary): Likewise.
6471         (propagate): Likewise.  Fix typo.
6472
6473 2010-06-01  Jan Hubicka  <jh@suse.cz>
6474
6475         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
6476         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
6477         (execute_all_ipa_transforms): Do not play with the states.
6478
6479 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
6480
6481         * config/arm/t-linux-androideabi: New.
6482         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
6483
6484 2010-06-01  Jan Hubicka  <jh@suse.cz>
6485
6486         * tree-inline.c (estimate_num_insns): For stdarg functions look
6487         into call statement to count cost of argument passing.
6488
6489 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
6490
6491         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
6492         argument for fprintf.
6493         (ix86_output_addr_diff_elt): Likewise.
6494         (x86_function_profiler): Likewise.
6495         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
6496         (LPREFIX): Likewise.
6497         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
6498
6499 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
6500
6501         PR target/44338
6502         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
6503         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
6504         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
6505         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
6506         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
6507         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
6508         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
6509         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
6510         TARGET_FUSED_MADD.
6511
6512 2010-05-31  Jan Hubicka  <jh@suse.cz>
6513
6514         * tree.h (tree_range_check_failed): Declare noreturn.
6515
6516 2010-05-31  Jan Hubicka  <jh@suse.cz>
6517
6518         * gimple.c (gimple_call_builtin_p): New function.
6519         * gimple.h (gimple_call_builtin_p): Declare.
6520         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
6521         to exit.
6522         (execute_warn_function_return): BUILT_IN_RETURN is return.
6523         (split_critical_edges): Return edges are not critical.
6524         (is_ctrl_altering_stmt): Builtin_in_return is altering.
6525         (gimple_verify_flow_info): Handle built_in_return.
6526         (execute_warn_function_return): Handle built_in_return.
6527         * ipa-pure-const.c (check_call): Ignore builtin_return.
6528
6529 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
6530
6531         PR middle-end/44337
6532         * expr.c (expand_assignment): Don't store anything for out-of-bounds
6533         array accesses with non-MEM.
6534
6535         PR tree-optimization/44182
6536         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
6537         newly needs to end a bb is followed by debug stmts, instead return
6538         true from the function at the end.
6539         (maybe_move_debug_stmts_to_successors): New function.
6540         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
6541
6542 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
6543
6544         PR target/44161
6545         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
6546
6547 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
6548
6549         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
6550         for nested functions in non-optimized compilation.
6551
6552 2010-05-31  Richard Guenther  <rguenther@suse.de>
6553
6554         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
6555
6556 2010-05-30  Jan Hubicka  <jh@suse.cz>
6557
6558         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
6559
6560 2010-05-30  Richard Guenther  <rguenther@suse.de>
6561
6562         PR lto/42975
6563         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
6564         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
6565         no longer needed.
6566
6567 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
6568
6569         * config/darwin.c (output_objc_section_asm_op): Add comment.
6570         (name_needs_quotes): Add '_' to list of valid comment chars.
6571         (machopic_output_function_base_name): Remove unneeded quotes.
6572         (darwin_encode_section_info): Adjust asm whitespace.
6573         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
6574         (ASM_OUTPUT_LOCAL): Ditto.
6575         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
6576         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
6577         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
6578
6579 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
6580
6581         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
6582         RS6000_OUTPUT_BASENAME unconditionally.
6583         (rs6000_output_function_epilogue): Likewise.
6584
6585 2010-05-30  Jan Hubicka  <jh@suse.cz>
6586
6587         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
6588         nodes.
6589
6590 2010-05-30  Richard Guenther  <rguenther@suse.de>
6591
6592         * tree-cfg.c (verify_gimple_assign_single): Implement
6593         verification for COND_EXPR rhs.
6594
6595 2010-05-30  Jan Hubicka  <jh@suse.cz>
6596
6597         * cgraph.h (cgraph_dump_file): Declare.
6598         * cgraphunit.c (cgraph_dump_file): Export.
6599         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
6600
6601 2010-05-30  Jan Hubicka  <jh@suse.cz>
6602
6603         * dwarf2out.c (reference_to_unused,
6604         premark_types_used_by_global_vars_helper): Avoid creation of new
6605         varpool nodes.
6606
6607 2010-05-30  Jan Hubicka  <jh@suse.cz>
6608
6609         * cgraph.h (cgraph_node_cannot_return,
6610         cgraph_edge_cannot_lead_to_return): New functions.
6611         * cgraph.c (cgraph_node_cannot_return,
6612         cgraph_edge_cannot_lead_to_return): Use them.
6613         * ipa-pure-const.c (pure_const_names): New static var.
6614         (check_call): Handle calls not leading to return.
6615         (pure_const_read_summary): Dump info read.
6616         (propagate): Dump info about propagation process; ignore side effects
6617         of functions not leading to exit; fix handling of pure functions.
6618
6619 2010-05-30  Jan Hubicka  <jh@suse.cz>
6620
6621         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
6622         for tail call epilogues.
6623
6624 2010-05-30  Jan Hubicka  <jh@suse.cz>
6625
6626         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
6627         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
6628         dump files.
6629
6630 2010-05-29  Jan Hubicka  <jh@suse.cz>
6631
6632         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
6633         node; remove references in node we no longer keep in cgrpah but need
6634         body of.
6635
6636 2010-05-29  Jan Hubicka  <jh@suse.cz>
6637
6638         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
6639
6640 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6641
6642         PR target/44165
6643         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
6644
6645 2010-05-29  Jan Hubicka  <jh@suse.cz>
6646
6647         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
6648         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
6649         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
6650         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
6651         debug_names_replaced_by, debug_update_ssa): Likewise.
6652         * sbitmap.c (debug_sbitmap): Likewise.
6653         * genrecog.c (debug_decision, debug_decision_list): Likewise.
6654         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
6655         debug_tree_chain): Likewise.
6656         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
6657         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
6658         * optabs.c  (debug_optab_libfuncs): Likewise.
6659         (verify_loop_closed_ssa): Likewise.
6660         * value-prof.c (verify_histograms): Likewise.
6661         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
6662         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
6663         * cfghooks.c (verify_flow_info): Likewise.
6664         * fold-const.c (debug_fold_checksum): Likewise.
6665         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
6666         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
6667         Likewise.
6668         * omega.c (debug_omega_problem): Likewise.
6669         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
6670         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
6671         * dominance.c (verify_dominators, debug_dominance_info,
6672         debug_dominance_tree): Likewise.
6673         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
6674         * df_regno_debug, df_ref_debug,
6675         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
6676         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
6677         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
6678         * sel-sched.c (debug_state): Likewise.
6679         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
6680         Likewise.
6681         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
6682         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
6683         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
6684         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
6685         Likewise.
6686         * c-pretty-print.c (debug_c_tree): Likewise.
6687         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
6688         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
6689         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
6690         * ebitmap.c (debug_ebitmap): Likewise.
6691         * function.c (debug_find_var_in_block_tree): Likewise.
6692         * print-rtl.c (debug_rtx): Likewise.
6693         (debug_rtx_count): Likewise.
6694         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
6695         * stor-layout.c (debug_rli): Likewise.
6696         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
6697         * tree-data-ref.c (debug_data_references,
6698         debug_data_dependence_relations, debug_data_reference,
6699         debug_data_dependence_relation, debug_rdg_vertex,
6700         debug_rdg_component, debug_rdg): Likewise.
6701         * tree-affine.c (debug_aff): Likewise.
6702         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
6703         Likewise.
6704         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
6705         * emit-rtl.c (verify_rtl_sharing): Likewise.
6706         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
6707         debug_value_expressions): Likewise.
6708         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
6709         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
6710         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
6711         * cfglayout.c (verify_insn_chain): Likewise.
6712         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
6713         debug_clast_stmt, debug_generated_program): Likewise.
6714         * ggc-page.c (debug_print_page_list): Likewise.
6715         * tree-ssa-ter.c (debug_ter): Likewise.
6716         * graphite-dependences.c (debug_pddr): Likewise.
6717         * sched-deps.c (debug_ds): Likewise.
6718         * tree-ssa.c (verify_ssa): Likewise.
6719         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
6720         debug_scattering_functions, debug_iteration_domains, debug_pdr,
6721         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
6722         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
6723         * tree-inline.c (debug_find_tree): Likewise.
6724         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
6725         debug_ppl_powerset_matrix): Likewise.
6726         * var-tracking.c (debug_dv): Likewise.
6727         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
6728         * cfgloop.c (verify_loop_structure): Likewise.
6729         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
6730         * c-common.c (verify_sequence_points): Likewise.
6731         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
6732         debug_candidates, debug_rgn_dependencies): Likewise.
6733         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
6734         * debug_constraint_graph, debug_solution_for_var,
6735         debug_sa_points_to_info): Likewise.
6736         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
6737         Likewie.
6738         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
6739         debug_loops, debug_loop, debug_loop_num): Likewise.
6740         * passes.c (debug_pass): Likewise.
6741         (dump_properties): Likewise; add cfglayout property.
6742         (debug_properties): Likewise.
6743         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
6744         * varpool.c (debug_varpool): Likewise.
6745         * regcprop.c (debug_value_data): Likewise.
6746         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
6747         debug_immediate_uses_for): Likewise.
6748
6749 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
6750
6751         PR bootstrap/44315
6752         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
6753         Filter out insn-flags.h.
6754
6755 2010-05-29  Jan Hubicka  <jh@suse.cz>
6756
6757         * cgraph.h (struct varpool_node_set_def,
6758         struct cgraph_node_set_def): Remove unused AUX pointer.
6759         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
6760         VEC_empty macro.
6761
6762 2010-05-29  Jan Hubicka  <jh@suse.cz>
6763
6764         PR middle-end/44324
6765         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
6766
6767 2010-05-29  Richard Guenther  <rguenther@suse.de>
6768
6769         * lto-streamer.c (cached_bp): New global variable.
6770         (bitpack_create): Return the cached bitpack, if available.
6771         (bitpack_delete): Clear and cache the bitpack, if appropriate.
6772         (bp_pack_value): Remove redundant asserts.
6773
6774 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
6775
6776         PR middle-end/44306
6777         * tree-if-conv.c (is_true_predicate): New.
6778         (is_predicated): Use is_true_predicate.
6779         (add_to_predicate_list): Same.  Do not use unshare_expr.
6780         (add_to_dst_predicate_list): Same.
6781
6782 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
6783
6784         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
6785         field on edges.
6786         (predicate_bbs): Same.
6787         (clean_predicate_lists): Same.
6788         (find_phi_replacement_condition): Do not AND the predicate from
6789         edge->aux.
6790
6791 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
6792
6793         PR bootstrap/44315
6794         * Makefile.in (build/gencondmd.o): Add a missing `\'.
6795
6796 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6797
6798         PR target/44261
6799         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
6800         (negdf2): Adjust expander pattern and use negdf2_slow.
6801         (negsf2): Likewise.
6802
6803 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
6804
6805         * basic-block.h (struct control_flow_graph): Move last_label_uid field
6806         up.
6807         * df.h (struct df_base_ref): Move regno field up.
6808         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
6809         * expr.h (struct separate_ops): Move location field up.
6810         * optabs.h (struct optab_d): Move libcall_basename field down.
6811         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
6812         * config/i386/i386.h (struct machine_function): Convert call_abi field
6813         into a bitfield.  Move cfa field to the end of the structure.
6814
6815 2010-05-29  Jan Hubicka  <jh@suse.cz>
6816
6817         * varpool.c (varpool_get_node): Fix lookup.
6818
6819 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
6820
6821         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
6822         RTL specific prototypes with #ifdef RTX_CODE.
6823         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
6824         * config/spu/t-spu-elf: Fix dependencies.
6825
6826         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
6827
6828 2010-05-29  Mike Stump  <mikestump@comcast.net>
6829
6830         PR bootstrap/44315
6831         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
6832         TM_H when building to avoid dependency loops.
6833
6834 2010-05-29  Jan Hubicka  <jh@suse.cz>
6835
6836         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
6837         refs and body; not the whole node for masters of materialized clones.
6838
6839 2010-05-29  Mike Stump  <mikestump@comcast.net>
6840
6841         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
6842
6843 2010-05-29  Jan Hubicka  <jh@suse.cz>
6844
6845         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
6846         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
6847         use of clone_function_name.
6848         * cgraph.h (cgraph_create_virtual_clone,
6849         cgraph_function_versioning): update prototypes.
6850         (clone_function_name): Declare.
6851         * ipa-cp.c (ipcp_insert_stage): Update call of
6852         cgraph_create_virtual_clone.
6853         * omp-low.c (create_omp_child_function_name): Use
6854         cgraph_create_virtual_clone.
6855         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
6856         (cgraph_function_versioning): Take SUFFIX argument; produce new name
6857         and make decl local.
6858
6859 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
6860
6861         * vec.h: Include statistics.h
6862         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
6863         with VEC_H.
6864
6865 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
6866
6867         * c-lex.c: Do not include c-tree.h.
6868         * c-pretty-print.c: Likewise.
6869         * c-opts.c: Likewise.
6870         * c-gimplify.c: Likewise.
6871         * c-common.c: Likewise.
6872         * c-dump.c: Likewise.  Include c-common.h.
6873
6874 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
6875
6876         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
6877         before including diagnostic-core.h.
6878         (c_cpp_error): New prototype moved from c-tree.h.
6879         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
6880         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
6881         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
6882         (c_cpp_error): Prototype moved to c-common.h.
6883         * Makefile.in: Update dependency for C_COMMON_H.
6884
6885 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
6886
6887         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
6888         * c-common.c (c_register_addr_space): Remove here.
6889         * c-decl.c (c_register_addr_space): Re-add here.
6890
6891 2010-05-28  Mike Stump  <mikestump@comcast.net>
6892
6893         * config/darwin-c.c: Remove c-tree.h include.
6894
6895 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
6896
6897         * gcc.c: Include diagnostic.h.
6898         (error_count): Remove.  All users changed to use errorcount.
6899         (programname): Remove.  All users changed to use progname.
6900         (fancy_abort, internal_error, fatal_error, error, warning, inform,
6901         fnotice): Remove.
6902         (execute): Don't include "Internal error" and bug reporting
6903         information in argument of internal_error call.
6904         (process_command): Don't increment error_count after calling
6905         perror_with_name.
6906         (input_filename): Rename to gcc_input_filename.  All users
6907         changed.
6908         (main): Call diagnostic_initialize.  Register delete_temp_files
6909         with atexit.  Use seen_error to test for errors.
6910         * gcc.h: Include diagnostic-core.h.
6911         (fatal_error, error, warning): Remove.
6912         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
6913         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
6914         (gcc.o): Update dependencies.
6915
6916 2010-05-28  Jeff Law  <law@redhat.com>
6917
6918         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
6919         functions.
6920         * ira.h (ira_bad_reload_regno): Declare
6921         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
6922
6923         * ira-color.c (update_curr_costs): Free updated hard reg costs.
6924         (ira_reassign_conflict_allocnos): Remove bogus asserts.
6925         (allocno_reload_assign): Likewise.
6926
6927 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
6928
6929         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
6930         build1_stat.
6931
6932 2010-05-28  Richard Guenther  <rguenther@suse.de>
6933
6934         PR lto/44312
6935         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
6936         Stream fixed-point constants mode.
6937         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
6938         and TYPE_PRECISION.
6939         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
6940         Stream fixed-point constants mode.
6941         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
6942         and TYPE_PRECISION.
6943
6944 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
6945
6946         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
6947         only place it was called from.
6948         (number_of_latch_executions): Do not return chrec_dont_know when the
6949         may_be_zero is a runtime condition: instead, return a COND_EXPR
6950         including the may_be_zero condition.
6951         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
6952         of nb_iterations.
6953         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
6954         COND_EXPRs.
6955
6956 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
6957
6958         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
6959         generate COND_EXPRs for degenerate_phi_result.
6960
6961 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
6962
6963         PR middle-end/44293
6964         * tree-if-conv.c (if_convertible_loop_p): Check the
6965         if-convertibility of phi nodes in non predicated BBs.
6966
6967 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
6968
6969         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
6970
6971 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
6972
6973         PR driver/15303
6974         * gcc.c (inform, warning, inform): New functions.
6975         (fatal_ice): Rename to internal_error; change cmsgid parameter to
6976         gmsgid.  All callers changed.
6977         (notice): Rename to fnotice; add parameter fp.  All callers changed.
6978         (fatal_error): Rename to fatal_signal.  All users changed.
6979         (fatal): Rename to fatal_error; change cmsgid parameter to
6980         gmsgid.  All callers changed.
6981         (process_command): Use warning instead of error for warnings.
6982         (end_going_arg): Don't use _() around argument of error.
6983         (do_spec_1): Use inform for message from %n specs.  Use warning
6984         instead of error for warnings.
6985         (main): Use inform for comparison messages.  Use warning for
6986         message about unused linker input.
6987         (error): Increment error_count.  Print "error: ".
6988         * gcc.h (fatal): Change to fatal_error.
6989         (warning): Declare.
6990         * config/darwin-driver.c (darwin_default_min_version): Use warning
6991         instead of fprintf for warnings.
6992         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
6993
6994 2010-05-28  Julian Brown  <julian@codesourcery.com>
6995
6996         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
6997         (*thumb2_addsi3_compare0_scratch): New.
6998         * config/arm/constraints.md (Pv): New.
6999         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
7000         for ARM mode only.
7001         (*addsi3_compare0_scratch): Likewise.
7002
7003 2010-05-28  Jan Hubicka  <jh@suse.cz>
7004
7005         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
7006         check.
7007         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
7008         only on local statics.
7009
7010 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
7011
7012         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
7013
7014 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
7015
7016         PR bootstrap/44314
7017         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
7018         (OPTION_GLIBC): Define.
7019
7020 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
7021
7022         PR debug/41048
7023         * dwarf2out.c (double_int_type_size_in_bits): New function.
7024         (round_up_to_align): Change first argument and return value to
7025         double_int.
7026         (field_byte_offset): Work internally on double_ints.
7027
7028         PR target/43636
7029         * builtins.c (expand_movstr): Use a temporary pseudo instead
7030         of target even when target is not NULL and not const0_rtx, but
7031         fails movstr predicate.
7032         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
7033
7034 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
7035
7036         * final.c (rest_of_clean_state): Use %m in errors instead of
7037         strerror (errno).
7038         * gengtype.c (read_input_list, close_output_files): Use xstrerror
7039         instead of strerror.
7040         * toplev.c (process_options): Use %m in errors instead of strerror
7041         (errno).
7042         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
7043         (errno).
7044
7045 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
7046
7047         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
7048         (ix86_canonical_va_list_type): Make static.  Add declaration.
7049         (ix86_enum_va_list): Make static.  Reindent.
7050         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
7051         (ix86_canonical_va_list_type): Ditto.
7052         (ix86_enum_va_list): Ditto.
7053
7054 2010-05-28  Richard Guenther  <rguenther@suse.de>
7055
7056         * lto-wrapper.c (run_gcc): With -save-temps generate a
7057         user-visible ltrans filename.  Fixup ltrans unit numbering.
7058
7059 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
7060
7061         * c-common.c (c_common_nodes_and_builtins): Replace use
7062         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
7063         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
7064         to ix86_enum_va_list.
7065         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
7066         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
7067         (TARGET_ENUM_VA_LIST_P): Add hook description.
7068         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
7069         * target.h (gcc_target): Add enum_va_list hook.
7070
7071         PR bootstrap/44299
7072         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
7073         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
7074         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
7075
7076 2010-05-28  Alan Modra  <amodra@gmail.com>
7077
7078         PR target/44266
7079         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
7080         emit_library_call machinery to set up __tls_get_addr calls.
7081
7082 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7083
7084         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
7085
7086 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
7087
7088         Revert fix for PR c++/44188
7089         * c-common.c (is_typedef_decl): Revert the moving of  this
7090         definition ...
7091         * tree.c (is_typedef_decl): ... here.
7092         (typdef_variant_p): Revert the moving of this  definition
7093         here from gcc/cp/tree.c.
7094         * c-common.h (is_typedef_decl): Revert the moving of this
7095         declaration ...
7096         * tree.h (is_typedef_decl): ... here.
7097         (typedef_variant_p): Revert the moving of this  declaration here
7098         from gcc/cp/cp-tree.h
7099         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
7100         (gen_tagged_type_die): Revert the splitting out of ...
7101         (gen_type_die_with_usage): ... this function. Revert the anonymous
7102         tagged type handling.
7103         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
7104         typedefs naming anonymous tagged types.
7105
7106 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
7107
7108         * config/rs6000/rs6000-modes.def (PSImode): Delete.
7109
7110 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
7111
7112         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
7113         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
7114         throughout.
7115         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
7116         "xer" to "ca".
7117         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
7118         XER_REGS to CA_REGS throughout.
7119         * config/rs6000/rs6000.h: Same.
7120         (ADDITIONAL_REGISTER_NAMES): Add "xer".
7121         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
7122         that mode_iterator "P" is the size for arithmetic carries as well.
7123         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
7124
7125 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
7126
7127         PR bootstrap/44255
7128         * combine.c (struct rtx_subst_pair): Define unconditionally.
7129         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
7130         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
7131         Call make_compound_operation on pair->to.
7132         (propagate_for_debug): Don't call make_compound_operation here.
7133         Always use simplify_replace_fn_rtx.
7134
7135 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
7136
7137         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
7138         * config/xtensa/xtensa.c (override_options): Check
7139           TARGET_FORCE_NO_PIC and set flag_pic.
7140         * config/xtensa/xtensa.opt: Document -mforce-no-pic
7141
7142 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
7143
7144         PR bootstrap/44299
7145         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
7146         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
7147
7148 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
7149
7150         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
7151         toplev.h.
7152         * diagnostic.c: Don't include toplev.h.
7153         (progname): Define.  Moved from toplev.c.
7154         (seen_error): New function.
7155         * diagnostic.h: Include diagnostic-core.h.
7156         (diagnostic_t, emit_diagnostic): Don't declare here.
7157         * toplev.c (progname): Move to toplev.c.
7158         (emit_debug_global_declarations, compile_file, finalize,
7159         do_compile, toplev_main): Use seen_error.
7160         * toplev.h: Include diagnostic-core.h.
7161         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
7162         internal_error, warning, warning_at, error, error_n, error_at,
7163         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
7164         verbatim, fnotice, progname): Move to diagnostic-core.h.
7165         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
7166         (expand_builtin_expect): Use seen_error.
7167         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
7168         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
7169         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
7170         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
7171         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
7172         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
7173         errorcount for errors.
7174         * c-opts.c (c_common_finish): Use seen_error.
7175         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
7176         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
7177         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
7178         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
7179         (get_coverage_counts): Use seen_error.
7180         * dwarf2out.c (dwarf2out_finish): Use seen_error.
7181         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
7182         gimplify_body): Use seen_error.
7183         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
7184         * ipa-pure-const.c (gate_pure_const): Use seen_error.
7185         * ipa-reference.c (gate_reference): Use seen_error.
7186         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
7187         * lambda-code.c: Include diagnostic-core.h instead of
7188         diagnostic.h.
7189         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
7190         * lto-compress.c: Include diagnostic-core.h instead of
7191         diagnostic.h.
7192         * lto-section-in.c: Include diagnostic-core.h instead of
7193         diagnostic.h.
7194         * lto-streamer-out.c: Include diagnostic-core.h instead of
7195         diagnostic.h.
7196         * lto-streamer.c: Include diagnostic-core.h instead of
7197         diagnostic.h.
7198         (gate_lto_out): Use seen_error.
7199         * matrix-reorg.c: Include diagnostic-core.h instead of
7200         diagnostic.h.
7201         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
7202         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
7203         (gate_expand_omp, lower_omp_1): Use seen_error.
7204         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
7205         (rest_of_decl_compilation, rest_of_type_compilation,
7206         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
7207         * tree-cfg.c (label_to_block_fn): Use seen_error.
7208         * tree-inline.c (optimize_inline_calls): Use seen_error.
7209         * tree-mudflap.c (mudflap_finish_file): Use
7210         seen_error.
7211         * tree-optimize.c (gate_all_optimizations,
7212         gate_all_early_local_passes, gate_all_early_optimizations): Use
7213         seen_error.
7214         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
7215         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
7216         (varpool_remove_unreferenced_decls,
7217         varpool_assemble_pending_decls): Use seen_error.
7218         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
7219         (TOPLEV_H, DIAGNOSTIC_H): Update.
7220         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
7221         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
7222         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
7223         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
7224         coverage.o, lambda-code.o): Update dependencies.
7225
7226 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
7227
7228         PR c++/44188
7229         * c-common.c (is_typedef_decl): Move this definition ...
7230         * tree.c (is_typedef_decl): ... here.
7231         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
7232         * c-common.h (is_typedef_decl): Move this declaration ...
7233         * tree.h (is_typedef_decl): ... here.
7234         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
7235         * dwarf2out.c (is_naming_typedef_decl): New function.
7236         (gen_tagged_type_die): Split out of ...
7237         (gen_type_die_with_usage): ... this function. When an anonymous
7238         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
7239         is emitted for the typedef.
7240         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
7241         anonymous tagged types.
7242
7243 2010-05-27  Jason Merrill  <jason@redhat.com>
7244
7245         * print-tree.c (debug_vec_tree): New fn.
7246         (print_vec_tree): New fn.
7247         * tree.h: Declare them.
7248         * gdbinit.in (pvt): New command.
7249
7250         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
7251
7252         * gdbinit.in (pdd): New command.
7253
7254 2010-05-27  Jan Hubicka  <jh@suse.cz>
7255
7256         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
7257         (update_caller_keys): Return early if there are no callers;
7258         only update fibheap when decresing the key.
7259         (update_callee_keys): Avoid recursion.
7260         (decide_inlining_of_small_functions): When badness does not match;
7261         re-insert into fibheap.
7262
7263 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
7264
7265         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
7266         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
7267         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
7268         (ALL_HOST_OBJS): Now a union of the above two.
7269         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
7270         all files in ALL_HOST_FRONTEND_OBJS.
7271         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
7272
7273         * c-common.c: Pretend to be a backend file by undefining
7274         IN_GCC_FRONTEND (still need rtl.h here).
7275
7276 2010-05-27  Jan Hubicka  <jh@suse.cz>
7277
7278         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
7279         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
7280
7281 2010-05-27  Jan Hubicka  <jh@suse.cz>
7282
7283         * sched-ebb.c: Rename struct deps to struct deps_desc.
7284         * ddg.c: Likewise.
7285         * sel-sched-ir.c: Likewise.
7286         * sched-deps.c: Likewise.
7287         * sched-int.h: Likewise.
7288         * sched-rgn.c: Likewise.
7289
7290 2010-05-27  Jon Beniston  <jon@beniston.com>
7291
7292         PR 43726
7293         * config/lm32/lm32.h: Remove definition of
7294         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
7295
7296 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
7297
7298         PR lto/44230
7299         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
7300
7301 2010-05-27  Richard Guenther  <rguenther@suse.de>
7302
7303         PR tree-optimization/44284
7304         * tree-vect-stmts.c (vectorizable_assignment): Handle
7305         sign-changing conversions as simple copy.
7306
7307 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7308
7309         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
7310         Bionic C library.
7311         (__gthread_active_p): Check for pthread_create if compiling against
7312         Bionic C library.
7313
7314 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7315
7316         Support compilation for Android platform.  Reimplement -mandroid.
7317
7318         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
7319         (*android*): Set ANDROID_DEFAULT.
7320         (arm*-*-linux*): Include linux-android.h.
7321         (arm*-*-eabi*): Don't include previous -mandroid implementation.
7322         * config/arm/eabi.h: Remove, move Android-specific parts ...
7323         * config/linux-android.h: ... here.  New file.
7324         * config/arm/eabi.opt: Rename to ...
7325         * config/linux-android.opt: ... this.
7326         (mandroid): Allow -mno-android option.  Initialize based on
7327         ANDROID_DEFAULT.
7328         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
7329         Move logic to corresponding LINUX_TARGET_* macros.
7330         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
7331         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
7332         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
7333         Android definitions.
7334         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
7335         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
7336         Document.
7337
7338 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7339
7340         Add support for Bionic C library
7341
7342         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
7343         macro.
7344         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
7345         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
7346
7347         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
7348         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
7349         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
7350         to support multiple C libraries.  Handle Bionic.
7351         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
7352         (BIONIC_DYNAMIC_LINKER64): Define.
7353         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
7354         Update.
7355         (TARGET_HAS_SINCOS): Enable for Bionic.
7356
7357         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
7358         the last option specified on command line take effect.
7359         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
7360         (mbionic): New.
7361         (mglibc, muclibc): Update.
7362
7363         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
7364         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
7365         DEFAULT_LIBC.
7366
7367         * doc/invoke.texi (-mglibc, -muclibc): Update.
7368         (-mbionic): Document.
7369
7370 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7371
7372         * c-common.h (c_register_addr_space): Add prototype.
7373         (ADDR_SPACE_KEYWORD): Remove.
7374         * c-common.c (c_register_addr_space): New function.
7375         (c_addr_space_name): Reimplement.
7376         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
7377
7378         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
7379         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
7380
7381         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
7382         Remove TARGET_ADDR_SPACE_KEYWORDS.
7383
7384 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
7385
7386         * input.c: New file.
7387         * input.h (main_input_filename): Move declaration to toplev.h.
7388         * toplev.c (input_location, line_table): Move to input.c
7389         * toplev.h (main_input_filename): Move declaration from input.h.
7390         * tree.c (expand_location): Move to input.c.
7391         * Makefile.in (OBJS-common): Add input.o.
7392         (input.o): Add dependencies.
7393
7394 2010-05-27  Richard Guenther  <rguenther@suse.de>
7395
7396         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
7397         for non-existant files.
7398         (fork_execute): Mark args_name file as deleted.
7399
7400 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
7401
7402         PR bootstrp/44287
7403         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
7404         (narrow_signed_type): Likewise.
7405
7406 2010-05-26  Jan Hubicka  <jh@suse.cz>
7407
7408         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
7409         edge only when checking is enabled; check using former_clone_of;
7410         check inline clones too.
7411         (cgraph_materialize_clone): Record former_clone_of pointer.
7412         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
7413         combining redirections; dump args_to_skip bitmap
7414         (cgraph_materialize_all_clones): Do no redirection here.
7415         * ipa-inline.c (inline_transform): Do redirection here.
7416         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
7417         cheking only).
7418
7419 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
7420
7421         * config/avr/avr-c.c: Do not include regs.h.
7422         Include cpplib.h for cpp_define and tree.h for c-common.h.
7423         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
7424         * config/avr/t-avr: Fix dependencies for avr-c.o.
7425
7426 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
7427
7428         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
7429         string instead of SYMBOL_REF rtx.
7430         * rtl.h (set_stack_check_libfunc): Move prototype from here...
7431         * libfuncs.h: ...to here.  Adjust for explow.c change.
7432
7433 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
7434
7435         * pretty-print.c: Don't include ggc.h.
7436         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
7437         (identifier_to_locale): Use them for allocation.
7438         * pretty-print.h (identifier_to_locale_alloc,
7439         identifier_to_locale_free): Declare.
7440         * toplev.c (alloc_for_identifier_to_locale): New.
7441         (general_init): Set identifier_to_locale_alloc and
7442         identifier_to_locale_free.
7443         * Makefile.in (pretty-print.o): Update dependencies.
7444
7445 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
7446
7447         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
7448         pointer types if they have different alignment or mode.
7449
7450 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
7451
7452         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
7453         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
7454         * config/sparc/sparc-protos.h (function_value): Remove declaration.
7455         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
7456         sparc_function_value_regno_p): New functions.
7457         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7458         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7459         (function_value): Rename to...
7460         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
7461         argument to 'outgoing'.
7462         (function_arg_record_value, function_arg_union_value,
7463         function_arg_vector_value): Update comment.
7464
7465 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
7466
7467         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
7468         (fde_needed_for_eh_p): New predicate.
7469         (output_call_frame_info): Use it throughout to decide whether FDEs
7470         are needed for EH purpose.
7471         (dwarf2out_begin_prologue): Reorder assignments.
7472
7473 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
7474
7475         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
7476         special case loop->header.
7477         (is_predicated): New.
7478         (if_convertible_loop_p): Call it.
7479
7480 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
7481
7482         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
7483         iterator in parameter.  Do not generate code during the analysis.
7484         (tree_if_convert_cond_stmt): Removed.
7485         (tree_if_convert_stmt): Removed.
7486         (predicate_bbs): New.
7487         (if_convertible_loop_p): Call predicate_bbs.
7488         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
7489         now contains all the analysis part.
7490
7491 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
7492
7493         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
7494         statements in the analysis part.
7495         (tree_if_convert_stmt): Update comment.
7496         (remove_conditions_and_labels): New.
7497         (combine_blocks): Call remove_conditions_and_labels.
7498         (tree_if_conversion): Update comment.
7499
7500 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
7501
7502         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
7503         than 2 predecessors or more than 2 successors.
7504
7505 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
7506
7507         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
7508         of loops in which the data dependence analysis fails.
7509
7510 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
7511
7512         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
7513         CDI_POST_DOMINATORS.
7514         (tree_if_conversion): Same.
7515
7516 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
7517
7518         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
7519
7520 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
7521
7522         * tree-if-conv.c: Update copyright years.  Fix comments.
7523         Fix indentation.
7524
7525 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
7526
7527         * builtin-types.def (BT_INT128): New primitive type.
7528         (BT_UINT128): Likewise.
7529         * c-common.c (c_common_r): Add __int128 keyword.
7530         (c_common_type_for_size): Handle __int128.
7531         (c_common_type_for_mode): Likewise.
7532         (c_common_signed_or_unsigned_type): Likewise.
7533         (c_common_nodes_and_builtins): Add builtin type
7534         if target supports 128-bit integer scalar.
7535         * c-common.h (enum rid): Add RID_INT128.
7536         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
7537         if target supports 128-bit integer scalar.
7538         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
7539         (finish_declspecs): Likewise.
7540         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
7541         (c_token_starts_declspecs): Likewise.
7542         (c_parser_declspecs): Likewise.
7543         (c_parser_attributes): Likewise.
7544         (c_parser_objc_selector): Likewise.
7545         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
7546         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
7547         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
7548         * tree.c (make_or_reuse_type): Likewise.
7549         (make_unsigned_type): Likewise.
7550         (build_common_tree_nodes_2): Likewise.
7551         * tree.h (enum integer_type_kind): Add itk_int128 and
7552         itk_unsigned_int128.
7553         (int128_integer_type_node): New define.
7554         (int128_unsigned_type_node): New define.
7555         * doc/extend.texi: Add documentation about __int128 type.
7556
7557 2010-05-26  Richard Guenther  <rguenther@suse.de>
7558
7559         * tree-ssa-sccvn.c (copy_nary): Adjust.
7560         (copy_phis): Rename to ...
7561         (copy_phi): ... this.  Adjust.
7562         (copy_references): Rename to ...
7563         (copy_reference): ... this.  Adjust.
7564         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
7565         result into the valid table.
7566
7567 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
7568
7569         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
7570         insn-config.h, insn-codes.h, recog.h, and optabs.h.
7571
7572 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
7573
7574         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
7575
7576 2010-05-26  Richard Guenther  <rguenther@suse.de>
7577
7578         * opts.c (common_handle_option): Handle OPT_Ofast.
7579
7580 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
7581
7582         * diagnostic.c: Don't include opts.h.
7583         (permissive_error_option): Define.
7584         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
7585         for classify_diagnostic.  Don't use memset for
7586         classify_diagnostic.  Initialize new and recently added fields.
7587         (diagnostic_classify_diagnostic): Use context->n_opts instead of
7588         N_OPTS.
7589         (diagnostic_report_diagnostic): Pass context parameter to
7590         diagnostic_report_warnings_p.  Use option_enabled and option_name
7591         hooks from context.
7592         (emit_diagnostic): Use permissive_error_option.
7593         (permerror): Likewise.
7594         * diagnostic.h: Don't include options.h.
7595         (struct diagnostic_context): Add n_opts, opt_permissive,
7596         inhibit_warnings, warn_system_headers, option_enabled and
7597         option_name fields.  Change classify_diagnostic to a pointer.
7598         * opts-diagnostic.h: New file.
7599         * opts.c: Include opts-diagnostic.h.
7600         (common_handle_option): Set global_dc fields for -Wfatal-errors,
7601         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
7602         (option_name): New function.
7603         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
7604         (c_common_handle_option): Set global_dc->permissive for
7605         -fpermissive.
7606         * c-common.c (c_cpp_error): Save and restore
7607         global_dc->warn_system_headers, not variable warn_system_headers.
7608         * toplev.c: Include opts-diagnostic.h.
7609         (general_init): Update call to diagnostic_initialize.  Set
7610         global_dc->show_column, global_dc->option_enabled and
7611         global_dc->option_name.
7612         (process_options): Don't set global_dc fields here.
7613         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
7614         (diagnostic.o, opts.o, toplev.o): Update dependencies.
7615
7616 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
7617
7618         * config/picochip/picochip.md (movsi): Split a movsi from a
7619         const after reload.
7620
7621 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
7622
7623         * ggc-zone.c: Update copyright year.
7624         (poison_region): Mark memory for Valgrind as undefined before
7625         memset () call and inaccessible afterwards.
7626         (ggc_pch_total_size): Change type of i to int.
7627
7628 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
7629
7630         * ggc-common.c (ggc_free_overhead): Allow empty slot.
7631
7632 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
7633
7634         * ggc-common.c: Update copyright year.
7635         (ggc_rlimit_bound): Remove prototype.  Compile only if
7636         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
7637         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
7638         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
7639         (ggc_min_heapsize_heuristic): Likewise.
7640
7641 2010-05-26  Richard Guenther  <rguenther@suse.de>
7642
7643         PR rtl-optimization/44164
7644         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
7645         no-common access-path disambiguation.
7646         (indirect_ref_may_alias_decl_p): Adjust.
7647         (indirect_refs_may_alias_p): Likewise.
7648         (refs_may_alias_p_1): Likewise.
7649
7650 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
7651
7652         * c-typeck.c: Do not include expr.h.
7653
7654 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
7655
7656         * rtl.h (decl_default_tls_model): Move prototype from here...
7657         * output.h: ...to here.
7658         * c-decl.c: Do not include rtl.h.
7659         * c-pragma.c: Likewise.
7660         * c-parser.c: Likewise.
7661         * c-gimplify.c: Likewise.  And also not hard-reg-set.
7662         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
7663         FIXME note for it.  Add a FIXME note for expr.h.
7664         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
7665         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
7666         defined.
7667
7668 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
7669
7670         PR target/44199
7671         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
7672         or total_size is larger than red zone size for non-V4 ABI, emit a
7673         stack_tie resp. frame_tie insn before stack pointer restore.
7674         * config/rs6000/rs6000.md (frame_tie): New insn.
7675
7676 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
7677
7678         * function.h (struct function): Add can_throw_non_call_exceptions bit.
7679         * lto-streamer-in.c (input_function): Stream it in.
7680         * lto-streamer-out.c (output_function): Stream it out.
7681         * function.c (allocate_struct_function): Set it.
7682         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
7683         for flag_non_call_exceptions.
7684         * cfgbuild.c (control_flow_insn_p): Likewise.
7685         (make_edges): Likewise.
7686         * cfgexpand.c (expand_stack_alignment): Likewise.
7687         * combine.c (distribute_notes): Likewise.
7688         * cse.c (cse_extended_basic_block): Likewise.
7689         * except.c (insn_could_throw_p): Likewise.
7690         * gcse.c (simple_mem): Likewise.
7691         * ipa-pure-const.c (check_call): Likewise.
7692         (check_stmt ): Likewise.
7693         * lower-subreg.c (lower-subreg.c): Likewise.
7694         * optabs.c (emit_libcall_block): Likewise.
7695         (prepare_cmp_insn): Likewise.
7696         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
7697         * postreload.c (rest_of_handle_postreload): Likewise.
7698         * reload1.c (reload_as_needed): Likewise.
7699         (emit_input_reload_insns): Likewise.
7700         (emit_output_reload_insns): Likewise.
7701         (fixup_abnormal_edges): Likewise.
7702         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
7703         * store-motion.c (find_moveable_store): Likewise.
7704         * tree-eh.c (stmt_could_throw_p): Likewise.
7705         (tree_could_throw_p): Likewise.
7706         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
7707         * config/arm/arm.c (arm_expand_prologue): Likewise.
7708         (thumb1_expand_prologue): Likewise.
7709         * config/rx/rx.md (cbranchsf4): Likewise.
7710         (cmpsf): Likewise.
7711         * config/s390/s390.c (s390_emit_prologue): Likewise.
7712         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
7713         (inline_forbidden_into_p): New predicate.
7714         (expand_call_inline): Use it to forbid inlining.
7715         (tree_can_inline_p): Likewise.
7716
7717 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
7718
7719         * config/i386/i386-c.c: Do not include rtl.h.
7720         * config/i386/t-i386: Update dependencies.
7721
7722 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
7723
7724         * attribs.c: Do not include rtl.h.
7725         * Makefile.in: Update dependencies.
7726
7727 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
7728
7729         * double-int.h (double_int_and): New.
7730         * combine.c (try_combine): Clean up, use double_int_* and
7731         immed_double_int_const functions.
7732
7733 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7734
7735         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
7736         stderr to /dev/null instead of grep -q.
7737         * configure: Regenerate.
7738
7739 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
7740
7741         * Makefile.in (EXCEPT_H): Fix typo.
7742
7743 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
7744
7745         * ira-build.c (update_conflict_hard_reg_costs): New.
7746         (ira_build): Call update_conflict_hard_reg_costs.
7747
7748 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
7749
7750         PR debug/41371
7751         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
7752         ENABLE_CHECKING.
7753         (intersect_loc_chains): Walk the s2var's loc_chain together
7754         with s1node chain as long as the locations are equal, don't
7755         call find_loc_in_1pdv in that case.
7756
7757         PR debug/42801
7758         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
7759         (copy_bind_expr): ... instead of here.
7760         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
7761         if the block hasn't been remapped.
7762         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
7763         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
7764
7765 2010-05-25  Richard Guenther  <rguenther@suse.de>
7766
7767         PR middle-end/44069
7768         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
7769         out-of-bounds array accesses.
7770
7771 2010-05-25  Richard Guenther  <rguenther@suse.de>
7772
7773         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
7774         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
7775         (run_gcc): Re-organize to make cleanup easier.
7776
7777 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7778
7779         * config/s390/s390.c (optimization_options): Fix and move the
7780         flag_prefetch_loop_arrays override ...
7781         (override_options): ... here.
7782
7783 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
7784
7785         * diagnostic.c: Don't include plugin.h.
7786         (diagnostic_report_diagnostic): Don't handle plugins specially
7787         here.  Pass context to internal_error callback.
7788         * diagnostic.h (struct diagnostic_context): Add context parameter
7789         to internal_error callback.
7790         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
7791         * plugin.h (struct diagnostic_context): Declare.
7792         (warn_if_plugins, plugins_internal_error_function): Declare.
7793         * toplev.c (general_init): Set global_dc->internal_error.
7794         * Makefile.in (diagnostic.o): Update dependencies.
7795
7796 2010-05-25 Iain Sandoe  <iains@gcc.gnu.org>
7797
7798         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
7799         * config/rs6000/t-darwin64: New.
7800         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
7801         build crt2.
7802
7803 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
7804
7805         PR 44203
7806         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
7807         match the original (and intended) behaviour before r159557.  This
7808         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
7809         in two ways.
7810
7811 2010-05-25  Richard Guenther  <rguenther@suse.de>
7812
7813         * doc/invoke.texi: Document -Ofast.
7814         * target.h (struct gcc_target): Add handle_ofast.
7815         * target-def.h (TARGET_HANDLE_OFAST): Add.
7816         (TARGET_INITIALIZER): Adjust.
7817         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
7818         * common.opt (Ofast): Add.
7819
7820 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
7821
7822         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
7823         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
7824
7825 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
7826
7827         PR target/43610
7828         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
7829         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
7830         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
7831         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
7832
7833 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
7834
7835         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
7836         DW_OP_minus with negated offset instead of DW_OP_plus.
7837         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
7838
7839 2010-05-25  Wei Guozhi  <carrot@google.com>
7840
7841         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
7842         tst instruction and a new alternative.
7843         * config/arm/constraints.md (Pu): New constraint.
7844
7845 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
7846
7847         * function.c (assign_stack_local_1): Initialize variable
7848         to avoid warning when bootstrapping at -O3.
7849
7850 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
7851
7852         * configure.ac (all_lang_makefiles): Remove everything related to it.
7853         * configure: Regenerate.
7854         * Makefile.in: Fix reference to ada Make-lang.in.
7855         Remove support for LANG_MAKEFILES.
7856
7857 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
7858             Sandra Loosemore  <sandra@codesourcery.com>
7859
7860         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
7861         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
7862         description.  Add arm_neon_fp16_ok.
7863         (Add Options): Add arm_neon and arm_neon_fp16.
7864
7865 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
7866
7867         * diagnostic.c: Don't include flags.h.
7868         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
7869         context parameters.  Check flags in the context passed as a parameter.
7870         (diagnostic_build_prefix): Add context parameter.  Check
7871         show_column flag in context.
7872         (diagnostic_action_after_output): Check fatal_errors flag in context.
7873         (diagnostic_report_current_module): Check show_column flag in context.
7874         (default_diagnostic_starter): Update call to
7875         diagnostic_build_prefix.
7876         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
7877         (emit_diagnostic): Pass context to permissive_error_kind.
7878         (permerror): Pass context to permissive_error_kind.
7879         * diagnostic.h (struct diagnostic_context): Add show_column,
7880         pedantic_errors, permissive and fatal_errors fields.
7881         (diagnostic_build_prefix): Update prototype.
7882         * langhooks.c
7883         * toplev.c (process_options): Set flags in global_dc from
7884         flag_show_column, flag_pedantic_errors, flag_permissive,
7885         flag_fatal_errors.
7886         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
7887         to diagnostic_build_prefix.
7888         * Makefile.in (diagnostic.o): Update dependencies.
7889
7890 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
7891
7892         * config/i386/ia32intrin.h (__crc32q): Define only if
7893         __SSE4_2__ is defined.
7894
7895 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
7896
7897         PR target/44132
7898         PR middle-end/43602
7899         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
7900         DECL_VISIBILITY_SPECIFIED.
7901         (emutls_decl): Set DECL_PRESERVE_P and copy
7902         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
7903         (emutls_finalize_control_var): New callback.
7904         (emutls_finish): Finalize emutls control variables.
7905         * toplev.c (compile_file): Move the call to emutls_finish ()
7906         before varpool_assemble_pending_decls ().
7907
7908 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
7909
7910         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
7911         added to the preprocessor condition.
7912
7913 2010-05-24  Paul Brook  <paul@codesourcery.com>
7914
7915         * gengtype-lex.l: Add HARD_REG_SET.
7916         * expr.c (expand_expr_real_1): Record writes to hard registers.
7917         * function.c (rtl_data): Add asm_clobbers.
7918         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
7919         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
7920         Use crtl->asm_clobbers.
7921
7922 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7923
7924         * doc/makefile.texi (Makefile): Mention stages 'profile'
7925         and 'feedback' for profiledbootstrap.
7926
7927 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7928
7929         PR target/44245
7930         * config/i386/i386.c (def_builtin): Properly check
7931         OPTION_MASK_ISA_64BIT.
7932
7933 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
7934
7935         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
7936         typedefs with different but compatible types.  Allow duplicate
7937         typedefs with the same type except for pedantic non-C1X, but give
7938         warning for variably modified types.
7939         * c-typeck.c (tagged_types_tu_compatible_p,
7940         function_types_compatible_p, type_lists_compatible_p,
7941         comptypes_internal): Add parameter different_types_p; set
7942         *different_types_p for different but compatible types.  All
7943         callers changed.
7944         (comptypes_check_different_types): New.
7945         * c-tree.h (comptypes_check_different_types): Declare.
7946
7947 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
7948
7949         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
7950         * jump.c: Include basic-block.h.
7951         * profile.c: Likewise.
7952         * tree-profile.c: Likewise.
7953         * coverage.c: Likewise.
7954         * basic-block.h (optimize_function_for_size_p): Move to function.h.
7955         (optimize_function_for_speed_p): Likewise.
7956         * function.h (optimize_function_for_size_p,
7957         optimize_function_for_speed_p): Moved here from basic-block.h.
7958         * Makefile.in: Update dependencies.
7959
7960 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7961
7962         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
7963         before calling make; allow override through $MAKE.
7964         * doc/invoke.texi (Optimize Options): Document override.
7965
7966 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
7967
7968         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
7969         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7970         (rs6000_mode_dependent_address_ptr): Make static.
7971         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7972         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
7973         Remove.
7974
7975 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
7976
7977         PR target/43869
7978         * config/i386/i386.c: Make sure that the correct regparm is passed.
7979
7980 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
7981
7982         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
7983         * sbitmap.c: ...to here to internalize sbitmap element access.
7984         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
7985         Explain why basic-block.h is included.
7986         * function.h: Include tm.h for CUMULATIVE_ARGS.
7987         * Makefile.in: Update dependencies.
7988
7989 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
7990
7991         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
7992         New core types.
7993         * sbitmap.h (struct sbitmap_def): Do not typedef here.
7994         * sbitmap.c: Include sbitmap.h.
7995         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
7996         hard-reg-set.h.  Split everything related to regsets out from here...
7997         * regset.h: ...to here.  New file.
7998         * df.h: Include regset.h and sbitmap.h.
7999         * tree-flow.h: Likewise.
8000         * cfgloop.h: Likewise.
8001         * except.h: Do not include sbitmap.h.  Include hashtab.h.
8002         * cgraph.h: Include vec.h and function.h.
8003         * reload.h (struct insn_chain): Change types of live_throughout
8004         and dead_or_set from regset_head to bitmap_head.
8005         (compute_use_by_pseudos): Be defined also if regset.h is not included.
8006         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
8007         spilled_regs from regset_head to bitmap_head to avoid dependency
8008         in regset.h.
8009         * sel-sched-ir.h: Include regset.h.
8010         * reload.c: Include df.h before reload.h.
8011         * caller-save.c: Likewise.
8012         * reload1.c: Likewise.
8013         * ira.c: Likewise.
8014         (mark_elimination): Update type of r to bitmap, consistent with
8015         DF_LR_IN.
8016         * dominance.c: Include bitmap.h.
8017         * modulo-sched.c: Include df.h.
8018         * cfganal.c: Include bitmap.h and sbitmap.h.
8019         * cfgbuild.c: Include sbitmap.h.
8020         * lcm.c: Include sbitmap.h.
8021         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
8022         * domwalk.c: Include sbitmap.h, exclude ggc.h.
8023         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
8024         * cselib.c: Include bitmap.h.
8025         * tree-optimize.c: Include regset.h.
8026         * stmt.c: Include bitmap.h.
8027         * Makefile.in: Update dependencies.
8028
8029 2010-05-22  Jan Hubicka  <jh@suse.cz>
8030
8031         * cgraph.h (struct varpool_node): Add same_comdat_group.
8032         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
8033         pointer.
8034         (output_varpool): Update call of lto_output_varpool_node.
8035         (input_varpool): Read same_comdat_group pointer.
8036         (input_varpool_1): Fixup same_comdat_group pointer.
8037         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
8038         group is needed, all are.
8039         * varpool.c (varpool_remove_node): Remove node from same comdat group
8040         linklist too.
8041         (varpool_analyze_pending_decls): Walk same comdat groups.
8042
8043 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
8044
8045         * rtl.h (union rtunion_def): Remove rt_bit member.
8046         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
8047         * print-rtl (print_rtx): Do not print the member.
8048         * gengtype.c (adjust_field_rtx_def): Do not handle it.
8049         * gengenrtl.c (type_from_format): Likewise.
8050         (accessor_from_format): Likewise.
8051
8052 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
8053
8054         * dbgcnt.c: Include toplev.h instead of errors.h.
8055         * ira-emit.c: Don't include errors.h.
8056         * ira.c: Include toplev.h instead of errors.h.
8057         * lto-compress.c: Include toplev.h instead of errors.h.
8058         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
8059         ira.o, dbgcnt.o): Update dependencies.
8060
8061 2010-05-22  Richard Guenther  <rguenther@suse.de>
8062
8063         * gimple.c (gimple_types_compatible_p): Check type qualifications
8064         before merging pointer to complete and pointer to incomplete type.
8065         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
8066         we use our own resolution algorithm.  The gold linker plugin
8067         doesn't do the job we want it to do here.
8068
8069 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
8070
8071         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8072         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8073         (sparc_mode_dependent_address_p): New function.
8074
8075 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
8076
8077         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
8078
8079         * timevar.c: Do not include any core headers.
8080         (timevar_print): De-i18n-ize.
8081         (print_time): Likewise.
8082         * timevar.h (timevar_push, timevar_pop): Make inline functions.
8083
8084 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
8085
8086         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
8087         langhooks-def.h.
8088         (diagnostic_initialize): Initialize x_data not last_function.
8089         (diagnostic_report_current_function): Move to tree-diagnostic.c.
8090         (default_diagnostic_starter): Call
8091         diagnostic_report_current_module not
8092         diagnostic_report_current_function.
8093         (diagnostic_report_diagnostic): Initialize x_data not
8094         abstract_origin.
8095         (verbatim): Likewise.
8096         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
8097         x_data.
8098         (struct diagnostic_context): Change last_function to x_data.
8099         (diagnostic_auxiliary_data): Replace with
8100         diagnostic_context_auxiliary_data and
8101         diagnostic_info_auxiliary_data.
8102         (diagnostic_last_function_changed, diagnostic_set_last_function,
8103         diagnostic_report_current_function): Move to tree-diagnostic.h.
8104         (print_declaration, dump_generic_node, print_generic_stmt,
8105         print_generic_stmt_indented, print_generic_expr,
8106         print_generic_decl, debug_c_tree, dump_omp_clauses,
8107         print_call_name, debug_generic_expr, debug_generic_stmt,
8108         debug_tree_chain, default_tree_printer): Move to
8109         tree-pretty-print.h.
8110         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
8111         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
8112         gimple-pretty-print.h.
8113         * pretty-print.c: Don't include tree.h
8114         (pp_base_format): Don't handle %K here.
8115         (pp_base_tree_identifier): Move to tree-pretty-print.c.
8116         * pretty-print.h (text_info): Change abstract_origin to x_data.
8117         (pp_tree_identifier, pp_unsupported_tree,
8118         pp_base_tree_identifier): Move to tree-pretty-print.h.
8119         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
8120         tree-pretty-print.h: New files.
8121         * tree-pretty-print.c: Include tree-pretty-print.h.
8122         (percent_K_format): New.  Moved from pretty-print.c.
8123         (pp_base_tree_identifier): Move from pretty-print.c.
8124         * c-objc-common.c: Include tree-pretty-print.h.
8125         (c_tree_printer): Handle %K here.
8126         * langhooks.c: Include tree-diagnostic.h.
8127         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
8128         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
8129         (default_tree_printer): Handle %K using percent_K_format.
8130         (general_init): Use default_tree_diagnostic_starter.
8131         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
8132         (free_lang_data): Use default_tree_diagnostic_starter.
8133         * c-pretty-print.c: Include tree-pretty-print.h.
8134         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8135         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8136         * dwarf2out.c: Include tree-pretty-print.h.
8137         * except.c: Include tree-pretty-print.h.
8138         * gimple-pretty-print.c: Include tree-pretty-print.h and
8139         gimple-pretty-print.h.
8140         * gimplify.c: Include tree-pretty-print.h.
8141         * graphite-poly.c: Include tree-pretty-print.h and
8142         gimple-pretty-print.h.
8143         * ipa-cp.c: Include tree-pretty-print.h.
8144         * ipa-inline.c: Include gimple-pretty-print.h.
8145         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8146         * ipa-pure-const.c: Include gimple-pretty-print.h.
8147         * ipa-struct-reorg.c: Include tree-pretty-print.h and
8148         gimple-pretty-print.h.
8149         * ipa-type-escape.c: Include tree-pretty-print.h.
8150         * print-rtl.c: Include tree-pretty-print.h.
8151         * print-tree.c: Include gimple-pretty-print.h.
8152         * sese.c: Include tree-pretty-print.h.
8153         * tree-affine.c: Include tree-pretty-print.h.
8154         * tree-browser.c: Include tree-pretty-print.h.
8155         * tree-call-cdce.c: Include gimple-pretty-print.h.
8156         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8157         * tree-chrec.c: Include tree-pretty-print.h.
8158         * tree-data-ref.c: Include tree-pretty-print.h and
8159         gimple-pretty-print.h.
8160         * tree-dfa.c: Include tree-pretty-print.h.
8161         * tree-if-conv.c: Include tree-pretty-print.h and
8162         gimple-pretty-print.h.
8163         * tree-inline.c: Include tree-pretty-print.h.
8164         * tree-into-ssa.c: Include tree-pretty-print.h and
8165         gimple-pretty-print.h.
8166         * tree-nrv.c: Include tree-pretty-print.h.
8167         * tree-object-size.c: Include tree-pretty-print.h and
8168         gimple-pretty-print.h.
8169         * tree-outof-ssa.c: Include tree-pretty-print.h and
8170         gimple-pretty-print.h.
8171         * tree-parloops.c: Include tree-pretty-print.h and
8172         gimple-pretty-print.h.
8173         * tree-predcom.c: Include tree-pretty-print.h and
8174         gimple-pretty-print.h.
8175         * tree-scalar-evolution.c: Include tree-pretty-print.h and
8176         gimple-pretty-print.h.
8177         * tree-sra.c: Include tree-pretty-print.h.
8178         * tree-ssa-address.c: Include tree-pretty-print.h.
8179         * tree-ssa-alias.c: Include tree-pretty-print.h.
8180         * tree-ssa-ccp.c: Include tree-pretty-print.h and
8181         gimple-pretty-print.h.
8182         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
8183         * tree-ssa-copy.c: Include tree-pretty-print.h and
8184         gimple-pretty-print.h.
8185         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
8186         * tree-ssa-dce.c: Include tree-pretty-print.h and
8187         gimple-pretty-print.h.
8188         * tree-ssa-dom.c: Include tree-pretty-print.h and
8189         gimple-pretty-print.h.
8190         * tree-ssa-dse.c: Include gimple-pretty-print.h.
8191         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
8192         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
8193         * tree-ssa-live.c: Include tree-pretty-print.h and
8194         gimple-pretty-print.h.
8195         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
8196         gimple-pretty-print.h.
8197         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
8198         gimple-pretty-print.h.
8199         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
8200         gimple-pretty-print.h.
8201         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
8202         gimple-pretty-print.h.
8203         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
8204         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
8205         * tree-ssa-operands.c: Include tree-pretty-print.h and
8206         gimple-pretty-print.h.
8207         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
8208         gimple-pretty-print.h.
8209         * tree-ssa-pre.c: Include tree-pretty-print.h and
8210         gimple-pretty-print.h.
8211         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
8212         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
8213         gimple-pretty-print.h.
8214         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
8215         gimple-pretty-print.h.
8216         * tree-ssa-sink.c: Include gimple-pretty-print.h.
8217         * tree-ssa-ter.c: Include tree-pretty-print.h and
8218         gimple-pretty-print.h.
8219         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
8220         * tree-ssa.c: Include tree-pretty-print.h and
8221         gimple-pretty-print.h.
8222         * tree-stdarg.c: Include gimple-pretty-print.h.
8223         * tree-switch-conversion.c: Include gimple-pretty-print.h.
8224         * tree-tailcall.c: Include tree-pretty-print.h and
8225         gimple-pretty-print.h.
8226         * tree-vect-data-refs.c: Include tree-pretty-print.h and
8227         gimple-pretty-print.h.
8228         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
8229         gimple-pretty-print.h.
8230         * tree-vect-loop.c: Include tree-pretty-print.h and
8231         gimple-pretty-print.h.
8232         * tree-vect-patterns.c: Include gimple-pretty-print.h.
8233         * tree-vect-slp.c: Include tree-pretty-print.h and
8234         gimple-pretty-print.h.
8235         * tree-vect-stmts.c: Include tree-pretty-print.h and
8236         gimple-pretty-print.h.
8237         * tree-vectorizer.c: Include tree-pretty-print.h.
8238         * tree-vrp.c: Include tree-pretty-print.h and
8239         gimple-pretty-print.h.
8240         * value-prof.c: Include tree-pretty-print.h and
8241         gimple-pretty-print.h.
8242         * var-tracking.c: Include tree-pretty-print.h.
8243         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
8244         (tree-diagnostic.o): New dependencies.
8245         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
8246         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
8247         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
8248         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
8249         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
8250         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
8251         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
8252         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
8253         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
8254         tree-ssa-address.o, tree-ssa-loop-niter.o,
8255         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
8256         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
8257         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
8258         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
8259         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
8260         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
8261         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
8262         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
8263         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
8264         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
8265         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
8266         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
8267         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
8268         tree-switch-conversion.o, var-tracking.o, value-prof.o,
8269         cfgexpand.o, pretty-print.o): Update dependencies.
8270
8271 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
8272
8273         * tree-ssa-structalias.c: Remove tm_p.h from include.
8274
8275 2010-05-21  Jeff Law  <law@redhat.com>
8276
8277         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
8278
8279 2010-05-21  Jason Merrill  <jason@redhat.com>
8280
8281         * tree-eh.c (cleanup_is_dead_in): New.
8282         (lower_try_finally): Don't generate a dead cleanup region.
8283         (lower_cleanup): Likewise.
8284
8285 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
8286
8287         PR debug/44223
8288         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
8289         unchain each use from the cyclic next_regno_use chain first.
8290
8291 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
8292
8293         * real: Do not include gmp.h, mpfr.h, and mpc.h.
8294         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
8295         (real_value_negate, real_value_abs): New prototypes.
8296         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
8297         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
8298         new include file for interface between MPFR and REAL_VALUE_TYPE.
8299         * real.c: Include realmpfr.h.
8300         (real_arithmetic2): Remove legacy function.
8301         (real_value_negate): New.
8302         (real_value_abs): New.
8303         (mfpr_from_real, real_from_mpfr): Move from here...
8304         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
8305         * builtins.c: Include realmpfr.h.
8306         * fold-const.c: Include realmpfr.h.
8307         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
8308         (fold_negate_const): Likewise.
8309         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
8310         * toplev.c: Include realmpfr.h.
8311         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
8312         and real_value_negate.
8313         * fixed-value.c (check_real_for_fixed_mode): Likewise.
8314         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
8315         (vfp3_const_double_index): Likewise.
8316         (arm_print_operand): Likewise.
8317         * Makefile.in: Update dependencies.
8318
8319 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8320
8321         * config/s390/s390.c (override_options): Increase the default
8322         of max-completely-peel-times.
8323
8324 2010-05-21  Julian Brown  <julian@codesourcery.com>
8325             Mark Mitchell  <mark@codesourcery.com>
8326
8327         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
8328         sibling calls for Thumb-1.
8329         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
8330         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
8331         Thumb-2.
8332         (*call_insn, *call_value_insn): Don't use for Thumb-2.
8333         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
8334         for Thumb-2.
8335         (return): New expander.
8336         (*arm_return): New name for ARM return insn.
8337         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
8338
8339 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
8340
8341         * config.gcc (sparc64-*-rtems*): New target.
8342
8343 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
8344
8345         * tree.c (build_function_decl_skip_args): Fix grammar.
8346         (build_function_type_list_1): Fix typos, adjust formatting.
8347
8348 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
8349
8350         * tree.h: Include real.h and fixed-value.h as basic datatypes.
8351         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
8352         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
8353         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
8354         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
8355         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
8356         tree-pretty-print.c, tree-loop-distribution.c,
8357         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
8358         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
8359         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
8360         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
8361         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
8362         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
8363         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
8364         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
8365         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
8366         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
8367         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
8368         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
8369         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
8370         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
8371         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
8372         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
8373         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
8374         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
8375         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
8376         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
8377         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
8378         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
8379         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
8380         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
8381         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
8382         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
8383         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
8384         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
8385         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
8386         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
8387         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
8388         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
8389         config/score/score7.c, config/score/score.c, config/arm/arm.c,
8390         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
8391         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
8392         config/bfin/bfin.c: Clean up redundant includes.
8393         * Makefile.in: Update accordingly.
8394
8395 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
8396
8397         PR middle-end/44204
8398         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
8399         statement has no arguments.
8400
8401 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
8402
8403         PR/44139
8404         * varasm.c (emutls_decl): Merge attributes to new decl.
8405
8406 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
8407
8408         PR middle-end/44101
8409         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
8410         around the uniquized constructor if its type requires a conversion.
8411
8412 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
8413
8414         PR debug/44205
8415         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
8416         at -O0 goto_locus of any of the incoming edges differs from
8417         goto_locus of outgoing edge, or gimple_location of any of the
8418         labels differs.
8419
8420 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
8421
8422         * ira.c (ira_non_ordered_class_hard_regs): Define.
8423         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
8424         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
8425         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
8426         cost of unaligned hard regs when allocating multi-reg pseudos.
8427
8428 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
8429
8430         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
8431         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
8432         for TARGET_NO_FLOAT.
8433         * config/mips/mips.c (mips_file_start): Expand conditional expression
8434         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
8435         (mips_override_options): Move -mno-float override -msoft-float and
8436         -mhard-float.
8437         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
8438         Condition(TARGET_SUPPORTS_NO_FLOAT).
8439         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
8440         __mips_no_float here.
8441         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
8442         (TARGET_SUPPORTS_NO_FLOAT): Define.
8443         * config/mips/sdemtk.opt: Delete.
8444
8445 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
8446
8447         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
8448
8449 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
8450
8451         PR target/43733
8452         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
8453         * configure: Regenerate.
8454         * config.in: Regenerate.
8455         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
8456         instead of sahf only for 64bit targets.
8457
8458 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
8459
8460         PR debug/44178
8461         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
8462         setup_ref_regs for DEBUG_INSNs.
8463
8464 2010-05-20  Jan Hubicka  <jh@suse.cz>
8465
8466         PR middle-end/44197
8467         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
8468
8469 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
8470
8471         PR bootstrap/43870
8472         * df-scan.c (df_ref_compare): Stabilize sort.
8473
8474 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
8475
8476         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
8477         argument.  Don't use DW_OP_piece if offset is non-zero,
8478         put offset into second DW_OP_bit_piece argument.
8479         (dw_sra_loc_expr): Adjust callers.  For memory expressions
8480         compute offset.
8481
8482 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
8483
8484         PR target/44202
8485         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
8486         settings for 16-bit-constant "addo" alternative.
8487
8488 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
8489
8490         * config/mips/mips-dsp.md (add<DSPV:mode>3,
8491         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
8492
8493         PR target/43764
8494         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
8495         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
8496         Use it.
8497
8498 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
8499
8500         * diagnostic.c (FLOAT, FFS): Don't undefine.
8501         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
8502         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
8503         include ordering.
8504
8505 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
8506
8507         * combine.c (propagate_for_debug): Call make_compound_operation
8508         on the source value.
8509         (try_combine): When implementing a split chosen by find_split_point,
8510         either copy i2src or set it to null.  Assert that i2src is not null
8511         before substituting into CALL_INSN_FUNCTION_USAGE.
8512
8513 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
8514
8515         * double-int.h (double_int_ior): New function.
8516         * tree.h (build_int_cst_wide_type): Remove.
8517         * tree.c (build_int_cst_wide_type): Remove.
8518         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
8519         of build_int_cst_wide_type.
8520         * stor-layout.c (set_sizetype): (Ditto.).
8521         * dojump.c (do_jump): Use build_int_cstu instead of
8522         build_int_cst_wide_type.
8523
8524 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
8525
8526         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
8527         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
8528         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
8529         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
8530         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
8531         propagate the 'data' argument to copy_tree_r.
8532         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
8533         Propagate 'data' argument to walk_tree.
8534         (copy_if_shared): New function.
8535         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
8536         (unmark_visited): New function.
8537         (unshare_body): Call copy_if_shared instead of doing it manually.
8538         (unvisit_body): Call unmark_visited instead of doing it manually.
8539
8540 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
8541
8542         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
8543         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
8544         * hooks.c: Likewise.
8545         * target-def.h (TARGET_FOLD_BUILTIN): Define to
8546         hook_tree_tree_int_treep_bool_null.
8547         * target.h (struct gcc_target): Update signature of fold_builtin
8548         field.
8549         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
8550         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
8551         instead of the call expression.
8552         (fold_builtin_call_array): Pass n and argarray directly.
8553         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
8554         consing a list.
8555         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
8556         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
8557         `i' and use it in place of `arity'.
8558         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
8559         Dereference `args' directly.
8560         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
8561
8562 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8563
8564         * doc/sourcebuild.texi (Effective-Target Keywords): Document
8565         3dnow, sse3, sse2.
8566         (Directives): Document optional dg-require-effective-target
8567         selector.
8568
8569 2010-05-19  Richard Guenther  <rguenther@suse.de>
8570
8571         PR lto/44196
8572         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
8573
8574 2010-05-19  Richard Guenther  <rguenther@suse.de>
8575
8576         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
8577         * common.opt (fwhopr=): New.
8578         * opts.c (common_handle_option): Handle OPT_fwhopr.
8579         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
8580         * collect2.c (main): Match -fwhopr*.
8581         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
8582         Execute ltrans stage in parallel when jobs is bigger than 1.
8583
8584 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8585
8586         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
8587         pentiumpro on Solaris 8/x86 with Sun as.
8588         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
8589         hidden alias bug.
8590         (gcc_cv_as_ix86_quad): Check for .quad directive.
8591         * configure: Regenerate.
8592         * config.in: Regenerate.
8593         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
8594
8595 2010-05-19  Martin Jambor  <mjambor@suse.cz>
8596
8597         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
8598         also for indirect edges.  Actual printing moved...
8599         (ipa_print_node_jump_functions_for_edge): ...here.
8600         (ipa_compute_jump_functions): Renamed to
8601         ipa_compute_jump_functions_for_edge and made static.
8602         (ipa_compute_jump_functions): New function.
8603         (make_edge_direct_to_target): Check if the number of arguments on
8604         the newly direct edge is the same as the number of parametrs of
8605         the callee.
8606         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
8607         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
8608         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
8609         analysis functions unconditionally, call the new
8610         ipa_analyze_params_uses on the node instead of every edge.
8611
8612 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
8613
8614         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
8615         to tree.
8616         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
8617         also checks for a constant int vs.  non-constant but
8618         loop-invariant steps.
8619         (find_or_create_group): Change the sort algorithm to only consider
8620         steps that are constant ints.
8621         (idx_analyze_ref): Adopt code to handle a tree instead of a
8622         HOST_WIDE_INT for step.
8623         (gather_memory_references_ref): Handle tree instead of int and be
8624         prepared to see a NULL_TREE.
8625         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
8626         prefetches if the step cannot be calculated at compile time.
8627         (issue_prefetch_ref): Issue prefetches for non-constant but
8628         loop-invariant steps.
8629
8630 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
8631
8632         Revert:
8633         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
8634
8635         * tree.h (build_call_list): Remove.
8636         * tree.c (build_call_list): Remove.
8637
8638 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
8639
8640         * tree.h (build_call_list): Remove.
8641         * tree.c (build_call_list): Remove.
8642
8643 2010-05-18  Jan Hubicka  <jh@suse.cz>
8644
8645         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
8646
8647 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
8648
8649         PR rtl-optimization/43332
8650         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
8651
8652 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
8653
8654         * tree.h (build_int_cstu): Implement as static inline.
8655         * tree.c (build_int_cstu): Remove function.
8656         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
8657         sign extended.
8658
8659 2010-05-18  Richard Guenther  <rguenther@suse.de>
8660
8661         PR lto/44143
8662         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
8663         (debug): Initialize from -save-temps.
8664         (collect_execute): Print command-line when verbose.
8665         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
8666         for ltrans invocation.  Produce -dumpbase flag again.
8667         (process_args): Remove.
8668         (main): Simplify.
8669         * collect2.c (maybe_run_lto_and_relink): Only pass object
8670         files to lto-wrapper.
8671         * gcc.c (LINK_COMMAND_SPEC): Likewise.
8672
8673 2010-05-18  Jan Hubicka  <jh@suse.cz>
8674
8675         * opts.c (decode_options): Do not disable whopr at ipa_cp.
8676         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
8677
8678 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
8679
8680         PR lto/44184
8681         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
8682         in a GIMPLE_ASM.
8683         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
8684         in a GIMPLE_ASM.
8685
8686 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
8687
8688         PR debug/41371
8689         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
8690         rtx_equal_p inline.
8691
8692 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
8693
8694         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
8695         lto-macho as lto_binary_reader.
8696
8697         * darwin.c (darwin_asm_named_section): Do not add assembler comment
8698         after .section directive; just print it before the directive instead.
8699
8700 2010-05-17  Jan Hubicka  <jh@suse.cz>
8701
8702         * cgraph.c (cgraph_create_virtual_clone): Only check
8703         versionable_function_p when not in wpa and checking is enabled.
8704         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
8705         there are no more functions to materialize.
8706
8707 2010-05-17  Jan Hubicka  <jh@suse.cz>
8708
8709         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
8710         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
8711         New functions.
8712         (output_cgraph): Call output_cgraph_opt_summary.
8713         (input_cgrpah): Call input_cgraph_opt_summary.
8714         (output_cgraph_opt_summary_p, output_node_opt_summary,
8715         input_node_opt_summary, input_cgraph_opt_section): New functions.
8716         * lto-section-in.c (lto_section_name): Add cgraphopt.
8717         * tree-inline.c (tree_function_versioning): Handle parm_num.
8718         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
8719         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
8720
8721 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
8722
8723         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
8724         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
8725         the insn to prefetch ratio heuristic to loops with known trip count.
8726
8727 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
8728
8729         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
8730         (schedule_prefetches): Do not generate a prefetch if the unroll factor
8731         is far from what is required by the prefetch.
8732
8733 2010-05-17  Jan Hubicka  <jh@suse.cz>
8734
8735         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
8736         (ipcp_estimate_growth): Likewise.
8737         (ipcp_const_param_count): Likewise.
8738         (ipcp_insert_stage): Likewise.
8739         * ipa-prop.c (visit_load_for_mod_analysis): New function.
8740         (visit_store_addr_for_mod_analysis): Set used flag.
8741         (ipa_detect_param_modifications): Set used flag for SSE params;
8742         update use of walk_stmt_load_store_addr_ops.
8743         (ipa_print_node_params): Print used flag.
8744         (ipa_write_node_info): Stream used flag.
8745         (ipa_read_node_info): Likewise.
8746         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
8747         (ipa_is_param_used): New function.
8748         (lto_ipa_fixup_call_notes): Remove unused declaration.
8749
8750 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8751
8752         PR target/44074
8753         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
8754         * configure: Regenerate.
8755         * config.in: Regenerate.
8756         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
8757         !HAVE_AS_IX86_REP_LOCK_PREFIX.
8758         Don't emit whitespace.
8759         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
8760         (*rep_movsi): Likewise.
8761         (*rep_movsi_rex64): Likewise.
8762         (*rep_movqi): Likewise.
8763         (*rep_movqi_rex64): Likewise.
8764         (*rep_stosdi_rex64): Likewise.
8765         (*rep_stossi): Likewise.
8766         (*rep_stossi_rex64): Likewise.
8767         (*rep_stosqi): Likewise.
8768         (*rep_stosqi_rex64): Likewise.
8769         (*cmpstrnqi_nz_1): Use {%;} after repz.
8770         (*cmpstrnqi_nz_rex_1): Likewise.
8771         (*cmpstrnqi_1): Likewise.
8772         (*cmpstrnqi_rex_1): Likewise.
8773         (*strlenqi_1): Use {%;} after repnz.
8774         (*strlenqi_rex_1): Likewise.
8775         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
8776         (*sync_compare_and_swap<mode>): Likewise.
8777         (sync_double_compare_and_swap<mode>): Likewise.
8778         (*sync_double_compare_and_swapdi_pic): Likewise.
8779         (sync_old_add<mode>): Likewise.
8780         (sync_add<mode>): Likewise.
8781         (sync_sub<mode>): Likewise.
8782         (sync_<code><mode>): Likewise.
8783
8784 2010-05-17  Martin Jambor  <mjambor@suse.cz>
8785
8786         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
8787         otr_token and polymorphic.
8788         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
8789         (cgraph_clone_edge): Copy the above fields.
8790         * tree.c (get_binfo_at_offset): New function.
8791         * tree.h (get_binfo_at_offset): Declare.
8792         * ipa-prop.h (enum jump_func_type): Added known_type jump function
8793         type, reordered items, updated comments.
8794         (union jump_func_value): Added base_type field, reordered fields.
8795         (enum ipa_lattice_type): Moved down in the file.
8796         (struct ipa_param_descriptor): New field polymorphic.
8797         (ipa_is_param_polymorphic): New function.
8798         * ipa-prop.c: Include gimple.h and gimple-fold.h.
8799         (ipa_print_node_jump_functions): Print known type jump functions.
8800         (compute_complex_pass_through): Renamed to...
8801         (compute_complex_assign_jump_func): this.
8802         (compute_complex_ancestor_jump_func): New function.
8803         (compute_known_type_jump_func): Likewise.
8804         (compute_scalar_jump_functions): Create known type and complex ancestor
8805         jump functions.
8806         (ipa_note_param_call): New parameter polymorphic, set the corresponding
8807         flag in the call note accordingly.
8808         (ipa_analyze_call_uses): Renamed to...
8809         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
8810         variable var only in the block where it is used.
8811         (ipa_analyze_virtual_call_uses): New function.
8812         (ipa_analyze_call_uses): Likewise.
8813         (combine_known_type_and_ancestor_jfs): Likewise.
8814         (update_jump_functions_after_inlining): Implemented handling of a
8815         number of new jump function types combination.
8816         (print_edge_addition_message): Removed.
8817         (make_edge_direct_to_target): New function.
8818         (try_make_edge_direct_simple_call): Likewise.
8819         (try_make_edge_direct_virtual_call): Likewise.
8820         (update_call_notes_after_inlining): Renamed to...
8821         (update_indirect_edges_after_inlining): this.  Moved edge creation for
8822         indirect calls to try_make_edge_direct_simple_call, also calls
8823         try_make_edge_direct_virtual_call for virtual calls.
8824         (ipa_print_node_params): Changed the header message.
8825         (ipa_write_jump_function): Stream also known type jump functions.
8826         (ipa_read_jump_function): Likewise.
8827         (ipa_write_indirect_edge_info): Stream new fields in
8828         cgraph_indirect_call_info.
8829         (ipa_read_indirect_edge_info): Likewise.
8830         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
8831         GIMPLE_FOLD_H.
8832
8833 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8834
8835         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
8836
8837 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
8838
8839         * tree.h (CALL_EXPR_ARGS): Delete.
8840         (call_expr_arglist): Delete.
8841         * tree.c (call_expr_arglist): Delete.
8842         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
8843         targetm.fold_builtin.
8844         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
8845         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
8846         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
8847         arglist parameter.  Use CALL_EXPR_ARG.
8848         (picochip_expand_builtin_3op): Likewise.
8849         (picochip_expand_builtin_2opvoid): Likewise.
8850         (picochip_expand_array_get): Likewise.
8851         (picochip_expand_array_put): Likewise.
8852         (picochip_expand_array_testport): Likewise.
8853         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
8854         rather than arglist.
8855         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
8856         CALL_EXPR_ARGS.
8857         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
8858         than TREE_VALUE and TREE_CHAIN.
8859         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
8860         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
8861         the arglist.
8862
8863 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
8864
8865         PR bootstrap/42347
8866         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
8867         to have no fallthru edge.
8868
8869         PR middle-end/44102
8870         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
8871         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
8872         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
8873         add BARRIER after previous bb if needed.
8874
8875 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
8876
8877         * tree.c (build_function_type_list_1): Remove bogus assert condition.
8878
8879 2010-05-17  Alan Modra  <amodra@gmail.com>
8880
8881         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
8882         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
8883         with copy_reg rtx param.
8884         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
8885         Correct cases where code for ABI_V4 did not initialise the reg
8886         used to access frame.  Also leave frame_reg_rtx as sp for large
8887         frames that save no regs.
8888
8889 2010-05-17  Martin Jambor  <mjambor@suse.cz>
8890
8891         PR middle-end/44133
8892         * tree-sra.c (create_access_replacement): New parameter rename, mark
8893         the replaement for renaming only when it is true.
8894         (get_access_replacement): Pass true in the rename parameter of
8895         create_access_replacement.
8896         (get_unrenamed_access_replacement): New function.
8897         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
8898         replacement declaration from it.
8899
8900 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
8901
8902         * function.c (try_fit_stack_local, add_frame_space): New static
8903         functions.
8904         (assign_stack_local_1): Use them.  Look for opportunities to use
8905         space previously wasted on alignment.
8906         * function.h (struct frame_space): New.
8907         (struct rtl_data): Add FRAME_SPACE_LIST member.
8908         * reload1.c (something_was_spilled): New static variable.
8909         (alter_reg): Set it.
8910         (reload): Test it in addition to testing if the frame size changed.
8911
8912 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
8913
8914         * config/s390/s390.c: Define sane prefetch settings and activate
8915         flag_prefetch_loop_arrays on -O3.
8916         * config/s390/s390.h: Declare that read can use write prefetch.
8917
8918 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
8919
8920         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
8921         build.
8922
8923 2010-05-16  Jan Hubicka  <jh@suse.cz>
8924
8925         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
8926         function body; do not check stdarg field of struct function.
8927
8928 2010-05-16  Jan Hubicka  <jh@suse.cz>
8929
8930         * cgraph.c (dump_cgraph_node): Dump versionable flag.
8931         * cgraph.h (cgraph_local_info): Add versionable flag.
8932         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
8933         (ipcp_versionable_function_p): Use it.
8934         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
8935         versionable flag.
8936
8937 2010-05-16  Jan Hubicka  <jh@suse.cz>
8938
8939         * cgraph.c (cgraph_clone_node): Take decl argument and insert
8940         clone into hash when it is different from orig.
8941         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
8942         * cgraph.h (cgraph_clone_node): Update prototype.
8943         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
8944         (lto_cgraph_encoder_delete): Delete body map.
8945         (lto_cgraph_encoder_size): Move to header.
8946         (lto_cgraph_encoder_encode_body_p,
8947         lto_set_cgraph_encoder_encode_body): New.
8948         (lto_output_node): Do not take written_decls argument; output clone_of
8949         pointer.
8950         (add_node_to): Add include_body_argument; call
8951         lto_set_cgraph_encoder_encode_body on master of the clone.
8952         (add_references): Update use of add_node_to.
8953         (compute_ltrans_boundary): Likewise.
8954         (output_cgraph): Do not create written_decls bitmap.
8955         (input_node): Take nodes argument; stream in clone_of correctly.
8956         (input_cgraph_1): Update use of input_node.
8957         * lto-streamer-out.c (lto_output): Use encoder info to decide
8958         what bodies to output.
8959         * ipa-inline.c (cgraph_clone_inlined_nodes,
8960         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
8961         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
8962         (lto_cgraph_encoder_size): Define here.
8963         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
8964         Declare.
8965
8966 2010-05-16  Richard Guenther  <rguenther@suse.de>
8967
8968         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
8969         -fipa-type-escape.
8970         * ipa-type-escape.c (gate_type_escape_vars): Run when
8971         -fipa-struct-reorg runs.
8972         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
8973         * common.opt (fipa-type-escape): Remove.
8974
8975 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
8976
8977         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
8978         (decode_options): Likewise.
8979         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
8980
8981 2010-05-16  Jan Hubicka  <jh@suse.cz>
8982
8983         * ipa.c (function_and_variable_visibility): Also bring local all
8984         aliases.
8985
8986 2010-05-16  Richard Guenther  <rguenther@suse.de>
8987
8988         * alias.c (nonoverlapping_memrefs_p): Remove use of
8989         IPA type-escape information.
8990
8991 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
8992
8993         * c-common.c (c_common_reswords): Add _Static_assert for C.
8994         * c-parser.c (c_token_starts_declaration,
8995         c_parser_next_token_starts_declaration,
8996         c_parser_static_assert_declaration_no_semi,
8997         c_parser_static_assert_declaration): New.
8998         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
8999         Handle static assertions if static_assert_ok.
9000         (c_parser_external_declaration, c_parser_declaration_or_fndef,
9001         c_parser_compound_statement_nostart, c_parser_label,
9002         c_parser_for_statement, c_parser_objc_methodprotolist,
9003         c_parser_omp_for_loop): All callers of
9004         c_parser_declaration_or_fndef changed.
9005         (c_parser_struct_declaration): Handle static assertions.
9006         (c_parser_compound_statement_nostart): Use
9007         c_parser_next_token_starts_declaration and
9008         c_token_starts_declaration to detect start of declarations.
9009         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
9010         Likewise.
9011
9012 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
9013
9014         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
9015         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
9016         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9017         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9018         (mmix_function_outgoing_value): Rename to...
9019         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
9020         (mmix_function_value_regno_p): Make static.
9021         (mmix_libcall_value): New function.
9022         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
9023         mmix_function_value_regno_p): Remove declaration.
9024
9025 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
9026
9027         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
9028         BUILT_IN_ALLOCA if stack checking is enabled.
9029
9030 2010-05-16  Richard Guenther  <rguenther@suse.de>
9031
9032         * var-tracking.c (vars_copy_1): Inline ...
9033         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
9034         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
9035         (variable_merge_over_cur): Adjust.  Merge asserts.
9036         (variable_merge_over_src): Likewise.
9037         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
9038         (variable_post_merge_new_vals): Merge asserts.
9039         (variable_post_merge_perm_vals): Likewise.
9040         (find_mem_expr_in_1pdv): Likewise.
9041         (dataflow_set_different_value): Remove.
9042         (onepart_variable_different_p): Merge asserts.
9043         (variable_different_p): Likewise.
9044         (dataflow_set_different_1): Inline ...
9045         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
9046         (emit_notes_for_differences_1): Merge asserts.
9047
9048 2010-05-16  Richard Guenther  <rguenther@suse.de>
9049
9050         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
9051         * optabs.c (libfunc_decl_hash): Likewise.
9052         * varasm.c (emutls_decl): Likewise.
9053
9054 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
9055
9056         * c-decl.c: Don't include gimple.h.
9057         (merge_decls): Do not copy gimple_body.
9058
9059 2010-05-15  Jason Merrill  <jason@redhat.com>
9060
9061         * c.opt: Add -fnothrow-opt.
9062
9063 2010-05-15  Jan Hubicka  <jh@suse.cz>
9064
9065         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
9066         analyzed.
9067         * passes.c (ipa_write_summaries): Write all analyzed nodes.
9068
9069 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
9070
9071         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
9072         * Makefile.in: Add it.
9073         Fix all other Makefile dependencies for changes below.
9074         * tree.h: Include it instead of defining VEC primitives here.
9075         * gimple.h: Likewise.
9076         * rtl.h: Likewise.
9077         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
9078         * except.h: Include vecir.h, break dependence on tree.h.
9079
9080         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
9081         Move from here...
9082         * tree-iterator.c: ...to here.
9083         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
9084
9085         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
9086         tm_p.h.
9087         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
9088         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
9089         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
9090         tree-mudflap.h, and target.h.
9091         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
9092         predict.h, tree-inline.h, gimple.h, and langhooks.h.
9093         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
9094         Add FIXME for why gimple.h is still included (should be unnecessary
9095         since GCC 4.5 gimplification unit-at-a-time).
9096         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
9097         * c-pragma.c: Add FIXME for why function.h needs to be included just
9098         for cfun, at front-end level.
9099         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
9100         Do not include ggc.h, but include vecprim.h for VEC(char).
9101         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
9102         Explain why target.h is included.
9103         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
9104         Explain why gimple.h is included.
9105         * c-ppoutput.c: Do not include tm.h.
9106         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
9107         * c-parses.c: Explain why rtl.h is included, and that this (and only
9108         this) is also why tm.h must be included.
9109         Do not include except.h.
9110         * c-lang.c: Do not include ggc.h.
9111
9112 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
9113
9114         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
9115
9116 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
9117
9118         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
9119         unions by default if those structs and unions have no tags.  Do
9120         not condition anonymous struct and unions handling on flag_iso.
9121         Allow anonymous structs and unions for C1X.
9122         (finish_struct): Do not diagnose lack of named fields when
9123         anonymous structs and unions present for C1X.  Accept flexible
9124         array members in structure with anonymous structs or unions but no
9125         directly named fields.
9126         * doc/extend.texi (Unnamed Fields): Update.
9127
9128 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
9129
9130         * gimple.h (compare_field_offset): Rename into...
9131         (gimple_compare_field_offset): ...this.
9132         * gimple.c (compare_field_offset): Rename into...
9133         (gimple_compare_field_offset): ...this.  Compare the full access if
9134         the offset is self-referential.
9135         (gimple_types_compatible_p): Adjust for above renaming.
9136         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
9137         DECL_NONADDRESSABLE_P flag of fields before merging them.
9138
9139 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
9140
9141         * tree.h (ctor_to_list): Delete.
9142         * tree.c (ctor_to_list): Delete.
9143
9144 2010-05-15  Jan Hubicka  <jh@suse.cz>
9145
9146         * ipa-reference.c: Include toplev.h
9147         (is_proper_for_analysis): Only add to all_module_statics
9148         if it is allocated.
9149         (write_node_summary_p, stream_out_bitmap,
9150         ipa_reference_write_optimization_summary,
9151         ipa_reference_read_optimization_summary): New.
9152         (struct ipa_opt_pass_d pass_ipa_reference): Add
9153         optimization summary streaming.
9154         * lto-cgraph.c (referenced_from_this_partition_p,
9155         reachable_from_this_partition_p): New functions.
9156         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
9157         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
9158         * opts.c (decode_options): Enable ipa_reference.
9159         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
9160         * lto-streamer.h (referenced_from_this_partition_p,
9161         reachable_from_this_partition_p): Declare.
9162
9163 2010-05-15  Richard Guenther  <rguenther@suse.de>
9164
9165         PR tree-optimization/44038
9166         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
9167         taking the address of a V_C_E of a constant.
9168
9169 2010-05-14  Jan Hubicka  <jh@suse.cz>
9170
9171         * tree.h (memory_identifier_string): Remove.
9172         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
9173         (ipa_reference_global_vars_info_d): Remove statics_not_read and
9174         statics_not_written.
9175         (ipa_reference_optimization_summary_d): New structure.
9176         (ipa_reference_optimization_summary_t): New type and vector.
9177         (ipa_reference_vars_info_d): Embedd structures instead of using
9178         pointers.
9179         (reference_vars_to_consider): Remove out of GGC space.
9180         (module_statics_escape): Remove.
9181         (global_info_obstack): Rename to ...
9182         (optimization_summary_obstack): ... this one.
9183         (initialization_status_t): Remove.
9184         (memory_identifier_string): Remove.
9185         (get_reference_vars_info): Fix indenting.
9186         (set_reference_vars_info): Likewise.
9187         (get_reference_optimization_summary): New.
9188         (set_reference_optimization_summary): New.
9189         (get_global_reference_vars_info): Remove.
9190         (ipa_reference_get_read_global): Remove.
9191         (ipa_reference_get_written_global): Remove.
9192         (ipa_reference_get_not_read_global): Update.
9193         (ipa_reference_get_not_written_global): Update.
9194         (is_proper_for_analysis): Outlaw addressable.
9195         (propagate_bits): Update for new datastructures.
9196         (analyze_variable): Remove.
9197         (init_function_info): Update for new datastructures.
9198         (clean_function_local_data): Remove.
9199         (clean_function): Remove.
9200         (copy_global_bitmap): Use optimizations_summary_obstack.
9201         (duplicate_node_data): Duplicate optimization summary only.
9202         (remove_node_data): Remove optimization summary only.
9203         (generate_summary): Do not analyze variables; do not compute
9204         module_statics_escape; do not prune solutions by it.
9205         (read_write_all_from_decl): Fix typos in comments.
9206         (propagate): Doscover readonly and nonaddressable first;
9207         update for new datastructures; share global bitmaps.
9208         * ipa-reference.h (ipa_reference_get_read_global,
9209         ipa_reference_get_written_global): Remove.
9210         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
9211         * Makefile.in: Remove ipa-refereference from GT files.
9212
9213 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
9214
9215         PR debug/44112
9216         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
9217         for all SYMBOL_REF_DECLs.
9218
9219 2010-05-14  Jan Hubicka  <jh@suse.cz>
9220
9221         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
9222         (varpool_all_refs_explicit_p): New inline function.
9223         * ipa-reference.c: Update comment.
9224         (module_statics_written): Remove.
9225         (get_static_decl): Remove.
9226         (ipa_init): Do not initialize module_statics_written.
9227         (analyze_function): Likewise.
9228         (generate_summary): Likewise; do not compute module_statics_readonly
9229         and do not update variable flags.
9230         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
9231         * ipa.c: Inlucde flags.h
9232         (cgraph_local_node_p): New.
9233         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
9234         promote functions to local.
9235         (ipa_discover_readonly_nonaddressable_vars): New function.
9236         (function_and_variable_visibility): Use cgraph_local_node_p.
9237         * varpool.c (varpool_finalize_decl): Set force_output for
9238         DECL_PRESERVE_P vars.
9239
9240 2010-05-14  Jan Hubicka  <jh@suse.cz>
9241
9242         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
9243
9244 2010-05-14  Richard Guenther  <rguenther@suse.de>
9245
9246         PR tree-optimization/44119
9247         * tree-ssa-pre.c (eliminate): Properly mark replacement of
9248         a PHI node necessary.
9249
9250 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
9251
9252         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
9253
9254 2010-05-14  Jason Merrill  <jason@redhat.com>
9255
9256         PR c++/44127
9257         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
9258         (gimple_call_set_nothrow): New.
9259         * gimple.c (gimple_build_call_from_tree): Call it.
9260         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
9261
9262         PR c++/44127
9263         * gimplify.c (gimplify_seq_add_stmt): No longer static.
9264         * gimple.h: Declare it.
9265         * gimple.c (gimple_build_eh_filter): No ops.
9266
9267 2010-05-14  Jan Hubicka  <jh@suse.cz>
9268
9269         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
9270         nodes already in queue.
9271         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
9272         re-enqueueing node.
9273
9274 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
9275
9276         PR debug/44136
9277         * cfgexpand.c (expand_debug_expr): If non-memory op0
9278         has BLKmode, return NULL.
9279
9280 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
9281
9282         * config.gcc: Add support for --with-cpu option for bdver1.
9283         * config/i386/i386.h (TARGET_BDVER1): New macro.
9284         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
9285         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
9286         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
9287         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
9288         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
9289         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
9290         (processor_type): Add PROCESSOR_BDVER1.
9291         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
9292         processor_type in config/i386/i386.h.
9293         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
9294         movaps <reg, reg> instead of movapd <reg, reg> when replacing
9295         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
9296         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
9297         to emit packed xor instead of packed double/packed integer
9298         xor for SSE and AVX when moving a zero value.
9299         * config/i386/sse.md: Add check for
9300         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
9301         movapd/movdqa for SSE and AVX.
9302         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
9303         single logical operations i.e and, or and xor instead of packed double
9304         logical operations for SSE and AVX.
9305         * config/i386/i386-c.c (ix86_target_macros_internal):
9306         Add PROCESSOR_BDVER1.
9307         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
9308         (has_fma4, has_xop): New.
9309         * config/i386/i386.c (bdver1_cost): New variable.
9310         (m_BDVER1): New macro.
9311         (m_AMD_MULTIPLE): Add m_BDVER1.
9312         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
9313         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
9314         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
9315         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
9316         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
9317         x86_tune_sse_partial_reg_dependency,
9318         x86_tune_sse_unaligned_load_optimal,
9319         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
9320         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
9321         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
9322         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
9323         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
9324         Enable/disable for bdver1.
9325         (processor_target_table): Add bdver1_cost.
9326         (cpu_names): Add bdver1.
9327         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
9328          processor_alias_table.
9329         (ix86_expand_vector_move_misalign): Change.
9330         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
9331         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
9332         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
9333         of movupd/movdqu for SSE and AVX.
9334         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
9335         (ix86_tune_adjust_cost): Add code for bdver1.
9336         (standard_sse_constant_opcode): Add check for
9337         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
9338         of packed double xor for SSE and AVX.
9339
9340 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
9341
9342         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
9343         result to unsigned.
9344
9345 2010-05-14  Tristan Gingold  <gingold@adacore.com>
9346
9347         * toplev.c (default_debug_hooks): Remove this variable.
9348         (process_options): Remove assignments to default_debug_hooks.
9349
9350 2010-05-14  Martin Jambor  <mjambor@suse.cz>
9351
9352         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
9353         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
9354         * langhooks.h (struct lang_hooks_for_decls): Removed field
9355         fold_obj_type_ref.
9356         * tree.c (free_lang_data): Remove assignment to
9357         lang_hooks.fold_obj_type_ref.
9358         * tree.def (OBJ_TYPE_REF): Update comment.
9359
9360 2010-05-14  Richard Guenther  <rguenther@suse.de>
9361
9362         PR tree-optimization/44124
9363         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
9364
9365 2010-05-14  Alan Modra  <amodra@gmail.com>
9366
9367         PR target/44075
9368         * config/rs6000/rs6000.c (struct machine_function): Reorder
9369         fields for better packing.  Add lr_save_state.
9370         (rs6000_ra_ever_killed): Return lr_save_state if set.
9371         (rs6000_emit_eh_reg_restore): Set lr_save_state.
9372
9373 2010-05-13  Jan Hubicka  <jh@suse.cz>
9374
9375         * varpool.c (decide_is_variable_needed): Drop code checking
9376         TREE_SYMBOL_REFERENCED.
9377
9378 2010-05-13  Jan Hubicka  <jh@suse.cz>
9379
9380         * final.c (output_addr_const): Do not call mark_decl_referenced.
9381         * cgraphunit.c (process_function_and_variable_attributes): Use
9382         mark_needed_node dirrectly.
9383         (assemble_thunk): Do not call mark_decl_referenced.
9384
9385 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
9386
9387         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
9388
9389 2010-05-13  Jeff Law  <law@redhat.com>
9390
9391         * ira-conflicts.c (print_allocno_conflicts): New function broken out
9392         from...
9393         (print_conflicts): Call print_allocno_conflicts.
9394
9395 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
9396
9397         PR debug/44104
9398         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
9399         if it is NULL.
9400
9401 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
9402
9403         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
9404         t-mingw-w64 or t-mingw-w32 for multilib configuration.
9405         * config/i386/t-mingw-w32: New.
9406         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
9407
9408 2010-05-13  Martin Jambor  <mjambor@suse.cz>
9409
9410         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
9411         gimple-fold.c).
9412         * gimple-fold.c (get_base_binfo_for_type): New function.
9413         (gimple_get_relevant_ref_binfo): Likewise.
9414         (gimple_fold_obj_type_ref_known_binfo): Likewise.
9415         (gimple_fold_obj_type_ref): Likewise.
9416         (fold_gimple_call): Simplify condition for folding virtual calls
9417         and call gimple_fold_obj_type_ref.
9418         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
9419         (gimple_fold_obj_type_ref_known_binfo): Likewise.
9420
9421 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
9422
9423         * config/rs6000/rs6000-protos.h
9424         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
9425         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
9426         (rs6000_debug_mode_dependent_address)
9427         (rs6000_mode_dependent_address_ptr): Likewise.
9428
9429 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
9430
9431         PR debug/43983
9432         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
9433         by SRA.
9434         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
9435         * tree-sra.c (create_access_replacement): Call unshare_expr before
9436         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
9437         * dwarf2out.c: Include tree-flow.h.
9438         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
9439         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
9440         Handle DW_OP_bit_piece.
9441         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
9442         construct_piece_list, adjust_piece_list): New functions.
9443         (add_var_loc_to_decl): Handle SRA optimized variables.
9444         Adjust for var_loc_note to loc field renaming.
9445         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
9446         in VAR_LOCATION note.
9447         (new_loc_descr_op_bit_piece): New function.
9448         (dw_sra_loc_expr): New function.
9449         (dw_loc_list): Use it.  Don't handle the last range after the
9450         loop, handle it inside of the loop.  Adjust for var_loc_note
9451         to loc field renaming.
9452         (add_location_or_const_value_attribute): Only special case
9453         single entry loc lists if loc is NOTE_P.  Adjust for
9454         var_loc_note to loc field renaming.
9455         (dwarf2out_var_location): Don't set newloc->var_loc_note
9456         and newloc->next here.
9457
9458 2010-05-12  Jan Hubicka  <jh@suse.cz>
9459
9460         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
9461         flag.
9462         * cgraph.h (cgraph_only_called_directly_p,
9463         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
9464         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
9465         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
9466         (assemble
9467         * ipa.c (cgraph_remove_unreachable_nodes): Use
9468         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
9469         flags.
9470         * tree-inline.c (copy_bb): Check address_taken flag.
9471         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
9472         externally_visible flag.
9473
9474 2010-05-12  Jason Merrill  <jason@redhat.com>
9475
9476         PR bootstrap/44048
9477         PR target/44099
9478         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
9479         * sdbout.c (plain_type_1): Likewise.
9480         * dwarf2out.c (is_base_type): Likewise.
9481         (gen_type_die_with_usage): Likewise.  Generate
9482         DW_TAG_unspecified_type for any LANG_TYPE.
9483
9484 2010-05-12  Jan Hubicka  <jh@suse.cz>
9485
9486         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
9487         indrect edges too.
9488         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
9489         (cgraph_clone_edge): Update.
9490         (cgraph_node_remove_callees): Remove indirect calls too.
9491         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
9492         (cgraph_create_indirect_edge): Update prototype.
9493         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
9494         is_proper_for_analysis.
9495         (add_new_function, visited_nodes, function_insertion_hook_holder,
9496         get_local_reference_vars_info, mark_address_taken, mark_address,
9497         mark_load, mark_store, check_asm_memory_clobber, check_call,
9498         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
9499         (ipa_init): Do not initialize visited_nodes;
9500         function_insertion_hook_holder.
9501         (analyze_variable): Rewrite.
9502         (analyze_function): Rewrite.
9503         (copy_local_bitmap): Remove.
9504         (duplicate_node_dat): Do not duplicate local info.
9505         (generate_summary): Simplify to only walk cgraph.
9506         (write_node_summary_p, ipa_reference_write_summary,
9507         ipa_reference_read_summary): Remove.
9508         (propagate): Do not remove function insertion;
9509         generate summary.
9510         (pass_ipa_reference): NULLify summary handling fields.
9511         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
9512         (input_edge): Input ecf_flags.
9513         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
9514         (update_indirect_edges_after_inlining): Ignore edges with unknown
9515         param.
9516
9517 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
9518
9519         * implicit-zee.c: New file.
9520         * tree-pass.h (pass_implicit_zee): Declare.
9521         * passes.c (init_optimization_passes): Add zee pass.
9522         * common.opt (fzee): New flag.
9523         * timevar.def (TV_ZEE): Define.
9524         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
9525         and beyond.
9526         * Makefile.in (implicit-zee.o): Add new build file.
9527
9528 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
9529             Nathan Froyd  <froydnj@codesourcery.com>
9530
9531         * c-common.c (sync_resolve_params): Remove write-only variable.
9532
9533 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
9534
9535         * target.h (struct gcc_target): Add mode_dependent_address_p field.
9536         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
9537         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
9538         * targhooks.c (default_mode_dependent_address_p): New function.
9539         * targhooks.h (default_mode_dependent_address_p): Declare function.
9540         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
9541         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
9542         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
9543         target hook. Change return type to bool.
9544         * recog.h (mode_dependent_address_p): Change return type to bool.
9545
9546 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
9547             Nathan Froyd  <froydnj@codesourcery.com>
9548
9549         * tree-mudflap.c (build_function_type_0, build_function_type_1,
9550         build_function_type_2, build_function_type_3): Remove.
9551         (mudflap_init): Use build_function_type_list.
9552
9553 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
9554             Nathan Froyd  <froydnj@codesourcery.com>
9555
9556         * coverage.c (build_fn_info_value): Call build_constructor instead of
9557         build_constructor_from_list.
9558         (build_ctr_info_value): Likewise.
9559         (build_gcov_info): Likewise.
9560
9561 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
9562
9563         * tree.c (build_constructor): Compute TREE_CONSTANT for the
9564         resultant constructor.
9565         (build_constructor_single): Don't set TREE_CONSTANT.
9566         (build_constructor_from_list): Don't compute TREE_CONSTANT.
9567
9568 2010-05-12  Jan Hubicka  <jh@suse.cz>
9569
9570         * cgraph.h (struct varpool_node): Add aux.
9571         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
9572         * varpool.c (varpool_remove_node): Do not remove initializer.
9573         (varpool_reset_queue): Export.
9574         (varpool_finalize_decl): Volatile vars are forced to be output.
9575         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
9576         replaced decl.
9577         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
9578         process_references, varpool_can_remove_if_no_refs): New functions.
9579         (cgraph_remove_unreachable_nodes): Handle variables too.
9580
9581 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
9582
9583         PR target/44088
9584         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
9585
9586 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
9587
9588         PR middle-end/44085
9589         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
9590         change value of ORT_TASK.
9591         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
9592         (omp_notice_threadprivate_variable): New function.
9593         (omp_notice_variable): Call it for threadprivate variables.
9594         If enclosing ctx is a task, print enclosing task rather than
9595         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
9596         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
9597         if task has untied clause.
9598
9599         PR debug/42278
9600         * dwarf2out.c (base_type_die): Don't add name attribute here.
9601         (modified_type_die): Instead of sizetype use
9602         its underlying original type.  If a DW_TAG_base_type doesn't
9603         have name added, add __unknown__.
9604         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
9605         always call force_type_die instead.
9606
9607 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
9608
9609         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
9610         for __stack_chk_guard.
9611
9612 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
9613
9614         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
9615         don't call start_source_file debug hook here...
9616         (finish_options): ... but here, after outputting predefined and
9617         command line defines and undefs.
9618
9619         PR middle-end/44071
9620         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
9621         no fallthru edge.
9622         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
9623         optimizing away empty bb with no successors, move over its
9624         footer chain to fallthru predecessor.
9625         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
9626         (rtl_split_edge): For asm goto call patch_jump_insn even if
9627         splitting fallthru edge.
9628
9629         PR c++/44059
9630         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
9631         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
9632         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
9633         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
9634         on DW.ref.* decls.
9635
9636         PR c++/44062
9637         * c-parser.c (c_parser_expression): Mark LHS of a comma
9638         expression as read if it is a decl, handled component or
9639         COMPOUND_EXPR with that on the RHS.
9640         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
9641         if it is a decl or handled component.
9642
9643 2010-05-11  Jan Hubicka  <jh@suse.cz>
9644
9645         * lto-symtab.c (lto_symtab_free): New function.
9646         * lto-streamer.h (lto_symtab_free): Declare.
9647
9648 2010-05-11  Jan Hubicka  <jh@suse.cz>
9649
9650         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
9651         that if function is needed it is reachable.
9652         (lto_output_node): See if it the function is reachable or referenced.
9653         (output_cgraph): Update call of lto_output_node.
9654         * lto-streamer.h (reachable_from_other_partition_p): Declare.
9655
9656 2010-05-11  Jan Hubicka  <jh@suse.cz>
9657
9658         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
9659         Mark as used.
9660
9661 2010-05-11  Jan Hubicka  <jh@suse.cz>
9662
9663         PR tree-optimize/44063
9664         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
9665         queue.
9666         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
9667         limits.
9668         (estimate_function_body_sizes): Compute sizes even when disregarding.
9669
9670 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
9671
9672         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
9673
9674 2010-05-11  Jan Hubicka  <jh@suse.cz>
9675
9676         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
9677         into every boundary.
9678
9679 2010-05-11  Jan Hubicka  <jh@suse.cz>
9680
9681         * matrix-reorg.c (matrix_reorg): Rebuild edges.
9682
9683 2010-05-11  Jan Hubicka  <jh@suse.cz>
9684
9685         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
9686         lto_streamer_cache_delete): Put nodes into heap.
9687         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
9688         heap.
9689
9690 2010-05-11  Jan Hubicka  <jh@suse.cz>
9691
9692         * cgraphbuild.c (cgraph_rebuild_references): New.
9693         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
9694         out extern inlines.
9695         * cgraph.h (cgraph_rebuild_references): Declare.
9696         * tree-inline.c (tree_function_versioning): Use it.
9697         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
9698
9699 2010-05-11  Jan Hubicka  <jh@suse.cz>
9700
9701         * cgraph.c: Include ipa-utils.h
9702         (cgraph_create_virtual_clone): Update references.
9703         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
9704
9705 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
9706
9707         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
9708         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
9709         cache size.
9710
9711 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
9712
9713         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
9714
9715 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
9716
9717         * gcc.c (execute): For -### don't quote arguments that
9718         contain just alphanumerics and _/-. characters.
9719         * doc/invoke.texi: Document that change for -###.
9720
9721         PR debug/44023
9722         * df-problems.c (struct dead_debug): Add to_rescan field.
9723         (dead_debug_init): Clear to_rescan field.
9724         (dead_debug_finish): Rescan all debug insns in to_rescan
9725         bitmap and free the bitmap.
9726         (dead_debug_insert_before): Instead of rescanning debug insns
9727         immediately queue their rescanning until dead_debug_finish.
9728         (df_note_bb_compute): After dead_debug_add do continue instead
9729         of break.
9730
9731 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
9732
9733         PR debug/44028
9734         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
9735         clear also INSN_REG_USE_LIST.
9736
9737 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9738
9739         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
9740
9741 2010-05-10  Jan Hubicka  <jh@suse.cz>
9742
9743         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
9744         commited change.
9745
9746 2010-05-10  Jan Hubicka  <jh@suse.cz>
9747
9748         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
9749         Allocate encoders.
9750         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
9751         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
9752         (lto_streamer_cache_create): Init alloc pool.
9753         (lto_streamer_cache_delete): Free alloc pool.
9754         * lto-streamer.h: Include alloc pool.
9755         (lto_streamer_cache_d): Use alloc pool.
9756         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
9757
9758 2010-05-10  Jan Hubicka  <jh@suse.cz>
9759
9760         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
9761         * cgraphbuild.c: Include except.h
9762         (record_type_list, record_eh_tables): New function.
9763         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
9764
9765 2010-05-10  Jan Hubicka  <jh@suse.cz>
9766
9767         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
9768         __frame_dummy_init_array_entry, force_to_data): Attribute as used
9769         rather than unused.
9770
9771 2010-05-10  Michael Matz  <matz@suse.de>
9772
9773         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
9774         (can_reassociate_p): Use FLOAT_TYPE_P.
9775         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
9776         (vect_force_simple_reduction): ... this.
9777         * tree-parloops.c (gather_scalar_reductions): Use
9778         vect_force_simple_reduction.
9779         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
9780         vect_is_simple_reduction, add modify argument, if true rewrite
9781         "a-b" into "a+(-b)".
9782         (vect_is_simple_reduction, vect_force_simple_reduction): New
9783         functions.
9784         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
9785
9786 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
9787             Vladimir Makarov  <vmakarov@redhat.com>
9788
9789         PR rtl-optimization/44012
9790         * ira-build.c (remove_unnecessary_allocnos): Nullify
9791         regno_allocno_map of the removed allocno.
9792
9793 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9794
9795         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
9796         to /dev/null.
9797         * configure: Regenerate.
9798
9799 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9800
9801         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
9802         unused.
9803         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
9804         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
9805         support in Sun ld.
9806         * configure: Regenerate.
9807
9808 2010-05-10  Richard Guenther  <rguenther@suse.de>
9809
9810         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
9811         marked if the entry identifier is marked.
9812
9813 2010-05-10  Richard Guenther  <rguenther@suse.de>
9814
9815         * c-common.c (struct c_common_attributes): Add fnspec attribute.
9816         (handle_fnspec_attribute): New function.
9817         * gimple.h (gimple_call_return_flags): Declare.
9818         (gimple_call_arg_flags): Likewise.
9819         * gimple.c (gimple_call_arg_flags): New function.
9820         (gimple_call_return_flags): Likewise.
9821         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
9822         New argument flags.
9823         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
9824         return value flags.
9825         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
9826         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
9827         main work to ...
9828         (make_heapvar_for): ... this new function.
9829         (handle_rhs_call): Handle fnspec attribute argument specifiers.
9830         (handle_lhs_call): Likewise.
9831         (find_func_aliases): Adjust.
9832
9833 2010-05-10  Richard Guenther  <rguenther@suse.de>
9834
9835         PR tree-optimization/44050
9836         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
9837
9838 2010-05-10  Wei Guozhi  <carrot@google.com>
9839
9840         PR target/42879
9841         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
9842
9843 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
9844
9845         PR c/10676
9846         * c-typeck.c (lookup_field): Take a type directly.  Update
9847         recursive calls.
9848         (build_component_ref): Update call to lookup_field.
9849         (set_init_label): Use lookup_field to find initialized field.
9850         Handle returned list of fields like a sequence of designators.
9851
9852 2010-05-09  Richard Guenther  <rguenther@suse.de>
9853
9854         PR middle-end/44024
9855         * fold-const.c (tree_single_nonzero_warnv_p): Properly
9856         handle &FUNCTION_DECL.
9857
9858 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
9859
9860         PR c/4784
9861         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
9862         structures and unions recursively.
9863         (detect_field_duplicates): Move duplicate detection with a hash to
9864         detect_field_duplicates_hash.  Always use a hash if anonymous
9865         structures or unions are present.
9866         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
9867         give errors.
9868
9869 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
9870
9871         PR target/44046
9872         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
9873         detect Atom, Core 2 and Core i7.
9874
9875 2010-05-09  Richard Guenther  <rguenther@suse.de>
9876
9877         * gcc.c (store_arg): Handle temporary file deletion for
9878         joined arguments.
9879
9880 2010-05-09  Richard Guenther  <rguenther@suse.de>
9881
9882         PR middle-end/44043
9883         * ipa-inline.c (estimate_function_body_sizes): Return after
9884         disregarding inline limits.
9885
9886 2010-05-09  Richard Guenther  <rguenther@suse.de>
9887
9888         * gcc.c (store_arg): Revert last change.
9889
9890 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
9891
9892         PR middle-end/28685
9893         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
9894         (optimize_ops_list): Call it.
9895
9896 2010-05-08  Richard Guenther  <rguenther@suse.de>
9897
9898         PR tree-optimization/44030
9899         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
9900         NECESSARY flag if we propagate from a inserted expression.
9901
9902 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
9903
9904         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
9905         domain types as equal if they are both PLACEHOLDER_EXPRs.
9906
9907 2010-05-08  Richard Guenther  <rguenther@suse.de>
9908
9909         * lto-wrapper.c (run_gcc): Remove linker output from
9910         command line for LTRANS invocation.
9911
9912 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
9913
9914         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
9915         lto-macho as lto_binary_reader.
9916         * target.h (struct gcc_target): New hooks lto_start and lto_end.
9917         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
9918         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
9919         in lto_start and lto_end calls.
9920         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
9921         magic numbers.
9922         (scan_prog_file): Update is_elf_or_coff call.
9923         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
9924
9925         * collect2.c (main): Fix enum comparison.
9926
9927         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
9928         Add prototypes.
9929         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
9930         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
9931         and TARGET_ASM_LTO_END.
9932         * darwin.c: Include obstack.h and lto-streamer.h.
9933         (lto_section_names_offset, lto_section_names_obstack,
9934         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
9935         global variables.
9936         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
9937         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
9938         to a temporary file.
9939         (darwin_asm_lto_end): New function.  Restore asm_out_file.
9940         (darwin_asm_named_section): For LTO sections, replace the name with
9941         the offset of the section name in a string table, and build this
9942         table.
9943         (darwin_file_start): Initialize global vars for LTO support.
9944         (darwin_file_end): If output to asm_out_file was redirected, append it
9945         to the proper asm_out_file here.  Add the section names section.
9946
9947 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
9948
9949         * c-pragma.c (pending_weak_d, pending_weak): New.
9950         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
9951         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
9952         handle_pragma_weak): Update the uses of pending_weaks.
9953
9954 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9955
9956         PR documentation/44016
9957         * doc/standards.texi (Standards): Link to unversioned
9958         cxx0x_status.html page.
9959
9960 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
9961
9962         PR target/43708
9963         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
9964         in addition to TREE_USED, to avoid "set but unused" warnings.
9965
9966 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
9967
9968         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
9969         (is_loop_prefetching_profitable): Do not insert prefetches
9970         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
9971         times the prefetch ahead distance.
9972
9973 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
9974
9975         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
9976         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
9977         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
9978         the unroll_factor.
9979
9980 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
9981
9982         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
9983         a diagnostic info when the insn-to-mem ratio is too small.
9984
9985 2010-05-07  Richard Guenther  <rguenther@suse.de>
9986
9987         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
9988         the linker plugin.
9989         (store_arg): Queue temp_filename for deletion instead of
9990         the whole argument.
9991
9992 2010-05-07  Richard Guenther  <rguenther@suse.de>
9993
9994         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
9995         (run_gcc): Handle LTRANS phase invocation.
9996         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
9997
9998 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
9999
10000         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
10001         this is also meaningful on PARM_DECLs and RESULT_DECLs.
10002
10003 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10004
10005         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
10006
10007 2010-05-07  Richard Guenther  <rguenther@suse.de>
10008
10009         PR tree-optimization/44020
10010         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
10011         code when PRE is not yet initialized.
10012
10013 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10014
10015         * config/mips/dbxmdebug.h: Remove.
10016         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
10017
10018 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
10019
10020         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
10021         with null pointer and also warn about ordered comparison of zero with
10022         pointer if -Wextra.
10023
10024 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
10025
10026         * graphite-blocking.c
10027         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
10028         * graphite-clast-to-gimple.c
10029         (clast_to_gcc_expression): Same.
10030         (precision_for_value): Same.
10031         (precision_for_interval): Same.
10032         (gcc_type_for_interval): Same.
10033         (graphite_create_new_guard): Same.
10034         (compute_bounds_for_level): Same.
10035         (graphite_create_new_loop_guard): Same.
10036         * graphite-interchange.c
10037         (build_linearized_memory_access): Same.
10038         (pdr_stride_in_loop): Same.
10039         (memory_strides_in_loop_1): Same.
10040         (memory_strides_in_loop): Same.
10041         (extend_scattering): Same.
10042         (psct_scattering_dim_for_loop_depth): Same.
10043         (pbb_number_of_iterations): Same.
10044         * graphite-poly.h
10045         (debug_iteration_domains): Same.
10046         * graphite-ppl.c
10047         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
10048         (ppl_set_inhomogeneous_gmp): Same.
10049         (ppl_strip_loop): Same.
10050         (ppl_lexico_compare_linear_expressions): Same.
10051         (ppl_read_polyhedron_matrix): Same.
10052         (ppl_max_for_le_pointset): Same.
10053         * graphite-ppl.h
10054         (ppl_read_polyhedron_matrix): Same.
10055         (tree_int_to_gmp): Same.
10056         (gmp_cst_to_tree): Same.
10057         (ppl_set_inhomogeneous): Same.
10058         (ppl_set_inhomogeneous_tree): Same.
10059         (ppl_set_coef): Same.
10060         (ppl_set_coef_tree): Same.
10061         * graphite-sese-to-poly.c
10062         (build_pbb_scattering_polyhedrons): Same.
10063         (build_scop_scattering): Same.
10064         (scan_tree_for_params_right_scev): Same.
10065         (scan_tree_for_params): Same.
10066         (find_params_in_bb): Same.
10067         (find_scop_parameters): Same.
10068         (add_upper_bounds_from_estimated_nit): Same.
10069         (build_loop_iteration_domains): Same.
10070         (add_condition_to_domain): Same.
10071         (pdr_add_memory_accesses): Same.
10072
10073 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
10074
10075         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
10076         CLooG's value_* macros to their respective mpz_* counterparts.
10077         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
10078         (graphite_create_new_loop_guard): Same.
10079         * graphite-interchange.c (build_linearized_memory_access): Same.
10080         (pdr_stride_in_loop): Same.
10081         (memory_strides_in_loop_1): Same.
10082         (1st_interchange_profitable_p): Same.
10083         * graphite-poly.c (extend_scattering): Same.
10084         (psct_scattering_dim_for_loop_depth): Same.
10085         (pbb_number_of_iterations): Same.
10086         (pbb_number_of_iterations_at_time): Same.
10087         * graphite-poly.h (new_1st_loop): Same.
10088         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
10089         (oppose_constraint): Same.
10090         (insert_constraint_into_matrix): Same.
10091         (ppl_set_inhomogeneous_gmp): Same.
10092         (ppl_set_coef_gmp): Same.
10093         (ppl_strip_loop): Same.
10094         (ppl_lexico_compare_linear_expressions): Same.
10095         (ppl_max_for_le_pointset): Same.
10096         (ppl_min_for_le_pointset): Same.
10097         (ppl_build_realtion): Same.
10098         * graphite-ppl.h (gmp_cst_to_tree): Same.
10099         (ppl_set_inhomogeneous): Same.
10100         (ppl_set_inhomogeneous_tree): Same.
10101         (ppl_set_coef): Same.
10102         (ppl_set_coef_tree): Same.
10103         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
10104         (build_scop_scattering): Same.
10105         (add_value_to_dim): Same.
10106         (scan_tree_for_params_right_scev): Same.
10107         (scan_tree_for_params_int): Same.
10108         (scan_tree_for_params): Same.
10109         (find_params_in_bb): Same.
10110         (find_scop_parameters): Same.
10111         (add_upper_bounds_from_estimated_nit): Same.
10112         (build_loop_iteration_domains): Same.
10113         (create_linear_expr_from_tree): Same.
10114         (add_condition_to_domain): Same.
10115         (pdr_add_memory_accesses): Same.
10116
10117 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
10118             Jason Merrill  <jason@redhat.com>
10119
10120         * c-common.c (c_common_reswords): Add nullptr.
10121         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
10122         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
10123         (gen_type_die_with_usage): Likewise.
10124         * dbxout.c (dbxout_type): Likewise.
10125         * sdbout.c (plain_type_1): Likewise.
10126
10127 2010-05-06  Jason Merrill  <jason@redhat.com>
10128
10129         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
10130         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
10131         ret appropriately.
10132         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
10133
10134         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
10135         stripping WITH_SIZE_EXPR.
10136         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
10137         change.
10138
10139 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10140
10141         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
10142         list of obsolete configurations.
10143         Disabled check for obsolete configurations.
10144         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
10145         Removed support for previous versions.
10146         * config/mips/iris.h: Removed.
10147         * config/mips/iris5.h: Removed.
10148         * config/mips/iris6.h: Merged old iris.h contents.
10149         (TARGET_IRIX): Removed.
10150         (DRIVER_SELF_SPECS): Removed mabi=32.
10151         (IDENT_ASM_OP): Removed undef.
10152         (STARTFILE_SPEC): Removed mabi=32.
10153         (ENDFILE_SPEC): Likewise.
10154         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
10155         (MACHINE_TYPE): Update for IRIX 6.5.
10156         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
10157         TARGET_IRIX by TARGET_IRIX6.
10158         (mips_file_start): Likewise.
10159         (mips_output_external): Remove IRIX 5/6 O32 support.
10160         (mips_output_function_prologue): Likewise.
10161         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
10162         TARGET_IRIX6.
10163         (TARGET_CPU_CPP_BUILTINS): Likewise.
10164         (TARGET_IRIX): Removed.
10165         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
10166         (MULTILIB_DIRNAMES): Removed 32.
10167         (MULTILIB_OSDIRNAMES): Removed ../lib.
10168         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
10169         (Specific, mips-sgi-irix5): Document removal.
10170         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
10171         Remove references to older IRIX 6 releases and the O32 ABI.
10172
10173 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
10174
10175         PR bootstrap/43994
10176         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
10177         instead of DF_REF_REAL_REG.
10178
10179 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
10180
10181         PR target/43888
10182         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
10183         handling to still return true for x64 targets.
10184
10185 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
10186
10187         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
10188
10189 2010-05-06  Jan Hubicka  <jh@suse.cz>
10190
10191         PR tree-optimization/43791
10192         * ipa-inline.c (update_caller_keys): Remove bogus
10193         disregard_inline_limits check.
10194
10195 2010-05-06  Michael Matz  <matz@suse.de>
10196
10197         PR tree-optimization/43984
10198         * tree-ssa-pre.c (inserted_phi_names): Remove.
10199         (inserted_exprs): Change to bitmap.
10200         (create_expression_by_pieces): Set bits, don't append to vector.
10201         (insert_into_preds_of_block): Don't handle inserted_phi_names.
10202         (eliminate): Don't look at inserted_phi_names, remove deleted
10203         insns from inserted_exprs.
10204         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
10205         (init_pre, fini_pre): Allocate and free bitmaps.
10206         (execute_pre): Insert insns on edges before elimination.
10207
10208 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
10209
10210         * tree.c (initializer_zerop): Handle STRING_CST.
10211
10212 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10213
10214         PR 40989
10215         * doc/invoke.texi (Wimplicit): Document as C only.
10216         * opts.c (common_handle_option): Add argument kind.
10217         (handle_option): Rename as read_cmdline_option. Factor out code to...
10218         (handle_option): ... here. New.
10219         (handle_options): Rename as read_cmdline_options.
10220         (decode_options): Update call.
10221         (set_option): Use option index instead of option pointer. Classify
10222         diagnostics correctly.
10223         (enable_warning_as_error): Call handle_option.
10224         * opts.h (set_option): Update declaration.
10225         (handle_option): Declare.
10226         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
10227         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
10228         * c-opts.c (set_Wimplicit): Delete.
10229         (c_family_lang_mask): New static constant.
10230         (c_common_handle_option): Add argument kind. Use handle_option
10231         instead of set_Wimplicit.
10232         (c_common_post_options): warn_implicit and warn_implicit_int
10233         are disabled by default.
10234         * c-common.c (warn_implicit): Do not define here.
10235         * c-common.h (warn_implicit): Do not declare here.
10236         (c_common_handle_option): Update declaration.
10237         * lto-opts.c (lto_reissue_options): Update call to set_option.
10238
10239 2010-05-06  Richard Guenther  <rguenther@suse.de>
10240
10241         PR tree-optimization/43571
10242         * domwalk.c (walk_dominator_tree): Walk the dominator
10243         sons in more optimal order.
10244
10245 2010-05-06  Richard Guenther  <rguenther@suse.de>
10246
10247         PR tree-optimization/43934
10248         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
10249         (stmt_cost): Likewise.
10250         (extract_true_false_args_from_phi): New helper.
10251         (determine_max_movement): For PHI nodes verify we can hoist them
10252         and compute their cost.
10253         (determine_invariantness_stmt): Handle PHI nodes.
10254         (move_computations_stmt): Likewise.  Hoist PHI nodes in
10255         if-converted form using COND_EXPRs.
10256         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
10257         (tree_ssa_lim): Likewise.
10258         * tree-flow.h (tree_ssa_lim): Adjust prototype.
10259         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
10260
10261 2010-05-06  Richard Guenther  <rguenther@suse.de>
10262
10263         PR tree-optimization/43987
10264         * tree-ssa-structalias.c (could_have_pointers): For possibly
10265         address-taken variables force pointers to be recorded.
10266         (create_variable_info_for_1): Likewise.
10267         (push_fields_onto_fieldstack): Pass in wheter all fields
10268         must have pointers.
10269         (find_func_aliases): Query types instead of vars whether
10270         they contain pointers where appropriate.
10271
10272 2010-05-06  Jan Hubicka  <jh@suse.cz>
10273
10274         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
10275         (record_reference, mark_address, mark_load, mark_store): Record
10276         references.
10277         (record_references_in_initializer): Update call of record_references.
10278         (rebuild_cgraph_edges): Remove all references before rebuiding.
10279         * cgraph.c (cgraph_create_node): Clear ref list.
10280         (cgraph_remove_node): Remove references.
10281         (dump_cgraph_node): Dump references.
10282         (cgraph_clone_node): Clone references.
10283         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
10284         (struct cgraph_node, varpool_node): Add ref_lst.
10285         * ipa-ref.c: New file.
10286         * ipa-ref.h: New file.
10287         * ipa-ref-inline.h: New file.
10288         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
10289         (referenced_from_other_partition_p): New function.
10290         (lto_output_varpool_node): Take set arugment; call
10291         referenced_from_other_partition.
10292         (lto_output_ref): New.
10293         (add_references): New.
10294         (output_refs): New.
10295         (output_cgraph): Compute boundary based on references; output refs.
10296         (output_varpool): Accept cgraph_node_set argument.
10297         (input_ref): New.
10298         (input_refs): New.
10299         (input_cgraph): Call input_refs.
10300         * lto-section-in.c (lto_section_name): Add refs.
10301         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
10302         (ipa-ref.o): New file.
10303         * varpool.c (varpool_node): Clear ipa ref list.
10304         (varpool_remove_node): Remove references.
10305         (dump_varpool_node): Dump references.
10306         (varpool_assemble_decl): Only compile finalized ones.
10307         (varpool_extra_name_alias): Initialize ref list.
10308         * lto-streamer.c (lto-get_section_name): Add .refs section.
10309         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
10310         (referenced_from_other_partition_p): Declared.
10311
10312 2010-05-06  Ira Rosen  <irar@il.ibm.com>
10313
10314         PR tree-optimization/43901
10315         * tree-vect-stmts.c (vectorizable_call): Assert that vector
10316         type is not NULL if it's transformation phase, and return
10317         FALSE if it's analysis.
10318         (vectorizable_conversion, vectorizable_operation,
10319         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
10320
10321 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
10322
10323         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
10324         Delete.
10325         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
10326         New define.
10327         * config/mips/mips-protos.h
10328         (mips_small_register_classes_for_mode_p): Delete prototype.
10329
10330 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
10331
10332         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
10333         * config/arm/arm.c (multiple_operation_profitable_p,
10334         compute_offset_order): New static functions.
10335         (load_multiple_sequence, store_multiple_sequence): Use them.
10336         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
10337         memory offsets, not register numbers.
10338         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
10339
10340 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
10341
10342         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
10343         (get_pending_sizes, put_pending_size, put_pending_sizes):
10344         Update the uses of pending_sizes.
10345         * c-decl.c (store_parm_decls): Likewise.
10346         * c-tree.h (struct c_arg_info): Likewise.
10347         * tree.h: Update the prototype for get_pending_sizes and
10348         put_pending_sizes.
10349
10350 2010-05-05  Jason Merrill  <jason@redhat.com>
10351
10352         PR debug/43370
10353         * c-common.c (handle_aligned_attribute): Respect
10354         ATTR_FLAG_TYPE_IN_PLACE.
10355
10356         PR testsuite/43758
10357         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
10358         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
10359         (TARGET_INITIALIZER): Use it.
10360         * c-common.c (attribute_takes_identifier_p): Call it.
10361         * c-common.h: Update prototype.
10362         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
10363         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
10364
10365 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
10366
10367         PR debug/43950
10368         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
10369         DW_ID_down_case for Fortran compilation units.
10370
10371 2010-05-05  Jan Hubicka  <jh@suse.cz>
10372
10373         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
10374         handle aliases.
10375
10376 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
10377
10378         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
10379         a variable-sized RESULT_DECL.
10380
10381 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
10382
10383         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
10384
10385 2010-05-05  Jason Merrill  <jason@redhat.com>
10386
10387         PR c++/43787
10388         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
10389         returns GS_OK.
10390         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
10391
10392 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
10393             Jakub Jelinek  <jakub@redhat.com>
10394
10395         PR debug/43478
10396         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
10397         (dead_debug_init, dead_debug_finish): New functions.
10398         (dead_debug_add, dead_debug_insert_before): Likewise.
10399         (df_note_bb_compute): Initialize a dead_debug object, add dead
10400         debug uses to it, insert debug bind insns before death insns,
10401         reset debug insns that refer to pending uses at the end.
10402         * rtl.h (make_debug_expr_from_rtl): New prototype.
10403         * varasm.c (make_debug_expr_from_rtl): New function.
10404
10405 2010-05-05  Jan Hubicka  <jh@suse.cz>
10406
10407         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
10408         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
10409         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
10410         lto_varpool_encoder_deref, lto_varpool_encoder_size,
10411         lto_varpool_encoder_encode_initializer_p,
10412         lto_set_varpool_encoder_encode_initializer): New functions.
10413         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
10414         call output_varpool.
10415         (input_varpool_node): Do not always set analyzed.
10416         (input_cgraph_1): Return vector of cgraph nodes.
10417         (input_varpool_1): Return vector of varpools.
10418         (input_cgraph): Free the vectors.
10419         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10420         output only initializers needed.
10421         (lto_output): Only call output_cgraph.
10422         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
10423         * lto-section-out.c (lto_new_out_decl_state): Initialize
10424         state->varpool_node_encoder.
10425         * lto-streamer.h (lto_varpool_encoder_d): New.
10426         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
10427         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
10428         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
10429         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
10430         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
10431         Declare.
10432         (output_varpool, input_varpool): Remove declarations.
10433
10434 2010-05-05  Jan Hubicka  <jh@suse.cz>
10435
10436         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
10437         with body can prevail.
10438
10439 2010-05-05  Jan Hubicka  <jh@suse.cz>
10440
10441         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
10442         size.
10443
10444 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
10445
10446         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
10447
10448         * gengtype.h (erro_at_line): Constify pos argument.
10449
10450         * gengtype.c: Include hashtab.h.
10451         (enum gc_used): Document GC_MAYBE_POINTED_TO.
10452         (error_at_line): Constify pos argument.
10453         (do_typedef): Initialize p->opt field.
10454         (get_file_gtfilename): Fix comment typo.
10455         (struct walk_type_data): Constify line field.
10456         (get_output_file_for_structure): New function.
10457         (write_local_func_for_structure): Constify orig_s argument.
10458         Use get_output_file_for_structure.
10459         (write_func_for_structure): Use get_output_file_for_structure.
10460         (INDENT): New define.
10461         (dump_pair, dump_type, dump_type_list, dump_typekind)
10462         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
10463         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
10464         functions.
10465         (seen_types): New variable.
10466         (main): New variable do_dump.  Process "-d" command line option.
10467         Call dump_everything if dump requested.
10468
10469 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
10470
10471         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
10472         in a temporary instead of invoking the macro multiple times.
10473         (track_expr_p): Likewise.
10474
10475 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
10476
10477         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
10478         per new semantics.
10479         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
10480         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
10481         conditions for printing notes.
10482         * common.opt (-Wcoverage-mismatch): Allow negative, default to
10483         true, update documentation.
10484         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
10485
10486 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
10487
10488         PR c/43981
10489         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
10490         on dimen.
10491
10492 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
10493
10494         PR target/43799
10495         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
10496         (*sse_prologue_save_insn1): Likewise.
10497         (SSE prologue save splitter): Likewise.
10498
10499 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
10500
10501         * tree.c (free_lang_data_in_one_sizepos): New inline function.
10502         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
10503         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
10504         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
10505         all decls.  Call it on DECL_FIELD_OFFSET of fields.
10506         (find_decls_types_r): Follow DECL_VALUE_EXPR.
10507         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
10508
10509 2010-05-04  Martin Jambor  <mjambor@suse.cz>
10510
10511         * tree-sra.c (build_access_from_expr_1): The first parameter type
10512         changed to simple tree.
10513         (build_access_from_expr): Likewise, gsi parameter was eliminated.
10514         (scan_assign_result): Renamed to assignment_mod_result, enum elements
10515         renamed as well.
10516         (build_accesses_from_assign): Removed all parameters except for a
10517         simple gimple statement.  Now returns a simple bool.
10518         (scan_function): All non-analysis parts moved to separate functions
10519         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
10520         parameters and updated both callers.
10521         (sra_modify_expr): Removed parameter data.
10522         (sra_modify_function_body): New function.
10523         (perform_intra_sra): Call sra_modify_function_body to modify the
10524         function body.
10525         (replace_removed_params_ssa_names): Parameter data changed into
10526         adjustments vector.
10527         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
10528         changed the parameter dont_convert to convert with the opposite
10529         meaning.
10530         (sra_ipa_modify_assign): Parameter data changed into adjustments
10531         vector, return value changed to bool.
10532         (ipa_sra_modify_function_body): New function.
10533         (sra_ipa_reset_debug_stmts): Updated a comment.
10534         (modify_function): Use ipa_sra_modify_function_body to modify function
10535         body.
10536
10537 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
10538
10539         PR middle-end/43671
10540         * alias.c (true_dependence): Handle the same VALUE in x and mem.
10541         (canon_true_dependence): Likewise.
10542         (write_dependence_p): Likewise.
10543
10544 2010-05-04  Jan Hubicka  <jh@suse.cz>
10545
10546         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
10547         * cgraphbuild.c: Include ipa-utils.h
10548         (record_reference_ctx): New struct.
10549         (record_reference): Simplify to work on initializers; not statements.
10550         (mark_address, mark_load, mark_store): New.
10551         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
10552         walk PHI nodes too.
10553         (record_references_in_initializer): Update use of record_reference.
10554         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
10555         walk PHI nodes too.
10556
10557 2010-05-04  Jan Hubicka  <jh@suse.cz>
10558
10559         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
10560         node will be removed anyway.
10561         (lto_varpool_replace_node): Allow also unanalyzed nodes;
10562         relink aliases of node into prevailing node.
10563         * varpool.c (varpool_remove_node): Remove aliases properly;
10564         when removing node, remove all its aliases too; remove DECL_INITIAL
10565         of removed node; ggc_free the varpool node.
10566
10567 2010-05-04  Richard Guenther  <rguenther@suse.de>
10568
10569         PR tree-optimization/43879
10570         * tree-ssa-structalias.c (alias_get_name): Use
10571         DECL_ASSEMBLER_NAME if available.
10572         (create_function_info_for): Return the varinfo node.
10573         (ipa_pta_execute): Associate same-body aliases and extra names
10574         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
10575
10576 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
10577
10578         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
10579
10580 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
10581
10582         PR bootstrap/43964
10583         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
10584         only if HONOR_REG_ALLOC_ORDER is not defined.
10585
10586 2010-05-04  Richard Guenther  <rguenther@suse.de>
10587
10588         PR tree-optimization/43949
10589         * tree-vrp.c (extract_range_from_binary_expr): Only handle
10590         TRUNC_MOD_EXPR.
10591
10592 2010-04-26  Jason Merrill  <jason@redhat.com>
10593
10594         * c.opt (-fstrict-enums): New.
10595         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
10596
10597 2010-05-03  David Ung  <davidu@mips.com>
10598             James E. Wilson  <wilson@codesourcery.com>
10599
10600         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
10601         emit the trap instruction before the divide for TUNE_74K.
10602
10603 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
10604
10605         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
10606         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
10607         based on the above, for new target hook.
10608
10609         * hooks.c (hook_bool_mode_true): New generic hook.
10610         * hooks.h (hook_bool_mode_true): Add prototype.
10611
10612         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
10613         target hook.
10614         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
10615         target hook, set to hook_bool_mode_false.
10616         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
10617         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
10618         with targetm.small_register_classes_for_mode_p.
10619         (find_reusable_reload): Likewise.
10620         (combine_reloads): Likewise.
10621         * reload1.c (reload_as_needed): Likewise.
10622         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
10623         * ifcvt.c (noce_process_if_block, check_cond_move_block,
10624         dead_or_predicable): Likewise.
10625         * regmove.c (optimize_reg_copy_1): Likewise.
10626         * calls.c (prepare_call_address): Likewise.
10627         (precompute_register_parameters): Likewise.
10628
10629         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
10630         hook definition.
10631         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
10632         implementation of the hook that considers all register classes
10633         small except for SH64.
10634         (sh_override_options): Use the new hook.
10635         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
10636         Add prototype.
10637
10638         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
10639         hook definition.
10640         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
10641         implementation of the hook that considers all register classes
10642         small for THUMB1.
10643         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
10644         Add prototype.
10645
10646         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
10647         hook definition.
10648         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
10649         implementation of the hook that considers all register classes
10650         small for MIPS16.
10651         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
10652         Add prototype.
10653
10654         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
10655         hook definition.
10656         * config/m32c/m32c.h: Likewise.
10657         * config/pdp11/pdp11.h: Likewise.
10658         * config/avr/avr.h: Likewise.
10659         * config/xtensa/xtensa.h: Likewise.
10660         * config/m68hc11/m68hc11.h: Likewise.
10661         * config/mn10300/mn10300.h: Likewise.
10662         * config/mcore/mcore.h: Likewise.
10663         * config/h8300/h8300.h: Likewise.
10664         * config/bfin/bfin.h: Likewise.
10665
10666         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
10667         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
10668
10669 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
10670
10671         * double-int.h (tree_to_double_int): Remove macro.
10672         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
10673         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
10674         (tree_to_double_int): New function.
10675         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
10676         Move ...
10677         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
10678
10679 2010-05-03  Richard Guenther  <rguenther@suse.de>
10680
10681         PR tree-optimization/43971
10682         * tree-ssa-structalias.c (get_constraint_for_1): Fix
10683         constraints in the !flag_delete_null_pointer_checks case.
10684
10685 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
10686
10687         PR debug/43972
10688         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
10689         result mode matches original rtl mode.
10690
10691 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
10692
10693         PR target/43888
10694         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
10695
10696 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
10697
10698         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
10699         when processing flag options.
10700
10701 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
10702
10703         * gcov-iov.c (main): Change format string placeholder
10704         from %#08x to 0x%08x.
10705         * genchecksum.c (dosum): Change format string placeholder
10706         from %#02x to 0x%02x.
10707
10708 2010-05-02  Richard Guenther  <rguenther@suse.de>
10709
10710         PR tree-optimization/43879
10711         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
10712
10713 2010-05-02  Bruno Haible  <bruno@clisp.org>
10714
10715         * doc/extend.texi (Function Attributes): Fix a typo.
10716
10717 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
10718
10719         Revert:
10720         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
10721         placeholder from 0x%x to %#x.
10722         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
10723         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
10724         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
10725         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
10726         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
10727         * config/i386/i386.c (ix86_target_string): Ditto.
10728         * config/i386/i386.c (output_pic_addr_const): Ditto.
10729         (print_operand): Ditto.
10730
10731 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
10732
10733         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
10734         placeholder from 0x%x to %#x.
10735         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
10736         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
10737         (ASM_OUTPUT_DEBUG_DATA): Ditto.
10738         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
10739         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
10740         * optc-gen.awk: Ditto.
10741         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
10742         (HOST_WIDE_INT_PRINT_HEX): Ditto.
10743         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
10744         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
10745
10746 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
10747
10748         * target.h (struct calls): Add function_value_regno_p field.
10749         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
10750         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
10751         * targhooks.c (default_function_value_regno_p): New function.
10752         * targhooks.h (default_function_value_regno_p): Declare function.
10753         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
10754         * builtins.c. (apply_result_size): (Ditto.).
10755         * combine.c. (likely_spilled_retval_p): (Ditto.).
10756         * mode-switching.c. Include 'target.h'.
10757         (create_pre_exit): Use function_value_regno_p hook.
10758         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
10759         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
10760         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
10761
10762         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
10763         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
10764         (ix86_function_value_regno_p): Declare as static, change argument
10765         type to const unsigned int.
10766         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
10767
10768 2010-05-01  Richard Guenther  <rguenther@suse.de>
10769
10770         PR tree-optimization/43949
10771         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
10772         types.
10773         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
10774
10775 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
10776
10777         * rtl.h (CONST_DOUBLE_P): Define.
10778         (rtx_to_double_int): Declare.
10779         * emit-rtl.c (rtx_to_double_int): New function.
10780         * dwarf2out.c (insert_double): New function.
10781         (loc_descriptor, add_const_value_attribute): Clean up, use
10782         rtx_to_double_int and insert_double functions.
10783
10784 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
10785
10786         * doc/extend.texi (Inline): Add missing return keyword to examples.
10787         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
10788         "command-line".
10789
10790 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
10791
10792         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
10793         the variable part of the offset as well.  Use highest_pow2_factor for
10794         all alignment checks.
10795
10796 2010-04-30  Richard Guenther  <rguenther@suse.de>
10797
10798         PR tree-optimization/43879
10799         * tree-ssa-structalias.c (type_could_have_pointers): Functions
10800         can have pointers.
10801
10802 2010-04-30  Jan Hubicka  <jh@suse.cz>
10803
10804         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
10805         varpool.
10806         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
10807
10808 2010-04-30  Jan Hubicka  <jh@suse.cz>
10809
10810         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
10811         New.
10812         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
10813         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
10814         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
10815         cgraph_node_set_needs_ltrans_p): Remove.
10816
10817 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
10818
10819         * sdbout.c: Include vec.h, do not include varray.h.
10820         (deferred_global_decls, sdbout_global_decl,
10821         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
10822         * toplev.c: Do not include varray.h.
10823         (dump_memory_report): Do not dump VARRAY statistics.
10824         * gengtype.c (open_base_file): Ignore varray.h.
10825         * Makefile.in: Update for abovementioned changes.
10826         Remove all traces of varray.c and varray.h.
10827         * varray.c: Remove file.
10828         * varray.h: Remove file.
10829
10830 2010-04-30  Jan Hubicka  <jh@suse.cz>
10831
10832         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
10833         references.
10834
10835 2010-04-30  Jan Hubicka  <jh@suse.cz>
10836
10837         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
10838         needed.
10839
10840 2010-04-30  Richard Guenther  <rguenther@suse.de>
10841
10842         * tree-ssa-structalias.c (get_constraint_for_1): Generate
10843         constraints for CONSTRUCTOR.
10844
10845 2010-04-30  Richard Guenther  <rguenther@suse.de>
10846
10847         PR lto/43946
10848         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
10849         first after all lowering passes.
10850
10851 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
10852
10853         * toplev.c: Include varray.h for statistics dumping.
10854         * tree.h: Do not declare varray_head_tag.
10855         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
10856         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
10857         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
10858         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
10859         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
10860         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
10861         c-common.c, c-common.h, reg-stack.c, basic-block.h,
10862         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
10863         include varray.h.
10864         * Makefile.in: Update for abovementioned changes.
10865
10866 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
10867
10868         PR debug/43942
10869         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
10870
10871 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
10872
10873         * config/picochip/picochip.c (picochip_legitimize_address): Define.
10874         Use this function to do machine-specific conversion.
10875         (picochip_legitimize_reload_address): Likewise.
10876         (picochip_legitimate_address_p): Check valid base register only if
10877         strict.
10878         (picochip_check_conditional_copy): Check for modw only if opnd is
10879         register.
10880         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
10881         to call the function in c.
10882         * config/picochip/picochip-protos.h
10883         (picochip_legitimize_reload_address): Define.
10884         * config/picochip/picochip.md (supported_compare1): Define.
10885
10886 2010-04-30  Jan Hubicka  <jh@suse.cz>
10887
10888         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
10889         (cgraph_global_info): Remove inlined.
10890         (LTO_cgraph_tag_names): Remove.
10891         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
10892         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
10893         simplify cgraph tags and document.
10894         (lto_output_node): Use only LTO_cgraph_unavail_node and
10895         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
10896         for_functions_valid, global info, process and output flags.
10897         (input_overwrite_node): Initialize estimated stack size and
10898         estimated growth.  Do not read flags we no longer store.
10899         (input_node): Likewise do not read info no longer stored.
10900         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
10901         flag.
10902
10903 2010-04-30  Richard Guenther  <rguenther@suse.de>
10904
10905         PR tree-optimization/43879
10906         * tree-ssa-structalias.c (get_constraint_for_1): Properly
10907         handle non-zero initializers.
10908
10909 2010-04-30  Richard Guenther  <rguenther@suse.de>
10910
10911         * builtins.c (fold_builtin_1): Delete free (0).
10912
10913 2010-04-29  Jan Hubicka  <jh@suse.cz>
10914
10915         * gengtype.c (open_base_files): Add lto-streamer.h
10916         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
10917         (pass_ipa_cp): GGC collect.
10918         * toplev. (compile_file): Do not output symbols.
10919         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
10920         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
10921         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
10922         * lto-section-in.c: Include ggc.h
10923         (lto_new_in_decl_state): Alloc in GGC.
10924         (lto_delete_in_decl_state): Likewise.
10925         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
10926         Collect.
10927
10928 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
10929
10930         PR target/42895
10931         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
10932         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
10933         (HONOR_REG_ALLOC_ORDER): Describe new macro.
10934         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
10935         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
10936         account only if HONOR_REG_ALLOC_ORDER is not defined.
10937         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
10938         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
10939
10940 2010-04-29  Jon Grant  <04@jguk.org>
10941
10942         * collect2.c (vflag): Change type from int to bool.
10943         (debug): Likewise.
10944         (helpflag): New global bool.
10945         (main): Set vflag and debug with boolean, not integer truth values.
10946         Accept new "--help" option and output usage text if found.
10947         * collect2.h (vflag): Update prototype.
10948         (debug): Likewise.
10949
10950 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
10951
10952         PR bootstrap/43936
10953         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
10954
10955 2010-04-29  Richard Guenther  <rguenther@suse.de>
10956
10957         PR bootstrap/43935
10958         * plugin.h (invoke_plugin_callbacks): Annotate arguments
10959         with ATTRIBUTE_UNUSED.
10960
10961 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
10962
10963         PR target/43921
10964         * config/i386/i386.c (get_some_local_dynamic_name): Replace
10965         INSN_P with NONDEBUG_INSN_P.
10966         (distance_non_agu_define): Likewise.
10967         (distance_agu_use): Likewise.
10968
10969 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
10970
10971         From Dominique d'Humieres  <dominiq@lps.ens.fr>
10972         PR bootstrap/43858
10973         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
10974         test_set.
10975
10976 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
10977
10978         * plugin.h (invoke_plugin_callbacks): New inline function.
10979         * plugin.c (flag_plugin_added): New global flag.
10980         (add_new_plugin): Initialize above flag.
10981         (invoke_plugin_callbacks): Rename to ...
10982         (invoke_plugin_callbacks_full): ... this.
10983
10984 2010-04-28  Jan Hubicka  <jh@suse.cz>
10985
10986         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
10987         (lto_varpool_replace_node): New.
10988         (lto_symtab_resolve_symbols): Resolve varpool nodes.
10989         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
10990         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
10991         * cgraph.h (varpool_node_ptr): New type.
10992         (varpool_node_ptr): New vector.
10993         (varpool_node_set_def): New structure.
10994         (varpool_node_set): New type.
10995         (varpool_node_set): New vector.
10996         (varpool_node_set_element_def): New structure.
10997         (varpool_node_set_element, const_varpool_node_set_element): New types.
10998         (varpool_node_set_iterator): New type.
10999         (varpool_node): Add prev pointers, add used_from_other_partition,
11000         in_other_partition.
11001         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
11002         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
11003         varpool_get_node, varpool_remove_node): Declare.
11004         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
11005         varpool_node_set_size): New inlines.
11006         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
11007         * tree-pass.h (varpool_node_set_def): Forward declare.
11008         (ipa_opt_pass_d): Summary writting takes vnode sets too.
11009         (ipa_write_optimization_summaries): Update prototype.
11010         * ipa-cp.c (ipcp_write_summary): Update.
11011         * ipa-reference.c (ipa_reference_write_summary): Update.
11012         * lto-cgraph.c (lto_output_varpool_node): New static function.
11013         (output_varpool): New function.
11014         (input_varpool_node): New static function.
11015         (input_varpool_1): New function.
11016         (input_cgraph): Input varpool.
11017         * ipa-pure-const.c (pure_const_write_summary): Update.
11018         * lto-streamer-out.c (lto_output): Update, output varpool too.
11019         (write_global_stream): Kill WPA hack.
11020         (produce_asm_for_decls): Update.
11021         (output_alias_pair_p): Handle variables.
11022         (output_unreferenced_globals): Output only needed partition of varpool.
11023         * ipa-inline.c (inline_write_summary): Update.
11024         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
11025         cgraph.
11026         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
11027         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
11028         varpool_node_set_new, varpool_node_set_add,
11029         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
11030         debug_varpool_node_set): New functions.
11031         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
11032         (execute_one_pass): Process new decls too.
11033         (ipa_write_summaries_2): Pass around vsets.
11034         (ipa_write_summaries_1): Likewise.
11035         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
11036         to add.
11037         (ipa_write_optimization_summaries_1): Pass around vsets.
11038         (ipa_write_optimization_summaries): Likewise.
11039         * varpool.c (varpool_get_node): New.
11040         (varpool_node): Update doubly linked lists.
11041         (varpool_remove_node): New.
11042         (dump_varpool_node): More dumping.
11043         (varpool_enqueue_needed_node): Update doubly linked lists.
11044         (decide_is_variable_needed): Kill ltrans hack.
11045         (varpool_finalize_decl): Kill lto hack.
11046         (varpool_assemble_decl): Skip decls in other partitions.
11047         (varpool_assemble_pending_decls): Update doubly linkes lists.
11048         (varpool_empty_needed_queue): Likewise.
11049         (varpool_extra_name_alias): Likewise.
11050         * lto-streamer.c (lto_get_section_name): Add vars section.
11051         * lto-streamer.h (lto_section_type): Update.
11052         (output_varpool, input_varpool): Declare.
11053
11054 2010-04-28  Mike Stump  <mikestump@comcast.net>
11055
11056         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
11057
11058 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
11059
11060         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
11061         record or union type with RECORD_OR_UNION_TYPE_P predicate.
11062         (lto_input_ts_type_tree_pointers): Likewise.
11063         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
11064         (lto_output_ts_type_tree_pointers): Likewise.
11065
11066 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
11067
11068         Uniquization of constants at the Tree level
11069         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
11070         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
11071         bit to the end.
11072         (tree_output_constant_def): Declare.
11073         * gimplify.c (gimplify_init_constructor): When using block copy, first
11074         uniquize the constant constructor on the RHS.
11075         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
11076         DECL_IN_CONSTANT_POOL flag.
11077         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
11078         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
11079         constant pool.
11080         (assemble_variable): Deal with symbols belonging to the tree constant
11081         pool.
11082         (get_constant_section): Add ALIGN parameter and simplify.
11083         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
11084         (assemble_constant_contents): Use the expression of the VAR_DECL.
11085         (output_constant_def_contents): Use the alignment of the VAR_DECL.
11086         (tree_output_constant_def): New global function.
11087         (mark_constant): Use the expression of the VAR_DECL.
11088         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
11089         its expression.
11090         (output_object_block): Likewise and assemble the expression.
11091
11092 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
11093
11094         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
11095         hash_tree, eq_tree): New tree hash table.
11096         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
11097         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
11098         lto_orig_address_remove): Reimplement.
11099
11100 2010-04-28  Xinliang David Li  <davidxl@google.com>
11101
11102         PR c/42643
11103         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
11104         (compute_uninit_opnds_pos): New function.
11105         (is_non_loop_exit_postdominating): New function.
11106         (compute_control_dep_chain): New function.
11107         (find_pdom): New function.
11108         (convert_control_dep_chain_into_preds): New function.
11109         (find_predicates): New function.
11110         (find_control_equiv_block): New function.
11111         (collect_phi_def_edges): New function.
11112         (find_def_preds): New function.
11113         (find_dom): New function.
11114         (dump_predicates): New function.
11115         (get_cmp_code): New function.
11116         (is_value_included_in): New function.
11117         (find_matching_predicate_in_rest_chains): New function.
11118         (use_pred_not_overlap_with_undef_path_pred): New function.
11119         (is_use_properly_guarded): New function.
11120         (normalize_cond_1): New function.
11121         (is_and_or_or): New function.
11122         (normalize_cond): New function.
11123         (is_gcond_subset_of): New function.
11124         (is_subset_of_any): New function.
11125         (is_or_set_subset_of): New function.
11126         (is_and_set_subset_of): New function.
11127         (is_norm_cond_subset_of): New function.
11128         (is_pred_expr_subset_of): New function.
11129         (is_pred_chain_subset_of): New function.
11130         (is_included_in): New function.
11131         (is_superset_of): New function.
11132         (find_uninit_use): New function.
11133         (warn_uninitialized_phi): New function.
11134         (compute_possibly_undefined_names): New function.
11135         (ssa_undefined_value_p): New function.
11136         (execute_late_warn_uninitialized): New function.
11137         * tree-ssa.c (ssa_undefined_value_p): Removed.
11138         (warn_uninit): Changed to extern.
11139         (warn_uninitialized_phi): Removed.
11140         (warn_uninitialized_vars): Changed to extern.
11141         (execute_late_warn_uninitialized): Removed
11142         * tree-flow.h: Add new prototypes.
11143         * timevar.def: Add new time variable.
11144         * Makefile.in: Add new build file.
11145
11146 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
11147
11148         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
11149         type if available.
11150
11151 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11152
11153         PR target/22224
11154         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
11155
11156 2010-04-28  Martin Jambor  <mjambor@suse.cz>
11157
11158         * cgraph.h (struct cgraph_node): New field indirect_calls.
11159         (struct cgraph_indirect_call_info): New type.
11160         (struct cgraph_edge): Removed field indirect_call. New fields
11161         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
11162         (cgraph_create_indirect_edge): Declare.
11163         (cgraph_make_edge_direct): Likewise.
11164         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
11165         * ipa-prop.h (struct ipa_param_call_note): Removed.
11166         (struct ipa_node_params): Removed field param_calls.
11167         (ipa_create_all_structures_for_iinln): Declare.
11168         * cgraph.c: Described indirect edges and uids in initial comment.
11169         (cgraph_add_edge_to_call_site_hash): New function.
11170         (cgraph_edge): Search also among the indirect edges, use
11171         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
11172         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
11173         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
11174         site hash.
11175         (initialize_inline_failed): Assign a reason to indirect edges.
11176         (cgraph_create_edge_1): New function.
11177         (cgraph_create_edge): Moved some functionality to
11178         cgraph_create_edge_1.
11179         (cgraph_create_indirect_edge): New function.
11180         (cgraph_edge_remove_callee): Add an assert checking for
11181         non-indirectness.
11182         (cgraph_edge_remove_caller): Special-case indirect edges.
11183         (cgraph_remove_edge): Likewise.
11184         (cgraph_set_edge_callee): New function.
11185         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
11186         (cgraph_make_edge_direct): New function.
11187         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
11188         the declaration of the call statement matches.
11189         (cgraph_node_remove_callees): Special-case indirect edges.
11190         (cgraph_clone_edge): Likewise.
11191         (cgraph_clone_node): Clone also the indirect edges.
11192         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
11193         indirect_call, dump count of indirect_calls edges.
11194         * ipa-prop.c (iinlining_processed_edges): New variable.
11195         (ipa_note_param_call): Create indirect edges instead of
11196         creating notes.  New parameter node.
11197         (ipa_analyze_call_uses): New parameter node, pass it on to
11198         ipa_note_param_call.
11199         (ipa_analyze_stmt_uses): Likewise.
11200         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
11201         (print_edge_addition_message): Work on edges rather than on notes.
11202         (update_call_notes_after_inlining): Likewise, renamed to
11203         update_indirect_edges_after_inlining.
11204         (ipa_create_all_structures_for_iinln): New function.
11205         (ipa_free_node_params_substructures): Do not free notes.
11206         (ipa_edge_duplication_hook): Propagate bits within
11207         iinlining_processed_edges bitmap.
11208         (ipa_node_duplication_hook): Do not duplicate notes.
11209         (free_all_ipa_structures_after_ipa_cp): Renamed to
11210         ipa_free_all_structures_after_ipa_cp.
11211         (free_all_ipa_structures_after_iinln): Renamed to
11212         ipa_free_all_structures_after_iinln.
11213         (ipa_write_param_call_note): Removed.
11214         (ipa_read_param_call_note): Removed.
11215         (ipa_write_indirect_edge_info): New function.
11216         (ipa_read_indirect_edge_info): Likewise.
11217         (ipa_write_node_info): Do not stream notes, do stream information
11218         in indirect edges.
11219         (ipa_read_node_info): Likewise.
11220         (lto_ipa_fixup_call_notes): Removed.
11221         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
11222         * ipa-inline.c (pass_ipa_inline): Likewise.
11223         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
11224         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
11225         * tree-inline.c (copy_bb): Removed an unnecessary double check for
11226         is_gimple_call.
11227         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
11228         edges.
11229         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
11230         (output_cgraph): Stream also indirect edges.
11231         (lto_output_edge): Added capability to stream indirect edges.
11232         (input_edge): Likewise.
11233         (input_cgraph_1): Likewise.
11234         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
11235         of indirect edges.
11236
11237 2010-04-28  Richard Guenther  <rguenther@suse.de>
11238
11239         PR tree-optimization/43879
11240         PR tree-optimization/43909
11241         * tree-ssa-structalias.c (struct variable_info): Add
11242         only_restrict_pointers flag.
11243         (new_var_info): Initialize it.  Increment stats.total_vars here.
11244         (create_function_info_for): Do not increment stats.total_vars here.
11245         (get_function_part_constraint): Fix build with C++.
11246         (insert_into_field_list): Remove.
11247         (push_fields_onto_fieldstack): Properly merge fields.
11248         (create_variable_info_for): Split and simplify.
11249         (create_variable_info_for_1): New piece.
11250         (intra_create_variable_infos): Properly make restrict constraints
11251         from parameters.
11252
11253 2010-04-28  Richard Guenther  <rguenther@suse.de>
11254
11255         PR c++/43880
11256         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
11257
11258 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11259             Jan Hubicka  <hubicka@ucw.cz>
11260
11261         * doc/invoke.texi (-Wsuggest-attribute=const,
11262         -Wsuggest-attribute=pure): Document.
11263         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
11264         (function_always_visible_to_compiler_p,
11265         suggest_attribute, warn_function_pure, warn_function_const):
11266         New functions.
11267         (check_call): Improve debug info.
11268         (analyze_function): Do not check availability.
11269         (add_new_function): Check availability.
11270         (propagate): Output warnings.
11271         (skip_function_for_local_pure_const): New function.
11272         (local_pure_const): Use it; output warnings.
11273         * common.opt (Wsuggest-attribute=const,
11274         Wsuggest-attribute=pure): New.
11275
11276 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
11277
11278         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
11279         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
11280         or DW_CFA_def_cfa_offset{,_sf}.
11281
11282 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
11283
11284         * tree.h: Fix truncated long macros.
11285
11286 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
11287
11288         * collect2.c (TARGET_64BIT): Redefine to target's default.
11289         * tlink.c: Likewise.
11290         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
11291         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
11292         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
11293         for underscoring __USER_LABEL_PREFIX__.
11294         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
11295         (SUB_LINK_ENTRY32): New.
11296         (SUB_LINK_ENTRY64): New.
11297         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
11298         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
11299         (SUB_LINK_ENTRY64): New.
11300         (SUB_LINK_ENTRY): New.
11301         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
11302         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
11303         x64 target is choosen.
11304         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
11305         * configure: Regenerated.
11306         * configure.ac (leading-mingw64-underscores): Option added.
11307
11308 2010-04-27  Jan Hubicka  <jh@suse.cz>
11309
11310         * doc/invoke.texi (-fipa-profile): Document.
11311         * opts.c (decode_options): Enable ipa-profile at -O1.
11312         * timevar.def (TV_IPA_PROFILE): Define.
11313         * common.opt (fipa-profile): Add.
11314         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
11315         flag for clones.
11316         (cgraph_propagate_frequency): Handle only local ones.
11317         * tree-pass.h (pass_ipa_profile): Declare.
11318         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
11319         (pass_ipa_profile): Use TV_IPA_PROFILE.
11320         * ipa.c (ipa_profile): New function.
11321         (gate_ipa_profile): Likewise.
11322         (pass_ipa_profile): New global variable.
11323         * passes.c (pass_ipa_profile): New.
11324
11325 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
11326
11327         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
11328
11329 2010-04-27  Martin Jambor  <mjambor@suse.cz>
11330
11331         PR middle-end/43812
11332         * ipa.c (dissolve_same_comdat_group_list): New function.
11333         (function_and_variable_visibility): Call
11334         dissolve_same_comdat_group_list when comdat group contains external or
11335         newly local nodes.
11336         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
11337         lists are circular and that they contain only DECL_ONE_ONLY nodes.
11338
11339 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
11340
11341         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
11342         (const_hash_1) <VECTOR_CST>: New case.
11343         (compare_constant) <VECTOR_CST>: Likewise.
11344         <ADDR_EXPR>: Deal with LABEL_REFs.
11345         (copy_constant) <VECTOR_CST>: New case.
11346
11347 2010-04-27  Jan Hubicka  <jh@suse.cz>
11348
11349         * cgraph.c (cgraph_propagate_frequency): New function.
11350         * cgraph.h (cgraph_propagate_frequency): Declare.
11351         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
11352         cgraph_propagate_frequency.
11353
11354 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
11355
11356         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
11357
11358 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
11359
11360         PR target/40657
11361         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
11362         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
11363         here to determine which regs to push and how much stack to reserve.
11364
11365 2010-04-27  Jie Zhang  <jie@codesourcery.com>
11366
11367         * doc/gimple.texi (gimple_statement_with_ops): Remove
11368         addresses_taken field.
11369         (gimple_statement_with_memory_ops): Likewise.
11370
11371 2010-04-27  Jan Hubicka  <jh@suse.cz>
11372
11373         * tree-inline.c (eni_inlining_weights): Remove.
11374         (estimate_num_insns): Special case more builtins.
11375
11376 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
11377
11378         PR c/32207
11379         * c-typeck.c (build_binary_op): Move forward check for comparison
11380         pointer with null pointer constant and adjust the diagnostic message.
11381
11382 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
11383
11384         PR lto/42776
11385         * configure.ac (gcc_cv_as_section_has_align): Set if installed
11386         binutils supports extended .section directive needed by LTO, or
11387         warn if older binutils found.
11388         (LTO_BINARY_READER): New AC_SUBST'd variable.
11389         (LTO_USE_LIBELF): Likewise.
11390         * gcc/config.gcc (lto_binary_reader): New target-specific configure
11391         variable.
11392         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
11393         (LTO_USE_LIBELF): Likewise.
11394         * configure: Regenerate.
11395
11396         * collect2.c (is_elf): Rename from this ...
11397         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
11398          object files in addition to ELF-formatted ones.
11399         (scan_prog_file): Caller updated.  Also allow for LTO info marker
11400         symbol to be prefixed or not by an extra underscore.
11401
11402         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
11403         * config/i386/winnt.c: Also #include lto-streamer.h
11404         (i386_pe_asm_named_section): Specify 1-byte section alignment for
11405         LTO named sections.
11406         (i386_pe_asm_output_aligned_decl_common): Add comment.
11407         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
11408
11409 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
11410
11411         PR target/43889
11412         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
11413         Add missing earlyclobber for second alternative.
11414
11415 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
11416
11417         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
11418         bits for artificial defs at the top of the block.
11419         * fwprop.c (single_def_use_enter_block): Don't call it.
11420
11421 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
11422
11423         PR 43715
11424         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
11425         instead of "$gcc_cv_objdump -T".
11426         Use "-undefined dynamic_lookup" on darwin.
11427         * gcc/configure: Regenerate.
11428
11429 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
11430
11431         PR c/43893
11432         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
11433
11434 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
11435
11436         * c-parser.c (struct c_token): Move location field up.
11437         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
11438         (struct c_declspecs): Convert typespec_word, storage_class, and
11439         default_int_p into bitfields.
11440         (struct c_declarator): Move loc field up.
11441
11442 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
11443
11444         * cfgloop.h (struct loop): Move can_be_parallel field up.
11445         * ipa-prop.h (struct ip_node_params): Move bitfields up.
11446         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
11447         down.
11448         (struct iv_cand): Convert pos field into a bitfield.
11449         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
11450         field up.
11451         (struct _stmt_vec_info): Shuffle fields for better packing.
11452
11453 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
11454
11455         * varasm.c (IN_NAMED_SECTION): Remove guard.
11456         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
11457         (IN_NAMED_SECTION_P): ...this.
11458         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
11459         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
11460
11461 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
11462
11463         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
11464         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
11465         of shadowing it.  Fix comments.
11466
11467 2010-04-26  Jan Hubicka  <jh@suse.cz>
11468
11469         * cgraph.c (cgraph_create_node): Set node frequency to normal.
11470         (cgraph_clone_node): Copy function frequency.
11471         * cgraph.h (node_frequency): New enum
11472         (struct cgraph_node): Add.
11473         * final.c (rest_of_clean_state): Update.
11474         * lto-cgraph.c (lto_output_node): Output node frequency.
11475         (input_overwrite_node): Input node frequency.
11476         * tre-ssa-loop-ivopts (computation_cost): Update.
11477         * lto-streamer-out.c (output_function): Do not output function
11478         frequency.
11479         * predict.c (maybe_hot_frequency_p): Update and handle functions
11480         executed once.
11481         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
11482         attribute lookup.
11483         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
11484         (compute_function_frequency): Set noreturn functions to be executed
11485         once.
11486         (choose_function_section): Update.
11487         * lto-streamer-in.c (input_function): Do not input function frequency.
11488         * function.c (allocate_struct_function): Do not initialize function
11489         frequency.
11490         * function.h (function_frequency): Remove.
11491         (struct function): Remove function frequency.
11492         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
11493         (try_update): Update.
11494         * tree-inline.c (initialize_cfun): Do not update function frequency.
11495         * passes.c (pass_init_dump_file): Update.
11496         * i386.c (ix86_compute_frame_layout): Update.
11497         (ix86_pad_returns): Update.
11498
11499 2010-04-26  Jie Zhang  <jie@codesourcery.com>
11500
11501         PR tree-optimization/43833
11502         * tree-vrp.c (range_int_cst_p): New.
11503         (range_int_cst_singleton_p): New.
11504         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
11505         when both operands are constants.  Use range_int_cst_p in
11506         BIT_IOR_EXPR case.
11507
11508 2010-04-26  Jan Hubicka  <jh@suse.cz>
11509
11510         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
11511
11512 2010-04-26  Richard Guenther  <rguenther@suse.de>
11513
11514         PR lto/43080
11515         * gimple.c (gimple_decl_printable_name): Deal gracefully
11516         with a NULL DECL_NAME.
11517
11518 2010-04-26  Richard Guenther  <rguenther@suse.de>
11519
11520         PR lto/42425
11521         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
11522         if emitting debug information and it is either a function
11523         or a namespace decl.
11524
11525 2010-04-26  Ira Rosen  <irar@il.ibm.com>
11526
11527         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
11528         determine if the statement is vectorizable, and a macro to access it.
11529         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
11530         Skip statements that can't be vectorized. If the analysis fails,
11531         mark the statement as unvectorizable if vectorizing basic block.
11532         (vect_compute_data_refs_alignment): Likewise.
11533         (vect_verify_datarefs_alignment): Skip statements marked as
11534         unvectorizable. Add print.
11535         (vect_analyze_group_access): Skip statements that can't be
11536         vectorized. If the analysis fails, mark the statement as
11537         unvectorizable if vectorizing basic block.
11538         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
11539         * tree-vect-stmts.c (vectorizable_store): Fix the number of
11540         generated stmts for SLP.
11541         (new_stmt_vec_info): Initialize the new field.
11542         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
11543         statements marked as unvectorizable.
11544
11545 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
11546
11547         * c-common.c (flag_isoc1x): New.
11548         (flag_isoc99): Update comment.
11549         * c-common.h (flag_isoc1x): New.
11550         (flag_isoc99): Update comment.
11551         * c-cppbuiltin.c (builtin_define_float_constants): Also define
11552         __<type>_DECIMAL_DIG__.
11553         * c-opts.c (set_std_c1x): New.
11554         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
11555         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
11556         * c.opt (-std=c1x, -std=gnu1x): New options.
11557         * doc/cpp.texi: Mention -std=c1x.
11558         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
11559         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
11560         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
11561         * doc/standards.texi: Mention C1X.
11562         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
11563         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
11564         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
11565         Define for C1X.
11566
11567 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
11568
11569         * config/i386/gmon-sol2.c (_mcleanup): Change format string
11570         placeholder from 0x%x to %#x.
11571         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
11572         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
11573         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
11574         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
11575         * config/i386/i386.c (ix86_target_string): Ditto.
11576         (output_pic_addr_const): Ditto.
11577         (print_operand): Ditto.
11578
11579 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
11580
11581         * combine.c (find_split_point): Add third argument.  Use it
11582         to find nested multiply-accumulate instructions.  Adjust calls.
11583         (try_combine): Adjust call to find_split_point.
11584
11585 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
11586
11587         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
11588
11589 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
11590
11591         PR tree-optimization/41442
11592         * fold-const.c (merge_truthop_with_opposite_arm): New function.
11593         (fold_binary_loc): Call it.
11594
11595 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11596
11597         * toplev.c (general_init): Set default for fdiagnostics-show-option.
11598         * opts.c (common_handle_option): Allow disabling it.
11599         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
11600
11601 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
11602
11603         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
11604         between modes if both types are integral.
11605
11606 2010-04-23  Richard Guenther  <rguenther@suse.de>
11607
11608         PR tree-optimization/43572
11609         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
11610
11611 2010-04-23  Richard Guenther  <rguenther@suse.de>
11612
11613         PR lto/43455
11614         * tree-inline.c (tree_can_inline_p): Also check compatibility
11615         of return types.
11616
11617 2010-04-23  Martin Jambor  <mjambor@suse.cz>
11618
11619         PR tree-optimization/43846
11620         * tree-sra.c (struct access): New flag grp_assignment_read.
11621         (build_accesses_from_assign): Set grp_assignment_read.
11622         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
11623         (enum mark_read_status): New type.
11624         (analyze_access_subtree): Propagate grp_assignment_read, create
11625         accesses also if both direct_read and root->grp_assignment_read.
11626
11627 2010-04-23  Martin Jambor  <mjambor@suse.cz>
11628
11629         PR middle-end/43835
11630         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
11631         function does not have type attributes.
11632
11633 2010-04-23  Richard Guenther  <rguenther@suse.de>
11634
11635         PR lto/42653
11636         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
11637         of FUNCTION_DECLs.
11638
11639 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11640
11641         * sese.h (create_if_region_on_edge): Remove.
11642
11643         * sese.c (create_if_region_on_edge): Make static.
11644
11645         * tree-inline.c: Do not include ggc.h.
11646
11647         * expr.c: Do not include ggc.h.
11648
11649         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
11650         dependencies.
11651
11652 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
11653
11654         PR target/43744
11655         * config/sh/sh.c (find_barrier): Don't emit a constant pool
11656         in the middle of insns for casesi_worker_2.
11657
11658 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
11659
11660         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
11661
11662 2010-04-22  Ira Rosen  <irar@il.ibm.com>
11663
11664         PR tree-optimization/43842
11665         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
11666         loop unrolling in update of exit phis. Fix comment.
11667         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
11668         least two reduction statements in the loop before starting SLP
11669         analysis.
11670
11671 2010-04-22  Nick Clifton  <nickc@redhat.com>
11672
11673         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
11674
11675 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
11676
11677         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
11678         to simplify a + ~a.
11679
11680 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11681
11682         * tree-parloops.c (loop_parallel_p): New argument
11683         parloop_obstack.  Pass it down.
11684         (parallelize_loops): New variable parloop_obstack.  Initialize it,
11685         pass it down, free it.
11686
11687         * tree-loop-linear.c (linear_transform_loops): Pass down
11688         lambda_obstack.
11689
11690         * tree-data-ref.h (lambda_compute_access_matrices): New argument
11691         of type struct obstack *.
11692
11693         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
11694         scratch_obstack.  Initialize it, pass down, free it.
11695
11696         * lambda.h (lambda_loop_new): Remove.
11697         (lambda_matrix_new, lambda_matrix_inverse)
11698         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
11699         argument of type struct obstack *.
11700
11701         * lambda-trans.c (lambda_trans_matrix_new): New argument
11702         lambda_obstack.  Pass it down, use obstack allocation for ret.
11703         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
11704         it down.
11705
11706         * lambda-mat.c (lambda_matrix_get_column)
11707         (lambda_matrix_project_to_null): Remove.
11708         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
11709         allocation for mat.
11710         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
11711         lambda_obstack.
11712
11713         * lambda-code.c (lambda_loop_new): New function.
11714         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
11715         (lambda_compute_auxillary_space, lambda_compute_target_space)
11716         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
11717         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
11718         (build_access_matrix): New argument lambda_obstack.  Use obstack
11719         allocation for am.
11720         (lambda_compute_step_signs, lambda_compute_access_matrices): New
11721         argument lambda_obstack.  Pass it down.
11722
11723 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
11724
11725         * optabs.h (expand_widening_mult): Declare.
11726
11727 2010-04-22  Richard Guenther  <rguenther@suse.de>
11728
11729         PR tree-optimization/43845
11730         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
11731         lookup the CALL_EXPR function and arguments.
11732
11733 2010-04-22  Nick Clifton  <nickc@redhat.com>
11734
11735         * config/stormy16/stormy16.c
11736         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
11737         * config/stormy16/stormy16.h: Tidy up formatting.
11738         (DONT_USE_BUILTIN_SETJMP): Remove definition.
11739         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
11740         (ineqbranchsi): Delete pattern.
11741         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
11742         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
11743         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
11744         stormy16-lib2-ucmpsi2.c.
11745
11746 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
11747
11748         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
11749         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
11750         extra set merge_set_noclobber, and use it to relax the final test
11751         slightly.
11752         * df.h (df_simulate_find_noclobber_defs): Declare.
11753         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
11754         conditional defs.
11755         (df_simulate_find_noclobber_defs): New function.
11756
11757 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
11758
11759         * config/i386/i386.md: Use {} around multi-line preparation statements.
11760
11761 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11762
11763         * c-tree.h (push_init_level, pop_init_level, set_init_index)
11764         (process_init_element): New argument of type struct obstack *.
11765
11766         * c-typeck.c (push_init_level, pop_init_level, set_designator)
11767         (set_init_index, set_init_label, set_nonincremental_init)
11768         (set_nonincremental_init_from_string, find_init_member)
11769         (output_init_element, output_pending_init_elements)
11770         (process_init_element): New argument braced_init_obstack.  Pass it
11771         down.
11772         (push_range_stack, add_pending_init): New argument
11773         braced_init_obstack.  Use obstack allocation.
11774
11775         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
11776         braced_init_obstack.  Pass it down.
11777         (c_parser_braced_init): New variables ret, braced_init_obstack.
11778         Initialize obstack, pass it down and finally free it.
11779
11780 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
11781
11782         PR middle-end/29274
11783         * tree-pass.h (pass_optimize_widening_mul): Declare.
11784         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
11785         gate_optimize_widening_mul): New static functions.
11786         (pass_optimize_widening_mul): New.
11787         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
11788         <case MULT_EXPR>: Remove support for widening multiplies.
11789         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
11790         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
11791         simplify_gen_unary rather than directly building extensions.
11792         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
11793         WIDEN_MULT_EXPR.
11794         * expmed.c (expand_widening_mult): New function.
11795         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
11796
11797 2010-04-21  Jan Hubicka  <jh@suse.cz>
11798
11799         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
11800         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
11801         * lto-wpa-fixup.c: Remove.
11802         * Makefile.in (lto-wpa-fixup.o): Remove.
11803         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
11804         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
11805         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
11806
11807 2010-04-21  Jan Hubicka  <jh@suse.cz>
11808
11809         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
11810         add write_optimization_summary, read_optimization_summary.
11811         (ipa_write_summaries_of_cgraph_node_set): Remove.
11812         (ipa_write_optimization_summaries): Declare.
11813         (ipa_read_optimization_summaries): Declare.
11814         * ipa-cp.c (pass_ipa_cp): Update.
11815         * ipa-reference.c (pass_ipa_reference): Update.
11816         * ipa-pure-const.c (pass_ipa_pure_const): Update.
11817         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
11818         Update.
11819         * ipa-inline.c (pass_ipa_inline): Update.
11820         * ipa.c (pass_ipa_whole_program): Update.
11821         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
11822         * passes.c (ipa_write_summaries_1): Do not test wpa.
11823         (ipa_write_optimization_summaries_1): New.
11824         (ipa_write_optimization_summaries): New.
11825         (ipa_read_summaries): Do not test ltrans.
11826         (ipa_read_optimization_summaries_1): New.
11827         (ipa_read_optimization_summaries): New.
11828
11829 2010-04-21  Jan Hubicka  <jh@suse.cz>
11830
11831         * lto-cgraph.c (lto_output_node): Do not output comdat groups
11832         for boundary nodes.
11833         (output_cgraph): Do not arrange comdat groups for boundary nodes.
11834
11835 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
11836
11837         PR debug/40040
11838         * dwarf2out.c (add_name_and_src_coords_attributes): Add
11839         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
11840
11841 2010-04-21  Jan Hubicka  <jh@suse.cz>
11842
11843         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
11844
11845 2010-04-21  Jan Hubicka  <jh@suse.cz>
11846
11847         * varpool.c (decide_is_variable_needed): Variable is always needed
11848         during ltrans.
11849
11850 2010-04-21  Jan Hubicka  <jh@suse.cz>
11851
11852         * opts.c (decode_options): Enable pure-const pass for whopr.
11853
11854 2010-04-21  Jan Hubicka  <jh@suse.cz>
11855
11856         * cgraph.c (dump_cgraph_node): Dump also assembler name.
11857         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
11858         at WPA dumping.
11859         (cgraph_decide_inlining): Do not expect callee to be removed in all
11860         cases.
11861
11862 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
11863
11864         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
11865
11866 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
11867
11868         * config/i386/i386.md (x86_shrd): Add athlon_decode and
11869         amdfam10_decode attributes.
11870
11871 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
11872
11873         PR middle-end/43570
11874         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
11875         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
11876         (lower_copyprivate_clauses): Use private var in outer
11877         context instead of original var.  Make sure the types
11878         are correct for VLAs.
11879
11880 2010-04-21  Richard Guenther  <rguenther@suse.de>
11881
11882         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
11883         to non-pointer objects.
11884
11885 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
11886
11887         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
11888         last chain entry if it starts with the still current label.
11889         (add_location_or_const_value_attribute): Check that
11890         loc_list->first->next is NULL instead of comparing ->first with ->last.
11891         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
11892         to add_var_loc_to_decl.
11893
11894         * dwarf2out.c (output_call_frame_info): For dw_cie_version
11895         >= 4 add also address size and segment size fields into CIE header.
11896
11897         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
11898         long as address size is the same as sizeof (void *) and
11899         segment size is 0.
11900         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
11901         address size or segment size is unexpected, return DW_EH_PE_omit.
11902         (classify_object_over_fdes): If get_cie_encoding returned
11903         DW_EH_PE_omit, return -1.
11904         (init_object): If classify_object_over_fdes returned -1,
11905         pretend there were no FDEs at all.
11906
11907 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
11908
11909         * config/i386/i386.md (bswap<mode>2): Macroize expander from
11910         bswap{si,di}2 using SWI48 mode iterator.
11911         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
11912         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
11913         set modrm attribute of bswap insn to 0 and remove length attribute.
11914         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
11915         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
11916         set mode attribute to <MODE> and remove length attribute.
11917
11918 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
11919
11920         PR rtl-optimization/43520
11921         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
11922         zero available registers.
11923
11924 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11925
11926         * builtins.c (fold_builtin_cproj): Fold more cases.
11927
11928 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11929
11930         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
11931         (fold_builtin_1): Fold builtin cproj.
11932         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
11933         Use ATTR_CONST_NOTHROW_LIST.
11934
11935 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
11936
11937         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
11938         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
11939         ffsi2_no_cmove for !TARGET_CMOVE.
11940         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
11941         (ffssi2): Remove expander.
11942         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
11943         mode iterator.
11944         (ctz<mode>2): Ditto from ctz{si,di}2.
11945         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
11946         mode iterator.
11947         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
11948         mode iterator.
11949
11950 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
11951
11952         * dwarf2out.c (AT_linkage_name): Define.
11953         (clone_as_declaration): Handle DW_AT_linkage_name.
11954         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
11955         of DW_AT_MIPS_linkage_name.
11956         (move_linkage_attr): Likewise.
11957         (dwarf2out_finish): Likewise.
11958
11959 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
11960
11961         PR middle-end/41952
11962         * fold-const.c (fold_comparison): New folding rule.
11963
11964 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
11965
11966         * double-int.h (double_int_setbit): Declare.
11967         * double-int.c (double_int_setbit): New function.
11968         * rtl.h (immed_double_int_const): Declare.
11969         * emit-rtl.c (immed_double_int_const): New function.
11970         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
11971         and immed_double_int_const functions.
11972         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
11973         expand_copysign_bit):  (Ditto.).
11974         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
11975         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
11976         * dojump.c (prefer_and_bit_test): (Ditto.).
11977         * expr.c (convert_modes, reduce_to_bit_field_precision,
11978         const_vector_from_tree): (Ditto.).
11979         * expmed.c (mask_rtx, lshift_value): (Ditto.).
11980
11981 2010-04-20  Jan Hubicka  <jh@suse.cz>
11982
11983         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
11984         (dump_cgraph_node): Dump new flags.
11985         * cgraph.h (struct cgraph_node): Add flags
11986         reachable_from_other_partition and in_other_partition.
11987         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
11988         other partition can not be removed.
11989         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
11990         the other partition must be output; silence sanity checking on
11991         leaking functions bodies from other paritition.
11992         * lto-cgraph.c (reachable_from_other_partition_p): New function.
11993         (lto_output_node): Output new flags; do not sanity check that inline
11994         clones are output; drop lto_forced_extern_inline_p code; do not mock
11995         visibility flags at partition boundaries.
11996         (add_node_to): New function.
11997         (output_cgraph): Use it to sort functions so masters appear before
11998         clones.
11999         (input_overwrite_node): Input new flags.
12000         * passes.c (ipa_write_summaries): Do not call
12001         lto_new_extern_inline_states.
12002         * lto-section-out.c (forced_extern_inline,
12003         lto_new_extern_inline_states lto_delete_extern_inline_states,
12004         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
12005         * lto-streamer.h (lto_new_extern_inline_states,
12006         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
12007         lto_forced_extern_inline_p): Kill.
12008
12009 2010-04-20  Richard Guenther  <rguenther@suse.de>
12010
12011         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
12012         from vars that can have pointers.
12013         (process_constraint): Dump useless constraints.
12014
12015 2010-04-20  Richard Guenther  <rguenther@suse.de>
12016
12017         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
12018         (dump_sa_points_to_info): Remove asserts.
12019         (init_base_vars): nothing_id isn't an escape point nor does it
12020         have pointers.
12021
12022 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
12023
12024         * tree.h (TYPE_REF_IS_RVALUE): Define.
12025         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
12026         should_move_die_to_comdat, prune_unused_types_walk): Handle
12027         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
12028         (modified_type_die, gen_reference_type_die): Emit
12029         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
12030         if TYPE_REF_IS_RVALUE and -gdwarf-4.
12031
12032 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12033
12034         PR target/43635
12035         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
12036         calls for -fpic -m31 if they have been sibcall optimized.
12037
12038 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
12039
12040         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
12041         ar.lc fixed and call-used.
12042
12043         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
12044
12045 2010-04-19  Jan Hubicka  <jh@suse.cz>
12046
12047         * opts.c (decode_options): Disable whpr incompatible passes.
12048         * lto/lto.c (lto_1_to_1_map): Skip clones.
12049         (read_cgraph_and_symbols): Do not mark everything as needed.
12050         (do_whole_program_analysis): Do map only after optimizing;
12051         set proper cgraph_state; use passmanager.
12052
12053 2010-04-19  DJ Delorie  <dj@redhat.com>
12054
12055         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
12056         POINTER_PLUS_EXPR and fix them.
12057
12058 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
12059
12060         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
12061         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
12062         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
12063         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
12064         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
12065         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
12066         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
12067         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
12068         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
12069         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
12070         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
12071
12072 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
12073
12074         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
12075         (check_cond_move_block): Likewise.
12076         (cond_move_process_if_block): Likewise.
12077         (noce_find_if_block): Improve formatting.
12078         (find_if_header): Pass 0 to memset and tweak conditions.
12079         (cond_exec_find_if_block): Fix long lines and tweak conditions.
12080
12081 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
12082
12083         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
12084         for -gdwarf-4.
12085
12086         PR middle-end/43337
12087         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
12088         with non-local decl doesn't need chain.
12089
12090 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
12091
12092         * ira-color.c (allocno_reload_assign): Avoid accumulating
12093         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
12094
12095 2010-04-19  Martin Jambor  <mjambor@suse.cz>
12096
12097         * gimple.h (create_tmp_reg): Declare.
12098         * gimplify.c (create_tmp_reg): New function.
12099         (gimplify_return_expr): Use create_tmp_reg.
12100         (gimplify_omp_atomic): Likewise.
12101         (gimple_regimplify_operands): Likewise.
12102         * tree-dfa.c (make_rename_temp): Likewise.
12103         * tree-predcom.c (predcom_tmp_var): Likewise.
12104         (reassociate_to_the_same_stmt): Likewise.
12105         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
12106         (get_replaced_param_substitute): Likewise.
12107         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
12108         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
12109         * tree-ssa-pre.c (get_representative_for): Likewise.
12110         (create_expression_by_pieces): Likewise.
12111         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
12112         (create_tailcall_accumulator): Likewise.
12113
12114 2010-04-19  Martin Jambor  <mjambor@suse.cz>
12115
12116         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
12117         new_stmt.
12118         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
12119
12120 2010-04-19  Richard Guenther  <rguenther@suse.de>
12121
12122         PR tree-optimization/43796
12123         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
12124         from SCEV in the lattice.
12125         (vrp_visit_phi_node): Dump change.
12126
12127 2010-04-19  Richard Guenther  <rguenther@suse.de>
12128
12129         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
12130         * configure: Re-generated.
12131
12132 2010-04-19  Richard Guenther  <rguenther@suse.de>
12133
12134         PR tree-optimization/43783
12135         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
12136         constant ARRAY_REF operands two and three if possible.
12137
12138 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
12139
12140         PR target/43766
12141         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
12142
12143 2010-04-19  Jie Zhang  <jie@codesourcery.com>
12144
12145         PR target/43662
12146         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
12147
12148 2010-04-19  Ira Rosen  <irar@il.ibm.com>
12149
12150         PR tree-optimization/37027
12151         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
12152         and macro to access it.
12153         (vectorizable_reduction): Add argument.
12154         (vect_get_slp_defs): Likewise.
12155         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
12156         statements for possible use in SLP.
12157         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
12158         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
12159         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
12160         add new argument.
12161         (vectorizable_reduction): Likewise.
12162         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
12163         vect_get_slp_defs.
12164         (vectorizable_type_demotion, vectorizable_type_promotion,
12165         vectorizable_store): Likewise.
12166         (vect_analyze_stmt): Update call to vectorizable_reduction.
12167         (vect_transform_stmt): Likewise.
12168         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
12169         (vect_build_slp_tree): Fix indentation. Check that there are no loads
12170         from different interleaving chains in same node.
12171         (vect_slp_rearrange_stmts): New function.
12172         (vect_supported_load_permutation_p): Allow load permutations for
12173         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
12174         inside SLP nodes if necessary.
12175         (vect_analyze_slp_instance): Handle reductions.
12176         (vect_analyze_slp): Try to build SLP instances originating from groups
12177         of reductions.
12178         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
12179         (vect_get_constant_vectors): Create initial vectors for reductions
12180         according to reduction code. Add new argument.
12181         (vect_get_slp_defs): Add new argument, pass it to
12182         vect_get_constant_vectors.
12183         (vect_schedule_slp_instance): Remove SLP tree root statements.
12184
12185 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
12186
12187         * tree.h (ENUM_IS_SCOPED): Define.
12188         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
12189         for ENUM_IS_SCOPED enums.
12190
12191 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
12192
12193         * fold-const.c (fold_comparison): Use ssizetype.
12194         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
12195         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
12196         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
12197         * tree-object-size.c (compute_object_sizes): Use size_type_node.
12198
12199         * tree.h (initialize_sizetypes): Remove parameter.
12200         (build_common_tree_nodes): Remove second parameter.
12201         * stor-layout.c (initialize_sizetypes): Remove parameter.
12202         Always create an unsigned type.
12203         (set_sizetype): Assert that the passed type is unsigned and simplify.
12204         * tree.c (build_common_tree_nodes): Remove second parameter.
12205         Adjust call to initialize_sizetypes.
12206         * c-decl.c (c_init_decl_processing): Remove second argument in call to
12207         build_common_tree_nodes.
12208
12209 2010-04-18  Matthias Klose  <doko@ubuntu.com>
12210
12211         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
12212
12213 2010-04-18  Ira Rosen  <irar@il.ibm.com>
12214
12215         PR tree-optimization/43771
12216         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
12217         load permutation doesn't have gaps.
12218
12219 2010-04-18  Jan Hubicka  <jh@suse.cz>
12220
12221         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
12222         (sse_prologue_save_insn expander): Use new pattern.
12223         (sse_prologue_save_insn1): New pattern and splitter.
12224         (sse_prologue_save_insn): Update to deal also with 64bit aligned
12225         blocks.
12226         * i386.c (setup_incoming_varargs_64): Do not compute jump
12227         destination here.
12228         (ix86_gimplify_va_arg): Update alignment needed.
12229         (ix86_local_alignment): Do not align all local arrays to 128bit.
12230
12231 2010-04-17  Jan Hubicka  <jh@suse.cz>
12232
12233         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
12234
12235 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
12236
12237         * arm.md (negdi2): Remove redundant code to force values into a
12238         register.
12239
12240 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
12241
12242         * arm/bpabi.S: Add EABI alignment attributes to objects.
12243         * arm/bpabi-v6m.S: Likewise.
12244         * arm/crti.asm: Likewise.
12245         * arm/crtn.asm: Likewise.
12246         * arm/lib1funcs.asm: Likewise.
12247         * arm/libunwind.S: Likewise.
12248
12249 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
12250
12251         * arm-protos.h (tune_params): New structure.
12252         * arm.c (current_tune): New variable.
12253         (arm_constant_limit): Delete.
12254         (struct processors): Add pointer to the tune parameters.
12255         (arm_slowmul_tune): New tuning option.
12256         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
12257         (all_cores): Adjust to pick up the tuning model.
12258         (arm_constant_limit): New function.
12259         (arm_override_options): Select the appropriate tuning model.  Delete
12260         initialization of arm_const_limit.
12261         (arm_split_constant): Use the new constant-limit model.
12262         (arm_rtx_costs): Pick up the current tuning model.
12263         * arm.md (is_strongarm, is_xscale): Delete.
12264         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
12265         for Xscale variant architectures.
12266         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
12267
12268 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12269
12270         * config/arm/arm.c (arm_gen_constant): Remove unused variable
12271         can_shift.
12272         (arm_rtx_costs_1): Remove unused variable extra_cost.
12273         (arm_unwind_emit_set): Use variable offset.
12274         (thumb1_output_casesi): Remove unused variable flags.
12275
12276 2010-04-16  Jeff Law  <law@redhat.com>
12277
12278         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
12279         needing assignment rather than doing a two-phase assignment.  Remove
12280         unused variable 'm'.
12281
12282 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
12283
12284         PR bootstrap/43767
12285         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
12286
12287 2010-04-16  Doug Kwan  <dougkwan@google.com>
12288
12289         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
12290         (next_operand_entry_id): New static variable.
12291         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
12292         (add_to_ops_vec): Assigned unique ID to operand entry.
12293         (struct oecount_s): New field ID.
12294         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
12295         (undistribute_ops_list): Assign unique IDs to oecounts.
12296         (init_reassoc): reset next_operand_entry_id.
12297
12298 2010-04-16  Doug Kwan  <dougkwan@google.com>
12299
12300         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
12301         missing left parenthesis.
12302
12303 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
12304
12305         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
12306         *btdi_rex64 using SWI48 mode iterator.
12307         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
12308         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
12309         *jcc_btdi_mask_rex64.
12310
12311 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
12312
12313         * double-int.h (tree_to_double_int): Convert to macro.
12314         * double-int.c (tree_to_double_int): Remove.
12315
12316 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
12317
12318         PR debug/43762
12319         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
12320         with want_address 2 and in case a single element list might be
12321         possible, call it again with want_address 0.
12322
12323 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
12324
12325         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
12326         case 'W' print operands for HI mode.
12327         * config/h8300/h8300.h (Y0, Y2) : New constraints.
12328         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
12329         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
12330         * config/h8300/predicate.md (bit_register_indirect_operand): New.
12331
12332         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
12333
12334         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
12335         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
12336         #xx:3 and #xx:4 mode.
12337
12338         * config/h8300/h8300.md (inverted load with HImode dest): Add
12339         support for H8300SX.
12340
12341         * config/h8300/predicate.md (bit_operand): Allow immediate values that
12342         satisfy 'U' constraint.
12343
12344 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12345
12346         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
12347         * configure: Regenerate.
12348         * config.in: Regenerate.
12349         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
12350         works.
12351
12352 2010-04-16  Richard Guenther  <rguenther@suse.de>
12353
12354         * tree.h (struct tree_decl_minimal): Move pt_uid ...
12355         (struct tree_decl_common): ... here.
12356         (DECL_PT_UID): Adjust.
12357         (SET_DECL_PT_UID): Likewise.
12358         (DECL_PT_UID_SET_P): Likewise.
12359
12360 2010-04-16  Richard Guenther  <rguenther@suse.de>
12361
12362         PR tree-optimization/43572
12363         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
12364         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
12365         * tree-flow.h (is_call_clobbered): Remove.
12366         * tree-flow-inline.h (is_call_clobbered): Likewise.
12367         * tree-dfa.c (dump_variable): Do not dump call clobber state.
12368         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
12369         (execute_return_slot_opt): Adjust.
12370         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
12371         check for call clobbered vars here.
12372         (find_tail_calls): Move tailcall verification to the
12373         proper place.
12374
12375 2010-04-16  Diego Novillo  <dnovillo@google.com>
12376
12377         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
12378
12379 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
12380
12381         PR target/40603
12382         * config/arm/arm.md (cbranchqi4): New pattern.
12383         * config/arm/predicates.md (const0_operand,
12384         cbranchqi4_comparison_operator): New predicates.
12385
12386 2010-04-16  Richard Guenther  <rguenther@suse.de>
12387
12388         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
12389         (dump_gimple_stmt): Likewise.
12390
12391 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
12392
12393         * recog.h (struct recog_data): New field is_operator.
12394         (struct insn_operand_data): New field is_operator.
12395         * recog.c (extract_insn): Set recog_data.is_operator.
12396         * genoutput.c (output_operand_data): Emit code to set the
12397         is_operator field.
12398         * reload.c (find_reloads): Use it rather than testing for an
12399         empty constraint string.
12400
12401         PR target/41514
12402         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
12403         If the previous insn is a cbranchsi4_insn with the same arguments,
12404         omit the compare instruction.
12405
12406         * config/arm/arm.md (addsi3_cbranch): If destination is a high
12407         register, inputs must be low registers and we need a low register
12408         scratch.  Handle alternative 2 like alternative 3.
12409
12410 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
12411
12412         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
12413         don't call get_addr on both.  If one expression is a VALUE and
12414         the other a REG, check VALUE's locs if the REG isn't among them.
12415
12416 2010-04-16  Christian Bruel  <christian.bruel@st.com>
12417
12418         * config/sh/sh.h (sh_frame_pointer_required): New function.
12419         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
12420         (flag_omit_frame_pointer) Set.
12421         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
12422         (rounded_frame_size): Adjust size with outgoing_args_size.
12423         (sh_set_return_address): Must return from stack pointer.
12424         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
12425         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
12426         (ACCUMULATE_OUTGOING_ARGS): Define.
12427         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
12428         * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
12429
12430 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
12431
12432         PR target/43471
12433         * config/sh/sh.c (sh_legitimize_reload_address): Use
12434         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
12435         Remove a unneeded check for offset_base.
12436
12437 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
12438
12439         * configure: Regenerated.
12440
12441 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12442
12443         * config/s390/s390.c (s390_call_save_register_used): Switch back
12444         to HARD_REGNO_NREGS.
12445
12446 2010-04-15  Richard Guenther  <rguenther@suse.de>
12447
12448         * alias.c (alias_set_subset_of): Handle alias-set zero
12449         child properly.
12450
12451 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
12452             Julian Brown  <julian@codesourcery.com>
12453
12454         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
12455         alternatives according to use of high and low regs.
12456         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
12457         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
12458         optimizing for size on Thumb-2.
12459
12460 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
12461
12462         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
12463
12464 2010-04-15  Richard Guenther  <rguenther@suse.de>
12465
12466         * tree-ssa-structalias.c (struct variable_info): Add
12467         is_fn_info flag.
12468         (new_var_info): Initialize it.
12469         (dump_constraints): Support printing last added constraints.
12470         (debug_constraints): Adjust.
12471         (dump_constraint_graph): Likewise.
12472         (make_heapvar_for): Check for NULL cfun.
12473         (get_function_part_constraint): New function.
12474         (get_fi_for_callee): Likewise.
12475         (find_func_aliases): Properly implement IPA PTA constraints.
12476         (process_ipa_clobber): New function.
12477         (find_func_clobbers): Likewise.
12478         (insert_into_field_list_sorted): Remove.
12479         (create_function_info_for): Properly allocate vars for IPA mode.
12480         Do not use insert_into_field_list_sorted.
12481         (create_variable_info_for): Properly generate constraints for
12482         global vars in IPA mode.
12483         (dump_solution_for_var): Always dump the solution.
12484         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
12485         (find_what_var_points_to): Adjust.
12486         (pt_solution_set): Change.
12487         (pt_solution_ior_into): New function.
12488         (pt_solution_empty_p): Export.
12489         (pt_solution_includes_global): Adjust.
12490         (pt_solution_includes_1): Likewise.
12491         (pt_solutions_intersect_1): Likewise.
12492         (dump_sa_points_to_info): Check some invariants.
12493         (solve_constraints): Move constraint dumping ...
12494         (compute_points_to_sets): ... here.
12495         (ipa_pta_execute): ... and here.
12496         (compute_may_aliases): Do not re-compute points-to info
12497         locally if IPA info is available.
12498         (ipa_escaped_pt): New global var.
12499         (ipa_pta_execute): Properly implement IPA PTA.
12500         * tree-into-ssa.c (dump_decl_set): Support dumping
12501         decls not in referenced-vars.
12502         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
12503         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
12504         (dump_points_to_solution): Likewise.
12505         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
12506         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
12507         (remap_gimple_stmt): Reset call clobber/use information if necessary.
12508         (copy_decl_to_var): Copy DECL_PT_UID.
12509         (copy_result_decl_to_var): Likewise.
12510         * tree.c (make_node_stat): Initialize DECL_PT_UID.
12511         (copy_node_stat): Copy it.
12512         * tree.h (DECL_PT_UID): New macro.
12513         (SET_DECL_PT_UID): Likewise.
12514         (DECL_PT_UID_SET_P): Likewise.
12515         (struct tree_decl_minimal): Add pt_uid member.
12516         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
12517         (pt_solution_empty_p): Declare.
12518         (pt_solution_set): Adjust.
12519         (ipa_escaped_pt): Declare.
12520         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
12521         * gimple-pretty-print.c (pp_points_to_solution): New function.
12522         (dump_gimple_call): Dump call clobber/use information.
12523         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
12524         * tree-pass.h (TDF_ALIAS): New dump option.
12525         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
12526         * doc/invoke.texi (-fipa-pta): Update documentation.
12527
12528 2010-04-15  Richard Guenther  <rguenther@suse.de>
12529
12530         * Makefile.in (OBJS-common): Add gimple-fold.o.
12531         (gimple-fold.o): New rule.
12532         * tree.h (maybe_fold_offset_to_reference,
12533         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
12534         prototypes ...
12535         * gimple.h: ... here.
12536         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
12537         may_propagate_address_into_dereference): Move prototypes ...
12538         * gimple.h: ... here.
12539         * tree-ssa-ccp.c (get_symbol_constant_value,
12540         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
12541         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
12542         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
12543         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
12544         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
12545         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
12546         gimplify_and_update_call_from_tree): Move ...
12547         * gimple-fold.c: ... here.  New file.
12548         (ccp_fold_builtin): Rename to ...
12549         (gimple_fold_builtin): ... this.
12550         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
12551
12552 2010-04-15  Richard Guenther  <rguenther@suse.de>
12553
12554         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
12555         fit_double_type, force_fit_type_double, add_double_with_sign,
12556         neg_double, mul_double_with_sign, lshift_double, rshift_double,
12557         lrotate_double, rrotate_double, div_and_round_double): Move ...
12558         * double-int.c: ... here.
12559         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
12560         add_double, neg_double, mul_double_with_sign, mul_double,
12561         lshift_double, rshift_double, lrotate_double, rrotate_double,
12562         div_and_round_double): Move prototypes ...
12563         * double-int.h: ... here.
12564
12565 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
12566
12567         PR target/43742
12568         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
12569         matching constraints to ensure inputs match the output.
12570
12571 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
12572
12573         PR target/43742
12574         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
12575         in an input-only operand.
12576
12577 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
12578
12579         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
12580         (double_int_not, double_int_lshift, double_int_rshift): Declare.
12581         (double_int_negative_p): Convert to static inline function.
12582         * double-int.c (double_int_lshift, double_int_lshift): New functions.
12583         (double_int_negative_p): Remove.
12584         * tree.h (lshift_double, rshift_double):
12585         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
12586         * fold-const.c (fold_convert_const_int_from_real,
12587         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
12588         (lshift_double): Change type of arith argument to bool.
12589         (rshift_double): Change type of arith argument to bool. Correct
12590         comment.
12591         * expmed.c (mask_rtx, lshift_value): (Ditto.).
12592
12593 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
12594
12595         PR target/21803
12596         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
12597         at the start and end of the then/else blocks, and omit them from the
12598         conversion.
12599         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
12600         argument; all callers changed.  Pass zero to old_insns_match_p instead.
12601         (flow_find_head_matching_sequence): New function.
12602         (old_insns_match_p): Check REG_EH_REGION notes for calls.
12603         * basic-block.h (flow_find_cross_jump,
12604         flow_find_head_matching_sequence): Declare functions.
12605
12606 2010-04-14  Jason Merrill  <jason@redhat.com>
12607
12608         PR c++/36625
12609         * c-common.c (attribute_takes_identifier_p): New fn.
12610         * c-common.h: Declare it.
12611
12612 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
12613
12614         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
12615         splitter condition.
12616         (*udivmod<mode>4): Ditto.
12617
12618 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
12619
12620         * config/i386/i386.md (maxmin_int): Rename code attribute from
12621         maxminiprefix and update all users.
12622         (maxmin_float): Ditto from maxminfprefix.
12623         (logic): Ditto from logicprefix.
12624         (absneg_mnemonic): Ditto from absnegprefix.
12625         * config/i386/mmx.md: Update all users of maxminiprefix,
12626         maxminfprefix and logicprefix for rename.
12627         * config/i386/sse.md: Ditto.
12628         * config/i386/sync.md (sync_<code><mode>): Update for
12629         logicprefix rename.
12630
12631 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12632
12633         PR 42966
12634         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
12635         warnings converted to errors.
12636
12637 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
12638
12639         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
12640         used insn_type variable.
12641         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
12642         to avoid set-but-not-used warning.
12643
12644 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
12645
12646         * df-core.c (df_ref_debug): Change format string placeholder
12647         from 0x%x to %#x.
12648         * dwarf2asm.c (dw2_asm_output_data_raw,
12649         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
12650         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
12651         * dwarf2out.c (output_cfi, output_cfi_directive,
12652         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
12653         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
12654         Ditto.
12655         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
12656         * print-rtl.c (print_rtx): Ditto.
12657
12658 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
12659
12660         PR middle-end/42694
12661         * builtins.c (expand_builtin_pow_root): New function to expand pow
12662         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
12663         series of sqrt and cbrt calls under -ffast-math.
12664         (expand_builtin_pow): Call it.
12665
12666 2010-04-14  Michael Matz  <matz@suse.de>
12667
12668         PR tree-optimization/42963
12669         * tree-cfg.c (touched_switch_bbs): New static variable.
12670         (group_case_labels_stmt): New function broken out from ...
12671         (group_case_labels): ... here, use the above.
12672         (start_recording_case_labels): Allocate touched_switch_bbs.
12673         (end_recording_case_labels): Deallocate it, call
12674         group_case_labels_stmt.
12675         (gimple_redirect_edge_and_branch): Remember index of affected BB.
12676
12677 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
12678
12679         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
12680         from insn template.
12681
12682 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
12683
12684         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
12685
12686 2010-04-13  Jan Hubicka  <jh@suse.cz>
12687
12688         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
12689         of optimized out static functions.
12690         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
12691         cost computation.  Also sanity check for overflows.
12692         (update_caller_keys): Update cgraph_edge_badness call; properly
12693         update fibheap and sanity check that it is up to date.
12694         (add_new_edges_to_heap): Update cgraph_edge_badness.
12695         (cgraph_decide_inlining_of_small_function): Likewise;
12696         add sanity checking that badness in heap is up to date;
12697         improve dumping of reason; Update badness of calls to the
12698         offline copy of function currently inlined; dump badness
12699         of functions not inlined because of unit growth limits.
12700
12701 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
12702
12703         PR middle-end/32628
12704         * c-common.c (pointer_int_sum): Disregard overflow that occured only
12705         because of sign-extension change when converting to sizetype here...
12706         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
12707
12708         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
12709         the folding to constants.  Remove redundant final conversion.
12710         (fold_binary) <associate>: Do not associate if the re-association of
12711         constants alone overflows.
12712         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
12713         to the end of the list.
12714         (multiple_of_p) <COND_EXPR>: New case.
12715
12716 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12717
12718         * opt-functions.awk (opt_sanitized_name): New.
12719         (opt_enum): New.
12720         * optc-gen.awk: Use it
12721         * opth-gen.awk: Use it.
12722
12723 2010-04-13  Martin Jambor  <mjambor@suse.cz>
12724
12725         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
12726         (sra_modify_assign): Delete stmts loading dead data even if racc has no
12727         children.  Call replace_uses_with_default_def_ssa_name to handle
12728         SSA_NAES on lhs.
12729
12730 2010-04-13  Michael Matz  <matz@suse.de>
12731
12732         PR middle-end/43730
12733         * builtins.c (expand_builtin_interclass_mathfn): Also create
12734         a register if the predicate doesn't match.
12735
12736 2010-04-13  Diego Novillo  <dnovillo@google.com>
12737
12738         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
12739         * c-pch.c: Include timevar.h.
12740         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
12741         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
12742         * ggc-common.c: Include timevar.h.
12743         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
12744         * timevar.def (TV_PCH_SAVE): Define.
12745         (TV_PCH_CPP_SAVE): Define.
12746         (TV_PCH_PTR_REALLOC): Define.
12747         (TV_PCH_PTR_SORT): Define.
12748         (TV_PCH_RESTORE): Define.
12749         (TV_PCH_CPP_RESTORE): Define.
12750
12751 2010-04-13  Michael Matz  <matz@suse.de>
12752
12753         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
12754         into MINUS_EXPRs.
12755         (can_reassociate_p): New function.
12756         (break_up_subtract_bb, reassociate_bb): Use it.
12757
12758 2010-04-13  Richard Guenther  <rguenther@suse.de>
12759
12760         PR bootstrap/43737
12761         * builtins.c (c_readstr): Fix assert.
12762
12763 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
12764
12765         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
12766         when generating cltd insn.
12767
12768         (*ashl<mode>3_1): Remove special handling for register operand 2.
12769         (*ashlsi3_1_zext): Ditto.
12770         (*ashlhi3_1): Ditto.
12771         (*ashlhi3_1_lea): Ditto.
12772         (*ashlqi3_1): Ditto.
12773         (*ashlqi3_1_lea): Ditto.
12774         (*<shiftrt_insn><mode>3_1): Ditto.
12775         (*<shiftrt_insn>si3_1_zext): Ditto.
12776         (*<shiftrt_insn>qi3_1_slp): Ditto.
12777         (*<rotate_insn><mode>3_1): Ditto.
12778         (*<rotate_insn>si3_1_zext): Ditto.
12779         (*<rotate_insn>qi3_1_slp): Ditto.
12780
12781 2010-04-13  Richard Guenther  <rguenther@suse.de>
12782
12783         * tree-ssa-structalias.c (callused_id): Remove.
12784         (call_stmt_vars): New.
12785         (get_call_vi): Likewise.
12786         (lookup_call_use_vi): Likewise.
12787         (lookup_call_clobber_vi): Likewise.
12788         (get_call_use_vi): Likewise.
12789         (get_call_clobber_vi): Likewise.
12790         (make_transitive_closure_constraints): Likewise.
12791         (handle_const_call): Adjust to do per-call call-used handling.
12792         (handle_pure_call): Likewise.
12793         (find_what_var_points_to): Remove general callused handling.
12794         (init_base_vars): Likewise.
12795         (init_alias_vars): Initialize call_stmt_vars.
12796         (compute_points_to_sets): Process call-used and call-clobbered
12797         vars for call statements.
12798         (delete_points_to_sets): Free call_stmt_vars.
12799
12800 2010-04-13  Richard Guenther  <rguenther@suse.de>
12801
12802         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
12803         Only add RW dependence for dependence distance zero.
12804         Adjust maximal vectorization factor according to dependences.
12805         Move alignment handling ...
12806         (vect_find_same_alignment_drs): ... here.  New function.
12807         (vect_analyze_data_ref_dependences): Adjust.
12808         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
12809         (vect_analyze_data_refs): Adjust minimal vectorization factor
12810         according to data references.
12811         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
12812         dependences before determining the vectorization factor.
12813         Analyze alignment after determining the vectorization factor.
12814         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
12815         dependences before alignment.
12816         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
12817         Adjust prototype.
12818         (vect_analyze_data_refs): Likewise.
12819         (MAX_VECTORIZATION_FACTOR): New define.
12820
12821 2010-04-13  Duncan Sands  <baldrick@free.fr>
12822
12823         * except.h (lang_eh_type_covers): Remove.
12824         * except.c (lang_eh_type_covers): Likewise.
12825
12826 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12827             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12828
12829         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
12830         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
12831         UNITS_PER_LONG where it is ABI relevant.
12832         (s390_return_addr_rtx): Likewise.
12833         (s390_back_chain_rtx): Likewise.
12834         (s390_frame_area): Likewise.
12835         (s390_frame_info): Likewise.
12836         (s390_initial_elimination_offset): Likewise.
12837         (save_gprs): Likewise.
12838         (s390_emit_prologue): Likewise.
12839         (s390_emit_epilogue): Likewise.
12840         (s390_function_arg_advance): Likewise.
12841         (s390_function_arg): Likewise.
12842         (s390_va_start): Likewise.
12843         (s390_gimplify_va_arg): Likewise.
12844         (s390_function_profiler): Likewise.
12845         (s390_optimize_prologue): Likewise.
12846         (s390_rtx_costs): Likewise.
12847         (s390_secondary_reload): Likewise.
12848         (s390_promote_function_mode): Likewise.
12849         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
12850         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
12851         registers available.
12852         (s390_unwind_word_mode): New function.
12853         (s390_function_value): Split 64 bit values into register pair if
12854         used as return value.
12855         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
12856         function call parameters.  Handle parallels.
12857         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
12858         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
12859         (DWARF_CIE_DATA_ALIGNMENT): New macro.
12860         (s390_expand_setmem): Remove unused variable src_addr.
12861         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
12862         deal with 64 bit registers.
12863         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
12864         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
12865         (UNITS_PER_LONG): New macro.
12866         * libjava/include/s390-signal.h: Define extended ucontext
12867         structure containing the upper halfs of the 64 bit registers.
12868
12869 2010-04-13  Simon Baldwin  <simonb@google.com>
12870
12871         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
12872
12873 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
12874
12875         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
12876         rvalue on the RHS if the LHS is of a non-renamable type.
12877         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
12878
12879 2010-04-13  Matthias Klose  <doko@ubuntu.com>
12880
12881         * gcc.c (cc1_options): Handle -iplugindir before processing
12882         the cc1 spec. Only add -iplugindir once.
12883         (cpp_unique_options): Add -iplugindir option if -fplugin* options
12884         found.
12885         * common.opt (iplugindir): Remove `Separate' property, initialize.
12886         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
12887         option.
12888         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
12889         (distclean): Remove plugin dir.
12890         * doc/invoke.texi: Document -iplugindir.
12891
12892 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
12893
12894         * doc/plugins.texi (Loading Plugins): Document short
12895         -fplugin=foo option.
12896         (Plugin API): Mention default_plugin_dir_name function.
12897
12898         * gcc.c (find_file_spec_function): Add new declaration.
12899         (static_spec_func): Use it for "find-file".
12900         (find_file_spec_function): Add new function.
12901         (cc1_options): Add -iplugindir option if -fplugin* options found.
12902
12903         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
12904
12905         * plugin.c (add_new_plugin): Updated comment, and handle short
12906         plugin name.
12907         (default_plugin_dir_name): Added new function.
12908
12909         * common.opt (iplugindir): New option to set the plugin directory.
12910
12911 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
12912
12913         * config/i386/i386.md (any_rotate): New code iterator.
12914         (rotate_insn): New code attribute.
12915         (rotate): Ditto.
12916         (SWIM124): New mode iterator.
12917         (<rotate_insn>ti3): New expander.
12918         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
12919         any_rotate code iterator.
12920         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
12921         using any_rotate code iterator and SWIM124 mode iterator.
12922         (ix86_rotlti3): New insn_and_split pattern.
12923         (ix86_rotrti3): Ditto.
12924         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
12925         ix86_rotl{di,ti}3 patterns.
12926         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
12927         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
12928         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
12929         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
12930         code iterator and SWI mode iterator.
12931         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
12932         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
12933         code iterator.
12934         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
12935         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
12936         (bswap rotatert splitter): Add splitter.
12937         (bswap splitter): Macroize splitter using any_rotate code iterator.
12938         Add insn predicate to split only for TARGET_USE_XCHGB or when
12939         optimizing function for size.
12940
12941 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
12942
12943         * config/pa/pa.c (emit_move_sequence): Remove use of
12944         deleted variable flag_argument_noalias.
12945
12946 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12947
12948         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
12949         configurations.
12950         Add to unsupported targets list.
12951         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
12952         sparc*-sun-solaris2.[567]* from target lists.
12953         * configure: Regenerate.
12954         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
12955         removal.
12956         Remove Solaris 7 patch references.
12957         (Specific, sparc-sun-solaris2.7): Removed.
12958         (sparc-sun-solaris2*): Update Solaris 7 example.
12959         (sparc64-*-solaris2*): Likewise.
12960
12961 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12962
12963         * config.build (alpha*-dec-osf4*): Remove.
12964         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
12965         of obsolete configurations.
12966         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
12967         support.
12968         * config/alpha/t-osf4: Renamed to ...
12969         * config/alpha/t-osf5: ... this.
12970         * config/alpha/osf.h: Renamed to ...
12971         * config/alpha/osf5.h: ... this.
12972         Merged old osf5.h contents.
12973         Update comments.
12974         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
12975         (EXTRA_SPECS): Removed.
12976         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
12977         reflect removal of Tru64 UNIX V4.0/V5.0 support.
12978         Document that.
12979
12980 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12981
12982         * doc/contrib.texi (Contributors, Rainer Orth): Update.
12983
12984 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
12985
12986         PR/43702
12987         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
12988         __thiscall convention.
12989
12990 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
12991
12992         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
12993         orig_base.
12994         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
12995
12996 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
12997
12998         * function.c (assign_parms_initialize_all): Add unused attribute
12999         to fntype.
13000
13001 2010-04-12  Richard Guenther  <rguenther@suse.de>
13002
13003         * gsstruct.def (GSS_CALL): New.
13004         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
13005         * gimple.h: Include tree-ssa-alias.h.
13006         (struct gimple_statement_call): New.
13007         (union gimple_statement_struct_d): Add gimple_call member.
13008         (gimple_call_reset_alias_info): Declare.
13009         (gimple_call_use_set): New function.
13010         (gimple_call_clobber_set): Likewise.
13011         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
13012         * gimple.c (gimple_call_reset_alias_info): New function.
13013         (gimple_build_call_1): Call it.
13014         * lto-streamer-in.c (input_gimple_stmt): Likewise.
13015         * tree-inline.c (remap_gimple_stmt): Likewise.
13016         (expand_call_inline): Remove callused handling.
13017         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
13018         * tree-dfa.c (dump_variable): Likewise.
13019         * tree-parloops.c (parallelize_loops): Likewise.
13020         * tree-ssa.c (init_tree_ssa): Likewise.
13021         (delete_tree_ssa): Likewise.
13022         * tree-flow-inline.h (is_call_used): Remove.
13023         * tree-flow.h (struct gimple_df): Remove callused member.
13024         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
13025         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
13026         (ref_maybe_used_by_call_p_1): Simplify.
13027         (call_may_clobber_ref_p_1): Likewise.
13028         * tree-ssa-structalias.c (compute_points_to_sets): Set
13029         the call stmt used and clobbered sets.
13030         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
13031         (find_tail_calls): Verify the tail call.
13032
13033 2010-04-12  Richard Guenther  <rguenther@suse.de>
13034
13035         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
13036         single-iteration always-inline inlining.
13037         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
13038         (cgraph_decide_inlining): Do not handle always-inline specially.
13039         (try_inline): Remove always-inline cycle detection special case.
13040         Do not recurse on always-inlines.
13041         (cgraph_early_inlining): Do not iterate if not optimizing.
13042         (cgraph_gate_early_inlining): remove.
13043         (pass_early_inline): Run unconditionally.
13044         (gate_cgraph_decide_inlining): New function.
13045         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
13046         not inlining or optimizing.
13047         (cgraph_decide_inlining_of_small_functions): Also consider
13048         always-inline functions.
13049         (cgraph_default_inline_p): Return true for nodes which should
13050         disregard inline limits.
13051         (estimate_function_body_sizes): Assume zero size and time for
13052         nodes which are marked as disregarding inline limits.
13053         (cgraph_decide_recursive_inlining): Do not perform recursive
13054         inlining on always-inline nodes.
13055
13056 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
13057
13058         PR bootstrap/43699
13059         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
13060         for exprs satisfying handled_component_p.
13061
13062 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
13063
13064         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
13065         non-constant aggregate elements.
13066
13067         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
13068         is a real initialization.
13069
13070 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
13071
13072         PR c/36774
13073         * c-decl.c (start_function): Move forward check for nested function.
13074
13075 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
13076
13077         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
13078         * config/sh/sh.c: Include reload.h.
13079         (sh_legitimize_reload_address): New.
13080         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
13081         sh_legitimize_reload_address.
13082
13083 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
13084
13085         * config/sh/sh.md (*movqi_pop): New insn pattern.
13086         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
13087
13088 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
13089
13090         * config/i386/i386.md (any_shiftrt): New code iterator.
13091         (shiftrt_insn): New code attribute.
13092         (shiftrt): Ditto.
13093         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
13094         using any_shiftrt code iterator.
13095         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
13096         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
13097         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
13098         pattern from corresponding peephole2 patterns.
13099         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
13100         using any_shiftrt code iterator.
13101         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
13102         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
13103         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
13104         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
13105         *{ashr,lshr}<mode>3_cmp_zext.
13106         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
13107
13108 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
13109
13110         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
13111         scratch register.
13112         (*lshr<mode>3_cconly): Ditto.
13113
13114 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
13115
13116         * config/i386/i386.md (lshr<mode>3): Macroize expander from
13117         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
13118         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
13119         pattern from *lshr{di,ti}3_1 and corresponding splitters using
13120         DWI mode iterator.
13121         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
13122         from corresponding peephole2 patterns.
13123         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
13124         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
13125         and *lshrdi3_1_rex64 using SWI mode iterator.
13126         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
13127         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
13128         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
13129         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
13130         and *lshrdi3_cmp_rex64 using SWI mode iterator.
13131         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
13132         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
13133         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
13134         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
13135         SWI mode iterator.
13136
13137 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
13138
13139         * config/i386/i386.md (ashr<mode>3): Macroize expander from
13140         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
13141         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
13142         pattern from *ashr{di,ti}3_1 and corresponding splitters using
13143         DWI mode iterator.
13144         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
13145         from corresponding peephole2 patterns.
13146         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
13147         (ashrsi3_cvt): Rename from ashrsi3_31.
13148         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
13149         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
13150         and x86_64_shift_adj_3 using SWI48 mode iterator.
13151         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
13152         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
13153         and *ashrdi3_1_rex64 using SWI mode iterator.
13154         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
13155         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
13156         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
13157         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
13158         and *ashrdi3_cmp_rex64 using SWI mode iterator.
13159         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
13160         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
13161         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
13162         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
13163         SWI mode iterator.
13164         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
13165         * config/i386/i386.c (ix86_split_ashr): Update for renamed
13166         x86_shift<mode>_adj_3 expanders.
13167
13168 2010-04-10  Wei Guozhi  <carrot@google.com>
13169
13170         PR target/42601
13171         * config/arm/arm.c (arm_pic_static_addr): New function.
13172         (legitimize_pic_address): Call arm_pic_static_addr when it detects
13173         a static symbol.
13174         (arm_output_addr_const_extra): Output expression for new pattern.
13175         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
13176
13177 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
13178
13179         * ira-costs.c (record_reg_classes): Ignore alternatives that are
13180         not enabled.
13181
13182         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
13183         * web.c: Include "insn-config.h" and "recog.h".
13184         (union_match_dups): New function.
13185         (web_main): Call it.
13186         (union_defs): Don't try to recognize match_dups.
13187
13188         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
13189         if doing so would replace the entire pattern.
13190
13191 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
13192
13193         PR target/43707
13194         PR target/43709
13195         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
13196         and splitter pattern.  Change splitter operand 1 predicate to
13197         nonmemory_operand.
13198
13199 2010-04-09  Martin Jambor  <mjambor@suse.cz>
13200
13201         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
13202         lattices are addresses of CONST_DECLs with the same initial value.
13203         (ipcp_print_all_lattices): Print values of CONST_DECLs.
13204         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
13205
13206 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
13207             Bernd Schmidt  <bernds@codesourcery.com>
13208
13209         * loop-invariant.c (replace_uses): New static function.
13210         (move_invariant_reg): Use it to ensure we can replace the uses.
13211
13212 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
13213
13214         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
13215         function template.
13216         (picochip_override_options): Enable section anchors only above -O1.
13217         (picochip_reorg): Fixed a couple of build warnings.
13218
13219 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13220
13221         * configure.ac (plugin -rdynamic test): Log result.
13222         * configure: Regenerate.
13223         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
13224         (RDYNAMIC_SPEC): Define.
13225         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
13226
13227 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13228
13229         * configure.ac: Determine Sun ld version numbers.
13230         (comdat_group): Restrict GNU ld version checks to gld.
13231         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
13232         (enable_comdat): Support --enable-comdat.
13233         * configure: Regenerate.
13234         * doc/install.texi (Configuration): Document --enable-comdat.
13235
13236 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13237
13238         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
13239         * config/sol2-gld.h: ... here.
13240         * config.gcc (sparc*-*-solaris2*): Reflect this.
13241         (i[34567]86-*-solaris2*): Use it.
13242
13243 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
13244
13245         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
13246         setup_clocks_p.
13247         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
13248
13249 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13250
13251         PR 42965
13252         * diagnostic.c (diagnostic_initialize): Initialize
13253         some_warnings_are_errors.
13254         (diagnostic_finish): New.
13255         (diagnostic_action_after_output): Call it before exiting.
13256         (diagnostic_report_diagnostic): Do not print message here. Set
13257         some_warnings_are_errors.
13258         * diagnostic.h (diagnostic_context): Delete
13259         issue_warnings_are_errors_message. Add some_warnings_are_errors.
13260         (diagnostic_finish): Declare.
13261         * toplev.c (toplev_main): Call it before exit.
13262
13263 2010-04-09  Jason Merrill  <jason@redhat.com>
13264
13265         PR c++/42623
13266         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
13267         for incomplete type.
13268
13269         PR c++/41788
13270         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
13271         based on a warning flag.
13272
13273 2010-04-09  Richard Guenther  <rguenther@suse.de>
13274
13275         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
13276
13277 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
13278
13279         PR bootstrap/43684
13280         * varasm.c (default_assemble_visibility): Wrap vars that are
13281         set, but unused, by targets without GAS.
13282         * config/rs6000/rs6000.c (paired_emit_vector_compare):
13283         Remove set, but unused, vars.
13284         (rs6000_legitimize_tls_address): Likewise.
13285         (altivec_expand_dst_builtin): Likewise.
13286         * config/darwin.c (machopic_classify_symbol): Likewise.
13287         (machopic_indirection_name): Likewise.
13288
13289 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
13290
13291         * config/i386/i386.md (DWI): New mode iterator.
13292         (S): New mode attribute.
13293         (shift_operand): Ditto.
13294         (shift_immediate_operand): Ditto.
13295         (ashl_input_operand): Ditto.
13296         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
13297         using SDWIM mode iterator.
13298         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
13299         pattern from *ashl{di,ti}3_1 and corresponding splitters using
13300         DWI mode iterator.
13301         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
13302         from corresponding peephole2 patterns.
13303         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
13304         and x86_64_shift_adj_1 using SWI48 mode iterator.
13305         (x86_shift<mode>_adj_2): Ditto.
13306         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
13307         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
13308         using SWI48 mode iterator.
13309         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
13310         *ashldi3_cmp_rex64 using SWI mode iterator.
13311         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
13312         *ashldi3_cconly_rex64 using SWI mode iterator.
13313         * config/i386/i386.c (ix86_split_ashl): Update for renamed
13314         x86_shift<mode>_adj_{1,2}.
13315         (ix86_split_ashr): Ditto.
13316         (ix86_split_lshr): Ditto.
13317
13318 2010-04-09  Richard Guenther  <rguenther@suse.de>
13319
13320         * target.h (builtin_conversion): Pass in input and output types.
13321         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
13322         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
13323         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
13324         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
13325
13326         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
13327         Handle AVX modes.
13328         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
13329
13330 2010-04-09  Richard Guenther  <rguenther@suse.de>
13331
13332         PR target/43152
13333         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
13334
13335 2010-04-09  Richard Guenther  <rguenther@suse.de>
13336
13337         * tree-vectorizer.h (struct _stmt_vec_info): Document
13338         that vectype is the type of the LHS.
13339         (supportable_widening_operation, supportable_narrowing_operation):
13340         Get both input and output vector types as arguments.
13341         (vect_is_simple_use_1): Declare.
13342         (get_same_sized_vectype): Likewise.
13343         * tree-vect-loop.c (vect_determine_vectorization_factor):
13344         Set STMT_VINFO_VECTYPE to the vector type of the def.
13345         (vectorizable_reduction): Adjust.
13346         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
13347         Adjust.  Specify the output vector type.
13348         (vect_pattern_recog_1): Adjust.
13349         * tree-vect-stmts.c (get_same_sized_vectype): New function.
13350         (vectorizable_call): Adjust.
13351         (vectorizable_conversion): Likewise.
13352         (vectorizable_operation): Likewise.
13353         (vectorizable_type_demotion): Likewise.
13354         (vectorizable_type_promotion): Likewise.
13355         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
13356         the def.
13357         (vect_is_simple_use_1): New function.
13358         (supportable_widening_operation): Get both input and output
13359         vector types.
13360         (supportable_narrowing_operation): Likewise.
13361         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
13362
13363 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
13364
13365         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
13366         __thiscall and _thiscall as predefined macros.
13367         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
13368         thiscall attribute handling.
13369         (ix86_comp_type_attributes): Likewise.
13370         (ix86_function_regparm): Likewise.
13371         (ix86_return_pops_args): Likewise.
13372         (init_cumulative_args): Likewise.
13373         (find_drap_reg): Likewise.
13374         (ix86_static_chain): Likewise.
13375         (x86_this_parameter): Likewise.
13376         (x86_output_mi_thunk): Likewise.
13377         (ix86_attribute_table): Add description for thiscall attribute.
13378         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
13379         * doc/extend.texi: Add documentation for thiscall.
13380
13381 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13382
13383         PR c++/28584
13384         * c.opt (Wint-to-pointer-cast): Available in C++.
13385         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
13386
13387 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
13388
13389         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
13390         * calls.c (expand_call): Pass the function type to aggregate_value_p.
13391         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
13392         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
13393         function type instead.  Reorder and simplify checks.
13394
13395         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
13396
13397 2010-04-08  Jing Yu  <jingyu@google.com>
13398             Zdenek Dvorak  <ook@ucw.cz>
13399
13400         PR tree-optimization/42720
13401         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
13402         loop unswitch conditions here from ...
13403         (tree_unswitch_single_loop): ... here.
13404
13405 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
13406
13407         * tree-if-conv.c: Fix comments and simplify logic.
13408
13409 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
13410
13411         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
13412         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
13413         (main_tree_if_conversion): Update call to tree_if_conversion.
13414
13415 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13416
13417         PR 42485
13418         * doc/invoke.texi (-b,-V): Delete.
13419         * doc/tm.texi: Do not mention -b.
13420         * gcc.c (display_help): Delete -b and -V.
13421         (process_command): Delete -b and -V.
13422         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
13423
13424 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
13425             Wolfgang Gellerich  <gellerich@de.ibm.com>
13426
13427         Implement target hook for loop unrolling
13428         * target.h (loop_unroll_adjust): Add a new target hook function.
13429         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
13430         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
13431         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
13432         (s390_loop_unroll_adjust): Implement the new target hook for s390.
13433         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
13434         target hook.
13435         (decide_unroll_stupid): Likewise.
13436
13437 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13438
13439         PR target/43643
13440         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
13441
13442 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13443
13444         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
13445         (Specific, *-*-solaris2*): Likewise.
13446         Don't prefer Sun as over GNU as.
13447
13448 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
13449
13450         * config/s390/s390.c (override_options): Adjust the z10 defaults
13451         for max-unroll-times, max-completely-peeled-insns
13452         and max-completely-peel-times.
13453
13454 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13455
13456         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
13457         instructions for z10.
13458         (s390_expand_setmem): Likewise.
13459         (s390_expand_cmpmem): Likewise.
13460
13461 2010-04-08  Richard Guenther  <rguenther@suse.de>
13462
13463         PR tree-optimization/43679
13464         * tree-ssa-pre.c (eliminate): Only propagate copies.
13465
13466 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
13467
13468         PR bootstrap/43681
13469         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
13470         set but not used variable warning.
13471
13472 2010-04-08  Wei Guozhi  <carrot@google.com>
13473
13474         PR target/41653
13475         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
13476         (arm_size_rtx_costs): Call the new function when optimized for size.
13477
13478 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
13479
13480         PR debug/43670
13481         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
13482         op0 is not a MEM, just return NULL instead of assertion
13483         failure.
13484         (discover_nonconstant_array_refs): Don't walk debug stmts.
13485
13486 2010-04-08  Doug Kwan  <dougkwan@google.com>
13487
13488         * configure.ac: Recognize gold and do not use its version number
13489         to test ld features.
13490         * configure: Regenerate.
13491
13492 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
13493
13494         PR middle-end/40815
13495         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
13496         (negate_value): Move code to push elements to broken_up_substracts ...
13497         (eliminate_plus_minus_pair): ... here.  Push operands that have no
13498         negative pair to plus_negates.
13499         (repropagate_negates, init_reassoc, fini_reassoc): Update.
13500
13501 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13502
13503         * doc/install.texi (Configuration): Move description of
13504         --enable-lto, --with-libelf*, --enable-gold from Java section to
13505         general section.
13506
13507         * doc/generic.texi (Working with declarations)
13508         (Function Properties, C and C++ Trees): Fix typos.
13509         * doc/sourcebuild.texi (Top Level): Likewise.
13510
13511 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
13512
13513         PR c/18624
13514         * tree.h (DECL_READ_P): Define.
13515         (struct tree_decl_common): Add decl_read_flag.
13516         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
13517         a set but not used warning.
13518         (merge_decls): Merge DECL_READ_P flag.
13519         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
13520         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
13521         * c-common.c (handle_used_attribute, handle_unused_attribute):
13522         Likewise.
13523         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
13524         New prototypes.
13525         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
13526         New functions.
13527         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
13528         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
13529         c_parser_binary_expression, c_parser_cast_expression,
13530         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
13531         Call default_function_array_read_conversion instead of
13532         default_function_array_conversion where needed.
13533         (c_parser_unary_expression, c_parser_conditional_expression,
13534         c_parser_postfix_expression_after_primary, c_parser_initelt):
13535         Likewise.  Call mark_exp_read where needed.
13536         (c_parser_statement_after_labels, c_parser_asm_operands,
13537         c_parser_typeof_specifier, c_parser_sizeof_expression,
13538         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
13539         where needed.
13540         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
13541         New.
13542         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
13543         (warn_unused_but_set_parameter): Default to warn_unused
13544         && extra_warnings.
13545         * doc/invoke.texi: Document -Wunused-but-set-variable and
13546         -Wunused-but-set-parameter.
13547
13548         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
13549         used count variable.
13550         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
13551         when operandN variables aren't used in the body of the expander
13552         or splitter.
13553         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
13554         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
13555         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
13556         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
13557         FOR_EACH_IMM_USE_ON_STMT): Likewise.
13558         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
13559         * tree.c (PROCESS_ARG): Likewise.
13560
13561 2010-04-07  Simon Baldwin  <simonb@google.com>
13562
13563         * diagnostic.h (diagnostic_override_option_index): New macro to
13564         set a diagnostic's option_index.
13565         * c-tree.h (c_cpp_error): Add warning reason argument.
13566         * opts.c (_warning_as_error_callback): New.
13567         (register_warning_as_error_callback): Store callback for
13568         warnings enabled via enable_warning_as_error.
13569         (enable_warning_as_error): Call callback, minor code tidy.
13570         * opts.h (register_warning_as_error_callback): Declare.
13571         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
13572         response to -Werror=.
13573         (c_common_init_options): Register warning_as_error_callback in opts.c.
13574         * common.opt: Add -Wno-cpp option.
13575         * c-common.c (struct reason_option_codes_t): Map cpp warning
13576         reason codes to gcc option indexes.
13577         * (c_option_controlling_cpp_error): New function, lookup the gcc
13578         option index for a cpp warning reason code.
13579         * (c_cpp_error): Add warning reason argument, call
13580         c_option_controlling_cpp_error for diagnostic_override_option_index.
13581         * doc/invoke.texi: Document -Wno-cpp.
13582
13583 2010-04-07  Richard Guenther  <rguenther@suse.de>
13584
13585         * ipa-reference.c (mark_load): Use get_base_address.
13586         (mark_store): Likewise.
13587
13588         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
13589         inserting GIMPLE_NOPs into the IL.
13590         * tree-ssa-structalias.c (get_constraint_for_component_ref):
13591         Explicitly strip handled components and indirect references.
13592
13593         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
13594         folding address expressions.
13595         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
13596         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
13597         operand_equal_p to compare decls.
13598         (ptr_deref_may_alias_decl_p): Likewise.
13599         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
13600         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
13601         Handle reversed comparison ops.
13602         * tree-sra.c (asm_visit_addr): Use get_base_address.
13603         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
13604         * ipa-reference.c (mark_address): Use get_base_address.
13605
13606 2010-04-07  Richard Guenther  <rguenther@suse.de>
13607
13608         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
13609         Propagate constants everywhere.
13610
13611 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
13612
13613         PR debug/43516
13614         * tree.c (MAX_INT_CACHED_PREC): Define.
13615         (nonstandard_integer_type_cache): New array.
13616         (build_nonstandard_integer_type): Cache results for precision
13617         <= MAX_INT_CACHED_PREC.
13618
13619 2010-04-07  Richard Guenther  <rguenther@suse.de>
13620
13621         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
13622         -fargument-noalias-global, -fargument-noalias-anything): Remove.
13623         * common.opt: Likewise.
13624         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
13625         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
13626         (nonoverlapping_memrefs_p): Likewise.
13627         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
13628         * opts.c (common_handle_option): Handle OPT_fargument_alias,
13629         OPT_fargument_noalias, OPT_fargument_noalias_anything and
13630         OPT_fargument_noalias_global for backward compatibility.
13631
13632 2010-04-07  Richard Guenther  <rguenther@suse.de>
13633
13634         PR tree-optimization/43270
13635         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
13636         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
13637         * tree-ssa-pre.c (phi_translate_1): Adjust.
13638         (fully_constant_expression): Split out vn_reference handling to ...
13639         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
13640         Fold reads from constant strings.
13641         (vn_reference_lookup): Handle fully constant references.
13642         (vn_reference_lookup_pieces): Likewise.
13643         * Makefile.in (expmed.o-warn): Add -Wno-error.
13644
13645 2010-04-07  Martin Jambor  <mjambor@suse.cz>
13646
13647         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
13648
13649 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
13650
13651         PR driver/41594
13652         * gcc.c: Add -static-libstdc++ to list of recognized options.
13653
13654 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13655
13656         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
13657
13658 2010-04-07  Richard Guenther  <rguenther@suse.de>
13659
13660         PR middle-end/42617
13661         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
13662         bases build simple mem attributes to retain points-to information.
13663
13664 2010-04-07  Richard Guenther  <rguenther@suse.de>
13665
13666         PR middle-end/42617
13667         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
13668         preserve points-to related information.
13669
13670 2010-04-07  Richard Guenther  <rguenther@suse.de>
13671
13672         PR middle-end/42617
13673         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
13674         discard plain indirect references.
13675         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
13676         * tree.c (tree_nop_conversion): Likewise.
13677
13678 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
13679
13680         PR debug/43628
13681         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
13682
13683 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
13684
13685         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
13686         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
13687
13688 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
13689
13690         * tree-if-conv.c: Fix indentation and comments.
13691
13692 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
13693
13694         * tree-if-conv.c: Sort static functions in topological order.
13695
13696 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
13697
13698         * tree-if-conv.c: Fix indentation and comments.
13699
13700 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
13701
13702         PR middle-end/43519
13703         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
13704         lang_hooks.types.type_for_size instead of
13705         build_nonstandard_integer_type.
13706         When converting an unsigned type to signed, double its precision.
13707         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
13708         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
13709         (graphite_create_new_loop_guard): When ub + 1 wraps around,
13710         use lb <= ub.
13711
13712 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
13713
13714         PR middle-end/43519
13715         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
13716         POINTER_PLUS_EXPR for pointer types.
13717
13718 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
13719
13720         PR middle-end/43519
13721         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
13722         * graphite-clast-to-gimple.c: Include langhooks.h.
13723         (max_signed_precision_type): New.
13724         (max_precision_type): Takes two types as arguments.
13725         (precision_for_value): New.
13726         (precision_for_interval): New.
13727         (gcc_type_for_interval): New.
13728         (gcc_type_for_value): New.
13729         (gcc_type_for_clast_term): New.
13730         (gcc_type_for_clast_red): New.
13731         (gcc_type_for_clast_bin): New.
13732         (gcc_type_for_clast_expr): Split up into several functions.
13733         (gcc_type_for_clast_eq): Rewritten.
13734         (compute_bounds_for_level): New.
13735         (compute_type_for_level_1): New.
13736         (compute_type_for_level): New.
13737         (gcc_type_for_cloog_iv): Removed.
13738         (gcc_type_for_iv_of_clast_loop): Rewritten.
13739         (graphite_create_new_loop): Compute the lower and upper bound types
13740         with gcc_type_for_clast_expr.
13741         (graphite_create_new_loop_guard): Same.
13742         (find_cloog_iv_in_expr): Removed.
13743         (compute_cloog_iv_types_1): Removed.
13744         (compute_cloog_iv_types): Removed.
13745         (gloog): Do not call compute_cloog_iv_types.
13746         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
13747         GBB_CLOOG_IV_TYPES.
13748         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
13749         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
13750         (GBB_CLOOG_IV_TYPES): Removed.
13751
13752 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
13753
13754         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
13755         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
13756         (detect_commutative_reduction): Same.
13757
13758 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
13759
13760         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
13761         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
13762         argument.
13763         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
13764         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
13765         (rewrite_commutative_reductions_out_of_ssa): Same.
13766         * passes.c (execute_function_todo): Call verify_ssa for every pass
13767         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
13768         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
13769         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
13770         with an extra argument.
13771         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
13772         verify_ssa only when the extra argument is true.
13773         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
13774         with an extra argument.
13775         (tree_transform_and_unroll_loop): Same.
13776
13777 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
13778
13779         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
13780         for all the passes of the LNO having LOOP_CLOSED_SSA.
13781         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
13782         * tree-loop-distribution.c (pass_loop_distribution): Same.
13783         * tree-pass.h (TODO_verify_loops): Removed.
13784         * tree-ssa-loop.c (pass_tree_loop_init): Same.
13785         (pass_lim): Same.
13786         (pass_tree_unswitch): Same.
13787         (pass_predcom): Same.
13788         (pass_vectorize): Same.
13789         (pass_linear_transform): Same.
13790         (pass_graphite_transforms): Same.
13791         (pass_iv_canon): Same.
13792         (pass_complete_unroll): Same.
13793         (pass_complete_unrolli): Same.
13794         (pass_parallelize_loops): Same.
13795         (pass_loop_prefetch): Same.
13796         (pass_iv_optimize): Same.
13797
13798 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
13799
13800         PR middle-end/32824
13801         * passes.c (init_optimization_passes): Move pass_lim before
13802         pass_copy_prop and pass_dce_loop.
13803
13804 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
13805
13806         PR target/43667
13807         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
13808         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
13809         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
13810         MULTI_* defines for 4 argument vpermil2p* builtins.
13811
13812 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
13813
13814         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
13815         * config/i386/i386.c (x86_maybe_negate_const_int): New.
13816         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
13817         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
13818         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
13819         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
13820         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
13821         Use x86_maybe_negate_const_int to output insn mnemonic.
13822         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
13823         check from instruction predicate.  Update comments.
13824         * config/i386/sync.md (sync_add<mode>): Use
13825         x86_maybe_negate_const_int to output insn mnemonic.
13826
13827 2010-04-06  Jan Hubicka  <jh@suse.cz>
13828
13829         PR tree-optimization/42906
13830         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
13831         IGNORE_SELF argument.  Set visited_control_parents for fully
13832         processed BBs.
13833         (find_obviously_necessary_stmts): Update call of
13834         mark_control_dependent_edges_necessary.
13835         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
13836
13837 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
13838
13839         * config/i386/i386.md: Remove comment about 'e' and 'E'
13840         operand modifier.
13841
13842 2010-04-06  Richard Guenther  <rguenther@suse.de>
13843
13844         PR tree-optimization/43627
13845         * tree-vrp.c (extract_range_from_unary_expr): Widenings
13846         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
13847         not varying.
13848
13849 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
13850
13851         * BASE-VER: Change to 4.6.0.
13852
13853         PR target/43638
13854         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
13855         handling.
13856
13857 2010-04-06  Richard Guenther  <rguenther@suse.de>
13858
13859         PR middle-end/43661
13860         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
13861
13862 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13863
13864         * doc/invoke.texi (Optimize Options): Document that LTO
13865         won't remove object access purely due to incompatible
13866         declarations.
13867
13868 2010-04-04  Matthias Klose  <doko@ubuntu.com>
13869
13870         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
13871         Initialize variable.
13872
13873 2010-04-03  Richard Guenther  <rguenther@suse.de>
13874
13875         PR middle-end/42509
13876         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
13877         require a non-NULL MEM_OFFSET.
13878
13879 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
13880
13881         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
13882         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
13883         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
13884         config/alpha/predicates.md, config/arm/arm.md,
13885         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
13886         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
13887         config/darwin9.h, config/darwin.c, config/darwin.h,
13888         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
13889         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
13890         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
13891         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
13892         config/mips/mips.md, config/mn10300/mn10300.c,
13893         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
13894         config/rs6000/aix.h, config/rs6000/dfp.md,
13895         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
13896         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
13897         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
13898         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
13899         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
13900         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
13901         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
13902         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
13903         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
13904         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
13905         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
13906         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
13907         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
13908         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
13909         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
13910         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
13911         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
13912         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
13913         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
13914         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
13915         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
13916         opt-functions.awk, opth-gen.awk, params.def, passes.c,
13917         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
13918         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
13919         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
13920         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
13921         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
13922         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
13923         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
13924         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
13925         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
13926         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
13927         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
13928         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
13929         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
13930         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
13931
13932 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13933
13934         PR other/43620
13935         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
13936         * aclocal.m4: Regenerate.
13937
13938 2010-04-02  Richard Guenther  <rguenther@suse.de>
13939
13940         PR tree-optimization/43629
13941         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
13942         if we have seen a constant value.
13943
13944 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
13945
13946         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
13947
13948 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
13949
13950         PR target/43469
13951         * arm.c (legitimize_tls_address): Adjust call to
13952         gen_tls_load_dot_plus_four.
13953         (arm_note_pic_base): New function.
13954         (arm_cannot_copy_insn_p): Use it.
13955         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
13956         constraint.
13957
13958 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13959
13960         PR bootstrap/43531
13961
13962         Revert:
13963         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13964
13965         * Makefile.in ($(out_object_file)): Depend on
13966         gt-$(basename $(notdir $(out_file))).h.
13967
13968 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
13969
13970         * config.gcc (lm32-*-rtems*): Add t-lm32.
13971
13972 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
13973
13974         * config.gcc: Add lm32-*-rtems*.
13975         * config/lm32/rtems.h: New file.
13976
13977 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
13978
13979         PR target/42609
13980         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
13981
13982 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
13983
13984         * dwarf2out.c (output_compilation_unit_header): For
13985         -gdwarf-4 use version 4 instead of version 3.
13986         (output_line_info): For version 4 and above emit additional
13987         maximum ops per insn header field.
13988         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
13989
13990         * dwarf2out.c (is_c_family, is_java): Remove.
13991         (lower_bound_default): New function.
13992         (add_bound_info, gen_descr_array_type_die): Use it.
13993
13994 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
13995
13996         PR debug/43325
13997         * dwarf2out.c (gen_variable_die): Allow debug info for variable
13998         re-declaration when it happens in a function.
13999
14000 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
14001
14002         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
14003         (cgraph_remove_function_insertion_hook): Same.
14004         (cgraph_call_function_insertion_hooks): Same.
14005
14006 2010-04-01  Richard Guenther  <rguenther@suse.de>
14007
14008         PR middle-end/43614
14009         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
14010         and TREE_THIS_VOLATILE.
14011         (copy_ref_info): Likewise.
14012         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
14013         * tree.c (build6_stat): Ignore side-effects of all but arg5
14014         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
14015         TARGET_MEM_REF.
14016
14017 2010-04-01  Richard Guenther  <rguenther@suse.de>
14018
14019         PR tree-optimization/43607
14020         * ipa-type-escape.c (check_call): Do not access non-existing
14021         arguments.
14022
14023 2010-04-01  Richard Guenther  <rguenther@suse.de>
14024
14025         PR middle-end/43602
14026         Revert
14027         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
14028                     Jack Howarth  <howarth@bromo.med.uc.edu>
14029
14030         * tree-profile.c (tree_init_ic_make_global_vars): Make static
14031         variables TLS.
14032
14033 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14034
14035         * doc/install.texi (Prerequisites): Document libelf usability on
14036         IRIX 5/6 and Solaris 2.
14037         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
14038         Update GNU as, GNU ld requirements.
14039         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
14040         Document Sun Studio compiler download.
14041         Update and simplify as, ld recommendations.
14042         (Specific, *-*-solaris2.7): Note obsoletion, removal.
14043
14044 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14045
14046         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
14047         with_tune_32 to pentium4.
14048
14049 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
14050
14051         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
14052
14053 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14054
14055         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
14056         obsoletion, removal.
14057         Update IDO URL.
14058         Document GNU as requirement.
14059         Update configure requirements.
14060         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
14061         Recomment IRIX 6.5.18+.
14062         Document IDF/IDL requirement.
14063         Document GNU as requirement.
14064         Document GNU ld bootstrap failure.
14065         Remove freeware.sgi.com reference.
14066
14067 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14068
14069         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
14070         UNIX V4.0, V5.0 obsoletion, removal.
14071         Remove --with-gc=simple reference.
14072         Update VM requirements during bootstrap.
14073         Remove -oldas bootstrap description.
14074         Update binutils reference.
14075         Remove comparison failure note.
14076
14077 2010-03-31  Richard Guenther  <rguenther@suse.de>
14078             Zdenek Dvorak  <ook@ucw.cz>
14079             Sebastian Pop  <sebastian.pop@amd.com>
14080
14081         PR middle-end/43464
14082         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
14083         with multiple arguments.
14084         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
14085
14086 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
14087
14088         * graphite-dependences.c (print_pddr): Call print_pdr with an
14089         extra argument.
14090         * graphite-poly.c (debug_pdr): Add an extra argument for the
14091         verbosity level.
14092         (print_pdr): Same.
14093         (print_pbb_domain): Same.
14094         (print_pbb): Same.
14095         (print_scop_context): Same.
14096         (print_scop): Same.
14097         (print_cloog): Same.
14098         (debug_pbb_domain): Same.
14099         (debug_pbb): Same.
14100         (print_pdrs): Same.
14101         (debug_pdrs): Same.
14102         (debug_scop_context): Same.
14103         (debug_scop): Same.
14104         (debug_cloog): Same.
14105         (print_scop_params): Same.
14106         (debug_scop_params): Same.
14107         (print_iteration_domain): Same.
14108         (print_iteration_domains): Same.
14109         (debug_iteration_domain): Same.
14110         (debug_iteration_domains): Same.
14111         (print_scattering_function): Same.
14112         (print_scattering_functions): Same.
14113         (debug_scattering_function): Same.
14114         (debug_scattering_functions): Same.
14115         * graphite-poly.h (debug_pdr): Update declaration.
14116         (print_pdr): Same.
14117         (print_pbb_domain): Same.
14118         (print_pbb): Same.
14119         (print_scop_context): Same.
14120         (print_scop): Same.
14121         (print_cloog): Same.
14122         (debug_pbb_domain): Same.
14123         (debug_pbb): Same.
14124         (print_pdrs): Same.
14125         (debug_pdrs): Same.
14126         (debug_scop_context): Same.
14127         (debug_scop): Same.
14128         (debug_cloog): Same.
14129         (print_scop_params): Same.
14130         (debug_scop_params): Same.
14131         (print_iteration_domain): Same.
14132         (print_iteration_domains): Same.
14133         (debug_iteration_domain): Same.
14134         (debug_iteration_domains): Same.
14135         (print_scattering_function): Same.
14136         (print_scattering_functions): Same.
14137         (debug_scattering_function): Same.
14138         (debug_scattering_functions): Same.
14139
14140 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
14141
14142         * graphite-poly.c (print_scattering_function_1): New.
14143         (print_scattering_function): Call it.
14144         (print_scop_params): Remove spaces at the end of lines.
14145         (print_cloog): New.
14146         (debug_cloog): New.
14147         * graphite-poly.h (print_cloog): Declared.
14148         (debug_cloog): Declared.
14149
14150 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
14151
14152         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
14153         in loop->header.
14154         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
14155         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
14156         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
14157         to switch between adding the IV bump in loop->latch or in loop->header.
14158
14159 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
14160
14161         * graphite-poly.c (print_scattering_function): Pretty print following
14162         the scoplib format.
14163         (print_pdr): Same.
14164         (print_pbb_domain): Same.
14165         (dump_gbb_cases): Same.
14166         (dump_gbb_conditions): Same.
14167         (print_pdrs): Same.
14168         (print_pbb): Same.
14169         (print_scop_params): Same.
14170         (print_scop_context): Same.
14171         (print_scop): Same.
14172         (print_pbb_body): New.
14173         (lst_indent_to): New.
14174         (print_lst): Start new lines with a #.
14175         * graphite-poly.h (pbb_bb): New.
14176         (pbb_index): Use pbb_bb.
14177         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
14178         disjuncts.
14179         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
14180
14181 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
14182
14183         * dwarf2out.c (size_of_die): For -gdwarf-4 use
14184         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
14185         and 0 instead of 1 for dw_val_class_flag.
14186         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
14187         dw_val_class_range_list, dw_val_class_loc_list,
14188         dw_val_class_lineptr and dw_val_class_macptr, use
14189         DW_FORM_flag_present for dw_val_class_flag and
14190         DW_FORM_exprloc for dw_val_class_loc.
14191         (output_die): For -gdwarf-4 print dw_val_class_loc
14192         size as uleb128 instead of 1 or 2 bytes and don't print
14193         anything for dw_val_class_flag.
14194
14195         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
14196         instead of cselib_lookup following by tweaking locs->setting_insn.
14197
14198         PR bootstrap/43596
14199         * cselib.c (cselib_process_insn): Clear cselib_current_insn
14200         even before returning from label, setjmp call or volatile asm
14201         handling.
14202
14203 2010-03-31  Richard Guenther  <rguenther@suse.de>
14204
14205         PR middle-end/43600
14206         * cgraphunit.c (cgraph_output_in_order): Do not allocate
14207         temporary data on stack.
14208
14209 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14210
14211         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
14212         (PUSHSECTION_ASM_OP): Remove.
14213         (POPSECTION_ASM_OP): Remove.
14214         (PUSHSECTION_FORMAT): Remove.
14215         * config/sol2.h (PUSHSECTION_FORMAT): Define.
14216         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
14217         * config/sol2.c (solaris_output_init_fini): Use it.
14218
14219 2010-03-31  Jie Zhang  <jie@codesourcery.com>
14220
14221         PR 43574
14222         * opt-functions.awk (var_type_struct): Use signed char type
14223         for simple variables.
14224
14225 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14226
14227         * config/sol2.c: Include output.h.
14228         (solaris_assemble_visibility): New function.
14229         * config/t-sol2 (sol2.o): Add output.h dependency.
14230         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
14231         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
14232         Redefine.
14233
14234 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
14235
14236         PR target/43580
14237         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
14238         V2SImode or XFmode on PRE_DEC.
14239
14240         PR debug/43557
14241         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
14242         BLKmode.
14243
14244 2010-03-31  Jie Zhang  <jie@codesourcery.com>
14245
14246         PR 43562
14247         * reload.h (caller_save_initialized_p): Declare.
14248         * toplev.c (backend_init_target): Don't call
14249         init_caller_save but set caller_save_initialized_p to false.
14250         * caller-save.c (caller_save_initialized_p): Define.
14251         (init_caller_save): Check caller_save_initialized_p.
14252         * ira.c (ira): Call init_caller_save if flag_caller_saves.
14253
14254 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14255
14256         PR target/39048
14257         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
14258         and soft-fp/t-softfp to tmake_file.
14259         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
14260         (LIBGCC2_TF_CEXT): Define.
14261         (TF_SIZE): Define.
14262
14263 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
14264
14265         PR debug/42977
14266         * cselib.c (n_useless_values): Document handling of debug locs.
14267         (n_useless_debug_values, n_debug_values): New variables.
14268         (new_elt_loc_list): Don't add to debug values, keep count.
14269         (promote_debug_loc): New.
14270         (cselib_reset_table): Zero new variables.
14271         (entry_and_rtx_equal_p): Promote debug locs.
14272         (discard_useless_locs): Increment n_useless_debug_values for
14273         debug values.
14274         (remove_useless_values): Adjust n_useless_values and n_debug_values
14275         with n_useless_debug_values.
14276         (add_mem_for_addr): Promote debug locs.
14277         (cselib_lookup_mem): Likewise.
14278         (cselib_lookup_addr): Renamed to...
14279         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
14280         (cselib_log_lookup): ... this.  Turn into...
14281         (cselib_lookup_addr): ... new wrapper.
14282         (cselib_lookup_from_insn): New.
14283         (cselib_invalidate_regno): Increment n_useless_debug_values for
14284         debug values.
14285         (cselib_invalidate_mem): Likewise.
14286         (cselib_process_insn): Take n_deleted and n_debug_values into
14287         account to guard remove_useless_value call.
14288         (cselib_finish): Zero n_useless_debug_values.
14289         * cselib.h (cselib_lookup_from_insn): Declare.
14290         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
14291         (sched_analyze_2): Likewise.
14292
14293 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
14294
14295         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
14296         functions.
14297         (adjust_mems): Replace narrowing SUBREG of expression containing
14298         just PLUS, MINUS, MULT and ASHIFT of registers and constants
14299         with operations in the narrower mode.
14300
14301         PR debug/43593
14302         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
14303         regs_invalidated_by_call instead all call_used_reg_set registers.
14304
14305 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
14306
14307         PR middle-end/43430
14308         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
14309         pointer comparisons with types_compatible_p.
14310         * tree-vect-stmts.c (vectorizable_call): Same.
14311         (vectorizable_condition): Same.
14312
14313 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14314
14315         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
14316         stack check if the mask would be zero.
14317
14318 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
14319             Jack Howarth  <howarth@bromo.med.uc.edu>
14320
14321         * tree-profile.c (tree_init_ic_make_global_vars): Make static
14322         variables TLS.
14323
14324 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
14325
14326         PR other/25232
14327         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
14328         and __unordtf2.
14329         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
14330         Include ___unordxf2 and ___unordtf2.
14331         * config/i386/libgcc-glibc.ver: Do not define inheritance from
14332         GCC_4.4.0 here.
14333
14334 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
14335
14336         * config/lm32/t-lm32: New file.
14337         * config.gcc: Use the above file when targetting lm32.
14338
14339 2010-03-28  Duncan Sands  <baldrick@free.fr>
14340
14341         * Makefile.in (PLUGIN_HEADERS): Add except.h.
14342
14343 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
14344
14345         PR middle-end/43431
14346         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
14347         Improve vectorization cost model diagnostic.
14348
14349 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
14350
14351         PR middle-end/43436
14352         * tree-vect-data-refs.c (vect_analyze_data_refs): When
14353         compute_data_dependences_for_loop returns false, early exit
14354         and output an extra diagnostic for the failed data reference
14355         analysis.
14356
14357 2010-03-29  Richard Guenther  <rguenther@suse.de>
14358
14359         PR tree-optimization/43560
14360         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
14361         (can_sm_ref_p): Treat stores to readonly locations as trapping.
14362
14363 2010-03-29  Jie Zhang  <jie@codesourcery.com>
14364
14365         PR 43564
14366         * toplev.c (process_options): Set optimization_default_node
14367         and optimization_current_node.
14368         * opts.c (decode_options): Don't set optimization_default_node
14369         and optimization_current_node.
14370
14371 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
14372
14373         * config/rtems.h: Abandon -qrtems_debug.
14374
14375 2010-03-28  Jan Hubicka  <jh@suse.cz>
14376
14377         PR tree-optimization/43505
14378         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
14379         map should not be copied.
14380
14381 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14382
14383         PR middle-end/41674
14384         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
14385         cdtors, set DECL_PRESERVE_P.
14386         * ipa.c (cgraph_externally_visible_p): Return true if declaration
14387         should be preseved.
14388
14389 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
14390
14391         PR tree-optimization/43528
14392         * stor-layout.c (place_field): Check that constant fits into
14393         unsigned HWI when skipping calculation of MS bitfield layout.
14394
14395 2010-03-27  Jan Hubicka  <jh@suse.cz>
14396
14397         PR middle-end/43391
14398         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
14399         notice_global_symbol work.
14400
14401 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
14402
14403         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
14404         instead of dwarf2out_decl.
14405         (struct var_loc_node): Remove section_label field.
14406         (dwarf2out_function_decl): New function.
14407         (dwarf2out_var_location): Don't set section_label field.
14408         (dwarf2out_begin_function): Don't empty decl_loc_table here.
14409
14410 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
14411
14412         PR tree-optimization/43544
14413         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
14414         First argument for builtin vectorized function hook is now a
14415         tree to be able to distinguish between machine specific and
14416         standard builtins.
14417         * targhooks.c (default_builtin_vectorized_function): Ditto.
14418         * targhooks.h (default_builtin_vectorized_function): Ditto.
14419         * target.h (struct gcc_target): Ditto.
14420         * tree-vect-stmts.c (vectorizable_function): Ditto.
14421         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
14422         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
14423         Ditto.
14424
14425 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
14426
14427         PR c/43381
14428         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
14429         nested binding iff it is a FUNCTION_DECL.
14430         (store_parm_decls_newstyle): Pass nested=true to bind for
14431         FUNCTION_DECLs amongst parameters.
14432
14433 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
14434
14435         * var-tracking.c (vt_expand_loc_callback): Don't run
14436         cselib_expand_value_rtx_cb in dummy mode if
14437         cselib_dummy_expand_value_rtx_cb returned false.
14438
14439         * var-tracking.c (emit_note_insn_var_location): For one part
14440         notes with offset 0, don't add EXPR_LIST around the location.
14441         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
14442         add_location_or_const_value_attribute): Adjust for that change.
14443
14444         PR debug/43540
14445         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
14446         into first operand and location into second.
14447         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
14448         dw_cfi_oprnd_loc for DW_CFA_expression.
14449         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
14450         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
14451         assume first argument is regnum and second argument is location.
14452
14453 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
14454
14455         PR target/42113
14456         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
14457         of scratch register to DImode.  Split to DImode comparison operator.
14458         Use SImode subreg of scratch register in the multiplication.
14459         (*cmp_sadd_sidi): Ditto.
14460         (*cmp_ssub_si): Ditto.
14461         (*cmp_ssub_sidi): Ditto.
14462
14463 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
14464
14465         PR target/43524
14466         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
14467         Remove invalid assert and wrong comment.
14468
14469 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
14470
14471         PR debug/43516
14472         * flags.h (final_insns_dump_p): New extern.
14473         * final.c (final_insns_dump_p): New variable.
14474         (rest_of_clean_state): Set it before -fdump-final-insns=
14475         dumping, clear afterwards.
14476         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
14477         MEM_ALIAS_SET on MEMs.
14478
14479 2010-03-26  David S. Miller  <davem@davemloft.net>
14480
14481         * configure.ac: Fix sparc GOTDATA_OP bug check.
14482         * configure: Rebuild.
14483
14484 2010-03-26  Alan Modra  <amodra@gmail.com>
14485
14486         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
14487
14488 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14489
14490         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
14491         TLS_SECTION_ASM_FLAG.
14492
14493 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
14494
14495         PR bootstrap/43511
14496         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
14497         Clear first_function_block_is_cold.
14498
14499         PR c/43385
14500         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
14501         argument if the argument is truth_value_p.
14502
14503 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
14504
14505         * config/rs6000/constraints.md: Update copyright year for my changes.
14506
14507         PR target/43484
14508         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
14509         used in reg+reg addressing, swap registers.
14510
14511 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
14512
14513         PR debug/43293
14514         * target.h (struct gcc_target): Add code_end hook.
14515         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
14516         if not yet defined.
14517         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
14518         * toplev.c (compile_file): Call targetm.asm_out.code_end
14519         hook before unwind info/debug info output.
14520         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
14521         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
14522         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
14523         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
14524         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
14525         * config/i386/i386.c (ix86_file_end): Renamed to...
14526         (ix86_code_end): ... this.  Make static.  Don't call
14527         file_end_indicate_exec_stack.  Emit unwind info using
14528         final_start_function/final_end_function.
14529         (darwin_x86_file_end): Remove.
14530         (TARGET_ASM_CODE_END): Define.
14531         * config/i386/i386.h (TARGET_ASM_FILE_END,
14532         NEED_INDICATE_EXEC_STACK): Don't define.
14533         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
14534         (TARGET_ASM_FILE_END): Define to darwin_file_end.
14535         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
14536         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
14537
14538         PR target/43498
14539         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
14540         at the beginning and final_end_function at the end.
14541         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
14542
14543 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14544
14545         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
14546         and Sun as TLS syntax.
14547         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
14548         * configure: Regenerate.
14549         * config.in: Regenerate.
14550         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
14551         (default_elf_asm_named_section): Use it.
14552         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
14553         (i386_output_dwarf_dtprel): Likewise.
14554         (output_addr_const_extra): Likewise.
14555         (output_pic_addr_const): Lowercase @GOTTPOFF.
14556         (output_addr_const_extra): Likewise.
14557         (output_pic_addr_const): Lowercase @GOTNTPOFF.
14558         (output_addr_const_extra): Likewise.
14559         (output_pic_addr_const): Lowercase @INDNTPOFF.
14560         (output_addr_const_extra): Likewise.
14561         (output_pic_addr_const): Lowercase @NTPOFF.
14562         (output_addr_const_extra): Likewise.
14563         (output_pic_addr_const): Lowercase @TPOFF.
14564         (output_addr_const_extra): Likewise.
14565         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
14566         (*tls_global_dynamic_64): Likewise.
14567         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
14568         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
14569
14570         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
14571         (ASM_OUTPUT_TLS_COMMON): Use it.
14572         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
14573
14574         PR target/38118
14575         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
14576         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
14577         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
14578         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
14579         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
14580         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
14581
14582 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14583
14584         * config/i386/i386.c (override_options): Don't accept
14585         -mtls-dialect=sun any longer.
14586         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
14587         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
14588         (*tls_local_dynamic_base_32_sun): Likewise.
14589         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
14590
14591 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
14592
14593         PR debug/43508
14594         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
14595         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
14596
14597         PR debug/43479
14598         * ira.c (adjust_cleared_regs): New function.
14599         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
14600
14601         PR debug/19192
14602         PR debug/43479
14603         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
14604         from gimple_block.
14605         * expr.c (expand_expr_real): Restore previous
14606         curr_insn_source_location and curr_insn_block after
14607         expand_expr_real_1 call.
14608         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
14609         instead of expand_expr_real_1.
14610
14611 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
14612
14613         PR rtl-optimization/43413
14614         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
14615         hard regs too.
14616
14617 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
14618
14619         PR target/43348
14620         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
14621         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
14622
14623 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
14624
14625         * config/i386/i386.c (ix86_target_string): Add -mfma.
14626         Fix a typo in comment.
14627
14628 2010-03-22  Mike Stump  <mikestump@comcast.net>
14629
14630         PR target/23071
14631         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
14632         Don't overly align based upon packed packed fields.
14633
14634 2010-03-22  Jason Merrill  <jason@redhat.com>
14635
14636         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
14637         Use () rather than [], and move before the element type.
14638
14639 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14640
14641         * doc/configfiles.texi (Configuration Files): Removed
14642         fixinc/Makefile*, intl/Makefile.*.
14643         * doc/makefile.texi: Fixed markup. Abstract from version
14644         control system used.
14645         (Makefile): Removed obsolete gcc/java/parse.y example.
14646         * doc/sourcebuild.texi: Likewise.
14647         (Top Level): Added config, gnattools, libdecnumber, libgcc,
14648         libgomp, libssp.  Removed fastjar.
14649         (Miscellaneous Docs): Clarify location.
14650         Added COPYING3, COPYING3.LIB.
14651         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
14652
14653 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14654
14655         PR target/38085
14656         * config/i386/i386.c (x86_function_profiler)
14657         [!NO_PROFILE_COUNTERS]: Fix typo.
14658         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
14659         instead of callq.
14660
14661 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
14662             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14663
14664         * doc/sourcebuild.texi (Test Directives): Split into six
14665         subsections, with most of the current text in new subsections
14666         Directives, Selectors, and Final Actions.
14667         (Directives): Split list of test directives into multiple
14668         subsubsections.
14669         (Selectors): Describe use and syntax of selectors.
14670         (Effective-Target Keywords): Describe all existing keywords.
14671         (Add Options): Describe features for dg-add-options.
14672         (Require Support): Describe variants of dg-require-support.
14673         (Final Actions): Describe commands to use in dg-final.
14674
14675 2010-03-22  Michael Matz  <matz@suse.de>
14676
14677         PR middle-end/43475
14678         * recog.c (validate_replace_rtx_group): Replace also in
14679         REG_EQUAL and REG_EQUIV notes.
14680
14681 2010-03-22  Richard Guenther  <rguenther@suse.de>
14682
14683         PR tree-optimization/43390
14684         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
14685         sure vector extracts are type correct.
14686
14687 2010-03-22  Richard Guenther  <rguenther@suse.de>
14688
14689         PR middle-end/40106
14690         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
14691         x * sqrt (x) even when optimizing for size if the target
14692         has native support for sqrt.
14693
14694 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
14695
14696         * varasm.c (make_decl_rtl_for_debug): Also clear
14697         flag_mudflap for the duration of make_decl_rtl call.
14698
14699         PR debug/43443
14700         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
14701         locs from preserved VALUEs.
14702
14703 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14704
14705         PR middle-end/42718
14706         * pa.md (movmemsi): Set align to one if zero.
14707         (movmemdi): Likewise.
14708
14709 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
14710
14711         PR target/42321
14712         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
14713         with their corresponding prologue pushes.
14714
14715 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
14716
14717         PR target/43156
14718         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
14719         at the begining or end.
14720         (spu_expand_epilogue): Likewise.
14721
14722 2010-03-20  Richard Guenther  <rguenther@suse.de>
14723
14724         PR rtl-optimization/43438
14725         * combine.c (make_extraction): Properly zero-/sign-extend an
14726         extraction of the low part of a CONST_INT.  Also handle
14727         CONST_DOUBLE.
14728
14729 2010-03-19  Mike Stump  <mikestump@comcast.net>
14730
14731         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
14732         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
14733         (override_options): Use SUBTARGET32_DEFAULT_CPU.
14734
14735 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
14736
14737         PR c/43211
14738         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
14739         an error.
14740
14741 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
14742
14743         PR rtl-optimization/42258
14744         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
14745         use that may match DEF.
14746
14747         PR target/40697
14748         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
14749         the cost of loading the constant rather than assuming
14750         COSTS_N_INSNS (1).
14751         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
14752         outer code is AND, do the same tests as the andsi3 expander and
14753         return COSTS_N_INSNS (1) if and is cheap.
14754
14755         * optabs.c (avoid_expensive_constant): Fix formatting.
14756
14757 2010-03-19  Michael Matz  <matz@suse.de>
14758
14759         PR c++/43116
14760         * attribs.c (decl_attributes): When rebuilding a function pointer
14761         type use the same qualifiers as the original pointer type.
14762
14763 2010-03-19  Martin Jambor  <mjambor@suse.cz>
14764
14765         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
14766         and is_gimple_ip_invariant_address.
14767
14768 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14769
14770         Revert
14771         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14772
14773         * config/arm/arm.c (arm_override_options): Turn off
14774         flag_dwarf2_cfi_asm for AAPCS variants.
14775
14776 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14777
14778         PR target/43399
14779         * config/arm/arm.c (emit_multi_reg_push): Update comments.
14780         Use PRE_MODIFY instead of PRE_DEC.
14781         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
14782         (vfp_emit_fstmd): Likewise.
14783
14784 2010-03-19  Michael Matz  <matz@suse.de>
14785
14786         PR target/43305
14787         * builtins.c (expand_builtin_interclass_mathfn,
14788         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
14789         if that fails.
14790
14791 2010-03-19  Richard Guenther  <rguenther@suse.de>
14792
14793         PR tree-optimization/43415
14794         * tree-ssa-pre.c (phi_translate): Split out worker to ...
14795         (phi_translate_1): ... this.
14796         (phi_translate): Move all caching here.  Cache all NARY
14797         and REFERENCE translations.
14798
14799 2010-03-19  David S. Miller  <davem@davemloft.net>
14800
14801         With help from Eric Botcazou.
14802         * config/sparc/sparc.c: Include dwarf2out.h.
14803         (emit_pic_helper): Delete.
14804         (pic_helper_symbol_name): Delete.
14805         (pic_helper_emitted_p): Delete.
14806         (pic_helper_needed): New.
14807         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
14808         (get_pc_thunk_name): New.
14809         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
14810         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
14811         Set pic_helper_needed to true.  Don't call emit_pic_helper.
14812         (sparc_expand_prologue): Update load_pic_register call.
14813         (sparc_output_mi_thunk): Likewise.
14814         (sparc_file_end): Emit a hidden comdat symbol for the PIC
14815         thunk if possible.  Output CFI information as needed.
14816
14817 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14818             Jack Howarth  <howarth@bromo.med.uc.edu>
14819
14820         PR target/36399
14821         * config/i386/i386.h: Fix ABI on darwin x86-32.
14822
14823 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
14824
14825         * tree.h: Declare make_decl_rtl_for_debug.
14826         * varasm.c (make_decl_rtl_for_debug): New.
14827         * dwarf2out.c (rtl_for_decl_location): Call it.
14828         * cfgexpand.c (expand_debug_expr): Call it.
14829
14830 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
14831
14832         PR bootstrap/43399
14833         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
14834         mem_mode.
14835
14836         PR bootstrap/43403
14837         * var-tracking.c (vt_init_cfa_base): Do nothing if
14838         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
14839
14840 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
14841
14842         PR debug/42873
14843         * var-tracking.c (canonicalize_vars_star): New.
14844         (dataflow_post_merge_adjust): Use it.
14845
14846 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
14847
14848         PR debug/43058
14849         * var-tracking.c (non_suitable_const): New function.
14850         (add_uses): For DEBUG_INSNs with constants, don't record any
14851         value, instead just the constant value itself.
14852         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
14853         is not VAR_LOC_UNKNOWN_P, set var to the constant.
14854         (emit_notes_in_bb): Likewise.
14855         (emit_note_insn_var_location): For onepart variables if
14856         cur_loc is a VOIDmode constant, use DECL_MODE.
14857
14858 2010-03-18  Martin Jambor  <mjambor@suse.cz>
14859
14860         PR middle-end/42450
14861         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
14862         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
14863         all non-clones.  Moved call redirection...
14864         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
14865         (cgraph_materialize_all_clones): Dispose of all
14866         combined_args_to_skip bitmaps.
14867         (verify_cgraph_node): Do not check for edges pointing to wrong
14868         nodes in inline clones.
14869         * tree-inline.c (copy_bb): Call
14870         cgraph_redirect_edge_call_stmt_to_callee.
14871         * ipa.c (cgraph_remove_unreachable_nodes): Call
14872         cgraph_node_remove_callees even when there are used clones.
14873
14874 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
14875
14876         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
14877
14878 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
14879
14880         PR target/43383
14881         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
14882         for 32bit.
14883
14884 2010-03-18  Michael Matz  <matz@suse.de>
14885
14886         PR middle-end/43419
14887         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
14888         into sqrt(x) if we need to preserve signed zeros.
14889
14890 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
14891             Eric Botcazou  <ebotcazou@adacore.com>
14892
14893         PR rtl-optimization/43360
14894         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
14895         note if we don't know its invariant status.
14896
14897 2010-03-18  Michael Matz  <matz@suse.de>
14898
14899         PR tree-optimization/43402
14900         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
14901         PHI chains of ssa names registered for update.
14902
14903 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
14904
14905         PR target/42427
14906         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
14907         non-offsettable and pre_modify update addressing.
14908         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
14909         and "2" alternatives "#".
14910         (*movdd_softfloat32): Make all alternatives "#";
14911         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
14912         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
14913         (*movdf_softfloat32): Make all alternatives "#";
14914         (movdi): Use the new DIFD mode iterator to create a common splitter
14915         for movdi, movdf and movdd patterns.
14916
14917 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
14918
14919         * common.opt (dumpdir): Remove redundant tab.
14920
14921 2010-03-17  Martin Jambor  <mjambor@suse.cz>
14922
14923         PR tree-optimization/43347
14924         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
14925         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
14926
14927 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
14928
14929         PR rtl-optimization/42216
14930         * regrename.c (create_new_chain): New function, broken out from...
14931         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
14932         appending a use to an empty chain.
14933         (build_def_use): Remove previous changes that convert OP_INOUT to
14934         OP_OUT operands; instead detect the case where an OP_INOUT operand
14935         uses a previously untracked register and create an empty chain for it.
14936
14937 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14938
14939         * doc/extend.texi (Function Attributes): Rewrite unfinished
14940         sentence in ms_abi documentation.
14941
14942 2010-03-17  Alan Modra  <amodra@gmail.com>
14943
14944         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
14945         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
14946         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
14947         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
14948
14949 2010-03-16  Richard Henderson  <rth@redhat.com>
14950
14951         PR middle-end/43365
14952         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
14953         (lower_try_finally): Save and restore eh_seq around the expansion
14954         of the try-finally.
14955
14956 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
14957
14958         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
14959         statements before splitting block.
14960
14961 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14962
14963         * doc/sourcebuild.texi (Testsuites): Fix markup.
14964         Use pathnames relative to gcc/testsuite.
14965         (Test Directives): Move description of how timeout is determined.
14966         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
14967         (C Tests): Correct gcc.misc-tests directory.
14968         Framework tests now live in gcc.test-framework.
14969
14970 2010-03-16  Richard Guenther  <rguenther@suse.de>
14971
14972         PR middle-end/43379
14973         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
14974         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
14975
14976 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
14977             Alexandre Oliva  <aoliva@redhat.com>
14978
14979         PR tree-optimization/42917
14980         * lambda-code.c (remove_iv): Skip debug statements.
14981         (lambda_loopnest_to_gcc_loopnest): Likewise.
14982         (not_interesting_stmt): Debug statements are not interesting.
14983
14984 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
14985
14986         PR debug/43051
14987         PR debug/43092
14988         * cselib.c (cselib_preserve_constants,
14989         cfa_base_preserved_val): New static variables.
14990         (preserve_only_constants): New function.
14991         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
14992         clear its REG_VALUES.  If cselib_preserve_constants, don't
14993         empty the whole hash table, but preserve there VALUEs with constants,
14994         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
14995         (cselib_preserve_cfa_base_value): New function.
14996         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
14997         (cselib_init): Change argument to int bitfield.  Set
14998         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
14999         is in it.
15000         (cselib_finish): Clear cselib_preserve_constants and
15001         cfa_base_preserved_val.
15002         * cselib.h (enum cselib_record_what): New enum.
15003         (cselib_init): Change argument to int.
15004         (cselib_preserve_cfa_base_value): New prototype.
15005         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
15006         * dse.c (dse_step1): Likewise.
15007         * cfgcleanup.c (thread_jump): Likewise.
15008         * sched-deps.c (sched_analyze): Likewise.
15009         * gcse.c (local_cprop_pass): Likewise.
15010         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
15011         If FN is non-NULL, call the callback always and whenever it returns
15012         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
15013         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
15014         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
15015         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
15016         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
15017         * var-tracking.c: Include recog.h.
15018         (bb_stack_adjust_offset): Remove.
15019         (vt_stack_adjustments): Don't call it, instead just gather the
15020         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
15021         (adjust_stack_reference): Remove.
15022         (compute_cfa_pointer): New function.
15023         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
15024         (struct adjust_mem_data): New type.
15025         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
15026         functions.
15027         (get_address_mode): New function.
15028         (replace_expr_with_values): Use it.
15029         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
15030         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
15031         (adjust_sets): Remove.
15032         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
15033         Use get_address_mode.
15034         (get_adjusted_src): Remove.
15035         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
15036         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
15037         (add_with_sets): Don't call adjust_sets.
15038         (fp_setter, vt_init_cfa_base): New functions.
15039         (vt_initialize): Change return type to bool.  Move most of pool etc.
15040         initialization to the beginning of the function from end.  Pass
15041         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
15042         If !frame_pointer_needed, call vt_stack_adjustment before mos
15043         vector is filled, call vt_init_cfa_base if argp/framep has been
15044         eliminated to sp.  If frame_pointer_needed and argp/framep has
15045         been eliminated to hard frame pointer, set
15046         hard_frame_pointer_adjustment and call vt_init_cfa_base after
15047         encountering fp setter in the prologue.  For MO_ADJUST, call
15048         log_op_type before pusing the op into mos vector, not afterwards.
15049         Call adjust_insn before cselib_process_insn/add_with_sets,
15050         call cancel_changes (0) afterwards.
15051         (variable_tracking_main_1): Adjust for vt_initialize calling
15052         vt_stack_adjustments and returning whether it succeeded or not.
15053
15054 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
15055
15056         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
15057         debug statements.
15058
15059 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
15060
15061         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
15062         has been set.
15063         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
15064         drap_reg has not been set.
15065
15066 2010-03-15  Michael Matz  <matz@suse.de>
15067
15068         PR middle-end/43300
15069         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
15070         use it to expand block copies.
15071         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
15072         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
15073         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
15074
15075 2010-03-15  Richard Guenther  <rguenther@suse.de>
15076
15077         PR tree-optimization/43367
15078         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
15079         elimination check.
15080
15081 2010-03-15  Richard Guenther  <rguenther@suse.de>
15082
15083         PR tree-optimization/43317
15084         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
15085
15086 2010-03-15  Martin Jambor  <mjambor@suse.cz>
15087
15088         PR tree-optimization/43141
15089         * tree-sra.c (create_abstract_origin): New function.
15090         (modify_function): Call create_abstract_origin.
15091
15092 2010-03-15  Chris Demetriou  <cgd@google.com>
15093
15094         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
15095         wasn't copied.
15096
15097 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
15098
15099         PR middle-end/43354
15100         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
15101         call insert_out_of_ssa_copy for default definitions.
15102
15103 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
15104
15105         * graphite-clast-to-gimple.c (my_long_long): Defined.
15106         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
15107         * graphite-sese-to-poly.c (my_long_long): Defined.
15108         (scop_ivs_can_be_represented): Use it.
15109
15110 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
15111
15112         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
15113         graphite-max-bbs-per-function, and loop-block-tile-size.
15114         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
15115         with "maximum".
15116         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
15117
15118 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
15119
15120         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
15121         forward declaration.
15122         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
15123         (add_upper_bounds_from_estimated_nit): New.
15124         (build_loop_iteration_domains): Use it.
15125
15126 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
15127
15128         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
15129
15130 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
15131
15132         PR middle-end/43306
15133         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
15134         should be an INTEGER_CST.  Also handle CASE_CONVERT.
15135
15136 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
15137
15138         * graphite.c (graphite_initialize): To bound the number of bbs per
15139         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
15140         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
15141         * doc/invoke.texi: Document it.
15142
15143 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
15144
15145         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
15146         * graphite-sese-to-poly.h (build_poly_scop): Same.
15147
15148 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
15149
15150         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
15151         the number of parameters in the scop.  Use as an upper bound
15152         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
15153         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
15154         * doc/invoke.texi: Document it.
15155
15156 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
15157
15158         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
15159         * doc/c-tree.texi: Remove.
15160         * doc/generic.texi: Merge c-tree.texi here.
15161         * doc/gccint.texi (Trees): Remove menu entry.
15162         (c-tree.texi): Remove @include.
15163         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
15164         * doc/languages.texi (Reading RTL): Ditto.
15165
15166 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
15167
15168         PR target/42869
15169         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
15170
15171 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
15172
15173         PR middle-end/42431
15174         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
15175         code added to work around reload clobbering CONST insns.
15176
15177 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
15178
15179         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
15180         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
15181         (cselib_preserve_only_values): Remove retain argument, don't
15182         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
15183         * cselib.h (cselib_preserve_only_values): Remove retain argument.
15184         * var-tracking.c (micro_operation): Move insn field before union.
15185         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
15186         (struct variable_tracking_info_def): Remove n_mos field, change
15187         mos into a vector of micro_operations.
15188         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
15189         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
15190         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
15191         changing into a vector.
15192         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
15193         come before all other uops generated by add_stores.
15194         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
15195         argument removal.
15196         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
15197         a vector.  Run just one pass over the bbs instead of separate counting
15198         and computation phase.
15199         (vt_finalize): Free VTI (bb)->mos vector instead of array.
15200
15201         PR debug/43329
15202         * tree-inline.c (remap_decls): Put old_var rather than origin_var
15203         into *nonlocalized_list vector.
15204         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
15205         even if origin is non-NULL.
15206         (gen_variable_die): Likewise.
15207         (process_scope_var): Don't change origin.
15208         (gen_decl_die): Likewise.
15209         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
15210         before adding new edges instead of after it, fix moving over
15211         debug stmts.
15212
15213 2010-03-11  David S. Miller  <davem@davemloft.net>
15214
15215         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
15216         of four.
15217         * configure: Rebuild.
15218
15219 2010-03-11  Martin Jambor  <mjambor@suse.cz>
15220
15221         PR tree-optimization/43257
15222         * tree.c (assign_assembler_name_if_neeeded): New function.
15223         (free_lang_data_in_cgraph): Assembler name assignment moved to the
15224         above new function.
15225         * tree.h (assign_assembler_name_if_neeeded): Declare.
15226         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
15227         the function if needed.
15228
15229 2010-03-11  Chris Demetriou  <cgd@google.com>
15230
15231         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
15232         include/stdint-gcc.h, and include/stdint.h world-readable.
15233
15234 2010-03-11  Richard Guenther  <rguenther@suse.de>
15235
15236         PR tree-optimization/43255
15237         * tree-vrp.c (process_assert_insertions_for): Do not insert
15238         asserts for trivial conditions.
15239
15240 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15241
15242         PR tree-optimization/43280
15243         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
15244         generation.  Move calculation of size out of the if branch.
15245         (find_bswap): Modify compare number generation.
15246
15247 2010-03-11  Richard Guenther  <rguenther@suse.de>
15248
15249         PR lto/43200
15250         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
15251         (input_gimple_stmt): Fixup handled component types during
15252         operand read.  Also fix up decls in ADDR_EXPRs.
15253
15254 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
15255
15256         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
15257         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
15258
15259 2010-03-10  Jan Hubicka  <jh@suse.cz>
15260
15261         PR c/43288
15262         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
15263         * varasm.c (get_variable_section): Don't do that here...
15264         (make_decl_rtl): ... and here.
15265         (do_assemble_alias): Produce decl RTL.
15266         (assemble_alias): Likewise.
15267
15268 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
15269
15270         PR debug/43290
15271         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
15272         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
15273         of fde->vdrap_reg.
15274         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
15275         (based_loc_descr): Only express drap or vdrap regno based expressions
15276         using DW_OP_fbreg when not optimizing.
15277         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
15278         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
15279         REG_CFA_SET_VDRAP note.
15280
15281 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
15282
15283         PR tree-optimization/43236
15284         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
15285         error in calculation of base address in reverse iteration case.
15286         (generate_builtin): Take number of latch executions if the statement
15287         is in the latch.
15288
15289 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
15290
15291         PR middle-end/42859
15292         * tree-eh.c: Include pointer-set.h.
15293         (lower_eh_dispatch): Filter out duplicate case labels and
15294         remove the unneeded edge when the label is unused.  Return
15295         true when some edges are removed.
15296         (execute_lower_eh_dispatch): When any lowering resulted in
15297         removing an edge, also delete unreachable blocks.
15298
15299 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
15300
15301         PR bootstrap/43287
15302         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15303         UNSPEC_MACHOPIC_OFFSET.
15304
15305 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
15306
15307         PR target/43294
15308         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
15309         (m68k_delegitimize_address): New function.
15310
15311 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
15312
15313         PR debug/43299
15314         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
15315
15316         PR debug/43299
15317         * var-tracking.c (adjust_sets): New function.
15318         (count_with_sets, add_with_sets): Use it.
15319         (get_adjusted_src): New inline function.
15320         (add_stores): Use it.
15321
15322         PR debug/43304
15323         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
15324         call cselib_dummy_expand_value_rtx_cb instead of
15325         cselib_expand_value_rtx_cb.
15326
15327         PR debug/43293
15328         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
15329         * config/i386/i386.c: Include debug.h and dwarf2out.h.
15330         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
15331         and .cfi_endproc around the pic thunks.
15332         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
15333         all queued unwind info register saves are saved before the call.
15334         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
15335         considered as sp-=4 for unwind info and the pop as sp+=4 which
15336         also clobbers dest, but doesn't actually restore it.
15337
15338         PR debug/43290
15339         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
15340         RTX_FRAME_RELATED_P.
15341
15342 2010-03-09  Jie Zhang  <jie@codesourcery.com>
15343
15344         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
15345         whitespaces in output template.
15346
15347 2010-03-09  Jie Zhang  <jie@codesourcery.com>
15348
15349         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
15350         out array boundary.
15351
15352 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
15353
15354         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
15355         builtins.exp in a separate job.
15356
15357 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15358
15359         * graphite-sese-to-poly.c (add_param_constraints): Use
15360         lower_bound_in_type and upper_bound_in_type.
15361
15362 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15363
15364         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
15365         instead of unsigned_type_node.
15366
15367 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15368             Reza Yazdani  <reza.yazdani@amd.com>
15369
15370         PR middle-end/43065
15371         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
15372         on pointer type parameters.
15373
15374 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
15375
15376         PR middle-end/42644
15377         PR middle-end/42130
15378         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
15379         handle conversions from pointer to integers.
15380         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
15381         induction variable, to be able to work with code generated by CLooG.
15382         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
15383         (build_poly_scop): Bail out if we cannot codegen a loop.
15384
15385 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
15386
15387         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
15388         code generation with gloog_error.
15389
15390 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15391
15392         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
15393         Call fold_convert on all the returned values.
15394         (expand_scalar_variables_expr): Pass to
15395         expand_scalar_variables_ssa_name the type of the resulting expression.
15396
15397 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15398
15399         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
15400         ppl_min_for_le_pointset.
15401         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
15402         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
15403
15404 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15405
15406         * graphite-dependences.c (map_into_dep_poly): Removed.
15407         (dependence_polyhedron_1): Use combine_context_id_scat.
15408
15409 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15410
15411         * graphite-poly.h (struct poly_scattering): Add layout documentation.
15412         (struct poly_bb): Same.
15413         (combine_context_id_scat): New.
15414
15415 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15416
15417         PR middle-end/42326
15418         * sese.c (name_defined_in_loop_p): Return false for default
15419         definitions.
15420
15421 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15422
15423         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
15424         and clean up the logic.
15425
15426 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15427
15428         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
15429         early return.
15430
15431 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
15432
15433         * var-tracking.c (remove_cselib_value_chains): Define only for
15434         ENABLE_CHECKING.
15435         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
15436         delete_slot_part, emit_notes_for_differences_1): Don't call
15437         remove_cselib_value_chains here.
15438         (set_slot_part, emit_notes_for_differences_2): Don't call
15439         add_cselib_value_chains here.
15440         (preserved_values): New vector.
15441         (preserve_value): New function.
15442         (add_uses, add_stores, vt_add_function_parameters): Use it
15443         instead of cselib_preserve_value.
15444         (changed_values_stack): New vector.
15445         (check_changed_vars_0): New function.
15446         (check_changed_vars_1, check_changed_vars_2): Use it.
15447         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
15448         changed_values_stack VALUEs.
15449         (vt_emit_notes): For all preserved_values call
15450         add_cselib_value_chains.  If ENABLE_CHECKING call
15451         remove_cselib_value_chains before verifying value_chains is empty.
15452         Initialize and free changed_values_stack.
15453         (vt_initialize): Initialize preserved_values.
15454         (vt_finalize): Free preserved_values.
15455
15456 2010-03-08  Richard Guenther  <rguenther@suse.de>
15457
15458         PR tree-optimization/43269
15459         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
15460         region detection.
15461
15462 2010-03-08  Martin Jambor  <mjambor@suse.cz>
15463
15464         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
15465         (ipa_is_param_called): Removed.
15466         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
15467         (ipa_print_node_params): Do not print the called flag.
15468         (ipa_write_node_info): Do not stream the called flag.
15469         (ipa_read_node_info): Likewise.
15470
15471 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
15472
15473         PR debug/43176
15474         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
15475         * cselib.c (struct expand_value_data): Add dummy field.
15476         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
15477         dummy to false.
15478         (cselib_dummy_expand_value_rtx_cb): New function.
15479         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
15480         any rtl.
15481         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
15482         * var-tracking.c: Include pointer-set.h.
15483         (variable): Change n_var_parts to char from int.  Add
15484         cur_loc_changed and in_changed_variables fields.
15485         (variable_canonicalize): Remove.
15486         (shared_var_p): New inline function.
15487         (unshare_variable): Maintain cur_loc_changed and
15488         in_changed_variables fields.  If var was in changed_variables,
15489         replace it there with new_var.  Just copy cur_loc instead of
15490         resetting it to something else.
15491         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
15492         (dataflow_set_union): Don't call variable_canonicalize.
15493         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
15494         of their DEBUG_EXPR_TREE_DECLs.
15495         (canonicalize_loc_order_check): Verify that cur_loc is NULL
15496         and in_changed_variables and cur_loc_changed is false.
15497         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
15498         and cur_loc_changed.  Don't update cur_loc here.
15499         (variable_merge_over_src): Don't call variable_canonicalize.
15500         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
15501         removing loc that is equal to cur_loc, clear cur_loc,
15502         set cur_loc_changed and ensure variable_was_changed is called.
15503         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
15504         compare pointers in cur_loc check, if it is equal to loc,
15505         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
15506         (variable_different_p): Remove compare_current_location argument,
15507         don't compare cur_loc.
15508         (dataflow_set_different_1): Adjust variable_different_p caller.
15509         (variable_was_changed): If dv had some var in changed_variables
15510         already, reset in_changed_variables flag for it and propagate
15511         cur_loc_changed over to the new variable.  On empty var
15512         always set cur_loc_changed.  Set in_changed_variables on whatever
15513         var is added to changed_variables.
15514         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
15515         Use shared_var_p.  When removing loc that is equal to cur_loc,
15516         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
15517         end, don't set it to something else, just call variable_was_changed.
15518         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
15519         loc being removed, clear cur_loc and set cur_loc_changed.
15520         Set cur_loc_changed if all locations have been removed.
15521         (struct expand_loc_callback_data): New type.
15522         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
15523         allocated.  Always create SUBREGs if simplify_subreg failed.
15524         Prefer to use cur_loc, when that fails and still in
15525         changed_variables (and seen first time) recompute it.  Set
15526         cur_loc_changed of variables which had to change cur_loc and
15527         compute elcd->cur_loc_changed if any of the subexpressions used
15528         had to change cur_loc.
15529         (vt_expand_loc): Adjust to pass arguments in
15530         expand_loc_callback_data structure.
15531         (vt_expand_loc_dummy): New function.
15532         (emitted_notes): New variable.
15533         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
15534         that weren't used for any other decl in current
15535         emit_notes_for_changes call call vt_expand_loc_dummy to update
15536         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
15537         first loc_chain location if NULL before.  Always use just
15538         cur_loc instead of first loc_chain location.  When cur_loc_changed
15539         is false, when not --enable-checking=rtl just don't emit any note.
15540         When rtl checking, compute the note and assert it is the same
15541         as previous note.  Clear cur_loc_changed and in_changed_variables
15542         at the end before removing from changed_variables.
15543         (check_changed_vars_3): New function.
15544         (emit_notes_for_changes): Traverse changed_vars to call
15545         check_changed_vars_3 on each changed var.
15546         (emit_notes_for_differences_1): Clear cur_loc_changed and
15547         in_changed_variables.  Recompute cur_loc of new_var.
15548         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
15549         (vt_emit_notes): Initialize and destroy emitted_notes.
15550
15551 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
15552
15553         PR rtl-optimization/42220
15554         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
15555         Use verify_reg_tracked to determine if we should use OP_OUT rather
15556         than OP_INOUT.
15557         (build_def_use): If we see an in-out operand for a register that we
15558         know nothing about, treat is an output if possible, fail the block if
15559         not.
15560
15561 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
15562
15563         PR debug/42897
15564         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
15565         permanently.
15566
15567 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
15568
15569         PR debug/42897
15570         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
15571         uses of relevant DEFs that are dead outside the loop too.
15572
15573 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
15574
15575         * var-tracking.c (dataflow_set_merge): Swap src and src2.
15576         Reverted:
15577         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
15578         PR debug/41371
15579         * var-tracking.c (values_to_unmark): New variable.
15580         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
15581         values_to_unmark vector.  Moved body to...
15582         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
15583         instead queue it into values_to_unmark vector.
15584         (vt_find_locations): Free values_to_unmark vector.
15585
15586 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
15587
15588         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
15589         (site.exp): Export them when plugins are enabled.
15590
15591 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
15592
15593         PR middle-end/42326
15594         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
15595         that contain scevs.
15596         (chrec_fold_multiply): Same.
15597
15598 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
15599
15600         PR c/43248
15601         * c-decl.c (build_compound_literal): Return early if init is
15602         an error_mark_node.
15603
15604 2010-03-04  Martin Jambor  <mjambor@suse.cz>
15605
15606         PR tree-optimization/43164
15607         PR tree-optimization/43191
15608         * tree-sra.c (type_consists_of_records_p): Reject records with
15609         zero-size bit-fields at the end.
15610
15611 2010-03-04  Mike Stump  <mikestump@comcast.net>
15612
15613         * Makefile.in (TAGS): Remove *.y.
15614
15615 2010-03-04  Richard Guenther  <rguenther@suse.de>
15616
15617         PR tree-optimization/40761
15618         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
15619         in reverse order.
15620         (my_rev_post_order_compute): New function.
15621         (init_pre): Call it.
15622
15623 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
15624
15625         PR middle-end/43209
15626         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
15627         decrease the cost of an IV candidate when the cost is infinite.
15628
15629 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15630
15631         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
15632         Use '3DNow!' for the extension of that name, ensure normal space
15633         after the string.
15634         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
15635
15636 2010-03-03  Jeff Law  <law@redhat.com>
15637
15638         * PR middle-end/32693
15639         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
15640         than gen_rtx_SUBREG.
15641         (extract_bit_field_1): Likewise.
15642
15643 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
15644
15645         * doc/sourcebuild.texi (Test directives): Document that arguments
15646         include-opts and exclude-opts are now optional for dg-skip-if,
15647         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
15648
15649 2010-03-03  Jason Merrill  <jason@redhat.com>
15650
15651         PR c++/12909
15652         * cgraph.h (varpool_node): Add extra_name field.
15653         * varpool.c (varpool_extra_name_alias): New.
15654         (varpool_assemble_decl): Emit extra name aliases.
15655         (varpool_mark_needed_node): Look past an extra name alias.
15656         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
15657         * lto-streamer-in.c (lto_input_tree): Read it.
15658         * lto-streamer-out.c (output_unreferenced_globals): Write it.
15659
15660 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
15661
15662         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
15663         (sparc*-*-solaris2*): ...this.
15664
15665 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
15666
15667         PR debug/43229
15668         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
15669         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
15670         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
15671         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
15672
15673         PR debug/43237
15674         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
15675         fallthrough to default handling, just with want_address 0 instead of 2.
15676         For single element lists, add_AT_loc directly, otherwise create an
15677         artificial variable DIE and stick location list to it.
15678
15679         PR debug/43177
15680         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
15681         (VAL_EXPR_HAS_REVERSE): Define.
15682         (reverse_op): New function.
15683         (add_stores): For reversible operations add an extra MO_VAL_USE.
15684
15685 2010-03-02  Jason Merrill  <jason@redhat.com>
15686
15687         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
15688
15689 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
15690
15691         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
15692         (sparc64-*-linux*): Likewise.
15693         (sparc64-*-solaris2*): Include assembler files before linker ones.
15694         (sparc-*-solaris2*): Simplify and reorder to match previous case.
15695         * config/sparc/gas.h: Delete.
15696         * config/sparc/sol2-64.h: Add copyright notice.
15697         * config/sparc/sol2-gas-bi.h: Likewise.
15698         * config/sparc/sol2-gld.h: Likewise.
15699         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
15700         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
15701         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
15702         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
15703         (sparc_elf_asm_named_section): Rename into...
15704         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
15705
15706 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
15707
15708         * config/alpha/alpha.c (override_options): Fix -mtune error message.
15709
15710 2010-03-02  Jeff Law  <law@redhat.com>
15711
15712         PR middle-end/42431
15713         * reload1.c (rtx_p, substitute_stack): Declare.
15714         (substitute): Record addresses of changed rtxs.
15715         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
15716         Restore the original rtx when complete.
15717         (reload): Free subsitute_stack when complete.
15718
15719 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
15720
15721         * doc/gccint.texi (menu): Add Testsuites as a chapter.
15722         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
15723         new chapter.
15724         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
15725         LTO Testing, gcov Testing, profopt Testing, compat Testing,
15726         Torture Tests): Change from subsection to section.
15727
15728 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
15729             Steven Bosscher  <steven@gcc.gnu.org>
15730
15731         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
15732         instead of bb.
15733
15734 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
15735
15736         PR middle-end/42640
15737         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
15738         the assignment from the new induction variable to the assignment
15739         of the value from the original loop PHI function.
15740
15741 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
15742             Daniel Jacobowitz  <dan@codesourcery.com>
15743
15744         * doc/sourcebuild.texi (Test directives): Clarify options to
15745         dg-skip-if.
15746
15747 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15748
15749         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
15750         Disable cfi directives unless GCC and gas agree on using read-only
15751         .eh_frame sections for 64-bit.
15752         * configure: Regenerate.
15753
15754 2010-03-01  Richard Guenther  <rguenther@suse.de>
15755
15756         PR tree-optimization/43220
15757         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
15758         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
15759
15760 2010-03-01  Richard Guenther  <rguenther@suse.de>
15761             Martin Jambor  <mjambor@suse.cz>
15762
15763         PR middle-end/41250
15764         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
15765         gimplified parameters.
15766
15767 2010-03-01  Christian Bruel  <christian.bruel@st.com>
15768
15769         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
15770
15771 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
15772
15773         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
15774
15775 2010-03-01  Richard Guenther  <rguenther@suse.de>
15776
15777         PR middle-end/43213
15778         * expr.c (expand_assignment): Use the alias-oracle to tell
15779         if the rhs aliases the result decl.
15780
15781 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15782
15783         PR pch/14940
15784         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
15785         to sol_gt_pch_get_address.
15786         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
15787         64-bit, SPARC and x86.
15788         (sol_gt_pch_get_address): New function.
15789
15790 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
15791
15792         * toplev.h (inform_n, error_n): Declare.
15793         * diagnostic.c (inform_n, error_n): New function.
15794
15795 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
15796
15797         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
15798         has no rtl yet when processing local_decls, queue it and recheck
15799         if deferred stack allocation hasn't assigned it rtl.
15800
15801 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
15802
15803         * config/sh/sh.c (unspec_bbr_uid): New.
15804         (gen_block_redirect): Use it instead of INSN_UID.
15805         (gen_far_branch): Likewise.
15806
15807 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
15808
15809         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
15810         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
15811
15812 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15813
15814         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
15815         (Warning Options): -Wno-conversion-null is valid for
15816         Objective-C++ as well.
15817         * doc/tm.texi (Named Address Spaces): Likewise.
15818         * doc/plugins.texi (Plugins): Replace TABs with spaces.
15819         * doc/tree-ssa.texi (Tree SSA): Likewise.
15820
15821 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
15822
15823         PR bootstrap/43202
15824         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
15825         by default.  Don't set the default arch for
15826         i[34567]86-*-darwin*|x86_64-*-darwin*.
15827
15828 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
15829
15830         PR bootstrap/43202
15831         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
15832         default.  Set the default 32bit/64bit archs with $with_arch
15833         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
15834
15835 2010-02-27  Richard Guenther  <rguenther@suse.de>
15836
15837         PR tree-optimization/43186
15838         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
15839         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
15840         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
15841         unroller iterations.
15842
15843 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
15844
15845         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
15846         required and i[34567]86-*-* targets don't support 64bit ISA.
15847
15848 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
15849
15850         PR ada/43096
15851         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
15852         the same alias set.
15853
15854 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
15855
15856         * config.gcc: Set the default arch at least to Prescott for
15857         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
15858         if SSE math is enabled.
15859
15860 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15861
15862         * diagnostic.c (diagnostic_initialize): Update.
15863         (diagnostic_report_diagnostic): Test inhibit_notes_p for
15864         informative notes.
15865         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
15866         (diagnostic_inhibit_notes): New.
15867         * toplev.c (process_options): inhibit notes with -fcompare-debug.
15868
15869 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15870
15871         PR c/20631
15872         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
15873         * doc/standards.texi: Likewise.
15874         * doc/extend.texi: Likewise.
15875         * doc/trouble.texi: Likewise.
15876         * doc/cppopts.texi: Likewise.
15877         * doc/install.texi: Likewise.
15878         * c.opt (std=c90,std=gnu90): New options.
15879         * c-opts.c (c_common_handle_option): Handle them.
15880
15881 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15882
15883         PR c/24577
15884         * c-decl.c (undeclared_variable): Use an informative note.
15885
15886 2010-02-26  Richard Guenther  <rguenther@suse.de>
15887
15888         PR tree-optimization/43186
15889         * gimple.h (gimple_fold): Remove.
15890         * gimple.c (gimple_fold): Remove.  Inline into single user ...
15891         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
15892         Try harder for conditions.
15893
15894 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
15895
15896         PR debug/43190
15897         * function.c (used_types_insert): Don't skip through named pointer
15898         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
15899         and it is different from the main variant's type.
15900
15901 2010-02-26  Nick Clifton  <nickc@redhat.com>
15902
15903         * config/rx/rx.md (sminsi3): Remove bogus alternative.
15904
15905 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
15906
15907         * config.gcc: Support --with-fpmath=sse for x86.
15908
15909         * config/i386/ssemath.h: New.
15910
15911         * doc/install.texi (--with-fpmath=sse): Documented.
15912
15913 2010-02-26  Richard Guenther  <rguenther@suse.de>
15914
15915         PR tree-optimization/43188
15916         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
15917         vector types of over-aligned element type.
15918
15919 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
15920
15921         PR target/43175
15922         * config/i386/i386.c (expand_vec_perm_blend): Use correct
15923         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
15924
15925 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
15926
15927         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
15928
15929 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
15930
15931         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
15932         * var-tracking.c: Include diagnostic.h.
15933         (debug_dv): New function.
15934         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
15935
15936         PR debug/43160
15937         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
15938         (add_value_chain, add_value_chains, remove_value_chain,
15939         remove_value_chains): Handle DEBUG_EXPRs.
15940         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
15941
15942         PR debug/43161
15943         * regcprop.c (struct queued_debug_insn_change): New type.
15944         (struct value_data_entry): Add debug_insn_changes field.
15945         (struct value_data): Add n_debug_insn_changes field.
15946         (debug_insn_changes_pool): New variable.
15947         (free_debug_insn_changes, apply_debug_insn_changes,
15948         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
15949         (kill_value_one_regno): Call free_debug_insn_changes if needed.
15950         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
15951         fields.
15952         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
15953         changes for them.
15954         (copyprop_hardreg_forward_1): Don't call apply_change_group for
15955         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
15956         changes, call cprop_find_used_regs via note_stores.
15957         (copyprop_hardreg_forward): When copying vd from predecessor
15958         which has any queued DEBUG_INSN changes, make sure the pointers are
15959         cleared.  At the end call df_analyze and then if there are any
15960         DEBUG_INSN changes queued at the end of some basic block for still
15961         live registers, apply them.
15962         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
15963
15964 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
15965
15966         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
15967         (arm*-*-*): Ditto.
15968
15969 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
15970
15971         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
15972         targets.  Set the default with_cpu/with_arch from arch/cpu.
15973         Allow x86-64 and native for with_cpu/with_arch.
15974
15975 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
15976
15977         * ebitmap.c: Change calls to verify_popcount with calls to
15978         sbitmap_verify_popcount.
15979         (ebitmap_clear_bit): Fixed map->cacheindex test and
15980         map>cache update when bit clearing results in an empty
15981         element.
15982
15983 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
15984
15985         PR target/43154
15986         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
15987         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
15988         and support both V2DF and V2DI modes.
15989         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
15990         support both V2DF and V2DI modes.
15991         (general): Delete trailing whitespace from a few patterns.
15992
15993         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15994         V2DF/V2DI interleave high/low builtins.
15995
15996         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
15997         new VSX builtins.
15998
15999         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
16000         interleave high/low functions.
16001
16002 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
16003
16004         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
16005         #pragma extern_prefix.
16006
16007 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
16008
16009         PR debug/43166
16010         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
16011         BLKmode, assert op0 is a MEM and just adjust its mode.
16012
16013         PR debug/43165
16014         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
16015         if bitpos isn't multiple of mode's bitsize.
16016
16017 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16018
16019         * c.opt (-ftemplate-depth=): New.
16020         (-ftemplate-depth-): Deprecate.
16021         * optc-gen.awk: Handle -ftemplate-depth=.
16022         * opth-gen.awk: Likewise.
16023         * c-opts.c (c_common_handle_option): Likewise.
16024         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
16025
16026 2010-02-24  Jason Merrill  <jason@redhat.com>
16027
16028         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
16029
16030 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16031
16032         * cfg.c (alloc_aux_for_block): Remove inline.
16033         (alloc_aux_for_edge): Likewise.
16034
16035 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16036
16037         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
16038
16039 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16040
16041         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
16042         * config/i386/sol2-gas.h: New file.
16043         * config.gcc (i[34567]86-*-solaris2*): Use it.
16044
16045 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16046
16047         PR c/43128
16048         * c-typeck.c (ep_convert_and_check): New.
16049         (build_conditional_expr): Use it.
16050         (build_binary_op): Likewise.
16051
16052 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
16053
16054         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
16055
16056         PR debug/43150
16057         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
16058         bounds even for -O+.
16059         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
16060         expr needs to have DECL_NAME set.
16061
16062 2010-02-24  Nick Clifton  <nickc@redhat.com>
16063
16064         * config/mep/mep.c: Include gimple.h.
16065         (mep_function_uses_sp): Delete unused function.
16066         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
16067         parameters.  Use unsigned integers to count args.  Return a
16068         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
16069
16070 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
16071
16072         PR target/43107
16073         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
16074         greater or equal to nelt instead of 2 * nelt.
16075         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
16076         with nelt - 1.
16077
16078 2010-02-23  Jason Merrill  <jason@redhat.com>
16079
16080         PR debug/42800
16081         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
16082         in cfun->local_decls even if they have register types.
16083
16084         PR c++/42837
16085         * stor-layout.c (place_field): Don't warn about unnecessary
16086         DECL_PACKED if the type is packed.
16087
16088 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
16089
16090         PR target/43139
16091         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
16092         GOTOFF relocs, even when the base reg isn't pic pointer.
16093
16094 2010-02-23  Michael Matz  <matz@suse.de>
16095
16096         PR debug/43077
16097         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
16098         (expand_gimple_basic_block): Generate and use debug temps if there
16099         are debug uses left after the last real use of TERed ssa names.
16100         Unlink debug immediate uses when they are expanded.
16101
16102 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16103
16104         PR 43123
16105         * config/i386/i386.c (override_options): Reorganise to provide
16106         better error messages.
16107
16108 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
16109
16110         PR middle-end/43083
16111         * graphite-scop-detection.c (create_single_exit_edge): Move
16112         the call to find_single_exit_edge to....
16113         (create_sese_edges): ...here.  Don't handle multiple edges
16114         exiting the function.
16115         (build_graphite_scops): Don't handle multiple edges
16116         exiting the function.
16117
16118 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
16119
16120         PR middle-end/43097
16121         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
16122         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
16123
16124 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
16125
16126         PR middle-end/43026
16127         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
16128
16129 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16130
16131         PR c++/43126
16132         * c-typeck.c (convert_arguments): Print declaration location.
16133         * c-common.c (validate_nargs): Rename as
16134         builtin_function_validate_nargs.
16135         (check_builtin_function_arguments): Update.
16136
16137 2010-02-22  Richard Guenther  <rguenther@suse.de>
16138
16139         PR lto/43045
16140         * tree-inline.c (declare_return_variable): Use the type of
16141         the call stmt lhs if available.
16142
16143 2010-02-22  Duncan Sands  <baldrick@free.fr>
16144
16145         * passes.c (register_pass): Always consider all pass lists when
16146         ref_pass_instance_number is zero.
16147
16148 2010-02-22  Richard Guenther  <rguenther@suse.de>
16149
16150         PR tree-optimization/42749
16151         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
16152         parameter.  Do arithmetic in the original type.
16153         (update_accumulator_with_ops): Likewise.
16154         (adjust_accumulator_values): Adjust.
16155
16156 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16157
16158         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
16159         (QI to BLKmode splitter): New splitter.
16160
16161 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
16162
16163         * config/i386/i386.c (initial_ix86_tune_features): Turn on
16164         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
16165
16166 2010-02-22  Richard Guenther  <rguenther@suse.de>
16167
16168         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
16169
16170 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
16171
16172         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
16173         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
16174         ($(T)crti.o, $(T)crtn.o): Remove rules.
16175
16176 2010-02-21  Tobias Burnus  <burnus@net-b.de>
16177
16178         PR fortran/35259
16179         * doc/invoke.texi (-fassociative-math): Document that this
16180         option is automatically enabled for Fortran.
16181
16182 2010-02-20  David S. Miller  <davem@davemloft.net>
16183
16184         * configure.ac: Test if linker and assembler properly support
16185         GOTDATA_OP relocations.
16186         * configure: Rebuild.
16187         * config.in: Likewise.
16188         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
16189         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
16190         (movsi_high_pic): Likewise.
16191         (movdi_lo_sum_pic): Likewise.
16192         (movdi_high_pic): Likewise.
16193         (movsi_pic_gotdata_op): New pattern.
16194         (movdi_pic_gotdata_op): Likewise.
16195         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
16196         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
16197
16198 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
16199
16200         PR target/43067
16201         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
16202         attribute to ssemul.
16203         (xop_mulv2div2di3_high): Ditto.
16204
16205 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16206
16207         PR c++/35669
16208         * c.opt (Wconversion-null): New option.
16209         * doc/invoke.texi (Wconversion-null): Document.
16210
16211 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16212
16213         * common.opt (Wlarger-than-): Add Undocumented.
16214
16215 2010-02-19  Mike Stump  <mikestump@comcast.net>
16216
16217         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
16218
16219 2010-02-19  Jason Merrill  <jason@redhat.com>
16220
16221         PR target/40332
16222         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
16223         * configure: Likewise.
16224
16225 2010-02-20  Alan Modra  <amodra@gmail.com>
16226
16227         PR middle-end/42344
16228         * cgraph.h (cgraph_make_decl_local): Declare.
16229         * cgraph.c (cgraph_make_decl_local): New function.
16230         (cgraph_make_node_local): Use it.
16231         * cgraphunit.c (cgraph_function_versioning): Likewise.
16232         * ipa.c (function_and_variable_visibility): Likewise.
16233
16234 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
16235
16236         PR bootstrap/43121
16237         * except.c (sjlj_emit_function_enter): Don't call
16238         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
16239         directly.
16240         * rtl.h (add_reg_br_prob_note): Remove prototype.
16241
16242 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16243
16244         PR 41779
16245         * c-common.c (conversion_warning): Remove widening conversions
16246         before checking the conversion of integers to reals.
16247
16248 2010-02-19  Mike Stump  <mikestump@comcast.net>
16249
16250         PR middle-end/43125
16251         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
16252
16253         PR objc/43061
16254         * cgraphunit.c (process_function_and_variable_attributes): Check
16255         DECL_PRESERVE_P instead of looking up attribute "used".
16256         * ipa-pure-const.c (check_decl): Likewise.
16257         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
16258         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
16259         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
16260         instead of attribute "used".
16261         * config/sol2-c.c (solaris_pragma_init): Likewise.
16262         (solaris_pragma_fini): Likewise.
16263
16264 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
16265
16266         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
16267         Use XCNEW instead of xcalloc.
16268         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
16269         XNEW instead of xmalloc.
16270         (get_fields): Use XNEWVEC instead of xmalloc.
16271
16272         PR debug/43084
16273         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
16274         populate vars array.
16275         (create_new_general_access): For debug stmts just reset value.
16276         (get_stmt_accesses): For accesses within debug stmts just record them
16277         using add_access_to_acc_sites instead of preventing the peeling or
16278         counting them as accesses.
16279
16280         PR middle-end/42233
16281         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
16282
16283 2010-02-19  Richard Guenther  <rguenther@suse.de>
16284
16285         PR tree-optimization/42916
16286         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
16287         instructions.
16288
16289 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
16290
16291         * configure.ac: Replace all uses of changequote in macro arguments
16292         with proper quoting.
16293
16294 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
16295
16296         PR middle-end/42233
16297         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
16298
16299 2010-02-19  Richard Guenther  <rguenther@suse.de>
16300
16301         PR tree-optimization/42944
16302         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
16303         test for aliasing with errno.
16304
16305 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
16306
16307         PR middle-end/42233
16308         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
16309         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
16310         * dojump.c: Include output.h.
16311         (inv): New inline function.
16312         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
16313         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
16314         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
16315         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
16316         argument, pass it down to other calls.
16317         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
16318         add REG_BR_PROB note to the conditional jump.
16319         * cfgexpand.c (add_reg_br_prob_note): Removed.
16320         (expand_gimple_cond): Don't call it, add the probability
16321         as last argument to jumpif_1/jumpifnot_1.
16322         * Makefile.in (dojump.o): Depend on output.h.
16323         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
16324         callers.
16325         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
16326         * stmt.c (do_jump_if_equal): Likewise.
16327         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
16328         * loop-unswitch.c (compare_and_jump_seq): Likewise.
16329         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
16330         Likewise.
16331         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
16332         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
16333         jumpifnot_1 callers.
16334         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
16335         callers.
16336         (store_expr): Adjust jumpifnot caller.
16337         (store_constructor): Adjust jumpif caller.
16338
16339         PR middle-end/42233
16340         * gimplify.c (gimple_boolify): For __builtin_expect call
16341         gimple_boolify also on its first argument.
16342
16343 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
16344
16345         * configure.ac (gnu-unique-object): Wrap regexps using [] in
16346         changequote block.
16347         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
16348         * configure: Regenerated.
16349
16350 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16351
16352         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
16353         lang_hooks.types_compatible_p instead of comptypes.
16354
16355 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
16356
16357         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
16358         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
16359         if __prefer_thumb__ is defined.
16360
16361 2010-02-18  Martin Jambor  <mjambor@suse.cz>
16362
16363         PR tree-optimization/43066
16364         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
16365         array with zero-sized element type.
16366
16367 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
16368
16369         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
16370         rtx, allocate struct var_loc_node here and return it to the
16371         caller, and only if it is actually needed.
16372         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
16373         move it earlier and return immediately if it returns NULL.
16374
16375 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
16376
16377         * config/sparc/gas.h: New file.  Restore
16378         TARGET_ASM_NAMED_SECTION to its ELF default.
16379         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
16380         check !HAVE_GNU_AS.
16381         * config/sparc/sparc.c (sparc_elf_asm_named_section):
16382         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
16383         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
16384         after sparc/sysv4.h.
16385
16386 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
16387
16388         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
16389
16390 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
16391
16392         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
16393         patterns from predicated pattern.
16394
16395 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
16396
16397         PR target/43103
16398         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
16399         for insn mnemonic suffix.
16400
16401 2010-02-17  Richard Guenther  <rguenther@suse.de>
16402
16403         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
16404         to loop PHI nodes.
16405
16406 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
16407
16408         PR debug/42918
16409         * caller-save.c (save_call_clobbered_regs): If BB ends with
16410         a DEBUG_INSN, move any notes in between last real insn and the last
16411         DEBUG_INSN after the last DEBUG_INSN.
16412
16413 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
16414
16415         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
16416         Fix return type.  Fix argument type.  Explain meaning of return value.
16417
16418 2010-02-16  Richard Guenther  <rguenther@suse.de>
16419
16420         PR tree-optimization/41043
16421         * tree-vrp.c  (vrp_var_may_overflow): Only ask SCEV for real loops.
16422         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
16423         statements ...
16424         (vrp_visit_phi_node): ... but only for loop PHI nodes.
16425
16426 2010-02-16  Ira Rosen  <irar@il.ibm.com>
16427
16428         PR tree-optimization/43074
16429         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
16430         * tree-vect-loop.c (vect_analyze_loop_operations): Add
16431         vectorizable cycles in hybrid SLP check.
16432         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
16433
16434 2010-02-16  Richard Guenther  <rguenther@suse.de>
16435
16436         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
16437         (true_dependence): If memrefs_conflict_p computes must-alias
16438         trust it.  Move TBAA check after offset-based disambiguation.
16439         (canon_true_dependence): Likewise.
16440
16441 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
16442
16443         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
16444         * doc/invoke.texi: Document it.
16445         * var-tracking.c: Include toplev.h and params.h.
16446         (vt_find_locations): Return bool indicating success.  Compute
16447         hash sizes unconditionally.  Check new parameter, report.
16448         (variable_tracking_main_1): Check vt_find_locations results and
16449         retry.  Renamed from...
16450         (variable_tracking_main): ... this.  New wrapper to preserve
16451         flag_var_tracking_assignments.
16452         * Makefile.in (var-tracking.o): Adjust dependencies.
16453
16454 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
16455             Jakub Jelinek  <jakub@redhat.com>
16456
16457         PR target/42854
16458         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
16459         if weak_import attribute is present.
16460         * config/darwin.c (machopic_select_section): Likewise.
16461
16462 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
16463
16464         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
16465         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
16466         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
16467         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
16468
16469         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
16470         types.
16471
16472         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
16473         Fix argument types.
16474
16475         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
16476         Rewrite text to refer to the names.
16477
16478 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
16479
16480         * config/i386/i386-builtin-types.def
16481         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
16482         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
16483         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
16484         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
16485         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
16486         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
16487         IX86_BUILTIN_VPERMIL2PS256.
16488         (MULTI_ARG_4_DF2_DI_I): Defined.
16489         (MULTI_ARG_4_DF2_DI_I1): Defined.
16490         (MULTI_ARG_4_SF2_SI_I): Defined.
16491         (MULTI_ARG_4_SF2_SI_I1): Defined.
16492         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
16493         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
16494         __builtin_ia32_vpermil2ps256.
16495         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
16496         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
16497         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
16498         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
16499         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
16500         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
16501         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
16502         CODE_FOR_xop_vpermil2v8sf3.
16503         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
16504         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
16505         * config/i386/xopintrin.h (_mm_permute2_pd): New.
16506         (_mm256_permute2_pd): New.
16507         (_mm_permute2_ps): New.
16508         (_mm256_permute2_ps): New.
16509
16510 2010-02-15  Nick Clifton  <nickc@redhat.com>
16511
16512         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
16513         boolean parameters.  Use emit_jump_insn when emitting a pop
16514         instruction containing a return insn.
16515         (push): Use 'true' rather than '1' as second parameter to F.
16516         (h8300_expand_prologue): Likewise.
16517         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
16518         (h8300_expand_epilogue): Likewise.
16519
16520 2010-02-15  Richard Guenther  <rguenther@suse.de>
16521
16522         PR middle-end/43068
16523         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
16524         if that is zero.
16525
16526 2010-02-15  Nick Clifton  <nickc@redhat.com>
16527
16528         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
16529         delta.
16530
16531 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
16532
16533         * intl.c (fake_ngettext): New function.
16534         * intl.h (fake_ngettext): Declare.
16535         (ngettext): Define macro.
16536         * collect2.c (notice_translated): New function.
16537         (main): Use notice_translated and ngettext.
16538         * collect2.h (notice_translated): Declare.
16539
16540 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
16541
16542         * reorg.c (delete_computation): Comment fixes.
16543         * caller-save.c (setup_save_areas): Idem.
16544         * sel-sched-dump.c (dump_lv_set): Idem.
16545         * rtl.def: Idem.
16546
16547 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16548
16549         * config/s390/s390.c (s390_sched_init): New function.
16550         (TARGET_SCHED_INIT): Target hook defined.
16551
16552 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
16553             Jack Howarth  <howarth@bromo.med.uc.edu>
16554             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
16555
16556         PR target/42982
16557         Partial revert of unintended change in fix for PR41605.
16558         * config/darwin.h: Fix typo.
16559         * config/darwin9.h: Same.
16560
16561 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
16562
16563         * c-pch.c (pch_init): Clear v.
16564
16565 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
16566
16567         PR middle-end/42930
16568         * graphite-scop-detection.c (graphite_can_represent_scev): Call
16569         graphite_can_represent_init for MULT_EXPR.
16570
16571 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
16572
16573         PR middle-end/42914
16574         PR middle-end/42530
16575         * graphite-sese-to-poly.c (remove_phi): New.
16576         (translate_scalar_reduction_to_array): Call remove_phi.
16577
16578 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
16579
16580         PR middle-end/42771
16581         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
16582         * graphite-clast-to-gimple.h (gloog): Update declaration.
16583         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
16584         * graphite-poly.h (struct poly_bb): Add missing comments.
16585         (struct scop): Add poly_scop_p field.
16586         (POLY_SCOP_P): New.
16587         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
16588         * graphite.c (graphite_transform_loops): Build the polyhedral
16589         representation for each scop before code generation.
16590         * sese.c (rename_variables_in_operand): Removed.
16591         (rename_variables_in_expr): Return the renamed expression.
16592         (rename_sese_parameters): New.
16593         * sese.h (rename_sese_parameters): Declared.
16594
16595 2010-02-11  Richard Guenther  <rguenther@suse.de>
16596
16597         PR tree-optimization/42998
16598         * tree-ssa-pre.c (create_expression_by_pieces): Treat
16599         POINTER_PLUS_EXPR properly.
16600
16601 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
16602             Changpeng Fang  <changpeng.fang@amd.com>
16603
16604         PR middle-end/40886
16605         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
16606         the cost of an IV candidate when the IV is used in a test against zero.
16607
16608         * gcc.dg/tree-ssa/ivopts-3.c: New.
16609
16610 2010-02-11  Richard Guenther  <rguenther@suse.de>
16611
16612         PR lto/41664
16613         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
16614         pointer-vs-decl case by swapping refs.  Handle some cases
16615         of pointer-vs-decl disambiguations more conservatively.
16616         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
16617         to false after expanding.
16618
16619 2010-02-11  Richard Guenther  <rguenther@suse.de>
16620
16621         PR driver/43021
16622         * gcc.c (process_command): Handle LTO file@offset case more
16623         appropriately.
16624
16625 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
16626
16627         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
16628         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
16629         of DEBUG_INSNs.
16630         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
16631
16632         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
16633         if MEM's mode size isn't DWARF2_ADDR_SIZE.
16634         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
16635         Optimize eq/ne comparisons when both arguments are known to be
16636         zero-extended.
16637         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
16638         Don't mask operands unnecessarily if they are known to be already
16639         zero-extended.
16640
16641 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
16642
16643         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
16644         instead of loop.
16645
16646 2010-02-10  Richard Guenther  <rguenther@suse.de>
16647
16648         PR tree-optimization/43017
16649         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
16650         for wrapping signed arithmetic.
16651
16652 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
16653
16654         PR debug/43010
16655         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
16656         if no debug info should be emitted for it.
16657
16658 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
16659
16660         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
16661         note when flag_exceptions is set.
16662
16663 2010-02-10  Duncan Sands  <baldrick@free.fr>
16664
16665         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
16666
16667 2010-02-10  Richard Guenther  <rguenther@suse.de>
16668
16669         PR c/43007
16670         * tree.c (get_unwidened): Handle constants.
16671         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
16672
16673 2010-02-10  Martin Jambor  <mjambor@suse.cz>
16674
16675         PR lto/42985
16676         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
16677         check for variable argument counts independently.
16678
16679 2010-02-10  Christian Bruel  <christian.bruel@st.com>
16680
16681         PR target/42841
16682         * config/sh/sh.c (find_barrier): Increase length for non delayed
16683         conditional branches.
16684
16685 2010-02-10  Christian Bruel  <christian.bruel@st.com>
16686
16687         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
16688
16689 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
16690
16691         * builtins.c (set_builtin_user_assembler_name): Also handle
16692         ffs if int is smaller than word.
16693
16694 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
16695
16696         PR middle-end/42973
16697         * ira-conflicts.c (get_dup): Remove.
16698         (process_reg_shuffles): Add new parameter.  Use it as an
16699         additional guard for copy generation.
16700         (add_insn_allocno_copies): Rewrite.
16701
16702 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
16703
16704         * common.opt (fsched2-use-traces): Preserved for backward
16705         compatibility.
16706         * doc/invoke.texi: Remove the documentation about option
16707         -fsched2-use-traces.
16708         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
16709         flag_sched2_use_traces.
16710         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
16711         the backward compatibility flag section.
16712
16713 2010-02-09  Richard Guenther  <rguenther@suse.de>
16714
16715         PR tree-optimization/43008
16716         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
16717         make HEAP variables initialized from global memory if they
16718         are not known builtin functions.
16719         (find_func_aliases): Adjust.
16720
16721 2010-02-09  Richard Guenther  <rguenther@suse.de>
16722
16723         PR tree-optimization/43000
16724         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
16725         arithmetic manually.
16726
16727 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
16728
16729         PR tree-optimization/42931
16730         * tree-loop-linear.c (try_interchange_loops): Don't call
16731         double_int_mul if estimated_loop_iterations failed.
16732
16733 2010-02-08  Martin Jambor  <mjambor@suse.cz>
16734
16735         PR middle-end/42898
16736         * tree-sra.c (build_accesses_from_assign): Do not mark in
16737         should_scalarize_away_bitmap if stmt has volatile ops.
16738         (sra_modify_assign): Do not process assigns piecemeal if if stmt
16739         has volatile ops.
16740
16741 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
16742
16743         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
16744
16745 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
16746
16747         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
16748         before the pattern.
16749
16750 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
16751
16752         PR middle-end/42946
16753         * df-core.c (df_finish_pass): Change type of saved_flags to int.
16754
16755 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
16756
16757         PR middle-end/42988
16758         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
16759         to unknown_dependence.
16760         (graphite_legal_transform_dr): Handle the unknown_dependence.
16761         (graphite_carried_dependence_level_k): Same.
16762
16763 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
16764
16765         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
16766
16767 2010-02-07  Richard Guenther  <rguenther@suse.de>
16768
16769         PR middle-end/42991
16770         * expr.c (get_inner_reference): Always initialize *pbitsize.
16771
16772 2010-02-07  Richard Guenther  <rguenther@suse.de>
16773
16774         PR middle-end/42956
16775         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
16776         new ARRAY_REFs on variable size element or minimal index arrays.
16777         Complete.
16778         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
16779         gimple_fold_indirect_ref.
16780
16781 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
16782
16783         PR target/42957
16784         * arm.c (arm_override_options): Just return if the user has specified
16785         an invalid fpu name.
16786
16787 2010-02-03  Jason Merrill  <jason@redhat.com>
16788
16789         PR c++/42870
16790         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
16791         i386_pe_maybe_record_exported_symbol.
16792
16793 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
16794
16795         PR target/42924
16796         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
16797         (pa_delegitimize_address): New function.
16798
16799 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
16800
16801         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
16802         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
16803
16804 2010-02-05  Richard Guenther  <rguenther@suse.de>
16805
16806         PR lto/42762
16807         * lto-streamer-in.c (get_resolution): Deal with references
16808         to undefined functions.
16809
16810 2010-02-05  Richard Guenther  <rguenther@suse.de>
16811
16812         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
16813         (fold_const_aggregate_ref): Likewise.
16814         (ccp_fold_stmt): Substitute loads.
16815         (maybe_fold_reference): Verify types before substituting.
16816         Unshare properly.
16817         (fold_gimple_assign): Unshare properly.
16818         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
16819
16820 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
16821
16822         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
16823         for rs6000_gen_cell_microcode.
16824
16825 2010-02-04  Richard Guenther  <rguenther@suse.de>
16826
16827         PR rtl-optimization/42952
16828         * dse.c (const_or_frame_p): Remove MEM handling.
16829
16830 2010-02-04  Nick Clifton  <nickc@redhat.com>
16831
16832         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
16833         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
16834         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
16835         (mn10300_asm_output_mi_thunk): New function.
16836         (mn10300_can_output_mu_thunk): New function.
16837         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
16838         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
16839         (FUNCTION_ARG): Delete incorrect comment.
16840
16841 2010-02-03  Jason Merrill  <jason@redhat.com>
16842
16843         PR c++/40138
16844         * fold-const.c (operand_equal_p): Handle erroneous types.
16845
16846 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
16847
16848         * config/h8300/h8300.md (can_delay): Fix attibute condition.
16849
16850 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
16851
16852         PR rtl-optimization/42941
16853         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
16854         of xmalloc.
16855
16856 2010-02-03  Jason Merrill  <jason@redhat.com>
16857
16858         PR c++/35652
16859         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
16860
16861 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
16862
16863         PR debug/42896
16864         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
16865         (cselib_reset_table): Renamed from...
16866         (cselib_reset_table_with_next_value): ... this.
16867         (cselib_get_next_uid): Renamed from...
16868         (cselib_get_next_unknown_value): ... this.
16869         * cselib.c (next_uid): Renamed from...
16870         (next_unknown_value): ... this.
16871         (cselib_clear_table): Adjust.
16872         (cselib_reset_table): Adjust.  Renamed from...
16873         (cselib_reset_table_with_next_value): ... this.
16874         (cselib_get_next_uid): Adjust.  Renamed from...
16875         (cselib_get_next_unknown_value): ... this.
16876         (get_value_hash): Use hash.
16877         (cselib_hash_rtx): Likewise.
16878         (new_cselib_val): Adjust.  Set and dump uid.
16879         (cselib_lookup_mem): Pass next_uid as hash.
16880         (cselib_subst_to_values): Likewise.
16881         (cselib_log_lookup): Dump uid.
16882         (cselib_lookup): Pass next_uid as hash.  Adjust.
16883         (cselib_process_insn): Adjust.
16884         (cselib_init): Initialize next_uid.
16885         (cselib_finish): Adjust.
16886         (dump_cselib_table): Likewise.
16887         * dse.c (canon_address): Dump value uid.
16888         * print-rtl.c (print_rtx): Print value uid.
16889         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
16890         (dvuid): New type.
16891         (dv_uid): New function, sort of renamed from...
16892         (dv_htab_hash): ... this, reimplemented in terms of it and...
16893         (dv_uid2hash): ... this.  New.
16894         (variable_htab_eq): Drop excess assertions.
16895         (tie_break_pointers): Removed.
16896         (canon_value_cmp): Compare uids.
16897         (variable_post_merge_New_vals): Print uids.
16898         (vt_add_function_parameters): Adjust.
16899         (vt_initialize): Reset table.  Adjust.
16900
16901 2010-02-03  Richard Guenther  <rguenther@suse.de>
16902
16903         PR tree-optimization/42944
16904         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
16905         (call_may_clobber_ref_p_1): Likewise.  Properly handle
16906         malloc and calloc clobbering errno.
16907
16908 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
16909
16910         * doc/invoke.texi: Fix name of sched1 dump.
16911
16912         * opts.c (decode_options): Set flag_tree_switch_conversion
16913         only conditionally on optimize >= 2.
16914
16915         * gcse.c: Assorted comment fixes in pass description.
16916
16917 2010-02-03  Anthony Green  <green@moxielogic.com>
16918
16919         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
16920         nop padding in order to maintain alignment of storage location of
16921         target function address.
16922         (moxie_trampoline_init): Store target function address at newly
16923         aligned location.
16924         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
16925         to 32.
16926         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
16927
16928 2010-02-03  Richard Guenther  <rguenther@suse.de>
16929
16930         PR middle-end/42927
16931         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
16932
16933 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16934
16935         * config.gcc: Reenable check for obsolete targets.
16936         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
16937         mips-sgi-irix6.[0-4]*.
16938
16939 2010-02-02  Nick Clifton  <nickc@redhat.com>
16940
16941         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
16942         constant size of 4 as being the same as 0.
16943         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
16944         can take values in the range 0..4.
16945
16946 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
16947
16948         PR java/41991
16949         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
16950         as _darwin10_Unwind_FindEnclosingFunction().
16951         * libgcc-libsystem.ver: New.
16952
16953 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
16954
16955         PR target/41399
16956         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
16957         implicitly set registers.
16958
16959 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
16960
16961         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
16962         (arm_override_options): Allow automatic selection of the thread
16963         pointer register if thumb2.
16964         (legitimize_pic_address): Improve code sequences for Thumb2.
16965         (arm_call_tls_get_addr): Likewise.
16966         (legitimize_tls_address): Likewise.
16967         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
16968         (pic_load_addr_32bit): ... this.  New named pattern.
16969         * thumb2.md (pic_load_addr_thumb2): Delete.
16970         (pic_load_dot_plus_four): Delete.
16971         (tls_load_dot_plus_four): New named pattern.
16972
16973 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16974
16975         PR libgomp/29986
16976         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
16977         Document fix for TLS bug.
16978
16979 2010-01-31  Richard Guenther  <rguenther@suse.de>
16980
16981         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
16982         conservatively correct.
16983
16984 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16985
16986         PR target/42850
16987         Revert:
16988         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16989
16990         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
16991
16992 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16993
16994         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
16995
16996 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
16997
16998         * config.gcc: Adjust order of makefile fragments for mingw targets.
16999
17000 2010-01-31  Richard Guenther  <rguenther@suse.de>
17001
17002         PR middle-end/42898
17003         * gimplify.c (gimplify_init_constructor): For volatile LHS
17004         initialize a temporary.
17005
17006 2010-01-31  Matthias Klose  <doko@ubuntu.com>
17007
17008         * configure.ac: Fix __stack_chk_fail check for cross builds configured
17009         --with-headers
17010         * configure: Regenerate.
17011
17012 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
17013
17014         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
17015         the same alias set and their sizes different constantness.
17016         (aliasing_component_refs_p): Revert 2009-10-24 change.
17017
17018 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17019
17020         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
17021         unused.
17022
17023 2010-01-29  Richard Guenther  <rguenther@suse.de>
17024
17025         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
17026         Assert we successfully updated the call.
17027
17028 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
17029
17030         PR rtl-optimization/42889
17031         * df.h (df_set_bb_dirty_nonlr): New prototype.
17032         * df-core.c (df_set_bb_dirty_nonlr): New function.
17033         * df-scan.c (df_insn_rescan): Call it instead of
17034         df_set_bb_dirty for DEBUG_INSNs.
17035
17036 2010-01-29  Richard Guenther  <rguenther@suse.de>
17037
17038         PR middle-end/37448
17039         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
17040         quadratic behavior in most cases.
17041
17042 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
17043
17044         PR target/42891
17045         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
17046         in the call to gen_x86_movsicc_0_m1.
17047
17048 2010-01-28  Richard Guenther  <rguenther@suse.de>
17049
17050         PR tree-optimization/42871
17051         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
17052
17053 2010-01-28  Richard Guenther  <rguenther@suse.de>
17054
17055         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
17056         into call arguments.
17057
17058 2010-01-28  Richard Guenther  <rguenther@suse.de>
17059
17060         PR middle-end/42883
17061         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
17062         the forwarder if the destination is an EH landing pad.
17063
17064 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
17065
17066         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
17067         block list passed to gimple_duplicate_sese_tail.
17068         (parallelize_loops): Avoid parallelization when the function
17069         has_nonlocal_label.
17070         Avoid parallelization when the preheader is IRREDUCIBLE.
17071         Try to optimize when estimated_loop_iterations_int is unresolved.
17072         Add the loop's location to the dump file.
17073         * tree-cfg.c (add_phi_args_after_redirect): Remove.
17074         (gimple_duplicate_sese_tail): Remove the check for the latch.
17075         Redirect nexits to the exit block.
17076         Remove handling of the incoming edges to the latch.
17077         Redirect the backedge from the copied latch to the exit bb.
17078
17079 2010-01-28  Michael Matz  <matz@suse.de>
17080
17081         PR target/42881
17082         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
17083         Wrap force_reg into a sequence, emit it before user.
17084
17085 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
17086
17087         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
17088         (arm_rev): New.
17089         (arm_legacy_rev): Likewise.
17090         (thumb_legacy_rev): Likewise.
17091
17092 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
17093
17094         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
17095         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
17096         on MEM's address failed, try avoid_constant_pool_reference and
17097         recurse if it returned something different.
17098         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
17099         address, try avoid_constant_pool_reference and recurse if it
17100         returned something different.
17101         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
17102         address and avoid_constant_pool_reference returned something
17103         different, don't set have_address.
17104
17105 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
17106
17107         PR debug/42861
17108         * var-tracking.c (val_store): Add modified argument, obey it.
17109         Adjust callers.
17110         (count_uses): Move down logging of main.
17111         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
17112         don't need resolution.
17113         (emit_notes_in_bb): Likewise.
17114
17115 2010-01-27  Richard Guenther  <rguenther@suse.de>
17116
17117         PR middle-end/42878
17118         * tree-inline.c (remap_decl): Delay remapping of SSA name
17119         default definitions until we need them.
17120
17121 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
17122
17123         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
17124         (rs6000_delegitimize_address): New function.
17125
17126         * config/s390/s390.c (s390_delegitimize_address): Call
17127         delegitimize_mem_from_attrs.
17128
17129         PR middle-end/42874
17130         * tree-inline.c (cannot_copy_type_1): Removed.
17131         (copy_forbidden): Don't forbid copying of functions containing
17132         records/unions with variable length fields.
17133
17134 2010-01-27  Christian Bruel  <christian.bruel@st.com>
17135
17136         Revert:
17137         PR target/42841
17138         * config/sh/sh.c (find_barrier): Increase length for non delayed
17139         conditional branches.
17140
17141 2010-01-27  Matthias Klose  <doko@ubuntu.com>
17142
17143         * configure.ac (gnu-unique-object): Fix ldd version check.
17144         * configure: Regenerate.
17145
17146 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17147
17148         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
17149         HAVE_GNU_AS value.
17150         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
17151         Test for HAVE_GNU_AS value.
17152
17153 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17154
17155         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
17156         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
17157         INT64_TYPE): Define.
17158         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
17159         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
17160         INT_LEAST64_TYPE): Define.
17161         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
17162         UINT_LEAST64_TYPE): Define.
17163         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
17164         INT_FAST64_TYPE): Define.
17165         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
17166         UINT_FAST64_TYPE): Define.
17167         (INTMAX_TYPE, UINTMAX_TYPE): Define.
17168         (INTPTR_TYPE, UINTPTR_TYPE): Define.
17169         (SIG_ATOMIC_TYPE): Define.
17170
17171 2010-01-26  Richard Guenther  <rguenther@suse.de>
17172
17173         * df-scan.c (df_scan_set_bb_info): Remove assert.
17174         (df_insn_rescan_debug_internal): Merge asserts.
17175         (df_install_ref): Likewise.
17176         (df_mark_reg): Use bitmap_set_range.
17177         (df_hard_reg_used_p): Remove assert.
17178         (df_hard_reg_used_count): Likewise.
17179
17180 2010-01-26  Richard Guenther  <rguenther@suse.de>
17181
17182         PR rtl-optimization/42685
17183         * web.c (web_main): Ignore DEBUG_INSNs.
17184
17185 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
17186
17187         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
17188
17189         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
17190         Fix types of fndecl and arglist parameters.
17191
17192 2010-01-26  Richard Guenther  <rguenther@suse.de>
17193
17194         PR middle-end/42806
17195         * tree-eh.c (unsplit_eh): Skip debug insns.
17196
17197 2010-01-26  Richard Guenther  <rguenther@suse.de>
17198
17199         PR tree-optimization/42250
17200         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
17201
17202 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
17203
17204         PR fortran/42866
17205         * omp-low.c (expand_omp_sections): Only use single_pred if
17206         l2_bb is single_pred_p.
17207
17208 2010-01-25  Christian Bruel  <christian.bruel@st.com>
17209
17210         PR target/42841
17211         * config/sh/sh.c (find_barrier): Increase length for non delayed
17212         conditional branches.
17213         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
17214
17215 2010-01-24  David S. Miller  <davem@davemloft.net>
17216
17217         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
17218         define if not using GAS.
17219         * config/sparc/sparc.c (sparc_elf_asm_named_section):
17220         Likewise.  Delete SECTION_MERGE code, which is only applicable
17221         when using GAS.
17222
17223 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
17224
17225         PR c++/42748
17226         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
17227         mangling of va_list in system headers.
17228
17229 2010-01-23  Toon Moene  <toon@moene.org>
17230
17231         * tree-predcom.c (combine_chains): Return NULL, not false.
17232
17233 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
17234
17235         * tree-loop-distribution.c (distribute_loop): Fix declaration and
17236         initialization of variable res to agree with return type.
17237
17238 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
17239
17240         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
17241         * tree-sra.c: Add include of expr.h.
17242
17243 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
17244
17245         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
17246         insert the debug stmt on the single non-EH edge from the stmt.
17247
17248 2010-01-22  Richard Henderson  <rth@redhat.com>
17249
17250         PR tree-opt/42833
17251         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
17252         the RHS until after generate_subtree_copies has insertted its
17253         code before the current statement.
17254
17255 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
17256
17257         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
17258
17259         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
17260
17261 2010-01-21  Martin Jambor  <mjambor@suse.cz>
17262
17263         PR tree-optimization/42585
17264         * tree-sra.c (struct access): New field grp_total_scalarization.
17265         (dump_access): Dump the new field.
17266         (should_scalarize_away_bitmap): New variable.
17267         (cannot_scalarize_away_bitmap): Likewise.
17268         (sra_initialize): Allocate new bitmaps.
17269         (sra_deinitialize): Free new bitmaps.
17270         (create_access_1): New function.
17271         (create_access): Parts moved to create_access_1.
17272         (type_consists_of_records_p): New function.
17273         (completely_scalarize_record): Likewise.
17274         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
17275         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
17276         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
17277         access.
17278         (analyze_all_variable_accesses): Completely scalarize small eligible
17279         records.
17280
17281 2010-01-21  Martin Jambor  <mjambor@suse.cz>
17282
17283         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
17284
17285 2010-01-21  Andrew Haley  <aph@redhat.com>
17286
17287         * gcc.c (process_command): Move lang_specific_driver before
17288         setting cc_libexec_prefix.
17289
17290 2010-01-21  Richard Guenther  <rguenther@suse.de>
17291
17292         PR middle-end/19988
17293         * fold-const.c (negate_expr_p): Pretend only negative
17294         real constants are easily negatable.
17295
17296 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
17297             Jason Merrill  <jason@redhat.com>
17298
17299         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
17300         (TYPE_TRANSPARENT_AGGR): this, for union and record.
17301         * calls.c (initialize argument_information): Handle it.
17302         * c-common.c (handle_transparent_union_attribute): Use new name.
17303         * c-decl.c (finish_struct): Ditto.
17304         * c-typeck.c (type_lists_compatible_p): Ditto.
17305         (convert_for_assignment): Use new name and also handle record.
17306         * function.c (aggregate_value_p): Handle it.
17307         (pass_by_reference): Ditto.
17308         (assign_parm_data_types): Ditto.
17309         * print-tree.c (print_node): Ditto.
17310         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
17311         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
17312         * tree.c (first_field): New fn.
17313
17314 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
17315
17316         PR target/42818
17317         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
17318         even when linking statically, for now.
17319
17320 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
17321
17322         PR debug/42715
17323         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
17324         without a cselib val.
17325         (count_uses): Accept MO_VAL_SET with no val on stores.
17326         (add_stores): Likewise.
17327
17328 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
17329
17330         * var-tracking.c (check_value_val): Add a compile time assertion.
17331         (dv_is_decl_p): Simplify.
17332         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
17333         gcc_assert if ENABLE_CHECKING.
17334
17335 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
17336
17337         PR debug/42782
17338         * var-tracking.c: Include tree-flow.h.
17339         (mem_dies_at_call): New.
17340         (dataflow_set_preserve_mem_locs): Use it.
17341         (dataflow_set_remove_mem_locs): Likewise.
17342         (dump_var): Renamed from dump_variable.  Adjust all callers.
17343         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
17344         * Makefile.in (var-tracking.o): Adjust deps.
17345
17346 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
17347
17348         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
17349
17350 2010-01-20  Richard Guenther  <rguenther@suse.de>
17351
17352         PR tree-optimization/42717
17353         * tree-ssa-dce.c (get_live_post_dom): Remove.
17354         (forward_edge_to_pdom): Take an arbitrary edge to copy
17355         degenerate PHI args from.
17356         (remove_dead_stmt): Use the first post-dominator even if it
17357         does not contain live statements as redirection destination.
17358
17359 2010-01-20  Richard Guenther  <rguenther@suse.de>
17360
17361         * tree-inline.c (estimate_num_insns): Handle EH builtins.
17362
17363 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
17364
17365         * sel-sched.c (create_speculation_check): Remove set but not used
17366         variable twin.
17367         (try_transformation_cache): Remove set but not used variable ds.
17368         (calculate_privileged_insns): Remove set but not used variables
17369         cur_insn and min_spec_insn.
17370         (find_best_expr): Remove set but not used variable avail_n.
17371         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
17372         variable e.
17373         * cgraphunit.c (assemble_thunk): Remove set but not used variable
17374         false_label.
17375         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
17376         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
17377         new_scop_exit_edge.
17378
17379 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
17380
17381         PR bootstrap/42786
17382         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
17383         cpu types.  Add support for *-sse3 cpu types.
17384         (x86_64-*-*): Ditto.
17385
17386 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
17387
17388         PR middle-end/42803
17389         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
17390         argument, call initializer_constant_valid_p_1 instead of
17391         initializer_constant_valid_p, pass CACHE to it, return NULL
17392         immediately if first call returns NULL.
17393         (initializer_constant_valid_p_1): New function.
17394         (initializer_constant_valid_p): Use it.
17395
17396 2010-01-20  Thomas Quinot  <quinot@adacore.com>
17397
17398         * tree.def (PLACEHOLDER_EXPR): Fix comment.
17399
17400 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
17401
17402         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
17403         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
17404         (loc_list_from_tree): Don't handle unsigned division.  Handle
17405         signed modulo using DW_OP_{over,over,div,mul,minus}.
17406         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
17407         modulo instead of signed.
17408
17409 2010-01-20  DJ Delorie  <dj@redhat.com>
17410
17411         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
17412         (Fpa): Pass it
17413         (h8300_emit_stack_adjustment): Propogate it.
17414         (push): Pass it.
17415         (h8300_expand_prologue): Likewise.
17416         (h8300_expand_epilogue): Likewise.
17417
17418 2010-01-19  Michael Matz  <matz@suse.de>
17419
17420         PR tree-optimization/41783
17421         * tree-data-ref.c (toplevel): Include flags.h.
17422         (dump_data_dependence_relation):  Also dump the inputs if the
17423         result will be unknown.
17424         (split_constant_offset_1): Look through some conversions.
17425         * tree-predcom.c (determine_roots_comp): Restart a new chain if
17426         the offset from last element is too large.
17427         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
17428         (reassociate_to_the_same_stmt): Handle vector registers.
17429         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
17430         (e.g. conversions).
17431         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
17432         wide_prolog_niters argument, emit widening instructions.
17433         (vect_do_peeling_for_alignment): Adjust caller, use widened
17434         variant of the iteration cound.
17435         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
17436
17437 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17438
17439         PR target/38697
17440         * config/arm/neon-testgen.m (emit_automatics): New parameter
17441         features. Adjust for Fixed_return_reg feature.
17442         (test_intrinsic): Call emit_automatics with new feature.
17443         * config/arm/neon.ml: Update copyright years.
17444         (features): New Fixed_return_reg feature.
17445         (ops): Update feature for Vget_low.
17446
17447 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
17448
17449         PR tree-optimization/42719
17450         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
17451         stmt uses.
17452
17453         PR debug/42728
17454         * fwprop.c (all_uses_available_at): Return false if def_set dest
17455         is a REG that is used in def_insn.
17456
17457 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
17458
17459         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
17460
17461         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
17462         Add argument names.
17463
17464         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
17465
17466         * target.h (struct gcc_target) <secondary_reload>: Change type
17467         of last argument to secondary_reload_info *.
17468
17469 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
17470
17471         PR target/42774
17472         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
17473         memory references with unaligned offsets.  Remove CQImode handling.
17474         (unaligned_memory_operand): Return 1 for memory references with
17475         unaligned offsets.  Remove CQImode handling.
17476
17477 2010-01-18  Richard Guenther  <rguenther@suse.de>
17478
17479         PR middle-end/39954
17480         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
17481         builtin calls.
17482
17483 2010-01-18  Richard Guenther  <rguenther@suse.de>
17484
17485         PR tree-optimization/42781
17486         * tree-ssa-structalias.c (find_what_var_points_to): Skip
17487         restrict processing only if the original variable was artificial.
17488
17489 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
17490
17491         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
17492         find number of popped argument bytes.
17493
17494         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
17495         Fix the text that describes the return value for invalid insns.
17496
17497         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
17498
17499         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
17500         Clarify what 'cost of the -dependence' is.  Fix quoting.
17501
17502         * toplev.c (default_get_pch_validity): Rename argument to "sz".
17503         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
17504
17505 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
17506
17507         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
17508         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
17509
17510 2010-01-17  Richard Guenther  <rguenther@suse.de>
17511
17512         PR middle-end/42248
17513         * function.c (split_complex_args): Take a VEC to modify.
17514         (assign_parms_augmented_arg_list): Build a VEC instead of
17515         a chain of PARM_DECLs.
17516         (assign_parms_unsplit_complex): Take a VEC of arguments.
17517         Do not fixup unmodified parms.
17518         (assign_parms): Deal with the VEC.
17519         (gimplify_parameters): Likewise.
17520
17521 2010-01-17  Richard Guenther  <rguenther@suse.de>
17522
17523         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
17524         node existence check.
17525         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
17526         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
17527         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
17528         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
17529         (gimple_execute_on_growing_pred): Likewise.
17530
17531 2010-01-17  Richard Guenther  <rguenther@suse.de>
17532
17533         PR tree-optimization/42773
17534         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
17535         (compute_antic_aux): Likewise.
17536         (compute_partial_antic_aux): Likewise.
17537
17538 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
17539
17540         PR debug/42767
17541         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
17542         and US_TRUNCATE.
17543
17544 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
17545
17546         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
17547         appearance.
17548
17549         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
17550         Fix markup for strict argument.
17551
17552         (TARGET_SCHED_REORDER2): Fix argument types.
17553
17554         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
17555         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
17556
17557         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
17558         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
17559
17560         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
17561         Add argument name.
17562
17563         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
17564         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
17565         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
17566         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
17567         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
17568
17569         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
17570
17571         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
17572
17573         (TARGET_ASM_RELOC_RW_MASK): Add return type.
17574         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
17575
17576         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
17577
17578         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
17579         Use prototype.
17580
17581         (TARGET_ASM_NAMED_SECTION): Fix argument list.
17582
17583         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
17584         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
17585
17586         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
17587
17588         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
17589
17590         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
17591         referring to it.  Fix language.
17592
17593         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
17594
17595         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
17596
17597         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
17598
17599         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
17600
17601         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
17602         '@var{stream}.  Remove stray 'and'.
17603
17604         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
17605
17606         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
17607
17608         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
17609
17610         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
17611         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
17612
17613         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
17614         Fix description of return value.
17615         Rename argument "sz" to "len."
17616
17617         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
17618         Clarify meaning of 'true' return value.
17619
17620         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
17621
17622         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
17623         rep_mode versus mode_rep.
17624
17625         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
17626
17627         (TARGET_BUILTIN_DECL): Fix name.
17628
17629         (TARGET_COMMUTATIVE_P): Fix type of first argument.
17630
17631         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
17632
17633         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
17634
17635         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
17636
17637         (TARGET_RELAXED_ORDERING): Use @deftypevr.
17638
17639         (TARGET_GET_DRAP_RTX): Note that this is a hook.
17640         Clarify language.
17641
17642         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
17643         Rename argument tm_fn to md_fn.
17644
17645         (TARGET_OPTION_PRINT): Fix argument list.
17646
17647 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
17648
17649         PR target/42664
17650         * config/i386/i386.c (ix86_fixup_binary_operands):
17651         Revert FMA4 fixup of operands.
17652
17653 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17654
17655         PR gcc/42525
17656         * Makefile.in (write_entries_to_file, install-plugin):
17657         Use \012 instead of \n with tr.
17658
17659 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
17660
17661         * configure.ac (HAVE_AS_REF): New C macro.
17662         * configure: Regenerate.
17663         * config.in: Likewise.
17664         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
17665         if HAVE_AS_REF.
17666         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
17667         if HAVE_AS_REF.
17668
17669 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
17670
17671         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
17672
17673         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
17674
17675         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
17676
17677         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
17678
17679         (TARGET_IN_SMALL_DATA_P): Fix argument type.
17680
17681         (TARGET_BINDS_LOCAL_P): Fix argument type.
17682
17683         (TARGET_ASM_FILE_END): Use prototype.
17684
17685         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
17686
17687         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
17688
17689         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
17690
17691         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
17692
17693         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
17694         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
17695
17696         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
17697         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
17698
17699         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
17700         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
17701         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
17702         (TARGET_ADDR_SPACE_CONVERT): Likewise.
17703
17704         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
17705
17706         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
17707
17708         (TARGET_INIT_BUILTINS): Use prototype.
17709
17710         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
17711         Put 'const char *' in braces.  Fix parameter types.
17712         (TARGET_INVALID_CONVERSION): Fix parameter types.
17713         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
17714         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
17715
17716         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
17717         Fix argument type.
17718
17719         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
17720
17721         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
17722
17723 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
17724
17725         * doc/tm.texi (TARGET_HELP): Fix return type.
17726
17727         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
17728         in braces.  Fix argument types.
17729
17730         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
17731
17732         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
17733
17734         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
17735
17736         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
17737         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
17738
17739         (TARGET_MANGLE_TYPE): Fix argument types.
17740
17741         (TARGET_IRA_COVER_CLASSES): Use prototype.
17742
17743         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
17744
17745         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
17746
17747         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
17748
17749         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
17750
17751         (TARGET_CALLEE_COPIES): Fix argument types.
17752
17753         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
17754
17755         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
17756
17757         (TARGET_FUNCTION_VALUE): Fix argument types.
17758
17759         (TARGET_RETURN_IN_MSB): Fix argument type.
17760
17761         (TARGET_RETURN_IN_MEMORY): Fix argument types.
17762
17763         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
17764
17765         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
17766
17767         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
17768         agree with return type.
17769
17770         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
17771
17772 2010-01-15  Jing Yu  <jingyu@google.com>
17773
17774         PR rtl-optimization/42691
17775         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
17776         a pseudo to a constant and are merged, and adjust comments.
17777
17778 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
17779
17780         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
17781
17782 2010-01-15  Richard Guenther  <rguenther@suse.de>
17783
17784         PR middle-end/42739
17785         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
17786         labels of computed or non-local gotos to the destination.
17787         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
17788         landing pad label is the first label.
17789
17790 2010-01-15  Richard Guenther  <rguenther@suse.de>
17791
17792         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
17793
17794 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
17795
17796         PR target/42747
17797         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
17798         to allow generation of the xssqrtdp instruction on power7.
17799         (sqrtdf2_fpr): Ditto.
17800
17801 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
17802
17803         PR middle-end/42674
17804         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
17805         functions with noreturn attribute.
17806
17807         PR c++/42608
17808         * varasm.c (declare_weak): Add weak attribute to decl if it
17809         doesn't have one already.
17810         (assemble_external): Only add decls to weak_decls if they also
17811         have weak attribute.
17812
17813 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
17814
17815         * var-tracking.c (var_reg_delete): Don't delete the association
17816         between REGs and values or one-part variables if the register
17817         isn't clobbered.
17818
17819 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
17820
17821         PR debug/42657
17822         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
17823         because its first operand is a non-localized variable.
17824
17825 2010-01-14  Martin Jambor  <mjambor@suse.cz>
17826
17827         PR tree-optimization/42706
17828         * tree-sra.c (encountered_recursive_call): New variable.
17829         (encountered_unchangable_recursive_call): Likewise.
17830         (sra_initialize): Initialize both new variables.
17831         (callsite_has_enough_arguments_p): New function.
17832         (scan_function): Call decl and flags check only for IPA-SRA, check
17833         whether there is a recursive call and whether it has enough arguments.
17834         (all_callers_have_enough_arguments_p): New function.
17835         (convert_callers): Look for recursive calls only when
17836         encountered_recursive_call is set.
17837         (ipa_early_sra): Bail out either if
17838         !all_callers_have_enough_arguments_p or
17839         encountered_unchangable_recursive_call.
17840
17841 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17842
17843         * sel-sched.c: Add 2010 to copyright years.
17844         * sel-sched-ir.c: Likewise.
17845         * sel-sched-ir.h: Likewise.
17846
17847 2010-01-14  Martin Jambor  <mjambor@suse.cz>
17848
17849         PR tree-optimization/42714
17850         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
17851         constructors specially.
17852
17853 2010-01-14  Andi Kleen  <ak@linux.intel.com>
17854
17855         * config/i386/drivers-i386.c (detect_caches_intel):
17856         Add l2sizekb parameter and fill in.
17857         (host_detect_local_cpu): Add l2sizekb, fill in.
17858         Add Atom small cache heuristic.
17859
17860 2010-01-14  Andi Kleen  <ak@linux.intel.com>
17861
17862         * config/i386/drivers-i386.c (detect_caches_cpuid4):
17863         Add level3 parameter and fill in.
17864         (detect_caches_intel): Handle level3 cache.
17865
17866 2010-01-14  Andi Kleen  <ak@linux.intel.com>
17867
17868         * config/i386/drivers-i386.c (host_detect_local_cpu):
17869         Fix core duo detection.
17870
17871 2010-01-14  Andi Kleen  <ak@linux.intel.com>
17872
17873         * config/i386/drivers-i386.c (host_detect_local_cpu):
17874         Fix Atom detection.
17875
17876 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17877
17878         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
17879         (rs6000_variable_issue_1): this.  Use...
17880         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
17881
17882 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17883
17884         * sel-sched-ir.c (sel_restore_other_notes): Rename to
17885         sel_restore_notes.  Update all callers.  Call reemit_notes
17886         for all insns.
17887
17888 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
17889
17890         PR rtl-optimization/42246
17891         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
17892         loops.
17893
17894 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
17895
17896         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
17897         all successors is the same as number of successors in current region.
17898
17899 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17900
17901         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
17902         to rename is not separable.  Otherwise check that its LHS is not NULL.
17903
17904 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17905
17906         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
17907
17908 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17909
17910         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
17911         available registers when failed to discover LHS register class.
17912         Fix indentation.  Update comment.
17913
17914 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
17915             Alexander Monakov  <amonakov@ispras.ru>
17916
17917         PR rtl-optimization/42389
17918         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
17919         to can_issue_more.
17920         (advance_state_on_fence): Likewise.
17921         (sel_target_adjust_priority): Print debug output only when
17922         sched_verbose >= 4, not 2.
17923         (get_expr_cost): Do not issue all unique insns on the next cycle.
17924         (fill_insns): Initialize can_issue_more from the value saved
17925         with the fence.
17926         * sel-sched-ir.c (flist_add): New parameter issue_more.
17927         Init FENCE_ISSUE_MORE with it.
17928         (merge_fences): Likewise.
17929         (init_fences): Update call to flist_add.
17930         (add_to_fences, add_clean_fence_to_fences)
17931         (add_dirty_fence_to_fences): Likewise.
17932         (move_fence_to_fences): Update call to merge_fences.
17933         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
17934         sched groups.
17935         * sel-sched-ir.h (struct _fence): New field issue_more.
17936         (FENCE_ISSUE_MORE): New accessor macro.
17937
17938 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
17939
17940         PR rtl-optimization/42388
17941         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
17942         that have no predecessors nor successors.  Do not call move_bb_info
17943         for empty blocks outside of current region.
17944
17945 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17946
17947         PR rtl-optimization/42294
17948         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
17949         * sel-sched.c (move_exprs_to_boundary): Transitively add all
17950         originators' originators.
17951
17952 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17953
17954         PR rtl-optimization/39453
17955         PR rtl-optimization/42246
17956         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
17957         for pipelining_p.
17958         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
17959
17960 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
17961             Alexander Monakov  <amonakov@ispras.ru>
17962
17963         PR middle-end/42245
17964         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
17965         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
17966         argument.  Update all callers.
17967         (tidy_control_flow): ... and here.  Recompute topological order
17968         of basic blocks in region if necessary.
17969         (sel_redirect_edge_and_branch): Change return type.  Return true
17970         if topological order might have been invalidated.
17971         (purge_empty_blocks): Export and move from...
17972         * sel-sched.c (purge_empty_blocks): ... here.
17973         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
17974         (maybe_tidy_empty_bb): Delete prototype.
17975         (purge_empty_blocks): Declare.
17976
17977 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
17978
17979         PR rtl-optimization/42249
17980         * sel-sched.c (try_replace_dest_reg): When chosen register
17981         and original register is the same, do not bail out early, but
17982         still check all original insns for validity of replacing destination
17983         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
17984         in this case.
17985
17986 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
17987
17988         PR c/42721
17989         Port from no-undefined-overflow branch:
17990         2009-03-09  Richard Guenther  <rguenther@suse.de>
17991
17992         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
17993
17994 2010-01-14  Richard Guenther  <rguenther@suse.de>
17995
17996         PR lto/42665
17997         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
17998
17999 2010-01-14  Ira Rosen  <irar@il.ibm.com>
18000
18001         PR tree-optimization/42709
18002         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
18003         as scalar type in creation of constant vector operand.
18004
18005 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18006
18007         PR testsuite/42414
18008         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
18009         (check-parallel-%): Match `testsuite' directory component only
18010         at the end.
18011
18012 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
18013
18014         PR translation/39521
18015         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
18016         strings with _().
18017
18018 2010-01-13  Richard Guenther  <rguenther@suse.de>
18019
18020         PR tree-optimization/42730
18021         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
18022         offset zero.
18023
18024 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
18025
18026         PR target/pr42542
18027         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
18028         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
18029         them signed.
18030
18031 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
18032
18033         * config/bfin/libgcc-bfin.ver: Regenerate based on current
18034         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
18035         ___umulsi3_highpart.
18036
18037         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
18038         rather than schedule_insns if the pass is enabled.
18039
18040 2010-01-13  Martin Jambor  <mjambor@suse.cz>
18041
18042         PR tree-optimization/42704
18043         * tree-sra.c (sra_modify_assign): Do not delete assignments to
18044         SSA_NAMEs.
18045
18046 2010-01-13  Martin Jambor  <mjambor@suse.cz>
18047
18048         PR tree-optimization/42703
18049         * tree-sra.c (analyze_access_subtree): Check that we can build a
18050         reference to the original data within the aggregate.
18051
18052 2010-01-13  Richard Guenther  <rguenther@suse.de>
18053
18054         PR tree-optimization/42705
18055         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
18056
18057 2010-01-13  Richard Guenther  <rguenther@suse.de>
18058
18059         PR middle-end/42716
18060         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
18061
18062 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
18063
18064         PR debug/41371
18065         * var-tracking.c (values_to_unmark): New variable.
18066         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
18067         values_to_unmark vector.  Moved body to...
18068         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
18069         instead queue it into values_to_unmark vector.
18070         (vt_find_locations): Free values_to_unmark vector.
18071
18072 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
18073
18074         * config/s390/s390.c (override_options): Set
18075         default of max-pending-list-length to 256
18076
18077 2010-01-13  Richard Guenther  <rguenther@suse.de>
18078
18079         PR lto/42678
18080         * tree-pass.h (PROP_gimple_lcx): New.
18081         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
18082         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
18083         before the final cleanup_eh.
18084         (dump_properties): Dump PROP_gimple_lcx.
18085         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
18086         (tree_lower_complex_O0): Remove.
18087         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
18088         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
18089         tree_lower_complex, schedule TODO_update_ssa.
18090         * lto-streamer-out.c (output_function): Stream the functions
18091         properties.
18092         * lto-streamer-in.c (input_function): Likewise.
18093         (lto_read_body): Do not override them here.
18094
18095 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
18096
18097         PR c/42708
18098         * c-typeck.c (build_c_cast): Fold value cast to union type before
18099         wrapping it in a CONSTRUCTOR.
18100
18101 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
18102
18103         PR rtl-optimization/42699
18104         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
18105         involved.
18106
18107 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18108
18109         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
18110         SUBTARGET_WARN_UNUSED_SPEC): Move ...
18111         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
18112         SUBTARGET_WARN_UNUSED_SPEC): ... here
18113         * config/mips/iris5.h (LIBGCC_SPEC): Define.
18114
18115 2010-01-12  Julian Brown  <julian@codesourcery.com>
18116
18117         * config/arm/neon-schedgen.ml (Utils): Don't try to
18118         open missing module.
18119         (find_with_result): New.
18120
18121 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
18122
18123         PR debug/42662
18124         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
18125         sharing when canonicalizing ({lt,ge}u (plus a b) b).
18126
18127         PR tree-optimization/42645
18128         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
18129         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
18130         decl_map, set processing_debug_stmt to -1 and return name without
18131         any remapping.
18132
18133 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
18134
18135         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
18136         binutils version, and reword target configuration description.
18137
18138 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
18139
18140         * config/avr/avr.h (LINKER_NAME): Remove.
18141
18142 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
18143
18144         PR target/42416
18145         * config/rs6000/rs6000.c (rs6000_override_options): On targets
18146         that support VSX, warn for -mno-altivec if vsx is not disabled,
18147         and disable vsx.
18148
18149 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
18150             Shujing Zhao  <pearly.zhao@oracle.com>
18151
18152         PR translation/42469
18153         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
18154         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
18155         character between option name and help text.
18156         * c.opt (imultilib): Likewise.
18157
18158 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
18159
18160         * lto-streamer-out.c (output_unreferenced_globals): Output static
18161         variables.
18162
18163 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
18164
18165         PR rtl-optimization/42621
18166         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
18167         optimizing for size.
18168         (duplicate_computed_gotos): Remove now-redundant check.
18169
18170 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
18171
18172         PR target/37454
18173         * configure.ac: Save and restore LDFLAGS and LIBS
18174         * configure: Regenerate.
18175
18176 2010-01-10  Richard Guenther  <rguenther@suse.de>
18177
18178         PR middle-end/42667
18179         * builtins.c (fold_builtin_strlen): Add type argument and
18180         convert the resulting length to it.
18181         (fold_builtin_1): Adjust.
18182
18183 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
18184
18185         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
18186         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
18187         1 insn.
18188         (num_insns_constant_wide): Adjust for that change.
18189
18190 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
18191
18192         PR debug/42631
18193         * web.c (union_defs): Add used argument, to combine uses of
18194         uninitialized regs.
18195         (entry_register): Adjust type and tests of used argument.
18196         (web_main): Widen used for new use.  Pass it to union_defs.
18197         * df.h (union_defs): Adjust prototype.
18198
18199 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
18200
18201         PR debug/42630
18202         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
18203         uses in new incoming argument.  Free body.
18204         (reset_debug_uses_in_loop): New.
18205         (analyze_insn_to_expand_var): Call the latter if the former found
18206         anything.  Fix whitespace.  Reject invalid dest overlaps before
18207         going through all insns in the loop.
18208
18209 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
18210
18211         PR debug/42629
18212         * haifa-sched.c (dying_use_p): Debug insns don't count.
18213
18214 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
18215
18216         PR middle-end/42363
18217         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
18218         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
18219         (verify_gimple_call): Reject LHS in noreturn calls.
18220
18221 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
18222
18223         PR debug/42604
18224         PR debug/42395
18225         * tree-vect-loop-manip.c (adjust_info): New type.
18226         (adjust_vec): New pointer to vector.
18227         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
18228         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
18229         (slpeel_update_phis_for_duplicate_loop): Use them.
18230         (slpeel_update_phi_nodes_for_guard1): Likewise.
18231         (slpeel_update_phi_nodes_for_guard2): Likewise.
18232         (slpeel_tree_peel_loop_to_edge): Likewise.
18233         (vect_update_ivs_after_vectorizer): Likewise.
18234
18235 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
18236
18237         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
18238         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
18239
18240 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
18241
18242         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
18243         bogus uninitialized warning.
18244
18245 2010-01-09  Richard Guenther  <rguenther@suse.de>
18246
18247         PR middle-end/42512
18248         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
18249         the evolution is compatible with the initial condition.
18250
18251 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
18252
18253         * gcc.c (process_command): Update copyright notice dates.
18254         * gcov.c (print_version): Likewise.
18255         * gcov-dump.c (print_version): Likewise.
18256         * mips-tfile.c (main): Likewise.
18257         * mips-tdump.c (main): Likewise.
18258
18259 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
18260
18261         PR target/41885
18262         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
18263         (rotlhi3): Delete.
18264         (rotlhi3_8): Delete.
18265         (rotlsi3): Delete.
18266         (rotlsi3_8): Delete.
18267         (rotlsi3_16): Delete.
18268         (rotlsi3_24): Delete.
18269         (rotl<mode>3): New.
18270         (*rotw<mode>3): New.
18271         (*rotb<mode>3): New.
18272         * config/avr/avr.c (avr_rotate_bytes): New function.
18273         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
18274
18275 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
18276
18277         PR target/37454
18278         * configure.ac: Modify -rdynamic check.
18279         * configure: Regenerate.
18280
18281 2010-01-08  DJ Delorie  <dj@redhat.com>
18282
18283         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
18284         register popping order.
18285
18286 2010-01-08  Richard Guenther  <rguenther@suse.de>
18287
18288         PR lto/42528
18289         * c.opt (fsigned-char): Also let LTO handle this option.
18290         (funsigned-char): Likewise.
18291
18292 2010-01-07  Richard Guenther  <rguenther@suse.de>
18293
18294         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
18295         (gimple_op): Likewise.
18296         (gimple_op_ptr): Likewise.
18297         (gimple_assign_set_lhs): Remove gcc_assert.
18298         (gimple_assign_set_rhs1): Likewise.
18299         (gimple_assign_set_rhs2): Likewise.
18300         (gimple_call_set_lhs): Likewise.
18301         (gimple_call_set_fn): Likewise.
18302         (gimple_call_set_fndecl): Likewise.
18303         (gimple_call_fndecl): Likewise.
18304         (gimple_call_return_type): Likewise.
18305         (gimple_call_set_chain): Likewise.
18306         (gimple_call_num_args): Likewise.
18307         (gimple_call_set_arg): Likewise.
18308         (gimple_cond_set_code): Likewise.
18309         (gimple_cond_set_lhs): Likewise.
18310         (gimple_cond_set_rhs): Likewise.
18311         (gimple_cond_set_true_label): Likewise.
18312         (gimple_cond_set_false_label): Likewise.
18313         (gimple_label_set_label): Likewise.
18314         (gimple_goto_set_dest): Likewise.
18315         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
18316         (gimple_debug_bind_get_value): Likewise.
18317         (gimple_debug_bind_get_value_ptr): Likewise.
18318         (gimple_debug_bind_set_var): Likewise.
18319         (gimple_debug_bind_set_value): Likewise.
18320         (gimple_debug_bind_reset_value): Likewise.
18321         (gimple_debug_bind_has_value_p): Likewise.
18322         (gimple_return_retval_ptr): Remove gcc_assert.
18323         (gimple_return_retval): Likewise.
18324         (gimple_return_set_retval): Likewise.
18325         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
18326         (safe_referenced_var_iterator): Remove.
18327         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
18328         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
18329         (fill_referenced_var_vec): Remove.
18330         (first_readonly_imm_use): Remove redundant gcc_assert.
18331         (phi_arg_index_from_use): Combine gcc_asserts.
18332         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
18333         (first_imm_use_stmt): Remove redundant gcc_assert.
18334         * tree-cfg.c (verify_gimple_call): Verify function and chain
18335         operands.  Verify arguments.
18336         (verify_types_in_gimple_stmt): Verify condition code and labels.
18337
18338 2010-01-07  Richard Guenther  <rguenther@suse.de>
18339
18340         PR tree-optimization/42641
18341         * sese.c (rename_map_elt_info): Use the SSA name version, do
18342         not hash pointers.
18343
18344 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
18345
18346         PR tree-optimization/42625
18347         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
18348         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
18349
18350 2010-01-07  Duncan Sands  <baldrick@free.fr>
18351
18352         * Makefile.in (PLUGIN_HEADERS): Add version.h.
18353
18354 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
18355
18356         PR target/42511
18357         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
18358         note itself is not function_invariant_p.
18359
18360 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
18361
18362         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
18363         Do not add the DF_NOTE problem.
18364         * store-motion.c (execute_rtl_store_motion): Likewise.
18365
18366 2010-01-07  Martin Jambor  <mjambor@suse.cz>
18367
18368         PR tree-optimization/42157
18369         * tree-sra.c (compare_access_positions): Stabilize sort if both
18370         accesses have integer types, return zero immediately if they are the
18371         same.
18372
18373 2010-01-06  Richard Henderson  <rth@redhat.com>
18374
18375         PR middle-end/41883
18376         * haifa-sched.c (add_to_note_list): Merge into ...
18377         (concat_note_lists): ... here, and ...
18378         (unlink_other_notes, rm_other_notes): Merge into...
18379         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
18380         NOTE_INSN_EPILOGUE_BEG.
18381
18382 2010-01-06  Richard Guenther  <rguenther@suse.de>
18383
18384         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
18385         not inline regular functions into always-inline functions.
18386
18387 2010-01-06  Nick Clifton  <nickc@redhat.com>
18388
18389         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
18390         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
18391         used together.
18392         (OVERRIDE_OPTIONS): Delete.
18393         (OPTIMIZATION_OPTIONS): Define.
18394         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
18395         * config/rx/rx.c (rx_handle_option): Issue an error message if
18396         -mcpu=rx200 and -fpu are used together.
18397         (rx_set_optimization_options): New function.  Issue an error
18398         message if an optimization attribute attempts to reset the FPU/
18399         math optimization pairing.
18400         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
18401         * config/rx/rx.opt: Set the default to 32-bit doubles.
18402         * config/rx/t-rx: Add multilibs for -nofpu option.
18403         * doc/invoke.texi: Update documentation of RX options.
18404
18405 2010-01-06  Richard Guenther  <rguenther@suse.de>
18406
18407         * tree-ssa-pre.c (name_to_id): New global.
18408         (alloc_expression_id): Simplify SSA name handling.
18409         (lookup_expression_id): Likewise.
18410         (init_pre): Zero name_to_id.
18411         (fini_pre): Free it.
18412
18413 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
18414
18415         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
18416
18417 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
18418
18419         PR target/42542
18420         * config/i386/sse.md (smaxv2di3): New.
18421         (umaxv2di3): Likewise.
18422         (sminv2di3): Likewise.
18423         (uminv2di3): Likewise.
18424
18425 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
18426
18427         PR target/42564
18428         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
18429         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
18430         (legitimize_tls_address): Likewise.
18431         (sparc_tls_referenced_p): Likewise.
18432         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
18433         and adjust calls to legitimize_pic_address.
18434         (legitimate_constant_p) Use sparc_tls_referenced_p.
18435         (legitimate_pic_operand_p): Likewise.
18436         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
18437         (sparc_tls_symbol_ref_1): Delete.
18438         (sparc_tls_referenced_p): Make static, recognize specific patterns.
18439         (legitimize_tls_address): Make static, handle CONST patterns.
18440         (legitimize_pic_address): Make static, remove unused parameter and
18441         adjust recursive calls.
18442         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
18443         and adjust call to legitimize_pic_address.
18444         (sparc_output_mi_thunk): Likewise.
18445
18446 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
18447             H.J. Lu  <hongjiu.lu@intel.com>
18448
18449         PR target/42542
18450         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
18451         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
18452         operands to make them signed.
18453
18454         Revert:
18455         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
18456
18457         PR target/42542
18458         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
18459         GTU to GT for V4SI and V2DI.
18460
18461         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
18462         (umin<mode>3): Removed.
18463         (uminv8hi3): New.
18464         (uminv4si3): Likewise.
18465
18466 2010-01-05  Martin Jambor  <mjambor@suse.cz>
18467
18468         PR tree-optimization/42462
18469         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
18470         current_function_decl to helper functions and macros.
18471
18472 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18473
18474         PR bootstrap/41771
18475         * flags.h: Don't include real.h.
18476         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
18477         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
18478         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
18479         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
18480         * dominance.c: Update copyright.
18481         * gimple.c (walk_gimple_op): Remove inline.
18482         * tree-ssa-reassoc.c: Include real.h.
18483         * Makefile.in (FLAGS_H): Remove $(REAL_H).
18484         (tree-ssa-reassoc.o): Depend on $(REAL_H).
18485
18486 2010-01-05  Nick Clifton  <nickc@redhat.com>
18487
18488         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
18489         register to push into the stack frame when the accumulator has to
18490         be saved during interrupts.
18491
18492 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
18493
18494         * doc/invoke.texi: Remove the documentation about option
18495         -Wunreachable-code.
18496         * common.opt (Wunreachable-code):  Preserved for backward
18497         compatibility.
18498         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
18499         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
18500         the backward compatibility flag section.
18501
18502 2010-01-05  Richard Guenther  <rguenther@suse.de>
18503
18504         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
18505
18506 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
18507
18508         PR other/42611
18509         * cfgexpand.c (expand_one_var): Diagnose too large variables.
18510
18511         PR tree-optimization/42508
18512         * tree-sra.c (convert_callers): Check for recursive call
18513         by comparing cgraph nodes instead of decls.
18514         (modify_function): Call ipa_modify_formal_parameters also
18515         on all same_body aliases.
18516
18517         * cgraphunit.c (cgraph_materialize_all_clones): Compare
18518         cgraph nodes when checking for same_body aliases.
18519
18520 2010-01-05  Richard Guenther  <rguenther@suse.de>
18521
18522         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
18523         allocation and lookup.
18524         (get_or_alloc_expr_for_constant): Likewise.
18525         (phi_translate): Sink allocation.
18526
18527 2010-01-04  Richard Guenther  <rguenther@suse.de>
18528
18529         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
18530         a new entry only if needed.
18531         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
18532         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
18533         hashtable lookup.
18534         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
18535         the result array.
18536         (phi_translate): Handle CONSTANTs early.
18537
18538 2010-01-04  Martin Jambor  <mjambor@suse.cz>
18539
18540         PR tree-optimization/42398
18541         * tree-sra.c (struct access): Removed flag grp_different_types.
18542         (dump_access): Do not dump the removed flag.
18543         (sort_and_splice_var_accesses): Do not set the removed flag.
18544         (sra_modify_expr): Check for type compatibility directly.
18545
18546 2010-01-04  Martin Jambor  <mjambor@suse.cz>
18547
18548         PR tree-optimization/42366
18549         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
18550         edges with variable number of parameters.
18551         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
18552         flag instead of asserting it.
18553         (ipa_read_node_info): Read uses_analysis_done flag.
18554
18555 2010-01-04  Richard Guenther  <rguenther@suse.de>
18556
18557         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
18558         iterative_hash_* as intended.
18559         (vn_reference_compute_hash): Likewise.  Simplify hashing
18560         SSA names.
18561         (vn_reference_lookup_2): Likewise.
18562         (vn_nary_op_compute_hash): Likewise.
18563         (vn_phi_compute_hash): Likewise.
18564         (expressions_equal_p): Remove strange code.
18565         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
18566         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
18567         (bitmap_insert_into_set_1): Take value-id as parameter.
18568         (add_to_value): Pass it.
18569         (bitmap_insert_into_set): Likewise.
18570         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
18571
18572 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
18573
18574         PR driver/42442
18575         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
18576         (do_self_spec): For switches with SWITCH_IGNORE set set also
18577         SWITCH_IGNORE_PERMANENTLY.
18578         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
18579         of SWITCH_IGNORE.
18580
18581 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
18582
18583         * lto-streamer-out.c (output_unreferenced_globals): Output the full
18584         tree of an unreferenced global var.
18585
18586 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
18587
18588         PR target/42542
18589         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
18590         GTU to GT for V4SI and V2DI.
18591
18592         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
18593         (umin<mode>3): Removed.
18594         (uminv8hi3): New.
18595         (uminv4si3): Likewise.
18596
18597 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
18598
18599         PR lto/42581
18600         * collect2.c (main): Turn on trace in collect2 if -v is passed
18601         to gcc with LTO.
18602
18603 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
18604
18605         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
18606         description of expression operand.
18607
18608 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
18609
18610         * configure.ac: Add install-html to target_list for Make-hooks.
18611         * configure: Regenerate.
18612         * fortran/Make-lang.in (F95_HTMLFILES): New.
18613         (fortran.html): Use it.
18614         (fortran.install-html): New.
18615         * Makefile.in (install-html): Add lang.install-html.
18616         * java/Make-lang.in (JAVA_HTMLFILES): New.
18617         (java.html): Use it.
18618         (java.install-html): New.
18619         * objc/Make-lang.in (objc.install-html): New.
18620         * objcp/Make-lang.in (obj-c++.install-html): New.
18621         * cp/Make-lang.in (c++.install-html): New.
18622         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
18623         * lto/Make-lang.in (lto.install-html): New.
18624
18625 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
18626
18627         PR lto/42520
18628         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
18629
18630 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
18631
18632         PR rtl-optimization/41862
18633         * store-motion.c (store_killed_in_insn, compute_store_table,
18634         remove_reachable_equiv_notes, replace_store_insn,
18635         build_store_vectors): Ignore all DEBUG_INSNs.
18636
18637 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
18638
18639         PR lto/41564
18640         * common.opt: Add dumpdir.
18641
18642         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
18643         isn't specified.
18644         (option_map): Add --dumpdir.
18645
18646         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
18647
18648         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
18649
18650         * opts.c (decode_options): Try dump_dir_name first if
18651         dump_base_name isn't an absolute path.
18652         (common_handle_option): Handle OPT_dumpdir.
18653
18654         * toplev.c (dump_dir_name): New.
18655         (print_switch_values): Also ignore -dumpdir.
18656
18657         * toplev.h (dump_dir_name): New.
18658
18659 2010-01-03  Richard Guenther  <rguenther@suse.de>
18660
18661         PR tree-optimization/42589
18662         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
18663         double-word expansion of bswap32.
18664
18665 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
18666
18667         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
18668         with BLOCK_FOR_INSN.
18669         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
18670         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
18671         noce_process_if_block): Likewise.
18672         * gcse.c (compute_local_properties, insert_expr_in_table,
18673         insert_set_in_table, canon_list_insert, find_avail_set,
18674         pre_insert_copy_insn): Likewise.
18675
18676         * basic-block.h (BLOCK_NUM): Move from here...
18677         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
18678
18679 2010-01-03  Richard Guenther  <rguenther@suse.de>
18680
18681         PR tree-optimization/42438
18682         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
18683         contains_may_not_return_call flag.
18684         (BB_MAY_NOTRETURN): New.
18685         (valid_in_sets): Trapping nary operations are not valid
18686         in blocks that may not return.
18687         (insert_into_preds_of_block): Remove check for trapping expressions.
18688         (compute_avail): Compute also BB_MAY_NOTRETURN.
18689
18690 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
18691
18692         * doc/invoke.texi: Add 2010 to copyright years.
18693
18694 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
18695
18696         * config/sparc/sparc.c: Fix formatting nits.
18697
18698 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
18699             Alexander Monakov  <amonakov@ispras.ru>
18700
18701         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
18702
18703 2010-01-02  Richard Guenther  <rguenther@suse.de>
18704
18705         PR middle-end/42577
18706         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
18707         (simplify_switch_using_ranges): Mark to be removed edges
18708         as non-executable.
18709
18710 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18711
18712         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
18713
18714         * collect2.c (scan_libraries): Add missing argument in call to
18715         scan_prog_file.
18716
18717 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
18718
18719         PR target/42448
18720         * config/alpha/predicates.md (aligned_memory_operand): Return false
18721         for CQImode.
18722         (unaligned_memory_operand): Return true for CQImode.
18723         * config/alpha/alpha.c (get_aligned_mem): Assert that location
18724         doesn not cross aligned SImode word boundary.
18725
18726 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
18727
18728         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
18729         Remove.
18730         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
18731         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
18732
18733 2010-01-02  Richard Guenther  <rguenther@suse.de>
18734
18735         PR lto/41597
18736         * toplev.c (compile_file): Emit LTO marker properly.  Change
18737         it to __gnu_lto_v1.
18738         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
18739
18740 2010-01-01  Richard Guenther  <rguenther@suse.de>
18741
18742         PR debug/42455
18743         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
18744
18745 2010-01-01  Richard Guenther  <rguenther@suse.de>
18746
18747         PR c/42570
18748         * c-decl.c (grokdeclarator): For zero-size arrays force
18749         structural equality checks as layout_type does.
18750
18751 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
18752
18753         * builtins.c: Update copyright to 2010.
18754
18755 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
18756
18757         PR lto/42531
18758         * lto-streamer-out.c (produce_asm): Revert the last change.
18759         (copy_function): Likewise.
18760
18761         * lto-streamer.c (lto_get_section_name): Skip any leading
18762         asterisk in name.
18763
18764 2010-01-01  Richard Guenther  <rguenther@suse.de>
18765
18766         PR middle-end/42559
18767         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
18768         for LABEL_DECLs.
18769
18770 \f
18771 Copyright (C) 2010 Free Software Foundation, Inc.
18772
18773 Copying and distribution of this file, with or without modification,
18774 are permitted in any medium without royalty provided the copyright
18775 notice and this notice are preserved.